1# Revision history for pandoc
3## pandoc 2.10.1 (2020-07-23)
5 * Add `commonmark_x` output format. This is `commonmark` with a number
6 of useful pandoc extensions enabled.
8 * Many more extensions now work with `commonmark` and `gfm`.
10 * Add generic `attributes` extension. This allows attributes to
11 be added to any block or inline element in a uniform way. Since
12 the Pandoc AST doesn't include attributes on each element type,
13 the attributes will sometimes be added by creating a surrounding
14 Div or Span container. Currently this extension is only
15 compatible with the `commonmark` and `gfm` readers.
17 To add an attribute to a block-level element, e.g. a paragraph,
18 put it before the block:
23 Multiple attributes may be used and will be combined:
26 {.blue .warning key="val"}
29 To add an attribute to an inline-level element, put it
30 immediately after the element:
32 *emphasized text*{.special}
35 * Support `--number-sections` for docx output (#1413).
39 + Support `\SIRange` reader (#6418, Emerson Harkin).
40 + Support table col-span and row-span (#6311, Laurent P. René de Cotret).
41 Supports `\multirow` and `\multicolumn`.
42 + Support amsthm: `\newtheorem`, `\theoremstyle`, and theorem and
43 proof environments, including labels and references. The only thing
44 that is unsupported is the second optional argument, which causes
45 numbering to be reset after the specified series is incremented.
46 + Moved some code to T.P.LaTeX.Parsing. We need to reduce the size
47 of the LaTeX reader to ease compilation on resource-limited systems.
51 + Fix csv tables with multiline cells (#6549).
52 + Fix spurious newlines in some attributes from directives.
53 + Avoid extra newline in included code blocks.
57 + Switch from cmark-gfm to commonmark-hs for commonmark and gfm
58 parsing. This avoids depending on a C library
59 and allows us to support more pandoc extensions for
60 `commonmark` and `gfm`.
64 + Parse releaseinfo as metadata (#6542).
68 + Only use `bCs/iCs` on runs with `rtl` or `cs` property (#6514, Nikolay
70 + Code cleanup/refactoring (Nikolay Yakimov).
72 * Org reader (Albert Krewinkel):
74 + Respect export setting which disables entities
75 MathML-like entities, e.g., `\alpha`, can be disabled with the
76 `#+OPTION: e:nil` export setting (Albert Krewinkel).
77 + Respect export setting disabling footnotes. Footnotes can be removed
78 from the final document with the `#+OPTION: f:nil` export setting.
79 + Respect tables-excluding export setting. Tables can be removed from
80 the final document with the `#+OPTION: |:nil` export setting.
84 + Move `asciify` out of `escapeString`. Otherwise `unsmartify`
85 doesn't catch quotes that have already been turned to entities.
86 + Add `writeCommonmark` (new exported function, API change).
87 + Use unicode super/subscript characters when possible if the
88 `superscript` or `subscript` extension or `raw_html` aren't available.
89 + Render caption as following paragraph when `table_caption` extension
91 + Use numerical labels for reference links that are longer
92 than 999 characters or contain square brackets, for conformity
93 with commonmark (#6560).
97 + Instead of using cmark-gfm, use `writeCommonmark` from the
98 Markdown writer. This function calls the markdown writer
99 with appropriate extensions and a few small modifications
100 (e.g. not requiring backslashes before spaces inside
101 super/subscripts). With this change `comonmark` and
102 `gfm` output can be used with a wider selection of
105 * Jira writer: keep image caption as alt attribute (#6529, Albert
110 + Improve alt-text/caption handling for HTML5 (#6491, Albert Krewinkel).
111 Screen readers read an image's `alt` attribute and the figure caption,
112 both of which come from the same source in pandoc. The figure caption is
113 hidden from screen readers with the `aria-hidden` attribute. This
114 improves accessibility. For HTML4, where `aria-hidden` is not allowed,
115 pandoc still uses an empty `alt` attribute to avoid duplicate contents.
119 + Fix code highlighting with blank lines. Previously blank lines
120 were simply omitted from highligted code.
121 + Escape starting periods in ms writer code blocks (#6505, Michael
122 Hoffmann). If a line of ms code block output starts with a period (.),
123 it should be prepended by `\&` so that it is not interpreted as a roff
126 * Text.Pandoc.Extensions:
128 + Add `raw_markdown` extension (which only affects `ipynb`
130 + Trim down `githubMarkdownExtensions`.
131 Previously it included all of the following, which make
132 sense for the legacy `markdown_github` but not for `gfm`,
133 since they are part of base commonmark and thus
134 can't be turned off in `gfm`:
136 - `Ext_all_symbols_escapable`
137 - `Ext_backtick_code_blocks`
138 - `Ext_fenced_code_blocks`
139 - `Ext_space_in_atx_header`
140 - `Ext_intraword_underscores`
141 - `Ext_lists_without_preceding_blankline`
142 - `Ext_shortcut_reference_links`
144 These have been removed from `githubMarkdownExtensions`, though
145 they're still turned on for legacy `markdown_github`.
146 + Add `Ext_attributes` constructor for `Extension` [API change].
148 * LaTeX template: use selnolig to selectively suppress ligatures with
151 * Benchmark bytestring readers (Nikolay Yakimov).
155 + Update using-the-pandoc-api.md (favonia).
156 + Fix Typos in lua-filters.md (tajmone).
157 + Rewrite Raw HTML/TeX section in MANUAL.txt to avoid duplicate
158 headings for the extensions.
159 + Fix typo in MANUAL.txt (Benjamin Wuethrich).
160 + Remove duplicate 'titlepage' in MANUAL.txt (Blake Eryx).
161 + CONTRIBUTING.md: Advertise the official nightlies in GitHub actions.
162 Replaces #6500, thanks to @ickc.
166## pandoc 2.10 (2020-06-29)
168 * Use pandoc-types 1.21. This adds two things:
170 + A native Underline constructor for Inline (#6277, Vaibhav Sagar).
171 + More expressive types for tables (#1024, Christian Despres).
172 Tables can now take attributes; and rowspans and colspans,
173 column headers, multiple row headers, table head and foot
174 can all be represented. (Note, however, that reader and
175 writer support for these features is still lacking, so
176 most users won't see any differences in table conversion
177 yet. These changes just lay the foundation for further
180 * Support new Underline element in readers and writers (#6277,
183 * Support new Table type (Christian Despres).
184 The Builder.simpleTable now only adds a row to the TableHead
185 when the given header row is not null. This uncovered an
186 inconsistency in the readers: some would unconditionally
187 emit a header filled with empty cells, even if the header
188 was not present. Now every reader has the conditional
189 behaviour. Only the XWiki writer depended on the header row
190 being always present; it now pads its head as necessary.
192 * Add an option to disable certificate validation (#6156, Cédric Couralet,
193 Cécile Chemin, Juliette Fourcot). This commit adds the option
194 `--no-check-certificate`, which disables certificate checking when
195 resources are fetched by HTTP.
197 * Unify defaults and markdown metadata parsers (#6328, Nikolay
198 Yakimov). Clean up code in Text.Pandoc.Readers.Metadata and
199 properly handle errors in `yamlToMeta`. This fixes parsing
200 of Boolean fields in metadata withinin defaults files and reduces
205 + Implement `<procedure>` (#6442, Mathieu Boespflug).
206 + Implement `<phrase>` (#6438, Mathieu Boespflug).
207 + Treat envar and systemitem like code (#6435, Mathieu Boespflug).
208 + Implement `<replaceable>` (#6437, Mathieu Boespflug)
209 + Map `<simplesect>` to unnumbered section (#6436, Mathieu Boespflug).
213 + Handle "label" element in section title (#6288).
214 + Parse abstract element into metadata field of same name
215 (#6480, Albert Krewinkel).
217 * Jira reader (Albert Krewinkel):
219 + Resolve multiple parsing problems, including issues with empty
220 table cells, faulty recognition of closing emphasis characters, and
221 parsing of image attributes (#6212, #6219, #6220).
222 + Two consecutive markup chars are now parsed verbatim (#6343);
223 styled text must not be empty.
224 + Newlines are no longer allowed within styled text (#6325).
225 + Links to anchors are now parsed as links (#6407).
226 + Retain image attributes (#6234). Jira images attributes as in
227 `!image.jpg|align=right!` are retained as key-value pairs. Thumbnail
228 images, such as `!example.gif|thumbnail!`, are marked by a
229 `thumbnail` class in their attributes.
230 + Use Underline for inserted text (#6237). Previously, the span was
231 marked with the non-standard class `inserted`.
232 + Improve icon conversion for `(/)`, `(x)`, `(!)`, `(?)`
233 `(+)`, `(-)`, `(off)`, `(*)`. (#6236, #6264).
234 + Support citations, attachment links, and user links (#6231, #6238,
236 + Resolve parsing issues of blockquote, color (#6233, #6235).
240 + Parse attributes into table attributes.
241 + Support `<bdo>` (#5794, Tristan de Cacqueray).
242 + Add `summary` to list of block-level HTML tags (#6385).
243 This improves support for summary/details inside Markdown.
244 NOTE: you need to include a blank line before the closing
245 `</details>`, if you want the last part of the content to
246 be parsed as a paragraph.
247 + Fix parsing unclosed th elements in a table (#6247).
249 * Commonmark reader: Implement `implicit_figures` extension (#6350).
253 + Fix inline code in lists (#6284, Nikolay Yakimov).
254 Previously inline code containing list markers was sometimes
256 + Don't require blank line after grid table (#6481).
257 This allows grid tables to be enclosed in fenced divs with no
258 intervening blank lines.
262 + Don't parse beyond `\end{document}` (#6380).
263 This required some internal changes to `\subfile` handling.
264 + Better handling of `\lettrine`. SmallCaps instead of Span
265 for the part after the initial capital. Ensure that both
266 arguments are parsed, so that in Markdown both
267 are treated as raw LateX. (Closes #6258.)
269 * Org reader (Albert Krewinkel):
271 + Recognize images with uppercase extensions (#6472).
272 + Keep unknown keyword lines as raw org. The lines of unknown
273 keywords, like `#+SOMEWORD: value` are no longer read as metadata,
274 but kept as raw `org` blocks. This ensures that more information
275 is retained when round-tripping org-mode files; additionally,
276 this change makes it possible to support non-standard org
277 extensions via filters.
278 + Unify keyword handling. Handling of export settings and other
279 keywords (like `#+LINK`) has been combined and unified.
280 + Support `LATEX_HEADER_EXTRA` and `HTML_HEAD_EXTRA`
281 settings. These export settings are treated like their non-extra
282 counterparts, i.e., the values are added to the `header-includes`
284 + Allow multiple `#+SUBTITLE` export settings. The values of all
285 lines are read as inlines and collected in the `subtitle`
287 + Read `#+INSTITUTE` values as text with markup. The value is
288 stored in the `institute` metadata field and used in the
289 default beamer presentation template.
290 + The behavior of the `#+AUTHOR` and `#+KEYWORD` export
291 settings has changed: Org now allows multiple such lines
292 and adds a space between the contents of each line. Pandoc
293 now always parses these settings as meta inlines; setting
294 values are no longer treated as comma-separated lists.
295 Note that a Lua filter can be used to restore the previous
297 + Read description lines as inlines (#6485). `#+DESCRIPTION` lines
298 are now treated as text with markup. If multiple such
299 lines are given, then all lines are read and separated by soft
301 + Honor tex export option (#4070). The `tex` export option can be set
302 with `#+OPTION: tex:nil` and allows three settings:
303 `t` (the default) causes LaTeX fragments to be parsed as TeX or added
304 as raw TeX. `nil` removes all LaTeX fragments from the document.
305 `verbatim` treats LaTeX as text.
310 + Pass arbitrary attributes through in code blocks (#6465).
311 Exceptions: name (which becomes the id), class (which becomes the
312 classes), and number-lines (which is treated specially to fit
313 with pandoc highlighting).
314 + Handle `date::` directive (#6276).
316 * Textile reader: support `pre.` for code blocks (#6454).
320 + Implement `raw_markdown` extension (#5408). Specifying
321 `-f ipynb+raw_markdown` will cause Markdown cells
322 to be represented as raw Markdown blocks, instead of being
323 parsed. This is not what you want when going from `ipynb`
324 to other formats, but it may be useful when going from `ipynb`
325 to Markdown or to `ipynb`, to avoid semantically insignificant
326 changes in the contents of the Markdown cells that might
327 otherwise be introduced.
328 + Handle application/pdf output as image (#6430).
329 + Properly handle image/svg+xml as an image (#6430).
333 + Distinguish between docx parsing and docx container unpacking errors.
337 + Fix `gfm_auto_identifiers` so that `-` is not replaced by `_` (#6335).
341 + Add nested syntax highlighting (#6256, Vlad Hanciuta).
342 Nested syntaxes are specified like this:
348 The preformatted code block parser has been extended to check if the
349 first attribute of the block is not a `key=value` pair, and in that
350 case it will be considered as a class.
353 * Jira writer (Albert Krewinkel):
355 + Always escape braces (#6478). Braces are now always escaped, even
356 within words or when surrounded by whitespace. Jira and
357 Confluence treat braces specially.
358 + Convert Underline to inserted text (`+inserted+`).
359 + Add image attributes (#6234). Image attributes are added
360 to the output as image parameters. If the image has a
361 class "thumbnail", then a thumbnail image is generated;
362 all other attributes are discarded in this case.
366 + Ensure that `-M csquotes` works even in fragment mode (#6265).
367 + Escape `^` specially for listings (#6460).
368 + Create hypertarget for links with identifier (#6360).
369 + Distinguish between single and double quotes when using enquote
370 package (#6457, dbecher-ito).
371 + Add support for customizable alignment of columns in beamer (#6331,
373 + Add support for customizable alignment of columns in beamer
374 (#4805, #4150, andrebauer).
378 + Use CSS in favor of `<br>` for display math (#6372)
379 Some CSS to ensure that display math is
380 displayed centered and on a new line is now included
381 in the default HTML-based templates; this may be
382 overridden if the user wants a different behavior.
386 + Clean-up Div handling (Albert Krewinkel).
390 + Enable column and row bands for tables (#6371).
391 This change will not have any effect with the default style.
392 However, it enables users to use a style (via a reference.docx)
393 that turns on row and/or column bands.
395 * OpenDocument (and ODT) writer:
397 + Add custom-style "Abstract" in metadata abstract.
398 This ensures that the abstract is rendered with style Abstract.
399 + Enable custom-style attribute on a Div.
400 This allows you to apply a custom style to contained paragraphs.
404 + Add id of figure to enclosed image.
405 + Add personname element to docbook author (#6244).
409 + Properly handle cover-image containing spaces (#6391).
413 + Ensure consistent padding for pipe tables (#6240).
414 + Avoid unnecessary escapes before intraword `_` when
415 `intraword_underscores` extension is enabled (#6296).
419 + Properly handle images with same alt text (#6194).
420 Previously we created duplicate references for these in rendering RST.
424 + Add blank line after Div (#6308).
428 + Support Haddock tables (Joe Hermaszewski).
429 See this PR on Haddock for details on the table format:
430 <https://github.com/haskell/haddock/pull/718>.
432 * PowerPoint writer (Jesse Rosenthal):
434 + Write math input verbatim in speaker notes (#6301).
435 OMML in speaker notes would lead to corrupt PowerPoint output. We now
436 output the OMML verbatim as LaTeX in the speaker notes.
438 * LaTeX template: Make polyglossia package options list-aware
439 (#6444, Frederik Elwert).
441 * Reveal.js template:
443 + Update template for reveal.js 4.0.0 (#6390, Salim B).
444 + Update template with newly available options (#6347, Jake Zimmerman).
445 + Use CDN version of revealjs v4 by default (#6408).
447 * opendocument template: Add abstract and subtitle to opendocument
450 * reference.odt: clean up styles. Add Abstract.
451 Change Author, Date to centered paragraphs with no character
454 * epub.css: wrap overlong lines in highlighted code blocks (#6242).
455 This fixes a problem in iBooks v2.4 with our earlier
456 horizontally scrolling code blocks. The problem seems to
457 be a bug in iBooks, not pandoc, but since iBooks is a major
458 target we're changing pandoc's default behavior so that
459 pandoc-produced epubs work on that platform.
463 + Use `--enable-local-file-access` in invoking `wkhtmltopdf` (#6474).
464 `wkhtmltopdf` changed in recent versions to require this for
465 access to local files. This fixes PDF via HTML5 with `--css`.
466 + Send verbose output to stderr, not stdout (#6483).
468 * Text.Pandoc.MIME: Fix MIME type for TrueType fonts in EPUBs
469 (#6464, Michael Reed).
471 * Text.Pandoc.Shared:
473 + `makeSections`: omit number attribute when unnumbered class
474 is present (#6339). Previously the attribute was included but given
475 an empty value, and this caused the table of contents creation
476 functions in Text.Pandoc.Writers.Shared to think these items had
477 numbers, which meant that they were included in the TOC even if the
478 `unlisted` class was used.
479 + Deprecate `underlineSpan` in Shared in favor of
480 `Text.Pandoc.Builder.underline` (Vaibhav Sagar).
481 + `renderTags'`: use self-closing tag for col element (#6295).
483 * Text.Pandoc.UUID: Fix `getRandomUUID`, which previously would
484 return the same value twice in a row. Make `getRandomUUID`
485 polymorphic in PandocMonad. Remove `getUUID` (#6228, Joseph C. Sible).
487 * Text.Pandoc.Class: Generalize `PandocIO` functions to `MonadIO`.
489 * Fixed Katex standalone script (#6399, Lucas Escot).
490 Global macros are now persistent when using the HTML Writer with the
493 * Lua subsystem (Albert Krewinkel):
495 + Use new type PandocLua for all pandoc Lua operations (API change).
496 The new type `PandocLua` is an instance of the `PandocMonad` typeclass
497 and can thus be used in a way similar to `PandocIO`.
498 + Use PandocError for exceptions in Lua subsystem (API change).
499 The PandocError type is used throughout the Lua subsystem. All Lua
500 functions throw an exception of this type if an error occurs. The
501 `LuaException` type is removed and no longer exported from
502 `Text.Pandoc.Lua`. In its place, a new constructor `PandocLuaError`
503 is added to PandocError.
505 * Lua filters: improve error messages for failing filters (#6332,
506 Albert Krewinkel). Print the Lua error properly instead of
507 displaying their `show` string.
509 * Use latest skylighting. This fixes a bug with lua multiline
510 comments (and may improve handling of other syntaxes as well).
511 IT also adds `aria-hidden="true"` to the empty a elements, which
512 helps people who use screen readers.
514 * Use latest texmath.
516 * Require latest doctemplates 0.8.2.
517 This adds support for template pipes `first`, `rest`,
518 `last`, `allbutlast`.
520 * Revert 0e48a02 and dependency on base-noprelude, which hasn't
521 been updated for ghc 8.10 (see #6187).
523 * Dependency adjustments:
525 + Allow haddock-library 1.9.x.
526 + Allow hslua 1.1 (#6243, Felix Yan).
527 + Allow base64-bytestring 1.1.
528 + Use latest jira-wiki-markup.
529 + Allow http-client 0.7.
531 + Allow aeson 1.5 (#6400, Felix Yan).
532 + Remove unused dependency `vector` (#6462, Laurent P. René de Cotret).
533 + Bump QuickCheck upper bound.
535 * Significant code cleanup and simplification (Joseph C. Sible, #6223,
536 #6209, #6225, #6229, #6226, #6340).
538 * Remove unnecessary hlint ignores (#6341, Joseph C. Sible).
540 * Remove obsolete RelaxedPolyRec extension (#6487, Nikolay Yakimov).
542 * trypandoc improvements (Mike Tzou):
544 + Add standalone option to the command text (#6210).
545 + Update third party libraries.
549 + Clarify template partial naming (#6476, Mauro Bieg).
550 + Describe `jira` as "Jira/Confluence wiki markup" (#6351, Albert
551 Krewinkel). In the past, Jira's wiki markup was also used by -- and
552 could be imported into -- Atlassian Confluence.
553 + Add link to print-css.rocks (#6272, Mauro Bieg).
554 + Clarify pipe table column width adjustment (#6254).
555 + Fix ATX header syntax.
556 + Fix misleading note about image size conversions (#6353).
557 + Update links to reveal.js documentation (#6386, Salim B).
558 + Separate adjacent verbatim code blocks (#6307, tom-audm).
562 + Document behavior of `smart` extension (#4387, Albert Krewinkel).
563 + Describe all supported export options in detail.
567 + Fix description of BulletList Lua type (Levi Gruspe).
568 + Use pandoc.system module in TikZ example (Albert
569 Krewinkel). Showcase temporary directory handling with
570 `with_temporary_directory` and `with_working_directory`.
572 * INSTALL.md: fix FreeBSD port link (#6422, Mo).
573 The FreeBSD port was renamed from pandoc to hs-pandoc in 2010.
574 The old pandoc port is still at version 1.5.1.1
576 * Propagate `(DY)LD_LIBRARY_PATH` in tests (#6376, Lila).
578 * Bump `cabal-version` to 2.2 (#6377).
580 * Make it possible to compile using Stack on NixOS (#6439, Mathieu
583 * CI action to check for commit messsage length (Nikolay Yakimov, #6398).
586## pandoc 2.9.2.1 (2020-03-23)
588 * Markdown reader: Fix table alignment when heading begins with t (#6153).
589 Due to a typo (`t` instead of `\t`) we were center aligning column
590 headings that begin with a lowercase `t`!
592 * Text.Pandoc.Readers.Roff:
594 + Fix parsing of `\.` in man/ms readers (#6175).
595 Previously due to a typo it was being parsed as `` ` ``.
596 + Fix parsing of `\'` in man/ms readers (#6175). It was being parsed
599 * Jira reader (Albert Krewinkel):
601 + Fix parsing of tables without preceding blankline (#6198).
602 A bug was fixed which caused faulty parsing if a table was not
603 preceded by a newline and the first table cell had no space
604 after the initial `|` characters.
605 + Fix parsing of strikeout, emphasis (#6196). A bug was fixed which
606 caused non-emphasized text containing digits and/or non-special
607 symbols (like dots) to sometimes be parsed incorrectly.
608 + Support colored inline text, indented lists (#6183, #6184).
612 + Fix definition lists so indent even when paragraph indent is
613 set to 0 (as is the default). Also ensure indent for display math
614 that falls back to TeX.
615 + Use `.QS/.QE` instead of `.RS/.RE` for block quotes.
617 * EPUB writer: fix regression on detection of front/back/bodymatter
618 (#6170). This bug caused sections with epub:type `dedication` to be
619 misplaced in bodymatter instead of frontmatter as specified
620 in the manual. The same problem would affect other epub:types.
621 The pattern matching needed to be changed with the use of
624 * AsciiDoc writer: remove redundant `otherwise` guard in
625 `inlineToAsciiDoc` (#6146, Ryan Scott).
629 + Fix missing import when data files are not embedded (Albert Krewinkel).
630 + Subdivide Text.Pandoc.Class into small unexported modules
631 and ensure that all functions have Haddock documentation (#6106,
633 + Finer grained imports of Text.Pandoc.Class submodules (#6203, Albert
636 * Text.Pandoc.XML: Add to list of HTML5 attributes:
637 `allow`, `autocapitalize`, `decoding`, `enterkeyhint`,
638 `imagesizes`, `imagesrcset`, `loading`.
640 * Use implicit Prelude (#6187, Albert Krewinkel).
641 The previous behavior was introduced as a fix for #4464. It seems that
642 this change alone did not fix the issue, and `stack ghci` and `cabal
643 repl` only work with GHC 8.4.1 or newer, as no custom Prelude is loaded
644 for these versions. Given this, it seems cleaner to revert to the
647 * Always use custom prelude (#6187, Albert Krewinkel).
648 Previously, the custom prelude was used only with older GHC versions, as
649 a workaround for problems with ghci. The ghci problems are resolved by
650 replacing package `base` with `base-noprelude`, allowing for consistent
651 use of the custom prelude across all GHC versions.
653 * Remove outdated checks for no longer supported base versions
656 * PDF via wkhtmltopdf: put user-specified options last (#6171).
657 Certain options (e.g. `cover`) need to come after flags on
660 * Text.Pandoc.App: set resource path at the beginning so it can affect
661 things like include-in-header (#5982).
663 * Change macOS release candidate CI process so that notarized
664 packages can be produced (#6169).
666 * Make MANUAL more explicit about nonbreaking space handling by
667 `all_symbols_escapable` (#6154, Fabien Schurter).
669 * trypandoc (Mike Tzou):
671 + Add checkbox for standalone option (#6189).
672 + Use strict mode for JavaScript code (#6188).
673 + Fetch resources over https (#6188).
674 + Remove unnecessary attributes on style, script elements (#6188).
676 * Use details tag to make GitHub releases changelog collapsible.
678 * Update filter code in doc/filters.md so it works with latest pandoc
681 * linux/Dockerfile: upgrade to alpine 3.11 (#6180, Albert Krewinkel).
682 This is used to build the static linux binaries.
685## pandoc 2.9.2 (2020-02-15)
687 * Add `csv` as an input format (#6100). The CSV table is converted into a
688 pandoc simple table. A new module Text.Pandoc.Readers.CSV
689 exports `readCSV` [API change].
691 * Introduce new format variants for JATS writer (#6014, Albert Krewinkel):
693 - `jats_archiving` for the "Archiving and Interchange Tag Set",
694 - `jats_publishing` for the "Journal Publishing Tag Set", and
695 - `jats_articleauthoring` for the "Article Authoring Tag Set."
697 The `jats` output format is now an alias for `jats_archiving`.
698 The module Text.Pandoc.Writers.JATS now exports
699 `writeJatsArchiving`, `writeJatsPublishing`, and
700 `writeJatsArticleAuthoring`, as well as the legacy
701 `writeJATS` [API change].
703 * `--defaults`: Support `bibliography` and `csl` fields.
704 Move `addMeta` from Text.Pandoc.App.CommandLineOptions to
705 Text.Pandoc.App.Opt (internal change).
707 * Add timing info for filters in `--verbose` mode (#6112).
708 When verbose mode is specified (verbosity == INFO), print a
709 notice when running a filter and when a filter completes (including
714 + Allow `&` in LaTeX citation keys (#6110).
715 + Improve caption and label parsing.
716 + Don't emit empty Span elements for labels.
717 + Put tables with labels in a surrounding Div.
718 + Resolve `\ref` to table numbers (#6137).
719 + Skip comments in more places where this is needed (#6114).
720 + Allow beamer overlays for all commands in all raw tex (#6043).
721 This affects parsing of raw tex in LaTeX and in Markdown and
723 + Improve parsing of raw environments (#6034). If parsing fails
724 in a raw environment (e.g. due to special characters like unescaped
725 `_`), try again as a verbatim environment, which is less sensitive to
726 special characters. This allows us to capture special environments
727 that change catcodes as raw tex when `-f latex+raw_tex` is used.
731 + Add highlight directive (#6140, Lucas Escot).
735 + Prevent triple `[[[` which confuses MediaWiki (#6119).
739 + Don't parse `data-id` as `id` attribute. And similarly don't
740 parse any `data-X` as `X` when `X` is a valid HTML attribute.
744 + Simplify parsing of sub- and superscripts (#6127, Albert Krewinkel).
745 Speeds up parsing of single-word, markup-less sub- and superscripts.
749 + Group biblatex citations even with prefix and suffix (#5849, Ethan
750 Riley). Previously biblatex citations were only grouped if there
751 was no prefix. This patch allows them to be grouped in subgroups split
752 by prefixes and suffixes, which allows better citation sorting.
753 + Fix regression in handling of columns in beamer slides (#6033).
754 Columns in title slides were causing problems with
756 + Fix duplicate frame classes in LaTeX/Beamer output (#6107).
760 + Fix duplicate attributes on headings (#6062), regression from 2.7.x.
761 + Fix `--number-offset` with HTML TOC. Eventually it would be worth
762 adding a parameter to `makeSections` so this could be done at that
763 level; then it would also affect other writers that construct
765 + reveal.js: restore old behavior for 2D nesting (#6032).
766 The fix to #6030 actually changed behavior, so that the
767 2D nesting occurred at slide level N-1 and N, instead of
768 at the top-level section. This commit restores the v2.7.3 behavior.
769 If there are more than 2 levels, the top level is horizontal
770 and the rest are collapsed to vertical.
771 + reveal.js: ensure that pauses work even in title slides (#5819).
775 + Fix regression: spurious dots in markdown_mmd metadata output (#6133).
779 + Fix regression with Compact style on tight lists (#6072).
780 Starting in 2.8, the docx writer no longer distinguishes between tight
781 and loose lists, since the Compact style is omitted. This is a
782 side-effect of the fix to #5670, as explained in the changelog. This
783 patch fixes the problem by extending the exception currently offered to
784 Plain blocks inside tables to Plain blocks inside list items.
788 + Fix output of table headers (Albert Krewinkel, #6035).
790 * Add Text.Pandoc.Image with unexported svgToPng.
792 * Text.Pandoc.XML: Export `html5Attributes`, `html4Attributes`,
793 `rdfaAttributes` (formerly unexported in Text.Pandoc.Writers.HTML).
796 * Text.Pandoc.Shared: Export a new function `findM` (#6125,
799 * Text.Pandoc.Logging: Add `RunningFilter`, `FilterCompleted`
800 constructors to LogMessage [API change].
802 * Text.Pandoc.CSV: fix bug in CSV parser; previously an extra blank record
803 would sometimes be inserted at the end.
805 * LaTeX template: add space option to xeCJK with PassOptionsToPackage
806 (#6002). Otherwise we can get a clash with documentclasses that
807 already load the package.
811 + Allow filtering of element lists (#6038, Albert Krewinkel). Lists of
812 Inline and Block elements can now be filtered via `Inlines` and
813 `Blocks` functions, respectively. This is helpful if a filter
814 conversion depends on the order of elements rather than a single
815 element. For example, the following filter can be used to remove all
816 spaces before a citation:
818 function isSpaceBeforeCite (spc, cite)
819 return spc and spc.t == 'Space'
820 and cite and cite.t == 'Cite'
823 function Inlines (inlines)
824 for i = #inlines-1,1,-1 do
825 if isSpaceBeforeCite(inlines[i], inlines[i+1]) then
832 + Add methods `insert`, `remove`, and `sort` to pandoc.List
833 (Albert Krewinkel). Example of use:
835 local numbers = pandoc.List {2, 3, 1}
836 numbers:sort() -- numbers is now {1, 2, 3}
837 + Make `pandoc.List` a callable constructor (Albert Krewinkel).
838 It is now possible to construct a new List via
839 `pandoc.List()` instead of `pandoc.List:new()`.
840 + Add tests for pandoc.List module (Albert Krewinkel).
842 * Text.Pandoc.App.CommandLineOptions: Change `setVariable` to use `Text`
843 instead of `String`. This avoids some unnecessary unpacking.
845 * Use versioned directory for windows release zipfile.
846 Also remove old `make-windows-installer.bat`, superseded by GitHub
847 actions workflow, and modify `pandoc.wxs` for new paths.
849 * Extensive code cleanup (#6141, #6128, #6129, #6130, #6123,
850 #6105, 6102, #6117, #6124, #6115, #6116, #6111, Joseph C. Sible).
852 * Fix hlint warnings (Albert Krewinkel).
854 * Use latest doclayout, doctemplates (#6031). The new version of
855 doclayout fixes a memory leak that affected `--include-in-header` with
856 large files (and possibly other cases involving extremely long lines).
858 * Use latest texmath.
860 * Use latest skylighting and fix test suite (#6086).
862 * sample.lua: Fix typo in descriptive comments (#6136, Caleb Maclennan).
863 Fix typo in error message (#6135).
865 * Add Docker and GH Actions instructions/links to INSTALL.md.
867 * Update filter documentation (#6065). Improve cabal v2 instructions.
868 Remove example using pandoc API directly (we have other
869 docs for that and it was outdated).
873 + Cross-link constructors and types (Albert Krewinkel).
874 Thanks to @bpj for the idea.
875 + Sort pandoc.List methods alphabetically (Albert Krewinkel).
876 + Unify, fix anchors and internal links (#6061, Albert Krewinkel).
877 Links and anchors now follow consistent conventions, like
878 lowercase-only anchor names. This breaks some links to specific
879 sections in the document, but will make it much easier to link
880 documentation in the future.
881 + Clarify filter function execution order (#6059, Albert Krewinkel).
883 * In docs, update URLs and use `https:` wherever possible (#6090,
886## pandoc 2.9.1.1 (2020-01-05)
890 + Fix parsing bug affected indented code after raw HTML (#6009, #5360).
894 + Fix regression in beamer slide structure with certain slide levels
896 + Allow framebreaks for beamer's TOC (Heiko Schlittermann, #6012)
897 + Properly handle unnumbered headings level 4+ (#6018).
898 Previously the `\paragraph` command was used instead of
899 `\paragraph*` for unnumbered level 4 headings.
903 + Fix revealjs slide structure regression with certain slide levels
905 + Add newlines to make slide show output more readable.
909 + Remove extra spaces from table cells (Albert Krewinkel, #6024).
911 * JATS template: Update JATS dtd (Arfon Smith, #6020). Use the archiving
912 and interchange DTD rather than the more restrictive journal publishing
913 DTD (which doesn't permit ext-link as a valid child).
915 * Text.Pandoc.PDF: Fix `runTeXProgram` so that the input source is always
916 overwritten (#6027). Previously it wasn't overridden if the file already
917 existed, which led to bad results on subsequent runs when
918 `pdf-engine-opt=-output-directory=` was used to specify an explicit temp
921 * Text.Pandoc.BCP47: Change `getLang` to handle block-level contents
922 (#6008). Some readers (e.g. RST) will populate the `lang` metadata field
923 with block-level content. `getLang` has been modified to handle this.
924 Previously in these cases the LaTeX writer would not properly set the
925 "main language" of the document.
927 * Fix `test/tables.org` (Albert Krewinkel).
929 * Use HTTPS in copyright message (Felix Yan, #6010)
932## pandoc 2.9.1 (2019-12-23)
934 * Add Jira reader (Albert Krewinkel, #5556).
936 * Jira writer: use jira-wiki-markup renderer (Albert Krewinkel,
937 #5926). The following improvements are included in this change:
939 + non-jira raw blocks are fully discarded instead of showing
941 + table cells can contain multiple blocks;
942 + unnecessary blank lines are removed from the output;
943 + markup chars within words are properly surrounded by
945 + preserving soft linebreaks via `--wrap=preserve` is
948 Note that backslashes are rendered as HTML entities, as there
949 appears no alternative to produce a plain backslash if it is
950 followed by markup. This may cause problems when used with
951 confluence, where rendering seems to fail in this case.
953 * Fix regression with `--number-sections`. Starting with 2.8,
954 `--number-sections` also had the effect of `--section-divs`,
955 even if `--section-divs` was not specified.
957 * Improved table of contents generation in markdown, RTF,
958 commonmark, better handling cases where section headings are
961 * Ensure that later default file values for `variable` replace
964 * HTML reader: Add `nav` to list of block-level tags.
966 * Org reader (Albert Krewinkel):
968 + Wrap named table in Div, using name as id (#5984).
969 Tables which are given a name via `#+NAME:` or `#+LABEL:`
970 are wrapped in an additional Div, with the name set as the
972 + Report parsing errors properly.
973 + Fix parsing problem for colons in headline (#5993).
975 * Text.Pandoc.PDF: Ensure UTF8 when printing source in
976 `--verbose` mode, avoiding an error on platforms that
977 default to something other than UTF-8 (#5997).
979 * Text.Pandoc.Templates: Strip directory before trying to find
980 partial in data files (#5987).
982 * Text.Pandoc.Shared: Improve `makeSections` so we don't get
983 doubled "number" attributes in EPUB output (or anywhere
986 * Added tests for `--toc` and `--section-divs`.
988 * Text.Pandoc.MIME: Added glsl MIME type for WebGL maps (#6000,
991 * MANUAL: A bit clearer explanation for `--base-header-level`.
992 We now say exactly how to translate between the deprecated
993 `--base-header-level` and `--shift-heading-level-by`.
997 + Remove spurious dot in title (#5996, Mauro Bieg).
998 + Replace metadata example with image centering (#6004,
999 Albert Krewinkel). Thanks to @efx for proposing this filter.
1002## pandoc 2.9 (2019-12-11)
1004 * Text.Pandoc.Templates [API change]
1006 + Add Monad wrappers `WithDefaultPartials` and `WithPartials`.
1007 Wrapping these around an instance of `PandocMonad` gives
1008 us different instances of `TemplateMonad`, with different
1009 search behavior in retrieving partials.
1010 To compile a template and limit partial search to pandoc's
1011 data files, use `runWithDefaultPartials (compileTemplate ...)`.
1012 To compile a template and allow partials to be found locally
1013 (either on the file system or via HTTP, in the event that
1014 the main template has an absolute URL), ue
1015 `runWithPartials (compileTemplate ...)`.
1016 + Export `getTemplate`, which seeks a template locally,
1017 or via HTTP if the template has an absolute URL, falling
1018 back to the data files if not found.
1019 + Export `compileDefaultTemplate` -- does `getDefaultTemplate`
1020 and compiles the result, raising an error on failure.
1022 * Text.Pandoc.Class [API change]
1024 + Remove `TemplateMonad` instances for `PandocIO` and `PandocPure`.
1025 These were too limiting and caused a bug whereby a local
1026 partial could be used even when the default template was requested.
1027 We now rely on instances provided in the Templates module.
1029 * Text.Pandoc.App.OutputSettings: Simplify template retrieval code.
1031 * ConTeXt template: Adjust to title formatting (#5949, Denis Maier).
1032 Add `\setupinterlinespace` to `title`, `subtitle`, `date` and `author`
1033 elements: otherwise longer titles that run over multiple lines will look
1034 squashed as `\tfd` etc. won't adapt the line spacing to the font size.
1036 * reveal.js template: Add title-slide-attributes variable (#5981,
1039 * More informative JSON parse error (#5973).
1041 * Use external emojis package (forked from pandoc). Removed emoji data
1042 in Text.Pandoc.Emoji.
1044 * Fix regression in `makeSections` (#5965).
1045 Previously `hierarchicalize` (the ancestor of `makeSections`) would put
1046 header attributes on the containing Div. In 2.8 this behavior changed,
1047 which broke some tools depending on pandoc. Here we roll back this change,
1048 so that attributes again migrate from the header to the containing Div when
1049 `makeSections` is run. Note that attributes are retained on the header as
1050 well (unlike before) -- with the exception of the `id` attribute, which of
1051 course cannot be duplicated.
1053 * Fix `--toc-depth` regression in 2.8 (#5967).
1055 * Use doctemplates 0.8. Rename template 'filters' as 'pipes'
1056 to avoid confusion with the other notion of filter used by pandoc.
1058 * Fix README.md so that relative links from manual become absolute.
1059 Previously they'd be broken links when viewed on GitHub or Hackage.
1060 So we add the base URL for the pandoc manual.
1062 * Document display math syntax in manual.
1064## pandoc 2.8.1 (2019-12-05)
1066 * Add `ascii_identifiers` as a supported extension for `markdown`.
1067 This fixes a regression in 2.8.
1069 * Fix regression with behavior of `--variable` (#5962).
1070 Previously `-Vfoo=1 -Vfoo=2` would produce a list value for foo;
1071 with 2.8 it produced just `2`. This commit restores the earlier
1074 * Roll back part of of `--shift-heading-level-by` change (#5957).
1075 With positive heading shifts, starting in 2.8 this option
1076 caused metadata titles to be removed and changed to regular
1077 headings. This behavior is incompatible with the old
1078 behavior of `--base-header-level` and breaks old workflows,
1079 so we have rolled back the change. Note that there is now an
1080 asymmetry in positive and negative heading level shifts:
1081 With positive shifts, the metadata title stays the same and
1082 does not get changed to a heading in the body, while with
1083 negative shifts, a heading can be converted into the
1086 * Text.Pandoc.Shared: Fix `makeSections` so it doesn't turn
1087 column Divs into sections.
1089 * HTML writer: add task-list class to ul if all elements are
1090 task list items. This will allow styling unordered task
1091 lists in a way that omits the bullet.
1093 * HTML-based templates: Add CSS to suppress bullet on unordered task lists.
1095 * ConTeXt template: Fix `\startcslreferences` and use ConTeXt syntax
1096 conventions (#5945, Denis Maier). The old version had a too large
1097 a skip at the beginning of the reference list.
1099 * LaTeX template: keep the `\author{}` command even if author is not
1100 specified (#5961, Yihui Xie). Avoids a LaTeX warning.
1102 * Generate Emoji module with TH.
1104 + Add Text.Pandoc.Emoji.TH.
1105 + Replace long literal list in Text.Pandoc.Emoji with one-liner
1106 generating it from `emoji.json` using TH.
1107 + Add Makefile target to download `emoji.json`.
1108 + Remove `tools/emoji.hs`.
1110 * Increase GC allocation space for compilation in cabal.project.
1112 * Clean up manual on PDF generation backend options (#5940).
1114 * Update release checklist to include code signing step and update
1115 Windows release-candidate builds (#5950).
1118## pandoc 2.8.0.1 (2019-11-26)
1120 * List `pdf` in `--list-output-formats`.
1121 * EPUB writer: Fix regression with `--css` (#5937). In 2.8 `--css`
1122 would not have an effect on EPUB output.
1123 * RST writer: Use grid tables for one-column tables, since
1124 simple tables clash with heading syntax in this case (#5936).
1125 * Add unexported module Text.Pandoc.Readers.Metadata (see #5914).
1126 * Use doctemplates 0.7.2, which adds the `nowrap` filter to
1128 * Update default man template using `nowrap` for .TH heading (#5929).
1129 * HTML templates: Add support for `toc-title` variable (#5930,
1131 * Remove `grffile` (LaTeX package) requirement in MANUAL.txt
1132 (#5927, Ian Max Andolina).
1133 * Use skylighting 0.8.3.
1135## pandoc 2.8 (2019-11-22)
1137 * Improvements in templates system (from doctemplates):
1139 + Pandoc templates now support a number of new features that
1140 have been added in doctemplates: notably, `elseif`, `it`,
1141 partials, filters, and syntax to control nesting and reflowing of
1142 text. These changes make pandoc more suitable out of the
1143 box for generating plain-text documents from data in YAML
1144 metadata. It can create enumerated lists and even tabular
1146 + We now used templates parameterized on doclayout Doc types.
1147 The main impact of this change is better reflowing of
1148 content interpolated into templates. Previously,
1149 interpolated variables were rendered independently and
1150 intepolated as strings, which could lead to overly long
1151 lines. Now the templates interpolated as Doc values which
1152 may include breaking spaces, and reflowing occurs after
1153 template interpolation rather than before.
1154 + Remove code from the LaTeX, Docbook, and JATS writers that
1155 looked in the template for strings to determine whether it
1156 is a book or an article, or whether csquotes is used. This
1157 was always kludgy and unreliable.
1158 + Change template code to use new API for doctemplates.
1160 * Add `--defaults`/`-d` option. This adds the ability to specify
1161 a collection of default values for options in a YAML file. For
1162 example, one might define a set of defaults for letters,
1163 and then do `pandoc -d letter myletter.md -o myletter.pdf`.
1164 See the documentation of this feature in MANUAL.txt.
1166 * Raise error on unsupported extensions (#4338).
1168 * The `--list-extensions[=FORMAT]` option now lists only
1169 extensions that affect the given FORMAT.
1171 * Add `-L` option as shortcut for `--lua-filter`.
1173 * Add `--shift-heading-level-by` option and deprecate
1174 `--base-heading-level` (#5615). The new option does
1175 everything the old one does, but also allows negative shifts.
1176 It also promotes the document metadata (if not null) to a
1177 level-1 heading with a +1 shift, and demotes an initial
1178 level-1 heading to document metadata with a -1 shift. This
1179 supports converting documents that use an initial level-1
1180 heading for the document title.
1182 * Allow `--metadata-file` to be used repeatedly to include
1183 multiple metadata files (Owen McGrath, #5702). Values in
1184 files specified first will be overridden by those in later
1187 * `--ascii` now uses numerical hex character references (#5718).
1189 * Allow PDF output to stdout (#5751). PDF output now behaves like other
1190 binary formats: it will not be output to the terminal, but can be
1191 sent to stdout using either `-o -` or a pipe. The intermediate format
1192 will be determined based on the setting of `--pdf-engine`.
1194 * Make some writers sensitive to 'unlisted' class on headings (#1762).
1195 If this is present on a heading with the 'unnumbered' class,
1196 the heading won't appear in the TOC. This class has no
1197 effect if 'unnumbered' is not also specified. This affects HTML-based
1198 writers (including slide shows and EPUB), LateX (including beamer), RTF,
1199 and PowerPoint. Other writers do not yet support `unlisted`.
1201 * Fix `gfm_auto_identifiers` behavior with emojis (#5813). Note that
1202 we also now use emoji names for emojis when `ascii_identifiers`
1205 * When `--ipynb-output` is used with the default "best" format, strip
1206 ANSI escape codes for non-ipynb output (#5633). These cause problems
1207 in many formats, including LaTeX.
1209 * Don't look for template files remotely for remote input (#5579).
1210 Previously pandoc would look for the template at a remote URL when a
1211 URL was used for the input file, instead of taking it from the
1214 * Allow combining `-Vheader-includes` and `--include-in-header` (#5904).
1215 Previously `header-includes` set as a variable would be
1216 clobbered by material included using `--include-in-header`.
1218 * Change merge behavior for metadata. Previously, if a document
1219 contained two YAML metadata blocks that set the same field, the
1220 conflict would be resolved in favor of the first. Now it is resolved
1221 in favor of the second (due to a change in pandoc-types).
1222 This makes the behavior more uniform with other things in pandoc
1223 (such as reference links and `--metadata-file`).
1225 * Don't add a newline to fragment output if there's already one.
1227 * Change exit codes and document in MANUAL.txt:
1229 + `PandocAppError` was 1, is now 4
1230 + `PandocOptionError` was 2, is now 6
1231 + `PandocMakePDFError` was 65, is now 66
1233 * Switch to new pandoc-types and use Text instead of String [API change].
1234 (Christian Despres, #5884).
1238 + Better handling of `<q>` with cite attribute (#5798, Ole Martin Ruud).
1239 If a `<q>` tag has a `cite` attribute, we interpret it as a Quoted
1240 element with an inner Span.
1241 + Add support for HTML `<samp>` element (#5792, Amogh Rathore).
1242 The `<samp>` element is parsed as Code with class `sample`.
1243 + Add support for HTML `<var>` element (#5799, Amogh Rathore).
1244 The `<var>` element is parsed as Code with class `variable`.
1245 + Add support for `<mark>` elements (Florian B, #5797). Parse
1246 `<mark>` elements from HTML as Spans with class `mark`.
1247 + Add support for `<kbd>` elements, parsing them as Span with class
1248 `kbd` (Daniele D'Orazio, #5796).
1249 + Add support for `<dfn>`, parsing this as a Span with class `dfn`
1250 (#5882, Florian Beeres).
1254 + Headers: don't parse content over newline boundary (#5714).
1255 + Handle inline code more eagerly within lists (Brian Leung, #5627).
1256 + Removed some needless lookaheads.
1257 + Don't parse footnote body unless extension enabled.
1258 + Fix small super/subscript issue (#5878). Superscripts and subscripts
1259 cannot contain spaces, but newlines were previously allowed
1260 (unintentionally). This led to bad interactions in some cases
1261 with footnotes. With this change newlines are also not allowed inside
1263 + Use `take1WhileP` for `str`, table row. This yields a small but
1264 measurable performance improvement.
1269 + Fix parsing of optional arguments that contain braced text (#5740).
1270 + Don't try to parse includes if `raw_tex` is set (#5673).
1271 When the `raw_tex` extension is set, we just carry through
1272 `\usepackage`, `\input`, etc. verbatim as raw LaTeX.
1273 + Properly handle optional arguments for macros (#5682).
1274 + Fix `\\` in `\parbox` inside a table cell (#5711).
1275 + Improve `withRaw` so it can handle cases where the token string is
1276 modified by a parser (e.g. accent when it only takes part of a Word
1277 token) (#5686). This fixes a bug that caused the ends of
1278 certain documents to be dropped.
1279 + Handle `\passthrough` macro used by latex writer (#5659).
1280 + Support tex `\tt` command (#5654).
1281 + Search for image with list of extensions like latex does, if an
1282 extension is not provided (#4933).
1283 + Handle `\looseness` command values better (#4439).
1284 + Add `mbox` and `hbox` handling (Vasily Alferov, #5586).
1285 When `+raw_tex` is enabled, these are passed through literally.
1286 Otherwise, they are handled in a way that emulates LaTeX's behavior.
1287 + Properly handle `\providecommand` and `\provideenvironment` (#5635).
1288 They are now ignored if the corresponding command or environment
1290 + Support epigraph command in LaTeX Reader (oquechy, #3523).
1291 + Ensure that expanded macros in raw LaTeX end with a space
1292 if the original did (#4442).
1293 + Treat `ly` environment from lilypond as verbatim (Urs Liska, #5671).
1294 + Add `tikzcd` to list of special environments (Eigil Rischel).
1295 This allows it to be processed by filters, in the same way that
1296 one can do for `tikzpicture`.
1300 + Better support for `while`.
1301 + More improvements in parsing conditionals.
1302 + Fix problem parsing comments before macro.
1303 + Improve handling of groups.
1304 + Better parsing of groups (#5410). We now allow groups
1305 where the closing `\\}` isn't at the beginning of a line.
1309 + Keep `name` property in `imgAttr` (Brian Leung, #5619).
1310 + Fixed parsing of indented blocks (#5753). We were requiring
1311 consistent indentation, but this isn't required by RST.
1312 + Use title, not admonition-title, for admonition title.
1313 This puts RST reader into alignment with docbook reader.
1314 + Don't strip final underscore from absolute URI (#5763).
1315 + Avoid spurious warning when resolving links to internal anchors
1316 ending with `_` (#5763).
1320 + Accept `ATTR_LATEX` in block attributes (Albert Krewinkel, #5648).
1321 Attributes for LaTeX output are accepted as valid block attributes;
1322 however, their values are ignored.
1323 + Modify handling of example blocks (Brian Leung, #5717).
1324 + Allow the `-i` switch to ignore leading spaces (Brian Leung).
1325 + Handle awkwardly-aligned code blocks within lists (Brian Leung).
1326 Code blocks in Org lists must have their `#+BEGIN_` aligned in a
1327 reasonable way, but their other components can be
1328 positioned otherwise.
1329 + Fix parsing of empty comment lines (#5856, Albert Krewinkel).
1330 Comment lines in Org-mode can be completely empty.
1332 * Muse reader (Alexander Krotov):
1334 + Add RTL support (#5551).
1335 + Do not allow closing asterisks to be followed by `*`.
1336 + Do not split series of asterisks into symbols and emphasis (#5821).
1337 + Do not terminate emphasis on `*` not followed by space.
1341 + Parse markup inside monospace ('') (#5916, Alexander Krotov).
1345 + Move style-parsing-specific code to a new unexported module,
1346 Text.Pandoc.Readers.Docx.Parse.Styles (Nikolay Yakimov).
1347 + Move StyleMap to docx writer (Nikolay Yakimov).
1348 + Only use LTR when it is overriding BiDi setting (#5723, Jesse
1349 Rosenthal). The left-to-right direction setting in docx is used
1350 in the spec only for overriding an explicit right-to-left setting.
1351 We only process it when it happens in a paragraph set with BiDi.
1352 This is especially important for docs exported from Google Docs,
1353 which explicitly (and unnecessarily) set `rtl=0` for every paragraph.
1354 + Fix list number resumption for sublists (#4324).
1355 The first list item of a sublist should not resume numbering
1356 from the number of the last sublist item of the same level,
1357 if that sublist was a sublist of a different list item.
1361 + Richer parse for admonitions (Michael Peyton Jones, #1234).
1362 Instead of parsing admonitions as blockquotes, we now parse
1363 them as Divs with an appropriate class. We also handle titles
1364 for admonitions as a nested Div with the "title" class.
1365 + Fix nesting of chapters and sections (#5864, Florian Klink,
1366 Félix Baylac-Jacqué).
1367 + Fix bug with entities in mathphrase element (#5885).
1371 + Skip optional `{{table}}` template (#5757).
1375 + Fix dollar-math parsing to ensure that space is left between a
1376 control sequence and a following letter (#5836).
1377 + In `untokenize`, ensure space between control sequence
1378 and following letter (#5836).
1379 + Don't omit macro definitions defined in the preamble.
1380 These were formerly omitted (though they still affected macro
1381 resolution if `latex_macros` was set). Now they are included in
1383 + Parse macro definitions as raw LaTeX when `latex_macros` is
1384 disabled. (When `latex_macros` is enabled, we omit them, since
1385 pandoc is applying the macros itself.)
1386 + Fix a hang/memory leak in certain circumstances (#5845).
1387 + Text.Pandoc.Readers.LaTeX.Parsing: add `[Tok]` parameter to
1388 `rawLaTeXParser`. This allows us to repeat retokenizing
1389 unnecessarily in e.g. `rawLaTeXBlock`.
1390 + Add KOMA-Script metadata commands (#5910, Andrew Dunning).
1391 Add all titling commands to existing definition for `\dedication`.
1392 + Parse `\micro` siunitx unit command (#5921, Jose Luis Duran).
1396 + Ensure proper nesting when we have long ordered list markers (#5705).
1397 + Make `plain` output plainer (#5741). Previously we used the following
1398 Project Gutenberg conventions for plain output: extra space before and
1399 after level 1 and 2 headings, all-caps for strong emphasis,
1400 underscores surrounding regular emphasis. Now these
1401 conventions are used only when the `gutenberg` extension is
1402 enabled. By default, Strong and Emph are rendered without
1403 special formatting, and headings are rendered without
1404 special formatting, and with only one blank line following.
1405 To restore the former behavior, use `-t plain+gutenberg`.
1406 + Prefer using raw_attribute when enabled (#4311).
1407 The `raw_attribute` will be used to mark raw bits, even HTML
1408 and LaTeX, and even when `raw_html` and `raw_tex` are
1409 enabled, as they are by default. To get the old behavior,
1410 disable `raw_attribute` in the writer.
1411 + Prefer `pipe_tables` to raw HTML even when we must
1412 lose width information (#2608, #4497).
1413 + Improve escaping in list items (#5918).
1417 + Don't include `+` in code blocks for regular asciidoc.
1418 This is asciidoctor-specific.
1419 + Handle admonitions (#5690).
1423 + Add thin space when needed in LaTeX quote ligatures (#5684).
1424 + Use `\hspace{0pt}` for 0-width space U+200B (#5756).
1425 + Use `cslreferences` environment for csl bibliographies.
1426 This allows bibliographies to receive special formatting.
1427 The template now contains definition of this environment (enabled
1428 only when CSL is used). It also defines a `\cslhangindent` length.
1429 This is set to 2em by default when the bibliography style specifies
1430 a hanging indent. To override the length, you can use e.g.
1431 `\setlength{\cslhangindent}{7em}` in header-includes.
1432 See jgm/pandoc-citeproc#410.
1433 + Strip off `{}` around locator for biblatex/natbib output (#5722).
1434 + Fix line breaks at start of paragraph (#3324).
1435 Previously we just omitted these. Now we render them
1436 using `\hfill\break` instead of `\\`. This is a revision
1437 of a PR by @sabine (#5591) who should be credited with the idea.
1438 + We no longer look in the template or header-includes to see if a
1439 book or article documentclass is used, or to see whether the
1440 `csquotes` package is used. To use `csquotes` for LaTeX, set
1441 `csquotes` in your variables or metadata. To specify a book
1442 style, use the `documentclass` variable or
1443 `--top-level-division`.
1444 + Fix horizontal rule (#5801). We change to use 0.5pt rather than
1445 `\linethickness`, which apparently only ever worked "by accident"
1446 and no longer works with recent updates to texlive.
1450 + Add option to include source files in ConTeXt PDFs (Tristan
1451 Stenner, #5578). The metadata field or variable
1452 (`includesource`) can be set to attach the source documents
1453 to the resulting PDF.
1454 + Customizable type of PDF/A for the ConTeXt writer (Karl
1455 Pettersson, #5608). The `pdfa` variable may now be set in metadata.
1456 Also updated color profile settings in accordance with ConTeXt wiki,
1457 and made ICC profile and output intent for PDF/A customizable
1458 using `pdfaiccprofile` and `pdfaintent`.
1459 + Unit tests: adjust code property to avoid an irrelevant
1460 failure involving inline code with two consecutive newlines.
1461 + Set `csl-hanging-indent` variable if needed.
1462 + Use special environment for CSL references.
1463 + Use braces, not start/stop, for inline language tags.
1464 This prevents unwanted gobbling of spaces.
1468 + Use numeric character references with `--ascii` (#5718).
1469 Previously we used named character references with html5 output.
1470 But these aren't valid XML, and we aim to produce html5 that is
1471 also valid XHTML (polyglot markup). (This is also needed for epub3.)
1472 + Ensure that line numbers in code blocks get id-prefix (#5650).
1473 + Ensure TeX formulas are rendered correctly (Philip Pesca,
1474 #5658). The web service passed in to `--webtex` may render
1475 formulas using inline or display style by default.
1476 Prefixing formulas with the appropriate command ensures
1477 they are rendered correctly.
1478 + Render inline formulas correctly with `--webtex` (Philip
1479 Pesca, #5655). We add `\textstyle` to the beginning of the
1480 formula to ensure it will be rendered in inline style.
1481 + Pass through `aria-` attributes to HTML5 (#5642).
1482 + Render a Quoted element with an inner Span with
1483 `cite` attribute using a `<q>` tag (#5798, Ole Martin Ruud).
1484 + Render a Span with class `mark` using the `<mark>` element
1485 (Florian Beeres, #5797).
1486 + Render Span with class `dfn` using `<dfn>` element
1487 (Florian Beeres, #5882).
1488 + Render Span with class `kbd` using `<kbd>` element (Daniele
1490 + Render Code with class `variable` using `<var>` element
1491 (Amogh Rathore, #5799).
1492 + Render Code with class `sample` using `<samp>` element
1493 (Amogh Rathore, #5799).
1497 + Improve splitting into chapters (#5761), using `makeSection`.
1498 + Avoid issuing warning multiple times when title not set (see #5760).
1499 + Use svg tag wrapper for cover image (#5638). In addition, the
1500 code generating the image has been moved to the template, to make it
1501 more customizable. NOTE: Those who use custom EPUB
1502 templates will need to adjust their templates, adding the
1503 code to generate the cover image. (Previously this was just
1504 inserted into 'body'.)
1505 + Improve toChapters, making it work better if there are Divs
1507 + Add support for EPUB2 covers (blmage, #3992).
1508 + Do not override existing "fileN" medias when writing to EPUB format
1510 + Ensure that `lang` variable is set on all chapters (so that it
1511 will add an `xml:lang` attribute on the `html` element).
1515 + Removed remnants of `admonition-title`.
1516 + Fix handling of `:align:` on figures and images (#4420).
1517 When the image has the `align-right` (etc.) class, we now use
1518 an `:align:` attribute.
1519 + Improve spacing for tables with no width information (#5899).
1520 If a simple table would be too wide, we use a grid table.
1521 + Fix backslash escaping after strings (Albert Krewinkel, #5906).
1522 The check whether a complex inline element following a string must
1523 be escaped, now depends on the last character of the string instead
1525 + Ensure there's a blank line before tables (#5898).
1529 + Handle mixed lists without HTML fallback (#5107).
1533 + Fix multiline table (Zihang Chen, #5683).
1537 + Add RTL support (Alexander Krotov, #5551).
1541 + Suppress non-absolute link URLs (#5770). Absolute URLs are
1542 still printed in parentheses following the link text, but relative
1543 URLs are suppressed (just as internal links starting with '#'
1545 + Improved definition list term output. Now we boldface code but
1546 not other things. This matches the most common style in man pages
1547 (particularly option lists).
1551 + Use `.LP` instead of `.PP` for line block (#5588).
1552 + Use boldface for definition terms in DefinitionLists.
1556 + Do not emit empty `<fn-group>` (Mauro Bieg, #5595).
1557 + Update template to v1.1dtd (#5632, Arfon Smith).
1558 + Update `data/jats.csl` to avoid commas between editor
1559 name-part elements. (#5629)
1560 + Add `abstract` to template (Mauro Bieg).
1564 + Don't strip hash from internal links (#5922).
1568 + Remove escapeStringForJira for code blocks (Jan-Otto Kröpke).
1569 + Remove extraneous newline after single-line block quotes
1570 (#5858, Albert Krewinkel).
1571 + Improve escaping of special characters, using backslash escapes
1572 instead of HTML entities (#5858, Albert Krewinkel).
1574 * OpenDocument writer:
1576 + Avoid duplicate attributes (#4634). We use the innermost
1577 attribute in nested cases.
1578 + If `native_numbering` extension is set, use native OpenDocument
1579 enumeration for figures and tables (Nils Carlson).
1580 + Place caption before table (#5681, Dmitry Pogodin).
1584 + Add a test for MathML formulas in ODT documents (blmage).
1585 + Improve the parsing of frames in ODT documents (blmage).
1589 + Make handling of styles more robust in localized versions
1590 of Word (Nikolay Yakimov, #5523, #5052, #5074). We now use
1591 style names, not ids, for assigning semantic meaning, since
1592 the ids can change depending on the locale. Style name
1593 comparisons are case-insensitive, since those are
1594 case-insensitive in Word. Since docx style names can have
1595 spaces in them, and pandoc-markdown classes can't, anywhere
1596 when style name is used as a class name, spaces are
1597 replaced with ASCII dashes `-`. Code styles, i.e. "Source
1598 Code" and "Verbatim Char" now honor style inheritance. Docx
1599 Reader now honours "Compact" style (used in
1600 Pandoc-generated docx). The side-effect is that "Compact"
1601 style no longer shows up in docx+styles output. Styles
1602 inherited from "Compact" will still show up.
1603 + Re-use Readers.Docx.Parse for StyleMap (#5766, Nikolay Yakimov).
1604 + Internal improvements and code simplification (Nikolay Yakimov).
1605 + Preserve built-in styles in DOCX with custom style (Ben Steinberg,
1606 #5670). This change prevents custom styles on divs and spans
1607 from overriding styles on certain elements inside them, like
1608 headings, blockquotes, and links. On those elements, the
1609 "native" style is required for the element to display correctly.
1610 This change also allows nesting of custom styles; in order to do so,
1611 it removes the default "Compact" style applied to Plain blocks,
1612 except when inside a table.
1613 + Add `proofState` to list of elements carried over from
1614 settings.xml in the reference.docx (Krystof Beuermann, #5703).
1615 + Change order of `ilvl` and `numId` in `document.xml` (Agustín
1616 Martín Barbero, #5645). Also, make list para properties go first.
1617 This reordering of properties shouldn't be necessary but
1618 it seems Word Online does not understand the docx correctly otherwise.
1620 * PowerPoint writer:
1622 + Code formatting is now context dependent (Jeroen de Haas, #5573).
1623 This commit alters the way in which the Powerpoint writer treats
1624 inline code and code blocks. Inline code is now formatted at
1625 the same size as the surrounding text. Code blocks are now given
1626 a margin and font size according to their level.
1627 Furthermore this commit allows changing the font with which code is
1628 formatted via the `monofont` option.
1629 + Start numbering at appopriate numbers (Jesse Rosenthal, #5709).
1630 Starting numbers for ordered lists were previously ignored. Now
1631 we specify the number if it is something other than 1.
1633 * Text.Pandoc.Parsing:
1635 + Add `manyChar`, `many1Char`, `manyTillChar`, `many1TillChar`,
1636 `many1Till`, `manyUntil`, `mantyUntilChar`: these are like their
1637 unsuffixed counterparts but pack some or all of their output
1638 (Christian Despres, #5884).
1639 + Add `stateAllowLineBreaks` to `ParserState` [API change].
1640 + Fix inline parsing in grid table cells (#5708).
1641 + Change type of `setLastStrPos` so it takes a `Maybe SourcePos`
1642 rather than a `SourcePos` [API change].
1643 + Make `parseFromString'` and `gridTableWith` and
1644 `gridTableWith'` polymorphic in the parser state,
1645 constraining it with `HasLastStrPosition` [API change].
1646 + `parseFromString'`: reset `stateLastStrPos` to `Nothing` before parse.
1647 + Rename takeWhileP -> take1WhileP and clean it up.
1648 (It doesn't match the empty sequence.)
1652 + For PDFs via HTML, ensure temp file is deleted even if the pdf
1653 program is not found (#5720).
1654 + Better detection of a Cygwin environment (#5451).
1655 + Don't assume tex log file is UTF8-encoded (#5872).
1656 Fall back to latin1 if it can't be read as UTF-8.
1658 * Text.Pandoc.Extensions:
1660 + Export new function `getAllExtensions`, which returns the
1661 extensions that affect a given format (whether enabled by default
1662 or not) [API change].
1663 + Change type of `parseFormatSpec` from
1664 `Either ParseError (String, Extensions -> Extensions)`
1665 to `Either ParseError (String, [Extension], [Extension])`
1667 + Add `Ext_gutenberg` constructor to `Extension` [API change].
1668 + Add `Ext_native_numbering` constructor to `Extension` [API change]
1671 * Text.Pandoc.Readers, Text.Pandoc.Writers:
1673 + Change type of `getReader` and `getWriter` so they return
1674 a value in the PandocMonad instance rather than an Either
1675 [API change]. Exceptions for unknown formats and unsupported
1676 extensions are now raised by these functions.
1680 + Change `optMetadataFile` type from `Maybe FilePath` to `[FilePath]`
1681 (Owen McGrath, #5702) [API change].
1683 * Text.Pandoc.Logging:
1685 + Add `CouldNotDeduceFormat` constructor to `LogMessage` [API change].
1686 Issue this warning when we're falling back to markdown or
1687 html because we don't recognize the extension of the input or
1689 + Clarify warning for missing title (#5760).
1690 + Add `UnusualConversion` constructor to `LogMessage` [API change]
1691 (Mauro Bieg, #5736). Emit warning on `-f latex -o out.pdf`.
1695 + Improve function documentation (Albert Krewkinkel).
1696 + Traverse nested blocks and inlines in correct order (Albert
1697 Krewinkel, #5667). Traversal methods are updated to use the new
1698 Walk module so that sequences with nested Inline (or Block) elements
1699 are traversed in the order in which they appear in the linearized
1701 + New unexported module `Text.Pandoc.Lua.Walk` (Albert Krewinkel).
1702 Lua filters must be able to traverse sequences of AST
1703 elements and to replace elements by splicing sequences back
1704 in their place. Special `Walkable` instances can be used for
1705 this; those are provided in a new module
1706 `Text.Pandoc.Lua.Walk`.
1707 + `Attr` values can now be given as normal Lua tables (Albert
1708 Krewinkel, #5744). This can be used as a convenient alternative
1709 to constructing `Attr` values with `pandoc.Attr`. Identifiers
1710 are taken from the `id` field, classes must be given as
1711 space separated words in the `class` field. All remaining fields
1712 are included as attributes. With this change, the following lines
1713 now create equal elements:
1715 pandoc.Span('test', {id = 'test', class = 'a b', check = 1})
1716 pandoc.Span('test', pandoc.Attr('test', {'a','b'}, {check = 1}))
1718 This also works when using the *attr* setter:
1720 local span = pandoc.Span 'text'
1721 span.attr = {id = 'test', class = 'a b', check = 1}
1723 Furthermore, the *attributes* field of AST elements can now be a
1724 plain key-value table even when using the `attributes` accessor:
1726 local span = pandoc.Span 'test'
1727 span.attributes = {check = 1} -- works as expected now
1729 + Export `make_sections`, remove `hierarchicalize`. Lua filters that
1730 use `hierarchicalize` will need to be rewritten to use
1732 + Add a `clone()` method to all AST elements (Albert Krewinkel, #5568).
1733 + Fix Lua function names in pandoc.system (niszet). Change
1734 `get_current_directory` to `get_working_directory` and
1735 `with_temp_directory` to `with_temporary_directory`, to
1736 conform to the manual.
1738 * Text.Pandoc.Error:
1740 + Add constructors `PandocUnknownReaderError`,
1741 `PandocUnknownWriterError`, `PandocUnsupportedExtensionError`.
1743 + Better message for `PandocShouldNeverHappenError`.
1744 + Better message for `PandocTemplateError`.
1746 * Text.Pandoc.Emoji:
1748 + Update emoji list (#5666). Done using new `tools/emojis.hs`,
1749 which uses the list from the gem GitHub uses. Future updates
1750 can be done with this tool.
1754 + Pass value of `--dpi` to `rsvg-convert` when converting SVG to PDF
1755 in the process of creating a PDF (#5721).
1757 * Text.Pandoc.Shared:
1759 + Replace `Element` and `makeHierarchical` with `makeSections`.
1760 Now that we have Divs, we can use them to represent the
1761 structure of sections, and we don't need a special Element type.
1762 `makeSections` reorganizes a block list, adding Divs with class
1763 `section` around sections, and adding numbering if needed.
1764 This change also fixes some longstanding issues recognizing section
1765 structure when the document contains Divs (#3057, see also #997).
1766 + Remove `Element` type [API change]
1767 + Remove `makeHierarchicalize` [API change]
1768 + Add `makeSections` [API change]
1769 + Export `deLink` [API change]
1770 + Make `filterIpynbOutput` strip ANSI escapes from code in output
1771 for non-ipynb formats, when the default "best" option is used with
1772 `--ipynb-output` (#5633).
1773 + Fix `camelCaseToHyphenated` so it handles `ABCDef` better.
1774 + Improve `isTight` (#5857). If a list has an empty item,
1775 this should not count against its being a tight list.
1776 + Export `htmlSpanLikeElements` [API change] (Daniele D'Orazio, #5796).
1777 This is a mapping of HTML span-like elements that are internally
1778 represented as a Span with a single class.
1779 + Change the implementation of `htmlSpanLikeElements` to retain
1780 classes and attributes (#5882, Florian Beeres).
1782 * Text.Pandoc.Slides: recognize content in Divs when determining
1785 * Text.Pandoc.SelfContained:
1787 + Omit content-type on type attribute for `<style>` (#5725).
1788 It doesn't seem to be valid for HTML5, and as a result Chrome
1789 ignores the style element.
1791 * Text.Pandoc.Pretty has been removed [API change].
1792 We now use the new external doclayout module instead.
1794 * Text.Pandoc.Writers.Shared:
1796 + Remove `metaToJSON`, `metaToJSON'` [API change].
1797 + Modify `addVariablesToContext`, `defField`, `setField`, `getField`,
1798 `resetField` to work with Context rather than JSON values. [API change]
1799 + Export new function `endsWithPlain` [API change].
1800 + Change `gridTables` so it does better at keeping the widths of
1801 columns (#4320) and does better at figuring out column widths
1802 when no widths are given (#5899).
1804 * Text.Pandoc.Options
1806 + Change type of `writerTemplate` to `Maybe Template` instead
1808 + Change To/FromJSON instances for `HTMLMathMethod`, `CiteMethod`,
1809 `ObfuscationMethod`, `TrackChanges`, `WrapOption`,
1810 `TopLevelDivision`, `ReferenceLocation`, `HTMLSlideVariant` (#5790).
1811 In each case we use lowercase (or hyphenated lowercase) for
1812 constructors to line up more closely with command-line option
1813 values. This is a breaking change for those who manually decode or
1814 encode JSON for these data types (e.g. for `ReaderOptions` or
1817 * Text.Pandoc.Filters:
1819 + Add `FromYAML` instance for `Filter`.
1820 + `applyFilters`: Add and apply filters in order (not reversed)
1821 This changes `applyFilters` from Text.Pandoc.Filter so
1822 that it does a left fold rather than a right fold, applying
1823 the filters in the order listed.
1827 + Change `toEntities` to emit numerical hex character references
1830 * Text.Pandoc.Highlighting:
1832 + Add additional listings languages (Wandmalfarbe).
1834 * Text.Pandoc.MediaBag:
1836 + Some of the types using Strings were switched to use FilePath instead
1837 (Christian Despres, #5884).
1839 * Text.Pandoc.Templates:
1841 + Don't import/export `varListToJSON` [API change]. It is removed in
1842 doctemplates >= 0.3.
1843 + Change type of `renderTemplate'` [API change]. Return value is
1844 now Text rather than being polymorphic. This makes room for
1845 upcoming removal of the `TemplateTarget` class from doctemplates.
1847 * Text.Pandoc.App.Opt [API changes]:
1849 + More convenient To/FromJSON instances. Make the field names
1850 like `strip-empty-paragraphs` rather than `optStripEmptyParagraphs`.
1851 Anyone who is using JSON serialization of Opt will need to adjust
1853 + Change `optHighlightStyle` to a `Maybe String` instead of
1854 `Maybe Style`. Do the parsing/loading of themes later, after
1856 + Remove `optBaseHeaderLevel` from `Opt`. We now just use
1857 `optShiftHeadingLevelBy`, to avoid redundancy.
1858 + Change `optShiftHeadingLevel` to `optShiftHeadingLevelBy` to
1860 + Custom FromJSON instance for `LineEnding`, so either `CRLF`
1861 or `crlf` will work.
1862 + Change `optVariables` from `[(String, String)]` to `Context Text`.
1863 + Change `optMetadata` to `Meta`, to allow structured values.
1864 The current behavior of the `--metadata` option stays the same.
1865 + Rename `optReader`, `optWriter` as `optFrom`, `optTo`.
1866 + Add `FromYAML` instances to `Opt` and to all subsidiary types.
1867 + Rename `optMetadataFile` to `optMetadataFiles`.
1868 + Rename `optPDFEngineArgs` to `optPDFEngineOpts`.
1869 + Rename `optWrapText` to `optWrap`.
1870 + Add `IpynbOutput` enumerated type: use this instead of
1871 a string for `optIpynbOutput`.
1872 + Change optInputFiles to a `Maybe [FilePath]` (#5888) [API change].
1873 `Nothing` means: nothing specified.
1874 `Just []` means: an empty list specified (e.g. in defaults).
1875 + List fields in Opt so they aren't reversed (#5881) [API change].
1876 Previously `optIncludeInHeader`, etc. were in reverse order.
1877 + The `sourcefile` variable is now always a list. It used to be
1878 sometimes a string, sometimes a list (when there was more than one).
1882 + default.latex: added code for `cslreferences` environment,
1883 to be used for pandoc-citeproc references. A `csl-hanging-indent`
1884 variable (set automatically if there is a `hanging-ident`
1885 class on the references Div) controls whether contents of this
1886 environment receive a hanging indent.
1887 + default.latex: Add `space` as default option for xeCJK, so that
1888 spaces between words are preserved (#5855, jeongminkim-islab).
1889 This is necessary for Korean.
1890 + default.latex: Remove include of `grffile` (#5848).
1891 This package used to be needed for proper handling of image filenames
1892 containing periods (in addition to the period before the extension).
1893 It no longer works with the latest LaTeX kernel and graphicx,
1894 so we have removed it. Future versions of graphicx will handle
1895 these filenames without the need for `grffile`.
1896 + default.context: add a saner default for page numbers.
1897 Previously they appeared centered at the top of the page;
1898 now we put them centered at the bottom, unless the `pagenumbering`
1900 + default.context: define a start-stop-pair `cslreferences` to
1901 allow for hanging indents in the bibliography (#5875, Denis Maier).
1902 + default.ms: update defaults. Use Palatino font, use slightly
1903 wider interparagraph space, don't indent paragraphs,
1904 and put page numbers on the bottom. This brings ms output
1905 closer to default LaTeX output.
1906 + default.revealjs: add navigationMode (Mauro Bieg, #5657).
1907 + default.muse: handle multiple authors better.
1908 + docbook4, docbook5 templates: add indentation to body.
1909 + HTML-based templates: use `styles.html` partial to avoid
1911 + HTML-based templates: change indentation of styles in template.
1913 * reference.docx (#5820):
1915 + Change Block Text (block quote) style so that the same font
1916 is used as in the body text, and the block text is indented
1918 + All headings now have a uniform color.
1919 + Level-1 headings no longer set `w:themeShade="B5"`.
1920 + Level-2 headings are now 14 point rather than 16 point.
1921 + Level-3 headings are now 12 point rather than 14 point.
1922 + Level-4 headings are italic rather than bold.
1924 * epub.css: Add CSS for hanging-indent div to support pandoc-citeproc's
1925 new hanging indents.
1929 + Repeat ghc-options in all stanzas.
1930 + Remove conditionals for ghc < 8 (Albert Krewinkel, #5693).
1931 + Compile with `-Wcpp-undef` and `-fhide-source-paths` when possible
1933 + Add cabal.project to extra-source-files (Albert Krewinkel).
1934 + Add dependency on skylighting-core (#5729). Even though it shouldn't
1935 be needed, some tools require it.
1936 + Require latest pandoc-types, texmath, skylighting, haddock-library.
1937 + Ensure TemplateHaskell is added to other-extensions when it is
1938 used (Vanessa McHale, #5728).
1939 + Remove `derive_json_via_th` flag; always use TH. This cuts down
1940 on code duplication and reduces the chance for errors. See #4083.
1946 + Remove references to obsolete flag (#5694).
1948 * Benchmarks: fix failure on ipynb.
1950 * Use MathJax 3 (zorkow).
1952 * KaTeX math: respect `classoption=fleqn` variable,
1953 bump KaTeX version to 0.11.1 (#5815, Mauro Bieg).
1955 * Fix redundant constraint compiler warnings (Pete Ryland, #5625).
1957 * Use throwError instead of fail when appropriate.
1959 * Use Prelude.fail to avoid ambiguity with fail from GHC.Base.
1961 * Add `diff-zip.sh` to tools (John MacFarlane, Agustín Martín Barbero).
1962 This is intended to make it easier to test differences in zip
1963 containers, like epub, docx, or odt.
1965 * Add `.gitattributes` (#5747). This ensures that the golden files
1966 in `test/fb2/reader/` don't have newlines converted. This should fix
1967 a test failure on GitHub CI with Windows.
1969 * Reorder options in `--help`.
1971 * Revise code for HsYAML-0.2.0.0 (@vijayphoenix, #5704).
1973 * Remove blank line in code example in Haddocks (Leif Metcalf, #5679).
1975 * Fix trypandoc with `getReader`/`getWriter` changes.
1977 * Allow building pandoc with GHC 8.8.
1979 * linux tarball: add architecture `-amd64` to filename.
1980 Now it will be: `pandoc-VERSION-linux-ARCH.tar.gz`.
1984 + Add section for exit codes.
1985 + Document some pptx limitations in slide show section:
1986 No incremental display (#5689). No pause with `. . .` (#5701).
1987 + reveal.js flags (Mauro Bieg, #5653).
1988 + Document addition of `data-` prefix to unknown attributes in HTML5.
1989 + Link to YAML spec (Mauro Bieg, #5687).
1990 + Fix capitalization of "Linux" (#5859, Marcus Stollsteimer).
1991 + Use a table for exit codes.
1992 + Put all template variable docs into one section.
1993 + Use ATX headers consistently.
1994 + Add fuller documentation of templates (#5779), including
1995 new template syntax, partials, etc.
1996 + Add documentation for the variable `hyperrefoptions` (Wandmalfarbe).
1997 + Clarify when macro definitions are passed as raw latex.
1998 In Markdown input, they are always passed through. In LaTeX, only if
1999 `latex_macros` is disabled.
2000 + Clarify that `--dpi` provides a default and doesn't override
2001 dpi values specified in the images themselves (#5721).
2002 + Document how to use custom writers with `--standalone` (#5866).
2003 + Clarify `--preserve-tabs` default.
2007 + Fix instructions for libicu.
2008 + Add Void Linux instructions (Volodymyr Kozachnyskyi).
2012 + Add information on tests (Agustín Martín Barbero, #5652).
2013 + Add information about command test naming to CONTRIBUTING (Florian B).
2015 * Fix typos in changelog and comments (#5896, Brian Wignall).
2017 * doc/lua-filters.md:
2019 + Fix mistakes in mediabag module docs (#5851, Albert Krewinkel).
2020 + Improve metadata replacement example in lua-filters doc (#5851).
2021 + Mention which Lua version is shipped with pandoc (Albert Krewinkel,
2024## pandoc 2.7.3 (2019-06-11)
2026 * Add `jira` (Atlassian's Jira wiki markup) as output format (#2497,
2029 * Add `tex_math_dollars` to `multimarkdownExtensions` (#5512).
2030 This form is now supported in multimarkdown,
2031 in addition to `tex_math_double_backslash`.
2033 * Fix `--self-contained` so it works when output format has extensions.
2034 Previously if you used `--self-contained` with `html-smart` or
2035 `html+smart`, it wouldn't work.
2037 * Add template variable `curdir` with working directory
2038 from which pandoc is run (#5464).
2040 * Markdown reader: don't create implicit reference for empty header
2043 * Muse reader: allow images inside link descriptions (Alexander Krotov).
2045 * HTML reader: epub related fixes.
2047 + With epub extensions, check for `epub:type` in addition to `type`.
2048 + Fix problem with noteref parsing which caused block-level
2049 content to be eaten with the noteref.
2050 + Rename `pAnyTag` to `pAny`.
2051 + Refactor note resolution.
2052 + Trim definition list terms (Alexander Krotov).
2056 + Add braces when resolving `\DeclareMathOperator`
2057 (#5441). These seem to be needed for xelatex but not pdflatex.
2058 + Allow newlines in `\mintinline`.
2059 + Pass through unknown listings language as class (#5540).
2060 Previously if the language was not in the list of languages supported
2061 by listings, it would not be added as a class, so highlighting
2062 would not be triggered.
2063 + `rawLaTeXInline`: Include trailing `{}`s in raw latex commands (#5439).
2064 This change affects the markdown reader and other readers that allow raw
2065 LaTeX. Previously, trailing `{}` would be included for unknown
2066 commands, but not for known commands. However, they are sometimes used
2067 to avoid a trailing space after the command. The chances that a `{}`
2068 after a LaTeX command is not part of the command are very small.
2070 * MediaWiki reader: handle multiple attributes in table row (#5471,
2073 * Docx reader: Add support for `w:rtl` (#5545). Elements with this
2074 property are put into Span inlines with `dir="rtl"`.
2076 * DocBook reader: Issue `IgnoredElement` warnings.
2078 * Org reader (Albert Krewinkel):
2080 + Fix planning elements in headers level 3 and higher
2081 (#5494). Planning info is now always placed before
2082 the subtree contents. Previously, the planning info was placed after
2083 the content if the header's subtree was converted to a list, which
2084 happens with headers of level 3 and higher per default.
2085 + Omit, but warn about unknown export options. Unknown export
2086 options are properly ignored and omitted from the output.
2087 + Prefer plain symbols over math symbols (#5483).
2088 Symbols like `\alpha` are output plain and unemphasized, not as math.
2089 + Recognize emphasis after TODO/DONE keyword (#5484).
2093 + Skip unknown elements rather than throwing errors (#5560).
2094 Sometimes custom elements are used (e.g. `id` element
2095 inside `author`); previously the reader would halt with an error.
2096 Now it skips the element and issues an `IgnoredElement` warning.
2097 + Parse notes (#5493, Alexander Krotov).
2098 + Internal improvements (Alexander Krotov).
2100 * OpenDocument writer: Roll back automatic figure/table numbering
2101 (#5474). This was added in pandoc 2.7.2, but it makes it impossible
2102 to use pandoc-crossref. So this has been rolled back for now,
2103 until we find a good solution to make this behavior optional
2104 (or a creative way to let pandoc-crossref and this feature
2107 * New module Text.Pandoc.Writers.Jira, exporting `writeJira` [API
2108 change] (Albert Krewinkel).
2112 + Don't include 'landmarks' if there aren't any.
2113 Previously we could get an empty ol element, which caused
2114 validation errors with epubcheck.
2115 + Ensure unique ids for styleesheets in content.opf (#5463).
2116 + Make stylesheet link compatible with kindlegen (#5466,
2117 Eric Schrijver). Pandoc omitted `type="text/css"` from both
2118 `<style>` and `<rel="stylesheet">` elements in all templates, which
2119 is valid according to the spec. However, Amazon’s kindlegen software
2120 relies on this attribute on `<link>` elements when detecting
2121 stylesheets to include.
2125 + Output video and audio elements depending on file
2126 extension of the image path (Mauro Bieg).
2127 + Emit empty alt tag in figures (#5518, Mauro Bieg).
2128 The same text is already in the <figcaption> and
2129 screen-readers would read it twice, see #4737.
2130 + Don't add variation selector if it's already there.
2131 This fixes round-trip failures.
2132 + Prevent gratuitous emojification on iOS (#5469).
2133 iOS chooses to render a number of Unicode entities, including '↩', as
2134 big colorful emoji. This can be defeated by appending Unicode
2135 VARIATION SELECTOR-15'/'VARIATION SELECTOR-16'. So we now append this
2136 character when escaping strings, for both '↩' and '↔'. If other
2137 characters prove problematic, they can simply be added to
2138 `needsVariationSelector`. + Add `class="heading"` to level 7+ Headers
2139 rendered as `<p>` elements (#5457).
2141 * RST writer: treat Span with no attributes as transparent (#5446).
2142 Previously an Emph inside a Span was being treated as
2143 nested markup and ignored. With this patch, the Span
2148 + Include inline code attributes with `--listings` (#5420).
2149 + Don't produce columns environment unless beamer (#5485).
2150 + Fix footnote in image caption. Regression: the fix for #4683 broke
2152 + Don't highlight code in headings (#5574). This causes
2154 + Use `\mbox` to get proper behavior inside `\sout` (#5529).
2156 * EPUB writer: Fix document section assignments (#5546).
2157 For example, introduction should go in bodymatter, not frontmatter, and
2158 epigraph, conclusion, and afterward should go in bodymatter, not
2159 backmatter. For the full list of assignments, see the manual.
2163 + Add backslashes to avoid unwanted interpretation of
2164 definition list terms as other kinds of block (#554).
2165 + Ensure the code fence is long enough (#5519).
2166 Previously too few backticks were used when the code block
2167 contained an indented line of backticks. (Ditto tildes.)
2168 + Handle labels with integer names (Jesse Rosenthal, #5495).
2169 Previously if labels had integer names, it could produce a conflict
2170 with auto-labeled reference links. Now we test for a conflict and
2171 find the next available integer. This involves adding a new state
2172 variable `stPrevRefs` to keep track of refs used in other document
2173 parts when using `--reference-location=block|section`
2175 * Textile writer: fix closing tag for math output (Albert Krewinkel).
2176 Opening and closing tag for math output match now.
2178 * Org writer: always indent src blocks content by 2 spaces (#5440, Albert
2179 Krewinkel). Emacs always uses two spaces when indenting the content of
2180 src blocks, e.g., when exiting a `C-c '` edit-buffer. Pandoc used to
2181 indent contents by the space-equivalent of one tab, but now always uses
2186 + Use `` `+...+` `` form for inline code.
2187 The old `` `a__b__c` `` yields emphasis inside code in asciidoc.
2188 To get a pure literal code span, use `` `+a__b__c+` ``.
2189 + Use proper smart quotes with asciidoctor (#5487).
2190 Asciidoctor has a different format for smart quotes.
2191 + Use doubled ## when necessary for spans (#5566).
2192 + Ensure correct nesting of strong/emph (#5565): strong
2193 must be the outer element.
2197 + Wrap elements with p when needed (#5570). The JATS spec restricts
2198 what elements can go inside `fn` and `list-item`. So we wrap other
2199 elements inside `<p specific-use="wrapper">` when needed.
2200 + Properly handle footnotes (#5511) according to "best practice."
2201 (Group them at the end in `<fn-group>` and use `<xref>` elements
2203 + Fix citations with PMID so they validate (#5481). This includes
2204 an update to data/jats.csl.
2205 + Ensure validity of `<pub-date>` by parsing the date and
2206 extracting year, month, and day, as expected. Also add an
2207 iso-8601-date attribute automatically.
2208 + Don't use `<break>` element for LineBreak. It is only
2209 allowed in a few special contexts, and not in `<p>` elements.
2210 + Don't make `<string-name>` a child of `<string>`, which is illegal.
2214 + Do not wrap note references into `<sup>` and brackets
2215 (Alexander Krotov). Existing FB2 readers, such as FBReader, already
2216 display links with type="note" as a superscript.
2217 + Use genre metadata field (#5478).
2219 * Muse writer: do not escape empty line after `<br>` (Alexander Krotov).
2221 * Add unicode code point in "Missing character" warning (#5538).
2222 If the character isn't in the console font, the message is pretty useless,
2223 so we show the code point for anything non-ASCII.
2225 * Lua: add Version type to simplify comparisons (Albert Krewinkel).
2226 Version specifiers like `PANDOC_VERSION` and `PANDOC_API_VERSION` are
2227 turned into `Version` objects. The objects simplify version-appropriate
2228 comparisons while maintaining backward-compatibility.
2229 A function `pandoc.types.Version` is added as part of the newly
2230 introduced module `pandoc.types`, allowing users to create version
2233 * pandoc lua module (Albert Krewinkel):
2235 - Fix deletion of nonexistent attributes (#5569).
2236 - Better tests for Attr and AttributeList.
2238 * pandoc.mediabag lua module (Albert Krewinkel):
2240 + Add function `delete` for deleting a single item.
2241 + Add function `empty` for removing all entries.
2242 + Add function `items` for iterating over mediabag.
2244 * Text.Pandoc.Class: Fix handling of `file:` URL scheme in
2245 `downloadOrRead` (#5517, Mauro Bieg). Previously `file:/`
2246 URLs were handled wrongly and pandoc attempted to make HTTP
2247 requests, which failed.
2249 * Text.Pandoc.MIME: add `mediaCategory` [API change] (Mauro Bieg).
2251 * Text.Pandoc.Shared:
2253 + Add `onlySimpleTableCells` [API change]
2254 (Mauro Bieg) and use this to consolidate simple-table detection
2255 (#5524). This fixes an inconsistency in the HTML reader, which did not
2256 treat tables with `<p>` inside cells as simple.
2257 + `metaToJSON`: treat digits starting with 0 as a string, not a number
2258 (#5479). This fixes a regression in YAML metadata in pandoc 2.7.2.
2260 * Text.Pandoc.Logging: Add `IgnoredElement` constructor for
2261 `LogMessage`. `SkippedConetnt` doesn't work for some XML-based
2262 readers which don't have access to parsec source positions.
2264 * Text.Pandoc.Asciify: Add Turkish undotted-i (#5433, Mauro Bieg).
2266 * Improve output of Lua tests (#5499, Albert Krewinkel).
2267 This makes use of tasty-lua, a package to write tests in Lua
2268 and integrate the results into Tasty output. Test output becomes
2269 more informative: individual tests and test groups become visible
2270 in test output. Failures are reported with helpful error messages.
2272 * Lua: add `pandoc.system` module (#5468, Albert Krewinkel).
2273 The `system` Lua module provides utility functions to interact with the
2274 operating- and file system. E.g.
2275 `print(pandoc.system.get_current_directory())`
2278 pandoc.system.with_temporary_directory('tikz', function (dir)
2279 -- write and compile a TikZ file with pdflatex
2283 * LaTeX template: Add pdflang to hypersetup if lang is set (#5443).
2285 * beamer template: Fix using Beamer with geometry (#5505, Daniel Maslowski).
2286 Beamer already loads geometry, so we need to use the `\geometry`
2287 command to set geometry options.
2289 * EPUB2/3 templates: Move inline styles to default epub.css (#5466).
2290 NOTE: Those who use a custom CSS stylesheet with EPUB should
2293 code{ white-space: pre-wrap; }
2294 span.smallcaps{ font-variant: small-caps; }
2295 span.underline{ text-decoration: underline; }
2296 q { quotes: "“" "”" "‘" "’"; }
2297 div.column{ display: inline-block; vertical-align: top; width: 50%; }
2299 * reveal.js template:
2301 + Updates for revealjs 3.8.0 (#5435, ebiim).
2302 + Remove reference to head.min.js (#5448, Winnie Hellmann).
2303 NOTE: users will need to update reveal.js to at least 3.8.0
2304 for their presentations generated with this version of pandoc
2309 + Replace `</>` with literal `/` (#5451).
2310 We use forward-slash for a directory separator in tmpDir,
2311 even on Windows (because that's what tex likes). So we
2312 should not put a backslash between the tmpDir and the
2313 filename on Windows. This is harmless enough in normal
2314 Windows setups, but it breaks on Cygwin.
2315 Thanks to @cc2x for noticing and diagnosing the problem.
2316 + Allow use of `-output-directory` in `--pdf-engine-opt` (#5462).
2317 This is currently possible with `mklatex` and `-outdir`, but
2318 was not yet possible with xelatex and `-output-directory`.
2319 + For PDF via ms/pdfroff, make TOC appear at beginning and in
2320 PDF bookmarks (#5553). Previously the TOC appeared at the end
2321 of the document, and was not bookmarked. To keep it at the end,
2322 add `--pdf-engine-opt=--no-toc-relocation` to your command line.
2324 * Fix broken links in documents (#5473, Shim Myeongseob).
2325 Also, use absolute links to pandoc.org when possible, so that
2326 the links can be followed by people viewing these documents
2329 * Improved sample lua tikz filter in lua-filters docs (#5445,
2330 Matthew Doty). There are three changes:
2332 + It only processes elements which begin with `\begin{tikzpicture}`
2333 + It uses pdf2svg instead of imagemagick to preserve fidelity
2334 + The images produced have transparent backgrounds
2338 + Add note about `title-meta`, `author-meta`, `date-meta` (#5486).
2339 + Fix typo (#5489, Christian Krause).
2341 * add test/tables.xwiki to git and pandoc.cabal (#5498, Mauro Bieg).
2343 * Disable missing-home-modules warning in `stack.yaml`.
2344 Otherwise `stack ghci` fails.
2347## pandoc 2.7.2 (2019-04-05)
2349 * Add XWiki writer (#1800, Derek Chen-Becker).
2350 Add `Text.Pandoc.Writers.XWiki`, exporting `writeXWiki` [API change].
2352 * Dokuwiki Reader: parse single curly brace (#5416, Mauro Bieg).
2354 * Vimwiki reader: improve handling of internal links (#5414).
2355 We no longer append `.html` to link targets, and we add a title
2356 `wikilink`. This mirrors behavior of other wiki readers. Generally
2357 the `.html` extension is not wanted. It may be important for output
2358 to HTML in certain circumstances, but it can always be added using a
2359 filter that matches on links with title `wikilink`.
2361 If your workflow requires the current behavior, here is a lua filter
2362 that will add the `.html` extension:
2366 if el.title == 'wikilink' then
2367 el.target = el.target .. ".html"
2374 + Use format `ipynb` for raw cell where no format given.
2375 + Avoid introducing spurious `.0` on integers in metadata.
2377 * Markdown reader: fenced div takes priority over setext header.
2379 * HTML reader: read `data-foo` attribute into `foo` (#5392).
2380 The HTML writer adds the `data-` prefix for HTML5 for nonstandard
2381 attributes. But the attributes are represented in the AST without
2382 the `data-` prefix, so we should strip this when reading HTML.
2384 * LaTeX reader: Improve autolink detection (#5340).
2386 * PowerPoint writer (Jesse Rosenthal):
2388 + Expand builtin reference doc to model all layouts.
2389 The previous built-in reference doc had only title and content
2390 layouts. Add in a section-header slide and a two-content slide, so
2391 users can more easily modify it to build their own templates.
2392 + Always open up in slide view. When editing a
2393 template/reference-doc, the user might be in Master view, but when
2394 producing a slide show, it is assumed that slide view will be
2396 + Remove `handoutsMasterList` from template presentation.xml
2397 + Fix numerous errors in templating (#5402). Previously, some templates
2398 produced by Office 365 (MacOS) would not render with `--reference-doc`
2399 correctly. We now apply correct shapes for content, and build
2400 shape trees correctly.
2401 + Make default placeholder type for template lookup.
2402 + Apply speaker notes to metadata slide if applicable.
2403 + Test for speaker notes after breaking header.
2404 + Correctly handle notes after section-title header.
2405 Previously, if notes came after a section-title header (ie, a level-1
2406 header in a slide-level=2 presentation), they would go on the next
2407 slide. This keeps them on the slide with the header.
2408 + Internal improvements.
2412 + Use format `ipynb` for raw cell where no format given.
2413 According to nbformat docs, this is supposed to render in every
2414 format. We don't do that, but we at least preserve it as a raw
2415 block in markdown, so you can round-trip.
2416 + Consolidate adjacent raw blocks. Sometimes pandoc creates two
2417 HTML blocks, e.g. one for the open tag and one for a close tag.
2418 If these aren't consolidated, only one will show up in output cell.
2419 + Fixed carry-over of nbformat from metadata.
2420 + Preserve `nbformat_minor` if it's given. This helps with round-tripping.
2424 + Avoid inadvertently creating ?` or !` ligatures (#5407).
2425 These are upside down ? and !, resp.
2426 + Fix footnotes in table caption and cells (#5367). This fixes a
2427 bug wherein footnotes appeared in the wrong order, and with
2428 duplicate numbers, when in table captions and cells.
2429 We now use regular `\footnote` commands, even in the table
2430 caption and the minipages containing cells. Apparently
2431 longtable knows how to handle this.
2433 * HTML writer: Don't add data- prefix to RDFa attributes (#5403).
2435 * JATS writer: Ensure that plain strings go inside `<pub-id>` tag (#5397).
2439 + Better rendering of numbers (#5398). If the number is integral,
2440 we render it as an integral not a float.
2441 + Proper rendering of empty map in YAML metadata (#5398). Should
2442 be `{}`, not empty string.
2443 + Properly escape attributes in Markdown writer (#5369).
2444 + Be sure implicit figures work in list contexts (#5368).
2445 Previously they would sometimes not work: e.g., when they
2446 occurred in final paragraphs in lists that were originally
2447 parsed as Plain and converted later using PlainToPara.
2449 * Docx writer: Use `w:br` without attributes for line breaks (#5377).
2450 We previously added the attribute `type="textWrapping"`, but
2451 this causes problems on Word Online.
2453 * LaTeX template (Andrew Dunning):
2455 + Ensure correct heading/table order (#5365). Improve workaround
2456 (#1658) for tables following headings. The new solution works whether
2457 or not the `indent` variable is enabled.
2458 + Remove `subparagraph` variable. The default is now to use run-in
2459 style for level 4 and 5 headings (`\paragraph` and `\subparagraph`).
2460 To get the previous default behavior (where these were formatted as
2461 blocks, like `\subsubsection`), set the `block-headings` variable.
2462 + Add pandoc to PDF metadata (#5388).
2463 + Group graphics-related code (#5389).
2464 + Move `\setstretch` after front matter (#5179). Ensures that
2465 `\maketitle`, `\tableofcontents`, and so forth are not affected by
2466 changes to line spacing.
2468 * Update data/jats.csl to avoid commas between name-part elements
2471 * Add support for golang (`go`) with `--listings` (#5427).
2473 * Text.Pandoc.Shared - improve `metaToJSON` behavior with numbers.
2474 We now do a better job marshalling numbers from MetaString
2475 or MetaInlines into JSON Number.
2477 * Text.Pandoc.Writers.Shared: `metaValueToJSON`: use Number Values for
2478 integers. Pandoc's MetaValue doesn't have a distinguished number type,
2479 so numbers are put in MetaStrings. If the MetaString consists
2480 entirely of digits, we convert it to a Number. We should probably
2481 consider adding a MetaNumber constructor to MetaValue, for better
2482 round-tripping with JSON etc. This change aids round-tripping in
2483 ipynb metadata fields, like `toc_depth`.
2485 * Text.Pandoc.Class: `fetchItem`: don't treat UNC paths as
2486 protocol-relative URLs (#5127). These are paths beginning `//?/UNC/...`.
2488 * Text.Pandoc.ImageSize: Improve `pdfSize` so it handles
2489 a wider range of PDFs (#4322, with help from Richard Davis).
2491 * Text.Pandoc.Pretty: avoid stack overflow by using strict sum (#5401).
2493 * Fix harmless error in file-scope code (#5422).
2497 + Improve 'header' and 'heading' usage (#5423, Andrew
2498 Dunning). The term 'header' was being used where 'heading'
2499 is more appropriate.
2500 + Add paragraph on options affecting markdown in ipynb.
2502 * stack.yaml - remove -Wmissing-home-modules
2503 This seems to cause problems with stack ghci. Remove RTS options.
2505 * Add ghc-options to cabal.project.
2507 * appveyor.yml - use ghc 8.6.4. Fixes segfault issues on Windows (#5037).
2509 * linux build process: Remove clone of pandoc-citeproc (#5366).
2510 It wasn't being used; cabal.project specifies the version to use.
2512## pandoc 2.7.1 (2019-03-14)
2514 * Add tectonic as an option for --pdf-engine (#5345, Cormac Relf).
2515 Runs tectonic on STDIN instead of a temporary .tex file, so that it
2516 looks in the working directory for `\include` and `\input` like the rest
2517 of the engines. Allows overriding the output directory
2518 args with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`.
2520 * Allow `-o/--output` to be used with `--print-default-data-file`,
2521 `--print-highlighting-style`, `--print-default-template`.
2522 Note that `-o` must occur BEFORE the `--print*` command on the command
2523 line (this is documented, #5357).
2527 + Support `\underline`, `\ul`, `\uline` (#5359, Paul
2528 Tilley). These are parsed as a Span with class `underline`, as
2530 + Ensure that `\Footcite` and `\Footcites` get put in a note.
2534 + Remove sensitivity to `raw_html`, `raw_tex` extensions.
2535 We now include every output format. Pruning is handled by
2537 + Better handling of cell metadata. We now include even complex cell
2538 metadata in the Div's attributes (as JSON, in complex cases, or
2539 as plain strings in simple cases).
2543 + Recurse into native divs for output cell data (#5354).
2544 + Render cell metadata fields from div attributes.
2546 * Docx writer: avoid extra copy of abstractNum and num elements
2547 in numbering.xml. This caused pandoc-produced docx files to
2548 be uneditable using Word Online (#5358).
2550 * Markdown writer: improve handling of raw blocks/inline.
2551 We now emit raw content using `raw_attribute` when no more
2552 direct method is available. Use of `raw_attribute` can be
2553 forced by disabling `raw_html` and `raw_tex`.
2555 * LaTeX writer: Add classes for frontmatter support (#5353, Andrew Dunning)
2556 and remove frontmatter from `scrreprt`.
2560 + Improve readability (#5363, Andrew Dunning).
2561 + Robust section numbering removal (#5351, Andrew Dunning).
2562 Ensures that section numbering does not reappear with custom
2563 section levels. See <https://tex.stackexchange.com/questions/473653/>.
2564 + Better handling of front/main/backmatter (#5348).
2565 In pandoc 2.7 we assumed that every class with chapters would accept
2566 `\frontmatter`, `\mainmatter`, and `\backmatter`. This is not so (e.g.
2567 report does not). So pandoc 2.7 breaks on report class by including an
2568 unsupported command. Instead of the `book-class` variable, we use two
2569 variables, `has-chapters` and `has-frontmatter`, and set these
2570 intelligently in the writer.
2572 * Text.Pandoc.Shared: Improve `filterIpynbOutput`. Ensure that
2573 images are prioritized over text. `best` should include everything
2576 * Tests.Old: specify `--data-dir=../data` to ensure tests can find
2577 data files even if they haven't been installed. Remove old
2578 `pandoc_datadir` environment variable, which hasn't done anything for a
2581 * MANUAL.txt: Add recommendation to use `raw_attribute` with ipynb (#5354).
2583 * Use cmark-gfm-hs 0.1.8 (note that 0.1.7 is buggy).
2585 * Use latest pandoc-citeproc, texmath.
2588## pandoc 2.7 (2019-03-03)
2590 * Use XDG data directory for user data directory (#3582). Instead of
2591 `$HOME/.pandoc`, the default user data directory is now
2592 `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
2593 `$HOME/.local/share` but can be overridden by setting the
2594 environment variable. If this directory is missing, then
2595 `$HOME/.pandoc` is searched instead, for backwards compatibility.
2596 However, we recommend moving local pandoc data files from
2597 `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the
2598 default user data directory remains the same.
2600 * Slide show formats behavior change: content under headers
2601 less than slide level is no longer ignored, but included in
2602 the title slide (for HTML slide shows) or in a slide after
2603 the title slide (for beamer). This change makes possible
2604 2D reveal.js slideshows with content in the top slide on
2605 each stack (#4317, #5237).
2607 * Add command line option `--ipynb-output=all|none|best` (#5339).
2608 Output cells in ipynb notebooks often contain several different
2609 versions of an output, with different MIME types, e.g. an HTML
2610 table and a plain-text fallback. Specifying `--ipynb-output=best`
2611 (the default) ensures that the best version for the output format
2612 is used. `all` includes all versions, and `none` suppresses them
2613 all, leaving output cells empty.
2615 * `asciidoctor` is now an output format separate from `asciidoc`,
2616 to accommodate some minor implementation-specific differences
2617 (currently just in the treatment of display math).
2619 * Add `latexmk` as an option for `--pdf-engine` (#3195).
2620 Note that you can use `--pdf-engine-opt=-outdir=bar` to specify
2621 a persistent temp directory.
2625 + Improve tight/loose list handling (#5285). Previously the
2626 algorithm allowed list items with a mix of Para and Plain, which
2628 + Add newline when parsing blocks in YAML (#5271). Otherwise last
2629 block gets parsed as a Plain rather than a Para. This is a
2630 regression in pandoc 2.x. This patch restores pandoc 1.19
2632 + Make `yamlToMeta` respect extensions (#5272, Mauro Bieg).
2633 This adds a `ReaderOptions` parameter to `yamlToMeta` [API change].
2634 + Fix bug parsing fenced code blocks (#5304). Previously parsing
2635 would break if the code block contained a string of backticks of
2636 sufficient length followed by something other than end of line.
2638 * LaTeX reader: don't let `\egroup` match `{`. `braced` now actually
2639 requires nested braces. Otherwise some legitimate command and
2640 environment definitions can break.
2642 * Docx reader (Jesse Rosenthal):
2644 + Rename `getDocumentPath` as `getDocumentXmlPath`.
2645 + Use field notation for setting `ReaderEnv`.
2646 + Figure out `document.xml` path once at the beginning of parsing, and
2647 add it to the environment, so we can avoid repeated lookups.
2648 + Dynamically determine main document xml path (#5277).
2649 The desktop Word program places the main document file in
2650 `word/document.xml`, but the online word places it in
2651 `word/document2.xml`. This file path is actually stated in the root
2652 `_rels/.rels` file, in the `Relationship` element with an
2653 `http://../officedocument` type.
2654 + Fix paths in archive to prevent Windows failure (#5277).
2655 Some paths in archives are absolute (have an opening slash) which, for
2656 reasons unknown, produces a failure in the test suite on MS
2657 Windows. This fixes that by removing the leading slash if it exists.
2658 + Add comments to aid code readability.
2659 + Trim space inside the last inline (#5273).
2660 + Unwrap sdt elements in footnotes and comments (#5302).
2662 * Muse reader (Alexander Krotov):
2664 + Test that block level markup does not break `<verbatim>`.
2665 + Add secondary note support.
2667 * ipynb reader: handle images referring to attachments. Previously
2668 we didn't strip off the attachment: prefix, so even though the
2669 attachment was available in the mediabag, pandoc couldn't find it.
2673 + Fix parsing of figures (#5321). This ensures that a figure
2674 containing a single image is parsed as a pandoc "implicit
2675 figure" (i.e., a Para with a single Image whose title attribute
2676 begins with `fig:`). More complex figures will still be parsed
2678 + Support `fig-group` block element (#5317).
2679 + Handle citations with multiple references (#5310). The `rid`
2680 attribute can have a space-separated list of ids.
2682 * AsciiDoc Writer: Add `writeAsciiDoctor` [API change, Tarik Graba].
2683 Handle display math appropriately for Asciidoctor.
2685 * JATS writer: wrap figure caption in `<p>` to fix validation (#5290,
2690 + Implement WAI-ARIA roles for (end)notes, citations, and
2691 bibliography (#4213). Note that doc-biblioref is only used when
2692 link-citations produces links, since it belongs on links.
2693 + Include content (including speaker notes) in title slides
2698 + Ensure final newline.
2699 + Only include metadata under `jupyter` field.
2700 + Don't create attachments for images with absolute URIs,
2701 including data: URIs (#5303).
2702 + Keep plain text fallbacks in output even if a richer format is
2703 included (#5293). We don't know what output format will be needed.
2704 See the `--ipynb-output` command line option for a way to control
2705 what formats are included in the output.
2707 * Markdown writer: use `markdown="1"` when appropriate for Divs:
2708 when `native_divs` and `markdown_in_html_blocks` are disabled
2709 but `raw_html` and `markdown_attribute` are enabled.
2713 + Use right fold for `escapeString`. This is more elegant than
2714 the explicit recursive code we were using.
2715 + Avoid `{}` after control sequences when escaping.
2716 `\ldots{}.` doesn't behave as well as `\ldots.` with the latex
2717 ellipsis package. This patch causes pandoc to avoid emitting
2718 the `{}` when it is not necessary. Now `\ldots` and other
2719 control sequences used in escaping will be followed by either
2720 a `{}`, a space, or nothing, depending on context.
2721 + For beamer, include contents under headers superordinate to
2722 slidelevel (#4317). Currently we keep the fancy title slide, and
2723 add a new slide with the same title and whatever content was
2726 * Powerpoint writer (Jesse Rosenthal): support underlines.
2727 Use span with single class "underline" as in docx writer.
2729 * Muse writer: escape secondary notes (Alexander Krotov).
2731 * FB2 writer: add section identifiers support (#5229, John KetzerX).
2733 * Make `--fail-if-warnings` work for PDF output (#5343).
2735 * Lua filters (Albert Krewinkel):
2737 + Load module `pandoc` before calling `init.lua` (#5287). The file
2738 `init.lua` in pandoc's data directory is run as part of pandoc's
2739 Lua initialization process. Previously, the `pandoc` module was
2740 loaded in `init.lua`, and the structure for marshaling was
2741 set up after. This allowed simple patching of element
2742 marshaling, but made using `init.lua` more difficult. Now, all
2743 required modules are now loaded before calling `init.lua`. The
2744 file can be used entirely for user customization. Patching
2745 marshaling functions, while discouraged, is still possible via
2747 + All Lua modules bundled with pandoc, i.e., `pandoc.List`,
2748 `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the
2749 `pandoc` module. They are assigned to the fields `List`, `mediabag`,
2750 `utils`, and `text`, respectively.
2752 * Text.Pandoc.Lua (Albert Krewinkel):
2754 + Split `StackInstances` into smaller Marshaling modules.
2755 + Get `CommonState` from Lua global. This allows more control over
2756 the common state from within Lua scripts.
2760 + Support the `subject` metadata variable (#5289, Pascal Wagler).
2761 + Add `\frontmatter`, `\mainmatter`, `\backmatter`
2762 for book classes (#5306).
2764 * epub3 template: Add titlepage class to section (#5269).
2766 * HTML5 template: Add ARIA role `doc-toc` for table of contents (#4213).
2768 * Make `--metadata-file` use selected extensions (#5279, #5272, Mauro Bieg).
2770 * Text.Pandoc.Shared:
2772 + Remove `withTempDir` [API change].
2773 + Add new exported function `defaultUserDataDirs` [API change].
2774 + Add `filterIpynbOutput` [API change].
2775 + `compactify`: Avoid lists with a mix of Plain and Para elements
2778 * Text.Pandoc.Translations: reorder alphabetically and remove `Author`
2779 (#5334, Mauro Bieg).
2781 * Text.Pandoc.Extensions:
2783 + More carefully groom ipynb default extensions.
2784 + Add `all_symbols_escapable` to `githubMarkdownExtensions`.
2788 + Use system temp directory when possible (#1192). Previously we
2789 created temp dirs in the working directory, partly (a) because
2790 there were problems using the system temp directory on Windows,
2791 when their pathnames included tildes, and partly (b) because
2792 programs like `epstopdf.pl` would not be allowed to write to
2793 directories outside the working directory in restricted mode. We
2794 now (a) use the system temp dir except when the path includes
2795 tildes, and (b) set `TEXMFOUTPUT` when creating the PDF, so that
2796 subsidiary programs can use the system temp directory. This
2797 addresses problems that occurred when pandoc was used in a
2798 synced directory (such as Dropbox).
2799 + Change types of subsidiary functions to PandocIO, to allow
2800 warnings to be threaded through (#5343).
2802 * Text.Pandoc.MIME: add WebP (#5267, Mauro Bieg).
2804 * Tests: avoid calling `findPandoc` multiple times.
2806 * Old tests: remove need for temp files by using `pipeProcess`.
2808 * Added simple ipynb reader/writer tests (#5274).
2810 * Rearrange `--help` output in a more rational way, with common
2811 options at the beginning and options grouped by function (#5336).
2813 * trypandoc: Add JATS and other missing formats (Arfon Smith, #5291).
2815 * Add missing copyright notices and remove license boilerplate (#4592,
2818 * Use latest basement/foundation on 32bit windows.
2820 * Use latest skylighting (#5328). Custom syntax definitions no
2821 longer try to load `language.dtd`.
2823 * Require texmath 0.11.2.1
2825 * Use latest pandoc-citeproc (0.16.1.1).
2829 + Clarify variable substitution indentation in templates (#5338,
2830 Agustín Martín Barbero).
2831 + Reorder custom-styles section (#5324, Mauro Bieg).
2833## pandoc 2.6 (2019-01-30)
2835 * Support ipynb (Jupyter notebook) as input and output format.
2837 + Add `ipynb` as input and output format (extension `.ipynb`).
2838 + Added Text.Pandoc.Readers.Ipynb [API change].
2839 + Added Text.Pandoc.Writers.Ipynb [API change].
2840 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
2842 + Depend on ipynb library.
2843 + Note: there is no template for ipynb.
2845 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
2846 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
2849 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
2850 extension. Task lists are supported from markdown and gfm input.
2851 They should work, to some degree, in all output formats, though in
2852 most formats you'll get a bullet list with a unicode character for
2853 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
2854 box is used as the list marker. API changes:
2856 + Added constructor `Ext_task_lists` to `Extension`.
2857 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
2860 * Allow some command line options to take URL in addition to FILE.
2861 `--include-in-header`, `--include-before-body`, `--include-after-body`.
2865 + Handle empty `start` attribute (see #5162).
2866 + Treat `textarea` as a verbatim environment (#5241) and preserve
2871 + Change treatment of `number-lines` directive (Brian Leung,
2872 #5207). Directives of this type without numeric inputs should
2873 not have a `startFrom` attribute; with a blank value, the
2874 writers can produce extra whitespace.
2875 + Removed superfluous `sourceCode` class on code blocks (#5047).
2876 + Handle `sourcecode` directive as synonynm for `code` (#5204).
2880 + Remove `sourceCode` class for literate Haskell code blocks
2881 (#5047). Reverse order of `literate` and `haskell` classes on
2882 code blocks when parsing literate Haskell, so `haskell` is
2884 + Treat `<textarea>` as a verbatim environment (#5241).
2888 + Handle `minlevel` option differently (#5190, Brian Leung).
2889 When `minlevel` exceeds the original minimum level observed in
2890 the file to be included, every heading should be shifted
2892 + Allow for case of `:minlevel == 0` (#5190).
2893 + Fix treatment of links to images (#5191, Albert Krewinkel).
2894 Links with descriptions which are pointing to images are no
2895 longer parsed as inline images, but as links.
2896 + Add support for #+SELECT_TAGS (Brian Leung).
2897 + Separate filtering logic from conversion function (Brian Leung).
2899 * TWiki reader: Fix performance issue with underscores (#3921).
2901 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
2902 We may not still be exactly matching mediawiki's algorithm.
2906 + Remove `sourceCode` class for literate Haskell code blocks
2907 (#5047). Reverse order of `literate` and `haskell` classes on
2908 code blocks when parsing literate Haskell, so `haskell` is
2910 + Support `\DeclareMathOperator` (#5149).
2911 + Support `\inputminted` (#5103).
2912 + Support `\endinput` (#5233).
2913 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
2914 was interpreted as a file extension, leading pandoc not to add
2915 `.tex` (and thus not to find the file). The new behavior matches
2920 + Use `mapLeft` from Shared instead of defining own.
2922 * Docx reader (Jesse Rosenthal):
2924 + Handle level overrides (#5134).
2928 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
2929 Also supports additional core properties: `subject`, `lang`,
2930 `category`, `description`.
2931 + Make Level into a real type, instead of an alias for a tuple
2934 * ICML writer (Mauro Bieg):
2936 + Support custom-styles (#5137, see #2106).
2937 + Support unnumbered headers (#5140).
2939 * Texinfo writer: Use header identifier for anchor if present (#4731).
2940 Previously we were overwriting an existing identifier with a new one.
2942 * Org writer: Preserve line-numbering for example and code blocks
2945 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
2946 in HTML and PDF as a unicode minus sign.
2948 * Ms writer: Ensure we have a newline after .EN in disply math (#5251).
2950 * RST writer: Don't wrap simple table header lines (#5128).
2952 * Asciidoc writer: Shorter delimiters for tables, blockquotes
2953 (#4364). This matches asciidoctor reference docs.
2955 * Dokuwiki writer: Remove automatic `:` prefix before internal image
2956 links (#5183, Damien Clochard). This prevented users from making
2957 relative image links.
2959 * Zimwiki writer: remove automatic colon prefix before internal
2960 images (#5183, Damien Clochard).
2962 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
2963 (#5105). Captions used to have the word 'caption' prepended; this
2964 has been removed. Also, 'thumb' is used instead of 'frame' to
2965 allow images to be resized.
2969 + Ensure that we don't get > 2 levels of section nesting,
2970 even with slide level > 2 (#5168).
2971 + If slide level == N but there is no N-level header, make
2972 sure the next header with level > N gets treated as a slide
2973 and put in a section, rather than remaining loose (#5168).
2977 + Make `plain` RawBlocks pass through in `plain` output.
2978 + Include needed whitespace after HTML figure (#5121).
2979 We use HTML for a figure in markdown dialects that can't
2980 represent it natively.
2982 * Commonmark writer:
2984 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
2985 + Implement `--toc` (`writerTableOfContents`)
2986 in commonmark/gfm writers (#5172).
2990 + Ensure that picture transforms are done on metadata too.
2991 + Small fixes to `nav.xhtml`:
2992 Add 'landmarks' id attribute to the landmarks nav.
2993 Replace old default CSS removing numbers from ol.toc li
2994 with new rules that match `nav#toc ol, nav#landmarks ol`.
2995 We keep the `toc` class on `ol` for backwards compatibility.
2999 + Make raw content marked `beamer` pass through in `beamer`
3000 output (pandoc/lua-filters#40).
3001 + Beamer: avoid duplicated `fragile` property in some cases
3003 + Add `#` special characters for listings (#4939).
3004 This character needs special handling in `\lstinline`.
3006 * RTF writer: use `toTableOfContents` from Shared to replace
3007 old duplicated code.
3011 + Support custom properties. Also supports additional core
3012 properties: `subject`, `category`, `description` (#5252,
3013 Agustín Martín Barbero).
3014 + Use `toTableOfContents` from Shared to replace old duplicated code.
3016 * ODT writer (Augustín Martín Barbero):
3018 + Fix typo in custom properties (#2839).
3019 + Improve standard properties, including the following core
3020 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
3021 `keywords`, `initial-creator` (from authors), `creation-date`
3022 (actual creation date) (#5252).
3026 + Allow '-' in filenames for custom lua writers (#5187).
3027 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
3028 + sample.lua: Add a missing `>` (MichaWiedenmann).
3030 * reveal.js template: Add `zoomKey` config (#4249).
3032 * HTML5 template: Remove unnecessary type="text/css" on style and
3033 link for HTML5 (#5146).
3035 * LaTeX template (Andrew Dunning, except where noted):
3037 + Prevent fontspec from scaling `mainfont` to match the default
3038 font, Latin Modern. A main font set to 12pt could
3039 previously appear between 11pt to 13pt depending on its design.
3040 To return to the earlier rendering, use `-V
3041 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
3042 + Display monospaced fonts without TeX ligatures when using
3043 `--pdf-engine=lualatex`. It now matches the behaviour of other
3044 engines (#5212, #5218).
3045 + Remove the deprecated `romanfont` variable. The functionality of
3046 `mainfont` is identical (#5218).
3047 + Render `\subtitle` with the standard document classes.
3048 Previously, `subtitle` only appeared when using the KOMA-Script
3049 classes or Beamer (#5213, #5244).
3050 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
3051 several language selection problems, notably with retaining
3052 French spacing conventions when switching to a verbatim
3053 environment or another language; and in printing Greek text
3054 without hyphenation (#5193).
3055 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
3056 available, improving the appearance of URLs by allowing them to
3057 break at additional points (#5193).
3058 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
3059 to correct heading levels in PDF bookmarks: see the [KOMA-Script
3060 3.26 release notes](https://komascript.de/release3.26) (#5193).
3061 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
3062 avoid a possible error when using additional packages alongside
3063 footnotes in tables (#5193, closes #4861).
3064 + Remove obsolete `fixltx2e` package, which has no functionality
3065 with TeX Live 2015 or later (#5193).
3066 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
3067 + Restrict `institute` variable to Beamer (#5219).
3068 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
3069 package if available to make footnotes in tables compatible
3070 with `hyperref` (#5234).
3071 + Number parts and chapters in book classes only if the
3072 `numbersections` variable is set, for consistency with other
3073 output formats. To return to the previous behaviour, use
3074 `-V numbersections -V secnumdepth=0` (#5235).
3075 + Reindent file (#5193).
3076 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
3077 + Set default listings language for lua, assembler (#5227, John
3078 MacFarlane). Otherwise we get an error when trying to compile code
3079 with lua or assembler code. To change the default dialect
3080 (currenty 5.3 for lua and x86masm for assembler), you can use
3081 `--include-in-header` to inject something like
3082 `\lstset{defaultdialect=[5.2]Lua}`.
3084 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
3085 in an instance of PandocMonad, like the other readers and
3086 writers. [API change]
3088 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
3089 in an instance of PandocMonad, like the other readers and
3090 writers. [API change]
3092 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
3093 for `PandocError`. [API change]
3095 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
3096 This is refactored out from the Markdown writer.
3097 It can be used in other writers to create a table of contents.
3099 * Improve error messages for UTF-8 decoding errors. Now we give
3100 the filename and byte offset (#4765).
3102 * Text.Pandoc.XML: Strip out illegal XML characters in
3103 `escapeXMLString` (#5119).
3105 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
3106 The implementation of `pipeProcess` was rewritten to fix sporadic
3107 failures caused by prematurely closed pipes.
3109 * Use `safeRead` instead of `read` everywhere in the code
3110 (John MacFarlane, Mauro Bieg, #5162, #5180).
3112 * Text.Pandoc.SelfContained: Decompress `.svgz` when
3113 converting to `data:` URI (#5163, Alexander Krotov).
3115 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
3116 (#5175, Alexander Krotov). [API change]
3118 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
3119 When pandoc is compiled with ghc 8.6, Windows paths are treated
3120 differently, and paths beginning `\\server` no longer work.
3121 This commit rewrites such patsh to `\\?\UNC\server` which works.
3122 The change operates at the level of argument parsing, so it
3123 only affects the command line program.
3125 * Simplify/fix reading of `--metadata` values on command line
3126 to avoid problems relating to hvr/HsYAML#7 (#5177).
3128 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
3129 Krewinkel). Incorrect types to pandoc element constructors are
3130 automatically converted to the correct types when possible. This was
3131 already done for most constructors, but conversions are now also done
3132 for nested types (like lists of lists).
3134 * Removed custom Setup.hs, use build-type: simple. The only thing we
3135 gained from the custom build was automatic installation of the man
3136 page when using 'cabal install'. But custom builds cause problems,
3137 e.g., with cross-compilation. Installation of the man page is
3138 better handled by packagers. Note to packagers (e.g. Debian): it
3139 may be necessary to add a step installing the man page with the
3142 * Allow latest http-client, tasty, zip-archive, Glob.
3144 * Require skylighting >= 0.7.5, adding support for sml, J,
3147 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
3148 works well with cabal v2.
3152 + Use button for installer links (John MacFarlane, Mauro Bieg,
3154 + Fix links and bump required stack version (max).
3155 + Improve installation notes on associated software (Andrew
3156 Dunning). Includes explanation of how to install related tools
3157 with package managers (since the method of installing
3158 `rsvg-convert` is not obvious).
3160 * doc/org.md: improve documentation of org features (Albert
3163 * doc/lua-filters.md: use 3rd level headers for module fields.
3167 + Clarify automatic identifiers (#5201). We remove
3168 non-alphanumerics. This includes, e.g., emojis.
3169 + Fix example for Div with id (Geoffrey Ely).
3170 + Update list of LaTeX packages used.
3171 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
3172 + Mention `raw_attribute` in documentation for `raw_html` and
3173 `raw_tex` (#5240, thanks to @eiro).
3174 + Clarify that `$sep$` must come right before `$endfor$` in templates
3176 + Document metadata support for docx, odt, pptx writers (Agustín
3178 + Reorganize template variables (#5249, Andrew Dunning).
3179 Add additional headings to categorize variables, and
3180 alphabetize when there is large number; add more examples.
3181 + Document `date-meta` template variable (#5260, Tristan Stenner).
3183 * trypandoc: Fix CSS and viewport.
3185## pandoc 2.5 (2018-11-27)
3187 * Text.Pandoc.App: split into several unexported submodules (Albert
3188 Krewinkel): Text.Pandoc.App.FormatHeuristics,
3189 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
3190 Text.Pandoc.App.OutputSettings. This is motivated partly by the
3191 desire to reduce recompilations when something is modified,
3192 since App previously depended on virtually every other module.
3194 * Text.Pandoc.Extensions
3196 + Semantically, `gfm_auto_identifiers` is now a modifier of
3197 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
3198 be turned on, and then the type of identifier produced depends on
3199 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
3200 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
3201 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
3202 GitHub doesn't seem to strip non-ascii characters any more.
3204 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
3206 + Test AST object equality via Haskell (#5092). Equality of Lua
3207 objects representing pandoc AST elements is tested by unmarshalling
3208 the objects and comparing the result in Haskell.
3209 A new function `equals` which performs this test has been added to the
3210 `pandoc.utils` module.
3211 + Improve stringify. Meta value strings (MetaString)
3212 and booleans (MetaBool) are now converted to the literal string and the
3213 lowercase boolean name, respectively. Previously, all values of these
3214 types were converted to the empty string.
3216 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
3217 already exists (Alexander Krotov).
3219 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
3220 or beginning of line (#5050).
3222 * Text.Pandoc.Readers.Markdown
3224 + Fix parsing of citations, quotes, and underline emphasis
3225 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
3226 and underline emphasis were no longer recognized after certain
3227 symbols, like parentheses (#5099, #5053).
3228 + In pandoc 2.4, a soft break after an abbreviation would be
3229 relocated before it to allow for insertion of a nonbreaking
3230 space after the abbreviation. This behavior is here reverted.
3231 A soft break after an abbreviation will remain, and no nonbreaking
3232 space will be added. Those who care about this issue should take care not
3233 to end lines with an abbreviation, or to insert nonbreaking spaces
3236 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
3237 `<body>` (Alexander Krotov). Some libraries include custom elements
3240 * Text.Pandoc.Readers.HTML
3242 + Allow `tfoot` before body rows (#5079).
3243 + Parse `<small>` as a Span with class "small" (#5080).
3244 + Allow thead containing a row with `td` rather than `th` (#5014).
3246 * Text.Pandoc.Readers.LaTeX
3248 + Cleaned up handling of dimension arguments. Allow decimal points,
3250 + Don't allow arguments for verbatim, etc.
3251 + Allow space before bracketed options.
3252 + Allow optional arguments after `\\` in tables.
3253 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
3254 but know that these font changing commands take no arguments.
3256 * Text.Pandoc.Readers.Muse
3258 + Trim whitespace before parsing grid table cells (Alexander Krotov).
3259 + Add grid tables support (Alexander Krotov).
3261 * Text.Pandoc.Shared
3263 + For bibliography match Div with id `refs`, not class `references`.
3264 This was a mismatch between pandoc's docx, epub, latex, and markdown
3265 writers and the behavior of pandoc-citeproc, which actually looks for a
3266 div with id `refs` rather than one with class `references`.
3267 + Exactly match GitHub's identifier generating algorithm (#5057).
3268 + Add parameter for `Extensions` to `uniqueIdent` and
3269 `inlineListToIdentifier` (#5057). [API change]
3270 This allows these functions to be sensitive to the settings of
3271 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
3272 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
3273 also means that `gfm_auto_identifiers` can now be used in all formats.
3275 * Text.Pandoc.Writers.AsciiDoc
3277 + Use `.`+ as list markers to support nested ordered lists (#5087).
3278 + Support list number styles (#5089).
3279 + Render Spans using `[#id .class]#contents#` (#5080).
3281 * Text.Pandoc.Writers.CommonMark
3283 + Respect `--ascii` (#5043, quasicomputational).
3284 + Make sure `--ascii` affects quotes, super/subscript.
3286 * Text.Pandoc.Writers.Docx
3288 + Fix bookmarks to headers with long titles (#5091).
3289 Word has a 40 character limit for bookmark names. In addition, bookmarks
3290 must begin with a letter. Since pandoc's auto-generated identifiers may
3291 not respect these constraints, some internal links did not work. With
3292 this change, pandoc uses a bookmark name based on the SHA1 hash of the
3293 identifier when the identifier isn't a legal bookmark name.
3294 + Add bookmarks to code blocks (Nikolay Yakimov).
3295 + Add bookmarks to images (Nikolay Yakimov).
3296 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
3298 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
3301 <meta name="calibre:series" content="Classics on War and Politics"/>
3303 are now included from an epub XML metadata file. You can also include
3304 this information in your YAML metadata, like so:
3307 series: Classics on War and Policitics
3309 In addition, ibooks-specific metadata can now be included via an XML
3310 file. (Previously, it could only be included via YAML metadata, see
3313 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `"` outside of
3316 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
3317 This avoids splitting up the output unnecessarily into separate elements.
3319 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
3320 if `writerIncremental` is True (#5072).
3322 * Text.Pandoc.Writers.Muse (Alexander Krotov).
3324 + Output tables as grid tables if they have multi-line cells.
3325 + Indent simple tables only on the top level.
3326 + Output tables with one column as grid tables.
3327 + Add support for `--reference-location`.
3328 + Internal improvements.
3330 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
3331 #5095). This was a regression in pandoc 2.4.
3333 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
3335 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
3337 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
3338 when there are several choices for a particular character.
3340 * data/abbreviations
3342 + Add additional abbreviations (Andrew Dunning)
3343 Many of these borrowed from the Chicago Manual of Style 10.42,
3344 'Scholarly abbreviations'.
3348 + Asciidoc template: add :lang: to title header is lang is set in
3351 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
3352 Disabling the flag will cause derivation of ToJSON and FromJSON
3353 instances via GHC Generics instead of Template Haskell. The flag is
3354 enabled by default, as deriving via Generics can be slow (see #4083).
3358 + Tweaked drop-down lists.
3359 + Put link to site in footer.
3360 + Preselect output format.
3361 + Update on change of in or out format.
3362 + Add man input format.
3366 + Fix outdated description of latex_macros extension.
3367 + Clarified placement of bibliography.
3368 + Added "A note on security."
3369 + Fix note on curly brace syntx for locators.
3370 + Document new explicit syntax for citeproc locators.
3371 + Remove confusing cross-links for some extensions.
3372 + Don't put pandoc in code ticks in heading.
3373 + Document that `--ascii` works for gfm and commonmark too.
3374 + Add `man` to `--from` options.
3376 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
3379## pandoc 2.4 (2018-11-03)
3383 * New input format `man` (Yan Pashkovsky, John MacFarlane).
3387 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
3388 via the new `writerPreferAscii` field in `WriterOptions`.
3389 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
3390 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
3391 Previously the to-ascii translation was done in Text.Pandoc.App,
3392 and thus not available to those using the writer functions
3395 * `--ascii` now works with Markdown output. HTML5 character reference
3398 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
3399 guaranteed, but the writer will use commands like `\"{a}` and `\l`
3400 whenever possible, to avoid emitting a non-ASCII character.
3402 * For HTML5 output, `--ascii` now uses HTML5 character reference
3403 entities rather than numerical entities.
3405 * Improved detection of format based on extension (in Text.Pandoc.App).
3406 We now ensure that if someone tries to convert a file for a
3407 format that has a pandoc writer but not a reader, it won't just
3408 default to markdown.
3410 * Add viz. to abbreviations file (#5007, Nick Fleisher).
3412 * AsciiDoc writer: always use single-line section headers,
3413 instead of the old underline style (#5038). Previously the single-line
3414 style would be used if `--atx-headers` was specified, but
3415 now it is always used.
3417 * RST writer: Use simple tables when possible (#4750).
3419 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
3420 quasicomputational). Previously, the writer would unconditionally
3421 emit HTML output for subscripts, superscripts, strikeouts (if the
3422 strikeout extension is disabled) and small caps, even with
3423 `raw_html` disabled. Now there are plain-text (and, where
3424 possible, fancy Unicode) fallbacks for all of these corresponding
3425 (mostly) to the Markdown fallbacks, and the HTML output is only
3426 used when `raw_html` is enabled.
3428 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
3429 This allows raw openxml blocks and inlines to be used in the pptx
3430 writer. Caveats: (1) It's up to the user to write
3431 well-formed openxml. The chances for corruption, especially with
3432 such a brittle format as pptx, is high. (2) Because of
3433 the tricky way that blocks map onto shapes, if you are using
3434 a raw block, it should be the only block on a slide
3435 (otherwise other text might end up overlapping it). (3) The
3436 pptx ooxml namespace abbreviations are different from the
3437 docx ooxml namespaces. Again, it's up to the user to get it
3438 right. Unzipped document and ooxml specification should be
3441 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
3442 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
3443 we tell katex to convert the contents of span elements with
3444 class "math". Since math has already been identified, this
3445 avoids wasted time parsing for LaTeX delimiters. Note, however,
3446 that this may yield unexpected results if you have span elements
3447 with class "math" that don't contain LaTeX math.
3448 Also, use latest version of KaTeX by default (0.9.0).
3450 * The man writer now produces ASCII-only output, using groff escapes,
3455 + Add title, author and date to metadata; any remaining
3456 metadata fields are added as `meta:user-defined` tags.
3457 + Implement table caption numbering (#4949, Nils Carlson).
3458 Captioned tables are numbered and labeled with format "Table 1:
3459 caption", where "Table" is replaced by a translation, depending
3460 on the value of `lang` in metadata. Uncaptioned tables are not
3462 + OpenDocument writer: Implement figure numbering in captions (#4944,
3463 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
3464 The format in the caption is "Figure 1: caption" and so on
3465 (where "Figure" is replaced by a translation, depending on the
3466 value of `lang` in the metadata). Captioned figures are numbered
3467 consecutively and uncaptioned figures are not enumerated. This
3468 is necessary in order for LibreOffice to generate an
3469 Illustration Index (Table of Figures) for included figures.
3471 * RST reader: Pass through fields in unknown directives as div attributes
3472 (#4715). Support `class` and `name` attributes for all directives.
3474 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
3475 Brian Leung). Headers with the corresponding tags should not
3476 appear in the output.
3478 * Log warnings about missing title attributes now include a
3479 suggestion about how to fix the problem (#4909).
3481 * Lua filter changes (Albert Krewinkel):
3483 + Report traceback when an error occurs. A proper Lua traceback is
3484 added if either loading of a file or execution of a filter
3485 function fails. This should be of help to authors of Lua filters
3486 who need to debug their code.
3488 + Allow access to pandoc state (#5015). Lua filters and custom
3489 writers now have read-only access to most fields of pandoc's
3490 internal state via the global variable `PANDOC_STATE`.
3492 + Push ListAttributes via constructor (Albert Krewinkel).
3493 This ensures that ListAttributes, as present in OrderedList elements,
3494 have additional accessors (viz. `start`, `style`, and `delimiter`).
3496 + Rename ReaderOptions fields, use snake_case. Snake case is used
3497 in most variable names, using camelCase for these fields was an
3498 oversight. A metatable is added to ensure that the old field
3499 names remain functional.
3501 + Iterate over AST element fields when using `pairs`. This makes
3502 it possible to iterate over all ield names of an AST element by
3503 using a generic `for` loop with pairs`:
3505 for field_name, field_content in pairs(element) do
3509 Raw table fields of AST elements should be considered an
3510 implementation detail and might change in the future. Accessing
3511 element properties should always happen through the fields
3512 listed in the Lua filter docs.
3514 Note that the iterator currently excludes the `t`/`tag` field.
3516 + Ensure that MetaList elements behave like Lists. Methods usable
3517 on Lists can also be used on MetaList objects.
3519 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
3520 object to the constructor `pandoc.MetaList` now returns the
3521 passed list as a MetaList. This is consistent with the
3522 constructor behavior when passed an (untagged) list.
3524 * Custom writers: Custom writers have access to the global variable
3525 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
3526 a userdata wrapper around the full pandoc AST and exposes two
3527 fields, `meta` and `blocks`. The field content is only
3528 marshaled on-demand, performance of scripts not accessing the
3529 fields remains unaffected.
3533 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
3535 * Text.Pandoc.Shared:
3537 + Export `splitSentences`. This was previously duplicated in the Man and
3539 + Add `ToString` typeclass (Alexander Krotov).
3541 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
3543 * Text.Pandoc.Parsing
3545 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
3546 + Generalize `readWithM` from `[Char]` to any `Char` Stream
3547 that is a `ToString` instance (Alexander Krotov).
3549 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
3551 * Text.Pandoc.XML: add `toHtml5Entities`.
3553 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
3556 * Text.Pandoc.Writers.Shared
3558 + Add exported functions `toSuperscript` and
3559 `toSubscript` (quasicomputational, #4528).
3560 + Remove exported functions `metaValueToInlines`,
3561 `metaValueToString`. Add new exported functions
3562 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
3563 `lookupMetaString`. Use these whenever possible for uniformity
3564 in writers (Mauro Bieg, #4907). (Note that
3565 removed function `metaValueToInlines` was in previous
3567 + Add `metaValueToString`.
3571 + Expose more useful internals (Albert Krewinkel):
3573 - `runFilterFile` to run a Lua filter from file;
3574 - data type `Global` and its constructors; and
3575 - `setGlobals` to add globals to a Lua environment.
3577 This module also contains `Pushable` and `Peekable` instances
3578 required to get pandoc's data types to and from Lua. Low-level
3579 Lua operation remain hidden in Text.Pandoc.Lua.
3581 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
3583 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
3584 `apply` (Albert Krewinkel).
3586### Bug fixes and under-the-hood improvements
3588 * Text.Pandoc.Parsing
3590 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
3591 + Rewrite `uri` without `withRaw` (Alexander Krotov).
3592 + Generalize `parseFromString` and `parseFromString'` to any
3593 streams with Char token (Alexander Krotov)
3594 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
3596 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
3599 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
3604 + Work around HXT limitation for --syntax-definition with windows
3606 + Always preserve tabs for man format. We need it for tables.
3607 + Split command line parsing code into a separate unexported
3608 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
3610 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
3613 * New unexported module Text.Pandoc.RoffChar, provided character
3614 escape tables for roff formats.
3616 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
3617 accept processing instructions (#3123, regression since 2.0).
3619 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
3620 account for empty lists (Alexander Krotov).
3622 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
3623 headerless table (#4382).
3625 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
3626 blocks (Brian Leung).
3628 * Text.Pandoc.Readers.Vimwiki:
3630 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
3632 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
3634 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
3635 `[Char]` (Alexander Krotov).
3637 * Text.Pandoc.Readers.LaTeX
3639 + Allow space at end of math after `\` (#5010).
3640 + Add support for `nolinkurl` command (#4992, Brian Leung).
3641 + Simplified type on `doMacros'`.
3642 + Tokenize before pulling tokens, rather than after (#4408). This
3643 has some performance penalty but is more reliable.
3644 + Make macroDef polymorphic and allow in inline context.
3645 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
3646 I have actually seen tex like this in the wild.
3647 + Improved parsing of `\def`, `\let`. We now correctly parse:
3657 + Improve parsing of `\def` argspec.
3658 + Skip `\PackageError` commands (see #4408).
3659 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
3660 so no raw tex should result unless we explicitly say `+raw_tex`.
3661 Previously some raw commands did make it through.
3662 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
3663 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
3664 Text.Pandoc.Readers.LaTeX.Lang (unexported).
3665 + Simplified accent code using unicode-transforms.
3666 New dependency on unicode-transforms package for normalization.
3667 + Allow verbatim blocks ending with blank lines (#4624).
3668 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
3669 This collects some of the general-purpose code from the LaTeX reader,
3670 with the aim of making the module smaller.
3672 * Text.Pandoc.Readers.Markdown
3674 + Fix awkward soft break movements before abbreviations (#4635).
3675 + Add updateStrPos in a couple places where needed.
3677 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
3678 (#4947). These are variants for "complex scripts" like Arabic
3679 and are now treated just like b, i (bold, italic).
3681 * Text.Pandoc.Readers.Muse (Alexander Krotov)
3683 + Try to parse lists before trying to parse table.
3684 This ensures that tables inside lists are parsed correctly.
3685 + Forbid whitespace after opening and before closing markup
3687 + Parse page breaks.
3688 + Simplify `museToPandocTable` to get rid of partial functions.
3689 + Allow footnotes to start with empty line.
3690 + Make sure that the whole text is parsed.
3691 + Allow empty headers. Previously empty headers caused parser to
3692 terminate without parsing the rest of the document.
3693 + Allow examples to be indented with tabs.
3694 + Remove indentation from examples indicated by `{{{` and `}}}`.
3695 + Fix parsing of empty cells.
3696 + Various changes to internals.
3697 + Rewrite some parsers in applicative style.
3698 + Avoid tagsoup dependency.
3699 + Allow table caption to contain `+`.
3701 * Text.Pandoc.Writers.LaTeX
3703 + Add newline if math ends in a comment (#4880). This prevents the
3704 closing delimiter from being swalled up in the comment.
3705 + With `--listings`, don't pass through org-babel attributes (#4889).
3706 + With `--biblatex`, use `\autocite` when possible (#4960).
3707 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
3708 we don't have prefixes and suffixes, we use instead
3709 `\autocite{a1,a2,a3}`.
3710 + Fix description lists contining highlighted code (#4662).
3712 * Text.Pandoc.Writers.Man
3714 + Don't wrap `.SH` and `.SS` lines (#5019).
3715 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
3716 one paragraph definitions.
3717 + Moved common groff functions to Text.Pandoc.Writers.Groff.
3718 * Fix strong/code combination on man (should be `\f[CB]` not
3719 `\f[BC]`, see #4973).
3720 + Man writer: use `\f[R]` instead of `\f[]` to reset font
3721 (Alexander Krotov, #4973).
3722 + Move `splitSentences` to Text.Pandoc.Shared.
3724 * Text.Pandoc.Writers.Docx
3726 + Add framework for custom properties (#3034). So far, we don't
3727 actually write any custom properties, but we have the
3728 infrastructure to add this.
3730 + Handle tables in table cells (#4953). Although this is not
3731 documented in the spec, some versions of Word require a `w:p`
3732 element inside every table cell. Thus, we add one when the
3733 contents of a cell do not already include one (e.g. when a table
3734 cell contains a table).
3736 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
3737 Adjust header levels so that n+1 level headers are only
3738 found under n level headers, and the top level is 1.
3740 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
3741 alignment (#4385). This change eliminates the large gap we used
3742 to have between bullet and text, and also ensures that numbers
3743 in numbered lists will be right-aligned.
3745 * Text.Pandoc.Writers.ZimWiki
3747 + Number ordered list items sequentially, rather than always
3749 + Remove extra indentation on lists (#4963).
3751 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
3752 `stylesheet` (Mauro Bieg, #4990).
3754 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
3755 normal content (#4629). Otherwise a raw block can prevent a
3756 paragraph from being recognized as such.
3758 * Text.Pandoc.Writers.Ms
3760 + Removed old `escapeBar`. We don't need this now that we use
3762 + Moved common code to Text.Pandoc.Writers.Roff and to
3763 Text.Pandoc.RoffChar.
3764 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
3765 with the man writer).
3767 * Text.Pandoc.Writers.Muse (Alexander Krotov).
3769 + Add support for grid tables.
3770 + Fix Muse writer style.
3771 + Use `length` instead of `realLength` to calculate definition
3772 indentation. Muse parsers don't take character width into
3773 account when calculating indentation.
3774 + Do not insert newline before lists.
3775 + Use lightweight markup after `</em>` tag.
3777 * New unexported module Text.Pandoc.Writers.Roff, providing functions
3778 useful for all roff format writers (man, ms).
3782 + Move globals handling to separate module Text.Pandoc.Lua.Global
3785 + Lua filter internals: push Shared.Element as userdata (Albert
3786 Krewinkel). Hierarchical Elements were pushed to Lua as plain
3787 tables. This is simple, but has the disadvantage that marshaling
3788 is eager: all child elements will be marshaled as part of the
3789 object. Using a Lua userdata object instead allows lazy access
3790 to fields, causing content marshaling just (but also each time)
3791 when a field is accessed. Filters which do not traverse the full
3792 element contents tree become faster as a result.
3794### Default template changes
3798 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
3799 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
3801 * AsciiDoc template: use single-line style for title.
3803 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
3806 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
3809 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
3811 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
3814### Documentation improvements
3818 + Add chromeos install instructions (#4958) (Evan Pratten).
3819 + Add note about TinyTeX.
3823 + Change `groff` -> `roff`.
3824 + Implement `--ascii` for Markdown writer.
3825 + Clarify LaTeX image dimensions output (Mauro Bieg).
3827 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
3829 * doc/getting-started.md: Added title to test1.md to avoid warning.
3831 * doc/lua-filters.md: merge type references into main document,
3832 fix description of Code.text (Albert Krewinkel).
3834### Build infrastructure improvements
3838 + Makefile: added quick-cabal, full-cabal targets.
3839 + Make .msi download targets insensitive to order of appveyor builds.
3841 * Update benchmarks for ghc 8.6.1.
3845 + Enable more compiler warnings (Albert Krewinkel).
3846 + Make base lower bound 4.8.
3847 + Bump upper bound for QuickCheck.
3848 + Bump upper bound for binary.
3849 + Updated version bounds for containers and haddock-library (#4974).
3850 + Added docx/docPropos/custom.xml to cabal data-files.
3851 + Require skylighting 0.7.4 (#4920).
3852 + New dependency on unicode-transforms package for normalization.
3854 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
3856 * Added `tools/changelog-helper.sh`.
3858 * Added test/grofftest.sh for testing the man reader on real man pages.
3860## pandoc 2.3.1 (2018-09-28)
3864 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
3865 This eliminates a regression introduced after pandoc 2.1.1, which
3866 caused inline constructions containing newlines not to be recognized.
3867 + Fix bug with internal link targets (#4919). They were gobbling up
3868 indented content underneath.
3870 * Markdown reader: distinguish autolinks in the AST. With this change,
3871 autolinks are parsed as Links with the `uri` class. (The same is true
3872 for bare links, if the `autolink_bare_uris` extension is enabled.)
3873 Email autolinks are parsed as Links with the `email` class. This
3874 allows the distinction to be represented in the AST.
3878 + Force inline code blocks to honor export options (Brian Leung).
3879 + Parse empty argument array in inline src blocks (Brian Leung).
3881 * Muse reader (Alexander Krotov):
3883 + Added additional tests.
3884 + Do not allow code markup to be followed by digit.
3885 + Remove heading level limit.
3886 + Simplify `<literal>` tag parsers
3887 + Parse Text instead of String. Benchmark shows 7% improvement.
3888 + Get rid of HTML parser dependency.
3889 + Various code improvements.
3891 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
3892 We do this in the LaTeX writer, and it avoids problems.
3893 Note that `/` works as a LaTeX path separator on Windows.
3897 + Add support for multiprenote and multipostnote arguments
3898 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
3899 the first prefix of a multicite, and the multipostnotes follow the
3901 + Fix a use of `last` that might take empty list. If you ran with
3902 `--biblatex` and have an empty document (metadata but no blocks),
3903 pandoc would previously raise an error because of the use of
3904 `last` on an empty list.
3906 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
3907 MonadFail instance (Jonas Scholl).
3909 * ODT Writer: Improve table header row style handling (Nils Carlson).
3910 This changes the way styles for cells in the header row
3911 and normal rows are handled in ODT tables.
3912 Previously a new (but identical) style was generated for
3913 every table, specifying the style of the cells within the table.
3914 After this change there are two style definitions for table cells,
3915 one for the cells in the header row, one for all other cells.
3916 This doesn't change the actual styles, but makes post-processing
3917 changes to the table styles much simpler as it is no longer
3918 necessary to introduce new styles for header rows and there are
3919 now only two styles where there was previously one per table.
3923 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
3924 class was added to autolinks by the HTML writer, but it had to
3925 guess what was an autolink and could not distinguish
3926 `[http://example.com](http://example.com)` from
3927 `<http://example.com>`. It also incorrectly recognized
3928 `[pandoc](pandoc)` as an autolink. Now the HTML writer
3929 simply passes through the `uri` attribute if it is present,
3930 but does not add anything.
3931 + Avoid adding extra section nestings for revealjs.
3932 Previously revealjs title slides at level (slidelevel - 1)
3933 were nested under an extra section element, even when
3934 the section contained no additional (vertical) content.
3935 That caused problems for some transition effects.
3936 + Omit unknown attributes in EPUB2 output. For example,
3937 `epub:type` attributes should not be passed through,
3938 or the epub produced will not validate.
3940 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
3941 The JATS spec does not allow these.
3943 * Textile writer: don't represent `uri` class explicitly
3944 for autolinks (#4913).
3946 * Lua filters (Albert Krewinkel):
3948 + Cleanup filter execution code.
3949 + Better error on test failure.
3951 * HTML, Muse reader tests: reduce time taken by round-trip test.
3953 * Added cabal.project.
3955 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
3957 * Use hslua v1.0.0 (Albert Krewinkel).
3959 * Fix `translations/ru` to use modern Russian orthography
3962 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
3963 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
3965## pandoc 2.3 (2018-09-16)
3967 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
3968 users to specify metadata in a YAML file, regardless of the
3969 input format (#1960).
3971 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
3973 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
3976 * Text.Pandoc.Readers.LaTeX.Types:
3978 + New type `ArgSpec` (API change).
3979 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
3984 + Use `tex` instead of `latex` for raw tex-ish content. We can't
3985 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
3986 use `tex` always. Note that if `context` or `latex` specifically
3987 is desired, you can still force that in a markdown document by
3988 using the raw attribute. Note that this change may affect some
3989 filters, if they assume that raw tex parsed by the Markdown reader
3990 will be RawBlock (Format `latex`). In most cases it should be
3991 trivial to modify the filters to accept `tex` as well.
3992 + Refactor and reorganize YAML code (Mauro Bieg).
3993 + Make `example_lists` work for interrupted lists
3994 without `startnum` (#4908).
3998 + Parse `<script type="math/tex` tags as math (#4877).
3999 These are used by MathJax in some configurations.
4000 + Extract spaces inside links instead of trimming them
4001 (Alexander Krotov, #4845).
4002 + Added round-trip tests (Alexander Krotov).
4003 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
4004 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
4005 (which is helpful for translation HTML documents using MathJaX).
4007 * Org reader (Albert Krewinkel):
4009 + Respect export option `p` for planning info. Inclusion of planning info
4010 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
4011 `p` export option: setting the option to `t` will add all planning
4012 information in a *Plain* block below the respective headline.
4013 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
4015 + Strip planning info from output. Planning info is parsed, but not
4016 included in the output (as is the default with Emacs Org-mode, #4867).
4020 + Handle parameter patterns for `\def` (#4768, #4771).
4021 For example: `\def\foo#1[#2]{#1 and #2}`.
4022 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
4023 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
4024 argument as the content.
4025 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
4026 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
4027 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
4028 will be parsed as a regular Quoted inline (not using the quotes
4029 appropriate to the foreign language).
4030 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
4031 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
4032 `\textcircled`. Also fall back to combining characters when composed
4033 characters are not available.
4034 + Resolve `\ref` for figure numbers.
4035 + Support `mintinline` (#4365, Marc Schreiber).
4036 + Fix siunitx unit commands so they are only recognized in
4037 siunitx contexts (#4842). For example, `\l` outside of an
4038 siunitx context should be l-slash, not l (for liter).
4039 + Fix double `unnumbered` class (#4838). The `unnumbered` class
4040 was being included twice for starred sections.
4042 * RST reader: Don't skip link definitions after comments (#4860).
4044 * Muse reader (Alexander Krotov):
4046 + Close the `</quote>` in indented tag test.
4047 There is already a separate test for unclosed `</quote>`.
4048 + Autonumber sections in the correct order. Parsing now stops
4049 at each section header to ensure the header is registered before
4050 parsing of the next section starts.
4051 + Move duplicate code into `headingStart` function.
4052 + Allow newline after opening `*` or `**`.
4053 + Don't allow digits after closing marker in lightweight markup
4054 This change makes reader more compatible with Emacs Muse.
4055 + Parse `<verse>` tag in one pass instead of using
4056 `parseFromString`. This change makes it possible to have
4057 verbatim `</verse>` tag inside verse.
4059 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
4060 (#4336). This allows pandoc to parse ODT document produced by KDE's
4063 * Muse writer (Alexander Krotov):
4065 + Output headers without asterisks if not on the top level.
4066 + Never wrap definition list terms.
4067 + Set `envInsideBlock = True` when rendering notes.
4068 + Use `""` instead of `[]` for empty String.
4069 + Check for whitespace in the beginning and end of Str's.
4070 + Escape `-`, `;` and `>` in the beginning of strings.
4071 + Escape list markers in the beginning of notes.
4072 + Normalize inline list before testing if tags should be used.
4073 + Use tags instead of lightweight markup for empty strings.
4074 + Use lightweight markup when possible.
4075 + Escape empty strings. This guarantees that `conditionalEscapeString`
4076 never returns empty string.
4077 + Wrap conditionalEscapeString result into `Muse` type.
4078 This removes the need to pass `envInsideLinkDescription` to it.
4079 + Separate `shouldEscapeString` function.
4080 + Simplify inline list rendering.
4081 + Replace newlines in strings with spaces.
4085 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
4086 + Properly handle display math in spans (#4826). This isn't a
4087 complete solution, since other nestings of display math may still
4088 cause problems, but it should work for what is by far the most
4093 + Always output `<dt>` element, even if it is empty (#4883,
4095 + Don't prefix `epub:` attributes with `data-`.
4097 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
4098 recognize these escapes.
4100 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
4101 Image scaling was broken when a width was set to a percentage.
4103 * EPUB writer: set `epub:type` on body element in each chapter,
4104 depending on the `epub:type` of the first section (#4823). This
4105 only affects epub3. See
4106 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
4108 * FB2 writer: put `coverpage` element between title and date rather than in
4109 `document-info` element (#4854).
4111 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
4113 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
4114 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
4115 tex is now used. Previously we'd "fake it with unicode" and fall
4116 back to tex when that didn't work. But newer haddock versions
4121 + Ensure that title element is always present, even if empty (#4839).
4122 + Put author tags in the template, rather than adding them in
4125 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
4126 `linkcolor` only affects internal links, and `urlcolor` only
4127 affects linked URLs. For external links, the option to use is
4130 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
4134 + Use `.. raw:: latex` for `tex` content.
4135 + Use `.. container` for generic Divs, instead of raw HTML.
4136 + Render Divs with admonition classes as admonitions (#4833).
4137 Also omit Div with class `admonition-title`. These are generated
4138 by the RST reader and should be omitted on round-trip.
4140 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
4141 (#4855, Antonio Terceiro).
4143 * HTML5 template: add the `title-block-header` identifier to the
4144 `header` element, to make it easier to style precisely (#4767,
4147 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
4148 José de Mattos Neto).
4150 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
4151 (#4853, Wandmalfarbe).
4153 * TEI template: improve `publicationStmt`. Add support for
4154 `publisher`, `address`, `pubPlace`, and `date` variables.
4156 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
4158 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
4160 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
4164 + Clarify that `--biblatex/--natbib` don't work directly for PDF
4166 + Document `epub:type` attribute (Mauro Bieg, #4901)
4167 + Clarify when `--resource-path` has an effect.
4168 + More detail on customization in syntax highlighting section.
4169 + Document encoding issue with `--listings` (#4871, Damien Clochard).
4170 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
4171 + Use https for context wiki links (#4910).
4175 + Link to lua-filters repository (#4874).
4176 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
4178 * lua-filters.md: add links to filters, and to lua-filters repository
4183 + Indicate that cabal >= 2.0 is needed.
4184 + Added chocolatey installation method (#4844, Miodrag Milić).
4186 * Travis: exclude round-trip tests, except for nightly test which can fail.
4188 * Use latest texmath, pandoc-citeproc.
4190 * Use a patched version of foundation until
4191 https://github.com/haskell-foundation/foundation/pull/503
4194 * Clean up appveyor build and Windows package creation.
4195 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
4196 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
4198 * Remove obsolete RELEASE-CHECKLIST.md.
4200 * Added additional compiler warnings in Makefile and CI builds.
4202## pandoc 2.2.3.2 (2018-08-07)
4204 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
4205 This fixes a regression in 2.2.3, which cause boolean values to
4206 be parsed as MetaInlines instead of MetaBool.
4208 We here record another undocumented (but desirable) change in 2.2.3:
4209 numerical metadata fields are now parsed as MetaInlines rather than
4212## pandoc 2.2.3.1 (2018-08-06)
4214 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
4215 (#4817). This fixes a regression in 2.2.3 which caused embedded
4216 mappings (e.g. mappings in sequences) not to work in YAML metadata.
4218## pandoc 2.2.3 (2018-08-05)
4220 * RST reader: improve parsing of inline interpreted text roles (#4811).
4222 + Use a Span with class "title-reference" for the default
4223 title-reference role.
4224 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
4225 and `Str`s for `title-reference`.
4226 + Use Code with class "interpreted-text" instead of Span and Str for
4227 unknown roles. (The RST writer has also been modified to round-trip
4229 + Disallow blank lines in interpreted text.
4230 + Backslash-escape now works in interpreted text.
4231 + Backticks followed by alphanumerics no longer end interpreted text.
4232 + Remove support for nested inlines (Francesco Occhipinti).
4233 RST does not allow nested emphasis, links, or other inline
4234 constructs. This fixes several bugs (#4581, #4561, #4792).
4236 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
4237 Krewinkel). Emphasis was not parsed when it followed directly after
4238 some block types (e.g., lists).
4240 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
4241 keys. Previously in 2.2.2 you could not do
4253 With this change, both forms work.
4255 * DocBook reader: metadata handling improvements.
4256 Now we properly parse title and subtitle elements that are direct
4257 children of book and article (as well as children of bookinfo,
4258 articleinfo, or info). We also now use the `subtitle` metadata
4259 field for subtitles, rather than tacking the subtitle on to the
4264 + Allow images to be directly nested within links (#4810, Francesco
4266 + Use `titleblock` instead of `title` variable for title block (#4803,
4267 Francesco Occhipinti). `titleblock` contains a properly formatted
4268 title and subtitle (using top-level headers). `title` and
4269 `subtitle` variables are still available and just contain the
4270 title and subtitle text. Note that this change will require an
4271 update to custom rst templates.
4272 + Render Code with class "interpreted-text" as interpreted text role.
4274 * MediaWiki writer: Avoid extra blank line in tables with empty cells
4275 (#4794). Note that the old output is semantically identical, but the
4276 new output looks better.
4278 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
4279 Krewinkel). Exposes a function converting which flattenes a list of
4280 blocks into a list of inlines. An example use case would be the
4281 conversion of Note elements into other inlines.
4283 * RST template: use `titleblock` instead of `title`. Users of
4284 custom RST templates will want to update this.
4286 * LaTeX template: Moved some beamer code in default.latex template.
4287 This change allows beamer themes to change the template and font (as
4288 Metropolis does) (#4450).
4290 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
4292 * Added test case for #4669 to repository.
4294 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
4298 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
4299 + Clarify when `csquotes` is used in LaTeX writer (#4514).
4300 + Add `commonmark` to list of output formats where `raw_tex` has an
4304## pandoc 2.2.2.1 (2018-07-19)
4306 * Fix regression finding templates in user data directory (#4777).
4307 Under version 2.2.1 and prior pandoc found latex templates in the
4308 templates directory under the data directory, but this broke in 2.2.2.
4310 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
4311 `rawLaTeXInline` (#4781). (This primarily affects the markdown
4312 reader, and other readers that accept raw tex.)
4313 Starting in 2.2.2, everything after an `\input` (or `\include`)
4314 in a markdown file would be parsed as raw LaTeX.
4318 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
4319 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
4320 Unlike `tags`, `keywords` is used in some of the writers
4321 and default templates.
4323 * Add missing `rollingLinks` option to revealjs template (#4778,
4326## pandoc 2.2.2 (2018-07-16)
4328 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
4329 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
4331 Note: HsYAML implements YAML 1.2, in which the valid true
4332 values are `true`, `True`, `TRUE`. This means a change in
4333 the semantics of YAML metadata that could affect users:
4334 `y`, `yes`, and `on` no longer count as true values.
4336 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
4339 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
4340 Anders Waldenborg). Non-ascii characters were not stripped from
4341 identifiers even if the `ascii_identifiers` extension was
4342 enabled (which is is by default for gfm).
4344 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
4345 Remove trailing Space from list items. Parse lists that have no space
4350 + Treat `lilypond` as a verbatim environment (#4725).
4351 + Parse figure label into Image id (#4700, Mauro Bieg).
4352 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
4353 + Allow spaces around `\graphicspath` arguments (#4698).
4354 + Handle includes without surrounding blanklines (#4553).
4355 In addition, `\input` can now be used in an inline context,
4356 e.g. to provide part of a paragraph, as it can in LaTeX.
4357 + In `rawLaTeXBlock`, handle macros that resolve to a
4358 `\begin` or `\end` (#4667).
4359 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
4360 Note that this only affected LaTeX in markdown.
4361 + Tighten up reading of beamer overlay specifications (#4669).
4362 Ideally we'd turn these on only when reading beamer, but currently
4363 beamer is not distinguished from latex as an input format.
4364 This commit also activates parsing of overlay specifications
4365 after commands in general (e.g. `\item`), since they can occur
4366 in many contexts in beamer.
4367 + Parse more siunitx unit commands (#4296, #4773).
4368 + Be more forgiving in key/value option parsing (#4761).
4372 + Allow empty code spans, e.g. `` ` ` ``.
4373 + Emojis are now wrapped in Spans with class `emoji` and
4374 attribute `data-emoji` (Anders Waldenborg, #4743).
4375 This allows the writer to handle them in a special way
4376 (e.g. using a special font, or just rendering the
4379 * Muse reader (Alexander Krotov, except where indicated):
4381 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
4382 + Add support for floating images.
4383 + Add support for images with specified width.
4384 + Parse image URLs without "guard" and "takeExtension".
4385 + Split link and image parsing into separate functions.
4386 + Parse links starting with "URL:" explicitly instead of trying to strip
4387 "URL:" prefix after parsing.
4389 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
4392 * Markdown writer: Preserve `implicit_figures` with attributes, even if
4393 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
4395 * Markdown and commonmark/github writers now respect the `emoji`
4396 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
4397 `:smile:` as `:smile:` rather than converting it to a smile
4400 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
4402 * ODT/OpenDocument writer: Make internal links work (#4358).
4403 This adds proper bookmarks to the headers with non-null IDs.
4405 * EPUB writer: Properly escape pagetitle. Previously we weren't
4406 escaping `&` and other XML characters in the pagetitle, so a title
4407 containing a `&` would be invalid.
4409 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
4414 + Don't treat 'example' as a syntax name (#4748).
4415 This fixes conversions from org with example blocks.
4416 + Support `--number-sections` via the `section-numbering`
4417 directive in standalone output.
4419 * reveal.js writer and template: reuse mathjax URL
4420 provided by the argument to `--mathjax` or the normal pandoc default,
4421 rather than a hard-coded one in the template (#4701).
4425 + Properly handle footnotes in table captions (#4683).
4426 Refactored code from figure captions to use in both places.
4427 + In beamer output, fix single digit column percentage (#4690, Mauro
4430 * FB2 writer (Alexander Krotov):
4432 + Convert Plain to Para in annotation (#2424).
4433 + Fix order of items in title-info (#2424).
4435 * Custom writer: fix error message on script failure (Albert Krewinkel).
4436 Error messages produced by Lua were not displayed by Pandoc.
4438 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
4439 inline containing the emoji character and some attributes with metadata
4440 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
4441 Anders Waldenborg, #4743).
4445 + Revert fix for #4484 (only compress images on last run, #4755).
4446 This will mean some increase in the time it takes to
4447 produce an image-heavy PDF with xelatex, but it will
4448 make tables of contents correct, which is more important.
4449 + Fix logic error in `runTeXProgram`. We were running the tex program
4450 one more time than requested. This should speed up PDF production.
4452 * Allow `--template` to take a URL as argument.
4454 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
4455 highlighting style (#4687, Adrian Sieber, API change).
4457 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
4458 installer the recommended method, and note that on some older versions of
4459 macOS, homebrew installs from source and takes a lot of disk space
4464 + Clarify EPUB linked media (#4756, Mauro Bieg)
4465 + Update manual for "true" YAML values. Now that we're using HsYAML and
4466 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
4467 `y`, `yes`, `on` no longer count as true values.
4468 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
4469 + Update manual on how math is rendered in LaTeX.
4470 + Add proxy description (#4131, Mauro Bieg).
4471 + Clarify that `--toc` requires `--standalone` (#4703).
4472 + Update citation styles link (#4699, wiefling).
4474 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
4475 (kaizshang91). Note that it will not take effect when readers/writers
4476 are called as libraries (#4674).
4478 * Improved translations/fr (#4766, lux-lth).
4480 * Removed inadvertently added `.orig` files from repository (#4648).
4482 * Remove `network-uri` flag and use 'Network.Socket'.
4483 This removes a compiler warning. There is no need for the old
4484 `network-uri` flag, since network 2.6 was released in 2014.
4486 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
4488 * Bump upper bounds for dependent packages.
4490 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
4491 confused because of the way ghc 7.10 is excluded in foundation's
4492 cabal file. This can be removed when haskell-foundation/foundation#500
4495 * Require cabal-version >= 2.0. This is needed for haddock-library.
4500## pandoc 2.2.1 (2018-05-10)
4502 * Restored and undeprecated gladtex for HTML math (#4607).
4504 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
4505 [API change, reverts removal in v2.2]
4506 + Restored and undeprecated `--gladtex` option, removed in v2.2.
4508 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
4510 * Org reader: Fix image filename recognition (Albert Krewinkel).
4511 Use a function from the filepath library to check whether a string is a
4512 valid file name. The custom validity checker that was used before gave
4513 wrong results (e.g. for absolute file paths on Windows,
4514 kawabata/ox-pandoc#52).
4516 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
4520 + Strip links from headers when creating TOC (#4340).
4521 Otherwise the TOC entries will not link to the sections.
4522 + Fix regression with tex math environments in HTML + MathJax (#4639).
4524 * Muse writer (Alexander Krotov): Add support for left-align and
4525 right-align classes (#4542).
4527 * Docx writer: Support underline (#4633).
4529 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
4530 `singleQuoteStart` and `doubleQuoteStart` (#4637).
4532 * `test-pandoc-utils.lua`: more robust testing on both windows
4533 and \*nix. Previously the pipe tests were only run if
4534 `\bin/false` and `/bin/sed` were present, which they aren't
4535 in default MacOS and Windows systems. Fixed by using `tr`
4536 and `false`, which should always be in the path on a \*nix
4537 system, and `find` and `echo` for Windows.
4539 * Text.Pandoc.Shared: add `uriPathToPath`.
4540 This adjusts the path from a file: URI in a way that is sensitive
4541 to Windows/Linux differences. Thus, on Windows,
4542 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
4543 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
4545 * Use `uriPathToPath` with file: URIs (#4613).
4547 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
4550 * Text.Pandoc.Class: Catch IO errors when writing media files
4551 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
4553 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
4555 * MANUAL (Mauro Bieg):
4557 + Clarify truthiness in template variables (#2281).
4558 + Clarify pipe table width calculation (#4520).
4560 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
4561 CMU Serif gives better typographic results than the previous
4562 Greek fallback DejaVu Serif.
4564 * Make HTML template polyglot (#4606, OvidiusCicero), by making
4565 `<link rel="stylesheet" href="$css$">` self-closing.
4567 * Use texmath 0.11, allowing better translation of non-ASCII
4568 characters in math (#4642).
4571## pandoc 2.2 (2018-04-27)
4573 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
4575 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
4576 and for `ms` and `man`.
4578 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
4579 `--asciimathml` options.
4581 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
4582 Krotov, API change).
4586 + Allow empty key-value attributes, like `title=""` (#2944).
4587 + Handle table w/o following blank line in fenced div (#4560).
4588 + Remove "fallback" for `doubleQuote` parser. Previously the
4589 parser tried to be efficient -- if no end double quote was found,
4590 it would just return the contents. But this could backfire in a
4591 case `**this should "be bold**`, since the fallback would return
4592 the content `"be bold**` and the closing boldface delimiter
4593 would never be encountered.
4594 + Improve computation of the relative width of the last column in a
4595 multiline table, so we can round-trip tables without constantly
4596 shrinking the last column.
4600 + Fix images with space in file path (#4344).
4604 + Properly resolve section numbers with `\ref` and chapters (#4529).
4605 + Parse sloppypar environment (#4517, Marc Schreiber).
4606 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
4607 Previously there were some bugs in how macros were handled.
4608 + Support `\MakeUppercase`, `\MakeLowercase`, `\uppercase`,
4609 `\lowercase`, and also `\MakeTextUppercase` and
4610 `\MakeTextLowercase` from textcase (#4959).
4614 + Fixed tables with no body rows (#4513).
4615 Previously these raised an exception.
4619 + Improve table parsing (#4508). This fixes detection of table
4620 attributes and also handles `!` characters in cells.
4624 + Properly handle title in `section` element (#4526).
4625 Previously we just got `section_title` for `section` (though `sect1`,
4626 `sect2`, etc. were handled properly).
4627 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
4631 + Combine adjacent CodeBlocks with the same attributes into
4632 a single CodeBlock. This prevents a multiline codeblock in
4633 Word from being read as different paragraphs.
4637 + Allow < 3 spaces indent under directives (#4579).
4638 + Fix anonymous redirects with backticks (#4598).
4640 * Muse reader (Alexander Krotov):
4642 + Add support for Text::Amuse multiline headings.
4643 + Add `<math>` tag support.
4644 + Add support for `<biblio>` and `<play>` tags.
4645 + Allow links to have empty descriptions.
4646 + Require block `<literal>` tags to be on separate lines.
4647 + Allow `-` in anchors.
4648 + Allow verse to be indented.
4649 + Allow nested footnotes.
4650 + Internal improvements.
4652 * Muse writer (Alexander Krotov):
4654 + Escape `>` only at the beginning of a line.
4655 + Escape `]` in image title.
4656 + Escape `]` brackets in URLs as `%5D`.
4657 + Only escape brackets when necessary.
4658 + Escape ordered list markers.
4659 + Do not escape list markers unless preceded by space.
4660 + Escape strings starting with space.
4661 + Escape semicolons and markers after line break.
4662 + Escape `;` to avoid accidental comments.
4663 + Don't break headers, line blocks and tables with line breaks.
4664 + Correctly output empty headings.
4665 + Escape horizontal rule only if at the beginning of the line.
4666 + Escape definition list terms starting with list markers.
4667 + Place header IDs before header.
4668 + Improve span writing.
4669 + Do not join Spans in normalization.
4670 + Don't align ordered list items.
4671 + Remove key-value pairs from attributes before normalization.
4672 + Enable `--wrap=preserve` for all tests by default.
4673 + Reduced `<verbatim>` tags in output.
4678 + Use more consistent indentation (#4563). Previously we
4679 used an odd mix of 3- and 4-space indentation. Now we use 3-space
4680 indentation, except for ordered lists, where indentation must
4681 depend on the width of the list marker.
4682 + Flatten nested inlines (#4368, Francesco Occhipinti).
4683 Nested inlines are not valid RST syntax, so we flatten them following
4684 some readability criteria discussed in #4368.
4688 + Ensure that `pagetitle` is always set, even when structured titles
4689 are used. This prevents spurious warnings about empty title
4692 * FB2 writer (Alexander Krotov):
4694 + Output links inline instead of producing notes. Previously all links
4695 were turned into footnotes with unclickable URLs inside.
4696 + Allow emphasis and notes in titles.
4697 + Don't intersperse paragraph with empty lines.
4698 + Convert metadata value `abstract` to book annotation.
4699 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
4700 FB2 does not have a way to represent line breaks inside paragraphs;
4701 previously we used `<empty-line />` elements, but these are not allowed
4704 * Powerpoint writer (Jesse Rosenthal):
4706 + Handle Quoted Inlines (#4532).
4707 + Simplify code with `ParseXml`.
4708 + Allow fallback options when looking for placeholder type.
4709 + Check reference-doc for all layouts.
4710 + Simplify speaker notes logic.
4711 + Change notes state to a simpler per-slide value.
4712 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
4713 means no speaker notes.
4714 + Add tests for improved speaker notes.
4715 + Handle speaker notes earlier in the conversion process.
4716 + Keep notes with related blocks (#4477). Some blocks automatically
4717 split slides (imgs, tables, `column` divs). We assume that any
4718 speaker notes immediately following these are connected to these
4719 elements, and keep them with the related blocks, splitting after them.
4720 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
4721 It contained a nonfree ICC color calibration profile and is not needed
4722 for production of a powerpoint document.
4726 + Include a blank line at the end of the row in a single-row multiline
4727 table, to prevent it from being interpreted as a simple table (#4578).
4729 * CommonMark writer:
4731 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
4732 enabled (#4527, quasicomputational).
4736 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
4740 + In beamer, don't use format specifier for default ordered lists
4741 (#4556). This gives better results for styles that put ordered list
4742 markers in boxes or circles.
4743 + Update `\lstinline` delimiters (#4369, Tim Parenti).
4747 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
4748 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
4749 since the header font is automatically bold (#4552).
4750 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
4751 + Create pdf anchor for a Div with an identifier (#4515).
4752 + Escape `/` character in anchor ids (#4515).
4753 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
4758 + Don't escape U+2019 as `'` (#4550).
4760 * Text.Pandoc.Options:
4762 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
4763 `Text.Pandoc.Options.HTMLMathMethod` [API change].
4765 * Text.Pandoc.Class:
4767 + `writeMedia`: unescape URI-escaping in file path. This avoids
4768 writing things like `file%20one.png` to the file system.
4770 * Text.Pandoc.Parsing:
4772 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
4774 + `uri`: don't treat `*` characters at end as part of URI (#4561).
4778 + Use the alias `application/eps` for EPS (#2067).
4779 This will ensure that we retain the eps extension after reading the
4780 image into a mediabag and writing it again.
4784 + Use `withTempDir` in `html2pdf`.
4785 + With `xelatex`, don't compress images til the last run (#4484).
4786 This saves time for image-heavy documents.
4787 + Don't try to convert EPS files (#2067). `pdflatex` converts them
4788 itself, and JuicyPixels can't do it.
4789 + For `pdflatex`, use a temp directory in the working directory.
4790 Otherwise we can have problems with the EPS conversion pdflatex
4791 tries to do, which can't operate on a file above the working
4792 directory without `--shell-escape`.
4794 * Changes to tests to accommodate changes in pandoc-types.
4795 In <https://github.com/jgm/pandoc-types/pull/36> we changed
4796 the table builder to pad cells. This commit changes tests
4797 (and two readers) to accord with this behavior.
4799 * Set default extensions for `beamer` same as `latex`.
4803 + Add `beameroption` variable (#4359, Étienne Bersac).
4804 + Use `pgfpages` package; this is needed for notes on second
4805 screen in beamer (Étienne Bersac).
4806 + Add `background-image` variable (#4601, John Muccigrosso).
4808 * reveal.js template: Add `background-image` variable (#4600,
4811 * ms template: Fix date. Previously `.ND` was used, but this only
4812 works if you have a title page, which we don't. Thanks to @teoric.
4814 * Removed pragmas for unused extensions (#4506, Anabra).
4816 * Fix bash completion for `--print-default-data-file` (#4549).
4817 Previously this looked in the filesystem, even if pandoc
4818 was compiled with `embed_data_files` (and sometimes it looked
4819 in a nonexistent build directory). Now the bash completion
4820 script just includes a hard-coded list of data file names.
4824 + Clarify template vs metadata variables (#4501, Mauro Bieg).
4825 + Fix raw content example (#4479, Mauro Bieg).
4826 + Specify that you use html for raw output in epub.
4827 + Add examples for raw docx blocks (#4472, Tristan Stenner).
4828 The documentation states that the target format name should match
4829 the output format, which isn't the case for `docx`/`openxml` and
4831 + Don't say that `empty_paragraphs` affects markdown output (#4540).
4832 + Consolidate input/output format documentation (#4577, Mauro Bieg).
4834 * New README template. Take in/out formats from manual.
4836 * Fix example in lua-filters docs (#4459, HeirOfNorton).
4838 * Use the `-threaded` GHC flag when building benchmarks (#4587,
4839 Francesco Occhipinti).
4841 * Bump temporary upper bound to 1.4.
4843 * Use pandoc-citeproc 0.14.3.1.
4845 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
4847 * Removed old lib directory. This was used for something long ago,
4848 but plays no role now.
4850 * Removed unneeded data file `LaTeXMathML.js`.
4852 * Create 64- and 32-bit versions of Windows binary packages.
4854## pandoc 2.1.3 (2018-03-18)
4856 * Docx reader (Jesse Rosenthal):
4858 + Add tests for nested smart tags.
4859 + Parse nested smart tags.
4860 + Make unwrapSDT into a general `unwrap` function that can unwrap both
4861 nested SDT tags and smartTags. This makes the SmartTags constructor in
4862 the Docx type unnecessary, so we remove it (#4446).
4863 + Remove unused `docxWarnings` (Alexander Krotov).
4865 * RST reader: Allow unicode bullet characters (#4454).
4867 * Haddock reader: Better table handling, using haddock-library's
4868 new table support, if compiled against a version that
4869 includes it. Note that tables with col/rowspans will not
4870 translate well into Pandoc.
4872 * Muse reader (Alexander Krotov):
4874 + Various internal improvements.
4875 + Require closing tag to have the same indentation as opening.
4876 + Do not reparse blocks inside unclosed block tag (#4425).
4877 + Parse `<class>` tag (supported by Emacs Muse).
4878 + Do not produce empty Str element for unindented verse lines.
4882 + Add support to parse unit string of `\SI` command (closes #4296,
4885 * Haddock writer: In the writer, we now render tables always as
4886 grid tables, since Haddock supports these.
4888 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
4890 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
4891 docx writer. We want decimal for the top level, not lower roman.
4895 + Strip whitespace at beginning and ending of inline containers
4896 (#4327, Francesco Occhipinti).
4897 + Filter out empty inline containers (#4434). There is nothing in
4898 RST that corresponds to e.g. `Emph []`, so we just ignore elements
4899 like this (Francesco Occhipinti).
4901 * Muse writer (Alexander Krotov):
4903 + Support spans with anchors.
4904 + Replace smallcaps with emphasis before normalization.
4905 + Output smallcaps as emphasis.
4906 + Expand Cite before list normalization.
4907 + Write empty inline lists as `<verbatim></verbatim>`.
4908 + Remove empty Str from the beginning of inline lists during normalization.
4909 + Escape "-" to avoid creating bullet lists.
4910 + Fix math expansion for more than one expression per paragraph.
4911 + Expand math before inline list normalization.
4913 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
4917 + Asciify pdf anchors, since unicode anchors don't work (#4436).
4918 Internal links should be converted automatically, so this shouldn't
4919 affect users directly.
4920 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
4922 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
4923 (#4307). If it's in the title, then we get a titlebar on slides with
4924 the `plain` attribute, when the id is non-null. This fixes a regression
4927 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
4929 * JATS writer: Remove extraneous, significant whitespace (#4335,
4932 * html2pdf: inject base tag with current working directory (#4413, Mauro
4933 Bieg). This helps ensure that linked resources are included.
4935 * Add Semigroup instances for everything for which we defined a
4936 Monoid instance previously (API change):
4938 + Text.Pandoc.Class.FileTree.
4939 + Text.Pandoc.Translations.Translations.
4940 + Text.Pandoc.Extensions.Extensions.
4941 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
4942 + Text.Pandoc.Pretty.Doc.
4943 + Text.Pandoc.MediaBag.MediaBag.
4945 * Add custom Prelude to give clean code for Monoid and Semigroup
4946 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
4947 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
4948 in all source files, and Prelude is explicitly imported
4949 (this is necessary for ghci to work properly with the custom prelude).
4951 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
4953 + Export `stripLeadingTrailingSpace`.
4954 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
4955 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
4956 expand cells, even if it results in cells that don't respect relative
4957 widths or surpass page column width. This change affects RST,
4958 Markdown, and Haddock writers.
4960 * Raise error if someone tries to print docx, odt, etc. template (#4441).
4962 * LaTeX template: Provide `bidi` package's option using
4963 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
4964 clash when `polyglossia` loads it first and then it is loaded again
4967 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
4968 Menke). Instructions on how to install the ICC profiles on ConTeXt
4969 standalone can be found in the wiki:
4970 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
4971 If the ICC profiles are not available the log will contain error
4974 * Use latest pandoc-types, skylighting
4976 * Use latest pandoc-citeproc in binary package.
4978 * Bump upper bound for time, criterion, haddock-library, exceptions,
4979 http-types, aeson, haddock-library.
4981 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
4983 * pandoc.cabal: fix up other-extensions and language fields.
4984 Language is now consistently `Haskell2010`, and other-extensions
4985 is consistently `NoImplicitPrelude`. Everything else to be specified
4986 in the module header as needed.
4988 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
4989 This is no longer necessary since we no longer support ghc 7.8.
4991 * Make `weigh-pandoc` into a benchmark program.
4992 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
4993 automatically when you build (and run) benchmarks.
4995 * MANUAL: add instructions for background images reveal.js (#4325, John
4998 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
5000## pandoc 2.1.2 (2018-03-02)
5004 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
5005 "nonindent spaces" before the opening and closing `:::`, but this
5006 interfered with list parsing, so now we require the fences to be flush with
5007 the margin of the containing block.
5009 * Commonmark reader:
5011 + `raw_html` is now on by default. It can be disabled explicitly
5012 using `-f commonmark-raw_html`.
5014 * Org reader (Albert Krewinkel):
5016 + Move citation tests to separate module.
5017 + Allow changing emphasis syntax (#4378). The characters allowed before
5018 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
5019 `#+pandoc-emphasis-post`, respectively. This allows to change which
5020 strings are recognized as emphasized text on a per-document or even
5021 per-paragraph basis. Example:
5023 #+pandoc-emphasis-pre: "-\t ('\"{"
5024 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
5028 + Fixed comments inside citations (#4374).
5029 + Fix regression in package options including underscore (#4424).
5030 + Make `--trace` work.
5031 + Fixed parsing of `tabular*` environment (#4279).
5035 + Fix regression in parsing of headers with trailing space (#4280).
5037 * Muse reader (Alexander Krotov):
5039 + Enable `<literal>` tags even if amuse extension is enabled.
5040 Amusewiki disables <literal> tags for security reasons.
5041 If user wants similar behavior in pandoc, RawBlocks and RawInlines
5042 can be removed or replaced with filters.
5043 + Remove space prefix from `<literal>` tag contents.
5044 + Do not consume whitespace while looking for closing end tag.
5045 + Convert alphabetical list markers to decimal in round-trip test.
5046 Alphabetical lists are an addition of Text::Amuse.
5047 They are not present in Emacs Muse and can be ambiguous
5048 when list starts with "i.", "c." etc.
5049 + Allow `<quote>` and other tags to be indented.
5050 + Allow single colon in definition list term.
5051 + Fix parsing of verse in lists.
5052 + Improved parsing efficiency. Avoid `parseFromString`.
5053 Lists are parsed in linear instead of exponential time now.
5054 + Replace ParserState with MuseState.
5055 + Prioritize lists with roman numerals over alphabetical lists.
5056 This is to make sure "i." starts a roman numbered list,
5057 instead of a list with letter "i" (followed by "j", "k", ...").
5058 + Fix directive parsing.
5059 + Parse definition lists with multiple descriptions.
5060 + Parse next list item before parsing more item contents.
5061 + Fixed a bug: headers did not terminate lists.
5062 + Move indentation parsing from `definitionListItem` to `definitionList`.
5063 + Paragraph indentation does not indicate nested quote.
5064 Muse allows indentation to indicate quotation or alignment,
5065 but only on the top level, not within a <quote> or list.
5066 + Require that block tags are on separate lines.
5067 Text::Amuse already explicitly requires it anyway.
5068 + Fix matching of closing inline tags.
5069 + Various internal changes.
5070 + Fix parsing of nested definition lists.
5071 + Require only one space for nested definition list indentation.
5072 + Do not remove trailing whitespace from `<code>`.
5073 + Fix parsing of trailing whitespace. Newline after whitespace now
5074 results in softbreak instead of space.
5076 * Docx reader (Jesse Rosenthal, except where noted):
5078 + Handle nested sdt tags (#4415).
5079 + Don't look up dependant run styles if `+styles` is enabled.
5080 + Move pandoc inline styling inside custom-style span.
5081 + Read custom styles (#1843). This will read all paragraph and
5082 character classes as divs and spans, respectively. Dependent styles
5083 will still be resolved, but will be wrapped with appropriate style
5084 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
5085 This can be used in conjunction with the `custom-style` feature in the
5086 docx writer for a pandoc-docx editing workflow. Users can convert from
5087 an input docx, reading the custom-styles, and then use that same input
5088 docx file as a reference-doc for producing an output docx file. Styles
5089 will be maintained across the conversion, even if pandoc doesn't
5091 + Small change to Fields hyperlink parser. Previously, unquoted string
5092 required a space at the end of the line (and consumed it). Now we
5093 either take a space (and don't consume it), or end of input.
5094 + Pick table width from the longest row or header (Francesco Occhipinti,
5097 * Muse writer (Alexander Krotov):
5099 + Change verse markup: `> ` instead of `<verse>` tag.
5100 + Remove empty strings during inline normalization.
5101 + Don't indent nested definition lists.
5102 + Use unicode quotes for quoted text.
5103 + Write image width specified in percent in Text::Amuse mode.
5104 + Don't wrap displayMath into `<verse>`.
5105 + Escape nonbreaking space (`~~`).
5106 + Join code with different attributes during normalization.
5107 + Indent lists inside Div.
5108 + Support definitions with multiple descriptions.
5110 * Powerpoint writer (Jesse Rosenthal):
5112 + Use table styles This will use the default table style in the
5113 reference-doc file. As a result they will be easier when using
5114 in a template, and match the color scheme.
5115 + Remove empty slides. Because of the way that slides were split, these
5116 could be accidentally produced by comments after images. When animations
5117 are added, there will be a way to add an empty slide with either
5118 incremental lists or pauses.
5119 + Implement syntax highlighting. Note that background colors can't
5120 be implemented in PowerPoint, so highlighting styles that require
5121 these will be incomplete.
5122 + New test framework for pptx. We now compare the output of the
5123 Powerpoint writer with files that we know to (a) not be corrupt,
5124 and (b) to show the desired output behavior (details below).
5125 + Add `notesMaster` to `presentation.xml` if necessary.
5126 + Ignore links and (end)notes in speaker notes.
5127 + Output speaker notes.
5128 + Read speaker note templates conditionally. If there are speaker
5129 notes in the presentation, we read in the notesMasters templates
5130 from the reference pptx file.
5131 + Fix deletion track changes (#4303, Jesse Rosenthal).
5133 * Markdown writer: properly escape @ to avoid capture as citation
5138 + Put hypertarget inside figure environment (#4388).
5139 This works around a problem with the endfloat package and
5140 makes pandoc's output compatible with it.
5141 + Fix image height with percentage (#4389). This previously caused
5142 the image to be resized to a percentage of textwidth, rather than
5145 * ConTeXt writer (Henri Menke):
5147 + New section syntax and support `--section-divs` (#2609).
5148 `\section[my-header]{My Header}` ->
5149 `\section[title={My Header},reference={my-header}]`.
5150 The ConTeXt writer now supports the `--section-divs` option to
5151 write sections in the fenced style, with `\startsection` and
5153 + xtables: correct wrong usage of caption (Henri Menke).
5157 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
5158 + Use new golden framework (Jesse Rosenthal).
5159 + Make more deterministic to facilitate testing (Jesse Rosenthal).
5160 - `getUniqueId` now calls to the state to get an incremented digit,
5161 instead of calling to P.uniqueHash.
5162 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
5163 seed (1848), so our randoms should be the same each time.
5164 + Fix ids in comment writing (Jesse Rosenthal). Comments from
5165 `--track-changes=all` were producing corrupt docx, because the
5166 writer was trying to get id from the `(ID,_,_)` field of
5167 the attributes, and ignoring the "id" entry in the key-value pairs. We
5170 * Ms writer: Added papersize variable.
5174 + Use `height` instead of `depth` for images (#4331).
5175 + Ensure that id prefix is always used.
5176 + Don't emit `role` attribute; that was a leftover from the
5178 + Use 'xml:id', not 'id' attribute (#4371).
5182 + Do not output implicit heading IDs (#4363, Alexander
5183 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
5187 + Remove `blockToRST'` moving its logic into `fixBlocks`
5188 (Francesco Occhipinti).
5189 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
5191 * RST template: remove definition of 'math' role as raw.
5192 This used to be needed prior to v 0.8 of docutils, but
5193 now math support is built-in.
5195 * Slides: Use divs to set incremental/non-incremental (#4381,
5196 Jesse Rosenthal). The old method (list inside blockquote) still
5197 works, but we are encouraging the use of divs with class
5198 `incremental` or `nonincremental`.
5200 * Text.Pandoc.ImageSize:
5202 + Make image size detection for PDFs more robust (#4322).
5203 + Determine image size for PDFs (#4322).
5204 + EMF Image size support (#4375, Andrew Pritchard).
5206 * Text.Pandoc.Extensions:
5208 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
5209 the docx reader (defaulting to off) to read pargraph and character
5210 styles not understood by pandoc (as divs and spans, respectively).
5211 + Made `Ext_raw_html` default for `commonmark` format.
5213 * Text.Pandoc.Parsing:
5215 + Export `manyUntil` (Alexander Krotov, API change).
5216 + Export improved `sepBy1` (Alexander Krotov).
5217 + Export list marker parsers: `upperRoman`, `lowerRoman`,
5218 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
5220 * Tests/Lua: fix tests on windows (Albert Krewinkel).
5222 * Lua: register script name in global variable (#4393). The name of the Lua
5223 script which is executed is made available in the global Lua variable
5224 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
5226 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
5227 There is very little pptx-specific in these tests, so we abstract out
5228 the basic testing function so it can be used for docx as well. This
5229 should allow us to catch some errors in the docx writer that slipped
5230 by the roundtrip testing.
5232 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
5233 functions used to construct AST element values are stored in the Lua
5234 registry for quicker access. Getting a value from the registry is much
5235 faster than getting a global value (partly to idiosyncrasies of hslua);
5236 this change results in a considerable performance boost.
5240 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
5241 + `doc/lua-filters.md`: document global vars set for filters
5243 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
5244 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
5245 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
5246 Rosenthal). Blockquoted lists are still described, but fenced divs are
5247 presented in preference.
5248 + MANUAL.txt: document header and footer variables (newmana).
5249 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
5250 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
5252 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
5254 * Use latest texmath.
5256 * Use latest pandoc-citeproc.
5258 * Allow exceptions 0.9.
5260 * Require aeson-pretty 0.8.5 (#4394).
5262 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
5264 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
5266 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
5268 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
5271## pandoc 2.1.1 (2018-01-18)
5275 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
5276 blank line. See lierdakil/pandoc-crossref#160.
5277 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
5278 The change both improves performance and fixes a regression whereby
5279 normal citations inside inline notes and figure captions were not
5284 + Better handling for headers with an anchor (#4240). Instead of creating a
5285 Div containing the header, we put the id directly on the header.
5286 This way header promotion will work properly.
5287 + Add aligned environment when needed in math (#4254). `rst2latex.py`
5288 uses an `align*` environment for math in `.. math::` blocks, so this
5289 math may contain line breaks. If it does, we put the math in an
5290 `aligned` environment to simulate `rst2latex.py`'s behavior.
5294 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
5298 + Advance source position at end of stream.
5299 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
5300 extension is set (#4246). This reverts to earlier behavior and is
5301 probably safer on the whole, since some macros only modify things in
5302 included packages, which pandoc's macro expansion can't modify.
5303 + Fixed pos calculation in tokenizing escaped space.
5304 + Allow macro definitions inside macros (#4253). Previously we went into
5305 an infinite loop with
5307 \newcommand{\noop}[1]{#1}
5308 \noop{\newcommand{\foo}[1]{#1}}
5311 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
5312 widths for the body were different from widths for the header in some
5315 * Docx reader (Jesse Rosenthal):
5317 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
5318 hyperlink found in older versions of word. The changes introduced for
5319 this, though, create a framework for parsing further fields in MS Word
5320 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
5321 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
5322 contains a simple parsec parser. At the moment, only simple hyperlink
5323 fields are accepted, but that can be extended in the future.
5325 * Muse reader (Alexander Krotov):
5327 + Parse `~~` as non-breaking space in Text::Amuse mode.
5328 + Refactor list parsing.
5330 * Powerpoint writer (Jesse Rosenthal):
5332 + Change reference to `notesSlide` to `endNotesSlide`.
5333 + Move image sizing into `picProps`.
5334 + Improve table placement.
5335 + Make our own `_rels/.rels` file.
5336 + Import reference-doc images properly.
5337 + Move `Presentation.hs` out of `PandocMonad`.
5338 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
5339 defines the Presentation datatype and goes Pandoc->Presentation;
5340 T.P.W.Pandoc.Output goes Presentation->Archive.
5341 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
5342 + Avoid overlapping blocks in column output.
5343 + Position images correctly in two-column layout.
5344 + Make content shape retrieval environment-aware.
5345 + Improve image handling. We now determine image and caption placement
5346 by getting the dimensions of the content box in a given layout.
5347 This allows for images to be correctly sized and positioned in a
5348 different template. Note that images without captions and headers are
5349 no longer full-screened. We can't do this dependably in different
5350 layouts, because we don't know where the header is (it could be to
5351 the side of the content, for example).
5352 + Read presentation size from reference file. Our presentation size is
5353 now dependent on the reference/template file we use.
5354 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
5355 subheaders will be printed in bold and given a bit of extra space
5356 before them. Note that at the moment, no distinction is made between
5357 levels of headers above the slide header, though that can be changed.
5358 + Check for required files. Since we now import from reference/dist
5359 file by glob, we need to make sure that we're getting the files we
5360 need to make a non-corrupt Powerpoint. This performs that check.
5361 + Improve templating using `--reference-doc`. Templating should work
5362 much more reliably now.
5363 + Include Notes slide in TOC.
5364 + Set notes slide header to slide-level.
5365 + Add table of contents. This is triggered by the `--toc` flag. Note
5366 that in a long slide deck this risks overrunning the text box. The user
5367 can address this by setting `--toc-depth=1`.
5368 + Set notes slide number correctly.
5369 + Clean up adding metadata slide. We want to count the slide numbers
5370 correctly if it's in there.
5371 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
5372 an anchor link. In powerpoint these are links to slides, so we keep
5373 track of a map relating anchors to the slides they occur on.
5374 + Make the slide number available to the blocks. For anchors,
5375 block-processing functions need to know what slide number
5376 they're in. We make the `envCurSlideId` available to blocks.
5377 + Move `curSlideId` to environment.
5378 + Allow setting `toc-title` in metadata.
5379 + Link notes to endnotes slide.
5383 + Fix cell width calculation (#4265). Previously we could get
5384 ever-lengthening cell widths when a table was run repeatedly through
5385 `pandoc -f markdown -t markdown`.
5389 + Escape `&` in lstinline (Robert Schütz).
5393 + Use xtables instead of Tables (#4223, Henri Menke).
5394 Default to xtables for context output. Natural Tables are used
5395 if the new `ntb` extension is set.
5399 + Fixed footnote backlinks with `--id-prefix` (#4235).
5401 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
5404 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
5405 (Jesse Rosenthal, API change).
5407 * Lua filters (Albert Krewinkel):
5409 + Make `PANDOC_READER_OPTIONS` available.
5410 The options which were used to read the document are made available to
5411 Lua filters via the `PANDOC_READER_OPTIONS` global.
5412 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
5413 on a Pandoc document.
5414 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
5415 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
5416 + Improve error messages. Provide more context about the task
5417 which caused an error.
5419 * data/pandoc.lua (Albert Krewinkel):
5421 + Accept singleton inline as a list. Every constructor which accepts a
5422 list of inlines now also accepts a single inline element for
5424 + Accept single block as singleton list. Every constructor which accepts
5425 a list of blocks now also accepts a single block element for
5426 convenience. Furthermore, strings are accepted as shorthand for
5427 `{pandoc.Str "text"}` in constructors.
5428 + Add attr, listAttributes accessors. Elements with
5429 attributes got an additional `attr` accessor. Attributes were
5430 accessible only via the `identifier`, `classes`, and `attributes`,
5431 which was in conflict with the documentation, which indirectly states
5432 that such elements have the an `attr` property.
5433 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
5434 module is closely tied to the pandoc version, which is available via
5436 + Fix access to Attr components. Accessing an Attr value (e.g.,
5437 ` Attr().classes`) was broken; the more common case of accessing it via
5438 an Inline or Block element was unaffected by this.
5440 * Move `metaValueToInlines` to from Docx writer to
5441 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
5446 + Clarify otherlangs in LaTeX (#4072).
5447 + Clarify `latex_macros` extension.
5448 + Recommend use of `raw_attribute` extension in header includes (#4253).
5450 * Allow latest QuickCheck, tasty, criterion.
5452 * Remove custom prelude and ghc 7.8 support.
5454 * Reduce compiler noise (exact paths for compiled modules).
5456## pandoc 2.1 (2018-01-07)
5458 * Allow filters and lua filters to be interspersed (#4196). Previously
5459 we ran all lua filters before JSON filters. Now we run filters in
5460 the order they are presented on the command line, whether lua or JSON.
5461 There are two incompatible API changes: The type of `applyFilters`
5462 has changed, and `applyLuaFilters` has been removed. `Filter` is
5465 * Use latest skylighting and omit the `missingIncludes` check, fixing
5466 a major performance regression in earlier releases of the 2.x series
5467 (#4226). Behavior change: If you use a custom syntax definition that
5468 refers to a syntax you haven't loaded, pandoc will now complain when
5469 it is highlighting the text, rather than doing a check at the start.
5470 This change dramatically speeds up invocations of pandoc on short
5473 * Text.Pandoc.Class: make `FileTree` opaque (don't export
5474 `FileTree` constructor). This forces users to interact with it using
5475 `insertInFileTree` and `getFileInfo`, which normalize file names.
5479 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
5480 direct, avoiding `parseFromString`. And it performs significantly
5481 better; unfortunately, parsing time still increases exponentially
5483 + Avoid parsing raw tex unless `\` + letter seen. This seems to
5484 help with the performance problem, #4216.
5486 * LaTeX reader: Simplified a check for raw tex command.
5488 * Muse reader (Alexander Krotov):
5490 + Enable round trip test (#4107).
5491 + Automatically translate `#cover` into `#cover-image`.
5492 Amusewiki uses #cover directive to specify cover image.
5494 * Docx reader (Jesse Rosenthal):
5496 + Allow for insertion/deletion of paragraphs (#3927).
5497 If the paragraph has a deleted or inserted paragraph break (depending
5498 on the track-changes setting) we hold onto it until the next
5499 paragraph. This takes care of accept and reject. For this we introduce
5500 a new state which holds the ils from the previous para if necessary.
5501 For `--track-changes=all`, we add an empty span with class
5502 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
5503 prior to the break to be inserted or deleted.
5504 + Remove unused anchors (#3679). Docx produces a lot of anchors with
5505 nothing pointing to them---we now remove these to produce cleaner
5506 output. Note that this has to occur at the end of the process
5507 because it has to follow link/anchor rewriting.
5508 + Read multiple children of `w:sdtContents`.
5509 + Combine adjacent anchors. There isn't any reason to have numerous
5510 anchors in the same place, since we can't maintain docx's
5511 non-nesting overlapping. So we reduce to a single anchor.
5514 * Muse writer (Alexander Krotov): don't escape URIs from AST
5518 + Removed redundant subtitle in title (Sebastian Talmon).
5519 + `firstRow` table definition compatibility for Word 2016 (Sebastian
5520 Talmon). Word 2016 seems to use a default value of "1" for table
5521 headers, if there is no firstRow definition (although a default
5522 value of 0 is documented), so all tables get the first Row formatted
5523 as header. Setting the parameter to 0 if the table has no header
5524 row fixes this for Word 2016
5525 + Fix custom styles with spaces in the name (#3290).
5527 * Powerpoint writer (Jesse Rosenthal):
5529 + Ignore Notes div for parity with other slide outputs.
5530 + Set default slidelevel correctly. We had previously defaulted to
5531 slideLevel 2. Now we use the correct behavior of defaulting to the
5532 highest level header followed by content. We change an expected test
5533 result to match this behavior.
5534 + Split blocks correctly for linked images.
5535 + Combine adjacent runs.
5536 + Make inline code inherit code size. Previously (a) the code size
5537 wasn't set when we force size, and (b) the properties was set from
5538 the default, instead of inheriting.
5539 + Simplify `replaceNamedChildren` function.
5540 + Allow linked images. The following markdown:
5541 `[](http://www.example.com)`
5542 will now produce a linked image in the resulting PowerPoint file.
5543 + Fix error with empty table cell. We require an empty `<a:p>` tag,
5544 even if the cell contains no paragraphs---otherwise PowerPoint
5545 complains of corruption.
5546 + Implement two-column slides. This uses the columns/column div
5547 format described in the pandoc manual. At the moment, only two
5548 columns (half the screen each) are allowed. Custom widths are not
5552 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
5554 * Lua filters (Albert Krewinkel):
5556 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
5557 + The current pandoc-types version is made available to Lua programs in
5558 the global `PANDOC_API_VERSION`. It contains the version as a list of
5560 + The pandoc version available as a global `PANDOC_VERSION` (a list
5562 + `data/pandoc.lua`: make `Attr` an `AstElement`.
5563 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
5564 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
5565 not set a metatable on the returned value, which made it difficult
5566 to amend objects of these types with new behavior. They are now
5567 subtypes of AstElement, meaning that all their objects can gain
5568 new features when a method is added to the behavior object
5569 (e.g., `pandoc.Pandoc.behavior`).
5570 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
5571 between a type and the behavioral properties of an instance of that
5572 type. The behavior of a type (and all its subtypes) can now be
5573 amended by adding methods to that types `behavior` object, without
5574 exposing the type objects internals. E.g.:
5576 pandoc.Inline.behavior.frob = function () print'42' end
5577 local str = pandoc.Str'hello'
5578 str.frob() -- outputs '42'
5580 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
5581 of a given type (e.g., all inline elements) was difficult, as the
5582 table used to lookup unknown methods would be reset every time a
5583 new element of that type was created, preventing recursive property
5584 lookup. This is was changed in that all methods and attributes of
5585 supertypes are now available to their subtypes.
5586 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
5587 fields were named like the Haskell fields, not like the documented,
5588 shorter version. The names are changed to match the documentation
5589 and Citations are given a shared metatable to enable simple
5591 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
5592 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
5593 difficult to handle failures while getting lists or a Map from Lua.
5594 A bug in pandoc, which made it necessary to always pass a tag when
5595 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
5596 module's constructor functions for these values is now optional
5597 (if still recommended).
5598 + Stop exporting `pushPandocModule` (API change). The introduction
5599 of `runPandocLua` renders direct use of this function obsolete.
5600 + Update generation of module docs for lua filters.
5601 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
5602 MacFarlane). I'm sure this was intended in the first place,
5603 but currently only `Meta` is supported.
5605 * Improve benchmarks.
5607 + Set the default extensions properly.
5608 + Improve benchmark argument parsing. You can now say
5609 `make bench BENCHARGS="markdown latex reader"` and both the
5610 markdown and latex readers will be benchmarked.
5612 * MANUAL.txt simplify and add more structure (Mauro Bieg).
5614 * Generate README.md from template and MANUAL.txt.
5615 `make README.md` will generate the README.md after changes
5616 to MANUAL.txt have been made.
5618 * Update copyright notices to include 2018 (Albert Krewinkel).
5620## pandoc 2.0.6 (2017-12-28)
5622 * Added `jats` as an input format.
5624 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
5625 change) (Hamish Mackenzie).
5626 + Improved citation handling in JATS reader. JATS citations
5627 are now converted to pandoc citations, and JATS ref-lists
5628 are converted into a `references` field in metadata, suitable
5629 for use with pandoc-citeproc. Thus a JATS article with embedded
5630 bibliographic information can be processed with pandoc and
5631 pandoc-citeproc to produce a formatted bibliography.
5633 * Allow `--list-extensions` to take an optional FORMAT argument.
5634 This lists the extensions set by default for the selected FORMAT.
5635 The extensions are now alphabetized, and the `+` or `-`
5636 indicating the default setting comes before, rather than after,
5641 + Preserve original whitespace between blocks.
5642 + Recognize `\placeformula` as context.
5643 + Be pickier about table captions. A caption starts with a `:` which
5644 can't be followed by punctuation. Otherwise we can falsely interpret
5645 the start of a fenced div, or even a table header line like
5646 `:--:|:--:`, as a caption.
5647 + Always use four space rule for example lists. It would be awkward
5648 to indent example list contents to the first non-space character after
5649 the label, since example list labels are often long. Thanks to
5650 Bernhard Fisseni for the suggestion.
5651 + Improve raw tex parsing. Note that the Markdown reader is also
5652 affected by the `latex_macros` extension changes described below
5653 under the LaTeX reader.
5657 + `latex_macros` extension changes (#4179). Don't pass through macro
5658 definitions themselves when `latex_macros` is set. The macros
5659 have already been applied. If `latex_macros` is enabled, then
5660 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
5661 a macro definition, and will update pandoc's internal macro map
5662 accordingly, but the empty string will be returned.
5663 + Export `tokenize`, `untokenize` (API change).
5664 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
5665 + Refactored `inlineCommand`.
5666 + Fix bug in tokenizer. Material following `^^` was
5667 dropped if it wasn't a character escape. This only affected
5668 invalid LaTeX, so we didn't see it in the wild, but it appeared
5669 in a QuickCheck test failure.
5670 + Fix regression in LateX tokenization (#4159). This mainly affects the
5671 Markdown reader when parsing raw LaTeX with escaped spaces.
5672 + Add tests of LaTeX tokenizer.
5673 + Support `\foreignlanguage` from babel.
5674 + Be more tolerant of `&` character (#4208). This allows us to parse
5675 unknown tabular environments as raw LaTeX.
5677 * Muse reader (Alexander Krotov):
5679 + Parse anchors immediately after headings as IDs.
5680 + Require that note references does not start with 0.
5681 + Parse empty comments correctly.
5683 * Org reader (Albert Krewinkel):
5685 + Fix asterisks-related parsing error (#4180).
5686 + Support minlevel option for includes (#4154). The level of headers
5687 in included files can be shifted to a higher level by specifying a
5688 minimum header level via the `:minlevel` parameter. E.g.
5689 `#+include: "tour.org" :minlevel 1` will shift the headers in
5690 tour.org such that the topmost headers become level 1 headers.
5691 + Break-up org reader test file into multiple modules.
5695 + Enable raw HTML and other extensions by default for notes
5696 (#4164). This fixes a regression in 2.0. Note that extensions can
5697 now be individually disabled, e.g. `-f opml-smart-raw_html`.
5701 + Allow empty list items (#4193).
5702 + More accurate parsing of references (#4156). Previously we erroneously
5703 included the enclosing backticks in a reference ID (#4156). This
5704 change also disables interpretation of syntax inside references, as
5705 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
5709 + Continue lists after interruption (#4025, Jesse Rosenthal).
5710 Docx expects that lists will continue where they left off after an
5711 interruption and introduces a new id if a list is starting again. So
5712 we keep track of the state of lists and use them to define a "start"
5713 attribute, if necessary.
5714 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
5715 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
5720 + Don't linkify table of contents.
5724 + Fix anchors for headers (#4188). We were missing an `_`.
5726 * PowerPoint writer (Jesse Rosenthal):
5728 + Treat lists inside BlockQuotes as lists. We don't yet produce
5729 incremental lists in PowerPoint, but we should at least treat lists
5730 inside BlockQuotes as lists, for compatibility with other slide formats.
5731 + Add ability to force size. This replaces the more specific
5732 `blockQuote runProp`, which only affected the size of blockquotes. We
5733 can use this for notes, etc.
5734 + Implement notes. This currently prints all notes on a final slide.
5735 Note that at the moment, there is a danger of text overflowing the
5736 note slide, since there is no logic for adding further slides.
5737 + Implement basic definition list functionality to PowerPoint writer.
5738 + Don't look for default template file for Powerpoint (#4181).
5739 + Add pptx to isTextFormat list. This is used to check standalone
5740 and not writing to the terminal.
5741 + Obey slide level option (Jesse Rosenthal).
5746 + Ensure that `distArchive` is the one that comes with pandoc
5747 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
5748 dir) would be used instead, and this could cause problems because a
5749 user-modified docx sometimes lacks vital sections that we count
5750 on the `distArchive` to supply.
5754 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
5755 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
5756 Alexander Krotov). Otherwise they can be interpreted as footnote
5759 * Muse writer (Alexander Krotov):
5761 + Don't wrap note references to the next line (#4172).
5765 + Use br elements in line blocks instead of relying on CSS
5766 (#4162). HTML-based templates have had the custom CSS for
5767 `div.line-block` removed. Those maintaining custom templates will want
5768 to remove this too. We still enclose line blocks in a div with class
5773 + Use `\renewcommand` for `\textlatin` with babel (#4161).
5774 This avoids a clash with a deprecated `\textlatin` command defined
5776 + Allow fragile=singleslide attribute in beamer slides (#4169).
5777 + Use `\endhead` after `\toprule` in headerless tables (#4207).
5781 + Add cover image specified by `cover-image` meta (Alexander Krotov,
5784 * JATS writer (Hamish Mackenzie):
5786 + Support writing `<fig>` and `<table-wrap>` elements
5787 with `<title>` and `<caption>` inside them by using Divs with class set
5788 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
5789 title is included as a Heading so the constraint on where Heading can
5790 occur is also relaxed.
5791 + Leave out empty alt attributes on links.
5792 + Deduplicate image mime type code.
5793 + Make `<p>` optional in `<td>` and `<th>` (#4178).
5794 + Self closing tags for empty xref (#4187).
5795 + Improve support for code language.
5799 + Use init file to setup Lua interpreter (Albert Krewinkel).
5800 The same init file (`data/init`) that is used to setup the Lua
5801 interpreter for Lua filters is also used to setup the interpreter of
5803 + Define instances for newtype wrapper (Albert Krewinkel). The custom
5804 writer used its own `ToLuaStack` instance definitions, which made
5805 it difficult to share code with Lua filters, as this could result
5806 in conflicting instances. A `Stringify` wrapper is introduced to
5808 + Added tests for custom writer.
5809 + Fixed definition lists and tables in `data/sample.lua`.
5811 * Fixed regression: when target is PDF, writer extensions were being
5812 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
5813 did not work properly.
5815 * Lua modules (Albert Krewinkel):
5817 + Add `pandoc.utils` module, to hold utility functions.
5818 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
5819 define the `pandoc` lua module.
5820 + Make a Haskell module for each Lua module. Move definitions for the
5821 `pandoc.mediabag` modules to a separate Haskell module.
5822 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
5823 + Add function `pandoc.utils.hierarchicalize` (convert list of
5824 Pandoc blocks into (hierarchical) list of Elements).
5825 + Add function `pandoc.utils.normalize_date` (parses a date and
5826 converts it (if possible) to "YYYY-MM-DD" format).
5827 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
5828 of numbers below 4000 into roman numerals).
5829 + Add function `pandoc.utils.stringify` (converts any AST element
5830 to a string with formatting removed).
5831 + `data/init.lua`: load `pandoc.utils` by default
5832 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
5833 utility functions are converted from hybrid lua/haskell functions
5834 into full Haskell functions. This avoids the need for intermediate
5835 `_pipe`/`_read` helper functions, which have dropped.
5836 + pandoc.lua: re-add missing MetaMap function. This was a bug
5837 introduced in version 2.0.4.
5839 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
5840 a pure way to insert an ersatz file into a `FileTree`. In addition, we
5841 normalize paths both on insertion and on lookup.
5843 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
5845 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
5847 * Text.Pandoc.Extensions: Alphabetical order constructors for
5848 `Extension`. This makes them appear in order in `--list-extensions`.
5850 * Allow lenient decoding of latex error logs, which are not always
5851 properly UTF8-encoded (#4200).
5853 * Update latex template to work with recent versions of beamer.
5854 The old template produced numbered sections with some recent
5855 versions of beamer. Thanks to Thomas Hodgson.
5857 * Updated reference.docx (#4175). Instead of just "Hello, world", the
5858 document now contains exemplars of most of the styles that have an
5859 effect on pandoc documents. This makes it easier to see the effect
5862 * Removed `default.theme` data file (#4096). It is no longer needed now
5863 that we have `--print-highlight-style`.
5865 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
5866 We still need this for the alpine static linux build, since
5867 we don't have ghc 8.2.2 for that yet.
5869 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
5870 can put flag settings for pandoc-citeproc there.
5872 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
5873 make releases easier.
5877 + Add note on what formats have `+smart` by default.
5878 + Use native syntax for custom-style (#4174, Mauro Bieg).
5879 + Introduce dedicated Extensions section, since some extensions
5880 affect formats other than markdown (Mauro Bieg, #4204).
5881 + Clarify default html output for `--section-divs` (Richard Edwards).
5883 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
5884 Closes jgm/pandoc-website#16.
5886 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
5888## pandoc 2.0.5 (2017-12-12)
5890 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
5891 generated with `--print-highlight-style` (#4133). Improve JSON
5892 serialization of styles.
5894 * Fix CSS issues involving line numbers (#4128).
5895 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
5896 Highlighting CSS no longer sets a generic color for pre and code; we only
5897 set these for class `sourceCode`.
5899 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
5901 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
5902 It works following the standard Pandoc conventions for making other
5903 sorts of slides. Caveats:
5905 + Syntax highlighting is not yet implemented. (This is difficult
5906 because there are no character classes in Powerpoint.)
5907 + Footnotes and Definition lists are not yet implemented. (Notes will
5908 usually take the form of a final slide.
5909 + Image placement and auto-resizing has a few glitches.
5910 + Reference powerpoint files don't work dependably from the command
5911 line. This will be implemented, but at the moment users are advised
5912 to change themes from within Powerpoint.
5914 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
5915 This is for functions used by both Powerpoint and Docx writers.
5917 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
5919 * Add `empty_paragraphs` extension.
5921 + Deprecate `--strip-empty-paragraphs` option. Instead we now
5922 use an `empty_paragraphs` extension that can be enabled on
5923 the reader or writer. By default, disabled.
5924 + Add `Ext_empty_paragraphs` constructor to `Extension`.
5925 + Revert "Docx reader: don't strip out empty paragraphs."
5926 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
5927 + Implement `empty_paragraphs` extension in docx reader and writer,
5928 opendocument writer, html reader and writer.
5929 + Add tests for `empty_paragraphs` extension.
5933 + Don't parse native div as table caption (#4119).
5934 + Improved computation of column widths in pipe tables.
5935 Pipe tables with lines longer than the text width (as set
5936 by `--columns`) are now scaled to text width, with the relative
5937 widths of columns determined by the ratios between the
5938 header lines. Previously we computed column widths using
5939 the ratio of header line lengths to column width, so that
5940 tables with narrow header lines were extremely thin, which
5941 was very rarely the desired result.
5943 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
5944 as long as it's not followed by a blank line. This has been fixed at the
5947 * Muse reader (Alexander Krotov):
5949 + Add test for `#disable-tables` directive in Emacs mode.
5950 + Don't allow emphasis to be preceded by letter.
5951 + Add underline support in Emacs Muse mode..
5952 + Support multiline directives in Amusewiki mode
5954 * Man writer: omit internal links (#4136). That is, just print the link
5955 text without the URL.
5957 * Markdown reader: accept processing instructions as raw HTML (#4125).
5959 * Lua filters (Albert Krewinkel):
5961 + Use script to initialize the interpreter. The file `init.lua` is
5962 used to initialize the Lua interpreter which is used in Lua filters.
5963 This gives users the option to require libraries which they want to
5964 use in all of their filters, and to extend default modules.
5965 + Fix package loading for Lua 5.1. The list of package searchers is
5966 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
5967 in Lua 5.2 and later.
5968 + Refactor lua module handling. The integration with Lua's package/module
5969 system is improved: A pandoc-specific package searcher is prepended to
5970 the searchers in `package.searchers`. The modules `pandoc` and
5971 `pandoc.mediabag` can now be loaded via `require`.
5972 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
5973 function which makes using Haskell functions as package loaders much
5976 * reveal.js template: add title-slide identifier to title slide (#4120).
5977 This allows it to be styled more easily.
5979 * LaTeX template: Added support for `pagestyle` variable (#4135,
5982 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
5986## pandoc 2.0.4 (2017-12-03)
5988 * Add `--print-highlight-style` option. This generates a JSON version
5989 of a highlighting style, which can be saved as a `.theme` file, modified,
5990 and used with `--highlight-style` (#4106, #4096).
5992 * Add `--strip-empty-paragraphs` option. This works for any input format.
5993 It is primarily intended for use with docx and odt documents where
5994 empty paragraphs have been used for inter-paragraph spaces.
5996 * Support `--webtex` for `gfm` output.
5998 * Recognize `.muse` file extension.
6000 * Support beamer `\alert` in LaTeX reader. Closes #4091.
6002 * Docx reader: don't strip out empty paragraphs (#2252).
6003 Users who have a conversion pipeline from docx may want to consider adding
6004 `--strip-empty-paragraphs` to the command line.
6006 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
6008 * Muse reader (Alexander Krotov):
6010 + Parse markup in definition list terms.
6011 + Allow definition to end with EOF.
6012 + Make code blocks round trip.
6013 + Drop common space prefix from list items.
6014 + Add partial round trip test.
6015 + Don't interpret XML entities.
6017 + Parse `~~` as non-breaking space in Emacs mode.
6018 + Correctly remove indentation from notes. Exactly one space is
6019 required and considered to be part of the marker.
6020 + Allow list items to be empty.
6021 + Add ordered list test.
6022 + Add more multiline definition tests.
6023 + Don't allow blockquotes within lists.
6024 + Fix reading of multiline definitions.
6025 + Add inline `<literal>` support.
6026 + Concatenate inlines of the same type
6028 * Docx writer: allow empty paragraphs (#2252).
6030 * CommonMark/gfm writer:
6032 + Use raw html for native divs/spans (#4113). This allows a pandoc
6033 markdown native div or span to be rendered in gfm using raw html tags.
6034 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
6035 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
6037 * Muse writer (Alexander Krotov):
6039 + Test that inline math conversion result is normalized.
6040 Without normalization this test produced
6041 `<em>a</em><em>b</em><em>c</em>`.
6042 + Improve inline list normalization and move to writer.
6043 + Escape hash symbol.
6044 + Escape `----` to avoid accidental horizontal rules.
6045 + Escape only `</code>` inside code tag.
6046 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
6050 + Allow specifying just width or height for image size.
6051 Previously both needed to be specified (unless the image was
6052 being resized to be smaller than its original size).
6053 If height but not width is specified, we now set width to
6054 textwidth. If width but not height is specified, we now set
6055 height to textheight. Since we have `keepaspectratio`, this
6056 yields the desired result.
6057 + Escape `~` and `_` in code with `--listings` (#4111).
6059 * HTML writer: export `tagWithAttributes`. This is a helper allowing
6060 other writers to create single HTML tags.
6062 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
6063 converting the case as needed in LaTeX and ConTeXt writers.
6065 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
6066 so that it no longer produces empty `Para`'s as an artifact.
6068 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
6069 This gives us automatic normalization, so we don't get
6070 for example two consecutive Spaces.
6072 * Include default CSS for 'underline' class in HTML-based templates.
6074 * revealjs template: add `tex2jax` configuration for the
6075 math plugin. With the next release of reveal.js, this will
6076 fix the problem of `$`s outside of math contexts being
6077 interpreted as math delimiters (#4027).
6079 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
6081 + Add basic lua List module (#4099, #4081). The List module is
6082 automatically loaded, but not assigned to a global variable. It can be
6083 included in filters by calling `List = require 'List'`. Lists of blocks,
6084 lists of inlines, and lists of classes are now given `List` as a metatable,
6085 making working with them more convenient. E.g., it is now possible to
6086 concatenate lists of inlines using Lua's concatenation operator `..`
6087 (requires at least one of the operants to have `List` as a metatable):
6089 function Emph (emph)
6090 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
6091 return pandoc.Span(emph.content .. s)
6094 The `List` metatable is assigned to the tables which get passed to
6095 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
6096 enables the use of the resulting objects as lists.
6097 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
6098 Pandoc and Meta elements are now pushed by calling the respective
6099 constructor functions of the pandoc Lua module. This makes serialization
6100 consistent with the way blocks and inlines are pushed to lua and allows
6101 to use List methods with the `blocks` value.
6102 + Add documentation for pandoc.List in `lua-filters.md`.
6104 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
6105 `&` (but not a valid entity) following them (#4094, #4088).
6107 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
6108 when `numberLines` is used (#4103).
6110 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
6111 requiring a leading 0 on single-digit days.
6113 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
6116 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
6117 Previously we only mentioned `--latexmathml`, even if `-m` was
6120 * Changelog: fix description of lua filters in 2.0 release
6121 (Albert Krewinkel). Lua filters were initially run *after* conventional
6122 (JSON) filters. However, this was changed later to make it easier to deal
6123 with files in the mediabag. The changelog is updated to describe that
6124 feature of the 2.0 release correctly.
6126 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
6127 #4085). This reduces compile time and memory usage significantly.
6129 * `lua-filters.md`: Added tikz filter example.
6131 * Create alternative zip file for macOS binaries.
6133 * Create alternative zip file for Windows binaries.
6135 * Update INSTALL.md since we now provide zips for binaries.
6137 * Relax `http-types` dependency (Justus Sagemüller, #4084).
6139 * Add `epub.md`, `getting-started.md` to docs. These used to live in
6142 * Add `packages` target to Makefile.
6144 * Bump bounds for binary, http-types, tasty-hunit
6146## pandoc 2.0.3 (2017-11-20)
6148 * Lua filters: preload text module (Albert Krewinkel, #4077).
6149 The `text` module is preloaded in lua. The module contains some UTF-8
6150 aware string functions, implemented in Haskell. The module is loaded on
6153 text = require 'text'
6155 s.text = text.upper(s.text)
6159 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
6160 #4071). Attribute lists are represented as associative lists in Lua. Pure
6161 associative lists are awkward to work with. A metatable is attached to
6162 attribute lists, allowing to access and use the associative list as if
6163 the attributes were stored in as normal key-value pair in table.
6164 Note that this changes the way `pairs` works on attribute lists. Instead
6165 of producing integer keys and two-element tables, the resulting iterator
6166 function now returns the key and value of those pairs. Use `ipairs` to
6167 get the old behavior. Warning: the new iteration mechanism only works if
6168 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
6170 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
6171 This fixes a bug where pandoc would stop parsing a URI with an
6172 empty attribute: for example, `&a=&b=` wolud stop at `a`.
6173 (The uri parser tries to guess which punctuation characters
6174 are part of the URI and which might be punctuation after it.)
6176 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
6178 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
6180 + Reimplemented `isEnabled` function from `Options.hs` to accept both
6181 `ReaderOptions` and `WriterOptions`.
6182 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
6184 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
6185 behavior for `muse`. New `Ext_amuse` constructor for
6186 `Extension`. Note: this is switched on by default; for
6187 Emacs behavior, use `muse-amuse`.
6189 * Muse reader (Alexander Krotov):
6191 + Count only one space as part of list item marker.
6192 + Produce SoftBreaks on newlines. Now wrapping can be preserved
6193 with `--wrap=preserve`.
6194 + Add Text::Amuse footnote extensions. Footnote end is indicated by
6195 indentation, so footnotes can be placed anywhere in the text,
6196 not just at the end of it.
6197 + Accept Emacs Muse definition lists when `-amuse`.
6198 Emacs Muse does not require indentation.
6202 + Ensure we don't produce level 0 headers (#4076), even for chapter
6203 sections in epubs. This causes problems because writers aren't set
6205 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
6206 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
6207 `markdown` or `html` `+tex_math_single_backslash`.
6209 * MANUAL: clarify that math extensions work with HTML.
6210 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
6211 will work with HTML as well as Markdown.
6213 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
6216 * RST reader: better support for 'container' directive (#4066).
6217 Create a div, incorporate name attribute and classes.
6221 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
6222 `rr`. We now expand it like a macro.
6223 + Allow optional args for parbox (#4056).
6224 + Allow optional arguments on `\footnote` (#4062).
6226 * EPUB writer: Fixed path for cover image (#4069). It was previously
6227 `media/media/imagename`, and should have been `media/imagename`.
6229 * Markdown writer: fix bug with doubled footnotes in grid tables
6232 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
6233 Otherwise we seem to get an error; biblatex wants polyglossia
6234 language to be defined.
6236 * Added examples to lua filters documentation.
6239## pandoc 2.0.2 (2017-11-12)
6241 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
6242 `--mimetex`, `--jsmath`.
6244 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
6245 leading to invalid XML in default JATS output with pandoc-citeproc.
6247 * `lua-filters.md`: use real-world man page filter as example.
6249 * Add lua filter functions `walk_inline` and `walk_block`
6250 in the pandoc module, to apply filters inside particular
6251 inline and block elements.
6253 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
6254 into new internal module `Text.Pandoc.Lua.Filter`.
6258 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
6259 This brings our handling of them into alignment with CommonMark's.
6260 + Fix YAML metadata with "chomp" (`|-`). Previously if a
6261 YAML block under `|-` contained a blank line, pandoc would
6262 not parse it as metadata.
6264 * Removed `etc.` from abbreviations file. Often `etc.` ends a
6265 sentence, and we want the period to be treated as a
6266 sentence-ending period.
6268 * Fix regression with `--metadata` (#4054). Values specified with
6269 `--metadata` should replace a metadata value set in the document
6270 itself, rather than creating a list including a new value.
6274 + Fix EPUB OCF structure. #3720 had been improperly implemented.
6275 + Fix modified paths for raw HTML tags (src, poster, etc.)
6276 (#4050, #4055). This had not been updated for the new EPUB
6277 container layout, with a separate text/ subdirectory.
6278 + Fix image paths with empty `--epub-subdirectory`.
6280 * Miscellaneous code cleanup (Alexander Krotov).
6282 * Use pandoc-types 1.17.3, which adds `Walkable` instances
6283 for `[Block] Block` and `[Inline] Inline`.
6285 * Remove obsolete `stack.full.yaml` (#4052).
6287 * Change to using pandoc-citeproc 0.12.1 in binary packages.
6289 * Consolidate math output method documentation (#4049, Mauro Bieg).
6291 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
6293 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
6294 Haskell filters. This is easier and faster.
6296 * Improved `INSTALL.md`.
6298 * Update commands to extract deb archive on Linux (#4043, Salim B).
6301## pandoc 2.0.1.1 (2017-11-04)
6303 * Improved fix to #3989 (parsing of HTML tags containing
6304 `>` in an attribute or comment). The previous fix (in 2.0.1) only
6305 worked in certain cases.
6307 * FB2 writer (Alexander Krotov):
6309 + Add `unrecognised` genre to `<title-info>`
6310 (Alexander Krotov). XML schema requires at least one genre.
6311 + Remove `<annotation>` from `<body>`.
6313 * CommonMark writer: fix strikethrough for `gfm` (#4038).
6315 * Use texmath 0.10, which adds support for a wider range of
6316 symbols and fixes default column alignments in MathML
6319 * Highlighting fixes, using skylighting 0.4.3.2:
6322 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
6323 + Ensure that code lines don't get duplicate identifiers (#4031).
6324 The line identifiers are built using the code block's identifier
6325 as a prefix. If the code block has null identifier, we use
6328 * Added a few abbreviations to `data/abbreviations`,
6329 and sorted the list (#3984, Wandmalfarbe).
6331 * Improved support for columns in HTML writer (#4028).
6333 + Remove `width` attribute from the `div`.
6334 + Remove space between `<div class="column">` elements,
6335 since this prevents columns whose widths sum to 100%
6336 (the space takes up space).
6337 + Move as much as possible of the CSS to the template.
6338 + Ensure that all the HTML-based templates (including epub)
6339 contain the CSS for columns.
6340 + Columns default to 50% width unless they are given a width
6341 attribute. So if you want two equal-width columns, you
6342 can use a div with class `column` and no `width` attribute.
6344 * SelfContained: use `base64` for css links with media attribute (#4026).
6345 This fixes `--self-contained` with S5.
6347 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
6349 * INSTALL.md: MacOS instructions needed xar -f (adam234).
6353 + Clarify that --setext-headers doesn't affect gfm output (#4035).
6354 + Clarify what is needed to open and close a div in `fenced_divs`
6355 (#4039, Tristano Ajmone).
6356 + Removed reference to `default.beamer` in docs (#4024).
6357 Also added mention of other templates affecting PDF output
6358 with different settings.
6361## pandoc 2.0.1 (2017-10-31)
6363 * Fixed regression in parsing of HTML comments in markdown and other
6364 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
6365 The parser stopped at the first `>` character, even if it wasn't
6366 the end of the comment.
6368 * Creole reader (Sascha Wilde):
6370 + Fix some minor typos and formatting.
6371 + Add additional test on nowiki-block after para.
6372 + Fix lists with trailing white space.
6374 * LaTeX reader: handle `%` comment right after command.
6375 For example, `\emph%`.
6377 * Markdown reader: make sure fenced div closers work in lists.
6378 Previously the following failed:
6385 and you needed a blank line before the closing `:::`.
6387 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
6388 enabled, Divs will be rendered as fenced divs.
6390 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
6393 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
6394 Note: this change may require some changes in CSS rules.
6395 `footnoteRef` has become `footnote-ref`, `titleslide` has
6396 become `title-slide`, and `footnoteBack` has become `footnote-back`.
6398 * JATS writer: Properly pass through author metadata (#4020).
6400 * FB2 writer (Alexander Krotov):
6402 + Write blocks outside of `<p>` in definitions.
6403 + Make bullet lists consistent with ordered lists, repeating
6404 the marker for the outer list rather than indenting sublists,
6405 since indentation does not work in readers.
6406 + Add new style FB2 tests.
6408 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
6409 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
6412 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
6414 * Fix broken reference links in manual (Andrew Dunning, #4014)
6416 * Fixed example of slide columns structure in changelog (#4015).
6417 Also documented this feature in MANUAL.txt.
6420## pandoc 2.0.0.1 (2017-10-30)
6424 + Fixed filepaths for nonstandard epub-subdirectory values.
6425 + Ensure that epub2 is recognized as a non-text format,
6426 so that a template is used.
6427 + Don't include "prefix" attribute for ibooks for epub2.
6428 It doesn't validate.
6429 + Fix stylesheet paths; previously we had an incorrect
6430 stylesheet path for the cover page and nav page.
6434 + Insert space when needed in macro expansion (#4007).
6435 Sometimes we need to insert a space after a control sequence
6436 to prevent it merging with a following letter.
6437 + Allow unbraced arguments for macros (#4007).
6438 + Allow body of macro definition to be unbraced (#4007).
6440 * Linux package build: ensure that pandoc-citeproc is statically linked.
6442 * trypandoc: add native, ms.
6445## pandoc 2.0 (2017-10-29)
6449 * New output format `ms` (groff ms). Complete support, including
6450 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
6451 texmath's new eqn writer to convert math to eqn format, so a ms file
6452 produced with this writer should be processed with `groff -ms -e` if
6455 * New output format `jats` (Journal Article Tag Suite). This is an XML
6456 format used in archiving and publishing articles. Note that a
6457 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
6458 unless a stylesheet is specified using `--css`.
6460 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
6461 This uses bindings to GitHub's fork of cmark, so it should parse
6462 gfm exactly as GitHub does (excepting certain postprocessing
6463 steps, involving notifications, emojis, etc.). `markdown_github`
6464 has been deprecated in favor of `gfm`.
6466 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
6468 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
6469 This uses bindings to GitHub's fork of cmark. `markdown_github`
6470 has been deprecated in favor of `gfm`.
6472 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
6474 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
6476 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
6477 Note that there is a new data file, `data/vimwiki.css`, which can
6478 be used to display the HTML produced by this reader and
6479 pandoc's HTML writer in the style of vimwiki's own HTML
6482 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
6484 * New syntax for Divs, with `fenced_divs` extension enabled by
6485 default (#168). This gives an attractive, plain-text way to create
6486 containers for block-level content.
6488 * Added new syntax for including raw content in any output format,
6489 enabled by the `raw_attribute` extension (which is on by default
6490 for `markdown` and `multimarkdown`). The syntax is the same as
6491 for fenced code blocks or code inlines, only with `{=FORMAT}` for
6492 attributes, where `FORMAT` is the name of the output format
6493 (e.g., `ms`, `html`).
6495 * Implement multicolumn support for slide formats (#1710).
6496 The structure expected is:
6498 :::::::::::::: {.columns}
6499 ::: {.column width="40%"}
6502 ::: {.column width="60%"}
6507 Support has been added for beamer and all HTML slide formats.
6509 * Allows line comments in templates, beginning with `$--` (#3806).
6510 (Requires doctemplates 0.2.1.)
6512 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
6513 (Stefan Dresselhaus, #3663, #2097).
6515 * Add `--log` option to save log messages in JSON format to a file (#3392).
6517 * Add `--request-header` option, to set request headers when pandoc
6518 makes HTTP requests to fetch external resources. For example:
6519 `--request-header User-Agent:blah`.
6521 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
6522 option works like `--filter` but takes pathnames of special lua filters
6523 and uses the lua interpreter baked into pandoc, so that no external
6524 interpreter is needed. Note that lua filters are all applied after
6525 regular filters, regardless of their position on the command line.
6526 For documentation of lua filters, see `doc/lua-filters.md`.
6528 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
6529 This contains a JSON representation of `ReaderOptions`, so filters
6532 * Support creation of pdf via groff `ms` and pdfroff.
6533 `pandoc -t ms -o output.pdf input.txt`.
6535 * Support for PDF generation via HTML and `weasyprint` or `prince`
6536 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
6538 * Added `--epub-subdirectory` option (#3720). This specifies the
6539 subdirectory in the OCF container that holds the EPUB specific content.
6540 We now put all EPUB related content in an `EPUB/` subdirectory by default
6541 (later this will be configurable).
6546 com.apple.ibooks.display-options.xml
6548 EPUB/ <<--configurable-->>
6549 fonts/ <<--static-->>
6551 media/ <<--static-->>
6554 styles/ <<--static-->>
6558 text/ <<--static-->>
6562 * Added `--resource-path=SEARCHPATH` command line option (#852).
6563 SEARCHPATH is separated by the usual character, depending on OS
6564 (: on unix, ; on windows). Default resource path is just working
6565 directory. However, the working directory must be explicitly
6566 specified if the `--resource-path` option is used.
6568 * Added --abbreviations=FILE option for custom abbreviations file
6569 (#256). Dfault abbreviations file (`data/abbreviations`) contains
6570 a list of strings that will be recognized by pandoc's
6571 Markdown parser as abbreviations. (A nonbreaking space will
6572 be inserted after the period, preventing a sentence space in
6573 formats like LaTeX.) Users can override the default by putting a file
6574 abbreviations in their user data directory (`~/.pandoc` on *nix).
6576 * Allow a theme file as argument to `--highlight-style`.
6577 Also include a sample, `default.theme`, in `data/`.
6579 * Allow `--syntax-definition` option for dynamic loading of syntax
6580 highlighting definitions (#3334).
6582 * Lists in `markdown` by default now use the CommonMark variable
6583 nesting rules (#3511). The indentation required for a block-level
6584 item to be included in a list item is no longer fixed, but is
6585 determined by the first line of the list item. To be included in
6586 the list item, a block must be indented to the level of the first
6587 non-space content after the list marker. Exception: if are 5 or more
6588 spaces after the list marker, then the content is interpreted as an
6589 indented code block, and continuation paragraphs must be indented
6590 two spaces beyond the end of the list marker. See the CommonMark
6591 spec for more details and examples.
6593 Documents that adhere to the four-space rule should, in most cases,
6594 be parsed the same way by the new rules. Here are some examples
6595 of texts that will be parsed differently:
6600 will be parsed as a list item with a sublist; under the four-space
6601 rule, it would be a list with two items.
6607 Here we have an indented code block under the list item, even though it
6608 is only indented six spaces from the margin, because it is four spaces
6609 past the point where a continuation paragraph could begin. With the
6610 four-space rule, this would be a regular paragraph rather than a code
6617 Here the code block will start with two spaces, whereas under
6618 the four-space rule, it would start with `code`. With the four-space
6619 rule, indented code under a list item always must be indented eight
6620 spaces from the margin, while the new rules require only that it
6621 be indented four spaces from the beginning of the first non-space
6622 text after the list marker (here, `a`).
6624 This change was motivated by a slew of bug reports from people
6625 who expected lists to work differently (#3125, #2367, #2575, #2210,
6626 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
6627 of CommonMark (now used by GitHub, for example). Those who
6628 prefer the old behavior can use `-f markdown+four_space_rule`.
6630 * Added `four_space_rule` extension. This triggers the old pandoc
6631 parsing rule for content nested under list items (the "four space
6634 * Added `spaced_reference_links` extension (#2602). It allows whitespace
6635 between the two parts of a reference link: e.g.
6641 This was previously enabled by default; now it is forbidden by default.
6643 * Add `space_in_atx_header` extension (#3512). This is enabled by default
6644 in pandoc and GitHub markdown but not the other flavors.
6645 This requirse a space between the opening #'s and the header
6646 text in ATX headers (as CommonMark does but many other implementations
6647 do not). This is desirable to avoid falsely capturing things ilke
6655 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
6658 * Allow ibooks-specific metadata in epubs (#2693). You can now have
6659 the following fields in your YAML metadata, and it will be treated
6660 appropriately in the generated EPUB:
6665 specified-fonts: false
6666 ipad-orientation-lock: portrait-only
6667 iphone-orientation-lock: landscape-only
6669 scroll-axis: vertical
6675 * Reader functions no longer presuppose that CRs have been
6676 stripped from the input. (They strip CRs themselves, before
6677 parsing, to simplify the parsers.)
6679 * Added support for translations (localization) (#3559).
6680 Currently this only affects the LaTeX reader, for things
6681 like `\figurename`. Translation data files for 46 languages
6682 can be found in `data/translations`.
6684 * Make `--ascii` work with DocBook output too.
6686 * Rename `--latex-engine` to `--pdf-engine`,
6687 and `--latex-engine-opt` to `--pdf-engine-opt`.
6689 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
6690 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
6691 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
6692 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
6694 * With `--filter` R filters are now recognized, even if they are
6695 not executable (#3940, #3941, Andrie de Vries).
6697 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
6699 * Make epub an alias for epub3, not epub2.
6701 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
6702 Multiple stylesheets may be used. Stylesheets will be taken both from
6703 `--css` and from the `stylesheet` metadata field (which can contain
6704 either a file path or a list of them).
6706 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
6707 The argument was for a bridge JavaScript that used to be necessary
6708 in 2004. We have removed the script already.
6710 * `--katex` improvements. The latest version is used, and the
6711 autoload script is loaded by default.
6713 * Change MathJax CDN default since old one is shutting down (#3544).
6714 Note: The new URL requires a version number, which we'll have
6715 to update manually in subsequent pandoc releases in order to
6716 take advantage of mathjax improvements.
6718 * `--self-contained`: don't incorporate elements with `data-external="1"`
6719 (#2656). You can leave an external link as it is by adding the attribute
6720 data-external="1" to the element. Pandoc will then not try to
6721 incorporate its content when `--self-contained` is used. This is
6722 similar to a feature already supported by the EPUB writer.
6724 * Allow `--extract-media` to work with non-binary input formats
6725 (#1583, #2289). If `--extract-media` is supplied with a non-binary
6726 input format, pandoc will attempt to extract the contents of all
6727 linked images, whether in local files, data: uris, or external uris.
6728 They will be named based on the sha1 hash of the contents.
6730 * Make `papersize: a4` work regardless of the case of `a4`.
6731 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
6733 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
6735 * Underlined elements are now treated consistently by readers
6736 (#2270, hftf); they are always put in a Span with class `underline`.
6737 This allows the user to treat them differently from other emphasis,
6738 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
6741 * Improved behavior of `auto_identifiers` when there are explicit ids
6742 (#1745). Previously only autogenerated ids were added to the list
6743 of header identifiers in state, so explicit ids weren't taken
6744 into account when generating unique identifiers. Duplicated
6745 identifiers could result. This simple fix ensures that explicitly given
6746 identifiers are also taken into account.
6748 * Use `table-of-contents` for contents of toc, make `toc` a boolean
6749 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
6750 This allows you to set `toc: true` in the metadata; this
6751 previously produced strange results in some output formats.
6752 For backwards compatibility, `toc` is still set to the
6753 toc contents. But it is recommended that you update templates
6754 to use `table-of-contents` for the toc contents and `toc`
6757 * Change behavior with binary format output to stdout.
6758 Previously, for binary formats, output to stdout was disabled
6759 unless we could detect that the output was being piped (and not
6760 sent to the terminal). Unfortunately, such detection is not
6761 possible on Windows, leaving windows users no way to pipe binary
6762 output. So we have changed the behavior in the following way:
6764 + Output to stdout is allowed when it can be determined that
6765 the output is being piped (on non-Windows platforms).
6766 + If the `-o` option is not used, binary output is never sent
6767 to stdout by default; instead, an error is raised.
6768 + If `-o -` is used, binary output is sent to stdout, regardless
6769 of whether it is being piped. This works on Windows too.
6771 * Better error behavior: uses of `error` have been replaced by
6772 raising of `PandocError`, which can be trapped and handled by the
6775 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
6776 GitHub has two Markdown modes, one for long-form documents like READMEs
6777 and one for short things like issue coments. In issue comments, a line
6778 break is treated as a hard line break. In README, wikis, etc., it is
6779 treated as a space as in regular Markdown. Since pandoc is more likely to
6780 be used to convert long-form documents from GitHub Markdown,
6781 `-hard_line_breaks` is a better default.
6783 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
6785 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
6786 Previously they would be transmitted to the template without any
6787 escaping. Note that `--M title='*foo*'` yields a different result from
6793 In the latter case, we have emphasis; in the former case, just
6794 a string with literal asterisks (which will be escaped
6795 in formats, like Markdown, that require it).
6797 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
6799 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
6800 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
6801 it is valid HTML5. HTML4 is not affected. This will allow us to use
6802 custom attributes in pandoc without producing invalid HTML. (With help
6803 from Wandmalfarbe, #3817.)
6805 * Plain writer: improved super/subscript rendering. We now
6806 handle more non-digit characters for which there are
6807 sub/superscripted unicode characters. When unicode
6808 sub/superscripted characters are not available, we use
6809 `_(..)` or `^(..)` (#3518).
6811 * Docbook, JATS, TEI writers: print INFO message when omitting interior
6812 header (#3750). This only applies to section headers inside list items,
6813 e.g., which were otherwise silently omitted.
6815 * Change to `--reference-links` in Markdown writer (#3701). With
6816 `--reference-location` of `section` or `block`, pandoc will now repeat
6817 references that have been used in earlier sections. The Markdown
6818 reader has also been modified, so that *exactly* repeated references
6819 do not generate a warning, only references with the same label but
6820 different targets. The idea is that, with references after every block,
6821 one might want to repeat references sometimes.
6823 * ODT/OpenDocument writer:
6825 + Support `lang` attribute (#1667).
6826 + Added support for `--toc` (#2836). Thanks to @anayrat.
6830 + `lang` meta, see #1667 (Mauro Bieg, #3515).
6831 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
6832 + Use `Table` rather than `Table Normal` for table style (#3275).
6833 `Table Normal` is the default table style and can't be modified.
6834 + Pass through comments (#2994). We assume that comments are defined as
6835 parsed by the docx reader:
6837 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
6838 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
6839 have a comment <span class="comment-end" id="0"></span>on it.
6841 We assume also that the id attributes are unique and properly
6842 matched between comment-start and comment-end.
6843 + Bookmark improvements. Bookmark start/end now surrounds content rather
6844 than preceding it. Bookmarks generated for Div with id
6845 (jgm/pandoc-citeproc#205).
6846 + Add `keywords` metadata to docx document properties (Ian).
6848 * RST writer: support unknown interpreted text roles by
6849 parsing them as `Span` with `role` attributes (#3407). This
6850 way they can be manipulated in the AST.
6854 + Line block: Use class instead of style attribute (#1623). We now
6855 issue `<div class="line-block">` and include a default definition
6856 for `line-block` in the default templates, instead of hard-coding a
6858 + Add class `footnoteBack` to footnote back references (Timm Albers).
6859 This allows for easier CSS styling.
6860 + Render SmallCaps as span with smallcaps class (#1592), rather than
6861 using a style attribute directly. This gives the user more flexibility
6862 in styling small caps in CSS.
6863 + With reveal.js we use `data-src` instead of `src` for images for
6865 + Special-case `.stretch` class for images in reveal.js (#1291).
6866 Now in reveal.js, an image with class `stretch` in a paragraph
6867 by itself will stretch to fill the whole screen, with no
6868 caption or figure environment.
6870 * Added warnings for non-rendered blocks to writers.
6872 * Writers now raise an error on template failure.
6874 * When creating a PDF via LaTeX, warn if the font is missing some
6877 * Remove initial check for PDF-creating program (#3819).
6878 Instead, just try running it and raise the exception if it
6879 isn't found at that point. This improves things for users of Cygwin
6880 on Windows, where the executable won't be found by `findExecutable`
6881 unless `.exe` is added. The same exception is raised as before, but
6884 * Readers issue warning for duplicate header identifiers (#1745).
6885 Autogenerated header identifiers are given suffixes so as not to clash
6886 with previously used header identifiers. But they may still coincide with
6887 an explicit identifier that is given for a header later in the document,
6888 or with an identifier on a div, span, link, or image. We now issue
6889 a warning in this case, so users can supply an explicit identifier.
6891 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
6892 and `raw_html` extensions.
6896 + Don't allow backslash + newline to affect block structure (#3730).
6897 Note that as a result of this change, the following, which formerly
6898 produced a header with two lines separated by a line break, will
6899 now produce a header followed by a paragraph:
6904 This may affect some existing documents that relied on
6905 this undocumented and unintended behavior. This change makes pandoc
6906 more consistent with other Markdown implementations, and with itself
6907 (since the two-space version of a line break doesn't work inside ATX
6908 headers, and neither version works inside Setext headers).
6911 * Org reader (Albert Krewinkel, unless noted):
6913 + Support `table.el` tables (#3314).
6914 + Support macros (#3401).
6915 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
6916 Recognized include types are `example`, `export`, `src`, and
6917 normal org file inclusion. Advanced features like line numbers
6918 and level selection are not implemented yet.
6919 + Interpret more meta value as inlines. The values of the following
6920 meta variables are now interpreted using org-markup instead of
6921 treating them as pure strings: `keywords` (comma-separated list of
6922 inlines), `subtitle` (inline values), `nocite` (inline values, can
6924 + Support `\n` export option (#3940). This turns all newlines in the
6925 text into hard linebreaks.
6929 + Improved admonition support (#223). We no longer add an
6930 `admonition` class, we just use the class for the type of admonition,
6931 `note` for example. We put the word corresponding to the label in
6932 a paragraph inside a `Div` at the beginning of the admonition with
6933 class `admonition-title`. This is about as close as we can get to
6935 + Initial support of `.. table` directive. This allows adding captions
6937 + Support `.. line-block` directive. This is deprecated but may still
6938 be in older documents.
6939 + Support scale and align attributes of images (#2662).
6940 + Implemented implicit internal header links (#3475).
6941 + Support RST-style citations (#853). The citations appear at the end
6942 of the document as a definition list in a special div with id
6943 `citations`. Citations link to the definitions.
6944 + Recurse into bodies of unknown directives (#3432).
6945 In most cases it's better to preserve the content than
6946 to emit it. This isn't guaranteed to have good results;
6947 it will fail spectacularly for unknown raw or verbatim directives.
6948 + Handle chained link definitions (#262). For example,
6951 .. _goodbye: example.com
6953 Here both `hello` and `goodbye` should link to `example.com`.
6954 + Support anchors (#262). E.g.
6962 This is supported by putting "paragraph" in a `Div` with id `hello`.
6963 + Support `:widths:` attribute for table directive.
6964 + Implement csv-table directive (#3533). Most attributes are supported,
6965 including `:file:` and `:url:`.
6966 + Support unknown interpreted text roles by parsing them as Span
6967 with "role" attributes (#3407). This way they can be manipulated in
6970 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
6974 + Implemented `\graphicspath` (#736).
6975 + Properly handle column prefixes/suffixes. For example, in
6976 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
6977 each cell will be interpreted as if it has a `$`
6978 before its content and a `$` after (math mode).
6979 + Handle komascript `\dedication` (#1845). It now adds a
6980 `dedication` field to metadata. It is up to the user to supply
6981 a template that uses this variable.
6982 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
6983 `sf`, `bf` (#3488). Spans with a class are used when there is
6985 + Expand `\newenvironment` macros (#987).
6986 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
6987 + Better support for subfigure package (#3577).
6988 A figure with two subfigures turns into two pandoc
6989 figures; the subcaptions are used and the main caption
6990 ignored, unless there are no subcaptions.
6991 + Add support for `\vdots` (Marc Schreiber, #3607).
6992 + Add basic support for hyphenat package (Marc Schreiber, #3603).
6993 + Add basic `\textcolor` support (Marc Schreiber).
6994 + Add support for `tabularx` environment (Marc Schreiber, #3632).
6995 + Better handling of comments inside math environments (#3113).
6996 This solves a problem with commented out `\end{eqnarray}` inside
6997 an eqnarray (among other things).
6998 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
6999 is selected (#3692). Otherwise skip with a warning. This is better
7000 than trying to parse it as text!
7001 + Add `\colorbox` support (Marc Schreiber).
7002 + Set identifiers on Spans used for `\label`.
7003 + Have `\setmainlanguage` set `lang` in metadata.
7004 + Support etoolbox's `\ifstrequal`.
7005 + Support `plainbreak`, `fancybreak` et al from the memoir class
7006 (bucklereed, #3833).
7007 + Support `\let`. Also, fix regular macros so they're expanded at the
7008 point of use, and NOT also the point of definition. `\let` macros,
7009 by contrast, are expanded at the point of definition. Added an
7010 `ExpansionPoint` field to `Macro` to track this difference.
7011 + Support simple `\def` macros. Note that we still don't support
7012 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
7013 + Support `\chaptername`, `\partname`, `\abstractname`, etc. (#3559,
7015 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
7016 attributes, so they can be handled in filters (Marc Schreiber, #3639)
7017 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
7018 #3589). Acronyms are not resolved by the reader, but acronym and
7019 glossary information is put into attributes on Spans so that they
7020 can be processed in filters.
7021 + Use `Link` instead of `Span` for `\ref`. This makes more sense
7022 semantically and avoids unnecessary `Span [Link]` nestings when
7023 references are resolved.
7024 + Rudimentary support for `\hyperlink`.
7025 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
7026 + Support `\lq`, `\rq`.
7027 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
7029 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
7030 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
7031 + Support `\k` ogonek accent.
7032 + Improve handling of accents. Handle ogonek, and fall back correctly
7033 with forms like `\"{}`.
7034 + Better support for ogonek accents.
7035 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
7036 + Support for `xspace` (Marc Schreiber, #3797).
7037 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
7039 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
7040 level 0 headers, and parts as level -1 headers. After parsing, we
7041 check for the lowest header level, and if it's less than 1 we bump
7042 everything up so that 1 is the lowest header level. So `\part` will
7043 always produce a header; no command-line options are needed.
7044 + Add block version of `\textcolor` (Marc Schreiber).
7045 + `\textcolor` works as inline and block command (Marc Schreiber).
7046 + `\textcolor` will be parse as span at the beginning of a paragraph
7048 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
7049 + Improved handling of include files in LaTeX reader (#3971).
7050 Previously `\include` wouldn't work if the included file
7051 contained, e.g., a begin without a matching end.
7052 + Support `\expandafter` (#3983).
7053 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
7054 as a synonym for `\newcommand`.
7055 + Handle `\lettrine` (Mauro Bieg).
7057 * Math improvements due to updates in texmath:
7059 + Improved handling of accents and upper/lower delimiters.
7060 + Support for output in GNU eqn format (used with *roff).
7061 + Allow `\boldsymbol` + a token without braces, and similarly
7062 with other styling commands.
7063 + Improve parsing of `\mathop` to allow multi-character operator names.
7064 + Add thin space after math operators when "faking it with
7067 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
7068 instance for `a -> [a]` (pandoc-types). Note that behavior
7069 will be slightly different, since `bottomUp`'s treatment of
7070 a function `[a] -> [a]` is to apply it to each sublist of a
7071 list, while walk applies it only to maximal sublists.
7072 Usually the latter behavior is what is wanted, and the
7073 former can be simulated when needed. But there may be
7074 existing filters that need to be rewritten in light of the
7075 new behavior. Performance should be improved.
7077 * There are some changes to syntax highlighting due to revisions
7078 in the `skylighting` library:
7080 + Support for `powershell` has been added, and many syntax
7081 definitions have been updated.
7082 + Background colors have been added to the `kate` style.
7083 + The way highlighted code blocks are formatted in HTML has
7084 been changed (David Baynard), in ways that may require
7085 changes in hard-coded CSS affecting highlighting.
7086 (If you haven't included hard-coded highlighting CSS in
7087 your template, you needn't change anything.)
7092 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
7093 This contains definitions of the `PandocMonad` typeclass, the
7094 `PandocIO` and `PandocPure` monads, and associated functions.
7096 * Changed types of all writers and readers.
7098 + We now use `Text` instead of `String` in the interface (#3731).
7099 (We have not yet changed the internals of most readers to work
7100 with `Text`, but making this change in the API now opens up a
7101 path to doing that.)
7102 + The result is now of form `m a` with constraint `PandocMonad m`.
7103 Readers and writers can be combined to form monadic values which
7104 can be run using either `runIO` or `runPure`. If `runIO` is used,
7105 then both readers and writers will be able to do IO when needed
7106 (for include files, for example); if `runPure` is used,
7107 then the functions are pure and will not touch IO.
7108 + Where previously you used
7109 `writeRST def (readMarkdown def "[foo](url)")`, now you
7111 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
7113 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
7114 contains reader helper functions formerly defined in the
7115 top-level `Text.Pandoc` module.
7117 + Changed `StringReader` -> `TextReader`.
7118 + `getReader` now returns a pair of a reader and
7119 `Extensions`, instead of building the extensions into the
7120 reader (#3659). The calling code must explicitly set
7121 `readerExtensions` using the `Extensions` returned. The
7122 point of the change is to make it possible for the calling
7123 code to determine what extensions are being used.
7125 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
7126 This contains writer helper functions formerly defined in the
7127 top-level `Text.Pandoc` module.
7129 + Changed `StringWriter` -> `TextWriter`.
7130 + `getWriter` now retuns a pair of a reader and
7131 `Extensions`, instead of building the extensions into the
7132 reader (#3659). The calling code must explicitly set
7133 `readerExtensions` using the `Extensions` returned. The
7134 point of the change is to make it possible for the calling
7135 code to determine what extensions are being used.
7137 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
7140 * New module `Text.Pandoc.App`. This abstracts out the functionality
7141 of the command line program (`convertWithOpts`), so it can be reproduced
7142 e.g. in a desktop or web application. Instead of exiting, we throw errors
7143 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
7144 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
7145 The module also exports some utility functions for parsing options
7146 and running filters.
7148 * New module `Text.Pandoc.Logging` (exported module) (#3392).
7149 This now contains the `Verbosity` definition previously in
7150 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
7151 eventually be used instead of raw strings for warnings. This will enable
7152 us, among other things, to provide machine-readable warnings if desired.
7153 Include ToJSON instance and showLogMessage. This gives us the possibility
7154 of both machine-readable and human-readable output for log messages.
7156 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
7158 * New module `Text.Pandoc.Translations`, exporting `Term`,
7159 `Translations`, `readTranslations`.
7161 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
7162 `TokType`, `Line`, `Column`.
7164 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
7166 * Expose some previously private modules (#3260). These are often
7167 helpful to people writing their own reader or writer modules:
7169 + `Text.Pandoc.Writers.Shared`
7170 + `Text.Pandoc.Parsing`
7171 + `Text.Pandoc.Asciify`
7172 + `Text.Pandoc.Emoji`
7173 + `Text.Pandoc.ImageSize`
7174 + `Text.Pandoc.Highlighting`
7176 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
7177 Extension parsing and processing functions were defined in the top-level
7178 `Text.Pandoc` module. These functions are moved to the Extensions
7179 submodule as to enable reuse in other submodules.
7181 * Add `Ext_raw_attribute` constructor for `Extension`.
7183 * Add `Ext_fenced_divs` constructor for `Extension'.
7185 * Add `Ext_four_space_rule` constructor in `Extension`.
7187 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
7189 * Add `Monoid` instance for `Extensions`.
7191 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
7193 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
7195 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
7197 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
7199 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
7201 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
7203 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
7205 * Export `setVerbosity` from `Text.Pandoc`.
7207 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
7209 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
7211 * `Text.Pandoc.UTF8`:
7213 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
7214 Define `toString`, `toStringLazy` in terms of them.
7215 + Add new functions parameterized on `Newline`: `writeFileWith`,
7216 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
7218 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
7220 * `Text.Pandoc.Highlighting`:
7222 + `highlighting` now returns an Either rather than Maybe.
7223 This allows us to display error information returned by the skylighting
7224 library. Display a warning if the highlighting library throws an error.
7225 + Add parameter for `SyntaxMap` to `highlight`.
7227 * `Text.Pandoc.Writers.Math`:
7229 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
7230 we only need to update these in one place.
7232 * `Text.Pandoc.SelfContained`:
7234 + Removed `WriterOptions` parameter from `makeSelfContained`.
7235 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
7236 the need to pass MediaBag around and improves exceptions. It also
7237 opens up the possibility of using makeSelfContained purely.
7238 + Export `makeDataURI`.
7240 * `Text.Pandoc.ImageSize`:
7242 + Export `lengthToDim`, new function `scaleDimension`.
7243 + Export `inEm` from ImageSize (#3450).
7244 + Change `showFl` and `show` instance for `Dimension` so
7245 extra decimal places are omitted.
7246 + Added `Em` as a constructor of `Dimension`.
7247 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
7249 * `Text.Pandoc.Templates`:
7251 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
7252 and raises a proper `PandocTemplateError` if there are problems, rather
7253 than failing with uncatchable `error`.
7254 + Change signature of `getDefaultTemplate`. Now it runs in any instance
7255 of `PandocMonad`, and returns a `String` rather than an `Either` value.
7256 And it no longer takes a `datadir` parameter, since this can be
7257 retrieved from `CommonState`.
7259 * `Text.Pandoc.Options`:
7261 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
7262 The EPUB writer now takes its EPUB subdirectory from this option.
7263 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
7264 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
7265 + Add `writerSyntaxMap` to `WriterOptions`.
7266 + Removed `writerEpubStylesheet` from `WriterOptions`.
7267 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
7268 in `CommonState` in `PandocMonad` instances. (And thus it can be used
7270 + Changed `writerEpubMetadata` to a `Maybe String`.
7271 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
7272 the `latex_macros` reader extension.
7273 + FromJSON/ToJSON instances for `ReaderOptions`.
7274 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
7275 one string (for the KaTeX base URL), rather than two.
7276 + Removed `writerSourceURL` from `WriterOptions`. We now use
7277 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
7279 * `Text.Pandoc.Shared`:
7281 + `tabFilter` now takes a `Text`, not `String`.
7282 + `openURL`: Changed type from an Either. Now it will just raise
7283 an exception to be trapped later.
7284 + Remove `normalizeSpaces` (#1530).
7285 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
7286 + Export a new function `crFilter`.
7287 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
7288 + Provide custom `isURI` that rejects unknown schemes.
7289 (Albert Krewinkel, #2713). We also export the set of known
7290 `schemes`. The new function replaces the function of the same name
7291 from `Network.URI`, as the latter did not check whether a scheme is
7292 well-known. All official IANA schemes (as of 2017-05-22) are
7293 included in the set of known schemes. The four non-official schemes
7294 `doi`, `isbn`, `javascript`, and `pmid` are kept.
7296 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
7297 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
7298 where they are defined in terms of `PandocMonad`
7299 primitives and have different signatures.
7300 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
7301 + Add `underlineSpan`.
7303 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
7305 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
7306 With the new API one can simply use `getLog` after running
7309 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
7310 and `rawLaTeXBlock`. (Both now return a `String`, and they are
7311 polymorphic in state.)
7314### Bug fixes and under-the-hood improvements
7316 * TEI writer: Added identifiers on `<div>` elements.
7318 * DokuWiki reader: Better handling for code block in list item (#3824).
7320 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
7322 * ZimWiki writer: Removed internal formatting from note and table cells,
7323 because ZimWiki does not support it (Alex Ivkin, #3446).
7327 + Updated list of syntax highlighting languages (#3461).
7328 Now `r` gets you `<source>` rather than `<code>` (among others).
7329 + Add display attribute on `<math>` tags (#3452). This allows display
7330 math to be rendered properly.
7331 + Remove newline before `</ref>` (#2652).
7332 + Don't softbreak lines inside list items (#3531).
7336 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
7337 + Add unit tests (Alexander Krotov).
7338 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
7339 + Do not strip `#` from Org anchor links (Alexander Krotov).
7341 * CommonMark writer:
7343 + Avoid excess blank lines at end of output.
7344 + Prefer pipe tables to HTML tables even if it means losing relative
7345 column width information (#3734).
7346 + Support table, strikethrough extensions, when enabled (as with gfm).
7347 Note that we bypass the commonmark writer from cmark and construct our
7348 own pipe tables, with better results.
7349 + Properly support `--wrap=none`.
7350 + Use smallcaps class for `SmallCaps` (#1592).
7351 + Omit "fig:" prefix in image titles. This is used internally to
7352 indicate internal figures.
7356 + Properly handle table captions.
7357 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
7358 + Implemented `+/-smart` and improved escaping with `+smart`.
7359 + Add empty comments when needed to avoid including a blockquote
7360 in the indented content of a preceding block (#3675).
7361 + Improve grid table output, fix bug with empty rows (#3516).
7362 Uses the new `gridTable` in Writers.Shared, which is here
7363 improved to better handle 0-width cells.
7364 + Remove space at beginning/end of RST code span (#3496). Otherwise
7365 we get invalid RST. There seems to be no way to escape the space.
7366 + Add header anchors when header has non-standard id (#3937).
7367 + Correctly handle inline code containing backticks, using a `:literal:`
7369 + Don't backslash-escape word-internal punctuation (#3978).
7373 + Don't include variables in metadata blocks. Previously variables set
7374 on the command line were included in e.g. YAML metadata, contrary to
7375 documentation and intentions.
7376 + Improved escaping with `+smart`.
7377 + Fixed grid tables embedded in grid tables (#2834).
7378 + Use span with class 'smallcaps' for SmallCaps, instead of a style
7379 attribute as before (#1592).
7380 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
7381 extension is enabled (#3454). Otherwise in a document starting with
7382 a literal `%` the first line is wrongly interpreted as a title.
7383 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
7384 properly escape things that would otherwise start ordered lists,
7390 + Better handling of tables with empty columns (#3337). We now
7391 calculate the number of columns based on the longest row (or the
7392 length of aligns or widths).
7393 + Escape unordered list markers at beginning of paragraph (#3497), to
7394 avoid false interpretation as a list.
7395 + Escape `|` appropriately.
7396 + Ensure space before list at top level (#3487).
7397 + Avoid spurious blanklines at end of document after tables and list,
7399 + Fixed bugs in simple/multiline list output (#3384).
7400 Previously we got overlong lists with `--wrap=none`. This is fixed.
7401 Previously a multiline list could become a simple list (and would
7402 always become one with `--wrap=none`).
7403 + Don't emit a simple table if `simple_tables` disabled (#3529).
7404 + Case-insensitive reference links (David A Roberts, #3616).
7405 Ensure that we do not generate reference links whose labels differ only
7406 by case. Also allow implicit reference links when the link
7407 text and label are identical up to case.
7408 + Put space before reference link definitions (Mauro Bieg, #3630).
7409 + Better escaping for links (David A. Roberts, #3619). Previously the
7410 Markdown writer would sometimes create links where there were none
7411 in the source. This is now avoided by selectively escaping bracket
7412 characters when they occur in a place where a link might be created.
7413 + Added missing `\n` (David A. Roberts, #3647).
7414 + Fixed duplicated reference links with `--reference-links`
7415 and `--reference-location=section` (#3674). Also ensure that there
7416 are no empty link references `[]`.
7417 + Avoid inline surround-marking with empty content (#3715).
7418 E.g. we don't want `<strong></strong>` to become `****`.
7419 Similarly for emphasis, super/subscript, strikeout.
7420 + Don't allow soft break in header (#3736).
7421 + Make sure `plain`, `markdown_github`, etc. work for raw.
7422 Previously only `markdown` worked. Note: currently a raw block labeled
7423 `markdown_github` will be printed for any `markdown` format.
7424 + Ensure that `+` and `-` are escaped properly so they don't cause
7425 spurious lists (#3773). Previously they were only
7426 if succeeded by a space, not if they were at end of line.
7427 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
7428 even if the table has relative width information (#3734).
7429 + Markdown writer: don't crash on `Str ""`.
7430 + Make `Span` with null attribute transparent. That is, we don't use
7431 brackets or `<span>` tags to mark spans when there are no attributes;
7432 we simply output the contents.
7433 + Escape pipe characters when `pipe_tables` enabled (#3887).
7434 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
7435 we backslash escape these. Otherwise we use entities as before.
7436 + When writing plain, don't use ` ` to separate list and indented
7437 code. There's no need for it in this context, since this isn't to be
7438 interpreted using Markdown rules.
7439 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
7440 HTML links containing classes originally now preserve them when using
7441 javascript email obfuscation.
7442 + Render `SmallCaps` as a native span when `native_spans` are enabled.
7443 + Always write attributes with `bracketed_spans` (d-dorazio).
7447 + Fix handling of nested font commands (#3568). Previously pandoc emitted
7448 incorrect markup for bold + italic, for example, or bold + code.
7449 + Avoid error for definition lists with no definitions (#3832).
7453 + Fix internal links with `writerIdentifierPrefix opt`
7454 (#3397, Mauro Bieg).
7458 + Don't include bookmarks on headers unless non-null id (#3476).
7459 + Support 9 levels of headers (#1642).
7460 + Allow 9 list levels (#3519).
7461 + Don't take `distArchive` from datadir (#3322). The docx writer takes
7462 components from the distribution's version of `reference.docx` when it
7463 can't find them in a user's custom `reference.docx`. Previously, we
7464 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
7465 to be used as the distribution's reference.docx. This led to a
7466 bizarre situation where pandoc would produce a good docx using
7467 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
7468 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
7469 + Fixed handling of soft hyphen (0173) (#3691).
7470 + Better handling of keywords (#3719).
7471 + Cleaner code for handling dir and style attributes for `Div`.
7472 + Use `Set` for dynamic styles to avoid duplicates.
7473 + Removed redundant element from data/docx/word/numbering.xml.
7474 The elements we need are generated when the document is
7475 compiled; this didn't do anything.
7476 + Activate `evenAndOddHeaders` from reference docx (#3901,
7477 Augustín Martín Barbero).
7479 * ODT/OpenDocument writer:
7481 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
7482 + Use more widely available bullet characters (#1400). The old
7483 characters weren't available in some font sets. These seem to work
7484 well on Windows and Linux versions of LibreOffice.
7485 + Wider labels for lists (#2421). This avoids overly narrow labels for
7486 ordered lists with `()` delimiters. However, arguably it creates
7487 overly wide labels for bullets. Also, lists now start flush with
7488 the margin, rather than indented.
7489 + Fixed dropped elements in some ordered lists (#2434).
7493 + Don't render `RawBlock` as code.
7494 + Don't fail with an error on interior headers (e.g. in list) (#3750).
7495 Instead, omit them with an INFO message.
7496 + Add support for "lang" metadata (Alexander Krotov, #3625).
7497 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
7498 produced one paragraph with `<empty-line/>` elements, which are not
7499 allowed inside `<p>` according to FB2 schema.
7500 + Replace `concatMap` with `cMap` (Alexander Krotov).
7501 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
7506 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
7507 + Render raw inline environments when `--mathjax` used (#3816).
7508 We previously did this only with raw blocks, on the assumption
7509 that math environments would always be raw blocks. This has changed
7510 since we now parse them as inline environments.
7511 + Ensure we don't get two style attributes for width and height.
7512 + Report when not rendering raw inline/block.
7513 + Issue warning if no title specified and template used (#3473).
7514 + Info message if `lang` is unspecified (#3486).
7515 + Removed unused parameter in `dimensionsToAttributeList`.
7516 + Avoid two class attributes when adding `uri` class (#3716).
7517 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
7519 + Use revealjs's math plugin for mathjax (#3743). This is a thin
7520 wrapper around mathjax that makes math look better on revealjs.
7521 + Slidy: use h1 for all slides, even if they were originally
7522 level 2 headers (#3566). Otherwise the built-in table of contents
7527 + Don't render LaTeX images with data: URIs (#3636). Note that
7528 `--extract-media` can be used when the input contains data: URIs.
7529 + Make highlighted code blocks work in footnotes (Timm Albers).
7530 + Don't use figure inside table cell (#3836).
7531 + Use proper code for list enumerators (#3891). This should fix problems
7532 with lists that don't use arabic numerals.
7533 + Always add hypertarget when there's a non-empty identifier (#2719).
7534 Previously the hypertargets were only added when there was actually
7535 a link to that identifier.
7536 + Use `%` after hypertarget before code block.
7537 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
7538 fixes formatting problems in beamer citations).
7539 + Don't use `lstinline` in `\item[..]` (#645). If you do, the contents
7540 of item disappear or are misplaced. Use `\texttt` instead.
7541 + Fix problem with escaping in `lstinline` (#1629). Previously the
7542 LaTeX writer created invalid LaTeX when `--listings` was specified and
7543 a code span occurred inside emphasis or another construction.
7544 + Fix error with line breaks after empty content (#2874). LaTeX
7545 requires something before a line break, so we insert a `~` if no
7546 printable content has yet been emitted.
7548 + Fixed detection of otherlangs (#3770). We weren't recursing into
7550 + Handle language in inline code with `--listings` (#3422).
7551 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
7552 The textcomp package allows pdfLaTeX to parse `€` directly, making the
7553 `\euro` command unneeded.
7554 + Fixed footnotes in table captions (#2378). Note that if the table has
7555 a first page header and a continuation page header, the notes will
7556 appear only on the first occurrence of the header.
7557 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
7558 Previously you could link to a header above or below slide level but
7559 not *to* slide level. This commit changes that. Hypertargets are
7560 inserted inside frame titles; technically the reference is to just
7561 after the title, but in normal use (where slides are viewed full
7562 screen in a slide show), this does not matter.
7563 + Remove `\strut` at beginning of table cells (#3436). This fixes a
7564 problem with alignment of lists in table cells. The `\strut` at the
7565 end seems to be enough to avoid the too-close spacing that motivated
7566 addition of the strut in #1573.
7567 + Add partial siunitx Support (Marc Schreiber, #3588).
7571 + Refactored to use BCP47 module.
7572 + Remove unnecessary `$` (Alexander Krotov, #3482).
7573 + Use header identifiers for chapters (#3968).
7577 + `title_page.xhtml` is now put in `text/`.
7578 + Don't strip formatting in TOC (#1611).
7582 + Fix bug for certain links in table cells (#3667).
7583 + Allow 'pre' code in list item (#3916).
7587 + Added warnings for ignored material (#3392).
7588 + Better sanity checks to avoid parsing unintended things as
7589 raw HTML in the Markdown reader (#3257).
7590 + Revise treatment of `li` with `id` attribute (#3596). Previously we
7591 always added an empty div before the list item, but this created
7592 problems with spacing in tight lists. Now we do this: If the list
7593 item contents begin with a `Plain` block, we modify the `Plain`
7594 block by adding a `Span` around its contents. Otherwise, we add a
7595 `Div` around the contents of the list item (instead of adding an
7596 empty `Div` to the beginning, as before).
7597 + Add `details` tag to list of block tags (#3694).
7598 + Removed `button` from block tag list (#3717). It is already in the
7599 `eitherBlockOrInlineTag` list, and should be both places.
7600 + Use `Set`s instead of lists for block tag lookup.
7601 + Rewrote to use `Text` throughout. Effect on memory usage is modest
7603 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
7605 + Ensure that paragraphs are closed properly when the parent block
7606 element closes, even without `</p>` (#3794).
7607 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
7608 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
7609 `<main>` closes `<p>` and behaves like a block element generally
7610 + Support column alignments (#1881). These can be set either
7611 with a `width` attribute or with `text-width` in a `style` attribute.
7612 + Modified state type to be an instance of `HasLogMessages`, so
7613 `registerHeader` can issue warnings.
7614 + `</td>` or `</th>` should close any open block tag (#3991).
7615 + `<td>` should close an open `<th>` or `<td>`.
7616 + `htmlTag` improvements (#3989). We previously failed on cases
7617 where an attribute contained a `>` character. This patch fixes the
7618 bug, which especially affects raw HTML in Markdown.
7622 + Newline is not indentation (Alexander Krotov).
7626 + Allow extra hyphens after `|-` in tables (#2649).
7627 + Allow blank line after table start (#2649).
7628 + Fixed more table issues (#2649).
7629 + Ensure that list starts begin at left margin (#2606). Including when
7630 they're in tables or other list items.
7631 + Make smart double quotes depend on `smart` extension (#3585).
7632 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
7633 + Modified state type to be an instance of `HasLogMessages`, so
7634 `registerHeader` can issue warnings.
7636 * TWiki reader (Alexander Krotov):
7638 + Remove unnecessary `$` (#3597).
7639 + Simplify `linkText` (#3605).
7643 + Minor refactoring, avoiding explicit MediaBag handling.
7644 This all works behind the scenes in CommonState plumbing.
7648 + Don't drop smartTag contents (#2242).
7649 + Handle local namespace declarations (#3365). Previously we didn't
7650 recognize math, for example, when the xmlns declaration occurred on
7651 the element and not the root.
7652 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
7653 does the work of `normalizeSpaces` as well, so we avoid the need for
7655 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
7656 paragraphs styled with "HeadingN" as "nth-level header." But if a
7657 document has a custom style named "Heading0", this will produce a
7658 0-level header, which shouldn't exist. We only parse this style
7659 if N>0. Otherwise we treat it as a normal style name, and
7660 follow its dependencies, if any.
7661 + Add tests for avoiding zero-level header (Jesse Rosenthal).
7665 + Replaced `collectRights` with Rights from `Data.Either`.
7666 + Remove dead code (Albert Krewinkel).
7668 * Org reader (Albert Krewinkel, unless noted).
7670 + Don't allow tables inside list items (John MacFarlane, #3499).
7671 + Disallow tables on list marker lines (#3499).
7672 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
7673 + Allow emphasized text to be followed by `[` (#3577).
7674 + Handle line numbering switch for src blocks.
7675 The line-numbering switch that can be given to source blocks (`-n` with
7676 an start number as an optional parameter) is parsed and translated to a
7677 class/key-value combination used by highlighting and other readers and
7679 + Stop adding rundoc prefix to src params. Source block parameter names
7680 are no longer prefixed with `rundoc`. This was intended to simplify
7681 working with the rundoc project, a babel runner. However, the rundoc
7682 project is unmaintained, and adding those markers is not the reader's
7683 job anyway. The original language that is specified for a source
7684 element is now retained as the `data-org-language` attribute and only
7685 added if it differs from the translated language.
7686 + Allow multi-word arguments to src block params (#3477). The reader now
7687 correctly parses src block parameter list even if parameter arguments
7688 contain multiple words.
7689 + Avoid creating `nullMeta` by applying `setMeta` directly
7691 + Replace `sequence . map` with `mapM`.
7692 + Fix smart parsing behavior. Parsing of smart quotes and special
7693 characters can either be enabled via the `smart` language extension or
7694 the `'` and `-` export options. Smart parsing is active if either the
7695 extension or export option is enabled. Only smart parsing of special
7696 characters (like ellipses and en and em dashes) is enabled by default,
7697 while smart quotes are disabled. Previously, all smart parsing was
7698 disabled unless the language extension was enabled.
7699 + Subject full doc tree to headline transformations (Albert Krewinkel,
7700 #3695). Emacs parses org documents into a tree structure, which is
7701 then post-processed during exporting. The reader is changed to do the
7702 same, turning the document into a single tree of headlines starting
7704 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
7705 cite keys included special characters also at the end. This caused
7706 problems when citations occur right before colons or at the end of
7707 a sentence. With this change, all non alphanumeric characters at
7708 the end of a cite key are ignored. This also adds `,` to the list
7709 of special characters that are legal in cite keys to better mirror
7710 the behaviour of org-export.
7711 + Fix module names in haddock comments. Copy-pasting had lead to
7712 haddock module descriptions containing the wrong module names.
7713 + Recognize babel result blocks with attributes (#3706). Babel
7714 result blocks can have block attributes like captions and names.
7715 Result blocks with attributes were not recognized and were parsed
7716 as normal blocks without attributes.
7717 + Include tags in headlines. The Emacs default is to include tags in the
7718 headline when exporting. Instead of just empty spans, which contain the
7719 tag name as attribute, tags are rendered as small caps and wrapped in
7720 those spans. Non-breaking spaces serve as separators for multiple tags.
7721 + Respect export option for tags (#3713). Tags are appended to
7722 headlines by default, but will be omitted when the `tags` export option
7724 + Use `tag-name` attribute instead of `data-tag-name`.
7725 + Use `org-language` attribute rather than `data-org-language`.
7726 + Modified state type to be an instance of `HasLogMessages`, so
7727 `registerHeader` can issue warnings.
7728 + End footnotes after two blank lines. Footnotes can not only be
7729 terminated by the start of a new footnote or a header, but also by two
7730 consecutive blank lines.
7731 + Update emphasis border chars (#3933). The org reader was updated to
7732 match current org-mode behavior: the set of characters which are
7733 acceptable to occur as the first or last character in an org emphasis
7734 have been changed and now allows all non-whitespace chars at the
7735 inner border of emphasized text (see `org-emphasis-regexp-components`).
7739 + Fixed small bug in list parsing (#3432). Previously the parser didn't
7740 handle properly this case:
7746 + Handle multiline cells in simple tables (#1166).
7747 + Parse list table directive (Keiichiro Shikano, #3432).
7748 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
7749 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
7750 + Reorganize block parsers for ~20% faster parsing.
7751 + Fixed `..include::` directive (#3880).
7752 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
7753 Previously pandoc would sometimes combine two line blocks separated
7754 by blanks, and ignore trailing blank lines within the line block.
7755 + Fix indirect hyperlink targets (#512).
7759 + Allow attributes in reference links to start on next line (#3674).
7760 + Parse YAML metadata in a context that sees footnotes defined in
7761 the body of the document (#1279).
7762 + When splitting pipe table cells, skip tex math (#3481).
7763 You might have a `|` character inside math. (Or for that matter
7764 something that the parser might mistake for raw HTML.)
7765 + Treat span with class `smallcaps` as SmallCaps.
7766 This allows users to specify small caps in Markdown this way:
7767 `[my text]{.smallcaps}` (#1592).
7768 + Fixed internal header links (#2397).
7769 This patch also adds `shortcut_reference_links` to the list
7771 + Treat certain environments as inline
7772 when they occur without space surrounding them (#3309, #2171).
7773 E.g. equation, math. This avoids incorrect vertical space
7775 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
7776 + Allow latex macro definitions indented 1-3 spaces.
7777 Previously they only worked if nonindented.
7778 + Improved parsing of indented raw HTML blocks (#1841).
7779 Previously we inadvertently interpreted indented HTML as
7780 code blocks. This was a regression. We now seek to determine the
7781 indentation level of the contents of an HTML block, and (optionally)
7782 skip that much indentation. As a side effect, indentation may be
7783 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
7784 used. This is better than having things interpreted as indented
7786 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
7787 + Warn for notes defined but not used (#1718).
7788 + Use `anyLineNewline` (Alexander Krotov).
7789 + Interpret YAML metadata as Inlines when possible (#3755). If
7790 the metadata field is all on one line, we try to interpret it as
7791 Inlines, and only try parsing as Blocks if that fails. If it
7792 extends over one line (including possibly the `|` or `>` character
7793 signaling an indented block), then we parse as Blocks. This was
7794 motivated by some German users finding that `date: '22. Juin 2017'`
7795 got parsed as an ordered list.
7796 + Fixed spurious parsing as citation as reference def (#3840).
7797 We now disallow reference keys starting with `@` if the
7798 `citations` extension is enabled.
7799 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
7800 Previously only `[-@roe]` (with brackets) was recognized as
7801 suppress-author, and `-@roe` was treated the same as `@roe`.
7802 + Fixed parsing of fenced code after list when there is no intervening
7804 + Allow raw latex commands starting with `\start` (#3558). Previously
7805 these weren't allowed because they were interpreted as starting
7806 ConTeXt environments, even without a corresponding `\stop`...
7807 + Added `inlines`, `inlines1`.
7808 + Require nonempty alt text for `implicit_figures` (#2844).
7809 A figure with an empty caption doesn't make sense.
7810 + Removed texmath macro material; now all this is handled
7811 in the LaTeX reader functions.
7812 + Fixed bug with indented code following raw LaTeX (#3947).
7816 + Rewrote LaTeX reader with proper tokenization (#1390,
7817 #2118, #3236, #3779, #934, #982). This rewrite is primarily
7818 motivated by the need to get macros working properly. A side benefit
7819 is that the reader is significantly faster. We now tokenize the
7820 input text, then parse the token stream. Macros modify the token
7821 stream, so they should now be effective in any context, including
7822 math. Thus, we no longer need the clunky macro processing
7823 capacities of texmath.
7824 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
7825 + Allow `\newcommand\foo{blah}` without braces.
7826 + Support `\lstinputlisting` (#2116).
7827 + Issue warnings when skipping unknown latex commands (#3392).
7828 + Include contents of `\parbox`.
7829 + Allow `\hspace` and `\vspace` to count as raw block or inline.
7830 Previously we would refuse to parse anything as raw inline if
7831 it was in the `blockCommands` list. Now we allow exceptions
7832 if they're listed under ignoreInlines in inlineCommands.
7833 This should make it easier e.g. to include an `\hspace`
7834 between two side-by-side raw LaTeX tables.
7835 + Don't drop contents of `\hypertarget`.
7836 + Handle spaces before `\cite` arguments.
7837 + Allow newpage, clearpage, pagebreak in inline contexts as well as
7838 block contexts (#3494).
7839 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
7840 + Use `pMacroDefinition` in macro (for more direct parsing).
7841 Note that this means that `macro` will now parse one
7842 macro at a time, rather than parsing a whole group together.
7843 + Fixed failures on `\ref{}`, `\label{}` with `+raw_tex`. Now these
7844 commands are parsed as raw if `+raw_tex`; otherwise, their argument
7845 is parsed as a bracketed string.
7846 + Don't crash on empty `enumerate` environment (#3707).
7847 + Handle escaped `&` inside table cell (#3708).
7848 + Handle block structure inside table cells (#3709). `minipage` is no
7850 + Handle some width specifiers on table columns (#3709). Currently
7851 we only handle the form `0.9\linewidth`. Anything else would have
7852 to be converted to a percentage, using some kind arbitrary assumptions
7854 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
7855 LaTeX reader's treatment of raw commands, but it also affects the
7857 + Fixed regression with starred environment names (#3803).
7858 + Handle optional args in raw `\titleformat` (#3804).
7859 + Improved heuristic for raw block/inline. An unknown command at the
7860 beginning of the line that could be either block or inline is
7861 treated as block if we have a sequence of block commands followed by
7862 a newline or a `\startXXX` command (which might start a raw ConTeXt
7864 + Don't remove macro definitions from the output, even if
7865 `Ext_latex_macros` is set, so that macros will be applied.
7866 Since they're only applied to math in Markdown, removing the macros
7867 can have bad effects. Even for math macros, keeping them should be
7869 + Removed `macro`. It is no longer necessary, since the
7870 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
7871 the need for a separate `latexMacro` parser in the Markdown reader.
7872 + Use `label` instead of `data-label` for label in caption (#3639).
7873 + Fixed space after `\figurename` etc.
7874 + Resolve references to section numbers.
7875 + Fix `\let\a=0` case, with single character token.
7876 + Allow `@` as a letter in control sequences. `@` is commonly used
7877 in macros using `\makeatletter`. Ideally we'd make the tokenizer
7878 sensitive to `\makeatletter` and `\makeatother`, but until then this
7879 seems a good change.
7880 + Track header numbers and correlate with labels.
7881 + Allow `]` inside group in option brackets (#3857).
7882 + lstinline with braces can be used (verb cannot be used with braces)
7883 (Marc Schreiber, #3535).
7884 + Fix keyval function: pandoc did not parse options in braces correctly
7885 (Marc Schreiber, #3642).
7886 + When parsing raw LaTeX commands, include trailing space (#1773).
7887 Otherwise things like `\noindent foo` break and turn into
7888 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
7889 formats that allow `raw_tex`).
7890 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
7892 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
7893 + Allow space before `=` in bracketd options (Ben Firshman).
7894 + Be more forgiving in parsing command options. This was needed, for
7895 example, to make some minted options work.
7896 + Strip off quotes in `\include` filenames.
7898 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
7900 * `Text.Pandoc.PDF`:
7902 + Got `--resource-path` working with PDF output (#852).
7903 + Fetch images when generating PDF via context (#3380).
7904 To do this, we create the temp directory as a subdirectory
7905 of the working directory. Since context mk IV by default looks
7906 for images in the parent directory, this works.
7907 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
7908 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
7909 This reduces code duplication.
7910 + `html2pdf`: use stdin instead of intermediate HTML file
7911 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
7912 doesn't use `TEXINPUTS`.
7914 * `Text.Pandoc.Pretty`:
7916 + Simplified definition of `realLength`.
7917 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
7919 * `Text.Pandoc.MIME`:
7921 + Use `application/javascript` (not `application/x-javascript`).
7922 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
7924 * `Text.Pandoc.ImageSize`:
7926 + Improve SVG image size code (Marc Schreiber, #3580).
7927 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
7929 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
7930 and reduction of memory usage in most of the writers.
7932 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
7934 * `Text.Pandoc.SelfContained`:
7936 + Fixed problem with embedded fonts (#3629).
7937 + Refactored getData from `getDataURI` in `SelfContained`.
7938 + Don't use data URIs for script or style (#3423). Instead, just use
7939 script or style tags with the content inside. The old method with
7940 data URIs prevents certain optimizations outside pandoc. Exception:
7941 data URIs are still used when a script contains `</script>` or a
7942 style contains `</`.
7943 + SelfContained: Handle URL inside material retrieved from a URL
7944 (#3629). This can happen e.g. with an @import of a google web font.
7945 (What is imported is some CSS which contains an url reference
7946 to the font itself.) Also, allow unescaped pipe (|) in URL.
7947 + Load resources from `data-src` (needed for lazy loading in
7948 reveal.js slide shows).
7949 + Handle `data-background-image` attribute on section (#3979).
7951 * `Text.Pandoc.Parsing`:
7953 + Added `indentWith` (Alexander Krotov, #3687).
7954 + Added `stateCitations` to `ParserState`.
7955 + Removed `stateChapters` from `ParserState`.
7956 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
7957 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
7958 + Adjusted type of `insertIncludedFile` so it can be used with token
7960 + Replace old texmath macro stuff from Parsing. Use Macro from
7961 Text.Pandoc.Readers.LaTeX.Types instead.
7962 + Export `insertIncludedFile`.
7963 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
7964 + Replace partial with total function (Albert Krewinkel).
7965 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
7966 `insertIncludeFile` function is generalized to work with all parser
7967 states which are instances of that class.
7968 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
7969 The `insertIncludeFiles` function was generalized and renamed
7970 to `insertIncludedFiles'`; the specialized versions are based on that.
7971 + `many1Till`: Check for the end condition before parsing (Herwig
7972 Stuetz). By not checking for the end condition before the first
7973 parse, the parser was applied too often, consuming too much of the
7974 input. This only affects `many1Till p end` where `p` matches on a
7976 + Provide `parseFromString` (#3690). This is a version of
7977 `parseFromString` specialied to ParserState, which resets
7978 `stateLastStrPos` at the end. This is almost always what we want.
7979 This fixes a bug where `_hi_` wasn't treated as emphasis in the
7980 following, because pandoc got confused about the position of the
7981 last word: `- [o] _hi_`.
7982 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
7983 + Fix `blanklines` documentation (Alexander Krotov, #3843).
7984 + Give less misleading line information with `parseWithString`.
7985 Previously positions would be reported past the end of the chunk.
7986 We now reset the source position within the chunk and report
7987 positions "in chunk."
7988 + Add `anyLineNewline` (Alexander Krotov).
7989 + Provide shared F monad functions for Markdown and Org readers
7990 (Albert Krewinkel). The `F` monads used for delayed evaluation
7991 of certain values in the Markdown and Org readers are based on a
7992 shared data type capturing the common pattern of both `F` types.
7993 + Add `returnF` (Alexander Krotov).
7994 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
7995 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
7996 + Added `readerAbbreviations` to `ParserState`. Markdown reader
7997 now consults this to determine what is an abbreviation.
7998 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
7999 parsers for markdown and rst was combined into one single
8000 parser `gridTable`, slightly changing parsing behavior of both
8001 parsers: (1) The markdown parser now compactifies block content
8002 cell-wise: pure text blocks in cells are now treated as paragraphs
8003 only if the cell contains multiple paragraphs, and as plain blocks
8004 otherwise. Before, this was true only for single-column tables. (2)
8005 The rst parser now accepts newlines and multiple blocks in header
8007 + Generalize tableWith, gridTableWith (Albert Krewinkel).
8008 The parsing functions `tableWith` and `gridTableWith` are generalized
8009 to work with more parsers. The parser state only has to be an
8010 instance of the `HasOptions` class instead of requiring a concrete
8011 type. Block parsers are required to return blocks wrapped into a
8012 monad, as this makes it possible to use parsers returning results
8013 wrapped in `Future`s.
8015 * `Text.Pandoc.Shared`:
8017 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
8018 + `stringify`: handle Quoted better (#3958). Previously we were losing
8019 the quotation marks in Quoted elements.
8021 * `Text.Pandoc.Writers.Shared`:
8023 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
8024 This allows us to add the variables AFTER using the metadata
8025 to generate a YAML header (in the Markdown writer).
8026 + Added `unsmartify` (previously in RST writer).
8027 Undo literal double curly quotes. Previously we left these.
8028 + Generalize type of `metaToJSON` so it can take a Text. Previously a
8029 String was needed as argument; now any ToJSON instance will do.
8030 + Added `gridTable` (previously in Markdown writer).
8031 + `gridTable`: Refactored to use widths in chars.
8032 + `gridTable`: remove unnecessary extra space in cells.
8033 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
8034 values to become lists.
8035 + Pipe tables: impose minimum cell size (see #3526).
8038### Default template changes
8040 * HTML templates (including EPUB and HTML slide show templates):
8042 + Make default.html5 polyglot markup conformant (John Luke Bentley,
8043 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
8044 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
8045 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
8046 + Regularized CSS in html/epub/html slide templates (#3485).
8047 All templates now include `code{white-space: pre-wrap}`
8048 and CSS for `q` if `--html-q-tags` is used. Previously some templates
8049 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
8051 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
8052 + `default.revealjs`: make `history` default to true.
8053 + `default.revealjs`: use lazy loading (#2283).
8054 + `default.revealjs`: add `mathjax` variable and some conditional code
8055 to use the MathJaX plugin.
8056 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
8057 + `default.dzslides`: Load Google Font using HTTPS by default
8060 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
8063 * LaTeX/Beamer template:
8065 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
8066 `default.beamer` has been removed; beamer now uses the
8067 `default.latex` template. Beamer-specific parts are conditional
8068 on the `beamer` variable set by the writer. Note that
8069 `pandoc -D beamer` will return this (combined) template.
8070 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
8071 Beamer loads `xcolor` rather than `color`, and thus the
8072 `dvipsnames` option doesn't take effect. This also provides a wider
8073 range of colour selections with the `svgnames` option.
8074 + Use starred versions of `xcolor` names (Andrew Dunning).
8075 Prevents changes to documents defined using the `dvipsnames` list (e.g.
8076 `Blue` gives a different result with svgnames enabled).
8077 + Load `polyglossia` after header-includes (#3898). It needs to be
8078 loaded as late as possible.
8079 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
8081 + Don't load `fontspec` before `unicode-math` (over there).
8082 The `unicode-math` package loads `fontspec` so explict loading of
8083 `fontspec` before `unicode-math` is not necessary.
8084 + Use `unicode-math` by default in default.latex template. mathspec will
8085 be used in xelatex if the `mathspec` variable is set; otherwise
8086 unicode-math will be used (Václav Haisman).
8087 + Use `dvipsnames` options when `colorlinks` specified (otherwise
8088 we get an error for `maroon`) (Thomas Hodgson).
8089 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
8090 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
8091 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
8092 clash when loading a package (e.g. `tufte-latex`) that uses
8093 `hyperref` settings different from those in the template.
8094 + Add `natbiboptions` variable (#3768).
8095 + Fix links inside captions in LaTeX output with links-as-notes
8096 (Václav Haisman, #3651). Declare our redefined `\href` robust.
8097 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
8098 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
8099 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
8100 packages. Use existing `CJKmainfont` and `CJKoptions` template
8101 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
8102 and `luatexjapresetoptions` for `luatexja-preset`.
8103 + Added `aspectratio` variable to beamer template (Václav Haisman,
8105 + Modified template.latex to fix XeLaTex being used with tables
8106 (lwolfsonkin, #3661). Reordered `lang` variable handling to
8107 immediately before `bidi`.
8109 * ConTeXt template: Improved font handling: `simplefonts` is now
8110 obsolete in ConTeXt (Pablo Rodríguez).
8113### Documentation improvements
8117 + Add URL for Prince HTML > PDF engine (Ian, #3919).
8118 + Document that content above slide-level will be omitted in
8119 slide shows. See #3460, #2265.
8120 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
8121 + Small clarification in YAML metadata section.
8122 + Document that html4 is technically XHTML 1.0 transitional.
8123 + Remove refs to highlighting-kate (#3672).
8124 + Document ibooks specific epub metadata.
8125 + Clarify that mathml is used for ODT math.
8126 + Mention limitations of Literate Haskell Support (#3410,
8128 + Add documentation of limitations of grid tables (Stephen
8130 + Clarify that meta-json contains transformed values (Jakob Voß,
8131 #3491) Make clear that template variable `meta-json` does not
8132 contain plain text values or JSON output format but field values
8133 transformed to the selected output format.
8137 + Clarify that templates are dual-licensed.
8138 + Clarify that pandoc-types is BSD3 licensed.
8139 + List new files not written by jgm (Albert Krewinkel).
8140 + Update dates in copyright notices (Albert Krewinkel). This follows
8141 the suggestions given by the FSF for GPL licensed software.
8142 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
8146 + Improved instructions for tests with patterns.
8147 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
8151 + Fixed typos (Wandmalfarbe, #3479).
8152 + Add "ask on pandoc-discuss" (Mauro Bieg).
8154 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
8155 end of this document is autogenerated from `data/pandoc.lua`
8156 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
8159 * Add `doc/filters.md`. This is the old scripting tutorial from
8162 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
8163 to using pandoc as a Haskell library.
8166### Build infrastructure improvements
8168 * Removed `data/templates` submodule. Templates are now a subtree
8169 in `data/templates`. This removes the need to do `git submodule
8172 * Renamed `tests` -> `test`.
8174 * Remove `https` flag. Always build with HTTPS support.
8176 * Use `file-embed` instead of `hsb2hs` to embed data files when
8177 `embed_data_files` flag is set. `file-embed` gives us better dependency
8178 tracking: if a data file changes, ghc/stack/cabal know to recompile
8179 the Data module. This also removes `hsb2hs` as a build dependency.
8181 * Add `custom-setup` stanza to pandoc, lowercase field names.
8183 * Add `static` Cabal flag.
8185 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
8186 than -OSX. Changed local names from osx to macos.
8188 * make_macos_package.sh - Use strip to reduce executable size.
8190 * Revised binary linux package. Now a completely static executable
8191 is created, using Docker and alpine. We create both a deb and a
8192 tarball. The old `deb` directory has been replaced with a `linux`
8193 directory. Running `make` in the `linux` directory should
8194 perform the build, putting the binary packages in `artifacts/`.
8196 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
8197 pandoc-data packages will be uninstalled; this package provides
8198 both (#3822). Add latex packages as 'suggested', update
8201 * Remove cpphs build requirement -- it is no longer needed.
8203 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
8205 * Name change OSX -> macOS (ickc, #3869).
8207 * Fix casing of Linux, UNIX, and Windows (ickc).
8209 * `.travis.yml`: create a source dist and do cabal build and test there.
8210 That way we catch errors due to files missing from the data
8211 section of pandoc.cabal.
8215 + Split `make haddock` from `make full`.
8216 + Add BRANCH variable for winpkg.
8217 + Add `lint` target.
8218 + Improve `make full`. Disable optimizations.
8219 Build everything, inc. trypandoc and benchmarks. Use parallel build.
8220 + Allow `make test` to take `TESTARGS`.
8222 * Added new command tests (`Tests.Command`), using small text files
8223 in `test/command/`. Any files added in this directory will be treated
8224 as shell tests (see smart.md for an example). This makes it very easy
8225 to add regression tests etc.
8227 * Test fixes so we can find data files. In old tests & command tests,
8228 we now set the environment variable `pandoc_datadir`. In lua tests,
8229 we set the datadir explicitly.
8231 * Refactored `compareOutput` in docx writer test.
8233 * Consolidated some common functions in `Tests.Helper`.
8235 * Small change to unbalanced bracket test to speed up test suite.
8237 * Speed up Native writer quickcheck tests.
8239 * Use tasty for tests rather than test-framework.
8241 * Add simple Emacs mode to help with Pandoc templates editing.
8242 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
8245## pandoc 1.19.2.4 (2017-09-10)
8247 * Add dependencies on texmath and skylighting to the executable.
8248 This is needed for dependency version numbers to be available,
8251## pandoc 1.19.2.3 (2017-09-09)
8253 * Add CPP to Setup.hs so it works with Cabal >= 2 and < 2.
8255## pandoc 1.19.2.2 (2017-09-08)
8257 * Fix build with GHC 8.2.1 (#3876, Peter Simons). Setup.hs does not
8258 compile with Cabal 2.x, so we require an earlier version via
8259 setup-depends. The following packages need newer versions with
8260 GHC 8.2.1 and had their constraints relaxed accordingly:
8261 executable-path, process, syb, and time.
8263## pandoc 1.19.2.1 (2017-01-31)
8265 * Require skylighting >= 0.1.1.4.
8266 * Adjust test output for skylighting version.
8267 * Relax upper bounds on blaze-html and blaze-markup.
8269## pandoc 1.19.2 (2017-01-29)
8271 * Use skylighting library instead of highlighting-kate for syntax
8272 highlighting. Skylighting is faster and more accurate (#3363).
8273 Later we'll be able to add features like warning messages, dynamic
8274 loading of xml syntax definitions, and dynamic loading of themes.
8276 * Added a new highlight style, `breezeDark`.
8278 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
8279 This allows more languages to be used when using the `--listings`
8282 * OpenDocument writer:
8284 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
8285 + Don't profilerate text styles unnecessarily (#3371).
8286 This change makes the writer create only as many temporary
8287 text styles as are absolutely necessary. It also consolidates
8288 adjacent nodes with the same style.
8290 * Org reader (Albert Krewinkel):
8292 + Allow short hand for single-line raw blocks (Albert Krewinkel,
8293 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
8294 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
8295 + Accept org-ref citations followed by commas (Albert Krewinkel).
8296 Bugfix for an issue which, whenever the citation was immediately
8297 followed by a comma, prevented correct parsing of org-ref citations.
8298 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
8299 `/*strong and emphasized*/`) was interpreted incorrectly in that the
8300 inner markup was not recognized.
8301 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
8303 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
8304 In the past, the docx reader wrote an empty header as an empty list. It
8305 should have the same width as a row (and be filled with empty cells).
8309 + Improved handling of display math (#3362). Sometimes display math is
8310 indented with more than one colon. Previously we handled these cases
8311 badly, generating definition lists and missing the math.
8312 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
8313 behavior when the smart option is parsed to match other readers'
8318 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
8319 (#3341). Previously this did not properly enable escaped line breaks.
8320 + Disallow space between inline code and attributes (#3326, #3323,
8323 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
8325 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
8327 * LaTeX writer: allow tables with empty cells to count as "plain."
8328 This addresses a problem of too-wide tables when empty cells
8329 are used. Thanks to Joost Kremers for reporting the issue.
8331 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
8332 Unprefixed numbers where used by older org-mode versions, but are no
8335 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
8338 * Markdown writer: Fix display math with `--webtex` (#3298).
8340 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
8345 + default.latex: Moved geometry after hyperref (Václav Haisman).
8346 Otherwise PDF sizes can be wrong in some circumstances.
8347 + Copied a few changes from default.latex to default.beamer
8349 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
8350 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
8351 that contain verbatim in notes (#3361). (Note: the beamer template
8352 was updated to match the LaTeX template, but at this point verbatim
8353 in notes seems not to work in beamer.)
8354 + default.latex: Allow passing `microtypeoptions` to microtype
8356 + default.latex: Add hyphen option to url package.
8357 + default.docbook5: Fix namespace declarations (Mauro Bieg).
8359 * Moved `make_osx_package.sh` to `osx/` directory.
8361 * Travis continuous integration:
8363 + Fix false positives with dist build.
8364 + Speed improvements (Kolen Cheung, #3304, #3357).
8368 + Clarify that blank space is needed around footnotes (#3352).
8369 + Fixed typo (#3351, Alexey Rogechev).
8370 + Note that `--wrap=auto` does not work in HTML output.
8371 + Default `--columns` width is 72, not 80.
8372 + Fixed broken links (#3316, Kolen Cheung).
8373 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
8377 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
8378 + Added instructions for extracting binary from OSX, Windows packages.
8380 * CONTRIBUTING.md: Describe labels currently used in issue tracker
8381 (Albert Krewinkel). The labels have changed over time, the list of
8382 labels is updated to reflect the current set of labels used in the
8385 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
8387 * Bumped version bounds for dependencies.
8390## pandoc 1.19.1 (2016-12-10)
8392 * Set `PANDOC_VERSION` environment variable for filters (#2640).
8393 This allows filters to check the pandoc version that produced
8394 the JSON they are receiving.
8396 * Docx reader: Ensure one-row tables don't have header (#3285,
8397 Jesse Rosenthal). Tables in MS Word are set by default to have
8398 special first-row formatting, which pandoc uses to determine whether
8399 or not they have a header. This means that one-row tables will, by
8400 default, have only a header -- which we imagine is not what people
8401 want. This change ensures that a one-row table is not understood to
8402 be a header only. Note that this means that it is impossible to
8403 produce a header-only table from docx, even though it is legal
8404 pandoc. But we believe that in nearly all cases, it will be an
8405 accidental (and unwelcome) result
8409 + Fixed some bad regressions in HTML table parser (#3280).
8410 This regression leads to the introduction of empty rows
8411 in some circumstances.
8412 + Understand `style=width:` as well as `width` in `col` (#3286).
8416 + Print warnings when keys, substitition, notes not found.
8417 Previously the parsers failed and we got raw text. Now we get a
8418 link with an empty URL, or empty inlines in the case of a note or
8421 + Fix hyperlink aliases (#3283).
8423 * Man writer: Ensure that periods are escaped at beginning of line
8426 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
8427 (#3272, Albert Krewinkel). Fix interaction of top-level
8428 divisions `part` or `chapter` with unnumbered headers when
8429 emitting LaTeX. Headers are ensured to be written using
8430 stared commands (like `\subsection*{}`).
8432 * LaTeX template: use comma not semicolon to separate keywords for
8433 `pdfkeywords`. Thanks to Wandmalfarbe.
8435 * Markdown writer: Fixed incorrect word wrapping (#3277).
8436 Previously pandoc would sometimes wrap lines too early due to
8439 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
8440 possible to insert escape codes for content that needs escaping at the
8441 beginning of a line.
8443 * Removed old MathMLInHTML.js from 2004, which should no longer
8444 be needed for MathML with modern browsers.
8446 * Fixed tests with dynamic linking (#2709).
8448 * Makefile: Use stack instead of cabal for targets. This is just
8449 a convenience for developers.
8451 * Fixed bash completion of filenames with space (#2749).
8453 * MANUAL: improved documentation on how to create a custom
8456 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
8458## pandoc 1.19 (2016-12-01)
8460 * Changed resolution of filter paths.
8462 + We now first treat the argument of `--filter` as a full (absolute
8463 or relative) path, looking for a program there. If it's found, we
8465 + If not, and if it is a simple program name or a relative path, we
8466 try resolving it relative to `$DATADIR/filters`.
8467 + If this fails, then we treat it as a program name and look in the
8469 + Removed a hardcoded '/' that may have caused problems with
8472 Previously if you did `--filter foo` and you had `foo` in your path and
8473 also an executable `foo` in your working directory, the one in the path
8474 would be used. Now the one in the working directory is used.
8476 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
8477 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
8478 `foo/bar.hs` relative to the working directory.
8480 * Allow `file://` URIs as arguments (#3196). Also improved default reader
8481 format detection. Previously with a URI ending in .md or .markdown,
8482 pandoc would assume HTML input. Now it treats these as markdown.
8484 * Allow to overwrite top-level division type heuristics (#3258,
8485 Albert Krewinkel). Pandoc uses heuristics to determine the most
8486 reasonable top-level division type when emitting LaTeX or
8487 Docbook markup. It is now possible to overwrite this implicitly set
8488 top-level division via the `top-level-division` command line parameter.
8490 * Text.Pandoc.Options \[API changes\]:
8492 + Removed `writerStandalone` field in `WriterOptions`, made
8493 `writerTemplate` a `Maybe` value. Previously setting
8494 `writerStandalone = True` did nothing unless a template was provided
8495 in writerTemplate. Now a fragment will be generated if
8496 `writerTemplate` is `Nothing`; otherwise, the specified template
8497 will be used and standalone output generated.
8498 + `Division` has been renamed `TopLevelDivision` (#3197). The
8499 `Section`, `Chapter`, and `Part` constructors were renamed to
8500 `TopLevelSection`, `TopLevelChapter`, and
8501 `TopLevelPart`, respectively. An additional `TopLevelDefault`
8502 constructor was added, which is now also the new default value of
8503 the `writerTopLevelDivision` field in `WriterOptions`.
8505 * Improved error if they give wrong arg to `--top-level-division`.
8507 * Use new module from texmath to lookup MS font codepoints in Docx reader.
8508 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
8509 lives in texmath (0.9).
8511 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
8512 when the qnames lacked the docbook namespace URI.
8516 + Improved table parsing (#3027). We now check explicitly for non-1
8517 rowspan or colspan attributes, and fail when we encounter them.
8518 Previously we checked that each row had the same number of cells,
8519 but that could be true even with rowspans/colspans. And there are
8520 cases where it isn't true in tables that we can handle fine -- e.g.
8521 when a tr element is empty. So now we just pad rows with empty cells
8523 + Treat `<math>` as MathML by default unless something else is
8524 explicitly specified in xmlns. Provided it parses as MathML,
8525 of course. Also fixed default which should be to inline math if no
8526 display attribute is used.
8527 + Only treat "a" element as link if it has href (#3226). Otherwise
8530 * Docx reader (Jesse Rosenthal):
8532 + Add a placeholder value for CHART. We wrap `[CHART]` in a
8533 `<span class="chart">`. Note that it maps to inlines because, in
8534 docx, anything in a drawing tag can be part of a larger paragraph.
8535 + Be more specific in parsing images We not only want `w:drawing`,
8536 because that could also include charts. Now we specify
8537 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
8538 a first step toward allowing other sorts of drawing data as well.
8539 + Abstract out function to avoid code repetition.
8540 + Update tests for img title and alt (#3204).
8541 + Handle Alt text and titles in images. We use the "description" field
8542 as alt text and the "title" field as title. These can be accessed
8543 through the "Format Picture" dialog in Word.
8544 + Docx reader utils: handle empty namespace in `elemName`. Previously,
8545 if given an empty namespace `(elemName ns "" "foo")` `elemName`
8546 would output a QName with a `Just ""` namespace. This is never what
8547 we want. Now we output a `Nothing`. If someone *does* want a
8548 `Just ""` in the namespace, they can enter the QName
8551 * ODT reader/writer:
8553 + Inline code when text has a special style (Hubert Plociniczak). When
8554 a piece of text has a text `Source_Text` then we assume that this is
8555 a piece of the document that represents a code that needs to
8556 be inlined. Adapted the writer to also reflect that change.
8557 Previously it was just writing a 'preformatted' text using a
8558 non-distinguishable font style. Code blocks are still not recognized
8559 by the ODT reader. That's a separate issue.
8560 + Infer table's caption from the paragraph (#3224,
8561 Hubert Plociniczak). ODT's reader always put empty captions for the
8562 parsed tables. This commit
8564 1. checks paragraphs that follow the table definition
8565 2. treats specially a paragraph with a style named 'Table'
8566 3. does some postprocessing of the paragraphs that combines tables
8567 followed immediately by captions
8569 The ODT writer used the `TableCaption` style for the caption
8570 paragraph. This commit follows the OpenOffice approach which allows
8571 for appending captions to table but uses a built-in style named
8572 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
8573 should change the style's name from `TableCaption` to `Table`.
8575 * ODT reader: Infer tables' header props from rows (#3199,
8576 Hubert Plociniczak). ODT reader simply provided an empty header list
8577 which meant that the contents of the whole table, even if not empty, was
8578 simply ignored. While we still do not infer headers we at least have to
8579 provide default properties of columns.
8583 + Allow reference link labels starting with `@...` if `citations`
8584 extension disabled (#3209). Example: in
8588 `link text` isn't hyperlinked because `[@a]` is parsed as
8589 a citation. Previously this happened whether or not the `citations`
8590 extension was enabled. Now it happens only if the `citations`
8591 extension is enabled.
8592 + Allow alignments to be specified in Markdown grid tables. For
8595 +-------+---------------+--------------------+
8596 | Right | Left | Centered |
8597 +=========:+:=================+:=============:+
8598 | Bananas | $1.34 | built-in wrapper |
8599 +-------+---------------+--------------------+
8601 + Allow Small Caps elements to be created using bracketed spans (as
8602 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
8606 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
8607 Fixed an error which came up, for example, with `\vspace` inside
8608 a caption. (Captions expect inlines.)
8609 + Improved table handling. We can now parse all of the tables emitted
8610 by pandoc in our tests. The only thing we don't get yet are
8611 alignments and column widths in more complex tables. See #2669.
8612 + Limited support for minipage.
8613 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
8614 + Handle BVerbatim from fancyvrb (#3203).
8615 + Handle hungarumlaut (#3201).
8616 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
8617 (#3184). This allows use of things like `\only<2,3>{my content}` in
8618 Markdown that is going to be converted to beamer.
8620 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
8621 overly long code will appear on every slide.
8623 * Org reader (Albert Krewinkel):
8625 + Respect column width settings (#3246). Table column properties can
8626 optionally specify a column's width with which it is displayed in
8627 the buffer. Some exporters, notably the ODT exporter in org-mode
8628 v9.0, use these values to calculate relative column widths. The org
8629 reader now implements the same behavior. Note that the org-mode
8630 LaTeX and HTML exporters in Emacs don't support this feature yet,
8631 which should be kept in mind by users who use the column
8633 + Allow HTML attribs on non-figure images (#3222). Images which are
8634 the only element in a paragraph can still be given HTML attributes,
8635 even if the image does not have a caption and is hence not a figure.
8636 The following will add set the `width` attribute of the image to
8639 +ATTR\_HTML: :width 50%
8640 =======================
8642 \[\[file:image.jpg\]\]
8644 + Support `ATTR_HTML` for special blocks (#3182). Special
8645 blocks (i.e. blocks with unrecognized names) can be prefixed with an
8646 `ATTR_HTML` block attribute. The attributes defined in that
8647 meta-directive are added to the `Div` which is used to represent the
8649 + Support the `todo` export option. The `todo` export option allows to
8650 toggle the inclusion of TODO keywords in the output. Setting this to
8651 `nil` causes TODO keywords to be dropped from headlines. The default
8652 is to include the keywords.
8653 + Add support for todo-markers. Headlines can have optional
8654 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
8655 or `#+TYP_TODO` meta directive. Multiple such directives can be
8656 given, each adding a new set of recognized todo-markers. If no
8657 custom todo-markers are defined, the default `TODO` and `DONE`
8658 markers are used. Todo-markers are conceptually separate from
8659 headline text and are hence excluded when autogenerating
8660 headline IDs. The markers are rendered as spans and labelled with
8661 two classes: One class is the markers name, the other signals the
8662 todo-state of the marker (either `todo` or `done`).
8666 + Use `\autocites*` when "suppress-author" citation used.
8667 + Ensure that simple tables have simple cells (#2666). If cells
8668 contain more than a single Plain or Para, then we need to set
8669 nonzero widths and put contents into minipages.
8670 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
8674 + Fix calculation of column widths for aligned multiline tables
8675 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
8676 usage for tables when `--columns` is set in such a way that cells
8677 must be very tiny. Now cells are guaranteed to be big enough so that
8678 single words don't need to line break, even if this pushes the line
8679 length above the column width.
8680 + Use bracketed form for native spans when `bracketed_spans`
8682 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
8683 sublist got rendered with a blank line after, while a tight ordered
8684 sublist did not. Now we don't get the blank line in either case.
8685 + Fix escaping of spaces in super/subscript (#3225). Previously two
8686 backslashes were inserted, which gave a literal backslash.
8687 + Adjust widths in Markdown grid tables so that they match
8692 + Give full detail when there are errors converting tex math.
8693 + Handle title text in images (Jesse Rosenthal). We already handled
8694 alt text. This just puts the image "title" into the docx
8696 + Fixed XML markup for empty cells (#3238). Previously the Compact
8697 style wasn't being applied properly to empty cells.
8701 + Updated `renderHtml` import from blaze-html.
8703 * Text.Pandoc.Pretty:
8705 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
8706 caused spurious blank lines in grid tables when we had things like
8707 `blankline $$ blankline`.
8708 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
8709 + Added error message for illegal call to `block` (Björn Peemöller).
8711 * Text.Pandoc.Shared:
8713 + Put `warn` in MonadIO.
8714 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
8715 URL starts with `//` and there is no "base URL" (as there would be
8716 if a URL were used on the command line), then default to http:.
8718 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
8720 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
8721 fixes a crash with `pandoc --version` on unusual systems with no real
8722 user (e.g. SQL Server 2016).
8724 * Added weigh-pandoc for memory usage diagnostics (#3169).
8726 * Use correct mime types for woff and woff2 (#3228).
8728 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
8730 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
8731 1.18 section where it belongs.
8733 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
8736 * Further revisions to manual for `--version` changes (#3244).
8740## pandoc 1.18 (2016-10-26)
8742 * Added `--list-input-formats`, `--list-output-formats`,
8743 `--list-extensions`, `--list-highlight-languages`, and
8744 `--list-highlight-styles` (#3173). Removed list of highlighting
8745 languages from `--version` output. Removed list of input and output
8746 formats from default `--help` output.
8748 * Added `--reference-location=block|section|document` option
8749 (Jesse Rosenthal). This determines whether Markdown link references
8750 and footnotes are placed at the end of the document, the end of the
8751 section, or the end of the top-level block.
8753 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
8754 This determines what a level-1 header corresponds to in LaTeX,
8755 ConTeXt, DocBook, and TEI output. The default is `section`.
8756 The `--chapters` option has been deprecated in favor of
8757 `--top-level-division=chapter`.
8759 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
8760 is now used in parsing RST and Markdown line blocks, DocBook
8761 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
8762 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
8763 are handled specially in the following ouput formats: AsciiDoc
8764 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
8765 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
8766 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
8767 other output formats, a paragraph with hard linebreaks is emitted.
8769 * Allow binary formats to be written to stdout (but not to tty) (#2677).
8770 Only works on posix, since we use the unix library to check whether
8771 output is to tty. On Windows, pandoc works as before and always requires
8772 an output file parameter for binary formats.
8774 * Changed JSON output format (Jesse Rosenthal). Previously we used
8775 generically generated JSON, but this was subject to change depending
8776 on the version of aeson pandoc was compiled with. To ensure stability,
8777 we switched to using manually written ToJSON and FromJSON
8778 instances, and encoding the API version. **Note:** pandoc filter
8779 libraries will need to be revised to handle the format change.
8780 Here is a summary of the essential changes:
8782 + The toplevel JSON format is now `{"pandoc-api-version" :
8783 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
8784 instead of `[{"unMeta": META}, [BLOCKS]]`.
8785 Decoding fails if the major and minor version numbers don't
8787 + Leaf nodes no longer have an empty array for their "c" value.
8788 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
8789 rather than `{"t":"Space","c":[]}` as before.
8791 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
8792 module to pandoc-types (Jesse Rosenthal). This makes it easier
8793 to use QuickCheck with pandoc types outside of pandoc itself.
8795 * Add `bracketed_spans` Markdown extension, enabled by default
8796 in pandoc `markdown`. This allows you to create a native span
8797 using this syntax: `[Here is my span]{#id .class key="val"}`.
8799 * Added `angle_brackets_escapable` Markdown extension (#2846).
8800 This is needed because github flavored Markdown has a slightly
8801 different set of escapable symbols than original Markdown;
8802 it includes angle brackets.
8804 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
8806 * Print highlighting-kate version in `--version`.
8808 * `Text.Pandoc.Options`:
8810 + `Extension` has new constructors `Ext_brackted_spans` and
8811 `Ext_angle_brackets_escapable` [API change].
8812 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
8813 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
8816 * `--filter`: we now check `$DATADIR/filters` for filters before
8817 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
8818 Voß for the idea). Filters placed in this directory need not
8819 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
8820 or `.rb`, pandoc will run the right interpreter.
8822 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
8823 default (Kolen Cheung).
8825 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
8827 * Execute .js filters with node (Jakob Voß).
8831 + Support `bc..` extended code blocks (#3037). Also, remove trailing
8832 newline in code blocks (consistently with Markdown reader).
8833 + Improve table parsing. We now handle cell and row attributes, mostly
8834 by skipping them. However, alignments are now handled properly.
8835 Since in pandoc alignment is per-column, not per-cell, we
8836 try to devine column alignments from cell alignments.
8837 Table captions are also now parsed, and textile indicators
8838 for thead and tfoot no longer cause parse failure. (However,
8839 a row designated as tfoot will just be a regular row in pandoc.)
8840 + Improve definition list parsing. We now allow multiple terms
8841 (which we concatenate with linebreaks). An exponential parsing
8842 bug (#3020) is also fixed.
8843 + Disallow empty URL in explicit link (#3036).
8847 + Use Div instead of BlockQuote for admonitions (#3031).
8848 The Div has class `admonition` and (if relevant) one of the
8849 following: `attention`, `caution`, `danger`, `error`, `hint`,
8850 `important`, `note`, `tip`, `warning`. **Note:** This will change
8851 the rendering of some RST documents! The word ("Warning", "Attention",
8852 etc.) is no longer added; that must be done with CSS or a filter.
8853 + A Div is now used for `sidebar` as well.
8854 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
8855 space before a footnote marker. We discard those spaces so that footnotes
8856 will be adjacent to the text that comes before it. This is in line with
8857 what rst2latex does.
8858 + Allow empty lines when parsing line blocks (Albert Krewinkel).
8862 + Allow empty lines when parsing line blocks (Albert Krewinkel).
8863 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
8867 + More robust parsing of unknown environments (#3026).
8868 We no longer fail on things like `^` inside options for tikz.
8869 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
8870 Some custom environments give these a meaning, so we should try not to
8871 fall over when we encounter them.
8872 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
8876 + Fix for unquoted attribute values in mediawiki tables (#3053).
8877 Previously an unquoted attribute value in a table row
8878 could cause parsing problems.
8879 + Improved treatment of verbatim constructions (#3055).
8880 Previously these yielded strings of alternating Code and Space
8881 elements; we now incorporate the spaces into the Code. Emphasis
8882 etc. is still possible inside these.
8883 + Properly interpret XML tags in pre environments (#3042). They are meant
8884 to be interpreted as literal text.
8886 * EPUB reader: don't add root path to data: URIs (#3150).
8887 Thanks to @lep for the bug report and patch.
8889 * Org reader (Albert Krewinkel):
8891 + Preserve indentation of verse lines (#3064). Leading spaces in verse
8892 lines are converted to non-breaking spaces, so indentation is preserved.
8893 + Ensure image sources are proper links. Image sources as those in plain
8894 images, image links, or figures, must be proper URIs or relative file
8895 paths to be recognized as images. This restriction is now enforced
8896 for all image sources. This also fixes the reader's usage of uncleaned
8897 image sources, leading to `file:` prefixes not being deleted from
8898 figure images. Thanks to @bsag for noticing this bug.
8899 + Trim verse lines properly (Albert Krewinkel).
8900 + Extract meta parsing code to module. Parsing of meta-data is well
8901 separable from other block parsing tasks. Moving into new module to
8902 get small files and clearly arranged code.
8903 + Read markup only for special meta keys. Most meta-keys should be read
8904 as normal string values, only a few are interpreted as marked-up text.
8905 + Allow multiple, comma-separated authors. Multiple authors can be
8906 specified in the `#+AUTHOR` meta line if they are given as a
8907 comma-separated list.
8908 + Give precedence to later meta lines. The last meta-line of any given
8909 type is the significant line. Previously the value of the first line
8910 was kept, even if more lines of the same type were encounterd.
8911 + Read LaTeX_header as header-includes. LaTeX-specific header commands
8912 can be defined in `#+LaTeX_header` lines. They are parsed as
8913 format-specific inlines to ensure that they will only show up in LaTeX
8915 + Set documentclass meta from LaTeX_class.
8916 + Set classoption meta from LaTeX_class_options.
8917 + Read HTML_head as header-includes. HTML-specific head content can be
8918 defined in `#+HTML_head` lines. They are parsed as format-specific
8919 inlines to ensure that they will only show up in HTML output.
8920 + Respect `author` export option. The `author` option controls whether
8921 the author should be included in the final markup. Setting
8922 `#+OPTIONS: author:nil` will drop the author from the final meta-data
8924 + Respect `email` export option. The `email` option controls whether the
8925 email meta-field should be included in the final markup. Setting
8926 `#+OPTIONS: email:nil` will drop the email field from the final
8928 + Respect `creator` export option. The `creator` option controls whether
8929 the creator meta-field should be included in the final markup. Setting
8930 `#+OPTIONS: creator:nil` will drop the creator field from the final
8931 meta-data output. Org-mode recognizes the special value `comment` for
8932 this field, causing the creator to be included in a comment. This is
8933 difficult to translate to Pandoc internals and is hence interpreted the
8934 same as other truish values (i.e. the meta field is kept if it's
8936 + Respect unnumbered header property (#3095). Sections the `unnumbered`
8937 property should, as the name implies, be excluded from the automatic
8938 numbering of section provided by some output formats. The Pandoc
8939 convention for this is to add an "unnumbered" class to the header. The
8940 reader treats properties as key-value pairs per default, so a special
8941 case is added to translate the above property to a class instead.
8942 + Allow figure with empty caption (Albert Krewinkel, #3161).
8943 A `#+CAPTION` attribute before an image is enough to turn an image into
8944 a figure. This wasn't the case because the `parseFromString` function,
8945 which processes the caption value, would fail on empty values. Adding
8946 a newline character to the caption value fixes this.
8950 + Use XML convenience functions (Jesse Rosenthal).
8951 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
8952 the code a lot cleaner than the original XML.Light functions, but they
8953 had been used inconsistently. This puts them in wherever applicable.
8954 + Handle anchor spans with content in headers. Previously, we would only
8955 be able to figure out internal links to a header in a docx if the
8956 anchor span was empty. We change that to read the inlines out of the
8957 first anchor span in a header.
8958 + Let headers use exisiting id. Previously we always generated an id for
8959 headers (since they wouldn't bring one from Docx). Now we let it use an
8960 existing one if possible. This should allow us to recurs through anchor
8962 + Use all anchor spans for header ids. Previously we only used the first
8963 anchor span to affect header ids. This allows us to use all the anchor
8964 spans in a header, whether they're nested or not (#3088).
8965 + Test for nested anchor spans in header. This ensures that anchor spans
8966 in header with content (or with other anchor spans inside) will resolve
8967 to links to a header id properly.
8969 * ODT reader (Hubert Plociniczak)
8971 + Include list's starting value. Previously the starting value of
8972 the lists' items has been hardcoded to 1. In reality ODT's list
8973 style definition can provide a new starting value in one of its
8975 + Infer caption from the text following the image.
8976 Frame can contain other frames with the text boxes.
8977 + Add `fig:` to title for Image with a caption (as expected
8978 by pandoc's writers).
8979 + Basic support for images in ODT documents.
8980 + Don't duplicate text for anchors (#3143). When creating an anchor
8981 element we were adding its representation as well as the original
8982 content, leading to text duplication.
8986 + Include an anchor element when a div or span has an id (#3102).
8987 Note that DocBook does not have a class attribute, but at least this
8988 provides an anchor for internal links.
8992 + Don't use * for unnumbered paragraph, subparagraph. The starred
8993 variants don't exist. This helps with part of #3058...it gets rid of
8994 the spurious `*`s. But we still have numbers on the 4th and 5th level
8996 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
8997 Otherwise they can cause unintended ligatures like `` ?` ``.
8998 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
8999 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
9000 This allows figure placement defaults to be changed by the user
9003 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
9004 TEI doesn't have `<book>` elements but only generic `<divN>` division
9005 elements. Checking the template for a trailing `</book>` is nonsensical.
9007 * MediaWiki writer: transform filename with underscores in images (#3052).
9008 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
9009 for internal links, but it also needs to happen for images.
9011 * ICML writer: replace partial function (!!) in table handling (#3175,
9014 * Man writer: allow section numbers that are not a single digit (#3089).
9016 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
9017 (#3068). In AsciiDoc, you must use a special form of emphasis
9018 (double `__`) for intraword emphasis. Pandoc was previously using
9019 this more than necessary.
9021 * EPUB writer: use stringify instead of plain writer for metadata
9022 (#3066). This means that underscores won't be used for emphasis,
9023 or CAPS for bold. The metadata fields will just have unadorned
9028 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
9029 with a `custom-style` key in the attributes will apply the corresponding
9030 key to the contained blocks or inlines.
9031 + Add ReaderT env to the docx writer (Jesse Rosenthal).
9032 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
9033 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
9034 on the command line. For finer-grained control, you can set
9035 the `dir` attribute in Div or Span elements.
9037 * Org writer (Albert Krewinkel):
9039 + Remove blank line after figure caption. Org-mode only treats an image
9040 as a figure if it is directly preceded by a caption.
9041 + Ensure blank line after figure. An Org-mode figure should be surrounded
9042 by blank lines. The figure would be recognized regardless, but images
9043 in the following line would unintentionally be treated as figures as
9045 + Ensure link targets are paths or URLs. Org-mode treats links as
9046 document internal searches unless the link target looks like a URL or
9047 file path, either relative or absolute. This change ensures that this
9049 + Translate language identifiers. Pandoc and Org-mode use different
9050 programming language identifiers. An additional translation between
9051 those identifiers is added to avoid unexpected behavior. This fixes a
9052 problem where language specific source code would sometimes be output
9054 + Drop space before footnote markers (Albert Krewinkel, #3162).
9055 The writer no longer adds an extra space before footnote markers.
9059 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
9060 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
9062 + Check for the `raw_html` extension before emitting a raw HTML block.
9063 + Abstract out note/ref function (Jesse Rosenthal).
9064 + Add ReaderT monad for environment variables (Jesse Rosenthal).
9066 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
9067 subtitle, author, date (#3119). Note that, as a result of this change,
9068 authors may need to update CSS.
9070 * revealjs template: Added `notes-server` option
9071 (jgm/pandoc-templates#212, Yoan Blanc).
9075 + Restore whitespace between paragraphs. This was
9076 a regression in the last release (jgm/pandoc-templates#207).
9077 + Added `themeoptions` variable (Carsten Gips).
9078 + Added `beamerarticle` variable. This causes the `beamerarticle`
9079 package to be loaded in beamer, to produce an article from beamer
9080 slides. (Carsten Gips)
9081 + Added support for `fontfamilies` structured variable
9083 + Added hypersetup options (Jake Zimmerman).
9087 + Added dummy definition for `\institute`.
9088 This isn't a standard command, and we want to avoid a crash when
9089 `institute` is used with the default template.
9090 + Define default figure placement (Václav Haisman), since pandoc
9091 no longer includes `[htbp]` for figures. Users with custom templates
9092 will want to add this. See #3103.
9093 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
9096 * Moved template compiling/rendering code to a separate library.
9097 `doctemplates`. This allows the pandoc templating system to be
9100 * Text.Pandoc.Error: Fix out of index error in `handleError`
9101 (Matthew Pickering). The fix is to not try to show the exact line when
9102 it would cause an out-of-bounds error as a result of included files.
9104 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
9106 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
9107 addresses. Technically `**@user` is a valid email address, but if we
9108 allow things like this, we get bad results in markdown flavors
9109 that autolink raw email addresses (see #2940). So we exclude a few
9110 valid email addresses in order to avoid these more common bad cases.
9112 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
9113 emit the alt text, emphasized. This accords with what the ODT writer
9114 currently does. The user will still get a warning about a nonexistent
9117 * Fix example in API documentation (#3176, Thomas Weißschuh).
9119 * Tell where to get tarball in INSTALL (#3062).
9121 * Rename README to MANUAL.txt and add GitHub-friendly README.md
9122 (Albert Krewinkel, Kolen Cheung).
9124 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
9128 + Put note on structured vars in separate paragraph (#2148, Albert
9129 Krewinkel). Make it clearer that structured author variables require a
9131 + Note that `--katex` works best with `html5` (#3077).
9132 + Fix the LaTeX and EPUB links in manual (Morton Fox).
9133 + Document `biblio-title` variable.
9135 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
9137 * Update KaTeX to v0.6.0 (Kolen Cheung).
9139 * Allow latest dependencies.
9141 * Use texmath 0.8.6.6 (#3040).
9143 * Allow http-client 0.4.30, which is the version in stackage lts.
9144 Previously we required 0.5.
9145 Remove CPP conditionals for earlier versions.
9147 * Remove support for GHC < 7.8 (Jesse Rosenthal).
9149 + Remove Compat.Monoid.
9150 + Remove an inline monad compatibility macro.
9151 + Remove Text.Pandoc.Compat.Except.
9152 + Remove directory compat.
9153 + Change constraint on mtl.
9154 + Remove unnecessary CPP condition in UTF8.
9155 + Bump base lower bound to 4.7.
9156 + Remove 7.6 build from .travis.yaml.
9157 + Bump supported ghc version in CONTRIBUTING.md.
9158 + Add note about GHC version support to INSTALL.
9159 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
9160 + Remove TagSoup compat.
9161 + Add EOL note to time compat module. Because time 1.4 is a boot library
9162 for GHC 7.8, we will support the compatibility module as long as we
9163 support 7.8. But we should be clear about when we will no longer need
9165 + Remove blaze-html CPP conditional.
9166 + Remove unnecessary CPP in custom Prelude.
9168## pandoc 1.17.2 (2016-07-17)
9170 * Added Zim Wiki writer, template and tests. `zimwiki` is now
9171 a valid output format. (Alex Ivkin)
9173 * Changed email-obfuscation default to no obfuscation (#2988).
9174 + `writerEmailObfuscation` in `defaultWriterOptions` is now
9176 + the default for the command-line `--email-obfuscation` option is
9179 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
9183 + Support arbitrary raw inlines (Albert Krewinkel).
9184 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
9185 parlance) to be included as `@@format:raw foreign format text@@`.
9186 + Improve Div handling (Albert Krewinkel). Div blocks handling is
9187 changed to make the output look more like idiomatic org mode:
9188 - Div-wrapped content is output as-is if the div's attribute is the
9190 - Div containers with an id but neither classes nor key-value pairs
9191 are unwrapped and the id is added as an anchor.
9192 - Divs with classes associated with greater block elements are
9193 wrapped in a `#+BEGIN`...`#+END` block.
9194 - The old behavior for Divs with more complex attributes is kept.
9196 * HTML writer: Better support for raw LaTeX environments (#2758).
9197 Previously we just passed all raw TeX through when MathJax
9198 was used for HTML math. This passed through too much.
9199 With this patch, only raw LaTeX environments that MathJax
9200 can handle get passed through.
9201 This patch also causes raw LaTeX environments to be treated
9202 as math, when possible, with MathML and WebTeX output.
9204 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
9205 (#2993). Markdown line breaks involve a newline, and simple and pipe
9206 tables can't contain one.
9208 * Make --webtex work with the Markdown writer (#1177).
9209 This is a convenient option for people using
9210 websites whose Markdown flavors don't provide for math.
9214 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
9215 We treat display math like block quotes, and apply FirstParagraph style
9216 to paragraphs that follow them. These can be styled as the user
9217 wishes. (But, when the user is using indentation, this allows for
9218 paragraphs to continue after display math without indentation.)
9219 + Use actual creation time as doc prop (Jesse Rosenthal).
9220 Previously, we had used the user-supplied date, if available, for Word's
9221 document creation metadata. This could lead to weird results, as in
9222 cases where the user post-dates a document (so the modification might be
9223 prior to the creation). Here we use the actual computer time to set the
9228 + Don't URI-escape image source (#2825). Usually this is a local file,
9229 and replacing spaces with `%20` ruins things.
9230 + Allow 'standout' as a beamer frame option (#3007).
9231 `## Slide title {.standout}`.
9233 * RST reader: Fixed links with no explicit link text. The link
9234 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
9235 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
9236 Closes Debian #828167 -- reported by Christian Heller.
9240 + Fixed attributes (#2984). Attributes can't be followed by
9241 a space. So, `_(class)emph_` but `_(noclass) emph_`.
9242 + Fixed exponential parsing bug (#3020).
9243 + Fix overly aggressive interpretation as images (#2998).
9244 Spaces are not allowed in the image URL in textile.
9248 + Fix `\cite` so it is a NormalCitation not AuthorInText.
9249 + Strip off double quotes around image source if present (#2825).
9250 Avoids interpreting these as part of the literal filename.
9254 + Add semicolon to list of special chars (Albert Krewinkel)
9255 Semicolons are used as special characters in citations syntax. This
9256 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
9257 suffix]`. Previously, parsing would have failed unless there was a space
9258 or other special character as the last <prefix> character.
9259 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
9260 A specification for an official Org-mode citation syntax was drafted by
9261 Richard Lawrence and enhanced with the help of others on the orgmode
9262 mailing list. Basic support for this citation style is added to the
9264 + Support arbitrary raw inlines (Albert Krewinkel).
9265 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
9266 parlance) to be included as `@@format:raw foreign format text@@`.
9267 + Remove partial functions (Albert Krewinkel, #2991).
9268 Partial functions like `head` lead to avoidable errors and should be
9269 avoided. They are replaced with total functions.
9270 + Support figure labels (Albert Krewinkel, #2496, #2999).
9271 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
9272 respective image. This allows e.g. the LaTeX to add proper `\label`
9274 + Improve tag and properties type safety (Albert Krewinkel).
9275 Specific newtype definitions are used to replace stringly typing of tags
9276 and properties. Type safety is increased while readability is improved.
9277 + Parse as headlines, convert to blocks (Albert Krewinkel).
9278 Emacs org-mode is based on outline-mode, which treats documents as trees
9279 with headlines are nodes. The reader is refactored to parse into a
9280 similar tree structure. This simplifies transformations acting on
9281 document (sub-)trees.
9282 * Refactor comment tree handling (Albert Krewinkel).
9283 Comment trees were handled after parsing, as pattern matching on lists
9284 is easier than matching on sequences. The new method of reading
9285 documents as trees allows for more elegant subtree removal.
9286 * Support archived trees export options (Albert Krewinkel).
9287 Handling of archived trees can be modified using the `arch` option.
9288 Archived trees are either dropped, exported completely, or collapsed to
9289 include just the header when the `arch` option is nil, non-nil, or
9290 `headline`, respectively.
9291 * Put export setting parser into module (Albert Krewinkel).
9292 Export option parsing is distinct enough from general block parsing to
9293 justify putting it into a separate module.
9294 * Support headline levels export setting (Albert Krewinkel).
9295 The depths of headlines can be modified using the `H` option. Deeper
9296 headlines will be converted to lists.
9297 * Replace ugly code with view pattern (Albert Krewinkel).
9298 Some less-than-smart code required a pragma switching of overlapping
9299 pattern warnings in order to compile seamlessly. Using view patterns
9300 makes the code easier to read and also doesn't require overlapping
9301 pattern checks to be disabled.
9302 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
9303 Org rules for allowed characters before or after markup chars were not
9304 checked for verbatim text. This resultet in wrong parsing outcomes of
9305 if the verbatim text contained e.g. space enclosed markup characters as
9306 part of the text (`=is_substr = True=`). Forcing the parser to update
9307 the positions of allowed/forbidden markup border characters fixes this.
9309 * LaTeX template: fix for obscure hyperref/xelatex issue.
9310 Here's a minimal case:
9312 \documentclass[]{article}
9313 \usepackage{hyperref}
9318 Without this change, this fails on the second invocation of xelatex.
9319 This affects inputs this like `# %á` with pdf output via xelatex.
9321 * trypandoc: call results 'html' instead of 'result'.
9322 This is for better compatibility with babelmark2.
9324 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
9325 MultiMarkdown was only mentioned as a supported Markdown dialect but not
9326 as a possible input or output format. A brief mention is added
9327 everywhere the other supported markdown dialects are mentioned.
9329 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
9330 Raw HTML is kept when the output format is Emacs Org mode.
9332 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
9334 * Text.Pandoc.Shared:
9336 + Introduce blocksToInlines function (Jesse Rosenthal).
9337 This is a lossy function for converting `[Block] -> [Inline]`. Its main
9338 use, at the moment, is for docx comments, which can contain arbitrary
9339 blocks (except for footnotes), but which will be converted to spans.
9340 This is, at the moment, pretty useless for everything but the basic
9341 `Para` and `Plain` comments. It can be improved, but the docx reader
9342 should probably emit a warning if the comment contains more than this.
9343 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
9344 + Add further formats for `normalizeDate` (Jesse Rosenthal).
9345 We want to avoid illegal dates -- in particular years with greater than
9346 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
9347 `%Y%m`, and finally `%Y`.
9348 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
9349 We only allow years between 1601 and 9999, inclusive. The ISO 8601
9350 actually says that years are supposed to start with 1583, but MS Word
9351 only allows 1601-9999. This should stop corrupted word files if the date
9352 is out of that range, or is parsed incorrectly.
9353 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
9354 Previously we parsed a list of dates, took the first one, and then
9355 tested its year range. That meant that if the first one failed, we
9356 returned nothing, regardless of what the others did. Now we test for
9357 sanity before running `msum` over the list of Maybe values. Anything
9358 failing the test will be Nothing, so will not be a candidate.
9362 + Add simple comment functionality. (Jesse Rosenthal).
9363 This adds simple track-changes comment parsing to the docx reader. It is
9364 turned on with `--track-changes=all`. All comments are converted to
9365 inlines, which can list some information. In the future a warning will be
9366 added for comments with formatting that seems like it will be excessively
9367 denatured. Note that comments can extend across blocks. For that reason
9368 there are two spans: `comment-start` and `comment-end`. `comment-start`
9369 will contain the comment. `comment-end` will always be empty. The two
9370 will be associated by a numeric id.
9371 + Enable warnings in top-level reader (Jesse Rosenthal).
9372 Previously we had only allowed for warnings in the parser. Now we allow
9373 for them in the `Docx.hs` as well. The warnings are simply concatenated.
9374 + Add warning for advanced comment formatting. (Jesse Rosenthal).
9375 We can't guarantee we'll convert every comment correctly, though we'll
9376 do the best we can. This warns if the comment includes something other
9378 + Add tests for warnings. (Jesse Rosenthal).
9379 + Add tests for comments (Jesse Rosenthal).
9380 We test for comments, using all track-changes options. Note that we
9381 should only output comments if `--track-changes=all`. We also test for
9382 emitting warnings if there is complicated formatting.
9384 * README: update to include track-changes comments. (Jesse Rosenthal)
9386 * Improved Windows installer - don't ignore properties set on command-line.
9387 See #2708. Needs testing to see if this resolves the issue.
9390 * Process markdown extensions on command line in L->R order (#2995).
9391 Previously they were processed, very unintuitively, in R->L
9392 order, so that `markdown-tex_math_dollars+tex_math_dollars`
9393 had `tex_math_dollars` disabled.
9395 * Added `secnumdepth` variable to LaTeX template (#2920).
9397 * Include table of contents in README.html in Windows package.
9399 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
9400 In Writers.Shared, we strip leading and trailing spaces for display
9401 math. Since SoftBreak's are treated as spaces, we should strip those
9404 * beamer, latex templates: pass biblatexoptions directly in package load.
9405 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
9407 * CPP workaround for deprecation of `parseUrl` in http-client.
9409 * Removed some redundant class constraints.
9411 * make_oxs_package.sh - use OSX env variable.
9413 * Added `winpkg` target to Makefile. This downloads the windows package
9414 from appveyor and signs it using the key.
9416 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
9417 Raw TeX is kept verbatim when the output format is Emacs Org mode.
9419 * Support math with haddock-library >= 1.4.
9421 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
9422 wouldn't accept the package.
9424 * Update library dependency versions.
9426## pandoc 1.17.1 (2016-06-04)
9428 * New output format: `docbook5` (Ivo Clarysse).
9430 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
9435 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
9436 This allows header attributes to be added to org documents in the form
9437 of `:PROPERTIES:` drawers. All available attributes are stored as
9438 key/value pairs. This reflects the way the org reader handles
9439 `:PROPERTIES:` blocks.
9440 + Add drawer capability (Carlos Sosa). For the implementation of the
9441 Drawer element in the Org Writer, we make use of a generic Block
9442 container with attributes. The presence of a `drawer` class defines
9443 that the `Div` constructor is a drawer. The first class defines the
9444 drawer name to use. The key-value list in the attributes defines
9445 the keys to add inside the Drawer. Lastly, the list of Block elements
9446 contains miscellaneous blocks elements to add inside of the Drawer.
9447 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
9448 reserved for internal use by Org-mode and should not be used.
9449 The `CUSTOM_ID` property is to be used instead, it is converted to the
9450 `ID` property for certain export format.
9454 + Ignore `--incremental` unless output format is beamer (#2843).
9455 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
9456 Allow for optional argument in square brackets.
9457 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
9458 This allows one to access the hyphenation patterns in CTAN's
9460 + Add missing languages from hyph-utf8 (Andrew Dunning).
9461 + Improve use of `\strut` with `\minipage` inside tables
9462 (Jose Luis Duran). This improves spacing in multiline
9464 + Use `{}` around options containing special chars (#2892).
9465 + Avoid lazy `foldl`.
9466 + Don't escape underscore in labels (#2921). Previously they were
9468 + brazilian -> brazil for polyglossia (#2953).
9470 * HTML writer: Ensure mathjax link is added when math appears in footnote
9471 (#2881). Previously if a document only had math in a footnote, the
9472 MathJax link would not be added.
9474 * EPUB writer: set `navpage` variable on nav page.
9475 This allows templates to treat it differently.
9479 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
9480 + Properly handle `ulink`/`link` (Ivo Clarysse).
9484 + Unescape URIs in spine (#2924).
9485 + EPUB reader: normalise link id (Mauro Bieg).
9489 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
9490 `moveTo` and `moveFrom` are track-changes tags that are used when a
9491 block of text is moved in the document. We now recognize these tags and
9492 treat them the same as `insert` and `delete`, respectively. So,
9493 `--track-changes=accept` will show the moved version, while
9494 `--track-changes=reject` will show the original version.
9495 + Tests for track-changes moving (Jesse Rosenthal).
9497 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
9498 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
9499 would error out if zip-archive failed. We change the archive extraction
9500 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
9502 * Markdown, HTML readers: be more forgiving about unescaped `&` in
9503 HTML (#2410). We are now more forgiving about parsing invalid HTML with
9504 unescaped `&` as raw HTML. (Previously any unescaped `&`
9505 would cause pandoc not to recognize the string as raw HTML.)
9509 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
9510 + Added `-s` to markdown-reader-more test.
9512 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
9513 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
9515 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
9518 * RST reader: Support `:class:` option for code block in RST reader
9521 * Org reader (all Albert Krewinkel, except where noted otherwise):
9523 + Stop padding short table rows.
9524 Emacs Org-mode doesn't add any padding to table rows. The first
9525 row (header or first body row) is used to determine the column count,
9526 no other magic is performed.
9527 + Refactor rows-to-table conversion. This refactors
9528 the codes conversing a list table lines to an org table ADT.
9529 The old code was simplified and is now slightly less ugly.
9530 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
9531 This fixes Org mode parsing of some corner cases regarding empty cells
9532 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
9533 two empty cells, but would be parsed as a single cell containing a pipe
9534 character. Empty rows where parsed as alignment rows and dropped from
9536 + Fix spacing after LaTeX-style symbols.
9537 The org-reader was droping space after unescaped LaTeX-style symbol
9538 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
9539 instead. This seems to be because the LaTeX-reader treats the
9540 command-terminating space as part of the command. Dropping the trailing
9541 space from the symbol-command fixes this issue.
9542 + Print empty table rows. Empty table rows should not
9543 be dropped from the output, so row-height is always set to be at least 1.
9544 + Move parser state into separate module.
9545 The org reader code has become large and confusing. Extracting smaller
9546 parts into submodules should help to clean things up.
9547 + Add support for sub/superscript export options.
9548 Org-mode allows to specify export settings via `#+OPTIONS` lines.
9549 Disabling simple sub- and superscripts is one of these export options,
9550 this options is now supported.
9551 + Support special strings export option Parsing of special strings
9552 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
9554 + Support emphasized text export option. Parsing of emphasized text can
9555 be toggled using the `*` option. This influences parsing of text marked
9556 as emphasized, strong, strikeout, and underline. Parsing of inline math,
9557 code, and verbatim text is not affected by this option.
9558 + Support smart quotes export option. Reading of smart quotes can be
9559 toggled using the `'` option.
9560 + Parse but ignore export options. All known export options are parsed
9562 + Refactor block attribute handling. A parser state attribute was used
9563 to keep track of block attributes defined in meta-lines. Global state
9564 is undesirable, so block attributes are no longer saved as part of the
9565 parser state. Old functions and the respective part of the parser state
9567 + Use custom `anyLine`. Additional state changes need to be made after
9568 a newline is parsed, otherwise markup may not be recognized correctly.
9569 This fixes a bug where markup after certain block-types would not be
9571 + Add support for `ATTR_HTML` attributes (#1906).
9572 Arbitrary key-value pairs can be added to some block types using a
9573 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
9574 when exporting to HTML, but since we cannot make this distinction here,
9575 the attributes are always added. The functionality is now supported
9577 + Add `:PROPERTIES:` drawer support (#1877).
9578 Headers can have optional `:PROPERTIES:` drawers associated with them.
9579 These drawers contain key/value pairs like the header's `id`. The
9580 reader adds all listed pairs to the header's attributes; `id` and
9581 `class` attributes are handled specially to match the way `Attr` are
9582 defined. This also changes behavior of how drawers of unknown type
9583 are handled. Instead of including all unknown drawers, those are not
9584 read/exported, thereby matching current Emacs behavior.
9585 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
9586 + Respect drawer export setting. The `d` export option can be used
9587 to control which drawers are exported and which are discarded.
9588 Basic support for this option is added here.
9589 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
9590 Also fix up tab handling for leading whitespace in code blocks.
9591 + Support new syntax for export blocks. Org-mode version 9
9592 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
9593 where `<FORMAT>` is the format of the block's content, the new
9594 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
9596 + Refactor `BEGIN...END` block parsing.
9597 + Fix handling of whitespace in blocks, allowing content to be indented
9598 less then the block header.
9599 + Support org-ref style citations. The *org-ref* package is an
9600 org-mode extension commonly used to manage citations in org
9601 documents. Basic support for the `cite:citeKey` and
9602 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
9603 + Split code into separate modules, making for cleaner code and
9606 * Added `docbook5` template.
9608 * `--mathjax` improvements:
9610 + Use new CommonHTML output for MathJax (updated default MathJax URL,
9612 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
9613 This is designed for cases where the input is always TeX and maximal
9614 conformity with TeX is desired. It seems to be smaller and load faster
9615 than what we used before. See #2858.
9616 + Load the full MathJax config to maximize loading speed (KolenCheung).
9618 * Bumped upper version bounds to allow use of latest packages
9619 and compilation with ghc 8.
9621 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
9622 #2310, #2310, #2824). This fixes behavior of roots, e.g.
9623 `\sqrt[3]{x}`, and issues with sub/superscript positioning
9624 and matrix column alignment in docx.
9628 + Clarified documentation of `implicit_header_references` (#2904).
9629 + Improved documentation of `--columns` option.
9631 * Added appveyor setup, with artefacts (Jan Schulz).
9633 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
9635 * LaTeX template: support for custom font families (vladipus).
9636 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
9637 can find some other usages. Example usage in YAML metadata:
9640 - name: \cyrillicfont
9641 font: Liberation Serif
9642 - name: \cyrillicfonttt
9643 options: Scale=MatchLowercase
9646 * Create unsigned msi as build artifact in appveyor build.
9648 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
9652## pandoc 1.17.0.3 (2016-03-24)
9654 * LaTeX writer: Fixed position of label in figures (#2813).
9655 Previously the label wasn't in the right place, and `\ref`
9656 wouldn't work properly.
9657 * Added .tei test files to pandoc.cabal so they'll be included
9659 * Updated copyright dates.
9661## pandoc 1.17.0.2 (2016-03-23)
9663 * Fixed serious regression in `htmlInBalanced`, which caused
9664 newlines to be omitted in some raw HTML blocks in Markdown
9667## pandoc 1.17.0.1 (2016-03-21)
9669 * File scope is no longer used when there are no input files (i.e.,
9670 when input comes from stdin). Previously file scope was triggered
9671 when the `json` reader was specified and input came from `stdin`,
9672 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
9673 thanks to Fedor Sheremetyev for calling the bug to our attention.)
9674 * Improved documentation of templates (#2797).
9676## pandoc 1.17 (2016-03-20)
9678 * Added `--file-scope` option (Jesse Rosenthal).
9679 By default pandoc operates on multiple files by first concatenating
9680 them (around extra line breaks) and then processing the joined file. So
9681 it only parses a multi-file document at the document scope. This has the
9682 benefit that footnotes and links can be in different files, but for
9683 some purposes it is useful to parse the individual files first
9684 and then combine their outputs (e.g. when the files use footnotes
9685 or links with the same labels). The `--file-scope` option causes
9686 pandoc to parse the files first, and then combine the parsed output,
9687 instead of combining before parsing. `--file-scope` is selected
9688 automatically for binary input files (which cannot be concatenated)
9689 and for pandoc json.
9691 * Add TEI Writer (Chris Forster) and `tei` output format.
9693 * Added a general `ByteStringReader` with warnings, used by the docx
9694 reader (API change, Jesse Rosenthal).
9696 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
9698 * Changed type of `Shared.uniqueIdent` argument from
9699 `[String]` to `Set String`. This avoids performance problems in documents
9700 with many identically named headers (API change, #2671).
9702 * Removed `tex_math_single_backslash` from `markdown_github` options
9705 * Make language extensions as well as full language names
9706 trigger syntax highlighting. For example, `py` will now work as
9707 well as `python` (jgm/highlighting-kate#83).
9709 * Added `institute` variable to latex, beamer templates (Fraser
9710 Tweedale, Josef Svenningsson).
9712 * Docx reader (Jesse Rosenthal):
9714 + Handle alternate content. Some word functions (especially graphics)
9715 give various choices for content so there can be backwards compatibility.
9716 + Don't turn numbered headers into lists.
9717 + Docx Reader: Add state to the parser, for warnings
9718 + Update feature checklist in source code.
9719 + Get rid of `Modifiable` typeclass.
9720 + Add tests for adjacent hyperlinks.
9721 + Add a "Link" modifier to `Reducible`. We want to make sure that
9722 links have their spaces removed, and are appropriately smushed
9727 + Fixed behavior of base tag (#2777).
9728 If the base path does not end with slash, the last component
9729 will be replaced. E.g. base = `http://example.com/foo`
9730 combines with `bar.html` to give `http://example.com/bar.html`.
9731 If the href begins with a slash, the whole path of the base
9732 is replaced. E.g. base = `http://example.com/foo/` combines
9733 with `/bar.html` to give `http://example.com/bar.html`.
9734 + Rewrote `htmlInBalanced`. This version avoids an exponential
9735 performance problem with `<script>` tags, and it should be faster
9737 + Properly handle an empty cell in a simple table (#2718).
9738 + Handle multiple `<meta>` tags with same name. Put them in a list
9739 in the metadata so they are all preserved, rather than (as before)
9740 throwing out all but one..
9744 + Improved pipe table parsing (#2765).
9745 + Allow `+` separators in pipe table cells. We already allowed
9746 them in the header, but not in the body rows, for some reason.
9747 This gives compatibility with org-mode tables.
9748 + Don't cross line boundary parsing pipe table row.
9749 Previously an Emph element could be parsed across the newline
9750 at the end of the pipe table row.
9751 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
9752 performance (#2730).
9753 + Fixed bug with smart quotes around tex math.
9757 + Handle interior `$` characters in math (#2743). For example,
9759 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
9760 This gives better results when people write e.g. `\TeX{}` in Markdown.
9761 + Properly handle LaTeX "math" environment as inline math (#2171).
9763 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
9766 * Org reader (Albert Krewinkel):
9768 + Prefix even empty figure names with "fig:" (#2643). The
9769 convention used by pandoc for figures is to mark them by prefixing
9770 the name with `fig:`. The org reader failed to do this if a figure
9772 + Refactor link-target processing (#2684).
9774 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
9775 Thanks to @c-foster.
9777 * HTML writer: Don't include alignment attribute for default table columns.
9778 Previously these were given "left" alignment. Better to leave off
9779 alignment attributes altogether (#2694).
9781 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
9782 better compatibility with other Markdown flavors (Henrik Tramberend).
9786 + Use image identifier to create a label and hypertarget for
9787 figures (Mauro Bieg).
9788 + Avoid double toprule in headerless table with caption (#2742).
9789 + Clean up options parser (Jesse Rosenthal).
9790 + Treat `memoir` template with `article` option as article, instead
9791 of treating all `memoir` templates as books.
9792 + Allow more flexible table alignment (Henrik Tramberend, #2665).
9793 New default is not to include `[c]` option (which is the default
9794 anyway if no positioning is specified). Now LaTeX emplates can
9795 control the overall table alignment in a document by setting the
9796 longtable length variables `LTleft` and `LTright`. For example,
9797 `\setlength\LTleft\parindent\setlength\LTright\fill`
9798 will create left-aligned tables that respect paragraph indentation.
9800 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
9802 * Org writer - pass through RawInline with format "org".
9804 * DokuWiki writer: use `$$` for display math.
9806 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
9808 * Make protocol-relative URIs work again (#2737).
9810 * make_osx_package.sh: Use env variable for developer id certs.
9812 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
9815 * Allow `zip-archive` 0.3.
9817 * Allow `aeson` 0.11.
9819## pandoc 1.16.0.2 (2016-01-12)
9821 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
9823 * Fixed regression in latex smart quote parsing (#2645).
9824 In cases where a match was not found for a quote, everything
9825 from the open quote to the end of the paragraph was being dropped.
9827## pandoc 1.16.0.1 (2016-01-10)
9829 * Fixed regression with `--latex-engine` (#2618). In 1.16
9830 `--latex-engine` raises an error if a full path is given.
9832 * Org reader: Fix function dropping subtrees tagged `:noexport`
9833 (Albert Krewinkel, #2628):
9835 * Markdown reader: renormalize table column widths if they exceed 100%
9838 * Textile reader: don't allow block HTML tags in inline contexts.
9839 The reader previously did allow this, following redcloth,
9840 which happily parses
9842 Html blocks can be <div>inlined</div> as well.
9846 <p>Html blocks can be <div>inlined</div> as well.</p>
9848 This is invalid HTML. The above sample now produces;
9850 <p>Html blocks can be</p>
9856 * Improved default template lookup for custom lua scripts (#2625).
9857 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
9858 pandoc would look for the template in
9859 `~/.pandoc/templates/default./path/to/lua/script.lua`.
9860 With this change it will look in the more reasonable
9861 `~/.pandoc/templates/default.script.lua`. This makes it possible to
9862 store default templates for custom writers.
9864 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
9867 * LaTeX writer: restore old treatment of Span (#2624). A Span is
9868 now rendered with surrounding `{}`, as it was before 1.16.
9870 * Entity handling fixes: improved handling of entities like
9871 `⟨` that require a trailing semicolon. Allow uppercase
9872 `x` in numerical hexidecimal character references, working
9873 around a tagsoup bug.
9875 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
9876 memory use on compile. With aeson 0.10 we were getting an out of
9877 memory error on a 2GB Ubuntu 64-bit VM.
9879 * Improved deb package creation script. Made `DPKGVER` work.
9880 Renamed `COMMIT` to `TREE`. You should now be able to do
9881 `TREE=1.16.0.1 DPKGVER=2 make deb`.
9884## pandoc 1.16 (2016-01-02)
9886 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
9888 + Added syntax for link and image attributes to pandoc's Markdown.
9889 + Updated readers and writers to use link and image attributes
9891 + Support image attributes in Docx, Textile, RST readers.
9893 * Renamed link attribute extensions. The old `link_attributes` is
9894 now `mmd_link_attributes`, and `link_attributes` now enables the
9895 new pandoc-style link and image attributes (API change).
9896 Note: this change could break some existing workflows.
9898 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
9899 Added threefold wrapping option.
9901 + Command line option: deprecated `--no-wrap`, added
9902 `--wrap=[auto|none|preserve]`
9903 + Added `WrapOption`, exported from `Text.Pandoc.Options`
9904 + Changed type of `writerWrapText` in `WriterOptions` from
9905 `Bool` to `WrapOption`.
9906 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
9907 + Supported `SoftBreak` in readers and writers.
9909 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
9910 change, Mauro Bieg).
9912 * Added `--dpi` command-line option (Mauro Bieg).
9914 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
9915 This change makes `--no-tex-ligatures` affect the LaTeX reader
9916 as well as the LaTeX and ConTeXt writers. If it is used,
9917 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
9918 literally, rather than parsing ligatures for quotation marks
9919 and dashes. And the LaTeX writer will print unicode quotation
9920 mark and dash characters literally, rather than converting
9921 them to the standard ASCII ligatures. Note that `--smart` has
9922 no effect on the LaTeX reader. `--smart` is still the default
9923 for all input formats when LaTeX or ConTeXt is the output format,
9924 *unless* `--no-tex-ligatures` is used.
9926 Some examples to illustrate the logic:
9929 % echo "'hi'" | pandoc -t latex
9931 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
9933 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
9935 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
9937 % echo "'hi'" | pandoc -f latex
9941 * Removed deprecated options `--offline` and `--html5`.
9943 * Fixed language code for Czech (`cs` not `cz`) (#2597).
9945 * Implemented `east_asian_line_breaks` extension (#2586).
9946 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
9947 to `Extension` (API change). This extension is like
9948 `ignore_line_breaks`, but smarter -- it only ignores line breaks
9949 between two East Asian wide characters. This makes it better suited
9950 for writing with a mix of East Asian and non-East Asian scripts.
9952 * Added support for PDF creation via `wkhtmltopdf`.
9953 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
9954 if you have math.) Margins can be set using the variables
9955 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
9956 Other styling can be done through CSS.
9958 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
9959 We were capturing final colons as in `[@foo: bar]`; the citation id
9960 was being parsed as `@foo:`.
9964 + Fixed image syntax for local files (#2589).
9965 + Changed type of `writeICML` (Mauro Bieg).
9966 API change: It is now `WriterOptions -> Pandoc -> IO String`.
9967 Also handle new image attributes.
9968 + Intersperse line breaks instead of appending them to
9969 every `ParagraphStyleRange` (Mauro Bieg, #2501).
9970 + Add `Cite` style to citations (Mauro Bieg).
9971 + Added figure handling (#2590, Mauro Bieg).
9972 + Better handling of math. Instead of just printing the raw tex,
9973 we now try to fake it with unicode characters.
9975 * HTML writer: Include `example` class for example lists (#2524).
9977 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
9979 + Support for percentage widths/heights
9980 + Use `Attr` instead of title to get dimensions from ODT walker
9981 to `writeOpenDocument`.
9985 + Support anchors in spans and divs with id elements
9986 (jgm/pandoc-citeproc#143).
9987 + Fixed code blocks (#1861).
9989 * Haddock writer: omit formatting inside links, which isn't supported
9992 * MediaWiki writer: Fixed spacing issues in table cells.
9994 + Start cell on new line unless it's a single Para or Plain
9996 + For single Para or Plain, insert a space after the `|` to
9997 avoid problems when the text begins with a character like
10000 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
10004 + Add support for GAP highlighting using listings (Raniere Silva).
10005 + Consider `header-includes` content as well as templates
10006 when determining whether to use csquotes (Andreas Lööw).
10007 + Create defaults for geometry using `margin-left` etc.
10008 If `geometry` has no value, but `margin-left`, `margin-right`,
10009 `margin-top`, and/or `-margin-bottom` are given, a default value
10010 for `geometry` is created from these. Note that these variables
10011 already affect PDF production via HTML5 with `wkhtmltopdf`.
10013 * ConTeXt writer: set default layout based on `margin-left`, etc.
10014 This sets up `\setuplayout` based on the variables `margin-left`,
10015 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
10018 * Docx writer: better handling of PDF images. Previously we tried
10019 to get the image size from the image even if an explicit size was
10020 specified. Since we still can't get image size for PDFs, this made
10021 it impossible to use PDF images in docx. Now we don't try to get
10022 the image size when a size is already explicitly specified.
10024 * Markdown writer: use raw HTML for link/image attributes when
10025 the `link_attributes` extension is unset and `raw_html` is set (#2554).
10027 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
10031 + Improved smart quote parsing (#2555). This fixes redering of
10033 + Use curly quotes for unmatched ` (#2555).
10034 + Allow blank space between braced arguments of commands (#2592).
10038 + Improved pipe table relative widths. Previously pipe table
10039 columns got relative widths (based on the header underscore lines)
10040 when the source of one of the rows was greater in width than the
10041 column width. This gave bad results in some cases where much of
10042 the width of the row was due to nonprinting material (e.g. link
10043 URLs). Now pandoc only looks at printable width (the width of a
10044 plain string version of the source), which should give better results.
10045 Thanks to John Muccigrosso for bringing up the issue.
10046 + Fixed parsing bug with macros. Previously macro definitions in
10047 indented code blocks were being parsed as macro definitions, not code.
10049 * Textile reader: skip over attribute in image source (#2515).
10050 We don't have a place yet for styles or sizes on images, but
10051 we can skip the attributes rather than incorrectly taking them
10052 to be part of the filename.
10054 * Docx reader: Handle dummy list items (Jesse Rosenthal).
10055 These come up when people create a list item and then delete the
10056 bullet. It doesn't refer to any real list item, and we used to ignore
10059 * CommonMark reader/writer rewritten to use latest `cmark`.
10061 * Fixed Emoji character definitions (#2523). There were many bugs in the
10064 * `Text.Pandoc.CSS`:
10066 + Added `pickStylesToKVs` function to extract multiple properties at
10067 once (API change, Mauro Bieg).
10068 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
10070 * `trypandoc`: sort drop-down lists.
10074 + Made `\euro` conditional on presence of character.
10075 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
10076 + Moved `header-includes` before setting of title (Thomas Hodgson),
10077 to match the LaTeX template (jgm/pandoc-templates#168).
10078 + Added `section-titles` variable (defaults to true)
10079 to enable/suppress section title pages in beamer
10080 slide shows (Thomas Hodgson).
10081 + Moved beamer themes after fonts, so that themes can
10082 change fonts. (Previously the fonts set were being
10083 clobbered by lmodern.sty.) (Thomas Hodgson).
10085 * Beamer/LaTeX template changes (Thomas Hodgson):
10086 + Added `thanks` variable
10087 + Use `parskip.sty` when `indent` isn't set (fall back to using
10088 `setlength` as before if `parskip.sty` isn't available).
10089 + Use `biblio-style` with biblatex.
10090 + Added `biblatexoptions` variable.
10092 * LaTeX template changes:
10094 + Added `paper` after `$papersize$` variable in latex template.
10095 Thus you can say `papersize: a4` and the latex will contain
10096 `a4paper`. This change may break some existing workflows; if
10097 you currently specify `a4paper`, you'll get `a4paperpaper` which
10098 is meaningless. However, the change seems worth it, as it will
10099 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
10100 and html->pdf via wkhtmltopdf.
10101 + Only pass options to color package if `colorlinks` is set
10103 + Make definition of `\euro` conditional in xelatex/lualatex,
10104 as it is already for pdflatex (Andrew Dunning).
10105 + Removed setting of `subject` in PDF metadata.
10106 This used to be set to the subtitle, but really the subtitle
10107 need not give the subject. Also, `subtitle` can contain formatting,
10108 so we'd need, at least, a plain text version for this.
10109 + Moved `header-includes` before setting of `\title`, `\author`,
10110 etc. This allows these macros to be redefined.
10111 + Use `\subtitle` command for `subtitle`, instead of tacking it
10112 on to the title as before. We give a no-op fallback definition if it
10113 is not defined. This change should produce much better results
10114 in classes that support `\subtitle`. With the default article
10115 class, which does not define `\subtitle`, subtitles will no
10116 longer be printed unless the user defines `\subtitle` and
10117 redefines `\maketitle`.
10118 + Moved redefinitions of `\paragraph` and `\subparagraph` to
10119 before header-includes.
10121 * Context template:
10123 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
10124 needed for things to work on ConTeXt stable from TeXLive 2015.
10125 + Revert use of `\setuphead` in title block (Andrew Dunning,
10128 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
10130 * Fixed man template so disabling hyphenation actually works.
10131 The command needs to come after .TH.
10133 * Added 'navigation' variable to beamer template (#2543).
10134 Valid values are `empty` (the default), `horizontal`, `vertical`,
10135 and `frame`. Note that this changes the default behavior from
10136 `horizontal` to `empty`. Closes #2543.
10138 * Added `toc` to HTML slide format templates (Andrew Dunning),
10139 so that `--toc` creates a contents slide.
10141 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
10143 * Allow pipe tables with no body rows (#2556).
10144 Previously this raised a runtime error.
10146 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
10147 as URL. The Haskell URI parsing routines will accept "C:" as a
10148 scheme, so we rule that out manually. This helps with
10149 `--self-contained` and absolute Windows paths.
10151 * Define a `meta-json` variable for all writers (#2019). This contains
10152 a JSON version of all the metadata, in the format selected for the
10153 writer. So, for example, to get just the YAML metadata, you can run
10154 pandoc with the following custom template: `$meta-json$`. The intent
10155 is to make it easier for static site generators and other tools to get
10158 * Document limitations of --self-contained (#2553).
10160 * Improved Citations section of README (#2551). Added information
10161 about `link-citations` and a link to the pandoc-citeproc man page.
10163 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
10166 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
10168 * Improved implicit pandoc-citeproc inclusion.
10169 The filter pandoc-citeproc is automatically used when
10170 `--bibliography` is specified on the command line, unless
10171 `--natbib` or `--biblatex` is used. However, previously this
10172 only worked if `--bibliography` was spelled out in full, and not
10173 if `--biblio` was used.
10175 * reveal.js: Interpret pauses correctly for all headers (#2530).
10176 Previously, when using headers below the slide level, pauses are left
10177 uninterpreted into pauses. In my opinion, unexpected behavior but
10178 intentional looking at the code.
10180 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
10182 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
10185 * ImageSize: Added functions for converting between image dimensions
10188 * Use lts-3.18 in stack.yaml. This avoids Windows build
10189 issues with the HTTP library.
10191 * Bump version bounds for dependencies.
10193## pandoc 1.15.2.1 (2015-11-16)
10195 * Added two missing test files, and `stack.yaml`, to
10196 `extra-source-files` so they're included in the source tarball.
10198 * reveal.js template: Fixed parallaxBackground options.
10199 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
10200 need integer values, not strings. (Vaughn Iverson)
10202## pandoc 1.15.2 (2015-11-15)
10204 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
10205 ConTeXt rather than LaTeX (#2463).
10207 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
10209 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
10210 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
10213 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
10214 parsing (#2469). Tightened up the inline HTML parser so it disallows
10217 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
10221 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
10222 Paragraphs can be followed by lists, even if there is no blank line
10223 between the two blocks. However, this should only be true if the
10224 paragraph is not within a list, were the preceding block should be
10225 parsed as a plain instead of paragraph (to allow for compact lists).
10226 Thanks to @rgaiacs for bringing this up.
10227 + Allow toggling header args (Albert Krewinkel, #2269).
10228 Org-mode allows to skip the argument of a code block header argument if
10229 it's toggling a value. Argument-less headers are now recognized,
10230 avoiding weird parsing errors.
10231 + Fix markup parsing in headers (Albert Krewinkel, #2504).
10232 Markup as the very first item in a header wasn't recognized. This was
10233 caused by an incorrect parser state: positions at which inline markup
10234 can start need to be marked explicitly by changing the parser state.
10235 This wasn't done for headers. The proper function to update the state
10236 is now called at the beginning of the header parser, fixing this issue.
10237 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
10238 Smart quotes, ellipses, and dashes should behave like normal quotes,
10239 single dashes, and dots with respect to text markup parsing.
10240 + Require whitespace around definition list markers (#2518).
10241 This rule was not checked before, resulting in bugs with footnotes
10242 and some link types.
10246 + Pipe tables with long lines now get relative cell widths (#2471).
10247 If a pipe table contains a line longer than the column width (as set by
10248 `--columns` or 80 by default), relative widths are computed based on the
10249 widths of the separator lines relative to the column width. This should
10250 solve persistent problems with long pipe tables in LaTeX/PDF output, and
10251 give more flexibility for determining relative column widths in other
10252 formats, too. For narrower pipe tables, column widths of 0 are used,
10253 telling pandoc not to specify widths explicitly in output formats that
10255 + Improved parser for `mmd_title_block`. We now allow blank metadata
10256 fields. These were explicitly disallowed before.
10257 + Citation keys can now contain `://`, so URLs and DOIs can be used
10258 as citation keys (jgm/pandoc-citeproc#166).
10260 * Beamer template: fix incompatibility of section slides with natbib.
10261 Natbib (and presumably biblatex) bibliography commands create
10262 their own section. Since these are in frame environments,
10263 we have an incompatibility with the `\AtBeginSection` macro
10264 which creates a special frame when a new section occurs.
10265 (We can't have a frame inside another frame.) This change disables
10266 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
10267 bringing the problem to my attention. This supersedes #145. See
10270 * Textile reader: don't do smart punctuation unless explicitly asked
10271 (#2480). Note that although smart punctuation is part of the textile
10272 spec, it's not always wanted when converting from textile
10273 to, say, Markdown. So it seems better to make this an option.
10275 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
10276 The `comment` environment is handled in a similar way to the
10277 `verbatim` environment, except that its content is discarded.
10279 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
10280 Jesse Rosenthal). This fixes a problem with links in notes.
10282 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
10283 (mb21). For LaTeX, also collect `lang` and `dir` attributes on spans and
10284 divs to set the `lang`, `otherlangs` and `dir` variables if they aren’t set
10289 + Use proper command for `\textarabic` (mb21).
10290 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
10291 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
10292 to link to Div or Span elements. We now don't bother defining `\label`
10293 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
10294 + Avoid footnotes in list of figures (#1506).
10295 + Properly handle footnotes in captions (#1506).
10296 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
10297 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
10298 `toccolor` is set (#2508).
10300 * Textile writer: support start number in ordered lists (#2465).
10302 * OpenDocument writer: Allow customization of opendocument
10303 automatic styles. Automatic styles can now be inserted in the
10304 template, which now provides the enclosing `<office:automatic-styles>`
10307 * Docx writer: insert space between footnote reference and note (#2527).
10308 This matches Word's default behavior.
10310 * EPUB writer: don't download linked media when `data-external` attribute
10311 set (#2473). By default pandoc downloads all linked media and includes it
10312 in the EPUB container. This can be disabled by setting `data-external` on
10313 the tags linking to media that should not be downloaded. Example:
10315 <audio controls="1">
10316 <source src="http://www.sixbarsjail.it/tmp/bach_toccata.mp3"
10317 type="audio/mpeg"></source>
10320 * HTML writer: use width on whole table if col widths sum to < 100%.
10321 Otherwise some browsers display the table with the columns
10322 separated far apart.
10324 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
10325 `abstract` (Andrew Dunning).
10327 * HTML-based templates (Andrew Dunning):
10329 + Use en dash instead of hyphen between title prefix and title.
10330 + Add `keywords` to metadata.
10331 + Add `lang`, `dir`, `quotes` where missing.
10332 + Always make author and date display conditional.
10333 + Updated dzslides template from source.
10335 * Man template: make "generated by" comment conditional.
10337 * LaTeX, Beamer templates:
10339 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
10340 filled by commands that make babel understand the polyglossia-style
10341 language directives (mb21, #137).
10342 + Improved formatting of conditionals; `$for$` is always provided to allow
10343 multiple options (Andrew Dunning, #141).
10344 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
10345 to improve support for LuaTeX (Andrew Dunning, #135).
10346 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
10347 - use same options for all LaTeX engines;
10348 - add `subtitle` and `keywords` to PDF metadata;
10349 - do not override `hyperref` link coloring without user input, effectively making
10350 the `hidelinks` option the default (removed as a separate variable);
10351 - link colors can be enabled (using a slightly darker version of the old
10352 defaults) using a new `colorlinks` variable, automatically used by
10353 the LaTeX writer when custom colors are specified;
10354 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
10355 `colorlinks`, and is only applied if `colorlinks` is disabled.
10357 * ConTeXt template (Andrew Dunning):
10359 + New variables for controlling styles: `linkstyle`, `linkcolor`,
10360 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
10361 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
10362 `monofont`, `mathfont`, `fontsize`.
10363 + Default template no longer supports MkII.
10364 + Improve writing of title block (suppressing numbering of first page).
10365 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
10366 + Support `subtitle`, `abstract`.
10367 + Support list of figures (`lof`), list of tables (`lot`).
10368 + Disable link styling by default.
10369 + Define styles for all section types.
10370 + Enable microtype.
10371 + Improved formatting of conditionals.
10373 * Beamer template: added code to prevent slide breaks inside paragraphs
10374 (#2422, thanks to Nick Bart). This will matter, in practice, only when
10375 `allowframebreaks` is used. It is especially helpful for bibliography
10378 * OpenDocument template: Add `<office:automatic-styles>` tag around
10379 automatic styles. The writer now longer provides this (see #2520).
10381 * Restored Text.Pandoc.Compat.Monoid.
10383 * Do not export (<>) from custom Prelude. The Prelude now matches
10384 base 4.8 Prelude's API.
10386 * Don't use custom prelude with ghc 7.10. Use the custom prelude
10387 only for earlier versions. This change makes `stack ghci` and
10388 `cabal repl` work (#2503), at least with ghc 7.10.
10390 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
10391 This prevents problems building haddocks with "C" locale.
10393 * Change default for old-locale flag to False.
10395 * Use stack in deb, osx, and Windows package generators.
10397 * Added Vagrantfile for building deb in vm.
10398 This should help in automating binary package creation. 'make package'
10399 will make the package. 'make package COMMIT=blah' will make the package
10404 + Consistent capitalization for pandoc and Markdown.
10405 + Fixed `auto_identifiers` examples (Benoit Schweblin).
10406 + Improved documentation of template variables (Andrew Dunning).
10408## pandoc 1.15.1 (2015-10-15)
10410 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
10411 and reexported from `Text.Pandoc` (Alex Vong). This allows
10412 writers to access it. (Alex Vong) (API change)
10414 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
10415 `subscripts` (#2401).
10417 * Added `odt` as input format (MarLinn). Added new module
10418 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
10419 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
10420 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
10421 Partly implemented features: Citations, Tables.
10425 + Add basic tests for each header style (Ophir Lifshitz).
10426 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
10427 + Skip spaces in headers (Ophir Lifshitz).
10428 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
10429 `# Header {id="myid" class="foo bar"}`
10430 is now equivalent to `# Header {#myid .foo .bar}`.
10431 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
10432 (Kristof Bastiaensen)
10433 + Pipe tables: allow indented columns. Previously the left-hand column
10434 could not start with 4 or more spaces indent. This was inconvenient
10435 for right-aligned left columns. Note that the first (header column)
10436 must still have 3 or fewer spaces indentation, or the table will be
10437 treated as an indented code block.
10438 + Fix regression: allow HTML comments containing `--`.
10439 Technically this isn't allowed in an HTML comment, but
10440 we've always allowed it, and so do most other implementations.
10441 It is handy if e.g. you want to put command line arguments
10446 + Don't eat excess whitespace after macros with only optional
10448 + Support longtable (#2411).
10449 + Implement `\Cite` (#2335).
10450 + Support abstract environment. The abstract populates an
10451 `abstract` metadata field.
10452 + Properly handle booktabs lines. Lines aren't part of the
10453 pandoc table model, so we just ignore them (#2307).
10457 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
10458 + Updated for new automatic header attributes.
10459 + Add auto identifiers if not present on headers. This makes
10460 TOC linking work properly.
10461 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
10462 + Test `<ol>` type, class, and inline list-style(-type) CSS
10464 + Better handling of "section" elements (#2438). Previously
10465 `<section>` tags were just parsed as raw HTML blocks. With
10466 this change, section elements are parsed as Div elements with
10467 the class "section".
10469 * MediaWiki reader: handle unquoted table attributes (#2355).
10473 + Added proper support for DocBook `xref` elements (Frerich Raabe).
10474 Added `dbContent` field to reader state, so we can lookup
10476 + Handle `informalexample` (#2319).
10480 + Create special punctuation test (Ophir Lifshitz).
10481 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
10482 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
10483 in `headers.docx` with pandoc's current `styles.xml`, which
10484 contains styles for Heading 1 through 6. Added Heading 4
10485 through 7 to the test document. Note that Heading 7 is not
10486 parsed as a Heading because there is no Heading 7 style.
10488 * RST reader: better handling of indirect roles.
10489 Previously the parser failed on this kind of case
10491 .. role:: indirect(code)
10493 .. role:: py(indirect)
10498 Now it correctly recognizes `:py:` as a code role.
10502 + Add auto identifiers if not present on headers
10503 (#2354, Juliusz Gonera).
10504 + Allow verse blocks to contain empty lines (#2402,
10507 * EPUB reader: stop mangling external URLs (#2284).
10511 + Don't insert `\ ` when complex expression in matched pairs.
10512 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
10513 + Ensure that `\ ` is inserted when needed before Cite and Span
10514 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
10515 + Normalize headers only in "standalone" mode (#2394).
10517 * Haddock writer: escape `*` and `^` (G. Bataille).
10521 + In TOC, add links to headers (#829).
10522 + Use unicode super/subscripts for digits in plain output
10523 (when the `superscripts` and `subscripts` extensions are
10528 + Moved invalid character stripping to `formattedString`.
10529 This avoids an inefficient generic traversal (#2356).
10530 + Use user data directory for `reference.docx` archive.
10531 This allows the test suite to work without installing pandoc first.
10532 It also brings the docx writer in line with the odt writer.
10533 + Tests: docx writer tests now use `../data` for data directory.
10534 This allows tests to be run without installing first.
10535 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
10539 + Fixed detection of 'chapters' from template.
10540 If a documentclass isn't specified in metadata, but the
10541 template has a hardwired bookish documentclass, act as if
10542 `--chapters` was used. This was the default in earlier
10543 versions, but it has been broken for a little while.
10544 + Correctly recognize book documentclass in metadata (#2395).
10545 + Set language-related variables automatically, depending
10546 on the value of the `lang` field, which is now always
10547 assumed to be in BCP47 format (mb21, #1614, #2437).
10548 + Add `\protect` to `\hyperdef` in inline context. This way we
10549 don't get an error when this is used as a moveable argument (#2136).
10550 + Support all frame attributes in Beamer.
10551 + Percent-encode more special characters in URLs (#1640, #2377).
10552 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
10556 + Update KaTeX JS and CSS versions (Emily Eisenberg).
10557 + For dzslides, add `role="note"` for speaker notes (#1693).
10558 + Percent-encode more special characters in URLs (#1640, #2377).
10559 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
10560 + Render Div with class `section` as `<section>` in HTML5.
10564 + In TOC, replace literal `<br/>` with space (#2105).
10565 + With `--webtex`, include image file rather than `data:` URI (#2363).
10567 * Native writer: format Div properly, with blocks separated.
10569 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
10574 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
10575 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
10579 + Beamer: Add `innertheme`, `outertheme` variables
10580 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
10581 Integrate recent font and language updates from LaTeX template;
10582 allow use of `mainfont` variable for changing the slide text
10583 in XeTeX and LuaTeX (Andrew Dunning, #131).
10584 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
10585 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
10586 (Andrew Dunning, #122). Support handling of bidirectional
10587 text (mb21, #120). Improve reliability of superscripts/subscripts
10588 under XeTeX and prevent letters and numbers from appearing on a
10589 different baseline by removing use of the `realscripts` package
10590 (via `xltxtra`). To restore use of OpenType characters for these
10591 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
10592 `header-includes` (Andrew Dunning, #130). Remove redundant
10593 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
10594 `indent`, `subparagraph` variables (Andrew Dunning).
10595 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
10596 #113). Prevent package clash with `tufte-latex` and other classes that
10597 include `hyperref` or `color` (Xavier Olive, #115).
10598 + ConTeXt: Support handling of bidirectional text (mb21, #120).
10599 + LaTeX and ConTeXt: Use more specific language variables.
10600 Instead of directly using `lang`, we now use `babel-lang` and
10601 `polyglossia-lang` and `context-lang`. These variables are set by
10602 the writers to the necessary values, based on the `lang` variable
10603 (which now always takes a value in BCP47 format). (mb21, #114, #129).
10604 + HTML: Support handling of bidirectional text (mb21, #120).
10605 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
10606 Add dir attribute in html5 (Andrew Dunning).
10607 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
10608 Add `width`, `height` variables (Anrew Dunning). Update template
10609 from 3.1 source (Andrew Dunning). All configuration options are now
10610 available as variables, but are only be included if set (reveal.js
10611 uses defaults otherwise).
10612 + man: Added comment stating that the page is autogenerated by pandoc,
10613 giving version. Added `adjusting` and `hyphenate` variables
10616 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
10618 * MediaBag: ensure that `/` is always used as path separator.
10620 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
10622 * Added `--bash-completion` option. This generates a bash completion
10623 script. To use: `eval "$(pandoc --bash-completion)"`.
10625 * Text.Pandoc.Error: Define Typeable and Exception instances
10626 for PandocError (#2386).
10628 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
10629 This makes keys with extra space at the beginning and end
10636 will now be a link to bar (it wasn't before).
10638 * Text.Pandoc: disable `auto_identifiers` for epub.
10639 The epub writer inserts its own auto identifiers;
10640 this is more complex due to splitting into "chapter" files.
10642 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
10643 It now reexports Data.Time.
10645 * Use custom Prelude to avoid compiler warnings.
10647 + The (non-exported) prelude is in prelude/Prelude.hs.
10648 + It exports Monoid and Applicative, like base 4.8 prelude,
10649 but works with older base versions.
10650 + It exports (<>) for mappend.
10651 + It hides 'catch' on older base versions.
10653 * Added a `stack.ymal` and stack install instructions to INSTALL.
10655 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
10657 * Added note to CONTRIBUTING.md about ghc versions and travis.
10659 * Clarify docs on block quotes. The space after `>` is optional (#2346).
10661 * Removed obsolete reference to default.csl (#2372).
10663 * List all styles in manual for `--reference-docx` (Chris Black)
10665 * Don't capitalize header links in man page.
10667 * Added section on repl to CONTRIBUTING.md.
10669 * README: Added space after backslash in image example (#2329).
10671 * Document details of citation locator terms (Nick Bart).
10673 * Fixed some internal links in README (#2309).
10675 * Improve CSL documentation, variables documentations,
10676 links, and cross-references in README. (Andrew Dunning)
10678 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
10680 * Use `newManager` instead of `withManager` in recent `http-client`.
10681 This avoids a deprecation warning.
10683 * Allow building with latest versions of http-types,
10684 HUnit, criterion, syb, aeson.
10686 * Updated benchmark program for new criterion API.
10688 * Setup.hs: rewrite so as not to use process, directory, filepath.
10689 Using anything outside base is dangerous, since older
10690 versions of ghc may link against two different versions.
10692 * Added appveyor (Windows continuous integration) builds.
10694 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
10695 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
10696 `make .travis.yml` regenerates it based on the tested-with
10697 field of the cabal file.
10699## pandoc 1.15.0.6 (2015-07-15)
10701 * `--self-contained`: Fixed overaggressive CSS minimization
10702 (#2301, 2286). Previously `--self-contained` wiped out all
10703 spaces in CSS, including semantically significant spaces.
10704 This was a regression from 1.14.x.
10706 * Markdown reader: don't allow bare URI links or autolinks in link
10707 label (#2300). Added test cases.
10709 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
10710 Previously we disallowed `-` at the end of an autolink,
10711 and disallowed the combination `=-`. This commit liberalizes the
10712 rules for allowing punctuation in a bare URI, and adds test cases.
10713 One potential drawback is that you can no longer put a bare
10714 URI in em dashes like this:
10715 `this uri---http://example.com---is an example.`
10716 But in this respect we now match github's treatment of bare URIs.
10718 * HTML writer: support speaker notes in dzslides.
10719 With this change `<div class="notes">` and also `<div class="notes"
10720 role="note">` will be output if `-t dzslides` is used. So we can
10721 have speaker notes in dzslides too. Thanks to maybegeek.
10723 * Updated dzslides template.
10725 * Improved documentation of options to print system default files (#2298).
10726 `--print-default-data-file` and `--print-default-template`.
10728 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
10729 (Tiziano Müller). MathJax seems currently to be the only maintained
10730 math rendering extension for DokuWiki.
10732 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
10733 div as top-level header (#2294). This fixes a bug with `--section-divs`,
10734 where the final references section added by pandoc-citeproc, enclosed in
10735 its own div, got nested in the div for the section previous to it.
10737 * Allow vector 0.11.
10739 * Require cmark > 0.4.
10741## pandoc 1.15.0.5 (2015-07-10)
10743 * HTML writer: Fixed email javascript obfuscation with `mailto:`
10744 URLs (#2280). This fixes a potential security issue. Because
10745 single quotes weren't being escaped in the link portion, a
10746 specially crafted email address could allow javascript code injection.
10748 * RST reader: allow inline formatting in definition list field
10749 names (Lars-Dominik Braun).
10751 * PDF: Make sure `--latex-engine-opt` goes before the filename
10752 on the command line. LaTeX needs the argument to come after
10753 the options (#1779).
10755 * CommonMark writer: fixed tags used for super/subscript.
10757 * ConTeXt template: activate hanging indent for definition lists
10760 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
10761 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
10762 to include `hsb2hs` in Build-Tools in cabal.
10764 * Improved Windows installer (thanks to nkalvi).
10766 + When per-machine installation is chosen, the system path
10767 is updated instead of the user's.
10768 + An appropriate default is used for per-machine installation
10770 + Admin privileges are no longer required for a per-user install
10772 * Travis: unpack sdist for build to catch packaging bugs.
10774 * Improved documentation on where user templates go (#2272).
10776## pandoc 1.15.0.4 (2015-07-03)
10778 * Added pandoc.1 man page to the repository. It is no longer
10779 built as part of the cabal build process. (This proved too
10780 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
10781 when `README` is changed.
10783 * Copying of the man page now respects `--destdir` (#2262).
10785 * Improved error messages for filters. User is now informed if
10786 the filter requires an interpreter that isn't found in the path,
10787 or if the filter returns an error status.
10789## pandoc 1.15.0.3 (2015-07-02)
10791 * Ensure target directory is created when installing man page.
10793## pandoc 1.15.0.2 (2015-07-02)
10795 * Added files needed for building man page to Extra-Source-Files.
10797## pandoc 1.15.0.1 (2015-07-01)
10799 * Man page is now built and installed as part of the cabal build
10800 process. Removed Makefile target for man page.
10802## pandoc 1.15 (2015-07-01)
10804 * Man page changes:
10806 + Removed `--man1`, `--man5` options (breaking change).
10807 + Removed `Text.Pandoc.ManPages` module (breaking API change).
10808 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
10809 create the man page from README using a custom template and filters.
10810 + Added `man/` directory with template and filters needed to build
10812 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
10813 Now there is just pandoc.1, which has all the content from README.
10814 This change was needed because of the extensive cross-references
10815 between parts of the README.
10816 + Removed old `data/pandoc.1.template` and
10817 `data/pandoc_markdown.5.template`.
10819 * OpenDocument writer: Do not add a carriage return after a hard
10820 line break (Michael Chladek).
10824 + use `\goto` for internal links.
10825 + Added a `%` at end for `\reference` to avoid spurious space.
10827 * Ignore sandbox on 'make quick'
10829## pandoc 1.14.1 (2015-06-30)
10831 * Added `--man1` and `--man5` options to pandoc, allowing
10832 pandoc to generate its own man pages. Man pages are no longer
10833 automatically generated in the build process (the process for
10834 this was too complex and prone to failure, #2190). The
10835 `make-pandoc-man-pages` executable has been removed. The
10836 `man/` directory has been removed, and man page templates
10837 have been moved to `data/`. NOTE TO PACKAGERS: You will no
10838 longer find pandoc's man pages in `man/`, but you can
10839 generate them using `pandoc --man1 > pandoc.1` and `pandoc
10840 --man5 > pandoc_markdown.5`.
10842 * Added new unexported module: `Text.Pandoc.ManPages`.
10844 * `README` now acts like a data file (even though it isn't in
10845 `data/`). So, for example, `pandoc --print-default-data-file README`
10846 will produce the README.) This change was required for the `--man1`
10847 and `--man5` options, since the man pages are produced from the
10848 README, but it may be useful for other purposes as well.
10850 * Allow `reference.docx` and `reference.odt` to be used with
10851 `--print-default-data-file` and to shadow defaults if placed in
10852 the user data directory. Note that as of 1.14, we no longer
10853 include these files as data files; instead, we include their
10854 components. This change causes pandoc to behave as if it has
10855 these data files; they are constructed on demand when needed
10856 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
10858 * Fixed regression in CSS parsing with `--self-contained` (#2224).
10859 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
10860 silently drops big sections of CSS. This commit replaces the
10861 use of css-text with a small but principled CSS preprocessor,
10862 which removes whitespace and comments and replaces `url()` with
10863 base 64 data when possible.
10865 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
10866 This will allow math to work when pages are being viewed locally.
10868 * `Text.Pandoc.Options`: Export `plainExtensions`.
10869 These are the extensions used in `plain` output.
10871 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
10872 math mode; treat them as regular inline text. Normally these will
10873 cause an error in LaTeX, but there are contexts (e.g. `alltt`
10874 environments) where they are allowed.
10876 * HTML reader: allow `<body>` to close `<head>`.
10878 * DocBook reader: support `mediaobject`s and `figures` (#2184, mb21).
10880 * RST reader: Fix reference names with special characters
10881 (Lars-Dominik Braun).
10883 * Textile writer: escape `+` and `-` as entities (#2225).
10885 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
10887 * Plain writer: don't use symbols for super/subscript (#2237).
10888 Simplified code by using `plainExtensions`.
10890 * InDesign writer: Properly escape URLs containing more than one
10891 colon character (gohai).
10893 * Docx writer: Make sure we use dist version of `reference.docx`
10894 (and not the user's version) for certain settings. Taking some
10895 settings values from a user-supplied reference.docx can lead to
10896 corruption. This fixes a regression from the last release (#2249).
10898 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
10899 `getDefaultReferenceODT` (API change). These functions have been
10900 removed from the Docx and ODT writers.
10902 * LaTeX template (Xavier Olive):
10903 + Added `CJKmainfont` and `CJKoptions` variables.
10904 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
10906 * Epub templates: use `author.role`, not `author.type`.
10908 * Bump cmark version to >= 0.3.4.
10910 * Improved Windows installer (#2205, thanks to nkalvi).
10911 Users can now select a per-user or systemwide install, and can set
10912 the installation path. At the end of installation, the install location
10913 is given. The install location is also now given in the list of
10914 installed programs in Control Panel. Cleaner WiX syntax is used for
10917 * Added `download_stats` target to Makefile.
10919## pandoc 1.14.0.4 (2015-06-02)
10921 * Added missing commonmark template.
10923 * Improved try pandoc (moved button, show raw command).
10925## pandoc 1.14.0.3 (2015-06-01)
10927 * Allow compilation with syb 0.5.*.
10929 * Custom writer: fixed some compiler warnings for ghc < 7.10.
10931## pandoc 1.14.0.2 (2015-05-31)
10933 * Allow building with hslua 0.4.
10935## pandoc 1.14.0.1 (2015-05-28)
10937 * Fixed problem with building of `reference.docx` and `reference.odt`
10938 when the `embed_data_files` flag is used. Instead of having a phase
10939 of the build where `reference.docx` and `reference.odt` are created
10940 from their constituent data files, we now construct these archives
10941 from their constituents when a `docx` or `odt` is built. The
10942 constituent files have been moved from `extra-source-files` to
10943 `data-files`, and `reference.docx` and `reference.odt` have been
10944 removed. Users can create their own `reference.docx` or
10945 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
10946 `make-reference-files.hs` has been removed, simplifying the build
10949 * Don't include generated man pages in extra-source-files (#2189).
10951 * Bumped upper bound for aeson.
10953 * ConTeXt writer: create internal link anchors for Div elements with
10954 identifiers. (This is needed for linked citations to work.)
10956## pandoc 1.14 (2015-05-27)
10960 * Added `commonmark` as input and output format.
10962 * Added `--verbose` flag for debugging output in PDF production (#1840,
10965 * Allow wildcards in `--epub-embed-font` arguments (#1939).
10967 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
10969 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
10970 This is enabled by default for those markdown flavors that
10971 support reading shortcut reference links, namely: `markdown`,
10972 `markdown_strict`, `markdown_github`, `markdown_php`.
10973 If the extension is enabled, the reader parses shortcut reference
10974 links like `[foo]`, and the writer creates such links unless doing
10975 so would cause problems. Users of markdown flavors that support
10976 shortcut reference links should not notice a difference in reading
10977 markdown, but the markdown pandoc produces may differ.
10978 If shortcut links are not desired, the extension can be disabled
10981### Behavior changes
10983 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
10984 A "dirty" TOC is created at the beginning of document.
10985 It can be regenerated after the document has been opened.
10987 * An implicit `--filter pandoc-citeproc` is now triggered only when the
10988 `--bibliography` option is used, and not when the `bibliography`
10989 field in metadata is specified (#1849).
10993 + Reference links with `implicit_header_references` are no longer
10994 case-sensitive (#1606).
10995 + Definition lists no longer require indentation for first line (#2087).
10996 Previously the body of the definition (after the `:` or `~` marker)
10997 needed to be in column 4. This commit relaxes that requirement,
10998 to better match the behavior of PHP Markdown Extra. So, now
10999 this is a valid definition list:
11003 + Resolve a potentially ambiguity with table captions:
11013 Is "bar" a definition, or the caption for the table? We'll count
11014 it as a caption for the table.
11015 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
11016 Markdown Extra. Note: If you have been using headerless pipe tables,
11017 this change may cause existing tables to break.
11018 + Allow pipe tables with header but no body (#2017).
11019 + Allow a digit as first character of a citation key (Matthias Troffaes).
11020 See https://github.com/jgm/pandoc-citeproc/issues/97
11024 + Don't limit includes to `.tex` extension (#1882).
11025 If the extension is not `.tex`, it must be given explicitly in
11026 the `\input` or `\include`.
11030 + Allow numbering in the style file. This allows inherited styles
11031 with numbering (lists) (Jesse Rosenthal).
11035 + Support smart punctuation (Craig Bosma).
11036 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
11037 `:noexport:` tag set are not exported. This mirrors org-mode.
11038 + Put header tags into empty spans (Albert Krewinkel, #2160).
11039 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
11040 Instead of being interpreted as part of the headline, the tags are now
11041 put into the attributes of empty spans. Spans without textual content
11042 won't be visible by default, but they are detectable by filters. They
11043 can also be styled using CSS when written as HTML.
11044 + Generalize code block result parsing (Albert Krewinkel).
11045 Previously, only code blocks were recognized as result blocks;
11046 now, any kind of block can be the result.
11048 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
11049 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
11053 + Add "inline" or "display" class to math spans (#1914).
11054 This allows inline and display math to be styled differently.
11055 + Include raw latex blocks if `--mathjax` specified (#1938).
11056 + Require highlighting-kate >= 0.5.14 (#1903).
11057 This ensures that all code blocks will be wrapped in a `div`
11058 with class `sourceCode`. Also, the default highlighting CSS
11059 now adds `div.sourceCode { x-overflow: auto; }`, which means
11060 that code blocks (even with line numbers) will acquire a scroll
11061 bar on screens too small to display them (e.g. mobile phones).
11062 See also jgm/highlighting-kate#65.
11066 + Use a declaration for tight lists (Jose Luis Duran, Joseph
11067 Harriott). Previously, pandoc hard-coded some commands to make
11068 tight lists in LaTeX. Now we use a custom command instead,
11069 allowing the styling to be changed in a macro in the header.
11070 (Note: existing templates may need to be modified to include
11071 the definition of this macro. See the current template.)
11072 + Beamer output: if the header introducing a slide has the
11073 class `fragile`, add the `[fragile]` option to the slide (#2119).
11075 * MediaWiki writer:
11077 + Use `File:` instead of the deprecated `Image:` for images and
11078 other media files (Greg Rundlett).
11082 + Render a `Div (id,_,_) [Para _]` element as a `para` element
11083 with an `id` attribute. This makes links to citations work in
11084 DocBook with pandoc-citeproc.
11088 + Normalize headings to sequential levels (Nikolay Yakimov).
11089 This is pretty much required by docutils.
11090 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
11091 + Better handling of raw latex inline (#1961). We use
11092 `` :raw-latex:`...` `` and add a definition for this role to
11097 + Remove `linear=no` from cover `itemref` (#1609).
11098 + Don't use `sup` element for epub footnotes (#1995).
11099 Instead, just use an a element with class `footnoteRef`.
11100 This allows more styling options, and provides better results
11101 in some readers (e.g. iBooks, where anything inside the a
11102 tag breaks popup footnotes).
11103 + Take TOC title from `toc-title` metadata field.
11107 + Implemented `FirstParagraph` style (Jesse Rosenthal).
11108 Following the ODT writer, we add the `FirstParagraph` style to the
11109 first text paragraph following an image, blockquote, table, heading,
11110 or beginning of document. This allows it to be styled differently.
11111 The default is for it to be the same as `Normal`.
11112 + Added `BodyText` style (Jesse Rosenthal).
11113 We apply a `BodyText` style to all unstyled paragraphs. This is,
11114 essentially, the same as `Normal`, except that since not everything
11115 inherits from `BodyText` (the metadata won't, for example, or
11116 the headers or footnote numbers), we can change the text in the body
11117 without having to make exceptions for everything. If we do want to
11118 change *everything*, we can still do it through `Normal`.
11119 + Altered `Blockquote` style slightly (Jesse Rosenthal).
11120 Since `BlockQuote` derives from `BodyText`, we just want to specify
11121 by default that it won't indent, regardless of what `BodyText` does.
11122 Note that this will not produce any visible difference in the default
11124 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
11125 + Added a style to figure images (Nikolay Yakimov).
11126 Figures with empty captions use style `Figure`.
11127 Figures with nonempty captions use style `Figure with Caption`, which
11128 is based on `Figure`, and additionally has `keepNext` set.
11132 + Added figure captions (Nikolay Yakimov). The following styles are
11134 `Figure` -- for figure with empty caption),
11135 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
11136 `FigureCaption` (based on `Caption`) -- for figure captions.
11137 Also, `TableCaption` (based on `Caption`) is used for table captions.
11141 * New `Text.Pandoc.Error` module with `PandocError` type
11142 (Matthew Pickering).
11144 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
11145 (Matthew Pickering). This allows better handling of errors.
11147 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
11149 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
11151 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
11152 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
11153 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
11156 * New `Ext_shortcut_reference_links` constructor for `Extension`
11157 (Konstantin Zudov).
11163 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
11164 + Check for tex macros after indented code (#1973).
11165 + Rewrote `charsInBalancedBrackets` for efficiency.
11166 + Make sure a closing `</div>` doesn't get included in a
11167 definition list item (#2127).
11168 + Don't parse bracketed text as citation if it might be a link,
11169 image, or footnote (Nikolay Yakimov).
11170 + Require space after key in mmd title block (#2026, Nikolay
11171 Yakimov). Require space after key-value delimiter colon in mmd title
11173 + Require nonempty value in mmd title block (Nikolay Yakimov).
11174 + Disable all metadata block extensions when parsing
11175 metadata field values (#2026, Nikolay Yakimov). Otherwise we
11176 could get a mmd title block inside YAML metadata, for example.
11180 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
11181 + Handle tables with `<th>` in body rows (#1859, mb21).
11182 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
11183 to see if the input starts with `<!--`. If not, it's bogus comment
11184 mode and we fail `htmlTag`.
11185 + Handle `base` tag; if it has an `href` value, this is added to
11186 all relative URLs in links and images.
11190 + Look inside "info" elements for section titles (#1931).
11194 + Parse images in deprecated vml format (Jesse Rosenthal).
11195 + Allow sub/superscript verbatims (Jesse Rosenthal).
11196 Verbatim usually shuts off all other run styles, but we don't want it
11197 to shut off sub/superscript.
11201 + Handle `tabular*` environment (#1850).
11202 Note that the table width is not actually parsed or taken into
11203 account, but pandoc no longer chokes on it.
11204 + Ignore options in `\lstinline` rather than raising error (#1997).
11205 + Add some test cases for simple tables (Mathias Schenner).
11206 + Handle valign argument in tables (Mathias Schenner) (currently
11207 we just ignore this).
11208 + Allow non-empty colsep in tables (Mathias Schenner).
11209 The `tabular` environment allows non-empty column separators
11210 with the "@{...}" syntax. Previously, pandoc would fail to
11211 parse tables if a non-empty colsep was present. With this
11212 commit, these separators are still ignored, but the table gets
11213 parsed. A test case is included.
11214 + Recognize `\newpage` as a block command.
11215 + Allow block content in `\title{}` (#2001).
11216 + Check for block-level newcommand aliases in blockCommand (Nikolay
11218 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
11219 + Properly gobble spaces after `\\` (#2007).
11223 + Handle newlines in table cells, and empty cells (#1919).
11227 + Allow image links with non-image targets (Hans-Peter Deifel).
11228 This matches behavior of Org-Mode for links like
11229 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
11233 + Don't print empty id attributes (thanks to Steve Horne).
11237 + Fixed list-style-type for numbered example lists.
11238 Should be "decimal," not "example" (#1902).
11239 + Do not omit missing `alt` attribute on `img` tag (#1131,
11241 + Allow multiple colgroups in table (#2122).
11242 + In revealjs, ensure that lists in speaker notes don't add "fragment"
11243 classes, which can cause additional keypresses to be needed to
11244 advance a slide (#1394).
11248 + Don't escape `$` in URL (#1913).
11249 + Don't use listings in headers (Matthew Pickering, #1963).
11250 + Recognize book documentclass if set in metadata (#1971).
11251 This sets `--chapters` implicitly if the documentclass in metadata
11252 is a book documentclass. Previously this was done only if a book
11253 documentclass was set in a variable.
11254 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
11255 + Make `mainlang` work when `lang` is in metadata (#2174).
11259 + Fix wrapping by using breakable spaces (Tim Lin).
11263 + Fixed toc depth in RST writer. Previously the depth was being
11264 rendered as a floating point number with a decimal point.
11268 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
11269 compatibility with original Markdown. We now escape `<` and `>`
11270 with entities. Also, we now backslash-escape square brackets.
11271 + Avoid introducing spurious list items through wrapping (#1946).
11272 + Don't emit span tags if plain or raw HTML disabled.
11274 * MediaWiki writer:
11276 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
11280 + Insert some needed blank lines (#1860).
11281 + Avoid wrapping after list marker (#1858).
11285 + Properly handle internal links to IDs in spans, divs (#1884).
11286 + Use plain writer for metadata dc: fields (#2121).
11287 This gives better results when we have, e.g. multiple paragraphs.
11288 Note that tags aren't allowed in these fields.
11289 + Properly handle image links without an extension (#1855).
11290 + Improved chapter splitting and internal link rewriting (#1887,
11291 #2162, #2163). This will ensure that internal links work and
11292 that the references section produced by pandoc-citeproc is
11293 in its own chapter.
11294 + Fixed handling of svg images (#2183).
11298 + Better handling of raw blocks and inlines (#1951).
11299 Previously these were always escaped and printed verbatim.
11300 Now they are ignored unless the format is `icml`, in which
11301 case they are passed through unescaped.
11302 + Fixed image URIs in ICML output (gohai).
11306 + Raise error if loadstring returns an error status.
11307 + Raise `PandocLuaException` instead of using 'error'.
11308 Eventually we'll change the return type so that no exception
11309 is involved, but at least this can be trapped.
11310 + Use UTF-8 aware bytestring conversion.
11311 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
11312 Also factored out ByteString, since it's only used as an intermediate
11317 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
11318 + Filter out illegal XML characters (#1992, Matthew Pickering).
11319 + Added `noProof` to docx syntax highlighting `SourceCode` style.
11320 + Added footnotes id -1 and 0 (Jesse Rosenthal).
11321 Word uses, by default, footnotes with id -1 and 0 for separators. If a
11322 user modifies `reference.docx`, they will end up with a `settings.xml`
11323 file that references these footnotes, but no such footnotes in the
11324 document. This will produce a corruption error. Here we add these to the
11325 document and `settings.xml` file, so future modifications won't break
11327 + Handle lists correctly inside table cells (Jesse Rosenthal).
11328 Previously we didn't transform lists inside table cells.
11329 + Set firstRow information in tables (Nikolay Yakimov).
11330 + Don't replace `SourceCode` style in `reference.docx` if it is defined
11331 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
11332 any `SourceCode` and `*Tok` styles in `reference.docx`.
11333 + Attempt to match international style names (#1607, Nikolay Yakimov).
11334 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
11335 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
11336 `Definition`, `First Paragraph`.
11337 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
11338 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
11339 `Footnote Ref -> Footnote Reference`.
11340 + Added `Caption` style (Nikolay Yakimov).
11341 + Changed these styles' inheritance (Nikolay Yakimov):
11342 `Image Caption <- Caption`, `Table Caption <- Caption`.
11343 + Remove `SourceCode` style from `reference.docx` (#1872).
11344 This is added automatically by the docx writer.
11345 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
11347 * `Text.Pandoc.PDF`
11349 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
11350 + More comprehensible errors on image conversion (#2067).
11351 EPS can't be supported without shelling out to something like
11352 ImageMagick, but at least we can avoid mysterious error messages.
11354 * `Text.Pandoc.Shared`:
11356 + Make safeRead safe (#1801, Matthew Pickering).
11357 + Addded `mapLeft`, `hush` (Matthew Pickering).
11359 * `Text.Pandoc.Pretty`:
11361 + Remove partial function (Matthew Pickering).
11363 * `Text.Pandoc.SelfContained`:
11365 + Add `;charset=utf-8` to script mime type if missing (#1842).
11366 + Improved building of data URIs (#1940). Now base64 is used except
11367 for `text/*` mime types.
11368 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
11369 + Properly handle data URIs in css urls (#2129).
11370 Use a proper CSS parser (adds dependency on `text-css`).
11372 * `Text.Pandoc.UTF8`:
11374 + Better handling of bare CRs in input files (#2132).
11375 Previously we just stripped them out; now we convert
11376 other line ending styles to LF line endings.
11378 * `Text.Pandoc.ImageSize`:
11380 + Fixed some exif header parsing bugs (#1834).
11381 + Make imageSize return an Either, not a Maybe (#1834).
11382 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
11383 parse failure (rather than `error`).
11384 + Improved warnings when image size can't be determined.
11385 + Removed error landmines (Matthew Pickering).
11387 * Added woff2 to MIME types (Alfred Wechselberger).
11389 * pandoc: When a binary input format is used, warn that file
11390 arguments past the first one are being ignored (Matthew Pickering).
11392### Template changes
11396 + Degrade gracefully if `\paragraph` not defined.
11397 + Include `grffile` together with `graphicx` (#2074).
11398 This properly handles filenames containing spaces and dots.
11399 + Redefine `\paragraph`, `\subparagraph`... to behave more
11400 like section headers (#1658).
11401 + Import hyperref before polyglossia to avoid an error with xelatex,
11402 "please load package hyperref before bidi package" (Nick Bart).
11403 + Added `toccolor` variable to control link color in toc (Kaixhin).
11405 * LaTeX, Beamer templates:
11407 + Provide `\tightlist`, which is now used by the LaTeX writer.
11408 + Use polyglossia in beamer (#85).
11409 + Use `bibliography` instead of `biblio-files`
11410 (#1661). Also use `\addbibresource` instead of `\bibliography` for
11412 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
11413 variable that is derived from a comma-separated list in `lang`;
11414 the last language is `mainlang` and the others are `otherlang`.
11418 + Use `div`, not `p`, for "rights" on title page.
11419 + Added header-includes, include-before, include-after (#1987).
11421 * OpenDocument template:
11423 + Use `text:p` instead of `text:h` for title.
11424 Using `text:h` causes problems with numbering. Closes #2059.
11425 Thansk to @nkalvi for diagnosing this.
11427 * reveal.js template:
11429 + Link to non-minified css, js. The minified versions no longer
11430 ship with the library.
11431 + Correctly include style CSS (#1949).
11432 + New configurable options options: `center`, `maxScale`, `slideNuber`
11433 (Dmitry Smirnov, pandoc-templates#89).
11434 + Moved custom CSS after theme. This allows custom CSS to modify
11435 themes, instead of being replaced by them.
11436 + Allow `center` to be set to false.
11438### Under the hood improvements
11440 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
11441 Yakimov). Instead the repository now includes the component text files,
11442 and the zipped binaries are built from these using a helper
11443 program, `make-reference-files`. This should make maintenance of
11444 these components easier going forward.
11446 * `Text.Pandoc.Parsing`:
11448 + Added new `<+?>` combinator (Nikolay Yakimov).
11449 + Added `stateHeaderKeys` to `ParserState`.
11451 * `make_deb.sh` fixes:
11453 + Detect architecture.
11454 + Add Installed-Size to debian package control file (#1900).
11455 + Use `fakeroot` to get permissions right.
11456 + Use `mkdir` and `cp` instead of `install`.
11457 + Set permissions of directories to 755.
11458 + Install in `/usr` rather than `/usr/local`.
11459 + Compress man pages.
11460 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
11462 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
11463 to assist with transition to `time` 1.5.
11465 * Updated CONTRIBUTING.md with information about issue tags (Matthew
11468 * Updated travis installs to the new sudo-less syntax (Tim Lin).
11470 * Updated dependency version bounds.
11472 * EPUB tests: don't use `joinPath`, which varies across platforms.
11473 Instead, use a forward-slash to join paths, regardless of the
11474 platform. This matches the way `MediaBag` now works.
11476 * Clarify JSON input and output in usage message (Caleb McDaniel).
11478 * Improved INSTALL instructions.
11480 * Always build man pages. Removed make-pandoc-man-pages flag.
11482 * Makefile: removed man target, now that we generate man pages by default.
11486 + Fixed typos (J. Lewis Muir).
11487 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
11488 + Added note on in-field markup in biblio databases (Nick Bart).
11489 + Fixed misleading example of raw HTML block.
11490 + Various minor formatting and consistency fixes for the program
11491 options (Andreas Lööw).
11492 + Made definition lists for options all "loose" for consistency.
11493 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
11494 `--bib2json` and `--bib2yaml` options (Nick Bart).
11495 + Removed obsolete reference to `mods2yaml` (Nick Bart).
11496 + Added section on syntax highlighting.
11497 + Documented `toccolor` variable.
11499## pandoc 1.13.2.1 (2015-04-15)
11501 * Updated to build with ghc 7.10.1.
11503 * Bumped package upper bounds for filepath, blaze-html, blaze-markup.
11505## pandoc 1.13.2 (2014-12-20)
11507 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
11511 + Better handling of paragraph in div (#1591).
11512 Previously text that ended a div would be parsed as Plain
11513 unless there was a blank line before the closing div tag.
11514 + Don't treat a citation as a reference link label (#1763).
11515 + Fix autolinks with following punctuation (#1811).
11516 The price of this is that autolinked bare URIs can no longer
11517 contain `>` characters, but this is not a big issue.
11518 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
11519 + Allow `startnum` to work without `fancy_lists`. Formerly
11520 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
11522 * RST reader (all Daniel Bergey):
11524 + Parse quoted literal blocks (#65). RST quoted literal blocks are
11525 the same as indented literal blocks (which pandoc already supports)
11526 except that the quote character is preserved in each line.
11527 + Parse RST class directives. The class directive accepts one or more
11528 class names, and creates a Div value with those classes. If the
11529 directive has an indented body, the body is parsed as the children of
11530 the Div. If not, the first block following the directive is made a
11531 child of the Div. This differs from the behavior of rst2xml, which
11532 does not create a Div element. Instead, the specified classes are
11533 applied to each child of the directive. However, most Pandoc Block
11534 constructors to not take an Attr argument, so we can't duplicate this
11536 + Warn about skipped directives.
11537 + Literal role now produces Code. Code role should have "code" class.
11538 + Improved support for custom roles
11540 - Added `sourceCode` to classes for `:code:` role, and anything
11541 inheriting from it.
11542 - Add the name of the custom role to classes if the Inline
11543 constructor supports Attr.
11544 - If the custom role directive does not specify a parent role,
11545 inherit from the `:span:` role.
11547 This differs somewhat from the `rst2xml.py` behavior. If a custom
11548 role inherits from another custom role, Pandoc will attach both
11549 roles' names as classes. `rst2xml.py` will only use the class of
11550 the directly invoked role (though in the case of inheriting from a
11551 `:code:` role with a `:language:` defined, it will also provide the
11552 inherited language as a class).
11553 + Warn about ignored fields in role directives.
11557 + Parse label after caption into a span instead of
11558 inserting an additional paragraph of bracketed text (#1747).
11559 + Parse math environments as inline when possible (#1821).
11560 + Better handling of `\noindent` and `\greektext` (#1783).
11561 + Handle `\texorpdfstring` more gracefully.
11562 + Handle `\cref` and `\sep` (Wikiwide).
11563 + Support `\smartcite` and `\Smartcite` from biblatex.
11567 + Retain display type of MathML output (#1719, Matthew Pickering).
11568 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
11569 + Make `embed` tag either block or inline (#1756).
11573 + Handle `keycombo`, `keycap` (#1815).
11574 + Get string content in inner tags for literal elements (#1816).
11575 + Handle `menuchoice` elements better, with a `>` between (#1817).
11576 + Include `id` on section headers (#1818).
11577 + Document/test "type" as implemented (Brian O'Sullivan).
11578 + Add support for calloutlist and callout (Brian O'Sullivan).
11579 We treat a calloutlist as a bulleted list. This works well in practice.
11580 + Add support for `classname` (Bryan O'Sullivan).
11584 + Fix window path for image lookup (Jesse Rosenthal).
11585 Don't use os-sensitive "combine", since we always want the paths in our
11586 zip-archive to use forward-slashes.
11587 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
11588 When users number their headers, Word understands that as a single item
11589 enumerated list. We make the assumption that such a list is, in fact,
11591 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
11592 There could be new top-level headers after making lists, so we have to
11593 rewrite links after that.
11594 + Use polyglot header list (Jesse Rosenthal).
11595 We're just keeping a list of header formats that different languages
11596 use as their default styles. At the moment, we have English, German,
11597 Danish, and French. We can continue to add to this.
11598 This is simpler than parsing the styles file, and perhaps less
11599 error-prone, since there seems to be some variations, even within a
11600 language, of how a style file will define headers.
11601 + Remove header class properly in other langs (Jesse Rosenthal).
11602 When we encounter one of the polyglot header styles, we want to remove
11603 that from the par styles after we convert to a header. To do that, we
11604 have to keep track of the style name, and remove it appropriately.
11605 + Account for external link URLs with anchors. Previously, if a URL
11606 had an anchor, the reader would incorrectly identify it as an
11607 internal link and return only the anchor as URL. (Caleb McDaniel)
11608 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
11612 + Added state changing blanklines (Jesse Rosenthal).
11613 This allows us to emphasize at the beginning of a new paragraph (or, in
11614 general, after blank lines).
11615 + Fixed bug with bulleted lists:
11621 was being parsed as a list, even though an unindented `*`
11622 should make a heading. See
11623 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
11624 + Org reader: absolute, relative paths in link (#1741, Albert
11625 Krewinkel). The org reader was too restrictive when parsing links;
11626 some relative links and links to files given as absolute paths
11627 were not recognized correctly.
11628 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
11629 This is important for use in gitit, which uses empty links
11631 + Respect indent when parsing Org bullet lists (#1650, Timothy
11632 Humphries). Fixes issue with top-level bullet list parsing.
11633 + Fix indent issue for definition lists (Timothy Humphries,
11634 see #1650, #1698, #1680).
11635 + Parse multi-inline terms correctly in definition list (#1649,
11636 Matthew Pickering).
11637 + Fix rules for emphasis recognition (Albert Krewinkel).
11638 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
11639 strings. This is wrong, as `,` and `'` are forbidden border chars and
11640 may not occur on the inner border of emphasized text.
11641 + Drop COMMENT document trees (Albert Krewinkel).
11642 Document trees under a header starting with the word `COMMENT` are
11643 comment trees and should not be exported. Those trees are dropped
11645 + Properly handle links to `file:target` (Albert Krewinkel).
11646 Org links like `[[file:target][title]]` were not handled correctly,
11647 parsing the link target verbatim. The org reader is changed such that
11648 the leading `file:` is dropped from the link target (see #756, #1812).
11649 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
11650 Org supports special symbols which can be included using LaTeX syntax,
11651 but are actually MathML entities. Examples for this are
11652 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
11653 or `\copy` (the copyright sign ©)
11657 + URI handling improvements. Now we outsource most of the work to
11658 `fetchItem'`. Also, do not include queries in file extensions (#1671).
11662 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
11663 + Handle consecutive linebreaks (#1733).
11664 + Protect graphics in headers (Jesse Rosenthal).
11665 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
11666 + Put `~` before header in list item text (Jesse Rosenthal).
11667 Because of the built-in line skip, LaTeX can't handle a section header
11668 as the first element in a list item.
11669 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
11670 + Better handling of display math in simple tables (#1754).
11671 We convert display math to inline math in simple tables,
11672 since LaTeX can't deal with display math in simple tables.
11673 + Escape spaces in code (#1694, Bjorn Buckwalter).
11675 * MediaWiki writer:
11677 + Fixed links with URL = text. Previously these were rendered as bare
11678 words, even if the URL was not an absolute URL (#1825).
11682 + Don't force all citations into footnotes.
11686 + Add blankline at end of output (#1732, Matthew Pickering).
11690 + Ensure blank line after figure.
11691 + Avoid exces whitespace after last list item (#1777).
11692 + Wrap line blocks with spaces before continuations (#1656).
11693 + Fixed double-rendering of footnotes in RST tables (#1769).
11697 + Better handling of block quotes. This change ensures that
11698 multiple paragraph blockquotes are rendered using native `>`
11699 rather than as HTML (#1738).
11700 + Fix external images (#1739). Preface relative links with ":",
11701 absolute URIs without. (Timothy Humphries)
11705 + Use protocol-relative URL for mathjax.
11706 + Put newline btw img and caption paragraph.
11707 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
11708 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
11709 This adds `KaTeX` to `HTMLMathMethod` (API change).
11710 + Don't double render when `email-obfuscation=none` (#1625, Matthew
11712 + Make header attributes work outside top level (#1711).
11713 Previously they only appeared on top level header elements.
11714 Now they work e.g. in blockquotes.
11718 + Correctly handle images without extensions (#1729).
11719 + Strip querystring in ODT write (#1682, Todd Sifleet).
11723 + Add newline to output.
11727 + Don't add `sourceURL` to absolute URIs (#1669).
11728 + Don't use unsupported `opf:title-type` for epub2.
11729 + Include "landmarks" section in nav document for epub3 (#1757).
11730 + Removed playOrder from navpoint elements in ncx file (#1760).
11731 These aren't required, and they make manual modification of epubs
11733 + Extract title even from structured title.
11734 + Don't include nav node in spine unless `--toc` was requested.
11735 Previously we included it in the spine with `linear="no"`, leading
11736 to odd results in some readers (#1593).
11737 + Fixed absolute URI detection (#1672).
11738 + Correctly resolve relative URIs (#1671).
11739 + Use regular page template for `nav.xhtml`, including doctype (#1759).
11743 + Put docx table captions above tables (#1641, Nikolay Yakimov).
11744 + Get the page width from the reference docx file, and use
11745 it to scale images that are too large to fit (Grégory Bataille).
11746 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
11747 are inferred based on `<w:name val="heading #">` fallback, if there
11748 are no en-US "Heading#" styles
11749 + Look in user data dir for archive `reference.docx`.
11750 + Renumber header and footer relationships to avoid collisions (Jesse
11751 Rosenthal). We previously took the old relationship names of the
11752 headers and footer in secptr. That led to collisions. We now make
11753 a map of availabl names in the relationships file, and then rename
11758 + Add function toLabel (Mark Szepieniec).
11759 This function can be used to sanitize reference labels so that
11760 they do not contain any of the illegal characters \#[]",{}%()|= .
11761 Currently only Links have their labels sanitized, because they
11762 are the only Elements that use passed labels.
11764 * `Text.Pandoc.Shared`:
11766 + Moved import of `toChunks` outside of CPP conditional (#1590).
11767 + Fix `inDirectory` to reset to the original directory in case
11768 an exception occurs (Freiric Barral).
11772 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
11773 Thanks to bluebirch.
11774 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
11776 + LaTeX template: Add shorthands=off to babel options (#1648).
11777 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
11778 This aids styling, making it possible for example to set 0 margins
11779 on the title page (#1758).
11780 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
11781 Previously we just expected 'title', 'subtitle', 'author', 'date'.
11782 Now we still support those, but also support the format recommended
11783 for epub metadata in the pandoc README:
11790 text: An investigation of metadata
11798 text: doi:10.234234.234/33
11799 publisher: My Press
11800 rights: (c) 2007 John Smith, CC BY-NC
11803 * `Text.Pandoc.Templates.getDefaultTemplate`:
11804 don't fail when called with "fb2" (#1660).
11806 * `Text.Pandoc.Parsing`:
11808 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
11809 For example: `$x = \text{the $n$th root of $y$}` (#1677).
11810 + Change `parseFromString` to fail if not all input is consumed.
11811 (Matthew Pickering)
11812 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
11813 used by more readers (API change, Daniel Bergey).
11815 * `Text.Pandoc.Pretty`:
11817 + Improve performance of `realLength` (Matthew Pickering).
11818 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
11819 were getting at the end of markdown fragments (as well as rst, org,
11822 * `Text.Pandoc.MIME`:
11824 + Add mime type for WebVTT (Jason Ronallo).
11825 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
11826 This is needed for epub3 validation.
11828 * `Text.Pandoc.MediaBag`:
11830 + Fix Windows specific path problems (#1597).
11832 * `Text.Pandoc.Shared`:
11834 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
11836 * Link the test suite using `-threaded`.
11837 This allows the test suite to be run using `+RTS -N`.
11839 * Added `network` dependency under `network-uri` flag in test section.
11841 * Give better error messages when someone tries to convert from
11842 pdf, doc, odt (#1683).
11844 * Added `track` to list of tags treated by `--self-contained` (#1664).
11847## pandoc 1.13.1 (2014-08-30)
11849 * Fixed `--self-contained` with Windows paths (#1558).
11850 Previously `C:\foo.js` was being wrongly interpreted as a URI.
11852 * HTML reader: improved handling of tags that can be block or inline.
11853 Previously a section like this would be enclosed in a paragraph,
11854 with RawInline for the video tags (since video is a tag that can
11855 be either block or inline):
11857 <video controls="controls">
11858 <source src="../videos/test.mp4" type="video/mp4" />
11859 <source src="../videos/test.webm" type="video/webm" />
11861 The videos can not be played back on your system.<br/>
11862 Try viewing on Youtube (requires Internet connection):
11863 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
11868 This change will cause the video and source tags to be parsed
11869 as RawBlock instead, giving better output.
11870 The general change is this: when we're parsing a "plain" sequence
11871 of inlines, we don't parse anything that COULD be a block-level tag.
11875 + Be sensitive to user styles. Note that "Hyperlink" is
11876 "blacklisted," as we don't want the default underline styling to be
11877 inherited by all links by default (Jesse Rosenthal).
11878 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
11879 This makes to docx reader's native output fit with the way the markdown
11880 reader understands its markdown output.
11884 + Header is now parsed only if standalone flag is set (Matthew Pickering).
11885 + The header is now parsed as meta information. The first line is the
11886 `title`, the second is the `author` and third line is the `date`
11887 (Matthew Pickering).
11888 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
11889 + Fixed crash when reading from stdin.
11891 * Textile writer: Extended the range of cases where native textile
11892 tables will be used (as opposed to raw HTML): we now handle any
11893 alignment type, but only for simple tables with no captions.
11895 * EPUB writer: Don't use page-progression-direction in EPUB2, which
11896 doesn't support it. Also, if page-progression-direction not specified
11897 in metadata, don't include the attribute even in EPUB3; not including it
11898 is the same as including it with the value "default", as we did before.
11901 * Org writer: Accept example lines with indentation at the beginning
11906 + Refactor to use Reader monad (Matthew Pickering).
11907 + Avoid using raw HTML in table cells; instead, use `\\`
11908 instead of newlines (Jesse Rosenthal).
11909 + Properly handle HTML table cell alignments, and use spacing
11910 to make the tables look prettier (#1566).
11914 + Bibliography entries get `Bibliography` style (#1559).
11915 + Implement change tracking (Jesse Rosenthal).
11919 + Fixed a bug that caused a table caption to repeat across all pages
11921 + Improved vertical spacing in tables and made it customizable using
11922 standard lengths set by booktab. See
11923 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
11925 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
11926 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
11927 + Made horizontal rules more flexible (Jose Luis Duran).
11929 * Text.Pandoc.MIME:
11931 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
11932 Code cleanups (Artyom Kazak).
11936 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
11939 * Improved OSX build procedure.
11941 * Added `network-uri` flag, to deal with split of `network-uri` from
11944 * Fix build dependencies for the `trypandoc` flag, so that they are
11945 ignored if `trypandoc` flag is set to False (Gabor Pali).
11947 * Updated README to remove outdated claim that `--self-contained`
11948 looks in the user data directory for missing files.
11950## pandoc 1.13.0.1 (2014-08-17)
11954 + Fixed regression which bungled list numbering (#1544), causing
11955 all lists to appear as basic ordered lists.
11956 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
11957 Added a property to all table rows where the sum of column widths
11958 is specified in pct (fraction of 5000). This helps persuade Word
11959 to lay out the table with the widths we specify.
11961 * Fixed a bug in Windows 8 which caused pandoc not to find the
11962 `pandoc-citeproc` filter (#1542).
11964 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
11965 Most significantly, the reader now uses Builder, leading to some
11966 performance improvements.
11968 * HTML reader: Parse appropriately styled span as SmallCaps.
11970 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
11971 `superscript`, and `subscript` extensions, respectively, are
11972 deactivated (#1127).
11974 * Added `trypandoc` flag to build CGI executable used in the online
11977 * Makefile: Added 'quick', 'osxpkg' targets.
11979 * Updated README in templates to indicate templates license.
11980 The templates are dual-licensed, BSD3 and GPL2+.
11982## pandoc 1.13 (15 August 2014)
11986 * Added `docx` as an input format (Jesse Rosenthal). The docx
11987 reader includes conversion of native Word equations to pandoc
11988 LaTeX `Math` elements. Metadata is taken from paragraphs at the
11989 beginning of the document with styles `Author`, `Title`, `Subtitle`,
11990 `Date`, and `Abstract`.
11992 * Added `epub` as an input format (Matthew Pickering). The epub
11993 reader includes conversion of MathML to pandoc LaTeX `Math`
11996 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
11997 Txt2tags is a lightweight markup format described at
11998 <http://txt2tags.org/>.
12000 * Added `dokuwiki` as an output format (Clare Macrae).
12002 * Added `haddock` as an output format.
12004 * Added `--extract-media` option to extract media contained in a zip
12005 container (docx or epub) while adjusting image paths to point to the
12008 * Added a new markdown extension, `compact_definition_lists`, that
12009 restores the syntax for definition lists of pandoc 1.12.x, allowing
12010 tight definition lists with no blank space between items, and
12011 disallowing lazy wrapping. (See below under behavior changes.)
12013 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
12015 * Added extensions `native_spans` and `native_divs` to activate
12016 parsing of material in HTML span or div tags as Pandoc Span
12017 inlines or Div blocks.
12019 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
12020 Textile, and MediaWiki readers. This is an option intended
12021 for debugging parsing problems; ordinary users should not need
12024### Behavior changes
12026 * Changed behavior of the `markdown_attribute` extension, to bring
12027 it in line with PHP markdown extra and multimarkdown. Setting
12028 `markdown="1"` on an outer tag affects all contained tags,
12029 recursively, until it is reversed with `markdown="0"` (#1378).
12031 * Revised markdown definition list syntax (#1429). Both the reader
12032 and writer are affected. This change brings pandoc's definition list
12033 syntax into alignment with that used in PHP markdown extra and
12034 multimarkdown (with the exception that pandoc is more flexible about
12035 the definition markers, allowing tildes as well as colons). Lazily
12036 wrapped definitions are now allowed. Blank space is required
12037 between list items. The space before a definition is used to determine
12038 whether it is a paragraph or a "plain" element. **WARNING: This change
12039 may break existing documents!** Either check your documents for
12040 definition lists without blank space between items, or use
12041 `markdown+compact_definition_lists` for the old behavior.
12043 * `.numberLines` now works in fenced code blocks even if no language
12044 is given (#1287, jgm/highlighting-kate#40).
12046 * Improvements to `--filter`:
12048 + Don't search PATH for a filter with an explicit path.
12049 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
12050 the system path, even if there was a `caps.py` in the working directory.
12051 + Respect shebang if filter is executable (#1389).
12052 + Don't print misleading error message.
12053 Previously pandoc would say that a filter was not found,
12054 even in a case where the filter had a syntax error.
12058 + Parse `div` and `span` elements even without `--parse-raw`,
12059 provided `native_divs` and `native_spans` extensions are set.
12060 Motivation: these now generate native pandoc Div and Span
12061 elements, not raw HTML.
12062 + Parse EPUB-specific elements if the `epub_html_exts`
12063 extension is enabled. These include `switch`, `footnote`,
12064 `rearnote`, `noteref`.
12068 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
12069 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
12070 `\cite{Coffee}`), can be used without any further escaping (Albert
12073 * Textile reader and writer:
12075 + The `raw_tex` extension is no longer set by default. You can
12076 enable it with `textile+raw_tex`.
12080 + Support `equation`, `informalequation`, `inlineequation` elements with
12081 `mml:math` content. This is converted into LaTeX and put into a Pandoc
12084 * Revised `plain` output, largely following the style of Project
12087 + Emphasis is rendered with `_underscores_`, strong emphasis
12089 + Headings are rendered differently, with space to set them off,
12090 not with setext style underlines. Level 1 headers are ALL CAPS.
12091 + Math is rendered using unicode when possible, but without the
12092 distracting emphasis markers around variables.
12093 + Footnotes use a regular `[n]` style.
12097 + Horizontal rules are now a line across the whole page.
12098 + Prettier pipe tables. Columns are now aligned (#1323).
12099 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
12100 no longer emits any raw HTML, including span and div tags
12101 generated by Span and Div elements.
12102 + Use span with style for `SmallCaps` (#1360).
12106 + Autolinks now have class `uri`, and email autolinks have class
12107 `email`, so they can be styled.
12111 + Document formatting is carried over from `reference.docx`.
12112 This includes margins, page size, page orientation, header,
12113 and footer, including images in headers and footers.
12114 + Include abstract (if present) with `Abstract` style (#1451).
12115 + Include subtitle (if present) with `Subtitle` style, rather
12116 than tacking it on to the title (#1451).
12120 + Write empty span elements with an id attribute as org anchors.
12121 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
12125 + Put table captions above tables, to match the conventional
12126 standard. (Previously they appeared below tables.)
12127 + Use `\(..\)` instead of `$..$` for inline math (#1464).
12128 + Use `\nolinkurl` in email autolinks. This allows them to be styled
12129 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
12130 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
12131 curly quotes in the PDF output (#1364).
12132 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
12133 do not appear before the overlays in which their markers appear
12135 + Don't produce a `\label{..}` for a Div or Span element. Do produce
12136 a `\hyperdef{..}` (#1519).
12140 + If the metadata includes `page-progression-direction` (which can be
12141 `ltr` or `rtl`, the `page-progression-direction` attribute will
12142 be set in the EPUB spine (#1455).
12144 * Custom lua writers:
12146 + Custom writers now work with `--template`.
12147 + Removed HTML header scaffolding from `sample.lua`.
12148 + Made citation information available in lua writers.
12150 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
12151 adjacent `RawBlock`s when possible.
12155 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
12157 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
12160 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
12163 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
12166 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
12168 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
12169 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
12170 readers return a pair of a `Pandoc` document and a `MediaBag` with
12171 the media resources they contain. This can be extracted using
12172 `--extract-media`. Writers that incorporate media (PDF, Docx,
12173 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
12174 for resources in the `MediaBag` generated by the reader, in addition to
12175 the file system or web.
12177 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
12178 Renamed `readTeXMath'` to `texMathToInlines`.
12180 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
12181 `readers` now associates names of readers with `Reader`
12182 structures. This allows inclusion of readers, like the docx
12183 reader, that take binary rather than textual input.
12185 * `Text.Pandoc.Shared`:
12187 + Added `capitalize` (Artyom Kazak), and replaced uses of
12188 `map toUpper` (which give bad results for many languages).
12189 + Added `collapseFilePath`, which removes intermediate `.` and
12190 `..` from a path (Matthew Pickering).
12191 + Added `fetchItem'`, which works like `fetchItem` but searches
12192 a `MediaBag` before looking on the net or file system.
12193 + Added `withTempDir`.
12194 + Added `removeFormatting`.
12195 + Added `extractSpaces` (from HTML reader) and generalized its type
12196 so that it can be used by the docx reader (Matthew Pickering).
12198 + Added `normalizeInlines`, `normalizeBlocks`.
12199 + `normalize` is now `Pandoc -> Pandoc` instead of
12200 `Data a :: a -> a`. Some users may need to change their uses of
12201 `normalize` to the newly exported `normalizeInlines` or
12204 * `Text.Pandoc.Options`:
12206 + Added `writerMediaBag` to `WriterOptions`.
12207 + Removed deprecated and no longer used `readerStrict` in
12208 `ReaderOptions`. This is handled by `readerExtensions` now.
12209 + Added `Ext_compact_definition_lists`.
12210 + Added `Ext_epub_html_exts`.
12211 + Added `Ext_native_divs` and `Ext_native_spans`.
12212 This allows users to turn off the default pandoc behavior of
12213 parsing contents of div and span tags in markdown and HTML
12214 as native pandoc Div blocks and Span inlines.
12216 * `Text.Pandoc.Parsing`:
12218 + Generalized `readWith` to `readWithM` (Matthew Pickering).
12219 + Export `runParserT` and `Stream` (Matthew Pickering).
12220 + Added `HasQuoteContext` type class (Matthew Pickering).
12221 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
12222 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
12223 `applyMacros` (Matthew Pickering).
12224 + Added custom `token` (Matthew Pickering).
12225 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
12226 track of the ending tag we're waiting for when we're parsing inside
12228 + Added `stateMarkdownAttribute` to `ParserState`. This is used
12229 to keep track of whether the markdown attribute has been set in
12231 + Generalized type of `registerHeader`, using new type classes
12232 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
12233 Pickering). These allow certain common functions to be reused
12234 even in parsers that use custom state (instead of `ParserState`),
12235 such as the MediaWiki reader.
12236 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
12237 and generalized their types (Matthew Pickering).
12239 * `Text.Pandoc.Pretty`:
12242 + Added `blanklines`, which guarantees a certain number of blank lines
12249 + Fixed parsing of indented code in list items. Indented code
12250 at the beginning of a list item must be indented eight spaces
12251 from the margin (or edge of the container), or four spaces
12252 from the list marker, whichever is greater.
12253 + Fixed small bug in HTML parsing with `markdown_attribute`, which
12254 caused incorrect tag nesting for input like
12255 `<aside markdown="1">*hi*</aside>`.
12256 + Fixed regression with intraword underscores (#1121).
12257 + Improved parsing of inline links containing quote characters (#1534).
12258 + Slight rewrite of `enclosure`/`emphOrStrong` code.
12259 + Revamped raw HTML block parsing in markdown (#1330).
12260 We no longer include trailing spaces and newlines in the
12261 raw blocks. We look for closing tags for elements (but without
12262 backtracking). Each block-level tag is its own `RawBlock`;
12263 we no longer try to consolidate them (though `--normalize` will do so).
12264 + Combine consecutive latex environments. This helps when you have
12265 two minipages which can't have blank lines between them (#690, #1196).
12266 + Support smallcaps through span.
12267 `<span style="font-variant:small-caps;">foo</span>` will be
12268 parsed as a `SmallCaps` inline, and will work in all output
12269 formats that support small caps (#1360).
12270 + Prevent spurious line breaks after list items (#1137). When the
12271 `hard_line_breaks` option was specified, pandoc would formerly
12272 produce a spurious line break after a tight list item.
12273 + Fixed table parsing bug (#1333).
12274 + Handle `c++` and `objective-c` as language identifiers in
12275 github-style fenced blocks (#1318).
12276 + Inline math must have nonspace before final `$` (#1313).
12280 + Handle comments at the end of tables. This resolves the issue
12281 illustrated in <http://stackoverflow.com/questions/24009489>.
12282 + Correctly handle table rows with too few cells. LaTeX seems to
12283 treat them as if they have empty cells at the end (#241).
12284 + Handle leading/trailing spaces in `\emph` better.
12285 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
12286 so that we don't get things like `* hi *` in markdown output.
12287 Also applies to `textbf` and some other constructions (#1146).
12288 + Don't assume preamble doesn't contain environments (#1338).
12289 + Allow (and discard) optional argument for `\caption` (James Aspnes).
12293 + Fixed major parsing problem with HTML tables. Table cells were
12294 being combined into one cell (#1341).
12295 + Fixed performance issue with malformed HTML tables.
12296 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
12297 + Allow space between `<col>` and `</col>`.
12298 + Added `audio` and `source` in `eitherBlockOrInline`.
12299 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
12300 `blockTags` to `eitherBlockOrInline`.
12301 + `map` and `object` were mistakenly in both lists; they have been removed
12303 + Ignore `DOCTYPE` and `xml` declarations.
12305 * MediaWiki reader:
12307 + Don't parse backslash escapes inside `<source>` (#1445).
12308 + Tightened up template parsing.
12309 The opening `{{` must be followed by an alphanumeric or `:`.
12310 This prevents the exponential slowdown in #1033.
12311 + Support "Bild" for images.
12315 + Better handle elements inside code environments. Pandoc's document
12316 model does not allow structure inside code blocks, but at least this way
12317 we preserve the text (#1449).
12318 + Support `<?asciidoc-br?>` (#1236).
12322 + Fixed list parsing. Lists can now start without an intervening
12323 blank line (#1513).
12324 + HTML block-level tags that do not start a line are parsed as
12325 inline HTML and do not interrupt paragraphs (as in RedCloth).
12329 + Make tildes create inline code (#1345). Also relabeled `code` and
12330 `verbatim` parsers to accord with the org-mode manual.
12331 + Respect `:exports` header argument in code blocks (Craig Bosma).
12332 + Fixed tight lists with sublists (#1437).
12336 + Avoid excess whitespace in `nav.xhtml`. This should improve
12337 TOC view in iBooks (#1392).
12338 + Fixed regression on cover image.
12339 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
12340 because the metadata id was not correct. Now we derive the id from the
12341 actual cover image filename, which we preserve rather than using
12343 + Keep newlines between block elements. This allows
12344 easier diff-ability (#1424).
12345 + Use `stringify` instead of custom `plainify`.
12346 + Use `renderTags'` for all tag rendering. This properly handles tags
12347 that should be self-closing. Previously `<hr/>` would appear in EPUB
12348 output as `<hr></hr>` (#1420).
12349 + Better handle HTML media tags.
12350 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
12351 can have only one dc:date, so only the first one is used.
12355 + Correctly handle figures in notes. Notes can't contain figures in
12356 LaTeX, so we fake it to avoid an error (#1053).
12357 + Fixed strikeout + highlighted code (#1294).
12358 Previously strikeout highlighted code caused an error.
12362 + Improved detection of autolinks with URLs containing escapes.
12366 + Improved image embedding: `fetchItem'` is now used to get the
12367 images, and calculated image sizes are indicated in the RTF.
12368 + Avoid extra paragraph tags in metadata (#1421).
12372 + Deactivate "incremental" inside slide speaker notes (#1394).
12373 + Don't include empty items in the table of contents for
12374 slide shows. (These would result from creating a slide
12375 using a horizontal rule.)
12377 * MediaWiki writer:
12379 + Minor renaming of `st` prefixed names.
12383 + Double up emphasis and strong emphasis markers in intraword
12384 contexts, as required by asciidoc (#1441).
12388 + Avoid wrapping that might start a list, blockquote, or header (#1013).
12389 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
12390 + Don't use braced attributes for fenced code (#1416).
12391 If `Ext_fenced_code_attributes` is not set, the first class
12392 attribute will be printed after the opening fence as a bare word.
12393 + Separate adjacent lists of the same kind with an HTML comment (#1458).
12397 + Fixed treatment of data uris for images (#1062).
12401 + Use Compact style for empty table cells (#1353).
12402 Otherwise we get overly tall lines when there are empty
12403 table cells and the other cells are compact.
12404 + Create overrides per-image for `media/` in reference docx.
12405 This should be somewhat more robust and cover more types of images.
12406 + Improved `entryFromArchive` to avoid an unneeded parse.
12407 + Section numbering carries over from reference.docx (#1305).
12408 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
12409 we assign numbers based on the list marker styles.
12411 * `Text.Pandoc.Options`:
12413 + Removed `Ext_fenced_code_attributes` from `markdown_github`
12416 * `Text.Pandoc.ImageSize`:
12418 + Use default instead of failing if image size not found
12419 in exif header (#1358).
12420 + ignore unknown exif header tag rather than crashing.
12421 Some images seem to have tag type of 256, which was causing
12424 * `Text.Pandoc.Shared`:
12426 + `fetchItem`: unescape URI encoding before reading local file (#1427).
12427 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
12428 doing mime lookup, to improve mime type guessing.
12429 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
12430 other things are treated as relative URIs if `sourceURL` is `Just _`,
12431 otherwise as file paths on the local file system.
12432 + `fetchItem` now properly handles links without a protocol (#1477).
12433 + `fetchItem` now escapes characters not allowed in URIs before trying
12435 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
12437 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
12438 needed to resolve relative URLs when we fetch resources (#750).
12440 * `Text.Pandoc.Parsing`
12442 + Simplified `dash` and `ellipsis` (#1419).
12443 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
12444 + Generalized functions to use `ParsecT` (Matthew Pickering).
12445 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
12448### Template changes
12450 * Added haddock template.
12451 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
12452 be "advisory" in HTML5, but kindlegen seems to require them.
12453 * EPUB3: Put title page in section with `epub:type="titlepage"`.
12454 * LaTeX: Made `\subtitle` work properly (#1327).
12455 * LaTeX/Beamer: remove conditional around date (#1321).
12456 * LaTeX: Added `lot` and `lof` variables, which can be set to
12457 get `\listoftables` and `\listoffigures` (#1407). Note that
12458 these variables can be set at the command line with `-Vlot -Vlof`
12459 or in YAML metadata.
12461### Under the hood improvements
12463 * Rewrote normalize for efficiency (#1385).
12465 * Rewrote Haddock reader to use `haddock-library` (#1346).
12467 + This brings pandoc's rendering of haddock markup in line
12468 with the new haddock.
12469 + Fixed line breaks in `@` code blocks.
12470 + alex and happy are no longer build-depends.
12472 * Added `Text.Pandoc.Compat.Directory` to allow building against
12473 different versions of the `directory` library.
12475 + Added `Text.Pandoc.Compat.Except` to allow building against
12476 different verions of `mtl`.
12478 * Code cleanup in some writers, using Reader monad to avoid
12479 passing options parameter around (Matej Kollar).
12481 * Improved readability in `pandoc.hs`.
12483 * Miscellaneous code cleanups (Artyom Kazak).
12485 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
12488 * Changed `http-conduit` flag to `https`. Depend on `http-client`
12489 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
12490 depends on `conduit` via `yaml`.)
12492 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
12493 This change to highlighting-kate means that PHP fragments no longer need
12494 to start with `<?php`. It also fixes a serious bug causing failures with
12497 * Require latest `texmath`. This fixes `\tilde{E}` and allows
12498 `\left` to be used with `]`, `)` etc. (#1319), among many other
12501 * Require latest `zip-archive`. This has fixes for unicode path names.
12503 * Added tests for plain writer.
12505 * `Text.Pandoc.Templates`:
12507 + Fail informatively on template syntax errors.
12508 With the move from parsec to attoparsec, we lost good error
12509 reporting. In fact, since we weren't testing for end of input,
12510 malformed templates would fail silently. Here we revert back to
12511 Parsec for better error messages.
12512 + Use `ordNub` (#1022).
12516 + Made benchmarks compile again (Artyom Kazak).
12517 + Fixed so that the failure of one benchmark does not prevent others
12518 from running (Artyom Kazak).
12519 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
12520 + Changed benchmark to use only the test suite, so that benchmarks
12523 * Windows build script:
12525 + Add `-windows` to file name.
12526 + Use one install command for pandoc, pandoc-citeproc.
12527 + Force install of pandoc-citeproc.
12529 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
12530 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
12531 will extract it into a folder named `SOMETHING.pkg`, which it
12532 will interpret as a defective package (#1308).
12536 + Made headers for all extensions so they have IDs and can be
12537 linked to (Beni Cherniavsky-Paskin).
12538 + Fixed typos (Phillip Alday).
12539 + Fixed documentation of attributes (#1315).
12540 + Clarified documentation on small caps (#1360).
12541 + Better documentation for `fenced_code_attributes` extension
12543 + Documented fact that you can put YAML metadata in a separate file
12547## pandoc 1.12.4.2 (2014-05-14)
12549 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
12551 * Shared: `addMetaValue` now behaves slightly differently:
12552 if both the new and old values are lists, it concatenates their
12553 contents to form a new list.
12557 + Set `bibliography` in metadata from `\bibliography` or
12558 `\addbibresource` command.
12559 + Don't error on `%foo` with no trailing newline.
12563 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
12564 + Fix parsing of blank lines within blocks (Albert Krewinkel).
12565 + Support pandoc citation extension (Albert Krewinkel). This can
12566 be turned off by specifying `org-citation` as the input format.
12570 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
12571 other readers (Albert Krewinkel).
12573 * `Text.Pandoc.Parsing`:
12575 + Added `citeKey` (see above).
12576 + Added `HasLastStrPosition` type class and `updateLastStrPos`
12577 and `notAfterString` functions.
12579 * Updated copyright notices (Albert Krewinkel).
12581 * Added default.icml to data files so it installs with the package.
12585 + The binary is now built with options to ensure that it can be
12586 used with OSX 10.6+.
12587 + Moved OSX package materials to osx directory.
12588 + Added OSX package uninstall script, included in the zip container
12589 (thanks to Daniel T. Staal).
12591## pandoc 1.12.4 (2014-05-07)
12593 * Made it possible to run filters that aren't executable
12594 (#1096). Pandoc first tries to find the executable (searching
12595 the path if path isn't given). If it fails, but the file
12596 exists and has a `.py`, `.pl`, `.rb`, `.hs`, or `.php`
12597 extension, pandoc runs the filter using the appropriate
12598 interpreter. This should make it easier to use filters on
12599 Windows, and make it more convenient for everyone.
12601 * Added Emacs org-mode reader (Albert Krewinkel).
12603 * Added InDesign ICML Writer (mb21).
12605 * MediaWiki reader:
12607 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
12608 + Fixed bug in certain nested lists (#1213). If a level 2 list was
12609 followed by a level 1 list, the first item of the level 1 list
12611 + Handle table rows containing just an HTML comment (#1230).
12615 + Give better location information on errors, pointing to line
12616 numbers within included files (#1274).
12617 + LaTeX reader: Better handling of `table` environment (#1204).
12618 Positioning options no longer rendered verbatim.
12619 + Better handling of figure and table with caption (#1204).
12620 + Handle `@{}` and `p{length}` in tabular. The length is not actually
12621 recorded, but at least we get a table (#1180).
12622 + Properly handle `\nocite`. It now adds a `nocite` metadata
12623 field. Citations there will appear in the bibliography but not
12624 in the text (unless you explicitly put a `$nocite$` variable
12629 + Ensure that whole numbers in YAML metadata are rendered without
12630 decimal points. (This became necessary with changes to aeson
12631 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
12632 + Fixed regression on line breaks in strict mode (#1203).
12633 + Small efficiency improvements.
12634 + Improved parsing of nested `div`s. Formerly a closing `div` tag
12635 would be missed if it came right after other block-level tags.
12636 + Avoid backtracking when closing `</div>` not found.
12637 + Fixed bug in reference link parsing in `markdown_mmd`.
12638 + Fixed a bug in list parsing (#1154). When reading a raw list
12639 item, we now strip off up to 4 spaces.
12640 + Fixed parsing of empty reference link definitions (#1186).
12641 + Made one-column pipe tables work (#1218).
12645 + Better support for attributes. Instead of being ignored, attributes
12646 are now parsed and included in Span inlines. The output will be a bit
12647 different from stock textile: e.g. for `*(foo)hi*`, we'll get
12648 `<em><span class="foo">hi</span></em>` instead of
12649 `<em class="foo">hi</em>`. But at least the data is not lost.
12650 + Improved treatment of HTML spans (%) (#1115).
12651 + Improved link parsing. In particular we now pick up on attributes.
12652 Since pandoc links can't have attributes, we enclose the whole link in
12653 a span if there are attributes (#1008).
12654 + Implemented correct parsing rules for inline markup (#1175, Matthew
12656 + Use Builder (Matthew Pickering).
12660 + Better treatment of `formalpara`. We now emit the title (if present)
12661 as a separate paragraph with boldface text (#1215).
12662 + Set metadata `author` not `authors`.
12663 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
12664 Matthew Pickering).
12665 + Converted current meta information parsing in DocBook to a more
12666 extensible version which is aware of the more recent meta
12667 representation (Matthew Pickering).
12671 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
12673 + Treat processing instructions & declarations as block. Previously
12674 these were treated as inline, and included in paragraph tags in HTML
12675 or DocBook output, which is generally not what is wanted (#1233).
12676 + Updated `closes` with rules from HTML5 spec.
12677 + Use Builder (Matthew Pickering, #1162).
12681 + Remove duplicate `http` in PEP links (Albert Krewinkel).
12682 + Make rst figures true figures (#1168, CasperVector)
12683 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
12684 rST parser now supports: all built-in rST roles, new role definition,
12685 role inheritance, though with some limitations.
12686 + Use `author` rather than `authors` in metadata.
12687 + Better handling of directives. We now correctly handle field
12688 lists that are indented more than three spaces. We treat an
12689 `aafig` directive as a code block with attributes, so it can be
12690 processed in a filter (#1212).
12694 + Mark span contents with label if span has an ID (Albert Krewinkel).
12695 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
12696 + Handle line breaks in simple table cells (#1217).
12697 + Workaround for level 4-5 headers in quotes. These previously produced
12698 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
12699 This adds an `mbox{}` in these contexts to work around the problem.
12700 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
12701 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
12702 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
12703 ligature with LuaLaTeX but `\/` does.
12704 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
12706 * ConTeXt writer: Improved autolinks (#1270).
12710 + Improve handling of hard line breaks in Docbook writer
12711 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
12712 just for the newline character.
12713 + Don't let line breaks inside footnotes influence the enclosing
12714 paragraph (Neil Mayhew).
12715 + Distinguish tight and loose lists in DocBook output, using
12716 `spacing="compact"` (Neil Mayhew, #1250).
12718 * Docx writer: When needed files are not present in the user's
12719 `reference.docx`, fall back on the versions in the `reference.docx`
12720 in pandoc's data files. This fixes a bug that occurs when a
12721 `reference.docx` saved by LibreOffice is used. (#1185)
12725 + Include extension in epub ids. This fixes a problem with duplicate
12726 extensions for fonts and images with the same base name but different
12727 extensions (#1254).
12728 + Handle files linked in raw `img` tags (#1170).
12729 + Handle media in `audio` source tags (#1170).
12730 Note that we now use a `media` directory rather than `images`.
12731 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
12732 will both be incorporated into `content.opf` and the epub container.
12736 + Add colgroup around col tags (#877). Also affects EPUB writer.
12737 + Fixed bug with unnumbered section headings. Unnumbered section
12738 headings (with class `unnumbered`) were getting numbers.
12739 + Improved detection of image links. Previously image links with
12740 queries were not recognized, causing `<embed>` to be used instead
12743 * Man writer: Ensure that terms in definition lists aren't line wrapped
12748 + Use proper escapes to avoid unwanted lists (#980). Previously we used
12749 0-width spaces, an ugly hack.
12750 + Use longer backtick fences if needed (#1206). If the content contains a
12751 backtick fence and there are attributes, make sure longer fences are
12752 used to delimit the code. Note: This works well in pandoc, but github
12753 markdown is more limited, and will interpret the first string of three
12754 or more backticks as ending the code block.
12756 * RST writer: Avoid stack overflow with certain tables (#1197).
12758 * RTF writer: Fixed table cells containing paragraphs.
12762 + Correctly handle UTF-8 in custom lua scripts (#1189).
12763 + Fix bugs with lua scripts with mixed-case filenames and
12764 paths containing `+` or `-` (#1267). Note that `getWriter`
12765 in `Text.Pandoc` no longer returns a custom writer on input
12768 * AsciiDoc writer: Handle multiblock and empty table cells
12769 (#1245, #1246). Added tests.
12771 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
12773 * `Text.Pandoc.Shared`:
12775 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
12776 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
12777 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
12779 + `openURL`: set proxy with value of http_proxy env variable (#1211).
12780 Note: proxies with non-root paths are not supported, due to
12781 limitations in `http-conduit`.
12783 * `Text.Pandoc.PDF`:
12785 + Ensure that temp directories deleted on Windows (#1192). The PDF is
12786 now read as a strict bytestring, ensuring that process ownership will
12787 be terminated, so the temp directory can be deleted.
12788 + Use `/` as path separators in a few places, even on Windows.
12789 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
12790 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
12791 + Changes to error reporting, to handle non-UTF8 error output.
12793 * `Text.Pandoc.Templates`:
12795 + Removed unneeded datatype context (Merijn Verstraaten).
12797 + YAML objects resolve to "true" in conditionals (#1133).
12798 Note: If `address` is a YAML object and you just have `$address$`
12799 in your template, the word `true` will appear, which may be
12800 unexpected. (Previously nothing would appear.)
12802 * `Text.Pandoc.SelfContained`: Handle `poster` attribute in `video`
12805 * `Text.Pandoc.Parsing`:
12807 + Made `F` an instance of Applicative (#1138).
12808 + Added `stateCaption`.
12809 + Added `HasMacros`, simplified other typeclasses.
12810 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
12811 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
12812 + Changed the smart punctuation parser to return `Inlines`
12813 rather than `Inline` (Matthew Pickering).
12814 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
12815 from typeclasses of monads to typeclasses of states. This simplifies
12816 the instance definitions and provides more flexibility. Generalized
12817 type of `getOption` and added a default definition. Removed
12818 `askReaderOption`. Added `extractReaderOption`. Added
12819 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
12820 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
12821 `modifyHeaderMap`. Added `extractIdentifierList` and
12822 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
12823 for `getIdentifierList`, `putIdentifierList`, and
12824 `modifyIdentifierList`. The ultimate goal here is to allow different
12825 parsers to use their own, tailored parser states (instead of
12826 `ParserState`) while still using shared functions.
12828 * Template changes:
12830 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
12831 + LaTeX template: Add `linestretch` and `fontfamily` variables.
12832 + LaTeX template: Conditionalize author and date commands.
12833 + Beamer template: Consistent styles for figure and table captions
12835 + LaTeX and beamer template: Adjust widths correctly for oversized
12836 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
12837 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
12838 `upquote` only after `fontenc` (Yihui Xie).
12839 + Beamer template: Added caption package (#1200).
12840 + Beamer template: changes for better unicode handling (KarolS).
12841 + DocBook template: use `authorgroup` if there are authors.
12842 + revealjs template: Move `include-after` to end (certainlyakey).
12843 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
12845 * Bumped version bounds of dependencies.
12847 * Added a `--trace` command line option, for debugging backtracking
12848 bugs. So far this only works with the markdown reader.
12850 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
12852 * Updated travis script to test with multiple GHC versions.
12854 * Force failure of a Travis build if GHC produces warnings (Albert
12857 * Add `.editorconfig` (Albert Krewinkel).
12858 See <http://editorconfig.org/> for details.
12860 * Give more useful error message if '-t pdf' is specified (#1155).
12862 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
12864 * Allow `html4` as a synonym of `html` as a reader (it already works
12869 + Added an explanation of how to use YAML metadata to
12870 force items to appear in the bibliography without citations in
12871 the text (like LaTeX `\nocite`).
12872 + Added note to `--bibtex/--natbib`: not for use in making PDF
12873 (#1194, thanks to nahoj).
12874 + Added explanatory notes about `--natbib` and `--biblatex`.
12875 + Added specification of legal syntax for citation keys.
12876 + Fixed variable defaults documentation (Albert Krewinkel).
12878 * Removed copyright statements for files that have been removed
12879 (Albert Krewinkel).
12881 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
12882 They aren't needed at runtime. We keep README and COPYRIGHT in data
12883 to ensure that they'll be available on all systems on which pandoc
12886 * Use cabal sandboxes in Windows build script.
12888## pandoc 1.12.3.3 (2014-02-03)
12890 * To changes to source; recompiled tarball with latest alex and
12891 happy, so they will work with GHC 7.8.
12893## pandoc 1.12.3.2 (2014-02-03)
12895 * Bumped version bounds for blaze-html, blaze-markup.
12897 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
12900 * Fixed mediawiki ordered list parsing (#1122).
12902 * HTML reader: Fixed bug reading inline math with `$$` (#225).
12904 * Added support for LaTeX style literate Haskell code blocks in rST
12905 (Merijn Verstraaten).
12907## pandoc 1.12.3.1 (2014-01-14)
12909 * Relaxed version constraint on binary, allowing the use of binary 0.5.
12912## pandoc 1.12.3 (2014-01-10)
12914 * The `--bibliography` option now sets the `biblio-files` variable.
12915 So, if you're using `--natbib` or `--biblatex`, you can just use
12916 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
12918 * Don't run pandoc-citeproc filter if `--bibliography` is
12919 used together with `--natbib` or `--biblatex` (Florian Eitel).
12921 * Template changes:
12923 + Updated beamer template to include booktabs.
12924 + Added `abstract` variable to LaTeX template.
12925 + Put `header-includes` after `title` in LaTeX template (#908).
12926 + Allow use of `\includegraphics[size]` in beamer.
12927 This just required porting a macro definition from the default
12928 LaTeX template to the default beamer template.
12930 * `reference.docx`: Include `FootnoteText` style.
12931 Otherwise Word ignores the style, even when specified in the `pPr`.
12934 * `reference.odt`: Tidied `styles.xml`.
12936 * Relaxed version bounds for dependencies.
12938 * Added `withSocketsDo` around http conduit code in `openURL`,
12939 so it works on Windows (#1080).
12941 * Added `Cite` function to `sample.lua`.
12945 + Fixed regression in title blocks (#1089).
12946 If author field was empty, date was being ignored.
12947 + Allow backslash-newline hard line breaks in grid and
12948 multiline table cells.
12949 + Citation keys may now start with underscores, and may contain
12950 underscores adjacent to internal punctuation.
12954 + Add support for `Verb` macro (jrnold) (#1090).
12955 + Support babel-style quoting: `` "`..."' ``.
12957 * Properly handle script blocks in strict mode. (That is,
12958 `markdown-markdown_in_html_blocks`.) Previously a spurious
12959 `<p>` tag was being added (#1093).
12961 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
12966 + Factored out function for table cell creation.
12967 + Better treatment of footnotes in tables.
12968 Notes now appear in the regular sequence, rather than in the
12969 table cell. (This was a regression in 1.10.)
12971 * HTML reader: Parse name/content pairs from meta tags as metadata.
12974 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
12976 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
12978 * ODT writer: Use mathml for proper rendering of formulas.
12979 Note: LibreOffice's support for this seems a bit buggy. But
12980 it should be better than what we had before.
12982 * RST writer: Ensure no blank line after def in definition list (#992).
12984 * Markdown writer: Don't use tilde code blocks with braced attributes in
12985 `markdown_github` output. A consequence of this change is that the
12986 backtick form will be preferred in general if both are enabled. That
12987 is good, as it is much more widespread than the tilde form. (#1084)
12989 * Docx writer: Fixed problem with some modified reference docx files.
12990 Include `word/_rels/settings.xml.rels` if it exists, as well as other
12991 `rels` files besides the ones pandoc generates explicitly.
12995 + With `--toc`, headers no longer link to themselves (#1081).
12996 + Omit footnotes from TOC entries. Otherwise we get doubled
12997 footnotes when headers have notes!
13001 + Avoid duplicate notes when headings contain notes.
13002 This arose because the headings are copied into the metadata
13003 "title" field, and the note gets rendered twice. We strip the
13004 note now before putting the heading in "title".
13005 + Strip out footnotes from toc entries.
13006 + Fixed bug with `--epub-stylesheet`. Now the contents of
13007 `writerEpubStylesheet` (set by `--epub-stylesheet`)
13008 should again work, and take precedence over a stylesheet specified
13011 * `Text.Pandoc.Pretty`: Added `nestle`. API change.
13013 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
13015 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
13018 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
13019 we could only get size information for JFIF format, which led
13020 to squished images in Word documents. Closes #976.
13022 * Removed old `MarkdownTest_1.0.3` directory (#1104).
13025## pandoc 1.12.2.1 (2013-12-08)
13027 * Markdown reader: Fixed regression in list parser, involving
13028 continuation lines containing raw HTML (or even verbatim raw HTML).
13030## pandoc 1.12.2 (2013-12-07)
13032 * Metadata may now be included in YAML blocks in a markdown document.
13040 text: An investigation of metadata
13048 text: doi:10.234234.234/33
13049 publisher: My Press
13050 rights: (c) 2007 John Smith, CC BY-NC
13051 cover-image: img/mypic.jpg
13052 stylesheet: style.css
13055 Metadata may still be provided using `--epub-metadata`; it will
13056 be merged with the metadata in YAML blocks.
13060 + `meta` tags are now used instead of `opf` attributes for EPUB3.
13061 + Insert "svg" property as needed in opf (EPUB 3).
13062 + Simplify `imageTypeOf` using `getMimeType`.
13063 + Add properties attribute to `cover-image` item for EPUB 3.
13064 + Don't include node for `cover.xhtml` if no cover!
13065 + Ensure that same identifier is used throughout (#1044).
13066 If an identifier is given in metadata, we use that; otherwise
13067 we generate a random uuid.
13068 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
13069 Fixes an issue with Calibre putting the cover at the end of the book
13070 if the spine has `linear="no"`. Apparently this is best practice
13071 for other converters as well:
13072 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
13073 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
13074 + Allow partial dates: `YYYY`, `YYYY-MM`.
13076 * Markdown writer: Fix rendering of tight sublists (#1050).
13077 Previously a spurious blank line was included after a tight sublist.
13079 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
13080 This is reported to be necessary to avoid an error from recent
13081 versions of Libre Office when files contain more than one image
13082 Thanks to wmanley for reporting and diagnosing the problem.
13084 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
13085 Instead, let this be set in the template, using `\setupfloat`.
13086 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
13088 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
13090 * Fixed bug with markdown intraword emphasis. Closes #1066.
13092 * Docbook writer: Hierarchicalize block content in metadata.
13093 Previously headers just disappeared from block-level metadata
13094 when it was used in templates. Now we apply the 'hierarchicalize'
13095 transformation. Note that a block headed by a level-2 header will
13096 turn into a `<sect1>` element.
13098 * OpenDocument writer: Skip raw HTML (#1035).
13099 Previously it was erroneously included as verbatim text.
13101 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
13102 This allows better control of formatting, since the `<a>`
13103 tags have a distinguishing class (#1049).
13107 + Use mime type info returned by fetchItem.
13108 + Fixed core metadata (#1046).
13109 Don't create empty date nodes if no date given.
13110 Don't create multiple `dc:creator` nodes; instead separate by
13112 + Fix URL for core-properties in `_rels/.rels` (#1046).
13114 * Plain writer: don't print `<span>` tags.
13118 + Fix definition lists with internal links in terms (#1032).
13119 This fix puts braces around a term that contains an internal
13120 link, to avoid problems with square brackets.
13121 + Properly escape pdftitle, pdfauthor (#1059).
13122 + Use booktabs package for tables (thanks to Jose Luis Duran).
13124 * Updated beamer template. Now references should work properly
13125 (in a slide) when `--biblatex` or `--natbib` is used.
13129 + Parse contents of curly quotes or matched `"` as quotes.
13130 + Support `\textnormal` as span with class `nodecor`.
13131 This is needed for pandoc-citeproc.
13132 + Improved citation parsing. This fixes a run-time error that occurred
13133 with `\citet{}` (empty list of keys). It also ensures that empty keys
13134 don't get produced.
13136 * MediaWiki reader: Add automatic header identifiers.
13140 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
13142 + Recognize `svg` tags as block level content (thanks to MinRK).
13143 + Parse LaTeX math if appropriate options are set.
13147 + Yaml block must start immediately after `---`. If there's a blank
13148 line after `---`, we interpreted it as a horizontal rule.
13149 + Correctly handle empty bullet list items.
13150 + Stop parsing "list lines" when we hit a block tag.
13151 This fixes exponential slowdown in certain input, e.g.
13152 a series of lists followed by `</div>`.
13154 * Slides: Preserve `<div class="references">` in references slide.
13156 * `Text.Pandoc.Writer.Shared`:
13158 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
13159 attributes, leading to invalid HTML.
13160 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
13161 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
13162 encoded bytestring was returned. We now decode it so it's a proper
13165 * DocBook reader: Handle numerical attributes starting with decimal.
13166 Also use `safeRead` instead of `read`.
13168 * `Text.Pandoc.Parsing`:
13170 + Generalized type of `registerHeader`, using new type classes
13171 `HasReadeOptions`, `HasIdentifierList`, `HasHeaderMap`.
13172 These allow certain common functions to be reused
13173 even in parsers that use custom state (instead of `ParserState`),
13174 such as the MediaWiki reader.
13175 + Moved inlineMath, displayMath from Markdown reader to Parsing.
13176 Generalize their types and export them from Parsing. (API change.)
13178 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
13179 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
13180 in all the writers. Require `texmath >= 0.6.5.2`.
13182 * `Text.Pandoc.MIME`:
13184 + Add entry for `jfif`.
13185 + In looking up extensions, drop the encoding info.
13186 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
13188 * Templates: Changed how array variables are resolved. Previously if
13189 `foo` is an array (which might be because multiple values were set on
13190 the command line), `$foo$` would resolve to the concatenation of the
13191 elements of foo. This is rarely useful behavior. It has been changed
13192 so that the first value is rendered. Of course, you can still iterate
13193 over the values using `$for(foo)$`. This has the result that you can
13194 override earlier settings using `-V` by putting new values later on the
13195 command line, which is useful for many purposes.
13197 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
13199 * Allow "epub2" as synonym for "epub", "html4" for "html".
13201 * Don't look for slidy files in data files with `--self-contained`.
13203 * Allow `https:` command line arguments to be downloaded.
13205 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
13207## pandoc 1.12.1 (2013-10-20)
13209 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
13210 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
13211 "c": "foo"}`. This new format is easier to work with outside of Haskell.
13212 Incidentally, "t" stands for "tag", "c" for "contents".
13214 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
13215 when converting to markdown (#1027).
13219 + Ensure that preamble doesn't contribute to the text of
13221 + Fixed character escaping in `\url{}`. Previously `\~` wasn't handled
13222 properly, among others.
13223 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
13224 bibtex titles, since we need to know what was protected from
13225 titlecase conversions.
13229 + Specially escape non-ascii characters in labels.
13230 Otherwise we can get compile errors and other bugs when
13231 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
13232 + Add link anchors for code blocks with identifiers (#1025).
13234 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
13235 It allows fragments identifiers.
13239 + A Div element with class "notes" is treated as speaker
13240 notes. Currently beamer goes to `\note{}`, revealjs to
13241 `<aside class="notes">`, and the notes are simply suppressed in
13242 other formats (#925).
13243 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
13244 The old version caused a pause to be inserted before the first
13245 material on a slide. This has been fixed.
13246 + Removed data files for s5, slideous, slidy.
13247 Users of s5 and slideous will have to download the needed
13248 files, as has been documented for some time in the README.
13249 By default, slidy code will be sought on the web, as before.
13251 * HTML writer: Insert command to typeset mathjax only in slideous output
13254 * RST writer: Skip spaces after display math. Otherwise we get indentation
13255 problems, and part of the next paragraph may be rendered as part of the
13258 * OpenDocument writer: Fix formatting of strikeout code (#995),
13259 thanks to wilx. don't use `font-face-decls` variable.
13261 * Fixed test suite so it works with cabal sandboxes.
13263## pandoc 1.12.0.2 (2013-09-20)
13265 * Removed an unused dependency (`stringable`) from pandoc.cabal.
13266 This will help packagers, but users should not need to upgrade.
13268## pandoc 1.12.0.1 (2013-09-20)
13270 * Allow `--metadata` to be repeated for the same key to form a list.
13271 This also has the effect that `--bibliography` can be repeated,
13274 * Handle boolean values in `--metadata`. Note that anything not parseable
13275 as a YAML boolean or string is treated as a literal string.
13276 You can get a string value with "yes", or any of the strings interpretable
13277 as booleans, by quoting it:
13279 -M boolvalue=yes -M stringvalue='"yes"'
13281 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
13284 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
13285 in which docx files could not be read by some versions of Word
13286 and LibreOffice (#990).
13288 * Fixed a regression involving slide shows with bibliographies.
13289 The Div container around references messed up the procedure for carving
13290 a document into slides. So we now remove the surrounding Div in
13293 * More informative error message when a filter is not found in path.
13295 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
13296 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
13298 * Don't use unicode_collation in building OSX package:
13299 it adds something like 50MB of dependencies to the package.
13301 * Declare alex and happy as build-tools (#986).
13303## pandoc 1.12 (2013-09-15)
13307 * Much more flexible metadata, including arbitrary fields and structured
13308 values. Metadata can be specified flexibly in pandoc markdown using
13309 YAML metadata blocks, which may occur anywhere in the document:
13312 title: Here is my title.
13314 This is the abstract.
13318 and *inline markup*
13320 tags: [cat, dog, animal]
13323 Metadata fields automatically populate template variables.
13325 * Added `opml` (OPML) as input and output format. The `_note` attribute,
13326 used in OmniOutliner and supported by multimarkdown, is supported.
13327 We treat the contents as markdown blocks under a section header.
13329 * Added `haddock` (Haddock markup) as input format (David Lazar).
13331 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
13332 (Thanks to Jamie F. Olson for the initial patch.)
13333 Nested vertical stacks are used for hierarchical structure.
13334 Results for more than one level of nesting may be odd.
13336 * Custom writers can now be written in lua.
13338 pandoc -t data/sample.lua
13340 will load the script sample.lua and use it as a custom writer.
13341 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
13342 Note that pandoc embeds a lua interpreter, so lua need not be
13343 installed separately.
13345 * New `--filter/-F` option to make it easier to run "filters"
13346 (Pandoc AST transformations that operate on JSON serializations).
13347 Filters are always passed the name of the output format, so their
13348 behavior can be tailored to it. The repository
13349 <https://github.com/jgm/pandocfilters> contains
13350 a python module for writing pandoc filters in python, with
13351 a number of examples.
13353 * Added `--metadata/-M` option.
13354 This is like `--variable/-V`, but actually adds to metadata, not
13357 * Added `--print-default-data-file` option, which allows printing
13358 of any of pandoc's data files. (For example,
13359 `pandoc --print-default-data-file reference.odt` will print
13362 * Added syntax for "pauses" in slide shows:
13370 * New markdown extensions:
13372 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
13373 rather than being treated as hard line breaks or spaces. This is useful
13374 for some East Asian languages, where spaces aren't used between words,
13375 but text is separated into lines for readability.
13376 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
13377 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
13378 only. (Default for `markdown_github`.) (#807)
13379 + `lists_without_preceding_blankline`: Allow lists to start without
13380 preceding blank space. (Default for `markdown_github`.) (#972)
13382### Behavior changes
13384 * `--toc-level` no longer implies `--toc`.
13385 Reason: EPUB users who don't want a visible TOC may still want
13386 to set the TOC level for in the book navigation.
13388 * `--help` now prints in and out formats in alphabetical order, and
13389 says something about PDF output (#720).
13391 * `--self-contained` now returns less verbose output (telling you
13392 which URLs it is fetching, but not giving the full header). In
13393 addition, there are better error messages when fetching a URL fails.
13395 * Citation support is no longer baked in to core pandoc. Users who
13396 need citations will need to install and use a separate filter
13397 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
13398 `csl`, and `citation-abbreviations` from the metadata, though it
13399 may still be specified on the command line as before.
13401 * A `Cite` element is now created in parsing markdown whether or not
13402 there is a matching reference.
13404 * The `pandoc-citeproc` script will put the bibliography at the
13405 end of the document, as before. However, it will be put inside a `Div`
13406 element with class "references", allowing users some control
13407 over the styling of references. A final header, if any, will
13408 be included in the `Div`.
13410 * The markdown writer will not print a bibliography if the
13411 `citations` extension is enabled. (If the citations are formatted
13412 as markdown citations, it is redundant to have a bibliography,
13413 since one will be generated automatically.)
13415 * Previously we used to store the directory of the first input file,
13416 even if it was local, and used this as a base directory for finding
13417 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
13418 users. So we now look for images relative to the current
13419 working directory, even if the first file argument is in another
13420 directory. Note that this change may break some existing workflows.
13421 If you have been assuming that relative links will be interpreted
13422 relative to the directory of the first file argument, you'll need
13423 to make that the current directory before running pandoc. (#942)
13425 * Better error reporting in some readers, due to changes in `readWith`:
13426 the line in which the error occurred is printed, with a caret pointing
13429 * All slide formats now support incremental slide view for definition lists.
13431 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
13432 Parse `:<math>...</math>` as display math. These notations are used with
13433 the MathJax MediaWiki extension.
13435 * All writers: template variables are set automatically from metadata
13436 fields. However, variables specified on the command line with
13437 `--variable` will completely shadow metadata fields.
13439 * If `--variable` is used to set many variables with the same name,
13442 * Man writer: The `title`, `section`, `header`, and `footer` can now
13443 all be set individually in metadata. The `description` variable has been
13444 removed. Quotes have been added so that spaces are allowed in the
13445 title. If you have a title that begins
13447 COMMAND(1) footer here | header here
13449 pandoc will still parse it into a title, section, header, and
13450 footer. But you can also specify these elements explicitly (#885).
13454 + Added support for YAML metadata blocks, which can come anywhere
13455 in the document (not just at the beginning). A document can contain
13456 multiple YAML metadata blocks.
13457 + HTML span and div tags are parsed as pandoc Span and Div elements.
13461 + Allow simple tables to be printed as grid tables,
13462 if other table options are disabled. This means you can do
13463 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
13464 and all tables will render as grid tables.
13465 + Support YAML title block (render fields in alphabetical order
13466 to make output predictable).
13470 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
13471 structured metadata. (Note: existing code that pattern-matches
13472 on `Meta` will have to be revised.) Metadata can now contain
13473 indefinitely many fields, with content that can be a string,
13474 a Boolean, a list of `Inline` elements, a list of `Block`
13475 elements, or a map or list of these.
13477 * A new generic block container (`Div`) has been added to `Block`,
13478 and a generic inline container (`Span`) has been added to `Inline`.
13479 These can take attributes. They will render in HTML, Textile,
13480 MediaWiki, Org, RST and Markdown (with `markdown_in_html`
13481 extension) as HTML `<div>` and `<span>` elements; in other formats
13482 they will simply pass through their contents. But they can be
13483 targeted by scripts.
13485 * `Format` is now a newtype, not an alias for String.
13486 Equality comparisons are case-insensitive.
13488 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
13489 functions that are much faster than the SYB functions from
13490 `Text.Pandoc.Generic`. These functions are now used where possible
13491 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
13492 match the generic traversals `bottomUp` and `queryWith`.)
13494 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
13495 instances for the basic pandoc types. They use GHC generics and
13496 should be faster than the old JSON serialization using
13497 `Data.Aeson.Generic`.
13499 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
13500 This is a souped-up version of `readProcessWithErrorcode` that
13501 uses lazy bytestrings instead of strings and allows setting
13502 environment variables. (Used in `Text.Pandoc.PDF`.)
13504 * New module `Text.Pandoc.Readers.OPML`.
13506 * New module `Text.Pandoc.Writers.OPML`.
13508 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
13509 This is based on Haddock's own lexer/parser.
13511 * New module `Text.Pandoc.Writers.Custom`.
13513 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
13514 Either, for better error handling.
13516 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
13518 * Removed `stripTags` from `Text.Pandoc.XML`.
13520 * `Text.Pandoc.Templates`:
13522 + Simplified `Template` type to a newtype.
13524 + Changed type of `renderTemplate`: it now takes a JSON context
13525 and a compiled template.
13526 + Export `compileTemplate`.
13527 + Export `renderTemplate'` that takes a string instead of a compiled
13529 + Export `varListToJSON`.
13531 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
13535 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
13536 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
13537 `Text.Pandoc.JSON` should be used instead. (Compiling against
13538 pandoc-types instead of pandoc will also produce smaller executables.)
13539 * Removed the deprecated `jsonFilter` function.
13540 + Added `readJSON`, `writeJSON` to the API (#817).
13542 * `Text.Pandoc.Options`:
13544 + Added `Ext_lists_without_preceding_blankline`,
13545 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
13546 `Ext_yaml_metadataBlock` to `Extension`.
13547 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
13548 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
13549 first command-line argument is an absolute URL. (So, relative links
13550 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
13551 + All bibliography-related fields have been removed from
13552 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
13553 `readerReferences`, `readerCitationStyle`.
13555 * The `Text.Pandoc.Biblio` module has been removed. Users of the
13556 pandoc library who want citation support will need to use
13557 `Text.CSL.Pandoc` from `pandoc-citeproc`.
13561 * In markdown, don't autolink a bare URI that is followed by `</a>`
13564 * `Text.Pandoc.Shared`
13566 + `openURL` now follows redirects (#701), properly handles `data:`
13567 URIs, and prints diagnostic output to stderr rather than stdout.
13568 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
13569 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
13570 + Fixed `readDefaultDataFile` so it works on Windows.
13571 + Better error messages for `readDefaultDataFile`. Instead of
13572 listing the last path tried, which can confuse people who are
13573 using `--self-contained`, so now we just list the data file name.
13574 + URL-escape pipe characters. Even though these are legal, `Network.URI`
13575 doesn't regard them as legal in URLs. So we escape them first (#535).
13577 * Mathjax in HTML slide shows: include explicit "Typeset" call.
13578 This seems to be needed for some formats (e.g. slideous) and won't
13579 hurt in others (#966).
13581 * `Text.Pandoc.PDF`
13583 + On Windows, create temdir in working directory, since the system
13584 temp directory path may contain tildes, which can cause
13585 problems in LaTeX (#777).
13586 + Put temporary output directory in `TEXINPUTS` (see #917).
13587 + `makePDF` tries to download images that are not found locally,
13588 if the first argument is a URL (#917).
13589 + If compiling with `pdflatex` yields an encoding error, offer
13590 the suggestion to use `--latex-engine=xelatex`.
13592 * Produce automatic header identifiers in parsing textile, RST,
13593 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
13595 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
13596 before treating as a filename. This fixes `--self-contained` when used
13597 with CSS files that include web fonts using the method described here:
13598 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
13599 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
13601 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
13602 percent-encoding, or a `+` character, as final punctuation.
13604 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
13605 EPS images properly sized on conversion to Word.
13607 * Slidy: Use slidy.js rather than slidy.js.gz.
13608 Reason: some browsers have trouble with the gzipped js file,
13609 at least on the local file system (#795).
13613 + Properly handle blank line at beginning of input (#882).
13614 + Fixed bug in unmatched reference links. The input
13615 `[*infile*] [*outfile*]` was getting improperly parsed:
13616 "infile" was emphasized, but "*outfile*" was literal (#883).
13617 + Allow internal `+` in citation identifiers (#856).
13618 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
13619 + Do not generate blank title, author, or date metadata elements.
13620 Leave these out entirely if they aren't present.
13621 + Allow backtick code blocks not to be preceded by blank line (#975).
13625 + Correctly handle entities.
13626 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
13627 in code blocks, rather than printing them verbatim. Parse attributes
13628 on `<pre>` tag for code blocks.
13630 * HTML reader: Handle non-simple tables (#893). Column widths are read from
13631 `col` tags if present, otherwise divided equally.
13635 + Support alltt environment (#892).
13636 + Support `\textasciitilde`, `\textasciicircum` (#810).
13637 + Treat `\textsl` as emphasized text reader (#850).
13638 + Skip positional options after `\begin{figure}`.
13639 + Support `\v{}` for hacek (#926).
13640 + Don't add spurious ", " to citation suffixes.
13641 This is added when needed in pandoc-citeproc.
13642 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
13643 + Improved support for accented characters (thanks to Scott Morrison).
13644 + Parse label after section command and set id (#951).
13648 + Don't insert paragraphs where docutils doesn't.
13649 `rst2html` doesn't add `<p>` tags to list items (even when they are
13650 separated by blank lines) unless there are multiple paragraphs in the
13651 list. This commit changes the RST reader to conform more closely to
13652 what docutils does (#880).
13653 + Improved metadata. Treat initial field list as metadata when
13654 standalone specified. Previously ALL fields "title", "author",
13655 "date" in field lists were treated as metadata, even if not at
13656 the beginning. Use `subtitle` metadata field for subtitle.
13657 + Fixed 'authors' metadata parsing in reST. Semicolons separate
13662 + Allow space before table rows.
13663 + Fixed regression for `<ref>URL</ref>`.
13664 `<` is no longer allowed in URLs, according to the uri parser
13665 in `Text.Pandoc.Parsing`. Added a test case.
13666 + Correctly handle indented preformatted text without preceding
13667 or following blank line.
13668 + Fixed `|` links inside table cells. Improved attribute parsing.
13669 + Skip attributes on table rows. Previously we just crashed if
13670 rows had attributes, now we ignore them.
13671 + Ignore attributes on headers.
13672 + Allow `Image:` for images (#971).
13673 + Parse an image with caption in a paragraph by itself as a figure.
13677 + Don't use ligatures in escaping inline code.
13678 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
13679 wherein notes were numbered incorrectly in tables (#827).
13680 + Always create labels for sections. Previously the labels were only
13681 created when there were links to the section in the document (#871).
13682 + Stop escaping `|` in LaTeX math.
13683 This caused problems with array environments (#891).
13684 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
13685 `\` will cause major problems if unescaped.
13686 + Write id for code block to label attribute in LaTeX when listings
13687 is used (thanks to Florian Eitel).
13688 + Scale LaTeX tables so they don't exceed columnwidth.
13689 + Avoid problem with footnotes in unnumbered headers (#940).
13691 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
13692 to the slide if it is one of the header classes. It is recommended
13693 that your bibliography slide have this attribute:
13695 # References {.allowframebreaks}
13697 This causes multiple slides to be created if necessary, depending
13698 on the length of the bibliography.
13700 * ConTeXt writer: Properly handle tables without captions. The old output
13701 only worked in MkII. This should work in MkIV as well (#837).
13703 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
13707 + Fixed `--no-highlight` (Alexander Kondratskiy).
13708 + Don't convert to lowercase in email obfuscation (#839).
13709 + Ensure proper escaping in `<title>` and `<meta>` fields.
13713 + Support `--atx-headers` (Max Rydahl Andersen).
13714 + Don't print empty identifier blocks `([[]])` on headers (Max
13719 + Fixing wrong numbered-list indentation in open document format
13720 (Alexander Kondratskiy) (#369).
13721 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
13722 + Minor changes for ODF 1.2 conformance (#939). We leave the
13723 nonconforming `contextual-spacing` attribute, which is provided by
13724 LibreOffice itself and seems well supported.
13728 + Fixed rendering of display math in lists.
13729 In 1.11 and 1.11.1, display math in lists rendered as a new list
13730 item. Now it always appears centered, just as outside of lists,
13731 and in proper display math style, no matter how far indented the
13732 containing list item is (#784).
13733 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
13734 Previously we used `w:cr` (#873).
13735 + Use Compact style for Plain block elements, to
13736 differentiate between tight and loose lists (#775).
13737 + Ignore most components of `reference.docx`.
13738 We take the `word/styles.xml`, `docProps/app.xml`,
13739 `word/theme/theme1.xml`, and `word/fontTable.xml` from
13740 `reference.docx`, ignoring everything else. This should help
13741 with the corruption problems caused when different versions of
13742 Word resave the reference.docx and reorganize things.
13743 + Made `--no-highlight` work properly.
13747 + Don't add `dc:creator` tags if present in EPUB metadata.
13748 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
13749 + Don't put blank title page in reading sequence.
13750 Set `linear="no"` if no title block. Addresses #797.
13751 + Download webtex images and include as data URLs.
13752 This allows you to use `--webtex` in creating EPUBs.
13753 Math with `--webtex` is automatically made self-contained.
13754 + In `data/epub.css`, removed highlighting styles (which
13755 are no longer needed, since styles are added by the HTML
13756 writer according to `--highlighting-style`). Simplified
13758 + If resource not found, skip it, as in Docx writer (#916).
13762 + Properly handle characters above the 0000-FFFF range.
13763 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
13764 + Fixed regression with RTF table of contents.
13765 + Only autolink absolute URIs. This fixes a regression, #830.
13769 + Only autolink absolute URIs. This fixes a regression, #830.
13770 + Don't wrap attributes in fenced code blocks.
13771 + Write full metadata in MMD style title blocks.
13772 + Put multiple authors on separate lines in pandoc titleblock.
13773 Also, don't wrap long author entries, as new lines get treated
13776 * `Text.Pandoc.Templates`:
13778 + Fixed bug retrieving default template for markdown variants.
13779 + Templates can now contain "record lookups" in variables;
13780 for example, `author.institution` will retrieve the `institution`
13781 field of the `author` variable.
13782 + More consistent behavior of `$for$`. When `foo` is not a list,
13783 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
13784 So if `foo` resolves to "", no output should be produced.
13785 See pandoc-templates#39.
13787 * Citation processing improvements (now part of pandoc-citeproc):
13789 + Fixed `endWithPunct` The new version correctly sees a sentence
13790 ending in '.)' as ending with punctuation. This fixes a bug which
13791 led such sentences to receive an extra period at the end: '.).'.
13792 Thanks to Steve Petersen for reporting.
13793 + Don't interfere with Notes that aren't citation notes.
13794 This fixes a bug in which notes not generated from citations were
13795 being altered (e.g. first letter capitalized) (#898).
13796 + Only capitalize footnote citations when they have a prefix.
13797 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
13798 inserted before it before passing to citeproc-hs, so that bare numbers
13799 are treated as page numbers by default. A suffix not beginning with
13800 punctuation has a space added at the beginning (rather than a comma and
13801 space, as was done before for not-author-in-text citations).
13802 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
13803 properly, with '23' treated as a locator of type 'page'.
13804 + Many improvements to citation rendering, due to fixes in citeproc-hs
13805 (thanks to Andrea Rossato).
13806 + Warnings are issued for undefined citations, which are rendered
13808 + Fixed hanging behavior when locale files cannot be found.
13810### Template changes
13812 * DocBook: Use DocBook 4.5 doctype.
13814 * Org: '#+TITLE:' is inserted before the title.
13815 Previously the writer did this.
13817 * LaTeX: Changes to make mathfont work with xelatex.
13818 We need the mathspec library, not just fontspec, for this.
13819 We also need to set options for setmathfont (#734).
13821 * LaTeX: Use `tex-ansi` mapping for `monofont`.
13822 This ensures that straight quotes appear as straight, rather than
13823 being treated as curly. See #889.
13825 * Made `\includegraphics` more flexible in LaTeX template.
13826 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
13828 * LaTeX/Beamer: Added `classoption` variable.
13829 This is intended for class options like `oneside`; it may
13830 be repeated with different options. (Thanks to Oliver Matthews.)
13832 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
13834 * LaTeX: Added `biblio-style` variable (#920).
13836 * DZSlides: title attribute on title section.
13838 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
13840### Under-the-hood improvements
13842 * Markdown reader:Improved strong/emph parsing, using the strategy of
13843 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
13844 no backtracking, and no keeping track of nesting levels. It will give
13845 different results in some edge cases, but these should not affect normal
13848 * Added `Text.Pandoc.Compat.Monoid`.
13849 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
13850 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
13852 * Added `Text.Pandoc.Compat.TagSoupEntity`.
13853 This allows pandoc to compile with `tagsoup` 0.13.x.
13854 Thanks to Dirk Ullrich for the patch.
13856 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
13857 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
13858 handle simple math in bibliography fields.)
13860 * Added `Text.Pandoc.Writers.Shared` for shared functions used
13861 only in writers. `metaToJSON` is used in writers to create a
13862 JSON object for use in the templates from the pandoc metadata
13863 and variables. `getField`, `setField`, and `defField` are
13864 for working with JSON template contexts.
13866 * Added `Text.Pandoc.Asciify` utility module.
13867 This exports functions to create ASCII-only versions of identifiers.
13869 * `Text.Pandoc.Parsing`
13871 + Generalized state type on `readWith` (API change).
13872 + Specialize readWith to `String` input. (API change).
13873 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
13874 with `stateMeta` and `stateMeta'`.
13876 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
13877 bytestrings seemed to cause problems using pandoc on 64-bit Windows
13880 * Factored out `registerHeader` from markdown reader, added to
13881 `Text.Pandoc.Parsing`.
13883 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
13884 Reason: < 0.5 does not provide a monoid instance for Attribute,
13885 which is now needed by the HTML writer (#803).
13887 * Added `http-conduit` flag, which allows fetching https resources.
13888 It also brings in a large number of dependencies (`http-conduit`
13889 and its dependencies), which is why for now it is an optional flag
13892 * Added CONTRIBUTING.md.
13894 * Improved INSTALL instructions.
13896 * `make-windows-installer.bat`: Removed explicit paths for executables.
13898 * `aeson` is now used instead of `json` for JSON.
13900 * Set default stack size to 16M. This is needed for some large
13901 conversions, esp. if pandoc is compiled with 64-bit ghc.
13903 * Various small documentation improvements.
13904 Thanks to achalddave and drothlis for patches.
13906 * Removed comment that chokes recent versions of CPP (#933).
13908 * Removed support for GHC version < 7.2, since pandoc-types now
13909 requires at least GHC 7.2 for GHC generics.
13912## pandoc 1.11.1 (2013-03-17)
13916 + Fixed regression in which parentheses were lost in link URLs.
13917 Added tests. Closes #786.
13918 + Better handling of unmatched double quotes in `--smart` mode.
13919 These occur frequently in fiction, since it is customary not to
13920 close quotes in dialogue if the speaker does not change between
13921 paragraphs. The unmatched quotes now get turned into literal
13922 left double quotes. (No `Quoted` inline is generated, however.)
13923 Closes #99 (again).
13925 * HTML writer: Fixed numbering mismatch between TOC and sections.
13926 `--number-offset` now affects TOC numbering as well
13927 as section numbering, as it should have all along. Closes #789.
13929 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
13930 as markdown citations, even if `--bibliography` was specified, unless
13931 `citation` extension is disabled. Now, formatted citations are always
13932 printed if `--bibliography` was specified. If you want to reformat
13933 markdown keeping pandoc markdown citations intact, don't use
13934 `--bibliography`. Note that citations parsed from LaTeX documents will
13935 be rendered as pandoc markdown citations when `--bibliography` is not
13938 * ODT writer: Fixed regression leading to corrupt ODTs.
13939 This was due to a change in the `Show` instance for
13940 `Text.Pandoc.Pretty.Doc`. Closes #780.
13942 * Fixed spacing bugs involving code block attributes in
13943 RST reader and Markdown writer. Closes #763.
13945 * Windows package: Various improvements due to Fyodor Sheremetyev.
13947 + Automatically set installation path (Program Files or Local App Data).
13948 + Set system PATH environment variable when installing for all users.
13949 + Pandoc can installed for all users using the following command.
13950 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
13952 * Bumped QuickCheck version bound.
13954## pandoc 1.11 (2013-03-09)
13956 * Added `--number-offset` option. (See README for description.)
13958 * Added `--default-image-extension` option. (See README for description.)
13960 * `--number-sections` behavior change: headers with class `unnumbered`
13961 will not be numbered.
13963 * `--version` now reports the default data directory.
13965 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
13967 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
13969 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
13970 a field for `Attr` rather than just `String`. (API change.)
13972 * Added `markdown_github` as input format. This was an accidental
13975 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
13978 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
13982 + Fixed captions with longtable. Thanks to Joost Kremers.
13983 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
13987 + Load microtype after fonts. Microtype needs to know
13988 what fonts are being used. Thanks to dfc for the patch.
13989 + Set `secnumdepth` to 5 if `--number-sections` specified.
13990 This yields behavior equivalent to the other writers, numbering
13991 level 4 and 5 headers too. Closes #753.
13995 + Handle `<colgroup>` tag.
13996 + Preserve all header attributes.
14000 + Parse `\hrule` as `HorizontalRule`. Closes #746.
14001 + Parse starred variants of `\section` etc. as headers with
14002 attribute `unnumbered`.
14003 + Read optional attributes in `lstlisting` and `Verbatim` environments.
14004 We convert these to pandoc standard names, e.g. `numberLines`
14005 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
14006 + Handle language attribute for lstlistings.
14007 + Better support for Verbatim and minted environments. Closes #763.
14011 + `-` in an attribute context = `.unnumbered`. The point of this
14012 is to provide a way to specify unnumbered headers in non-English
14014 + Fixed bug parsing key/value attributes. Parsing failed if you
14015 had an unquoted attribute immediately before the final '}'.
14016 + Make backslash escape work in attributes.
14017 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
14018 pandoc will parse a MMD title block if it sees one, even if
14019 `pandoc_title_blocks` is enabled.
14020 + Refactoring: `litChar` now includes entities, so we don't need
14021 to use `fromEntities` e.g. on titles.
14022 + Allow spaces around borders in pipe tables. Closes #772.
14023 + Allow all punctuation in angle-bracket autolinks. Previously
14024 things like `----` were disallowed, because the uri parser
14025 treated them as trailing punctuation. Closes #768.
14026 + Make `implicit_header_references` work properly when
14027 headers are given explicit identifiers.
14028 + Check for tables before line blocks. Otherwise some pipe
14029 tables get treated as line blocks.
14030 + Allow `&` in emails (for entities).
14031 + Properly handle entities in titles and links. A markdown link
14032 `<http://göogle.com>` should be a link to `http://göogle.com`.
14037 + Handle attributes on headers.
14041 + Add `fig:` as title for images with captions.
14042 This is needed for them to be rendered as figures. Closes #766.
14043 + Never emit an empty paragraph. See #761.
14044 + Handle `\caption` for images in figures. Closes #766.
14045 + Parse `\section*`, etc. as unnumbered sections.
14049 + Support header attributes. The attributes go on
14050 the enclosing `section` or `div` tag if `--section-divs` is specified.
14051 + Fixed a regression (only now noticed) in html+lhs output.
14052 Previously the bird tracks were being omitted.
14056 + Omit lists with no items to avoid LaTeX errors.
14057 + Support line numbering with `--listings`.
14058 If `numberLines` class is present, we add `numbers=left`;
14059 if `startFrom` is present, we add `firstnumber=`. (#763)
14063 + Removed `\placecontent`. This produced a duplicate toc,
14064 in conjunction with `\placelist`.
14065 + Use `\title`, `\subject` etc. for headers with
14066 `unnumbered` class.
14070 + Support header attributes.
14074 + Use grid tables when needed, and if enabled. Closes #740.
14075 + Render citations as pandoc-markdown citations.
14076 Previously citations were rendered as citeproc-formatted citations
14077 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
14078 unless the `citations` extension is disabled.
14079 If you still want formatted citations in your markdown output,
14080 use `pandoc -t markdown-citations`.
14084 + Support `:number-lines:` in code blocks.
14088 + Better treatment of display math. Display math inside a
14089 paragraph is now put in a separate paragraph, so it will render
14090 properly (centered and without extra blank lines around it).
14091 Partially addresses #742.
14092 + Content types and document rels xml files are now created from
14093 scratch, rather than being taken over from `reference.docx`.
14094 This fixes problems that arise when you edit the `reference.docx`
14096 + We also now encode mime types for each individual image rather
14097 than using defaults. This should allow us to handle a wider
14098 range of image types (including PDF). Closes #414.
14099 + Changed style names in `reference docx`.
14100 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
14101 The old names got changed by Word when the `reference.docx` was
14102 edited. Closes #414.
14106 + Fix section numbering. Previously the numbering restarted from 1
14107 in each chapter (with `--number-sections`), though the numbers in
14108 the table of contents were correct.
14109 + Headers with "unnumbered" attribute are not numbered. (Nor do they
14110 cause an increment in running numbering.) Section numbers now work
14111 properly, even when there is material before the first numbered section.
14112 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
14113 but `linear` is set to `no` unless the `--toc` option is specified.
14114 Include `<guide>` element in OPF. This should allow the TOC to
14115 be useable in Kindles when converted with kindlegen. Closes #773.
14117 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
14118 This dramatically reduces the speed penalty that comes from enabling the
14119 `autolink_bare_uris` extension. The penalty is still substantial (in one
14120 test, from 0.33s to 0.44s), but nowhere near what it used to be.
14121 The RST reader is also much faster now, as it autodetects URIs.
14123 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
14124 with class "unnumbered". Unnumbered sections get `[]` for their
14127 * `Text.Pandoc.Pretty`:
14129 + Fixed `chomp` so it works inside `Prefixed` elements.
14130 + Changed `Show` instance so it is better for debugging.
14132 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
14134 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
14136 * Windows installer improvements:
14138 + The installer is now signed with a certificate (thanks to
14139 Fyodor Sheremetyev).
14140 + WiX is used instead of InnoSetup. The installer is now a
14142 + The version number is now auto-detected, and need not be
14143 updated separately.
14145 * OSX installer improvements:
14147 + The package and pandoc executable are now signed with a
14148 certificate (thanks to Fyodor Sheremetyev).
14149 + RTF version of license is used.
14150 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
14153 * Converted COPYING to markdown.
14155 * pandoc.cabal: Require latest versions of highlighting-kate,
14156 texmath, citeproc-hs, zip-archive.
14158## pandoc 1.10.1 (2013-01-23)
14160 * Markdown reader: various optimizations, leading to a
14161 significant performance boost.
14163 * RST reader: Allow anonymous form of inline links:
14164 `` `hello <url>`__ `` Closes #724.
14166 * Mediawiki reader: Don't require newlines after tables.
14167 Thanks to jrunningen for the patch. Closes #733.
14169 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
14170 when output is LaTeX, and applied when it is another format.
14171 Partially addresses #730.
14173 * Markdown and RST readers: Added parser to `block` that skips blank
14174 lines. This fixes a subtle regression involving grid tables with
14175 empty cells. Also added test for grid table with empty cells.
14178 * RST writer: Use `.. code:: language` for code blocks with language.
14181 * DocBook writer: Fixed output for hard line breaks, adding a newline
14182 between `<literallayout>` tags.
14184 * Markdown writer: Use an autolink when link text matches url.
14185 Previously we also checked for a null title, but this
14186 test fails for links produced by citeproc-hs in bibliographies.
14187 So, if the link has a title, it will be lost on conversion
14188 to an autolink, but that seems okay.
14190 * Markdown writer: Set title, author, date variables as before.
14191 These are no longer used in the default template, since we use
14192 titleblock, but we set them anyway for those who use custom templates.
14194 * LaTeX writer: Avoid extra space at start/end of table cell.
14195 Thanks to Nick Bart for the suggestion of using @{}.
14197 * `Text.Pandoc.Parsing`:
14199 + More efficient version of `anyLine`.
14200 + Type of `macro` has changed; the parser now returns `Blocks`
14201 instead of `Block`.
14203 * Relaxed old-time version bound, allowing 1.0.*.
14205 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
14206 should create a symlink as described in the README.
14208## pandoc 1.10.0.5 (2013-01-23)
14210 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
14211 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
14212 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
14214 * Markdown reader: Fixed bug with headerless grid tables.
14215 The 1.10 code assumed that each table header cell contains exactly one
14216 block. That failed for headerless tables (0) and also for tables with
14217 multiple blocks in a header cell. The code is fixed and tests provided.
14218 Thanks to Andrew Lee for pointing out the bug.
14220 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
14222 + Tilde code fences can again take a bare language string
14223 (`~~~ haskell`), not just curly-bracketed attributes
14224 (`~~~ {.haskell}`).
14225 + Backtick code blocks can take the curly-bracketed attributes.
14226 + Backtick code blocks don't *require* a language.
14227 + Consolidated code for the two kinds of fenced code blocks.
14229 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
14231 * Markdown writer: Use proportional font for email autolinks with
14232 obfuscation. Closes #714.
14234 * Corrected name of `blank_before_blockquote` in README. Closes #718.
14236 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
14237 The bug prevented an autolink at the end of a string (e.g.
14238 at the end of a line block line) from counting as a link. Closes #711.
14240 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
14241 This should work on Windows, unlike the TH solution with
14244 * Eliminated use of TH in test suite.
14246 * Added `Text.Pandoc.Data` (non-exported) to hold the association
14247 list of embedded data files, if the `embed_data_files` flag is selected.
14248 This isolates the code that needs special treatment with file-embed or
14251 * Changes to `make-windows-installer.bat`.
14253 + Exit batch file if any of the cabal-dev installs fail.
14254 + There's no longer any need to reinstall `highlighting-kate`.
14255 + Don't start with a `cabal update`; leave that to the user.
14256 + Force reinstall of pandoc.
14258 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
14261## pandoc 1.10.0.4 (2013-01-20)
14263 * Fixed bug with escaped % in LaTeX reader. Closes #710.
14265## pandoc 1.10.0.3 (2013-01-20)
14267 * Added further missing fb2 tests to cabal file.
14269## pandoc 1.10.0.2 (2013-01-20)
14271 * Added fb2 tests to cabal file's extra-source-files.
14273## pandoc 1.10.0.1 (2013-01-20)
14275 * Bump version bounds on test-framework packages.
14277## pandoc 1.10 (2013-01-19)
14281 * New input formats: `mediawiki` (MediaWiki markup).
14283 * New output formats: `epub3` (EPUB v3 with MathML),
14284 `fb2` (FictionBook2 ebooks).
14286 * New `--toc-depth` option, specifying how many levels of
14287 headers to include in a table of contents.
14289 * New `--epub-chapter-level` option, specifying the header
14290 level at which to divide EPUBs into separate files.
14291 Note that this normally affects only performance, not the
14292 visual presentation of the EPUB in a reader.
14294 * Removed the `--strict` option. Instead of using `--strict`,
14295 one can now use the format name `markdown_strict` for either input
14296 or output. This gives more fine-grained control that `--strict`
14297 did, allowing one to convert from pandoc's markdown to strict
14298 markdown or vice versa.
14300 * It is now possible to enable or disable specific syntax
14301 extensions by appending them (with `+` or `-`) to the writer
14302 or reader name. For example,
14304 pandoc -f markdown-footnotes+hard_line_breaks
14306 disables footnotes and enables treating newlines as hard
14307 line breaks. The literate Haskell extensions are now implemented
14308 this way as well, using either `+lhs` or `+literate_haskell`.
14309 For a list of extension names, see the README under
14310 "Pandoc's Markdown."
14312 * The following aliases have been introduced for specific
14313 combinations of markdown extensions: `markdown_phpextra`,
14314 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
14315 work just like regular reader and writer names, and can be modified
14316 with extension modifiers as described above. (Note that conversion
14317 from one markdown dialect to another does not work perfectly,
14318 because there are differences in markdown parsers besides
14319 just the extensions, and because pandoc's internal document model is
14320 not rich enough to capture all of the extensions.)
14322 * New `--html-q-tags` option. The previous default was to use `<q>`
14323 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
14324 Moreover, they are not a robust way of typesetting quotes, since
14325 some user agents don't support them, and some CSS resets (e.g.
14326 bootstrap) prevent pandoc's quotes CSS from working properly.
14327 We now just insert literal quote characters by default in both
14328 `html` and `html5` output, but this option is provided for
14329 those who still want `<q>` tags.
14331 * The markdown reader now prints warnings (to stderr) about
14332 duplicate link and note references. Closes #375.
14334 * Markdown syntax extensions:
14336 + Added pipe tables. Thanks to François Gannaz for the initial patch.
14337 These conform to PHP Markdown Extra's pipe table syntax. A subset
14338 of org-mode table syntax is also supported, which means that you can
14339 use org-mode's nice table editor to create tables.
14341 + Added support for RST-style line blocks. These are
14342 useful for verse and addresses.
14344 + Attributes can now be specified for headers, using the same
14345 syntax as in code blocks. (However, currently only the
14346 identifier has any effect in most writers.) For example,
14350 See [the header above](#foo).
14352 + Pandoc will now act as if link references have been defined
14353 for all headers without explicit identifiers.
14354 So, you can do this:
14358 Link to [My header].
14359 Another link to [it][My header].
14365 + Command macros now work everywhere, including non-math.
14366 Environment macros still not supported.
14367 + `\input` now works, as well as `\include`. TEXINPUTS is used.
14368 Pandoc looks recursively into included files for more included files.
14370### Behavior changes
14372 * The Markdown reader no longer puts the text of autolinks in a
14373 `Code` inline. This means that autolinks will no longer appear
14374 in a monospace font.
14376 * The character `/` can now appear in markdown citation keys.
14378 * HTML blocks in strict_markdown are no longer required to begin
14379 at the left margin. Technically this is required, according to
14380 the markdown syntax document, but `Markdown.pl` and other markdown
14381 processors are more liberal.
14383 * The `-V` option has been changed so that if there are duplicate
14384 variables, those specified later on the command line take precedence.
14386 * Tight lists now work in LaTeX and ConTeXt output.
14388 * The LaTeX writer no longer relien on the `enumerate` package.
14389 Instead, it uses standard LaTeX commands to change the list numbering
14392 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
14393 tables to be split over page boundaries.
14395 * The RST writer now uses a line block to render paragraphs containing
14396 linebreaks (which previously weren't supported at all).
14398 * The markdown writer now applies the `--id-prefix` to footnote IDs.
14401 * The plain writer no longer uses backslash-escaped line breaks
14402 (which are not very "plain").
14404 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
14405 Read bytestring and use `Text`'s decodeUtf8 instead of using
14406 `System.IO.hGetContents`. This way you get a message saying
14407 "invalid UTF-8 stream" instead of "invalid byte sequence."
14408 You are also told which byte caused the problem.
14410 * Docx, ODT, and EPUB writers now download images specified by a URL
14411 instead of skipping them or raising an error.
14415 + The default CSS now left-aligns headers by default, instead of
14416 centering. This is more consistent with the rest of the writers.
14417 + A proper multi-level table of contents is now used in `toc.ncx`.
14418 There is no longer a subsidiary table of contents at the beginning
14420 + Code highlighting now works by default.
14421 + Section divs are used by default for better semantic markup.
14422 + The title is used instead of "Title Page" in the table of contents.
14423 Otherwise we have a hard-coded English string, which looks
14424 strange in ebooks written in other languages. Closes #572.
14428 + Put mathjax in span with class "math". Closes #562.
14429 + Put citations in a span with class "citation." In HTML5, also include
14430 a `data-cite` attribute with a space-separated list of citation
14433 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
14434 This treats both `\r\n` and `\n` as `\n` on input, no matter
14435 what platform we're running on.
14437 * Citation processing is now done in the Markdown and LaTeX
14438 readers, not in `pandoc.hs`. This makes it easier for library users
14441### Template changes
14443 * HTML: Added css to template to preserve spaces in `<code>` tags.
14444 Thanks to Dirk Laurie.
14446 * Beamer: Remove English-centric strings in section pages.
14447 Section pages used to have "Section" and a number as well as the
14448 section title. Now they just have the title. Similarly for part
14449 and subsection. Closes #566.
14451 * LaTeX, ConTeXt: Added papersize variable.
14453 * LaTeX, Beamer templates: Use longtable instead of ctable.
14455 * LaTeX, Beamer templates: Don't require 'float' package for tables.
14456 We don't actually seem to use the '[H]' option.
14458 * Markdown, plain: Fixed titleblock so it is just a single string.
14459 Previously separate title, author, and date variables were used,
14460 but this didn't allow different kinds of title blocks.
14464 + Rationalized templates. Previously there were three different
14465 templates involved in epub production. There is now just one
14466 template, `default.epub` or `default.epub3`. It can now be
14467 overridden using `--template`, just like other templates.
14468 The titlepage is now folded into the default template.
14469 A `titlepage` variable selects it.
14470 + UTF-8, lang tag, meta tags, title element.
14472 * Added scale-to-width feature to beamer template
14476 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
14477 Previously header identifiers were autogenerated by the writers.
14478 Now they are added in the readers (either automatically or explicitly).
14480 * `Text.Pandoc.Builder`:
14482 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
14483 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
14484 custom Monoid instances for `Many Inline` and `Many Block. This
14485 allows `Many` to be made an instance of `Foldable` and `Traversable`.
14486 + The old `Listable` class has been removed.
14487 + The module now exports `isNull`, `toList`, `fromList`.
14488 + The old `Read` and `Show` instances have been removed; derived
14489 instances are now used.
14490 + Added `headerWith`.
14492 * The readers now take a `ReaderOptions` rather than a `ParserState`
14493 as a parameter. Indeed, not all parsers use the `ParserState` type;
14494 some have a custom state. The motivation for this change was to separate
14495 user-specifiable options from the accounting functions of parser state.
14497 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
14498 formerly in `Text.Pandoc.Shared`, and its associated
14499 data types. It also includes a new type `ReaderOptions`, which
14500 contains many options formerly in `ParserState`, and its associated
14503 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
14504 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
14505 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
14506 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
14507 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
14508 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
14509 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
14510 + `ParserState.stateIndentedCodeClasses` ->
14511 `ReaderOptions.readerIndentedCodeClasses`.
14512 + Added `ReaderOptions.readerCitationStyle`.
14514 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
14515 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
14516 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
14517 been renamed `writerEpubMetadata` for consistency.
14519 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
14520 longer stylesheet, fonts, reference files as separate parameters.
14522 * Removed `writerLiterateHaskell` from `WriterOptions`, and
14523 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
14524 by an extension (`Ext_literate_haskell`).
14526 * Removed deprecated `writerXeTeX`.
14528 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
14529 Strict is now handled through extensions.
14531 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
14532 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
14533 and `multimarkdownExtensions`, as well as the `Extensions` type.
14535 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
14538 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
14539 (thanks to Sergey Astanin).
14543 + Added `getReader`, `getWriter` to `Text.Pandoc`.
14544 + `writers` is now an association list `(String, Writer)`.
14545 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
14546 an `IOByteStringWriter`. ALL writers are now in the 'writers'
14547 list, including the binary writers and FB2 writer. This allows
14548 code in `pandoc.hs` to be simplified.
14549 + Changed type of `readers`, so all readers are in IO.
14550 Users who want pure readers can still get them form the reader
14551 modules; this just affects the function `getReader` that looks up
14552 a reader based on the format name. The point of this change is to
14553 make it possible to print warnings from the parser.
14555 * `Text.Pandoc.Parsing`:
14557 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
14558 No other module directly imports Parsec. This will make it easier
14559 to change the parsing backend in the future, if we want to.
14560 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
14561 + Export the type synonym `Parser`.
14562 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
14563 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
14564 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
14565 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
14566 + `ParserState` is no longer an instance of `Show`.
14567 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
14568 + Generalized type of `withQuoteContext`.
14569 + Added `guardEnabled`, `guardDisabled`, `getOption`.
14570 + Removed `failIfStrict`.
14571 + `lookupKeySrc` and `fromKey` are no longer exported.
14573 * `Data.Default` instances are now provided for `ReaderOptions`,
14574 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
14575 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
14576 of `defaultWriterOptions` (which is still defined). Closes #546.
14578 * `Text.Pandoc.Shared`:
14580 + Added `safeRead`.
14581 + Renamed `removedLeadingTrailingSpace` to `trim`,
14582 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
14583 + Count `\r` as space in `trim` functions.
14584 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
14586 + Removed `failUnlessLHS`.
14587 + Export `compactify'`, formerly in Markdown reader.
14588 + Export `isTightList`.
14589 + Do not export `findDataFile`.
14590 + `readDataFile` now returns a strict ByteString.
14591 + Export `readDataFileUTF8` which returns a String, like the
14592 old `readDataFile`.
14593 + Export `fetchItem` and `openURL`.
14595 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
14596 Removed `readImageSize`.
14598 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
14599 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
14602 * `Text.Pandoc.UTF8` is now an exposed module.
14604 * `Text.Pandoc.Biblio`:
14606 + csl parameter now a `String` rather than a `FilePath`.
14607 + Changed type of `processBiblio`. It is no longer in the IO monad.
14608 It now takes a `Maybe Style` argument rather than parameters for CSL
14609 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
14610 the style file and add abbreviations.)
14612 * Markdown reader now exports `readMarkdownWithWarnings`.
14614 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
14619 * Make `--ascii` work properly with `--self-contained`. Closes #568.
14623 + Fixed link parser to avoid exponential slowdowns. Closes #620.
14624 Previously the parser would hang on input like this:
14626 [[[[[[[[[[[[[[[[[[hi
14628 We fixed this by making the link parser parser characters
14629 between balanced brackets (skipping brackets in inline code spans),
14630 then parsing the result as an inline list. One change is that
14632 [hi *there]* bud](/url)
14634 is now no longer parsed as a link. But in this respect pandoc behaved
14635 differently from most other implementations anyway, so that seems okay.
14637 + Look for raw html/latex blocks before tables.
14638 Otherwise the following gets parsed as a table:
14649 + Added support for `:target:` on `.. image::` blocks
14651 + Field list fixes:
14653 - Fixed field lists items with body beginning after a new line
14655 - Allow any char but ':' in names of field lists in RST reader
14657 - Don't allow line breaks in field names.
14658 - Require whitespace after field list field names.
14659 - Don't create empty definition list for metadata field lists.
14660 Previously a field list consisting only of metadata fields (author,
14661 title, date) would be parsed as an empty DefinitionList, which is
14662 not legal in LaTeX and not needed in any format.
14664 + Don't recognize inline-markup starts inside words.
14665 For example, `2*2 = 4*1` should not contain an emphasized
14666 section. Added test case for "Literal symbols". Closes #569.
14667 + Allow dashes as separator in simple tables. Closes #555.
14668 + Added support for `container`, `compound`, `epigraph`,
14669 `rubric`, `highlights`, `pull-quote`.
14670 + Added support for `.. code::`.
14671 + Made directive labels case-insensitive.
14672 + Removed requirement that directives begin at left margin.
14673 This was (correctly) not in earlier releases; docutils doesn't
14674 make the requirement.
14675 + Added support for `replace::` and `unicode::` substitutions.
14676 + Ignore unknown interpreted roles.
14677 + Renamed image parser to `subst`, since it now handles all
14678 substitution references.
14682 + Allow newlines before pipes in table. Closes #654.
14683 + Fixed bug with list items containing line breaks.
14684 Now pandoc correctly handles hard line breaks inside list items.
14685 Previously they broke list parsing.
14686 + Implemented comment blocks.
14687 + Fixed bug affected words ending in hyphen.
14688 + Properly handle links with surrounding brackets.
14689 Square brackets need to be used when the link isn't surrounded by
14690 spaces or punctuation, or when the URL ending may be ambiguous.
14692 + Removed nullBlock. Better to know about parsing problems than
14693 to skip stuff when we get stuck.
14694 + Allow ID attributes on headers.
14695 + Textile reader: Avoid parsing dashes as strikeout.
14696 Previously the input
14703 would be parsed with strikeouts rather than dashes. This fixes
14704 the problem by requiring that a strikeout delimiting - not be
14705 followed by a -. Closes #631.
14706 + Expanded list of `stringBreakers`.
14707 This fixes a bug on input like "(_hello_)" which should
14708 be a parenthesized emphasized "hello".
14709 The new list is taken from the PHP source of textile 2.4.
14710 + Fixed autolinks. Previously the textile reader and writer
14711 incorrectly implented RST-style autolinks for URLs and email
14712 addresses. This has been fixed. Now an autolink is done this way:
14713 `"$":http://myurl.com`.
14714 + Fixed footnotes bug in textile. This affected notes occurring
14715 before punctuation, e.g. `foo[1].`. Closes #518.
14719 + Better handling of citation commands.
14720 + Better handling of `\noindent`.
14721 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
14723 + Made `rawLaTeXInline` try to parse block commands as well. This
14724 is usually what we want, given how `rawLaTeXInline` is used in
14725 the markdown and textile readers. If a block-level LaTeX command
14726 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
14727 we can treat it as raw inline LaTeX.
14728 + Handle `\slash` command. Closes #605.
14729 + Basic `\enquote` support.
14730 + Fixed parsing of paragraphs beginning with a group. Closes #606.
14731 + Use curly quotes for bare straight quotes.
14732 + Support obeylines environment. Closes #604.
14733 + Guard against "begin", "end" in inlineCommand and
14735 + Better error messages for environments. Now it should tell you that
14736 it was looking for \end{env}, instead of giving "unknown parse error."
14740 + Added HTML 5 tags to list of block-level tags.
14741 + HTML reader: Fixed bug in `htmlBalanced`, which
14742 caused hangs in parsing certain markdown input using
14744 + Parse `<q>` as `Quoted DoubleQuote`.
14745 + Handle nested `<q>` tags properly.
14746 + Modified `htmlTag` for fewer false positives.
14747 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
14748 This makes it more useful in the wikimedia and markdown parsers.
14750 * DocBook reader: Support title in "figure" element. Closes #650.
14752 * MediaWiki writer:
14754 + Remove newline after `<br/>` in translation of `LineBreak`
14755 There's no particular need for a newline (other than making the
14756 generated MediaWiki source look nice to a human), and in fact
14757 sometimes it is incorrect: in particular, inside an enumeration, list
14758 items cannot have embedded newline characters. (Brent Yorgey)
14759 + Use `<code>` not `<tt>` for Code.
14761 * Man writer: Escape `-` as `\-`.
14762 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
14763 signs. That is preferable for use with command-line options. See
14764 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
14765 to Andrea Bolognani for bringing the issue to our attention.
14769 + Improved line block output. Use nonbreaking spaces for
14770 initial indent (otherwise lost in HTML and LaTeX).
14771 Allow multiple paragraphs in a single line block.
14772 Allow soft breaks w continuations in line blocks.
14773 + Properly handle images with no alt text. Closes #678.
14774 + Fixed bug with links with duplicate text. We now (a) use anonymous
14775 links for links with inline URLs, and (b) use an inline link instead
14776 of a reference link if the reference link would require a label that
14777 has already been used for a different link. Closes #511.
14778 + Fixed hyperlinked images. Closes #611. Use `:target:`
14779 field when you have a simple linked image.
14780 + Don't add `:align: center` to figures.
14782 * Texinfo writer: Fixed internal cross-references.
14783 Now we insert anchors after each header, and use `@ref` instead of `@uref`
14784 for links. Commas are now escaped as `@comma{}` only when needed;
14785 previously all commas were escaped. (This change is needed, in part,
14786 because `@ref` commands must be followed by a real comma or period.) Also
14787 insert a blank line in from of `@verbatim` environments.
14791 + Made --id-prefix work in DocBook as well as HTML.
14793 + Don't include empty captions in figures. Closes #581.
14797 + Use `\hspace*` for nonbreaking space after line break,
14798 since `~` spaces after a line break are just ignored.
14800 + Don't escape `_` in URLs or hyperref identifiers.
14801 + Properly escape strings inside `\url{}`. Closes #576.
14802 + Use `[fragile]` only for slides containing code rendered
14803 using listings. Closes #649.
14804 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
14805 highlighting-kate's macros, which redefine `|` as a short verbatim
14806 delimiter. Thanks to Björn Peemöller for raising this issue.
14807 + Use minipage rather than parbox for block containers in tables.
14808 This allows verbatim code to be included in grid tables.
14810 + Prevent paragraphs containing only linebreaks or spaces.
14814 + Included `highlighting-css` for code spans, too.
14815 Previously it was only included if used in a code block. Closes #653.
14816 + Improved line breaks with `<dd>` tags. We now put a newline between
14817 `</dd>` and `<dd>` when there are multiple definitions.
14818 + Changed mathjax cdn url so it doesn't use https. (This caused
14819 problems when used with `--self-contained`.) See #609.
14823 + `--number-sections` now works properly.
14824 + Don't strip meta and link elements in epub metadata.
14825 Patch from aberrancy. Closes #589.
14826 + Fixed a couple validation bugs.
14827 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
14828 of chapters in some readers, which apparently sort ch2 after ch10.
14831 * ODT writer: properly set title property (Arlo O'Keeffe).
14835 + Fixed bug with nested lists. Previously a list like
14842 would come out with a bullet instead of "2."
14843 Thanks to Russell Allen for reporting the bug.
14844 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
14845 This seems to fix a problem viewing pandoc-generated
14846 docx files in LibreOffice.
14847 + Use integer ids for bookmarks. Closes #626.
14848 + Added nsid to abstractNum elements. This helps when merging
14849 word documents with numbered or bulleted lists. Closes #627.
14850 + Use separate footnotes.xml for notes.
14851 This seems to help LibreOffice convert the file, even though
14852 it was valid docx before. Closes #637.
14853 + Use rIdNN identifiers for r:embed in images.
14854 + Avoid reading image files again when we've already processed them.
14855 + Fixed typo in `referenc.docx` that prevented image captions from
14856 working. Thanks to Huashan Chen.
14858 * `Text.Pandoc.Parsing`:
14860 + Fixed bug in `withRaw`, which didn't correctly handle the case
14861 where nothing is parsed.
14862 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
14863 though it still doesn't implement quoted strings in email addresses.
14864 + Revised URI parser. It now allows many more schemes, allows
14865 uppercase URIs, and better handles trailing punctuation and
14866 trailing slashes in bare URIs. Added many tests.
14867 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
14868 etc. parse properly. Formerly we had some English-centric heuristics,
14869 but they are no longer needed. Closes #698.
14871 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
14872 This fixes bug with Chinese commas in markdown and reST tables, and
14873 a bug that caused combining characters to be dropped.
14875 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
14877 * `Text.Pandoc.Biblio`:
14879 + Run `mvPunc` and `deNote` on metadata too.
14880 This fixed a bug with notes on titles using footnote styles.
14881 + Fixed bug in fetching CSL files from CSL data directory.
14883 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
14884 is provided. It should be the URL up to the path.
14886 * Fixed/simplified diff output for tests.
14887 Biblio: Make sure mvPunc and deNote run on metadata too.
14888 This fixed a bug with notes on titles using footnote styles.
14890### Under the hood improvements
14892 * We no longer depend on `utf8-string`. Instead we use functions
14893 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
14895 * Use `safeRead` instead of using `reads` directly (various modules).
14897 * "Implicit figures" (images alone in a paragraph) are now handled
14898 differently. The markdown reader gives their titles the prefix `fig:`; the
14899 writers look for this before treating the image as a figure. Though this
14900 is a bit of a hack, it has two advantages: (i) implicit figures can be
14901 limited to the markdown reader, and (ii) they can be deactivated by turning
14902 off the `implicit_figures` extension.
14904 * `catch` from `Control.Exception` is now used instead of the
14905 old Preface `catch`.
14907 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
14908 and `oneOfStrings` (which is now non-backtracking).
14910 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
14911 Now citeproc-hs is fixed upstream, so this is no longer needed.
14914 * Textile reader: Improved speed of `hyphenedWords`.
14915 This speeds up the textile reader by about a factor of 4.
14917 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
14918 better performance, and automatic normalization.
14920 * Major rewrite of markdown reader:
14922 + Use `Text.Pandoc.Builder` instead of lists. This also
14923 means that everything is normalized automatically.
14924 + Move to a one-pass parsing strategy, returning values in the reader
14925 monad, which are then run (at the end of parsing) against the final
14928 * In HTML writer, we now use `toHtml` instead of pre-escaping.
14929 We work around the problem that blaze-html unnecessarily escapes `'`
14930 by pre-escaping just the `'` characters, instead of the whole string.
14931 If blaze-html later stops escaping `'` characters, we can simplify
14932 `strToHtml` to `toHtml`. Closes #629.
14934 * Moved code for embedding images in RTFs from `pandoc.hs` to the
14935 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
14937 * Moved citation processing from `pandoc.hs` into the readers.
14938 This makes things more convenient for library users.
14940 * The man pages are now built by an executable `make-pandoc-man-pages`,
14941 which has its own stanza in the cabal file so that dependencies can be
14942 handled by Cabal. Special treatment in `Setup.hs` ensures that this
14943 executable never gets installed; it is only used to create the man pages.
14945 * The cabal file has been modified so that the pandoc library is used
14946 in building the pandoc executable. (This required moving `pandoc.hs`
14947 from `src` to `.`.) This cuts compile time in half.
14949 * The `executable` and `library` flags have been removed.
14951 * `-threaded` has been removed from ghc-options.
14953 * Version bounds of dependencies have been raised, and the
14954 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
14957 * We now require base >= 4.2.
14959 * Integrated the benchmark program into cabal. One can now do:
14961 cabal configure --enable-benchmarks && cabal build
14962 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
14964 The benchmark now uses README + testsuite, so benchmark results
14965 from older versions aren't comparable.
14967 * Integrated test suite with cabal.
14968 To run tests, configure with `--enable-tests`, then `cabal test`.
14969 You can specify particular tests using `--test-options='-t markdown'`.
14970 No output is shown unless tests fail. The Haskell test modules
14971 have been moved from `src/` to `tests/`.
14973 * Moved all data files and templates to the `data/` subdirectory.
14975 * Added an `embed_data_files` cabal flag. This causes all
14976 data files to be embedded in the binary, so that the binary
14977 is self-sufficient and can be relocated anywhere, copied on
14978 a USB key, etc. The Windows installer now uses this.
14979 (Since we no longer have the option to build the executable
14980 without the library, this is the only way to get a relocatable
14981 binary on Windows.)
14983 * Removed pcre3.dll from windows package.
14984 It isn't needed unless highlighting-kate is compiled with the
14985 `pcre-light` flag. By default, regex-prce-builtin is used.
14988## pandoc 1.9.4.5 (2012-10-21)
14990 * Raised version bounds on network, base64-bytestring, json,
14991 and template-haskell.
14993## pandoc 1.9.4.4 (2012-10-20)
14995 * Removed `tests` flag and made test suite into a proper cabal
14996 test suite, which can now be enabled using `--enable-tests`
14997 and run with `cabal test`.
14999 * Moved man page creation out of `Setup.hs` and into an
15000 executable built by Cabal, but never installed. This
15001 allows dependencies to be specified, and solves a problem
15002 with 1.9.4.3, which could only be installed if `data-default`
15003 had already been installed.
15005 * Updated `lhs-latex.tex` test for latest highlighting-kate
15006 representation of backticks.
15008## pandoc 1.9.4.3 (2012-10-20)
15010 * Removed `-threaded` from default compile flags.
15012 * Modified modules to compile with GHC 7.6 and latest version of time
15015## pandoc 1.9.4.2 (2012-06-29)
15017 * Don't encode/decode file paths if base >= 4.4.
15018 Prior to base 4.4, filepaths and command line arguments were treated
15019 as unencoded lists of bytes, not unicode strings, so we had to work
15020 around that by encoding and decoding them. This commit adds CPP
15021 checks for the base version that intelligibly enable encoding/decoding
15022 when needed. Fixes a bug with multilingual filenames when pandoc was
15023 compiled with ghc 7.4 (#540).
15025 * Don't generate an empty H1 after hrule slide breaks.
15026 We now use a slide-level header with contents `[Str "\0"]` to mark
15027 an hrule break. This avoids creation of an empty H1 in these
15028 contexts. Closes #484.
15030 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
15032 * In make_osx_package.sh, ensure citeproc-hs is built with the
15033 embed_data_files flag.
15035 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
15037 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
15038 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
15040 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
15043 * Added webm to mime types. Closes #543.
15045 * Added some missing exports and tests to the cabal file
15046 (Alexander V Vershilov).
15048 * Compile with `-rtsopts` and `-threaded` by default.
15050## pandoc 1.9.4.1 (2012-06-08)
15052 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
15054 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
15055 variables. Make TOC links black.
15057 * LaTeX template improvements.
15059 + Don't print date unless one is given explicitly in the document.
15060 + Simplified templates.
15061 + Use fontenc [T1] by default, and lmodern.
15062 + Use microtype if available.
15066 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
15067 Motivation: `@item1 [50]` should be as close as possible to
15069 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
15070 beginning with a citation to be empty. Closes #531.
15072 * Fixed documentation on mixed lists. Closes #533.
15074## pandoc 1.9.4 (2012-06-03)
15076 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
15077 footnotes and captions. We now handle note citations by inserting
15078 footnotes during initial citation processing, and doing a separate
15079 pass later to remove notes inside notes.
15081 * Added 'zenburn' highlight style from highlighting-kate.
15083 * Added Slideous writer. Slideous is an HTML + javascript slide show
15084 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
15088 + Ensure we don't have extra blank lines at ends of cells.
15089 This can cause LaTeX errors, as they are interpreted as new paragraphs.
15090 + More consistent interblock spacing.
15091 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
15092 code in LaTeX. Closes #527.
15093 + Ensure that a Verbatim at the end of a footnote is followed by
15094 a newline. (Fixes a regression in the previous version.)
15095 + In default template, use black for internal links and TOC.
15096 Added commented-out code to use footnotes for links, as would
15097 be suitable in print output.
15099 * Beamer writer: When `--incremental` is used, lists inside
15100 a block quote should appear all at once. (This makes Beamer
15101 output consistent with the HTML slide show formats.)
15105 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
15106 to avoid gobbling spaces after the `%` sign.
15107 + Ensure space after `\stopformula`.
15111 + Use `:` form instead of `~` in definition lists, for better
15112 compatibility with other markdown implementations.
15113 + Don't wrap the term, because it breaks definition lists.
15114 + Use a nonzero space to prevent false recognition
15115 of list marker in ordered lists. Closes #516.
15117 * Org writer: Add space before language name. Closes #523.
15119 * Docx writer: Simplified bullet characters so they work properly
15120 with Word 2007. Closes #520.
15122 * LaTeX reader: Support `\centerline`.
15124 * RST reader: handle figures. Closes #522.
15126 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
15129## pandoc 1.9.3 (2012-05-12)
15131 * Added docbook reader (with contributions from Mauro Bieg).
15133 * Fixed bug in `fromEntities`. The previous version would turn
15134 `hi & low you know;` into `hi &`.
15138 + Don't skip nonbreaking spaces.
15139 Previously a paragraph containing just ` ` would be rendered
15140 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
15141 + Support `<col>` and `<caption>` in tables. Closes #486.
15145 + Don't recognize references inside delimited code blocks.
15146 + Allow list items to begin with lists.
15150 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
15151 + Control sequences can't be followed by a letter.
15152 This fixes a bug where `\begingroup` was parsed as `\begin`
15153 followed by `group`.
15154 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
15155 + Make `\label` and `\ref` sensitive to `--parse-raw`.
15156 If `--parse-raw` is selected, these will be parsed as raw latex
15157 inlines, rather than bracketed text.
15158 + Don't crash on unknown block commands (like `\vspace{10pt}`)
15159 inside `\author`; just skip them. Closes #505.
15163 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
15164 + Added support for LaTeX blocks and inlines (Paul Rivier).
15165 + Better conformance to RedCloth inline parsing (Paul Rivier).
15166 + Parse '+text+' as emphasized (should be underlined, but this
15167 is better than leaving literal plus characters in the output.
15169 * Docx writer: Fixed multi-paragraph list items. Previously they each
15170 got a list marker. Closes #457.
15174 + Added `--no-tex-ligatures` option to avoid replacing
15175 quotation marks and dashes with TeX ligatures.
15176 + Use `fixltx2e` package to provide `\textsubscript`.
15177 + Improve spacing around LaTeX block environments:
15178 quote, verbatim, itemize, description, enumerate.
15180 + Use blue instead of pink for URL links in latex/pdf output.
15182 * ConTeXt writer: Fixed escaping of `%`.
15183 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
15184 Inside URLs, `%` needs to be escaped as `\%`
15185 Thanks to jmarca and adityam for the fix. Closes #492.
15187 * Texinfo writer: Escape special characters in node titles.
15188 This fixes a problem pointed out by Joost Kremers. Pandoc used
15189 to escape an '@' in a chapter title, but not in the corresponding
15190 node title, leading to invalid texinfo.
15192 * Fixed document encoding in texinfo template.
15193 Resolves Debian Bug #667816.
15197 + Don't force delimited code blocks to be flush left.
15198 Fixes bug with delimited code blocks inside lists etc.
15199 + Escape `<` and `$`.
15201 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
15202 Previously we used `\href{\#ident}{text}`, which didn't work on
15203 all systems. Thanks to Dirk Laurie.
15205 * RST writer: Don't wrap link references. Closes #487.
15207 * Updated to use latest versions of blaze-html, mtl.
15210## pandoc 1.9.2 (2012-04-05)
15214 + Made `lstlisting` work as a proper verbatim environment.
15215 + Fixed bug parsing LaTeX tables with one column.
15219 + Use `{}` around `ctable` caption, so that formatting can be used.
15220 + Don't require eurosym package unless document has a €.
15222 * LaTeX template: Added variables for `geometry`, `romanfont`,
15223 `sansfont`, `mathfont`, `mainfont` so users can more easily
15228 + Run latex engine at least two times, to ensure
15229 that PDFs will have hyperlinked bookmarks.
15230 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
15232 * Texinfo writer: retain directories in image paths. (Peter Wang)
15234 * RST writer: Better handling of inline formatting, in accord
15235 with docutils' "inline markup recognition rules" (though we don't
15236 implement the unicode rules fully). Now `hi*there*hi` gets
15237 rendered properly as `hi\ *there*\ hi`, and unnecessary
15238 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
15242 + Parse `\ ` as null, not escaped space.
15243 + Allow `` :math:`...` `` even when not followed by blank
15244 or `\`. This does not implement the complex rule docutils follows,
15245 but it should be good enough for most purposes.
15246 + Add support for the rST default-role directive. (Greg Maslov)
15248 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
15251 * Markdown reader: Properly handle citations nested in other inline
15254 * Markdown writer: don't replace empty alt in image with "image".
15256 * DZSlides: Updated template.html and styles in default template.
15257 Removed bizarre CSS for `q` in dzslides template.
15259 * Avoid repeated `id` attribute in section and header in HTML slides.
15261 * README improvements: new instructions on internal links,
15262 removed misleading note on reST math.
15266 + Fixed Windows installer so that dzslides works.
15267 + Removed stripansi.sh.
15268 + Added .travis.yml for Travis continuous integration support..
15269 + Fixed upper bound for zlib (Sergei Trofimovich).
15270 + Fixed upper bound for test-framework.
15271 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
15274## pandoc 1.9.1.2 (2012-03-09)
15276 * Added `beamer+lhs` as output format.
15278 * Don't escape `<` in `<style>` tags with `--self-contained`.
15279 This fixes a bug which prevented highlighting from working
15280 when using `--self-contained`.
15282 * PDF: run latex engine three times if `--toc` specified.
15283 This fixes page numbers in the table of contents.
15285 * Docx writer: Added TableNormal style to tables.
15287 * LaTeX math environment fixes. `aligned` is now used instead of
15288 the nonexistent `aligned*`. `multline` instead of the nonexistent
15291 * LaTeX writer: Use `\textasciitilde` for literal `~`.
15293 * HTML writer: Don't escape contents of EQ tags with --gladtex.
15294 This fixes a regression from 1.8.
15296 * Use `<q>` tags for Quoted items for HTML5 output.
15297 The quote style can be changed by modifying the template
15298 or including a css file. A default quote style is included.
15300 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
15301 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
15303 * Updated LaTeX template for better language support.
15304 Use `polyglossia` instead of `babel` with xetex.
15305 Set `lang` as documentclass option.
15306 `\setmainlanguage` will use the last of a comma-separated
15307 list of languages. Thanks to François Gannaz.
15309 * Fixed default LaTeX template so `\euro` and `€` work. The
15310 `eurosym` package is needed if you are using pdflatex.
15312 * Fixed escaping of period in man writer (thanks to Michael Thompson).
15314 * Fixed list label positions in beamer.
15316 * Set `mainlang` variable in context writer.
15317 This parallels behavior of latex writer. `mainlang` is the last
15318 of a comma-separated list of languages in lang.
15320 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
15322 * Changed `-V` so that you can specify a key without a value.
15323 Such keys get the value `true`.
15325 * Fixed permissions on installed man pages - thanks Magnus Therning.
15327 * Windows installer: require XP or higher. The installer is
15328 now compiled on a Windows 7 machine, which fixes a problem
15329 using citation functions on Windows 7.
15331 * OSX package: Check for 64-bit Intel CPU before installing.
15334## pandoc 1.9.1.1 (2012-02-11)
15336 * Better handling of raw latex environments in markdown. Now
15342 turns into a raw latex block as expected.
15344 * Improvements to LaTeX reader:
15346 + Skip options after block commands.
15347 + Correctly handle `{\\}` in braced.
15348 + Added a needed 'try'.
15349 + Citations: add `, ` to suffix if it doesn't start with space or
15350 punctuation. Otherwise we get no space between the year and the
15351 suffix in author-date styles.
15353 * Added two needed data files for S5. This fixes a problem with
15354 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
15355 which was no longer being used.
15357 * Fixed some minor problems in `reference.docx`:
15358 name on "Date" style, `xCs` instead of `xIs`.
15360 * Fixed a problem creating docx files using a reference docx
15361 modified using Word. The problem seems to be that Word
15362 modifies `_rels/.rels`, changing the Type of the Relationship to
15363 `docProps/core.xml`. Pandoc now changes this back to the correct
15364 value if it has been altered, fixing the problem.
15366 * Fixed html5 template so it works properly with highlighting.
15368## pandoc 1.9.1 (2012-02-09)
15372 + Fixed regression in 1.9; properly handle escaped $ in latex math.
15373 + Put LaTeX verse environments in blockquotes.
15377 + Limit nesting of strong/emph. This avoids exponential lookahead
15378 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
15379 + Improved attributes syntax (in code blocks/spans): (1)
15380 Attributes can contain line breaks. (2) Values in key-value
15381 attributes can be surrounded by either double or single quotes, or
15382 left unquoted if they contain no spaces.
15384 * Headers no longer wrap in markdown or RST writers.
15386 * Added `stateMaxNestingLevel` to `ParserState`.
15387 We set this to 6, so you can still have `Emph` inside `Emph`,
15388 just not indefinitely.
15390 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
15392 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
15395 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
15397## pandoc 1.9.0.5 (2012-02-06)
15399 * Changed cabal file so that build-depends for the test program
15400 are not required unless the tests flag is used.
15402 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
15403 form ligatures (dashes) in code spans.
15405## pandoc 1.9.0.4 (2012-02-06)
15407 * Raised version bound on test-framework to avoid problems
15408 compiling tests on GHC 7.4.1.
15410 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
15411 so citations don't just disappear unless you process with
15412 citeproc. Ignore `\bibliographystyle`, `\nocite`.
15414 * Simplified tex2pdf; it will always run latex twice to
15415 resolve table of contents and hyperrefs.
15417## pandoc 1.9.0.3 (2012-02-06)
15419 * Require Cabal >= 1.10.
15421 * Tweaked cabal file to meet Cabal 1.10 requirements.
15423## pandoc 1.9.0.2 (2012-02-05)
15425 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
15428## pandoc 1.9 (2012-02-05)
15432 * Added a Microsoft Word `docx` writer. The writer includes support
15433 for highlighted code and for math (which is converted from TeX to OMML,
15434 Office's native math markup language, using texmath's new OMML module).
15435 A new option `--reference-docx` allows the user to customize the
15438 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
15440 * Better support for slide shows:
15442 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
15443 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
15445 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
15446 slide presentations.
15448 + New, flexible rules for dividing documents into sections and slides
15449 (see the "Structuring the slide show" in the User's Guide). These
15450 are backward-compatible with the old rules, but they allow slide
15451 shows to be organized into sections and subsections containing
15454 + A new `--slide-level` option allows users to override defaults
15455 and select a slide level below the first header level with content.
15457 * A new `--self-contained` option produces HTML output that does not
15458 depend on an internet connection or the presence of any external
15459 files. Linked images, CSS, and javascript is downloaded (or fetched
15460 locally) and encoded in `data:` URIs. This is useful for making portable
15461 `HTML slide shows. The --offline` option has been deprecated and is now
15462 `treated as a synonym or --self-contained`.
15464 * Support for PDF output:
15466 + Removed the old `markdown2pdf`.
15467 + `pandoc` can now create PDFs (assuming you have latex and a set of
15468 appropriate packages installed): just specify an output file with the
15470 + A new option `--latex-engine` allows you to specify `pdflatex`,
15471 `xelatex`, or `lualatex` as the processor.
15473 * Highlighting changes:
15475 + Syntax highlighting is now a standard feature; the `highlighting`
15476 flag is no longer needed when compiling.
15477 + A new `--no-highlight` option allows highlighting to be disabled.
15478 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
15479 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
15480 + A new `--highlight-style` option selects between various highlighting
15483 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
15485 * LaTeX `\include` and `\usepackage` commands are now processed,
15486 provided the files are in the working directory.
15488 * EPUB improvements:
15490 + Internal and external links now work in EPUB.
15491 + Raw HTML is allowed.
15492 + New `--epub-embed-font` option.
15493 + Customizable templates for EPUB pages offer more control over
15494 formatting: `epub-page.html`, `epub-coverimage.html`,
15495 `epub-titlepage.html`.
15497 * `--mathml` now works with DocBook.
15499 * Added support for math in RST reader and writer. Inline math uses the
15500 `` :math:`...` `` construct. Display math uses
15504 or if the math is multiline,
15510 These constructions are now supported now by `rst2latex.py`.
15512 * Github syntax for fenced code blocks is supported in pandoc's
15513 markdown. You can now write
15525 * Easier scripting: a new `toJsonFilter` function makes it easier to
15526 write Haskell scripts to manipulate the Pandoc AST.
15527 See [Scripting with pandoc](scripting.html#pandoc-1.9-changes).
15529### Behavior changes
15531 * Fixed parsing of consecutive lists in markdown.
15532 Pandoc previously behaved like Markdown.pl for consecutive
15533 lists of different styles. Thus, the following would be parsed
15534 as a single ordered list, rather than an ordered list followed
15535 by an unordered list:
15543 This change makes pandoc behave more sensibly, parsing this as
15544 two lists. Any change in list type (ordered/unordered) or in
15545 list number style will trigger a new list. Thus, the following
15546 will also be parsed as two lists:
15554 Since we regard this as a bug in Markdown.pl, and not something
15555 anyone would ever rely on, we do not preserve the old behavior
15556 even when `--strict` is selected.
15558 * Dashes work differently with `--smart`: `---` is always em-dash,
15559 and `--` is always en-dash. Pandoc no longer tries to guess when
15560 `-` should be en-dash. *Note:* This may change how existing documents
15561 look when processed with pandoc. A new option, `--old-dashes`,
15562 is provided for legacy documents.
15564 * The markdown writer now uses setext headers for levels 1-2.
15565 The old behavior (ATX headers for all levels) can be restored
15566 using the new `--atx-headers` option.
15568 * Links are now allowed in markdown image captions. They are also
15569 allowed in links, but will appear there as regular text. So,
15571 [link with [link](/url)](/url)
15575 <p><a href="/url">link with link</a></p>
15577 * Improved handling of citations using `citeproc-hs-0.3.4`.
15578 Added `--citation-abbreviations` option.
15580 * Citation keys can no longer end with a punctuation character.
15581 This means that `@item1.` will be parsed as a citation with key
15582 'item1', followed by a period, instead of a citation with key
15583 'item1.', as was the case previously.
15585 * In HTML output, citations are now put in a span with class `citation`.
15587 * The markdown reader now recognizes DocBook block and inline tags.
15588 It was always possible to include raw DocBook tags in a markdown
15589 document, but now pandoc will be able to distinguish block from
15590 inline tags and behave accordingly. Thus, for example,
15596 will not be wrapped in `<para>` tags.
15598 * The LaTeX parser has been completely rewritten; it is now much more
15599 accurate, robust, and extensible. However, there are two important
15600 changes in how it treats unknown LaTeX. (1) Previously, unknown
15601 environments became BlockQuote elements; now, they are treated
15602 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
15603 same as `xyz`. (2) Previously, arguments of unknown commands
15604 were passed through with their braces; now the braces are stripped
15607 * `--smart` is no longer selected automatically with `man` output.
15609 * The deprecated `--xetex` option has been removed.
15611 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
15612 instead. `html5` and `html5+lhs` are now separate output formats.
15614 * Single quotes are no longer escaped in HTML output. They do not
15615 need to be escaped outside of attributes.
15617 * Pandoc will no longer transform leading newlines in code
15618 blocks to `<br/>` tags.
15620 * The ODT writer now sizes images appropriately, using the image
15621 size and DPI information embedded in the image.
15623 * `--standalone` is once again implicitly for a non-text output format
15624 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
15625 and get a standalone ODT file.
15627 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
15630 * The HTML writer now uses `<del>` for strikeout.
15632 * In HTML output with `--section-divs`, the classes `section` and
15633 `level[1,2,..6]` are put on the `div` tags so they can be styled.
15634 In HTML 5 output with `--section-divs`, the classes
15635 `level[1,2,...6]` are put on `section` tags.
15637 * EPUB writer changes:
15639 + The `lang` variable now sets the language
15640 in the metadata (if it is not set, we default to the locale).
15641 + EPUB: UTF-8 is used rather than decimal entities.
15643 * Added `titleslide` class to title slide in S5 template.
15645 * In HTML, EPUB, and docx metadata, the date is normalized into
15646 YYYY-MM-DD format if possible. (This is required for validation.)
15648 * Attributes in highlighted code blocks are now preserved in HTML.
15649 The container element will have the classes, id, and key-value attributes
15650 you specified in the delimited code block. Previously these were stripped
15653 * The reference backlink in the HTML writer no longer has a special
15654 `footnoteBacklink` class.
15656 * The HTML template has been split into `html` and `html5` templates.
15658 * Author and date are treated more consistently in HTML templates.
15659 Authors are now `<h2>`, date `<h3>`.
15661 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
15663 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
15667 * Better support for combining characters and East Asian wide characters
15668 in markdown and reST.
15670 * Better handling of single quotes with `--smart`.
15671 Previously `D'oh l'*aide*` would be parsed with left and right single
15672 quotes instead of apostrophes. This kind of error is now fixed.
15674 * Highlighting: Use `reads` instead of `read` for better error handling.
15675 Fixes crash on `startNum="abc"`.
15677 * Added blank comment after directives in rst template.
15679 * Unescape entities in citation `refId`. The `refId`s coming
15680 from citeproc contain XML numeric entities, and these don't match with the
15681 citation keys parsed by pandoc. Solution is to unescape them.
15683 * HTML reader: Fixed bug parsing tables with both thead and tbody.
15687 + Better handling of escapes in link URLs and titles.
15688 + Fixed backslash escapes in reference links.
15689 + Fixed bug in table/hrule parsing, by checking that the top
15690 line of a table is not followed by a blank line. This bug caused
15691 slowdowns on some files with hrules and tables, as pandoc tried to
15692 interpret the hrules as the tops of multiline tables.
15693 + Fixed bug in code block attribute parser. Previously the ID attribute
15694 got lost if it didn't come first. Now attributes can come in any order.
15696 * RST reader: allow footnotes followed by newline without space characters.
15700 + Ignore empty groups {}, { }.
15701 + LaTeX reader: Handle `\@`.
15702 + LaTeX reader: Don't crash on commands like `\itemsep`.
15703 + LaTeX reader: Better handling of letter environments.
15705 * RST writer: Fixed bug involving empty table cells. isSimple was being
15706 calculated in a way that assumed there were no non-empty cells.
15710 + Made `--toc` work even without `--number-sections`.
15711 + Escape # in link URLs.
15712 + Use buffering for footnotes containing code blocks.
15713 + Changed 'descr' to 'description', fixed alignment.
15717 + Escape euro character.
15718 + Don't escape `~` inside `\href{...}`.
15719 + Escape `#` in href URLs.
15720 + Improved detection of book classes. We now check the
15721 `documentclass` variable, and if that is not set, we look through
15722 the template itself. Also, we have added the KOMA classes scrreprt
15723 and scrbook. You can now make a book using
15724 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
15725 + LHS files now set the "listings" variable, so that the definition
15726 of the `code` environment will be included in the template.
15727 + Links are colored blue by default (this can be changed by
15728 modifying `hyperref` settings in the template).
15729 + Added `lang` variable to LaTeX template.
15733 + Fixed bug in HTML template with html5 and mathml.
15734 + Don't use self-closing img, br, hr tags for HTML5.
15735 + Use `<section>` for footnotes if HTML5.
15736 + Update HTML templates to use Content-Style-Type meta tag.
15737 + Use separate variables for meta-date, meta-author.
15738 This makes footnotes work in author and date fields.
15739 + Use 'vertical-align:middle' in WebTeX math for better alignment.
15741 * S5/slidy writer: Make footnotes appear on separate slide at end.
15743 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
15744 META-INF/manifest.xml for ODT files will have everything it needs, so
15745 that ODT files modified by LibreOffice can be used as `--reference-odt`.
15747 * `Text.Pandoc.Templates`: Return empty string for json template.
15749 * `Text.Pandoc.Biblio`:
15751 + Expand citations recursively inside nested inlines.
15752 + Treat `\160` as space when parsing locator and suffix.
15753 This fixes a bug with "p. 33" when `--smart` is used. Previously
15754 the whole "p. 33" would be included in the suffix, with no locator.
15755 + Put whole author-in-text citation in a Cite. Previously just the
15756 date and other info went in the Cite.
15757 + Don't add comma+space to prefix if it ends in punctuation.
15759 * Updated chicago-author-date.csl. The old version did not work
15760 properly for edited volumes with no author.
15764 + Add date to EPUB titlepage and metadata.
15765 + Added TOC identifier in EPUB page template.
15766 + Don't generate superfluous file `cover-image.jpg`.
15768### Under the hood improvements
15770 * Modified `make_osx_package.sh` to use cabal-dev.
15771 Items are no longer installed as root.
15772 Man pages are zipped and given proper permissions.
15774 * Modified windows installer generater to use cabal-dev.
15776 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
15777 Setup.hs we now invoke 'runghc' in a way that points it to the correct
15778 package databases, instead of always falling back to the default user
15781 * Updated to work with GHC 7.4.1.
15783 * Removed dependency on old-time.
15785 * Removed dependency on dlist.
15787 * New slidy directory for "self-contained."
15789 * TeXMath writer: Use unicode thin spaces for thin spaces.
15791 * Markdown citations: don't strip off initial space in locator.
15795 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
15796 from the native `Inline` type in pandoc-types. Now we use `Str`
15797 elements with unicode.
15799 * Improvements to `Text.Pandoc.Builder`:
15801 + `Inlines` and `Blocks` are now newtypes (not synonyms for
15803 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
15804 and a new `Listable` class, which allows these to be manipulated
15805 to some extent like lists. Monoid append includes automatic
15807 + `+++` has been replaced by `<>` (mappend).
15809 * Use blaze-html instead of xhtml for HTML generation.
15810 This changes the type of `writeHtml`.
15812 * `Text.Pandoc.Shared`:
15814 + Added `warn` and `err`.
15815 + Removed `unescapeURI`, modified `escapeURI`.
15816 (See under [behavior changes], above.)
15818 * Changes in URI escaping: Previously the readers escaped URIs by
15819 converting unicode characters to octets and then percent encoding.
15820 Now unicode characters are left as they are, and `escapeURI` only
15821 percent-encodes space characters. This gives more readable
15822 URIs, and works well with modern user agents. URIs are no longer unescaped
15823 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
15825 * New module `Text.Pandoc.SelfContained`.
15827 * New module `Text.Pandoc.Docx`.
15829 * New module `Text.Pandoc.PDF`.
15831 * Added `writerBeamer` to `WriterOptions`.
15833 * Added `normalizeDate` to `Text.Pandoc.Shared`.
15835 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
15836 This is like `splitWithIndices`, but it is sensitive to distinctions
15837 between wide, combining, and regular characters.
15839 * `Text.Pandoc.Pretty`:
15841 + Added `chomp` combinator.
15842 + Added `beforeNonBreak` combinator. This allows you to include
15843 something conditionally on it being before a nonblank.
15844 Used for RST inline math.
15845 + Added `charWidth` function. All characters marked W or F in the unicode
15846 spec EastAsianWidth.txt get width 2.
15847 + Added `realLength`, based on `charWidth`. `realLength` is now
15848 used in calculating offsets.
15850 * New module `Text.Pandoc.Slides`, for common functions for breaking
15851 a document into slides.
15853 * Removed `Text.Pandoc.S5`, which is no longer needed.
15855 * Removed `Text.Pandoc.CharacterReferences`. Moved
15856 `characterReference` to `Text.Pandoc.Parsing`.
15857 `decodeCharacterReferences` is replaced by `fromEntities`
15858 in `Text.Pandoc.XML`.
15860 * Added `Text.Pandoc.ImageSize`. This is intened for use
15861 in `docx` and `odt` writers, so the size and dpi of images
15864 * Removed `writerAscii` in `WriterOptions`.
15866 * Added `writerHighlight` to `WriterOptions`.
15868 * Added `DZSlides` to `HTMLSlideVariant`.
15870 * `writeEPUB` has a new argument for font files to embed.
15872 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
15873 of whether we're parsing the position immediately after a regular
15874 (non-space, non-symbol) string, which is useful for distinguishing
15875 apostrophes from single quote starts.
15877 * `Text.Pandoc.Parsing`:
15879 + `escaped` now returns a `Char`.
15880 + Removed `charsInBalanced'`, added a character parser as
15881 a parameter of `charsInBalanced`. This is needed for
15882 proper handling of escapes, etc.
15885 * Added `toEntities` to `Text.Pandoc.XML`.
15887 * `Text.Pandoc.Readers.LaTeX`:
15889 + Export `handleIncludes`.
15890 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
15892 * Added `ToJsonFilter` class and `toJsonFilter` function to
15893 `Text.Pandoc`, deprecating the old `jsonFilter` function.
15895 * `Text.Pandoc.Highlighting`:
15897 + Removed `highlightHtml`, `defaultHighlightingCss`.
15898 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
15899 key functions from highlighting-kate.
15900 + Changed types of highlighting function. `highlight` returns a
15901 `Maybe`, not an `Either`.
15904## pandoc 1.8.2.1 (2011-08-01)
15906 * Adjusted Arbitrary instance to help avoid timeouts in tests.
15908 * Added `Tests.Writers.Markdown` to cabal file.
15910 * Relaxed version bounds on pandoc-types, test-framework.
15912## pandoc 1.8.2 (2011-07-30)
15914 * Added script to produce OS X package.
15916 * Made `templates` directory a git submodule. This should make it
15917 easier for people to revise their custom templates when the default
15920 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
15921 **Note:** If you have existing templates in `~/.pandoc/templates`, you
15922 must rename them to conform to the new scheme!
15924 * Default template improvements:
15926 + HTML: Display author and date after title.
15927 + HTML: Made table of contents more customizable. The container
15928 for the TOC is now in the template, so users can insert a header
15929 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
15930 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
15931 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
15932 hard-coding. If you want to put your slidy files in the slidy
15933 subdirectory, for example, you can do
15934 `pandoc -t slidy -V slidy-url=slidy -s`.
15935 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
15936 & writer). Closes #279.
15937 + LaTeX: Set `\emergencystretch` to prevent overfull lines.
15938 + LaTeX: Use different `hyperref` options for `xetex`, fixing
15939 problems with unicode bookmarks (thanks to CircleCode).
15940 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
15941 with `inputenc`. This covers fewer characters but is more
15942 robust with other packages, and `ucs` is unmaintained. Users
15943 who need better unicode support should use xelatex or lualatex.
15945 * If a template specified with `--template` is not found, look for it
15946 in `datadir`. Also, if no extension is provided, supply one based
15947 on the writer. So now you can put your `special.latex` template in
15948 `~/.pandoc/templates`, and use it from any directory via
15949 `pandoc -t latex --template special`.
15951 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
15953 * Fixed smart quotes bug, now handling `'...hi'` properly.
15957 + Partial support for labeled footnotes.
15958 + Improved accuracy of `simpleReferenceName` parser.
15962 + Substitute correct unicode characters for
15963 characters in the 128..159 range, which are often found even in
15964 HTML that purports to be UTF-8.
15966 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
15967 to the title, after a colon and linebreak). Closes #280.
15969 * Leaner `reference.odt`.
15971 * Added unexported module `Text.Pandoc.MIME` for use in
15974 * ODT writer: Construct `manifest.xml` based on archive contents.
15975 This fixes a bug in ODTs containing images. Recent versions of
15976 LibreOffice would reject these as corrupt, because `manifest.xml`
15977 did not contain a reference to the image files.
15981 + Make verbatim environments flush to avoid spurious
15982 blank lines. Closes #277.
15983 + Use `\texttt` and escapes insntead of `\verb!...!`, which
15984 is too fragile (doesn't work in command arguments).
15985 + Use `\enquote{}` for quotes if the template includes
15986 the `csquotes` package. This provides better support for
15987 local quoting styles. (Thanks to Andreas Wagner for the idea.)
15989 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
15990 margin, preventing spurious blank lines.
15994 + Use non-minimized version of `slidy.css` with `--offline`
15995 option, so users can more easily edit it.
15996 + Also fixed a bug in the CSS that prevented proper centering
15997 of title (now reported and fixed upstream).
16001 + Replaced `s5/default/slides.js.{comment,packed}` with
16002 new compressed `s5/default/slides.min.js`.
16003 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
16004 when `--offline` is specified. Using inline CSS didn't
16005 work with Chrome or Safari. This fixes offline
16006 S5 on those browsers.
16008 * HTML writer: Removed English title on footnote backlinks.
16009 This is incongrous in non-English documents.
16013 + Use CALS tables. (Some older docbook software does not work
16014 well with XHTML tables.) Closes #77.
16015 + Use `programlisting` tags (instead of `screen`) for code blocks.
16019 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
16020 of `-interaction=batchmode`, which essentially just ignored errors,
16021 leading to bad results. Better to know when something is wrong.
16022 + Fixed issues with non-UTF-8 output of `pdflatex`.
16023 + Better error reporting.
16025 * `--mathjax` now takes an optional URL argument. If it is not
16026 provided, pandoc links directly to the (secure) mathjax CDN,
16027 as now recommended (thanks to dsanson).
16029 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
16030 since the LaTeX writer now produces a file that can be processed by
16031 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
16033 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
16034 to be used to create the PDF.
16037## pandoc 1.8.1.2 (2011-07-16)
16039 * Added `--epub-cover-image` option.
16041 * Documented `--biblatex` and `--natbib` options.
16043 * Allow `--section-divs` with slidy output. Resolves Issue #296.
16045 * Disallow notes within notes in reST and markdown.
16046 These previously caused infinite looping and stack overflows.
16053 Note references are allowed in reST notes, so this isn't a full
16054 implementation of reST. That can come later. For now we need to
16055 prevent the stack overflows. Partially resolves Issue #297.
16057 * EPUB writer: Allow non-plain math methods.
16059 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
16060 `(@item1; @item2)` because the final paren was being parsed as part of
16063 * Changed URI parser so it doesn't include trailing punctuation.
16064 So, in RST, `http://google.com.` should be parsed as a link followed by a
16065 period. The parser is smart enough to recognize balanced parentheses, as
16066 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
16068 * Markdown+lhs reader: Require space after inverse bird tracks, so that
16069 HTML tags can be used freely at the left margin of a markdown+lhs document.
16070 Thanks to Conal Elliot for the suggestion.
16072 * Markdown reader: Fixed bug in footnote order (reported by CircleCode).
16075 + Fixed bug in in field lists with multi-line items at the
16077 + Added parentheses to RST `specialChars`, so
16078 `(http://google.com)` will be parsed as a link in parens.
16079 Resolves Issue #291.
16080 + Allow `|` followed by newline in RST line block.
16084 + Gobble option & space after linebreak `\\[10pt]`.
16087 + Make it possible to have colons after links. (qerub)
16088 + Make it possible to have colons after links. (Christoffer Sawicki)
16091 + Skip spaces after `<b>`, `<emph>`, etc.
16092 + Handle tbody, thead in simple tables. Closes #274.
16093 + Implicit `Para`s instead of `Plains` in some contexts.
16095 * OpenDocument writer: Use special `First paragraph` style for
16096 first paragraph after most non-paragraph blocks. This allows users to
16097 specify e.g. that only paragraphs after the first paragraph of a block are
16098 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
16100 * LaTeX writer: use `deVerb` on table and picture captions.
16101 Otherwise LaTeX complains about `\verb` inside command argument.
16102 Thanks to bbanier for reporting the bug.
16104 * Markdown writer: Insert HTML comment btw list and indented code block.
16105 This prevents the code block from being interpreted as part of the list.
16107 * EPUB writer: Add a meta element specify the cover.
16108 Some EPUB e-readers, such as the Nook, require a meta element inside the
16109 OPF metadata block to ensure the cover image is properly displayed.
16112 * HTML writer: Use embed tag for images with non-image extensions.
16113 (e.g. PDFs). Closes #264.
16115 * LaTeX writer: Improved tables.
16117 + More space between lines, top-align cells.
16118 + Use ctable package, which allows footnotes and
16119 provides additional options.
16120 + Made cell alignments work in multiline tables.
16121 + Closes #271, #272.
16123 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
16124 Also do this when copying image files into EPUBs and ODTs.
16127 * Changed to github issue tracker.
16129 * Added failing emph/strong markdown test case due to Perry Wagle.
16131 * Slidy improvements:
16132 + Updated to use Slidy2.
16133 + Fixed bug, unclosed div tag.
16134 + Added `duration` variable in template.
16135 Setting this activates the timer.
16136 + Use 'titlepage' instead of 'cover' for title div.
16139## pandoc 1.8.1.1 (2011-02-13)
16141 * `markdown2pdf`: Removed some debugging lines accidentally included
16142 in the 1.8.1 release. With those lines, the temp directory is created
16143 in the working directory, and it is not deleted. This fix restores
16144 the original behavior.
16146## pandoc 1.8.1 (2011-02-13)
16148 * Added `--ascii` option. Currently supported only in HTML writer,
16149 which it causes to use numerical entities instead of UTF-8.
16151 * EPUB writer: `--toc` now works to provide a table of contents
16152 at the beginning of each chapter.
16154 * LaTeX writer: Change figure defaults to `htbp`.
16155 This prevents "too many unprocessed floats." Resolves
16158 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
16161 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
16162 Tanimoto. Resolves Issue #286.
16164 * HTML writer: Put line breaks in section divs.
16166 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
16168## pandoc 1.8.0.3 (2011-02-05)
16170 * Fixed Source-repository stanza in cabal file.
16172## pandoc 1.8.0.2 (2011-02-05)
16176 + Stringify alt text instead of converting to HTML.
16177 + Break lines after block elements, not inside tags.
16178 HTML output now closely resembles that of tidy. Resolves Issue #134.
16180 * Markdown reader: Fixed bug in footnote block parser (pointed out
16181 by Jesse Rosenthal). The problem arose when the blank line
16182 at the end of a footnote block contained indenting spaces.
16184 * Shared: Improved 'normalize' function so it normalizes Spaces too.
16185 In normal form, Space elements only occur to separate two non-Space
16186 elements. So, we never have [Space], or [, ..., Space].
16190 + Improved Arbitrary instance.
16191 + Added timeout for test instances.
16195 + Added section on four-space rule for lists. Resolves Issue #283.
16196 + Clarified optional arguments on math options.
16198 * markdown2pdf: Fixed bug with output file extensions.
16199 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
16200 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
16202## pandoc 1.8.0.1 (2011-01-31)
16204 * Revised Interact.hs so that it works with the CPP macros
16205 in the UTF8 module.
16207 * Revised Setup.hs so that we don't call MakeManPage.hs unless
16208 the man pages are out of date.
16210## pandoc 1.8 (2011-01-30)
16214 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
16215 You can now write, for example,
16217 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
16219 and, when you process your document using `pandoc`, specifying
16220 a citation style using `--csl` and a bibliography using `--bibliography`,
16221 the citation will be replaced by an appropriately formatted
16222 citation, and a list of works cited will be added to the end
16225 This means that you can switch effortlessly between different citation
16226 and bibliography styles, including footnote, numerical, and author-date
16227 formats. The bibliography can be in any of the following formats: MODS,
16228 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
16229 See the README for further details.
16231 Citations are supported in the markdown reader, using a special
16232 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
16233 (Thanks to Nathan Gass for the natbib and biblatex support.)
16235 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
16236 the `textile` reader, an almost complete implementation of the textile
16237 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
16238 Resolves Issue #51.
16240 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
16242 * New `json` reader and writer, for reading and writing a JSON
16243 representation of the native Pandoc AST. These are much faster
16244 than the `native` reader and writer, and should be used for
16245 serializing Pandoc to text. To convert between the JSON representation
16246 and native Pandoc, use `encodeJSON` and `decodeJSON` from
16247 `Text.JSON.Generic`.
16249 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
16250 to write scripts that transform a JSON-encoded pandoc document.
16253 -- removelinks.hs - removes links from document
16255 main = interact $ jsonFilter $ bottomUp removeLink
16256 where removeLink (Link xs _) = Emph xs
16259 To use this to remove links while translating markdown to LaTeX:
16261 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
16263 * Attributes are now allowed in inline `Code` elements, for example:
16265 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
16267 The attribute syntax is the same as for delimited code blocks.
16268 `Code` inline has an extra argument place for attributes, just like
16269 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
16270 is compiled with highlighting support. Resolves Issue #119.
16272 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
16273 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
16274 scripts to transform Pandoc documents. Scripts can now change
16275 how each element is rendered in each output format.
16277 * You can now define LaTeX macros in markdown documents, and pandoc
16278 will apply them to TeX math. For example,
16280 \newcommand{\plus}[2]{#1 + #2}
16283 yields `3+4`. Since the macros are applied in the reader, they
16284 will work in every output format, not just LaTeX.
16286 * LaTeX macros can also be used in LaTeX documents (both in math
16287 and in non-math contexts).
16289 * A new `--mathjax` option has been added for displaying
16290 math in HTML using MathJax. Resolves issue #259.
16292 * Footnotes are now supported in the RST reader. (Note, however,
16293 that unlike docutils, pandoc ignores the numeral or symbol used in
16294 the note; footnotes are put in an auto-numbered ordered list.)
16295 Resolves Issue #258.
16297 * A new `--normalize` option causes pandoc to normalize the AST
16298 before writing the document. This means that, for example,
16299 `*hi**there*` will be rendered as `<em>hithere</em>`
16300 instead of `<em>hi</em><em>there</em>`. This is not the default,
16301 because there is a significant performance penalty.
16303 * A new `--chapters` command-line option causes headers
16304 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
16305 Resolves Issue #265.
16307 * In DocBook output, `<chapter>` is now used for top-level
16308 headers if the template contains `<book>`. Resolves Issue #265.
16310 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
16311 the LaTeX writer to use the listings package for code blocks.
16312 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
16313 Millon for the markdown2pdf patch.)
16315 * `markdown2pdf` now supports `--data-dir`.
16317 * URLs in autolinks now have class "url" so they can be styled.
16319 * Improved prettyprinting in most formats. Lines will be wrapped
16320 more evenly and duplicate blank lines avoided.
16322 * New `--columns` command-line option sets the column width for
16323 line wrapping and relative width calculations for tables.
16325 * Made `--smart` work in HTML, RST, and Textile readers, as well
16328 * Added `--html5` option for HTML5 output.
16330 * Added support for listings package in LaTeX reader
16331 (Puneeth Chaganti).
16333 * Added support for simple tables in the LaTeX reader.
16335 * Added support for simple tables in the HTML reader.
16337 * Significant performance improvements in many readers and writers.
16339### API and program changes
16341 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
16342 auxiliary package, `pandoc-types`. This will make it possible for other
16343 programs to supply output in Pandoc format, without depending on the whole
16346 * Added `Attr` field to `Code`.
16348 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
16349 `RawBlock` and `RawInline`.
16351 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
16352 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
16353 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
16355 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
16357 * `Text.Pandoc` now exports association lists `readers` and `writers`.
16359 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
16360 `readNative` can now read full pandoc documents, block lists, blocks,
16361 inline lists, or inlines. It will interpret `Str "hi"`
16362 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
16363 This should make testing easier.
16365 * Removed deprecated `-C/--custom-header` option.
16366 Use `--template` instead.
16368 * `--biblio-file` has been replaced by `--bibliography`.
16369 `--biblio-format` has been removed; pandoc now guesses the format
16370 from the file extension (see README).
16372 * pandoc will treat an argument as a URI only if it has an
16373 `http(s)` scheme. Previously pandoc would treat some
16374 Windows pathnames beginning with `C:/` as URIs.
16376 * The `--sanitize-html` option and the `stateSanitize` field in
16377 `ParserState` have been removed. Sanitization is better done in the
16378 resulting HTML using `xss-sanitize`, which is based on pandoc's
16379 sanitization, but improved.
16381 * pandoc now adds a newline to the end of its output in fragment
16382 mode (= not `--standalone`).
16384 * Added support for `lang` in `html` tag in the HTML template,
16385 so you can do `pandoc -s -V lang=es`, for example.
16387 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
16388 a boolean argument that selects between "inline" and
16391 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
16392 Images are embedded in RTF output when possible (png, jpeg).
16393 Resolves Issue #275.
16395 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
16396 `pretty` package. Changed all writers that used
16397 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
16399 * Rewrote `writeNative` using the new prettyprinting module. It is
16400 now much faster. The output has been made more consistent and compressed.
16401 `writeNative` is also now sensitive to writerStandalone`, and will simply
16402 `print a block list if writerStandalone` is False.
16404 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
16405 blocks and concatenate them, so a separate module is no longer needed.
16407 * `Text.Pandoc.Shared`:
16409 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
16411 + Added `normalize`.
16412 + Removed unneeded prettyprinting functions:
16413 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
16414 `BlockWrapper`, `wrappedBlocksToDoc`.
16415 + Made `splitBy` take a test instead of an element.
16416 + Added `findDataFile`, refactored `readDataFile`.
16417 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
16418 + Fixed `inlineListToIdentifier` to treat `\160` as ' '.
16420 * `Text.Pandoc.Readers.HTML`:
16422 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
16423 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
16424 `htmlBlockElement`, `htmlComment`
16425 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
16428 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
16429 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
16432 * Ellipses are no longer allowed to contain spaces.
16433 Previously we allowed '. . .', ' . . . ', etc. This caused
16434 too many complications, and removed author's flexibility in
16435 combining ellipses with spaces and periods.
16437 * Allow linebreaks in URLs (treat as spaces). Also, a string of
16438 consecutive spaces or tabs is now parsed as a single space. If you have
16439 multiple spaces in your URL, use `%20%20`.
16441 * `Text.Pandoc.Parsing`:
16443 + Removed `refsMatch`.
16444 + Hid `Key` constructor.
16445 + Removed custom `Ord` and `Eq` instances for `Key`.
16446 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
16447 + Generalized type on `readWith`.
16449 * Small change in calculation of relative widths of table columns.
16450 If the size of the header > the specified column width, use
16451 the header size as 100% for purposes of calculating
16452 relative widths of columns.
16454 * Markdown writer now uses some pandoc-specific features when `--strict`
16455 is not specified: `\` newline is used for a hard linebreak instead of
16456 two spaces then a newline. And delimited code blocks are used when
16457 there are attributes.
16459 * HTML writer: improved gladTeX output by setting ENV appropriately
16460 for display or inline math (Jonathan Daugherty).
16462 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
16466 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
16467 + `\index{}` commands are skipped.
16469 * Added `fontsize` variable to default LaTeX template.
16470 This makes it easy to set the font size using `markdown2pdf`:
16471 `markdown2pdf -V fontsize=12pt input.txt`.
16473 * Fixed problem with strikeout in LaTeX headers when using
16474 hyperref, by adding a command to the default LaTeX template
16475 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
16478 * The `COLUMNS` environment variable no longer has any effect.
16480### Under-the-hood improvements
16482 * Pandoc now compiles with GHC 7. (This alone leads to a
16483 significant performance improvement, 15-20%.)
16485 * Completely rewrote HTML reader using tagsoup as a lexer. The
16486 new reader is faster and more accurate. Unlike the
16487 old reader, it does not get bogged down on some input
16488 (Issues #277, 255). And it handles namespaces in tags
16491 * Replaced `escapeStringAsXML` with a faster version.
16493 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
16494 for a significant performance boost.
16496 * Improved performance of all readers by rewriting parsers.
16498 * Simplified Text.Pandoc.CharacterReferences by using
16499 entity lookup functions from TagSoup.
16501 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
16502 from `System.IO` if base >= 4.2. This gives support for
16503 windows line endings on windows.
16505 * Remove duplications in documentation by generating the
16506 pandoc man page from README, using `MakeManPage.hs`.
16508 * README now includes a full description of markdown syntax,
16509 including non-pandoc-specific parts. A new `pandoc_markdown`
16510 man page is extracted from this, so you can look up markdown
16511 syntax by doing `man pandoc_markdown`.
16513 * Completely revised test framework (with help from Nathan Gass).
16514 The new test framework is built when the `tests` Cabal flag is set. It
16515 includes the old integration tests, but also some new unit and quickcheck
16516 tests. Test output has been much improved, and you can now specify a glob
16517 pattern after `cabal test` to indicate which tests should be run;
16518 for example `cabal test citations` will run all the citation tests.
16520 * Added a shell script, `stripansi.sh`, for filtering ANSI control
16521 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
16523 * Added `Interact.hs` to make it easier to use ghci while developing.
16524 `Interact.hs` loads `ghci` from the `src` directory, specifying
16525 all the options needed to load pandoc modules (including
16526 specific package dependencies, which it gets by parsing
16527 dist/setup-config).
16529 * Added `Benchmark.hs`, testing all readers + writers using criterion.
16531 * Added `stats.sh`, to make it easier to collect and archive
16532 benchmark and lines-of-code stats.
16534 * Added upper bounds to all cabal dependencies.
16536 * Include man pages in extra-source-files. This allows users to
16537 install pandoc from the tarball without needing to build the man
16542 * Filenames are encoded as UTF8. Resolves Issue #252.
16544 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
16545 were just parsed literally, leading to problems in some output formats.
16546 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
16547 Resolves Issue #270.
16549 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
16550 Spaces at end of line were not being stripped properly,
16551 resulting in unintended LineBreaks.
16555 + Allow HTML comments as inline elements in markdown.
16556 So, `aaa <!-- comment --> bbb` can be a single paragraph.
16557 + Fixed superscripts with links: `^[link](/foo)^` gets
16558 recognized as a superscripted link, not an inline note followed by
16560 + Fixed regression, making markdown reference keys case-insensitive again.
16561 Resolves Issue #272.
16562 + Properly handle abbreviations (like `Mr.`) at the end of a line.
16563 + Better handling of intraword underscores, avoiding exponential
16564 slowdowns in some cases. Resolves Issue #182.
16565 + Fixed bug in alignments in tables with blank rows in the header.
16569 + Field lists now allow spaces in field names, and
16570 block content in field values. (Thanks to Lachlan Musicman
16571 for pointing out the bug.)
16572 + Definition list items are now always `Para` instead of
16573 `Plain`, matching behavior of `rst2xml.py`.
16574 + In image blocks, the description is parsed properly and
16575 used for the alt attribute, not also the title.
16576 + Skip blank lines at beginning of file. Resolves
16581 + Improved parsing of preamble.
16582 Previously you'd get unexpected behavior on a document that
16583 contained `\begin{document}` in, say, a verbatim block.
16584 + Allow spaces between `\begin` or `\end` and `{`.
16585 + Support `\L` and `\l`.
16586 + Skip comments inside paragraphs.
16590 + Escape strings in `\href{..}`.
16591 + In nonsimple tables, put cells in `\parbox`.
16593 * OpenDocument writer: don't print raw TeX.
16597 + Fixed bug in `Image`. URI was getting unescaped twice!
16598 + Avoid printing extra blank lines at the end if there are
16599 no notes or references.
16601 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
16602 This avoids unwanted interpretation as an optional argument.
16604 * ConTeXt writer: Fixed problem with inline code. Previously
16605 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
16606 If it contains neither, use `\type{}`; otherwise use `\mono{}`
16607 with an escaped version of the string.
16609 * `:` now allowed in HTML tags. Resolves Issue #274.
16613## pandoc 1.6 (2010-07-24)
16615+ New EPUB and HTML Slidy writers. (Issue #122)
16617 - [EPUB] is a standard ebook format, used in Apple's iBooks for
16618 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
16619 reader, and many other devices, and by online ebook readers like
16620 [bookworm]. (Amazon's Kindle uses a different format, MobiPocket,
16621 but EPUB books can easily be converted to Kindle format.) Now you
16622 can write your book in markdown and produce an ebook with a single
16623 command! I've put up a short [tutorial here].
16624 - [Slidy], like S5, is a system for producing HTML+javascript slide shows.
16626+ All input is assumed to be UTF-8, no matter what the locale and ghc
16627 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
16628 Also, a BOM, if present, is stripped from the input.
16630+ Markdown now supports grid tables, whose cells can contain
16631 arbitrary block elements. (Issue #43)
16633+ Sequentially numbered example lists in markdown with `@` marker.
16635+ Markdown table captions can begin with a bare colon and no longer need
16636 to include the English word "table." Also, a caption can now occur
16637 either before or after the table. (Issue #227)
16639+ New command-line options:
16641 - `--epub-stylesheet` allows you to specify a CSS file that will
16642 be used to style your ebook.
16643 - `--epub-metadata` allows you to specify metadata for the ebook.
16644 - `--offline` causes the generated HTML slideshow to include all
16645 needed scripts and stylesheets.
16646 - `--webtex` causes TeX math to be converted to images using the
16647 Google Charts API (unless a different URL is specified).
16648 - `--section-divs` causes div tags to be added around each section
16649 in an HTML document. (Issue #230, 239)
16651+ Default behavior of S5 writer in standalone mode has changed:
16652 previously, it would include all needed scripts and stylesheets
16653 in the generated HTML; now, only links are included unless
16654 the `--offline` option is used.
16656+ Default behavior of HTML writer has changed. Between 1.2 and 1.5,
16657 pandoc would enclose sections in div tags with identifiers on the
16658 div tags, so that the sections can be manipulated in javascript.
16659 This caused undesirable interactions with raw HTML div tags. So,
16660 starting with 1.6, the default is to put the identifiers directly
16661 on the header tags, and not to include the divs. The `--section-divs`
16662 option selects the 1.2-1.5 behavior.
16666 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
16667 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
16668 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
16669 `writerIncludeAfter`.
16670 - Added `headerShift` to `Text.Pandoc.Shared`.
16671 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
16672 to a new module, `Text.Pandoc.Parsing`.
16673 - Added `stateHasChapters` to `ParserState`.
16674 - Added `HTMLSlideVariant`.
16675 - Made `KeyTable` a map instead of an association list.
16676 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`, `docDate`).
16677 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord` instances.
16678 - Reference keys now have a type of their own (`Key`), with its
16679 own `Ord` instance for case-insensitive comparison.
16680 - Added `Text.Pandoc.Writers.EPUB`.
16681 - Added `Text.Pandoc.UUID`.
16682 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
16683 Removed `saveOpenDocumentAsODT`, added `writeODT`.
16684 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
16685 Removed `prettyPandoc`.
16686 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
16687 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
16688 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
16689 To write S5, you now use `writeHtml` with `writerSlideVariant`
16690 set to `S5Slides` or `SlidySlides`.
16692+ Template changes. If you use custom templates, please update them,
16693 particularly if you use syntax highlighting with pandoc. The old HTML
16694 templates hardcoded highlighting CSS that will no longer work with
16695 the most recent version of highlighting-kate.
16697 - HTML template: avoid empty meta tag if no date.
16698 - HTML template: Use default highlighting CSS from highlighting-kate
16699 instead of hard-coding the CSS into the template.
16700 - HTML template: insert-before text goes before the title, and
16701 immediately after the `<body>` tag, as documented. (Issue #241)
16702 - Added slidy and s5 templates.
16703 - Added amssymb to preamble of latex template. (github Issue 1)
16705+ Removed excess newlines at the end of output. Note: because output
16706 will not contain an extra newline, you may need to make adjustments
16707 if you are inserting pandoc's output into a template.
16709+ In S5 and slidy, horizontal rules now cause a new slide, so you
16710 are no longer limited to one slide per section.
16712+ Improved handling of code in man writer. Inline code is now monospace,
16713 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
16715+ HTML reader parses `<tt>` as Code. (Issue #247)
16717+ html+lhs output now contains bird tracks, even when compiled without
16718 highlighting support. (Issue #242)
16720+ Colons are now no longer allowed in autogenerated XML/HTML identifiers,
16721 since they have a special meaning in XML.
16723+ Code improvements in ODT writer. Remote images are now replaced with
16724 their alt text rather than a broken link.
16726+ LaTeX reader improvements:
16728 - Made latex `\section`, `\chapter` parsers more forgiving of whitespace.
16729 - Parse `\chapter{}` in latex.
16730 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
16731 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
16732 for use in markdown reader.
16733 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
16734 in markdown document.
16736+ LaTeX writer: images are automatically shrunk if they would extend
16737 beyond the page margin.
16739+ Plain, markdown, RST writers now use unicode for smart punctuation.
16741+ Man writer converts math to unicode when possible, as in other writers.
16743+ `markdown2pdf` can now recognize citeproc options.
16745+ Command-line arguments are converted to UTF-8. (Issue #234)
16747+ `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
16748 This allows it to handle a wider range of formulas. Also, if a formula
16749 cannot be converted, it is left in raw TeX; formulas are no longer
16750 partially converted.
16752+ Unicode curly quotes are left alone when parsing smart quotes. (Issue #143)
16754+ Cabal file changes:
16756 - Removed parsec < 3 restriction.
16757 - Added 'threaded' flag for architectures where GHC lacks a threaded
16759 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
16760 - Require highlighting-kate 0.2.7.
16762+ Use explicit imports from `Data.Generics`. Otherwise we have a
16763 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
16765+ New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
16767[EPUB]: http://en.wikipedia.org/wiki/EPUB
16768[Slidy]: http://www.w3.org/Talks/Tools/Slidy
16769[bookworm]: http://bookworm.oreilly.com/
16770[tutorial here]: http://johnmacfarlane.net/pandoc/epub.html
16772## pandoc 1.5.1.1 (2010-03-29)
16774+ Fixed header identifiers (uniqueIdent in Shared) so they
16775 work as advertized in README and are guaranteed to be
16776 valid XHTML names. Thanks to Xyne for reporting the bug.
16778## pandoc 1.5.1 (2010-03-23)
16780+ Fixed treatment of unicode characters in URIs.
16781+ Revised Setup.hs so it works with debian's build process.
16782+ Fixed bug in OpenDocument writer that led to invalid
16783 XML for some input.
16785## pandoc 1.5.0.1 (2010-03-21)
16787+ HTML writer: Fixed error in math writer (with MathML option)
16788 that caused an infinite loop for unparsable MathML.
16790## pandoc 1.5 (2010-03-20)
16792+ Moved repository to [github](http://github.com/jgm/pandoc).
16793+ New `--mathml` option, for display of TeX math as MathML.
16794+ New `--data-dir` option, allowing users to specify a data
16795 directory other than `~/.pandoc`. Files placed in this directory
16796 will be used instead of system defaults.
16797+ New `--base-header-level` option. For example, `--base-header-level=2`
16798 changes level 1 headers to level 2, level 2 to level 3, etc.
16799+ New 'plain' output format: plain text without pictures, hyperlinks,
16800 inline formatting, or anything else that looks even vaguely
16802+ Titles and authors in title blocks can now span multiple lines,
16803 as long as the continuation lines begin with a space character.
16804+ When given an absolute URI as a parameter, pandoc will fetch
16805 the content via HTTP.
16806+ The HTML reader has been made much more forgiving. It no
16807 longer requires well-formed xhtml as input.
16808+ `html2markdown` has been removed; it is no longer necessary, given
16809 the last two changes. `pandoc` can be used by itself to convert
16810 web pages to markdown or other formats.
16811+ `hsmarkdown` has also been removed. Use `pandoc --strict` instead.
16812 Or symlink pandoc's executable to `hsmarkdown`; `pandoc` will then
16813 behave like `hsmarkdown` used to.
16814+ An image in a paragraph by itself is now rendered as a figure
16815 in most writers, with the alt text as the caption.
16816+ Incomplete support for reST tables (simple and grid). Thanks to
16817 Eric Kow. Colspans and rowspans not yet supported.
16818+ In mediawiki, links with relative URLs are now formatted as wikilinks.
16819 Also, headers have been promoted: `= head =` is now level 1 instead of
16821+ The markdown reader now handles "inverse bird tracks" when parsing
16822 literate haskell. These are used for haskell example code that
16823 is not part of the literate program.
16824+ The `-B` and `-A` options now imply `-s` and no longer work in
16826+ Headerless tables are now printed properly in all writers.
16827 In addition, tbody, thead, and cols are used in HTML and Docbook
16829+ Improved build system; removed obsolete Makefile.
16830+ In LaTeX writer, `\chapter` is now used instead of `\section`.
16831 when the documentclass is book, report, or memoir.
16832+ Many small bug fixes. See [changelog] for details.
16834## pandoc 1.4 (2010-01-02)
16836+ New template system replaces old headers, giving users much
16837 more control over pandoc's output in `--standalone` mode.
16838 Added `--template` and `--variable` options. The `--print-default-header`
16839 option is now `--print-default-template`. See README under
16840 "Templates" for details.
16841+ The old `--custom-header` option should still work, but it has
16843+ New `--reference-odt` option allows users to customize styles
16845+ Users may now put custom templates, s5 styles, and a reference
16846 ODT in the `~/.pandoc` directory, where they will override system
16847 defaults. See README for details.
16848+ Unicode is now used whenever possible in HTML and XML output. Entities
16849 are used only where necessary (`>`, `<`, `"`, `&`).
16850+ Authors and dates may now include formatting and notes.
16851+ Added `--xetex` option for `pandoc` and `markdown2pdf`.
16852+ Windows installer now includes highlighting support and
16853 `markdown2pdf` and `hsmarkdown` wrappers.
16854+ Pandoc no longer requires Template Haskell, which should make
16856+ Pandoc can now be built on GHC 6.12, as well as earlier versions.
16857+ See README for other small improvements and bug fixes.
16859## pandoc 1.3 (2009-12-10)
16861+ Added `--id-prefix` option to help prevent duplicate
16862 identifiers when you're generating HTML fragments.
16863+ Added `--indented-code-classes` option, which specifies
16864 default highlighting syntax for indented code blocks.
16865+ `--number-sections` now affects HTML output.
16866+ Improved syntax for markdown definition lists.
16867+ Better looking simple tables.
16868+ Markdown tables without headers are now possible.
16869+ New hard line break syntax: backslash followed by newline.
16870+ Improved performance of markdown reader by ~10% by eliminating the
16871 need for a separate parsing pass for notes.
16872+ Improved syntax highlighting for literate Haskell.
16873+ Support for "..code-block" directive in RST reader.
16874+ Windows binary now includes highlighting support.
16875+ Many bug fixes and small improvements. See [changelog]
16878## pandoc 1.2.1 (2009-07-18)
16880+ Improved the efficiency of the markdown reader's
16881 abbreviation parsing (should give a big performance
16882 boost with `--smart`).
16883+ HTML writer now wraps sections in divs with unique
16884 identifiers, for easier manipulation.
16885+ Improved LaTeX reader's coverage of math modes.
16886+ Added a portable Haskell version of markdown2pdf (thanks
16887 to Paolo Tanimoto).
16888+ Made `--strict` compatible with `--standalone` and `--toc.`
16889+ Many other small improvements and bug fixes.
16890 See [changelog] for details.
16892## pandoc 1.2 (2009-03-01)
16894+ Added support for literate Haskell. lhs support is triggered by
16895 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
16896 Haskell LaTeX. '.lhs' files are treated by default as literate
16898+ Added `--email-obfuscation` option.
16899+ Brought citeproc support up to date for citeproc-hs-0.2.
16900+ Many bugs fixed. See [changelog] for details.
16902## pandoc 1.1 (2008-11-06)
16904+ New `--jsmath` option supporting use of pandoc with [jsMath].
16905+ Classes on HTML table output for better CSS styling.
16906+ Windows installer no longer requires admin privileges.
16907+ Many bugs fixed. See [changelog] for details.
16909## pandoc 1.0 (2008-09-13)
16911+ New writers for MediaWiki, GNU Texinfo (thanks to Peter Wang),
16912 OpenDocument XML (thanks to Andrea Rossato), and ODT (OpenOffice
16914+ New [delimited code blocks](README.html#delimited-code-blocks),
16915 with optional syntax highlighting.
16916+ Reorganized build system: pandoc can now be built using standard
16917 Cabal tools. It can be compiled on Windows without Cygwin.
16918 The tests can also be run without perl or unix tools.
16919+ LaTeXMathML replaces ASCIIMathML for rendering math in HTML.
16920+ Support for "displayed" math.
16921+ Common abbreviations are now handled more intelligently, with
16922 a non-breaking space (and not a sentence-ending space) after
16924+ Code is -Wall clean.
16925+ Many bug fixes and small improvements. See [changelog] for
16928## pandoc 0.46 (2008-01-08)
16930+ Added a `--sanitize-html` option (and a corresponding parameter
16931 in `ParserState` for those using the pandoc libraries in programs).
16932 This option causes pandoc to sanitize HTML (in HTML or Markdown
16933 input) using a whitelist method. Possibly harmful HTML elements
16934 are replaced with HTML comments. This should be useful in the
16935 context of web applications, where pandoc may be used to convert
16936 user input into HTML.
16937+ Made -H, -A, and -B options cumulative: if they are specified
16938 multiple times, multiple files will be included.
16939+ Many bug fixes and small improvements. See [changelog] for full
16942## pandoc 0.45 (2007-12-09)
16944+ Many bug fixes and structural improvements. See [changelog] for
16946+ Improved treatment of math. Math is now rendered using unicode
16947 by default in HTML, RTF, and DocBook output. For more accurate
16948 display of math in HTML, `--gladtex`, `--mimetex`, and `--asciimathml`
16949 options are provided. See the [User's Guide](README.html#math) for
16951+ Removed support for box-style block quotes in markdown.
16952+ More idiomatic ConTeXt output.
16953+ Text wrapping in ConTeXt and LaTeX output.
16954+ Pandoc now correctly handles all standard line endings
16956+ New `--no-wrap` option that disables line wrapping and minimizes
16957 whitespace in HTML output.
16958+ Build process is now compatible with both GHC 6.8 and GHC 6.6.
16959 GHC and GHC_PKG environment variables may be used to specify
16960 which version of the compiler to use, when multiple versions are
16963## pandoc 0.44 (2007-09-03)
16965 [ John MacFarlane ]
16967 * Fixed bug in HTML writer: when --toc was used, anchors were put around
16968 headers, which is invalid XHTML (block content within inline element).
16969 Now the anchors are put inside the header tags. Resolves Issue #23.
16971 * Added xmlns attribute to html element in html writer tests.
16972 This attribute is added by more recent versions of the
16973 xhtml library (>= 3000), and is required for valid XHTML.
16977 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
16978 command instead of 'runhaskell', which, on some platforms (such as s390,
16979 alpha, m68k), throws the following error:
16981 runhaskell Setup.hs configure --prefix=/usr
16982 ghc-6.6.1: not built for interactive use
16984 This causes a serious FTBFS bug. Closes: #440668.
16986## pandoc 0.43 (2007-09-02)
16988 [ John MacFarlane ]
16990 * The focus of this release is performance. The markdown parser
16991 is about five times faster than in 0.42, based on benchmarks
16992 with the TextMate manual.
16994 * Main.hs: Replaced CRFilter and tabFilter with single function
16995 tabFilter, which operates on the whole string rather than breaking
16996 it into lines, and handles dos-style line-endings as well as tabs.
16998 * Added separate LaTeX reader and native reader tests; removed
17001 * Text.Pandoc.Shared:
17003 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
17004 + General code cleanup (to elimante warnings when compiling with -Wall.)
17005 + Added 'wrapped' function, which helps wrap text into paragraphs,
17006 using the prettyprinting library.
17007 + Rewrote charsInBalanced and charsInBalanced'.
17008 - Documented restriction: open and close must be distinct characters.
17009 - Rearranged options for greater efficiency.
17010 - Bug fix: Changed inner call to charsInBalanced inside
17011 charsInBalanced' to charsInBalanced'.
17012 + anyLine now requires that the line end with a newline (not eof).
17013 This is a harmless assumption, since we always add newlines to the
17014 end of a block before parsing with anyLine, and it yields a 10% speed
17016 + Removed unnecessary 'try' in anyLine.
17017 + Removed unneeded 'try' from romanNumeral parser.
17018 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
17019 + Removed unneeded 'try' in parseFromString.
17020 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
17022 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
17023 'try' is not automatically applied to the 'end' parser. Added
17024 'try' in calls to 'enclosed' where needed. Slight speed increase.
17028 + Replaced individual wrapping routines in RST, Man, and Markdown
17029 writers with 'wrapped' from Text.Pandoc.Shared.
17030 + Rewrote LaTeX writer to use the prettyprinting library,
17031 so we get word wrapping, etc.
17032 + Modified latex writer tests for new latex writer using prettyprinter.
17033 + Fixed bug in LaTeX writer: autolinks would not cause
17034 `\usepackage{url}` to be put in the document header. Also, changes
17035 to state in enumerated list items would be overwritten.
17036 + In Markdown writer, escape paragraphs that begin with ordered list
17037 markers, so they don't get interpreted as ordered lists.
17039 * Text.Pandoc.Reades.LaTeX:
17041 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
17042 numeral after "enum" in "setcounter" would consist entirely of
17043 "i"s. 'enumiv' is legitimate.
17044 + LaTeX command and environment names can't contain numbers.
17045 + Rearranged order of parsers in inline for slight speed improvement.
17046 + Added '`' to special characters and 'unescapedChar'.
17048 * Text.Pandoc.Readers.RST:
17050 + Removed unneeded try's in RST reader; also minor code cleanup.
17052 + Rearranged parsers in inline (doubled speed).
17054 * Text.Pandoc.Readers.Markdown:
17056 + Skip notes parsing if running in strict mode. (This yields a nice
17057 speed improvement in strict mode.)
17058 + Simplify autolink parsing code, using Network.URI to test for
17059 URIs. Added dependency on network library to debian/control and
17061 + More perspicuous definition of nonindentSpaces.
17062 + Removed unneeded 'try' in 'rawLine'.
17063 + Combined linebreak and whitespace into a new whitespace parser, to
17064 avoid unnecessary reparsing of space characters.
17065 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
17066 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
17067 + Use lookAhead in parsers for setext headers and definition lists
17068 to see if the next line begins appropriately; if not, don't waste
17069 any more time parsing.
17070 + Don't require blank lines after code block. (It's sufficient to
17071 end code block with a nonindented line.)
17072 + Changed definition of 'emph': italics with '_' must not
17073 be followed by an alphanumeric character. This is to help
17074 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
17075 `[LC<em>TYPE]:my</em>type`.
17076 + Improved Markdown.pl-compatibility in referenceLink: the two parts
17077 of a reference-style link may be separated by one space, but not
17078 more... [a] [link], [not] [a link].
17079 + Fixed markdown inline code parsing so it better accords with
17080 Markdown.pl: the marker for the end of the code section is a clump
17081 of the same number of `'s with which the section began, followed
17082 by a non-` character. So, for example,
17083 ` h ``` i ` -> `<code>h ``` i</code>`.
17084 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
17085 rules are slightly different.
17086 + Rewrote 'para' for greater efficiency.
17087 + Rewrote link parsers for greater efficiency.
17088 + Removed redundant 'referenceLink' in definition of inline (it's
17089 already in 'link').
17090 + Refactored escapeChar so it doesn't need 'try'.
17091 + Refactored hrule for performance in Markdown reader.
17092 + More intelligent rearranging of 'inline' so that most frequently
17093 used parsers are tried first.
17094 + Removed tabchar parser, as whitespace handles tabs anyway.
17096 * Text.Pandoc.CharacterReferences:
17099 + Removed unnecessary 'try's for a speed improvement.
17100 + Removed unnecessary '&' and ';' from the entity table.
17104 + Makefile: Get VERSION from cabal file, not Main.hs.
17105 + Modified MacPorts Portfile:
17106 - Depend on haddock
17107 - Build and install libraries and library documentation in
17108 addition to pandoc executable
17109 - Added template item for md5 sum in Portfile.in.
17110 - Incorporated changes from MacPorts repository (r28278).
17111 + FreeBSD port: Don't try to generate distinfo in Makefile.
17112 It can be made using 'make makesum' in FreeBSD.
17113 + Make both freebsd and macports targets depend on tarball.
17115 * Website and documentation:
17117 + Updated INSTALL instructions.
17118 + Added pandocwiki demo to website.
17119 + Removed local references to Portfile, since pandoc is now in the
17120 MacPorts repository.
17122## pandoc 0.42 (2007-08-26)
17124 [ John MacFarlane ]
17126 * Main.hs: Use utf8 conversion on the extra files loaded with
17127 the -H, -C, -B, and -A options. This fixes problems with unicode
17128 characters in these files.
17130 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
17131 Text.Pandoc.Readers.HTML and without it we get a linking error when
17136 + Added new rule for enhanced markdown ordered lists: if the list
17137 marker is a capital letter followed by a period (including a
17138 single-letter capital roman numeral), then it must be followed by
17139 at least two spaces. The point of this is to avoid accidentally
17140 treating people's initials as list markers: a paragraph might begin,
17141 "B. Russell was an English philosopher," and this shouldn't be
17142 treated as a list. Documented change in README.
17143 + Blocks that start with "p. " and a digit are no longer treated
17144 as ordered lists (it's a page number).
17145 + Added a needed 'try' to listItem.
17146 + Removed check for a following setext header in endline.
17147 A full test is too inefficient (doubles benchmark time), and the
17148 substitute we had before is not 100% accurate.
17149 + Don't use Code elements for autolinks if --strict specified.
17151 * LaTeX writer: When a footnote ends with a Verbatim environment, the
17152 close } of the footnote cannot occur on the same line or an error occurs.
17153 Fixed this by adding a newline before the closing } of every footnote.
17156 + Removed incorrect "{}" around style information in HTML tables.
17157 Column widths now work properly in HTML.
17158 + If --strict option is specified (and --toc is not), don't include
17159 identifiers in headers, for better Markdown compatibility.
17163 + Separated $(web_dest) and website targets.
17164 + In website, index.txt is now constructed from template index.txt.in.
17165 + Added freebsd target to Markefile. This creates the freebsd Makefile
17166 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
17167 from the repository.
17168 + Added macport target to Makefile. Portfile is built from template
17170 + Removed OSX package targets. (Too many difficulties involving
17171 dependencies on dynamic libraries.)
17172 + More complete INSTALL instructions for all architectures.
17175 + Added a programming demo, pandocwiki.
17179 * Do not forget to close pandoc's ITP. Closes: #391666
17181## pandoc 0.41 (2007-08-19)
17183 [ John MacFarlane ]
17185 * Fixed bugs in HTML reader:
17186 + Skip material at end *only if* `</html>` is present (previously,
17187 only part of the document would be parsed if an error was
17188 found; now a proper error message is given).
17189 + Added new constant eitherBlockOrInline with elements that may
17190 count either as block-level or as inline. Modified isInline and
17191 isBlock to take this into account.
17192 + Modified rawHtmlBlock to accept any tag (even an inline tag):
17193 this is innocuous, because rawHtmlBlock is tried only if a regular
17194 inline element can't be parsed.
17195 + Added a necessary 'try' in definition of 'para'.
17197 * Fixed bug in markdown ordered list parsing. The problem was that
17198 anyOrderedListStart did not check for a space following the
17199 ordered list marker. So in 'A.B. 2007' the parser would be
17200 expecting a list item, but would not find one, causing an error.
17201 Fixed a similar bug in the RST reader. Resolves Issue #22.
17203 * Refactored RST and Markdown readers using parseFromString.
17205 * LaTeX reader will now skip anything after \end{document}.
17207 * Fixed blockquote output in markdown writer: previously, block
17208 quotes in indented contexts would be indented only in the first
17211 * Added note to INSTALL about variations in versions of the xhtml
17212 library that can lead to failed tests (thanks to Leif LeBaron).
17214## pandoc 0.4 (2007-01-16)
17216 [ John MacFarlane ]
17218 * Added two new output formats: groff man pages and ConTeXt. By
17219 default, output files with extensions ".ctx" and ".context" are
17220 assumed to be ConTeXt, and output files with single-digit extensions
17221 are assumed to be man pages.
17223 * Enhanced ordered lists (documented in README, under Lists):
17224 + The OrderedList block element now stores information about
17225 list number style, list number delimiter, and starting number.
17226 + The readers parse this information when possible.
17227 + The writers use this information to style ordered lists.
17228 + The enhancement can be disabled using the --strict option.
17230 * Added support for tables (with a new Table block element). Two kinds
17231 of tables are supported: a simple table with one-line rows, and a
17232 more complex variety with multiline rows. All output formats are
17233 supported, but only markdown tables are parsed at the moment. The
17234 syntax is documented in README.
17236 * Added support for definition lists (with a new DefinitionList block
17237 element). All output and input formats are supported. The syntax is
17238 documented in README.
17240 * Added support for superscripts and subscripts (with new Superscript
17241 and Subscript inline elements). All input and output
17242 formats. The syntax is documented in README.
17244 * Added support for strikeout (with a new Strikeout inline element).
17245 All input and output formats are supported. Thanks to Bradley Kuhn,
17246 who contributed a patch. The syntax is documented in README. Resolves
17249 * Added a --toc|--table-of-contents option. This causes an automatically
17250 generated table of contents (or an instruction that creates one) to
17251 be inserted at the beginning of the document. Not supported in S5,
17252 DocBook, or man page writers.
17254 * Modified the -m|--asciimathml option:
17256 + If an optional URL argument is provided, a link is inserted
17257 instead of the contents of the ASCIIMathML.js script.
17258 + Nothing is inserted unless the document actually contains
17261 * Removed Blank block element as unnecessary.
17263 * Removed Key and Note blocks from the Pandoc data structure. All
17264 links are now stored as explicit links, and note contents are
17265 stored with the (inline) notes.
17267 + All link Targets are now explicit (URL, title) pairs; there
17268 is no longer a 'Ref' target.
17269 + Markdown and RST parsers now need to extract data from key and
17270 note blocks and insert them into the relevant inline elements.
17271 Other parsers have been simplified, since there is no longer any need
17272 to construct separate key and note blocks.
17273 + Markdown, RST, and HTML writers need to construct lists of
17274 notes; Markdown and RST writers need to construct lists of link
17275 references (when the --reference-links option is specified); and
17276 the RST writer needs to construct a list of image substitution
17277 references. All writers have been rewritten to use the State monad
17278 when state is required.
17279 + Several functions (generateReference, keyTable,
17280 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
17281 used by them) have been removed from Text.Pandoc.Shared, since
17282 they are no longer needed. New functions and data structures
17283 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
17284 added. The functions inTags, selfClosingTag, inTagsSimple, and
17285 inTagsIndented have been moved to the DocBook writer, since that
17286 is now the only module that uses them. NoteTable is now exported
17287 in Text.Pandoc.Shared.
17288 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
17289 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
17290 + Added writerNotes and writerReferenceLinks to WriterOptions.
17292 * Added Text.Pandoc module that exports basic readers, writers,
17293 definitions, and utility functions. This should export everything
17294 needed for most uses of Pandoc libraries. The haddock documentation
17295 includes a short example program.
17297 * Text.Pandoc.ASCIIMathML is no longer an exported module.
17299 * Added Text.Pandoc.Blocks module to help in printing markdown
17300 and RST tables. This module provides functions for working with
17301 fixed-width blocks of text--e.g., placing them side by side, as
17304 * Refactored to avoid reliance on Haskell's Text.Regex library, which
17305 (a) is slow, and (b) does not properly handle unicode. This fixed
17306 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
17308 + Replaced 'gsub' with a general list function 'substitute'
17309 that does not rely on Text.Regex.
17310 + Rewrote extractTagType in HTML reader so that it doesn't use
17312 + In Markdown reader, replaced email regex test with a custom email
17313 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
17314 with a custom function isSelfClosingTag.
17315 + Modified Docbook writer so that it doesn't rely on Text.Regex for
17316 detecting 'mailto' links.
17317 + Removed escapePreservingRegex and reamped entity-handling
17318 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
17319 avoid reliance on Text.Regex (see below on character reference
17322 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
17324 * Changed handling of XML entities. Entities are now parsed (and unicode
17325 characters returned) in the Markdown and HTML readers, rather than being
17326 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
17327 instead of entities for characters above 128. This makes the HTML and
17328 DocBook output much more readable and more easily editable.
17330 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
17331 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
17332 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
17333 Moved both functions to Text.Pandoc.Writers.Docbook.
17334 + Added characterReference parser to Text.Pandoc.CharacterReferences.
17335 This parses a string and return a unicode character.
17336 + Rewrote decodeCharacterReferences to use the new parser instead of
17338 + Added new charRef parser for Markdown and HTML, which replaces the
17339 old 'entity' parser. Added '&' as a special character in Markdown reader.
17340 + Modified HTML and Markdown readers to call decodeEntities on all raw
17341 strings (e.g. authors, dates, link titles), to ensure that no
17342 unprocessed entities are included in the native representation of
17343 the document. (In the HTML reader, most of this work is done by a
17344 change in extractAttributeName.)
17345 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
17346 since a unicode non-breaking space is impossible to distinguish visually
17347 from a regular space. (Resolves Issue #3.)
17348 + Removed encodeEntitiesNumerical.
17349 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
17350 slight performance boost over the old association list.
17351 + Removed unneeded decodeEntities from 'str' parser in HTML and
17354 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
17355 fromUTF8, for clarity.
17357 * Replaced old haskell98 module names replaced by hierarchical module
17358 names, e.g. List by Data.List. Removed haskell98 from dependencies
17359 in pandoc.cabal, and added mtl (needed for state monad). Substituted
17362 * Refactored and cleaned up character escaping in writers, using
17363 backslashEscapes and escapeStringUsing functions.
17365 * Instead of adding `\n\n` to the end of an input string in Main.hs,
17366 this is now done in the readers. This makes the libraries behave
17367 the way you'd expect from the pandoc program. Resolves Issue #10.
17369 * URLs and email addresses in autolinks are now typeset as Code.
17371 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
17372 doesn't display the whole output unless there's a line ending.
17374 * Major code cleanup in all modules, for greater consistency, concision,
17379 + Fixed several bugs (extractTagType, attribute parsing).
17380 + Remove Null blocks in lists of blocks when possible.
17381 + Allow HTML comments as raw HTML inline.
17385 + Ordered list items may no longer begin with uppercase letters, or
17386 letters greater than 'n'. (This prevents first initials and page
17387 reference, e.g. 'p. 400', from being parsed as beginning lists.)
17388 Also, numbers beginning list items may no longer end with ')',
17389 which is now allowed only after letters. Note: These changes
17390 may cause documents to be parsed differently. Users should take
17392 + Changed autoLink parsing to conform better to Markdown.pl's
17393 behavior. `<google.com>` is not treated as a link, but
17394 `<http://google.com>`, `<ftp://google.com>`, and
17395 `<mailto:google@google.com>` are.
17396 + Cleaned up handling of embedded quotes in link titles. Now these are
17397 stored as a '"' character, not as '"'.
17398 + Use lookAhead parser for the 'first pass' (looking for reference keys),
17399 instead of parsing normally, then using setInput to reset input. This
17400 yields a slight performance boost.
17401 + Fixed several bugs in smart quote recognition.
17402 + Fixed bug in indentSpaces (which didn't properly handle
17403 cases with mixed spaces and tabs).
17404 + Consolidated 'text', 'special', and 'inline' into 'inline'.
17405 + Fixed bug which allowed URL and title to be separated by multiple blank
17406 lines in links and reference keys. They can be on separate lines but
17407 can't have blank lines between them.
17408 + Correctly handle bracketed text inside inline footnotes and links,using
17409 new function inlinesInBalanced. Resolves Issue #14.
17410 + Fixed bug in footnotes: links in footnotes were not being
17411 processed. Solution: three-stage parse. First, get all the
17412 reference keys and add information to state. Next, get all the
17413 notes and add information to state. (Reference keys may be needed
17414 at this stage.) Finally, parse everything else.
17415 + Replaced named constants like 'emphStart' with literals.
17416 + Removed an extra occurrence of escapedChar in definition of inline.
17420 + Allow the URI in a RST hyperlink target to start on the line
17421 after the reference key.
17422 + Added 'try' in front of 'string', where needed, or used a different
17423 parser. This fixes a bug where ````` would not be correctly parsed as
17425 + Fixed slow performance in parsing inline literals in RST reader. The
17426 problem was that ``#`` was seen by 'inline' as a potential link or image.
17427 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
17429 + Use lookAhead instead of getInput/setInput in RST reader. Removed
17430 unneeded getState call, since lookAhead automatically saves and
17431 restores the parser state.
17432 + Allow hyperlink target URIs to be split over multiple lines, and
17433 to start on the line after the reference. Resolves Issue #7.
17434 + Fixed handling of autolinks.
17438 + Replaced `choice [(try (string ...), ...]` idiom with `oneOfStrings`,
17440 + Added clauses for tilde and caret. Tilde is `\ensuremath{\sim}`, and
17441 caret is `\^{}`, not `\^` as before.
17442 + Added parsing for `\url`.
17443 + Parse `\texttt{}` as code, provided there's nothing fancy inside.
17447 + Modified HTML writer to use the Text.XHtml library. This results
17448 in cleaner, faster code, and it makes it easier to use Pandoc in
17449 other projects, like wikis, which use Text.XHtml. Two functions are
17450 now provided, writeHtml and writeHtmlString: the former outputs an
17451 Html structure, the latter a rendered string. The S5 writer is also
17452 changed, in parallel ways (writeS5, writeS5String).
17453 + The Html header is now written programmatically, so it has been
17454 removed from the 'headers' directory. The S5 header is still
17455 needed, but the doctype and some of the meta declarations have
17456 been removed, since they are written programmatically. This change
17457 introduces a new dependency on the xhtml package.
17458 + Fixed two bugs in email obfuscation involving improper escaping
17459 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
17461 + Fixed another bug in email obfuscation: If the text to be obfuscated
17462 contains an entity, this needs to be decoded before obfuscation.
17463 Thanks to thsutton for the patch. Resolves Issue #15.
17464 + Changed the way the backlink is displayed in HTML footnotes.
17465 Instead of appearing on a line by itself, it now generally
17466 appears on the last line of the note. (Exception: when the
17467 note does not end with a Plain or Para block.) This saves space
17469 + Added automatic unique identifiers to headers:
17470 - The identifier is derived from the header via a scheme
17471 documented in README.
17472 - WriterState now includes a list of header identifiers and a table
17473 of contents in addition to notes.
17474 - The function uniqueIdentifiers creates a list of unique identifiers
17475 from a list of inline lists (e.g. headers).
17476 - This list is part of WriterState and gets consumed by blockToHtml
17477 each time a header is encountered.
17478 + Include CSS for .strikethrough class in header only if strikethrough
17479 text appears in the document.
17480 + If the 'strict' option is specified, elements that do not appear in
17481 standard markdown (like definition lists) are passed through as
17483 + Simplified treatment of autolinks, using pattern matching instead of
17488 + Links in markdown output are now printed as inline links by default,
17489 rather than reference links. A --reference-links option has been added
17490 that forces links to be printed as reference links. Resolves Issue #4.
17491 + Use autolinks when possible. Instead of `[site.com](site.com)`,
17496 + Rewrote to use the State monad. The preamble now includes only those
17497 packages that are actually required, given the document's content.
17498 Thus, for example, if strikeout is not used, ulem is not required.
17499 Modified LaTeXHeader accordingly.
17500 + Modified LaTeX writer to insert `\,` between consecutive quotes.
17501 + Removed unused function tableRowColumnWidths.
17502 + Simplified code for escaping special characters.
17503 + Leave extra blank line after `\maketitle`.
17504 + Include empty `\author{}` when no author specified to avoid LaTeX
17506 + Include fancyvrb code in header only if needed -- that is, only
17507 if there is actually code in a footnote.
17508 + Use `\url{}` for autolinks.
17509 + Include [mathletters] option in ucs package, so that basic unicode
17510 Greek letters will work correctly.
17512 * RST writer: Force blank line before lists, so that sublists will
17513 be handled correctly.
17515 * Docbook writer: Fixed a bug: email links with text, like
17516 [foo](me@bar.baz), were being incorrectly treated as autolinks.
17518 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
17519 Text.Pandoc.Shared.
17521 * Text.Pandoc.Shared:
17523 + Added defaultWriterOptions.
17524 + Added writerTableOfContents to WriterOptions.
17525 + Added writerIgnoreNotes option to WriterOptions. This is needed
17526 for processing header blocks for a table of contents, since notes on
17527 headers should not appear in the TOC.
17528 + Added prettyprinting for native Table format.
17529 + Removed some unneeded imports.
17530 + Moved escape and nullBlock parsers from
17531 Text.ParserCombinators.Pandoc, since the latter is for
17532 general-purpose parsers that don't depend on Text.Pandoc.Definition.
17533 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
17534 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
17535 writer, because HTML writer now uses these in constructing a table
17537 + Added clauses for new inline elements (Strikeout, Superscript,
17538 Subscript) to refsMatch.
17539 + Removed backslashEscape; added new functions escapeStringUsing and
17541 + Moved failIfStrict from markdown reader, since it is now used also
17542 by the HTML reader.
17543 + Added a 'try' to the definition of indentSpaces.
17544 + In definition of 'reference', added check to make sure it's not a note
17546 + Added functions: camelCaseToHyphenated, toRomanNumeral,
17547 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
17548 charsInBalanced', withHorizDisplacement, romanNumeral
17549 + Fixed a bug in the anyLine parser. Previously it would parse an empty
17550 string "", but it should fail on an empty string, or we get an error
17551 when it is used inside "many" combinators.
17552 + Removed followedBy' parser, replacing it with the lookAhead parser from
17554 + Added some needed 'try's before multicharacter parsers, especially in
17556 + Removed the 'try' from the 'end' parser in 'enclosed', so that
17557 'enclosed' behaves like 'option', 'manyTill', etc.
17558 + Added lineClump parser, which parses a raw line block up to and
17559 including any following blank lines.
17560 + Renamed parseFromStr to parseFromString.
17561 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
17562 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
17564 + Removed unneeded 'try' in blanklines.
17565 + Removed endsWith function and rewrote calling functions to use
17566 isSuffixOf instead.
17567 + Added >>~ combinator.
17568 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
17571 * Refactored runtests.pl; added separate tests for tables.
17575 + Added -asxhtml flag to tidy in html2markdown. This will
17576 perhaps help the parser, which expects closing tags.
17577 + Modified markdown2pdf to run pdflatex a second time if --toc or
17578 --table-of-contents was specified; otherwise the table of
17579 contents won't appear.
17580 + Modified markdown2pdf to print a helpful message if the 'ulem'
17581 LaTeX package is required and not found.
17583 * Changes to build process:
17585 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
17587 + Removed cabalize and Pandoc.cabal.in. The repository now contains
17588 pandoc.cabal itself.
17589 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
17590 likes the cabal file to have the same name as the tarball.
17591 + Expanded and revised the package description in pandoc.cabal.
17592 Revised the package synopsis.
17593 + The tarball built by 'make tarball' now contains files built from
17594 templates (including man pages and shell scripts), so pandoc can
17595 be built directly using Cabal tools, without preprocessing.
17596 + Executable binaries are now stripped before installing.
17597 + Man pages are now generated from markdown sources, using pandoc's
17599 + Use HTML version of README (instead of RTF) in Mac OS X installer.
17600 + Instead of testing for the existence of a pandoc symlink in build-exec,
17605 + Updated README and man pages with information on new features.
17606 + Updated INSTALL instructions with some useful clarifications and
17608 + Updated web content.
17610 * Added FreeBSD port.
17616 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
17617 libghc6-xhtml-dev. Removed libghc6-html-dev.
17618 + Suggest texlive-latex-recommended | tetex-extra instead of
17619 tetex-bin. This brings in fancyvrb and unicode support.
17622## pandoc 0.3 (2007-01-05)
17624 [ John MacFarlane ]
17626 * Changes in pandoc options:
17628 + Allow options to follow or precede arguments.
17629 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
17630 + Added '--strict' option.
17631 + Added '-o/--output' option.
17632 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
17633 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
17634 error conditions. This is helpful for writing wrappers.
17635 + Added copyright message to '-v' output, modeled after FSF messages.
17636 + Reformatted usage message so that it doesn't wrap illegibly.
17637 + Removed extra blanks after '-h' and '-D' output.
17639 * Added docbook writer.
17641 * Added implicit setting of default input and output format based
17642 on input and output filename extensions. These defaults are
17643 overridden if explicit input and output formats are specified using
17644 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
17647 * Allow ordered list items to begin with (single) letters, as well
17648 as numbers. The list item marker may now be terminated either by
17649 '.' or by ')'. This extension to standard markdown is documented
17652 * Revised footnote syntax. (See README for full details.) The
17653 '[^1]' format now standard in markdown extensions is supported,
17654 as are inline footnotes with this syntax: `^[My note.]`.
17655 The earlier footnote syntax `^(1)` is no longer supported.
17657 * Improved HTML representation of footnotes. All footnotes
17658 are now auto-numbered and appear in an ordered list at the
17659 end of the HTML document. Since the default appearance is now
17660 acceptable, the old footnote styles have been removed from the
17665 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
17666 These readers ran 'runParser' on processed chunks of text to handle
17667 embedded block lists in lists and quotation blocks. But then
17668 any changes made to the parser state in these chunks was lost,
17669 as the state is local to the parser. So, for example, footnotes
17670 didn't work in quotes or list items. The fix: instead of calling
17671 runParser on some raw text, use setInput to make it the input, then
17672 parse it, then use setInput to restore the input to what it was
17673 before. This is shorter and more elegant, and it fixes the problem.
17674 + Fixed bug in notFollowedBy' combinator (adding 'try' before
17675 'parser'). Adjusted code that uses this combinator accordingly.
17676 + Fixed bug in RTF writer that caused improper indentation on
17677 footnotes occurring in indented blocks like lists.
17678 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
17679 and date are parsed correctly. Everything else in the preamble
17681 + Modified escapedChar in LaTeX reader to allow a `\` at the end of a
17682 line to count as escaped whitespace.
17683 + Modified LaTeX reader to produce inline links rather than reference
17684 links. Otherwise, links in footnotes aren't handled properly.
17685 + Fixed handling of titles in links in Markdown reader, so that
17686 embedded quotation marks are now handled properly.
17687 + Fixed Markdown reader's handling of embedded brackets in links.
17688 + Fixed Markdown reader so that it only parses bracketed material
17689 as a reference link if there is actually a corresponding key.
17690 + Revised inline code parsing in Markdown reader to conform to
17691 markdown standard. Now any number of `s can begin inline code,
17692 which will end with the same number of `s. For example, to
17693 have two backticks as code, write ``` `` ```. Modified Markdown
17694 writer accordingly.
17695 + Fixed bug in text-wrapping routine in Markdown and RST writers.
17696 Now LineBreaks no longer cause wrapping problems.
17697 + Supported hexadecimal numerical entity references as well as
17699 + Fixed bug in Markdown reader's handling of underscores and other
17700 inline formatting markers inside reference labels: for example,
17701 in '[A_B]: /url/a_b', the material between underscores was being
17702 parsed as emphasized inlines.
17703 + Changed Markdown reader's handling of backslash escapes so that
17704 only non-alphanumeric characters can be escaped. Strict mode
17705 follows Markdown.pl in only allowing a select group of punctuation
17706 characters to be escaped.
17707 + Modified HTML reader to skip a newline following a `<br>` tag.
17708 Otherwise the newline will be treated as a space at the beginning
17711 * Made handling of code blocks more consistent. Previously, some
17712 readers allowed trailing newlines, while others stripped them.
17713 Now, all readers strip trailing newlines in code blocks. Writers
17714 insert a newline at the end of code blocks as needed.
17716 * Modified readers to make spacing at the end of output more consistent.
17718 * Minor improvements to LaTeX reader:
17720 + `\thanks` now treated like a footnote.
17721 + Simplified parsing of LaTeX command arguments and options.
17722 commandArgs now returns a list of arguments OR options (in
17723 whatever order they appear). The brackets are included, and
17724 a new stripFirstAndLast function is provided to strip them off
17725 when needed. This fixes a problem in dealing with \newcommand
17726 and \newenvironment.
17728 * Revised RTF writer:
17730 + Default font is now Helvetica.
17731 + An `\f0` is added to each `\pard`, so that font resizing works
17734 * Moved handling of "smart typography" from the writers to the Markdown
17735 and LaTeX readers. This allows great simplification of the writers
17736 and more accurate smart quotes, dashes, and ellipses. DocBook can
17737 now use `<quote>`. The '--smart' option now toggles an option in
17738 the parser state rather than a writer option. Several new kinds
17739 of inline elements have been added: Quoted, Ellipses, Apostrophe,
17742 * Changes in HTML writer:
17744 + Include title block in header even when title is null.
17745 + Made javascript obfuscation of emails even more obfuscatory,
17746 by combining it with entity obfuscation.
17748 * Changed default ASCIIMathML text color to black.
17752 + Added --strip-trailing-cr option to diff in runtests.pl, for
17753 compatibility with Windows.
17754 + Added regression tests with footnotes in quote blocks and lists.
17756 * Makefile changes:
17758 + osx-pkg target creates a Mac OS X package (directory). New osx
17759 directory contains files needed for construction of the package.
17760 + osx-dmg target creates a compressed disk image containing the package.
17761 + win-pkg target creates Windows binary package.
17762 + tarball target creates distribution source tarball.
17763 + website target generates pandoc's website automatically, including
17764 demos. New 'web' directory contains files needed for construction
17765 of the website (which will be created as the 'pandoc' subdirectory
17767 + Makefile checks to see if we're running Windows/Cygwin; if so,
17768 a '.exe' extension is added to each executable in EXECS.
17770 * Removed all wrappers except markdown2pdf and html2markdown.
17772 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
17773 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
17774 option and disables other options.
17776 * Added code to html2markdown that tries to determine the character
17777 encoding of an HTML file, by parsing the "Content-type" meta tag.
17779 + If the encoding can't be determined, then if the content is local,
17780 the local encoding is used; if it comes from a URL, UTF-8 is used
17782 + If input is from STDIN, don't try to determine character encoding.
17783 + Encoding can be specified explicitly using '-e' option.
17785 * Improved warning messages in wrappers:
17787 + Print warning if iconv not available
17788 + More user-friendly error messages in markdown2pdf, when
17793 + Renamed 'Text/Pandoc/HtmlEntities' module to
17794 'Text/Pandoc/Entities'. Also changed function names so as
17795 not to be HTML-specific.
17796 + Refactored SGML string escaping functions from HTML and Docbook
17797 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
17798 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
17800 + Removed splitBySpace and replaced it with a general, polymorphic
17802 + Refactored LaTeX reader for clarity (added isArg function).
17803 + Converted some CR's to LF's in src/ui/default/print.css.
17804 + Added license text to top of source files.
17805 + Added module data for haddock to source files.
17806 + Reformatted code for consistency.
17808 * Rewrote documentation and man pages. Split README into INSTALL
17811 * Split LICENSE into COPYING and COPYRIGHT.
17813 * Removed TODO, since we now maintain ToDo on the wiki.
17815 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
17820 * Revamped build process to conform to debian standards and created
17821 a proper debian package. Closes: #391666.
17823 * Modified build process to support GHC 6.6.
17825 + The package can still be compiled using GHC 6.4.2, though because
17826 of dependencies the "make deb" target works only with GHC 6.6+.
17827 + The script 'cabalize' is used to create an appropriate
17828 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
17831 * Refactored template processing (fillTemplates.pl).
17833 * Modified wrapper scripts to make them more robust and portable.
17834 To avoid code duplication and ensure consistency, wrappers are
17835 generated via a templating system from templates in src/wrappers.
17837 + Wrappers now accept multiple filenames, when appropriate.
17838 + Spaces and tabs allowed in filenames.
17839 + getopts shell builtin is used for portable option parsing.
17840 + Improved html2markdown's web grabber code, making it more robust,
17841 configurable and verbose. Added '-e', '-g' options.
17844## pandoc 0.2 (2006-08-14)
17846 * Fixed unicode/utf-8 translation
17848## pandoc 0.1 (2006-08-14)
17850 * 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