1# Revision history for pandoc
3## pandoc 2.10 (YYYY-MM-DD)
5 * Use pandoc-types 1.21. This adds two things:
7 + A native Underline constructor for Inline (#6277, Vaibhav Sagar).
8 + More expressive types for tables (#1024, Christian Despres).
9 Tables can now take attributes; and rowspans and colspans,
10 column headers, multiple row headers, table head and foot
11 can all be represented. (Note, however, that reader and
12 writer support for these features is still lacking, so
13 most users won't see any differences in table conversion
14 yet. These changes just lay the foundation for further
17 * Support new Underline element in readers and writers (#6277,
20 * Support new Table type (Christian Despres).
21 The Builder.simpleTable now only adds a row to the TableHead
22 when the given header row is not null. This uncovered an
23 inconsistency in the readers: some would unconditionally
24 emit a header filled with empty cells, even if the header
25 was not present. Now every reader has the conditional
26 behaviour. Only the XWiki writer depended on the header row
27 being always present; it now pads its head as necessary.
29 * Add an option to disable certificate validation (#6156, Cédric Couralet,
30 Cécile Chemin, Juliette Fourcot). This commit adds the option
31 `--no-check-certificate`, which disables certificate checking when
32 resources are fetched by HTTP.
34 * Unify defaults and markdown metadata parsers (#6328, Nikolay
35 Yakimov). Clean up code in Text.Pandoc.Readers.Metadata and
36 properly handle errors in `yamlToMeta`. This fixes parsing
37 of Boolean fields in metadata withinin defaults files and reduces
42 + Implement `<procedure>` (#6442, Mathieu Boespflug).
43 + Implement `<phrase>` (#6438, Mathieu Boespflug).
44 + Treat envar and systemitem like code (#6435, Mathieu Boespflug).
45 + Implement `<replaceable>` (#6437, Mathieu Boespflug)
46 + Map `<simplesect>` to unnumbered section (#6436, Mathieu Boespflug).
50 + Handle "label" element in section title (#6288).
51 + Parse abstract element into metadata field of same name
52 (#6480, Albert Krewinkel).
54 * Jira reader (Albert Krewinkel):
56 + Resolve multiple parsing problems, including issues with empty
57 table cells, faulty recognition of closing emphasis characters, and
58 parsing of image attributes (#6212, #6219, #6220).
59 + Two consecutive markup chars are now parsed verbatim (#6343);
60 styled text must not be empty.
61 + Newlines are no longer allowed within styled text (#6325).
62 + Links to anchors are now parsed as links (#6407).
63 + Retain image attributes (#6234). Jira images attributes as in
64 `!image.jpg|align=right!` are retained as key-value pairs. Thumbnail
65 images, such as `!example.gif|thumbnail!`, are marked by a
66 `thumbnail` class in their attributes.
67 + Use Underline for inserted text (#6237). Previously, the span was
68 marked with the non-standard class `inserted`.
69 + Improve icon conversion for `(/)`, `(x)`, `(!)`, `(?)`
70 `(+)`, `(-)`, `(off)`, `(*)`. (#6236, #6264).
71 + Support citations, attachment links, and user links (#6231, #6238,
73 + Resolve parsing issues of blockquote, color (#6233, #6235).
77 + Parse attributes into table attributes.
78 + Support `<bdo>` (#5794, Tristan de Cacqueray).
79 + Add `summary` to list of block-level HTML tags (#6385).
80 This improves support for summary/details inside Markdown.
81 NOTE: you need to include a blank line before the closing
82 `</details>`, if you want the last part of the content to
83 be parsed as a paragraph.
84 + Fix parsing unclosed th elements in a table (#6247).
86 * Commonmark reader: Implement `implicit_figures` extension (#6350).
90 + Fix inline code in lists (#6284, Nikolay Yakimov).
91 Previously inline code containing list markers was sometimes
93 + Don't require blank line after grid table (#6481).
94 This allows grid tables to be enclosed in fenced divs with no
95 intervening blank lines.
99 + Don't parse beyond `\end{document}` (#6380).
100 This required some internal changes to `\subfile` handling.
101 + Better handling of `\lettrine`. SmallCaps instead of Span
102 for the part after the initial capital. Ensure that both
103 arguments are parsed, so that in Markdown both
104 are treated as raw LateX. (Closes #6258.)
106 * Org reader (Albert Krewinkel):
108 + Recognize images with uppercase extensions (#6472).
109 + Keep unknown keyword lines as raw org. The lines of unknown
110 keywords, like `#+SOMEWORD: value` are no longer read as metadata,
111 but kept as raw `org` blocks. This ensures that more information
112 is retained when round-tripping org-mode files; additionally,
113 this change makes it possible to support non-standard org
114 extensions via filters.
115 + Unify keyword handling. Handling of export settings and other
116 keywords (like `#+LINK`) has been combined and unified.
117 + Support `LATEX_HEADER_EXTRA` and `HTML_HEAD_EXTRA`
118 settings. These export settings are treated like their non-extra
119 counterparts, i.e., the values are added to the `header-includes`
121 + Allow multiple `#+SUBTITLE` export settings. The values of all
122 lines are read as inlines and collected in the `subtitle`
124 + Read `#+INSTITUTE` values as text with markup. The value is
125 stored in the `institute` metadata field and used in the
126 default beamer presentation template.
127 + The behavior of the `#+AUTHOR` and `#+KEYWORD` export
128 settings has changed: Org now allows multiple such lines
129 and adds a space between the contents of each line. Pandoc
130 now always parses these settings as meta inlines; setting
131 values are no longer treated as comma-separated lists.
132 Note that a Lua filter can be used to restore the previous
134 + Read description lines as inlines (#6485). `#+DESCRIPTION` lines
135 are now treated as text with markup. If multiple such
136 lines are given, then all lines are read and separated by soft
138 + Honor tex export option (#4070). The `tex` export option can be set
139 with `#+OPTION: tex:nil` and allows three settings:
140 `t` (the default) causes LaTeX fragments to be parsed as TeX or added
141 as raw TeX. `nil` removes all LaTeX fragments from the document.
142 `verbatim` treats LaTeX as text.
147 + Pass arbitrary attributes through in code blocks (#6465).
148 Exceptions: name (which becomes the id), class (which becomes the
149 classes), and number-lines (which is treated specially to fit
150 with pandoc highlighting).
151 + Handle `date::` directive (#6276).
153 * Textile reader: support `pre.` for code blocks (#6454).
157 + Handle application/pdf output as image (#6430).
158 + Properly handle image/svg+xml as an image (#6430).
162 + Distinguish between docx parsing and docx container unpacking errors.
166 + Fix `gfm_auto_identifiers` so that `-` is not replaced by `_` (#6335).
170 + Add nested syntax highlighting (#6256, Vlad Hanciuta).
171 Nested syntaxes are specified like this:
177 The preformatted code block parser has been extended to check if the
178 first attribute of the block is not a `key=value` pair, and in that
179 case it will be considered as a class.
182 * Jira writer (Albert Krewinkel):
184 + Always escape braces (#6478). Braces are now always escaped, even
185 within words or when surrounded by whitespace. Jira and
186 Confluence treat braces specially.
187 + Convert Underline to inserted text (`+inserted+`).
188 + Add image attributes (#6234). Image attributes are added
189 to the output as image parameters. If the image has a
190 class "thumbnail", then a thumbnail image is generated;
191 all other attributes are discarded in this case.
195 + Ensure that `-M csquotes` works even in fragment mode (#6265).
196 + Escape `^` specially for listings (#6460).
197 + Create hypertarget for links with identifier (#6360).
198 + Distinguish between single and double quotes when using enquote
199 package (#6457, dbecher-ito).
200 + Add support for customizable alignment of columns in beamer (#6331,
202 + Add support for customizable alignment of columns in beamer
203 (#4805, #4150, andrebauer).
207 + Use CSS in favor of `<br>` for display math (#6372)
208 Some CSS to ensure that display math is
209 displayed centered and on a new line is now included
210 in the default HTML-based templates; this may be
211 overridden if the user wants a different behavior.
215 + Clean-up Div handling (Albert Krewinkel).
219 + Enable column and row bands for tables (#6371).
220 This change will not have any effect with the default style.
221 However, it enables users to use a style (via a reference.docx)
222 that turns on row and/or column bands.
224 * OpenDocument (and ODT) writer:
226 + Add custom-style "Abstract" in metadata abstract.
227 This ensures that the abstract is rendered with style Abstract.
228 + Enable custom-style attribute on a Div.
229 This allows you to apply a custom style to contained paragraphs.
233 + Add id of figure to enclosed image.
234 + Add personname element to docbook author (#6244).
238 + Properly handle cover-image containing spaces (#6391).
242 + Ensure consistent padding for pipe tables (#6240).
243 + Avoid unnecessary escapes before intraword `_` when
244 `intraword_underscores` extension is enabled (#6296).
248 + Properly handle images with same alt text (#6194).
249 Previously we created duplicate references for these in rendering RST.
253 + Add blank line after Div (#6308).
257 + Support Haddock tables (Joe Hermaszewski).
258 See this PR on Haddock for details on the table format:
259 <https://github.com/haskell/haddock/pull/718>.
261 * PowerPoint writer (Jesse Rosenthal):
263 + Write math input verbatim in speaker notes (#6301).
264 OMML in speaker notes would lead to corrupt PowerPoint output. We now
265 output the OMML verbatim as LaTeX in the speaker notes.
267 * LaTeX template: Make polyglossia package options list-aware
268 (#6444, Frederik Elwert).
270 * Reveal.js template:
272 + Update template for reveal.js 4.0.0 (#6390, Salim B).
273 + Update template with newly available options (#6347, Jake Zimmerman).
274 + Use CDN version of revealjs v4 by default (#6408).
276 * opendocument template: Add abstract and subtitle to opendocument
279 * reference.odt: clean up styles. Add Abstract.
280 Change Author, Date to centered paragraphs with no character
283 * epub.css: wrap overlong lines in highlighted code blocks (#6242).
284 This fixes a problem in iBooks v2.4 with our earlier
285 horizontally scrolling code blocks. The problem seems to
286 be a bug in iBooks, not pandoc, but since iBooks is a major
287 target we're changing pandoc's default behavior so that
288 pandoc-produced epubs work on that platform.
292 + Use `--enable-local-file-access` in invoking `wkhtmltopdf` (#6474).
293 `wkhtmltopdf` changed in recent versions to require this for
294 access to local files. This fixes PDF via HTML5 with `--css`.
295 + Send verbose output to stderr, not stdout (#6483).
297 * Text.Pandoc.MIME: Fix MIME type for TrueType fonts in EPUBs
298 (#6464, Michael Reed).
300 * Text.Pandoc.Shared:
302 + `makeSections`: omit number attribute when unnumbered class
303 is present (#6339). Previously the attribute was included but given
304 an empty value, and this caused the table of contents creation
305 functions in Text.Pandoc.Writers.Shared to think these items had
306 numbers, which meant that they were included in the TOC even if the
307 `unlisted` class was used.
308 + Deprecate `underlineSpan` in Shared in favor of
309 `Text.Pandoc.Builder.underline` (Vaibhav Sagar).
310 + `renderTags'`: use self-closing tag for col element (#6295).
312 * Text.Pandoc.UUID: Fix `getRandomUUID`, which previously would
313 return the same value twice in a row. Make `getRandomUUID`
314 polymorphic in PandocMonad. Remove `getUUID` (#6228, Joseph C. Sible).
316 * Text.Pandoc.Class: Generalize `PandocIO` functions to `MonadIO`.
318 * Fixed Katex standalone script (#6399, Lucas Escot).
319 Global macros are now persistent when using the HTML Writer with the
322 * Lua subsystem (Albert Krewinkel):
324 + Use new type PandocLua for all pandoc Lua operations (API change).
325 The new type `PandocLua` is an instance of the `PandocMonad` typeclass
326 and can thus be used in a way similar to `PandocIO`.
327 + Use PandocError for exceptions in Lua subsystem (API change).
328 The PandocError type is used throughout the Lua subsystem. All Lua
329 functions throw an exception of this type if an error occurs. The
330 `LuaException` type is removed and no longer exported from
331 `Text.Pandoc.Lua`. In its place, a new constructor `PandocLuaError`
332 is added to PandocError.
334 * Lua filters: improve error messages for failing filters (#6332,
335 Albert Krewinkel). Print the Lua error properly instead of
336 displaying their `show` string.
338 * Use latest skylighting. This fixes a bug with lua multiline
339 comments (and may improve handling of other syntaxes as well).
340 IT also adds `aria-hidden="true"` to the empty a elements, which
341 helps people who use screen readers.
343 * Use latest texmath.
345 * Require latest doctemplates 0.8.2.
346 This adds support for template pipes `first`, `rest`,
347 `last`, `allbutlast`.
349 * Revert 0e48a02 and dependency on base-noprelude, which hasn't
350 been updated for ghc 8.10 (see #6187).
352 * Dependency adjustments:
354 + Allow haddock-library 1.9.x.
355 + Allow hslua 1.1 (#6243, Felix Yan).
356 + Allow base64-bytestring 1.1.
357 + Use latest jira-wiki-markup.
358 + Allow http-client 0.7.
360 + Allow aeson 1.5 (#6400, Felix Yan).
361 + Remove unused dependency `vector` (#6462, Laurent P. René de Cotret).
362 + Bump QuickCheck upper bound.
364 * Significant code cleanup and simplification (Joseph C. Sible, #6223,
365 #6209, #6225, #6229, #6226, #6340).
367 * Remove unnecessary hlint ignores (#6341, Joseph C. Sible).
369 * Remove obsolete RelaxedPolyRec extension (#6487, Nikolay Yakimov).
371 * trypandoc improvements (Mike Tzou):
373 + Add standalone option to the command text (#6210).
374 + Update third party libraries.
378 + Clarify template partial naming (#6476, Mauro Bieg).
379 + Describe `jira` as "Jira/Confluence wiki markup" (#6351, Albert
380 Krewinkel). In the past, Jira's wiki markup was also used by -- and
381 could be imported into -- Atlassian Confluence.
382 + Add link to print-css.rocks (#6272, Mauro Bieg).
383 + Clarify pipe table column width adjustment (#6254).
384 + Fix ATX header syntax.
385 + Fix misleading note about image size conversions (#6353).
386 + Update links to reveal.js documentation (#6386, Salim B).
387 + Separate adjacent verbatim code blocks (#6307, tom-audm).
391 + Document behavior of `smart` extension (#4387, Albert Krewinkel).
392 + Describe all supported export options in detail.
396 + Fix description of BulletList Lua type (Levi Gruspe).
397 + Use pandoc.system module in TikZ example (Albert
398 Krewinkel). Showcase temporary directory handling with
399 `with_temporary_directory` and `with_working_directory`.
401 * INSTALL.md: fix FreeBSD port link (#6422, Mo).
402 The FreeBSD port was renamed from pandoc to hs-pandoc in 2010.
403 The old pandoc port is still at version 1.5.1.1
405 * Propagate `(DY)LD_LIBRARY_PATH` in tests (#6376, Lila).
407 * Bump `cabal-version` to 2.2 (#6377).
409 * Make it possible to compile using Stack on NixOS (#6439, Mathieu
412 * CI action to check for commit messsage length (Nikolay Yakimov, #6398).
415## pandoc 2.9.2.1 (2020-03-23)
417 * Markdown reader: Fix table alignment when heading begins with t (#6153).
418 Due to a typo (`t` instead of `\t`) we were center aligning column
419 headings that begin with a lowercase `t`!
421 * Text.Pandoc.Readers.Roff:
423 + Fix parsing of `\.` in man/ms readers (#6175).
424 Previously due to a typo it was being parsed as `` ` ``.
425 + Fix parsing of `\'` in man/ms readers (#6175). It was being parsed
428 * Jira reader (Albert Krewinkel):
430 + Fix parsing of tables without preceding blankline (#6198).
431 A bug was fixed which caused faulty parsing if a table was not
432 preceded by a newline and the first table cell had no space
433 after the initial `|` characters.
434 + Fix parsing of strikeout, emphasis (#6196). A bug was fixed which
435 caused non-emphasized text containing digits and/or non-special
436 symbols (like dots) to sometimes be parsed incorrectly.
437 + Support colored inline text, indented lists (#6183, #6184).
441 + Fix definition lists so indent even when paragraph indent is
442 set to 0 (as is the default). Also ensure indent for display math
443 that falls back to TeX.
444 + Use `.QS/.QE` instead of `.RS/.RE` for block quotes.
446 * EPUB writer: fix regression on detection of front/back/bodymatter
447 (#6170). This bug caused sections with epub:type `dedication` to be
448 misplaced in bodymatter instead of frontmatter as specified
449 in the manual. The same problem would affect other epub:types.
450 The pattern matching needed to be changed with the use of
453 * AsciiDoc writer: remove redundant `otherwise` guard in
454 `inlineToAsciiDoc` (#6146, Ryan Scott).
458 + Fix missing import when data files are not embedded (Albert Krewinkel).
459 + Subdivide Text.Pandoc.Class into small unexported modules
460 and ensure that all functions have Haddock documentation (#6106,
462 + Finer grained imports of Text.Pandoc.Class submodules (#6203, Albert
465 * Text.Pandoc.XML: Add to list of HTML5 attributes:
466 `allow`, `autocapitalize`, `decoding`, `enterkeyhint`,
467 `imagesizes`, `imagesrcset`, `loading`.
469 * Use implicit Prelude (#6187, Albert Krewinkel).
470 The previous behavior was introduced as a fix for #4464. It seems that
471 this change alone did not fix the issue, and `stack ghci` and `cabal
472 repl` only work with GHC 8.4.1 or newer, as no custom Prelude is loaded
473 for these versions. Given this, it seems cleaner to revert to the
476 * Always use custom prelude (#6187, Albert Krewinkel).
477 Previously, the custom prelude was used only with older GHC versions, as
478 a workaround for problems with ghci. The ghci problems are resolved by
479 replacing package `base` with `base-noprelude`, allowing for consistent
480 use of the custom prelude across all GHC versions.
482 * Remove outdated checks for no longer supported base versions
485 * PDF via wkhtmltopdf: put user-specified options last (#6171).
486 Certain options (e.g. `cover`) need to come after flags on
489 * Text.Pandoc.App: set resource path at the beginning so it can affect
490 things like include-in-header (#5982).
492 * Change macOS release candidate CI process so that notarized
493 packages can be produced (#6169).
495 * Make MANUAL more explicit about nonbreaking space handling by
496 `all_symbols_escapable` (#6154, Fabien Schurter).
498 * trypandoc (Mike Tzou):
500 + Add checkbox for standalone option (#6189).
501 + Use strict mode for JavaScript code (#6188).
502 + Fetch resources over https (#6188).
503 + Remove unnecessary attributes on style, script elements (#6188).
505 * Use details tag to make GitHub releases changelog collapsible.
507 * Update filter code in doc/filters.md so it works with latest pandoc
510 * linux/Dockerfile: upgrade to alpine 3.11 (#6180, Albert Krewinkel).
511 This is used to build the static linux binaries.
514## pandoc 2.9.2 (2020-02-15)
516 * Add `csv` as an input format (#6100). The CSV table is converted into a
517 pandoc simple table. A new module Text.Pandoc.Readers.CSV
518 exports `readCSV` [API change].
520 * Introduce new format variants for JATS writer (#6014, Albert Krewinkel):
522 - `jats_archiving` for the "Archiving and Interchange Tag Set",
523 - `jats_publishing` for the "Journal Publishing Tag Set", and
524 - `jats_articleauthoring` for the "Article Authoring Tag Set."
526 The `jats` output format is now an alias for `jats_archiving`.
527 The module Text.Pandoc.Writers.JATS now exports
528 `writeJatsArchiving`, `writeJatsPublishing`, and
529 `writeJatsArticleAuthoring`, as well as the legacy
530 `writeJATS` [API change].
532 * `--defaults`: Support `bibliography` and `csl` fields.
533 Move `addMeta` from Text.Pandoc.App.CommandLineOptions to
534 Text.Pandoc.App.Opt (internal change).
536 * Add timing info for filters in `--verbose` mode (#6112).
537 When verbose mode is specified (verbosity == INFO), print a
538 notice when running a filter and when a filter completes (including
543 + Allow `&` in LaTeX citation keys (#6110).
544 + Improve caption and label parsing.
545 + Don't emit empty Span elements for labels.
546 + Put tables with labels in a surrounding Div.
547 + Resolve `\ref` to table numbers (#6137).
548 + Skip comments in more places where this is needed (#6114).
549 + Allow beamer overlays for all commands in all raw tex (#6043).
550 This affects parsing of raw tex in LaTeX and in Markdown and
552 + Improve parsing of raw environments (#6034). If parsing fails
553 in a raw environment (e.g. due to special characters like unescaped
554 `_`), try again as a verbatim environment, which is less sensitive to
555 special characters. This allows us to capture special environments
556 that change catcodes as raw tex when `-f latex+raw_tex` is used.
560 + Add highlight directive (#6140, Lucas Escot).
564 + Prevent triple `[[[` which confuses MediaWiki (#6119).
568 + Don't parse `data-id` as `id` attribute. And similarly don't
569 parse any `data-X` as `X` when `X` is a valid HTML attribute.
573 + Simplify parsing of sub- and superscripts (#6127, Albert Krewinkel).
574 Speeds up parsing of single-word, markup-less sub- and superscripts.
578 + Group biblatex citations even with prefix and suffix (#5849, Ethan
579 Riley). Previously biblatex citations were only grouped if there
580 was no prefix. This patch allows them to be grouped in subgroups split
581 by prefixes and suffixes, which allows better citation sorting.
582 + Fix regression in handling of columns in beamer slides (#6033).
583 Columns in title slides were causing problems with
585 + Fix duplicate frame classes in LaTeX/Beamer output (#6107).
589 + Fix duplicate attributes on headings (#6062), regression from 2.7.x.
590 + Fix `--number-offset` with HTML TOC. Eventually it would be worth
591 adding a parameter to `makeSections` so this could be done at that
592 level; then it would also affect other writers that construct
594 + reveal.js: restore old behavior for 2D nesting (#6032).
595 The fix to #6030 actually changed behavior, so that the
596 2D nesting occurred at slide level N-1 and N, instead of
597 at the top-level section. This commit restores the v2.7.3 behavior.
598 If there are more than 2 levels, the top level is horizontal
599 and the rest are collapsed to vertical.
600 + reveal.js: ensure that pauses work even in title slides (#5819).
604 + Fix regression: spurious dots in markdown_mmd metadata output (#6133).
608 + Fix regression with Compact style on tight lists (#6072).
609 Starting in 2.8, the docx writer no longer distinguishes between tight
610 and loose lists, since the Compact style is omitted. This is a
611 side-effect of the fix to #5670, as explained in the changelog. This
612 patch fixes the problem by extending the exception currently offered to
613 Plain blocks inside tables to Plain blocks inside list items.
617 + Fix output of table headers (Albert Krewinkel, #6035).
619 * Add Text.Pandoc.Image with unexported svgToPng.
621 * Text.Pandoc.XML: Export `html5Attributes`, `html4Attributes`,
622 `rdfaAttributes` (formerly unexported in Text.Pandoc.Writers.HTML).
625 * Text.Pandoc.Shared: Export a new function `findM` (#6125,
628 * Text.Pandoc.Logging: Add `RunningFilter`, `FilterCompleted`
629 constructors to LogMessage [API change].
631 * Text.Pandoc.CSV: fix bug in CSV parser; previously an extra blank record
632 would sometimes be inserted at the end.
634 * LaTeX template: add space option to xeCJK with PassOptionsToPackage
635 (#6002). Otherwise we can get a clash with documentclasses that
636 already load the package.
640 + Allow filtering of element lists (#6038, Albert Krewinkel). Lists of
641 Inline and Block elements can now be filtered via `Inlines` and
642 `Blocks` functions, respectively. This is helpful if a filter
643 conversion depends on the order of elements rather than a single
644 element. For example, the following filter can be used to remove all
645 spaces before a citation:
647 function isSpaceBeforeCite (spc, cite)
648 return spc and spc.t == 'Space'
649 and cite and cite.t == 'Cite'
652 function Inlines (inlines)
653 for i = #inlines-1,1,-1 do
654 if isSpaceBeforeCite(inlines[i], inlines[i+1]) then
661 + Add methods `insert`, `remove`, and `sort` to pandoc.List
662 (Albert Krewinkel). Example of use:
664 local numbers = pandoc.List {2, 3, 1}
665 numbers:sort() -- numbers is now {1, 2, 3}
666 + Make `pandoc.List` a callable constructor (Albert Krewinkel).
667 It is now possible to construct a new List via
668 `pandoc.List()` instead of `pandoc.List:new()`.
669 + Add tests for pandoc.List module (Albert Krewinkel).
671 * Text.Pandoc.App.CommandLineOptions: Change `setVariable` to use `Text`
672 instead of `String`. This avoids some unnecessary unpacking.
674 * Use versioned directory for windows release zipfile.
675 Also remove old `make-windows-installer.bat`, superseded by GitHub
676 actions workflow, and modify `pandoc.wxs` for new paths.
678 * Extensive code cleanup (#6141, #6128, #6129, #6130, #6123,
679 #6105, 6102, #6117, #6124, #6115, #6116, #6111, Joseph C. Sible).
681 * Fix hlint warnings (Albert Krewinkel).
683 * Use latest doclayout, doctemplates (#6031). The new version of
684 doclayout fixes a memory leak that affected `--include-in-header` with
685 large files (and possibly other cases involving extremely long lines).
687 * Use latest texmath.
689 * Use latest skylighting and fix test suite (#6086).
691 * sample.lua: Fix typo in descriptive comments (#6136, Caleb Maclennan).
692 Fix typo in error message (#6135).
694 * Add Docker and GH Actions instructions/links to INSTALL.md.
696 * Update filter documentation (#6065). Improve cabal v2 instructions.
697 Remove example using pandoc API directly (we have other
698 docs for that and it was outdated).
702 + Cross-link constructors and types (Albert Krewinkel).
703 Thanks to @bpj for the idea.
704 + Sort pandoc.List methods alphabetically (Albert Krewinkel).
705 + Unify, fix anchors and internal links (#6061, Albert Krewinkel).
706 Links and anchors now follow consistent conventions, like
707 lowercase-only anchor names. This breaks some links to specific
708 sections in the document, but will make it much easier to link
709 documentation in the future.
710 + Clarify filter function execution order (#6059, Albert Krewinkel).
712 * In docs, update URLs and use `https:` wherever possible (#6090,
715## pandoc 2.9.1.1 (2020-01-05)
719 + Fix parsing bug affected indented code after raw HTML (#6009, #5360).
723 + Fix regression in beamer slide structure with certain slide levels
725 + Allow framebreaks for beamer's TOC (Heiko Schlittermann, #6012)
726 + Properly handle unnumbered headings level 4+ (#6018).
727 Previously the `\paragraph` command was used instead of
728 `\paragraph*` for unnumbered level 4 headings.
732 + Fix revealjs slide structure regression with certain slide levels
734 + Add newlines to make slide show output more readable.
738 + Remove extra spaces from table cells (Albert Krewinkel, #6024).
740 * JATS template: Update JATS dtd (Arfon Smith, #6020). Use the archiving
741 and interchange DTD rather than the more restrictive journal publishing
742 DTD (which doesn't permit ext-link as a valid child).
744 * Text.Pandoc.PDF: Fix `runTeXProgram` so that the input source is always
745 overwritten (#6027). Previously it wasn't overridden if the file already
746 existed, which led to bad results on subsequent runs when
747 `pdf-engine-opt=-output-directory=` was used to specify an explicit temp
750 * Text.Pandoc.BCP47: Change `getLang` to handle block-level contents
751 (#6008). Some readers (e.g. RST) will populate the `lang` metadata field
752 with block-level content. `getLang` has been modified to handle this.
753 Previously in these cases the LaTeX writer would not properly set the
754 "main language" of the document.
756 * Fix `test/tables.org` (Albert Krewinkel).
758 * Use HTTPS in copyright message (Felix Yan, #6010)
761## pandoc 2.9.1 (2019-12-23)
763 * Add Jira reader (Albert Krewinkel, #5556).
765 * Jira writer: use jira-wiki-markup renderer (Albert Krewinkel,
766 #5926). The following improvements are included in this change:
768 + non-jira raw blocks are fully discarded instead of showing
770 + table cells can contain multiple blocks;
771 + unnecessary blank lines are removed from the output;
772 + markup chars within words are properly surrounded by
774 + preserving soft linebreaks via `--wrap=preserve` is
777 Note that backslashes are rendered as HTML entities, as there
778 appears no alternative to produce a plain backslash if it is
779 followed by markup. This may cause problems when used with
780 confluence, where rendering seems to fail in this case.
782 * Fix regression with `--number-sections`. Starting with 2.8,
783 `--number-sections` also had the effect of `--section-divs`,
784 even if `--section-divs` was not specified.
786 * Improved table of contents generation in markdown, RTF,
787 commonmark, better handling cases where section headings are
790 * Ensure that later default file values for `variable` replace
793 * HTML reader: Add `nav` to list of block-level tags.
795 * Org reader (Albert Krewinkel):
797 + Wrap named table in Div, using name as id (#5984).
798 Tables which are given a name via `#+NAME:` or `#+LABEL:`
799 are wrapped in an additional Div, with the name set as the
801 + Report parsing errors properly.
802 + Fix parsing problem for colons in headline (#5993).
804 * Text.Pandoc.PDF: Ensure UTF8 when printing source in
805 `--verbose` mode, avoiding an error on platforms that
806 default to something other than UTF-8 (#5997).
808 * Text.Pandoc.Templates: Strip directory before trying to find
809 partial in data files (#5987).
811 * Text.Pandoc.Shared: Improve `makeSections` so we don't get
812 doubled "number" attributes in EPUB output (or anywhere
815 * Added tests for `--toc` and `--section-divs`.
817 * Text.Pandoc.MIME: Added glsl MIME type for WebGL maps (#6000,
820 * MANUAL: A bit clearer explanation for `--base-header-level`.
821 We now say exactly how to translate between the deprecated
822 `--base-header-level` and `--shift-heading-level-by`.
826 + Remove spurious dot in title (#5996, Mauro Bieg).
827 + Replace metadata example with image centering (#6004,
828 Albert Krewinkel). Thanks to @efx for proposing this filter.
831## pandoc 2.9 (2019-12-11)
833 * Text.Pandoc.Templates [API change]
835 + Add Monad wrappers `WithDefaultPartials` and `WithPartials`.
836 Wrapping these around an instance of `PandocMonad` gives
837 us different instances of `TemplateMonad`, with different
838 search behavior in retrieving partials.
839 To compile a template and limit partial search to pandoc's
840 data files, use `runWithDefaultPartials (compileTemplate ...)`.
841 To compile a template and allow partials to be found locally
842 (either on the file system or via HTTP, in the event that
843 the main template has an absolute URL), ue
844 `runWithPartials (compileTemplate ...)`.
845 + Export `getTemplate`, which seeks a template locally,
846 or via HTTP if the template has an absolute URL, falling
847 back to the data files if not found.
848 + Export `compileDefaultTemplate` -- does `getDefaultTemplate`
849 and compiles the result, raising an error on failure.
851 * Text.Pandoc.Class [API change]
853 + Remove `TemplateMonad` instances for `PandocIO` and `PandocPure`.
854 These were too limiting and caused a bug whereby a local
855 partial could be used even when the default template was requested.
856 We now rely on instances provided in the Templates module.
858 * Text.Pandoc.App.OutputSettings: Simplify template retrieval code.
860 * ConTeXt template: Adjust to title formatting (#5949, Denis Maier).
861 Add `\setupinterlinespace` to `title`, `subtitle`, `date` and `author`
862 elements: otherwise longer titles that run over multiple lines will look
863 squashed as `\tfd` etc. won't adapt the line spacing to the font size.
865 * reveal.js template: Add title-slide-attributes variable (#5981,
868 * More informative JSON parse error (#5973).
870 * Use external emojis package (forked from pandoc). Removed emoji data
871 in Text.Pandoc.Emoji.
873 * Fix regression in `makeSections` (#5965).
874 Previously `hierarchicalize` (the ancestor of `makeSections`) would put
875 header attributes on the containing Div. In 2.8 this behavior changed,
876 which broke some tools depending on pandoc. Here we roll back this change,
877 so that attributes again migrate from the header to the containing Div when
878 `makeSections` is run. Note that attributes are retained on the header as
879 well (unlike before) -- with the exception of the `id` attribute, which of
880 course cannot be duplicated.
882 * Fix `--toc-depth` regression in 2.8 (#5967).
884 * Use doctemplates 0.8. Rename template 'filters' as 'pipes'
885 to avoid confusion with the other notion of filter used by pandoc.
887 * Fix README.md so that relative links from manual become absolute.
888 Previously they'd be broken links when viewed on GitHub or Hackage.
889 So we add the base URL for the pandoc manual.
891 * Document display math syntax in manual.
893## pandoc 2.8.1 (2019-12-05)
895 * Add `ascii_identifiers` as a supported extension for `markdown`.
896 This fixes a regression in 2.8.
898 * Fix regression with behavior of `--variable` (#5962).
899 Previously `-Vfoo=1 -Vfoo=2` would produce a list value for foo;
900 with 2.8 it produced just `2`. This commit restores the earlier
903 * Roll back part of of `--shift-heading-level-by` change (#5957).
904 With positive heading shifts, starting in 2.8 this option
905 caused metadata titles to be removed and changed to regular
906 headings. This behavior is incompatible with the old
907 behavior of `--base-header-level` and breaks old workflows,
908 so we have rolled back the change. Note that there is now an
909 asymmetry in positive and negative heading level shifts:
910 With positive shifts, the metadata title stays the same and
911 does not get changed to a heading in the body, while with
912 negative shifts, a heading can be converted into the
915 * Text.Pandoc.Shared: Fix `makeSections` so it doesn't turn
916 column Divs into sections.
918 * HTML writer: add task-list class to ul if all elements are
919 task list items. This will allow styling unordered task
920 lists in a way that omits the bullet.
922 * HTML-based templates: Add CSS to suppress bullet on unordered task lists.
924 * ConTeXt template: Fix `\startcslreferences` and use ConTeXt syntax
925 conventions (#5945, Denis Maier). The old version had a too large
926 a skip at the beginning of the reference list.
928 * LaTeX template: keep the `\author{}` command even if author is not
929 specified (#5961, Yihui Xie). Avoids a LaTeX warning.
931 * Generate Emoji module with TH.
933 + Add Text.Pandoc.Emoji.TH.
934 + Replace long literal list in Text.Pandoc.Emoji with one-liner
935 generating it from `emoji.json` using TH.
936 + Add Makefile target to download `emoji.json`.
937 + Remove `tools/emoji.hs`.
939 * Increase GC allocation space for compilation in cabal.project.
941 * Clean up manual on PDF generation backend options (#5940).
943 * Update release checklist to include code signing step and update
944 Windows release-candidate builds (#5950).
947## pandoc 2.8.0.1 (2019-11-26)
949 * List `pdf` in `--list-output-formats`.
950 * EPUB writer: Fix regression with `--css` (#5937). In 2.8 `--css`
951 would not have an effect on EPUB output.
952 * RST writer: Use grid tables for one-column tables, since
953 simple tables clash with heading syntax in this case (#5936).
954 * Add unexported module Text.Pandoc.Readers.Metadata (see #5914).
955 * Use doctemplates 0.7.2, which adds the `nowrap` filter to
957 * Update default man template using `nowrap` for .TH heading (#5929).
958 * HTML templates: Add support for `toc-title` variable (#5930,
960 * Remove `grffile` (LaTeX package) requirement in MANUAL.txt
961 (#5927, Ian Max Andolina).
962 * Use skylighting 0.8.3.
964## pandoc 2.8 (2019-11-22)
966 * Improvements in templates system (from doctemplates):
968 + Pandoc templates now support a number of new features that
969 have been added in doctemplates: notably, `elseif`, `it`,
970 partials, filters, and syntax to control nesting and reflowing of
971 text. These changes make pandoc more suitable out of the
972 box for generating plain-text documents from data in YAML
973 metadata. It can create enumerated lists and even tabular
975 + We now used templates parameterized on doclayout Doc types.
976 The main impact of this change is better reflowing of
977 content interpolated into templates. Previously,
978 interpolated variables were rendered independently and
979 intepolated as strings, which could lead to overly long
980 lines. Now the templates interpolated as Doc values which
981 may include breaking spaces, and reflowing occurs after
982 template interpolation rather than before.
983 + Remove code from the LaTeX, Docbook, and JATS writers that
984 looked in the template for strings to determine whether it
985 is a book or an article, or whether csquotes is used. This
986 was always kludgy and unreliable.
987 + Change template code to use new API for doctemplates.
989 * Add `--defaults`/`-d` option. This adds the ability to specify
990 a collection of default values for options in a YAML file. For
991 example, one might define a set of defaults for letters,
992 and then do `pandoc -d letter myletter.md -o myletter.pdf`.
993 See the documentation of this feature in MANUAL.txt.
995 * Raise error on unsupported extensions (#4338).
997 * The `--list-extensions[=FORMAT]` option now lists only
998 extensions that affect the given FORMAT.
1000 * Add `-L` option as shortcut for `--lua-filter`.
1002 * Add `--shift-heading-level-by` option and deprecate
1003 `--base-heading-level` (#5615). The new option does
1004 everything the old one does, but also allows negative shifts.
1005 It also promotes the document metadata (if not null) to a
1006 level-1 heading with a +1 shift, and demotes an initial
1007 level-1 heading to document metadata with a -1 shift. This
1008 supports converting documents that use an initial level-1
1009 heading for the document title.
1011 * Allow `--metadata-file` to be used repeatedly to include
1012 multiple metadata files (Owen McGrath, #5702). Values in
1013 files specified first will be overridden by those in later
1016 * `--ascii` now uses numerical hex character references (#5718).
1018 * Allow PDF output to stdout (#5751). PDF output now behaves like other
1019 binary formats: it will not be output to the terminal, but can be
1020 sent to stdout using either `-o -` or a pipe. The intermediate format
1021 will be determined based on the setting of `--pdf-engine`.
1023 * Make some writers sensitive to 'unlisted' class on headings (#1762).
1024 If this is present on a heading with the 'unnumbered' class,
1025 the heading won't appear in the TOC. This class has no
1026 effect if 'unnumbered' is not also specified. This affects HTML-based
1027 writers (including slide shows and EPUB), LateX (including beamer), RTF,
1028 and PowerPoint. Other writers do not yet support `unlisted`.
1030 * Fix `gfm_auto_identifiers` behavior with emojis (#5813). Note that
1031 we also now use emoji names for emojis when `ascii_identifiers`
1034 * When `--ipynb-output` is used with the default "best" format, strip
1035 ANSI escape codes for non-ipynb output (#5633). These cause problems
1036 in many formats, including LaTeX.
1038 * Don't look for template files remotely for remote input (#5579).
1039 Previously pandoc would look for the template at a remote URL when a
1040 URL was used for the input file, instead of taking it from the
1043 * Allow combining `-Vheader-includes` and `--include-in-header` (#5904).
1044 Previously `header-includes` set as a variable would be
1045 clobbered by material included using `--include-in-header`.
1047 * Change merge behavior for metadata. Previously, if a document
1048 contained two YAML metadata blocks that set the same field, the
1049 conflict would be resolved in favor of the first. Now it is resolved
1050 in favor of the second (due to a change in pandoc-types).
1051 This makes the behavior more uniform with other things in pandoc
1052 (such as reference links and `--metadata-file`).
1054 * Don't add a newline to fragment output if there's already one.
1056 * Change exit codes and document in MANUAL.txt:
1058 + `PandocAppError` was 1, is now 4
1059 + `PandocOptionError` was 2, is now 6
1060 + `PandocMakePDFError` was 65, is now 66
1062 * Switch to new pandoc-types and use Text instead of String [API change].
1063 (Christian Despres, #5884).
1067 + Better handling of `<q>` with cite attribute (#5798, Ole Martin Ruud).
1068 If a `<q>` tag has a `cite` attribute, we interpret it as a Quoted
1069 element with an inner Span.
1070 + Add support for HTML `<samp>` element (#5792, Amogh Rathore).
1071 The `<samp>` element is parsed as Code with class `sample`.
1072 + Add support for HTML `<var>` element (#5799, Amogh Rathore).
1073 The `<var>` element is parsed as Code with class `variable`.
1074 + Add support for `<mark>` elements (Florian B, #5797). Parse
1075 `<mark>` elements from HTML as Spans with class `mark`.
1076 + Add support for `<kbd>` elements, parsing them as Span with class
1077 `kbd` (Daniele D'Orazio, #5796).
1078 + Add support for `<dfn>`, parsing this as a Span with class `dfn`
1079 (#5882, Florian Beeres).
1083 + Headers: don't parse content over newline boundary (#5714).
1084 + Handle inline code more eagerly within lists (Brian Leung, #5627).
1085 + Removed some needless lookaheads.
1086 + Don't parse footnote body unless extension enabled.
1087 + Fix small super/subscript issue (#5878). Superscripts and subscripts
1088 cannot contain spaces, but newlines were previously allowed
1089 (unintentionally). This led to bad interactions in some cases
1090 with footnotes. With this change newlines are also not allowed inside
1092 + Use `take1WhileP` for `str`, table row. This yields a small but
1093 measurable performance improvement.
1098 + Fix parsing of optional arguments that contain braced text (#5740).
1099 + Don't try to parse includes if `raw_tex` is set (#5673).
1100 When the `raw_tex` extension is set, we just carry through
1101 `\usepackage`, `\input`, etc. verbatim as raw LaTeX.
1102 + Properly handle optional arguments for macros (#5682).
1103 + Fix `\\` in `\parbox` inside a table cell (#5711).
1104 + Improve `withRaw` so it can handle cases where the token string is
1105 modified by a parser (e.g. accent when it only takes part of a Word
1106 token) (#5686). This fixes a bug that caused the ends of
1107 certain documents to be dropped.
1108 + Handle `\passthrough` macro used by latex writer (#5659).
1109 + Support tex `\tt` command (#5654).
1110 + Search for image with list of extensions like latex does, if an
1111 extension is not provided (#4933).
1112 + Handle `\looseness` command values better (#4439).
1113 + Add `mbox` and `hbox` handling (Vasily Alferov, #5586).
1114 When `+raw_tex` is enabled, these are passed through literally.
1115 Otherwise, they are handled in a way that emulates LaTeX's behavior.
1116 + Properly handle `\providecommand` and `\provideenvironment` (#5635).
1117 They are now ignored if the corresponding command or environment
1119 + Support epigraph command in LaTeX Reader (oquechy, #3523).
1120 + Ensure that expanded macros in raw LaTeX end with a space
1121 if the original did (#4442).
1122 + Treat `ly` environment from lilypond as verbatim (Urs Liska, #5671).
1123 + Add `tikzcd` to list of special environments (Eigil Rischel).
1124 This allows it to be processed by filters, in the same way that
1125 one can do for `tikzpicture`.
1129 + Better support for `while`.
1130 + More improvements in parsing conditionals.
1131 + Fix problem parsing comments before macro.
1132 + Improve handling of groups.
1133 + Better parsing of groups (#5410). We now allow groups
1134 where the closing `\\}` isn't at the beginning of a line.
1138 + Keep `name` property in `imgAttr` (Brian Leung, #5619).
1139 + Fixed parsing of indented blocks (#5753). We were requiring
1140 consistent indentation, but this isn't required by RST.
1141 + Use title, not admonition-title, for admonition title.
1142 This puts RST reader into alignment with docbook reader.
1143 + Don't strip final underscore from absolute URI (#5763).
1144 + Avoid spurious warning when resolving links to internal anchors
1145 ending with `_` (#5763).
1149 + Accept `ATTR_LATEX` in block attributes (Albert Krewinkel, #5648).
1150 Attributes for LaTeX output are accepted as valid block attributes;
1151 however, their values are ignored.
1152 + Modify handling of example blocks (Brian Leung, #5717).
1153 + Allow the `-i` switch to ignore leading spaces (Brian Leung).
1154 + Handle awkwardly-aligned code blocks within lists (Brian Leung).
1155 Code blocks in Org lists must have their `#+BEGIN_` aligned in a
1156 reasonable way, but their other components can be
1157 positioned otherwise.
1158 + Fix parsing of empty comment lines (#5856, Albert Krewinkel).
1159 Comment lines in Org-mode can be completely empty.
1161 * Muse reader (Alexander Krotov):
1163 + Add RTL support (#5551).
1164 + Do not allow closing asterisks to be followed by `*`.
1165 + Do not split series of asterisks into symbols and emphasis (#5821).
1166 + Do not terminate emphasis on `*` not followed by space.
1170 + Parse markup inside monospace ('') (#5916, Alexander Krotov).
1174 + Move style-parsing-specific code to a new unexported module,
1175 Text.Pandoc.Readers.Docx.Parse.Styles (Nikolay Yakimov).
1176 + Move StyleMap to docx writer (Nikolay Yakimov).
1177 + Only use LTR when it is overriding BiDi setting (#5723, Jesse
1178 Rosenthal). The left-to-right direction setting in docx is used
1179 in the spec only for overriding an explicit right-to-left setting.
1180 We only process it when it happens in a paragraph set with BiDi.
1181 This is especially important for docs exported from Google Docs,
1182 which explicitly (and unnecessarily) set `rtl=0` for every paragraph.
1183 + Fix list number resumption for sublists (#4324).
1184 The first list item of a sublist should not resume numbering
1185 from the number of the last sublist item of the same level,
1186 if that sublist was a sublist of a different list item.
1190 + Richer parse for admonitions (Michael Peyton Jones, #1234).
1191 Instead of parsing admonitions as blockquotes, we now parse
1192 them as Divs with an appropriate class. We also handle titles
1193 for admonitions as a nested Div with the "title" class.
1194 + Fix nesting of chapters and sections (#5864, Florian Klink,
1195 Félix Baylac-Jacqué).
1196 + Fix bug with entities in mathphrase element (#5885).
1200 + Skip optional `{{table}}` template (#5757).
1204 + Fix dollar-math parsing to ensure that space is left between a
1205 control sequence and a following letter (#5836).
1206 + In `untokenize`, ensure space between control sequence
1207 and following letter (#5836).
1208 + Don't omit macro definitions defined in the preamble.
1209 These were formerly omitted (though they still affected macro
1210 resolution if `latex_macros` was set). Now they are included in
1212 + Parse macro definitions as raw LaTeX when `latex_macros` is
1213 disabled. (When `latex_macros` is enabled, we omit them, since
1214 pandoc is applying the macros itself.)
1215 + Fix a hang/memory leak in certain circumstances (#5845).
1216 + Text.Pandoc.Readers.LaTeX.Parsing: add `[Tok]` parameter to
1217 `rawLaTeXParser`. This allows us to repeat retokenizing
1218 unnecessarily in e.g. `rawLaTeXBlock`.
1219 + Add KOMA-Script metadata commands (#5910, Andrew Dunning).
1220 Add all titling commands to existing definition for `\dedication`.
1221 + Parse `\micro` siunitx unit command (#5921, Jose Luis Duran).
1225 + Ensure proper nesting when we have long ordered list markers (#5705).
1226 + Make `plain` output plainer (#5741). Previously we used the following
1227 Project Gutenberg conventions for plain output: extra space before and
1228 after level 1 and 2 headings, all-caps for strong emphasis,
1229 underscores surrounding regular emphasis. Now these
1230 conventions are used only when the `gutenberg` extension is
1231 enabled. By default, Strong and Emph are rendered without
1232 special formatting, and headings are rendered without
1233 special formatting, and with only one blank line following.
1234 To restore the former behavior, use `-t plain+gutenberg`.
1235 + Prefer using raw_attribute when enabled (#4311).
1236 The `raw_attribute` will be used to mark raw bits, even HTML
1237 and LaTeX, and even when `raw_html` and `raw_tex` are
1238 enabled, as they are by default. To get the old behavior,
1239 disable `raw_attribute` in the writer.
1240 + Prefer `pipe_tables` to raw HTML even when we must
1241 lose width information (#2608, #4497).
1242 + Improve escaping in list items (#5918).
1246 + Don't include `+` in code blocks for regular asciidoc.
1247 This is asciidoctor-specific.
1248 + Handle admonitions (#5690).
1252 + Add thin space when needed in LaTeX quote ligatures (#5684).
1253 + Use `\hspace{0pt}` for 0-width space U+200B (#5756).
1254 + Use `cslreferences` environment for csl bibliographies.
1255 This allows bibliographies to receive special formatting.
1256 The template now contains definition of this environment (enabled
1257 only when CSL is used). It also defines a `\cslhangindent` length.
1258 This is set to 2em by default when the bibliography style specifies
1259 a hanging indent. To override the length, you can use e.g.
1260 `\setlength{\cslhangindent}{7em}` in header-includes.
1261 See jgm/pandoc-citeproc#410.
1262 + Strip off `{}` around locator for biblatex/natbib output (#5722).
1263 + Fix line breaks at start of paragraph (#3324).
1264 Previously we just omitted these. Now we render them
1265 using `\hfill\break` instead of `\\`. This is a revision
1266 of a PR by @sabine (#5591) who should be credited with the idea.
1267 + We no longer look in the template or header-includes to see if a
1268 book or article documentclass is used, or to see whether the
1269 `csquotes` package is used. To use `csquotes` for LaTeX, set
1270 `csquotes` in your variables or metadata. To specify a book
1271 style, use the `documentclass` variable or
1272 `--top-level-division`.
1273 + Fix horizontal rule (#5801). We change to use 0.5pt rather than
1274 `\linethickness`, which apparently only ever worked "by accident"
1275 and no longer works with recent updates to texlive.
1279 + Add option to include source files in ConTeXt PDFs (Tristan
1280 Stenner, #5578). The metadata field or variable
1281 (`includesource`) can be set to attach the source documents
1282 to the resulting PDF.
1283 + Customizable type of PDF/A for the ConTeXt writer (Karl
1284 Pettersson, #5608). The `pdfa` variable may now be set in metadata.
1285 Also updated color profile settings in accordance with ConTeXt wiki,
1286 and made ICC profile and output intent for PDF/A customizable
1287 using `pdfaiccprofile` and `pdfaintent`.
1288 + Unit tests: adjust code property to avoid an irrelevant
1289 failure involving inline code with two consecutive newlines.
1290 + Set `csl-hanging-indent` variable if needed.
1291 + Use special environment for CSL references.
1292 + Use braces, not start/stop, for inline language tags.
1293 This prevents unwanted gobbling of spaces.
1297 + Use numeric character references with `--ascii` (#5718).
1298 Previously we used named character references with html5 output.
1299 But these aren't valid XML, and we aim to produce html5 that is
1300 also valid XHTML (polyglot markup). (This is also needed for epub3.)
1301 + Ensure that line numbers in code blocks get id-prefix (#5650).
1302 + Ensure TeX formulas are rendered correctly (Philip Pesca,
1303 #5658). The web service passed in to `--webtex` may render
1304 formulas using inline or display style by default.
1305 Prefixing formulas with the appropriate command ensures
1306 they are rendered correctly.
1307 + Render inline formulas correctly with `--webtex` (Philip
1308 Pesca, #5655). We add `\textstyle` to the beginning of the
1309 formula to ensure it will be rendered in inline style.
1310 + Pass through `aria-` attributes to HTML5 (#5642).
1311 + Render a Quoted element with an inner Span with
1312 `cite` attribute using a `<q>` tag (#5798, Ole Martin Ruud).
1313 + Render a Span with class `mark` using the `<mark>` element
1314 (Florian Beeres, #5797).
1315 + Render Span with class `dfn` using `<dfn>` element
1316 (Florian Beeres, #5882).
1317 + Render Span with class `kbd` using `<kbd>` element (Daniele
1319 + Render Code with class `variable` using `<var>` element
1320 (Amogh Rathore, #5799).
1321 + Render Code with class `sample` using `<samp>` element
1322 (Amogh Rathore, #5799).
1326 + Improve splitting into chapters (#5761), using `makeSection`.
1327 + Avoid issuing warning multiple times when title not set (see #5760).
1328 + Use svg tag wrapper for cover image (#5638). In addition, the
1329 code generating the image has been moved to the template, to make it
1330 more customizable. NOTE: Those who use custom EPUB
1331 templates will need to adjust their templates, adding the
1332 code to generate the cover image. (Previously this was just
1333 inserted into 'body'.)
1334 + Improve toChapters, making it work better if there are Divs
1336 + Add support for EPUB2 covers (blmage, #3992).
1337 + Do not override existing "fileN" medias when writing to EPUB format
1339 + Ensure that `lang` variable is set on all chapters (so that it
1340 will add an `xml:lang` attribute on the `html` element).
1344 + Removed remnants of `admonition-title`.
1345 + Fix handling of `:align:` on figures and images (#4420).
1346 When the image has the `align-right` (etc.) class, we now use
1347 an `:align:` attribute.
1348 + Improve spacing for tables with no width information (#5899).
1349 If a simple table would be too wide, we use a grid table.
1350 + Fix backslash escaping after strings (Albert Krewinkel, #5906).
1351 The check whether a complex inline element following a string must
1352 be escaped, now depends on the last character of the string instead
1354 + Ensure there's a blank line before tables (#5898).
1358 + Handle mixed lists without HTML fallback (#5107).
1362 + Fix multiline table (Zihang Chen, #5683).
1366 + Add RTL support (Alexander Krotov, #5551).
1370 + Suppress non-absolute link URLs (#5770). Absolute URLs are
1371 still printed in parentheses following the link text, but relative
1372 URLs are suppressed (just as internal links starting with '#'
1374 + Improved definition list term output. Now we boldface code but
1375 not other things. This matches the most common style in man pages
1376 (particularly option lists).
1380 + Use `.LP` instead of `.PP` for line block (#5588).
1381 + Use boldface for definition terms in DefinitionLists.
1385 + Do not emit empty `<fn-group>` (Mauro Bieg, #5595).
1386 + Update template to v1.1dtd (#5632, Arfon Smith).
1387 + Update `data/jats.csl` to avoid commas between editor
1388 name-part elements. (#5629)
1389 + Add `abstract` to template (Mauro Bieg).
1393 + Don't strip hash from internal links (#5922).
1397 + Remove escapeStringForJira for code blocks (Jan-Otto Kröpke).
1398 + Remove extraneous newline after single-line block quotes
1399 (#5858, Albert Krewinkel).
1400 + Improve escaping of special characters, using backslash escapes
1401 instead of HTML entities (#5858, Albert Krewinkel).
1403 * OpenDocument writer:
1405 + Avoid duplicate attributes (#4634). We use the innermost
1406 attribute in nested cases.
1407 + If `native_numbering` extension is set, use native OpenDocument
1408 enumeration for figures and tables (Nils Carlson).
1409 + Place caption before table (#5681, Dmitry Pogodin).
1413 + Add a test for MathML formulas in ODT documents (blmage).
1414 + Improve the parsing of frames in ODT documents (blmage).
1418 + Make handling of styles more robust in localized versions
1419 of Word (Nikolay Yakimov, #5523, #5052, #5074). We now use
1420 style names, not ids, for assigning semantic meaning, since
1421 the ids can change depending on the locale. Style name
1422 comparisons are case-insensitive, since those are
1423 case-insensitive in Word. Since docx style names can have
1424 spaces in them, and pandoc-markdown classes can't, anywhere
1425 when style name is used as a class name, spaces are
1426 replaced with ASCII dashes `-`. Code styles, i.e. "Source
1427 Code" and "Verbatim Char" now honor style inheritance. Docx
1428 Reader now honours "Compact" style (used in
1429 Pandoc-generated docx). The side-effect is that "Compact"
1430 style no longer shows up in docx+styles output. Styles
1431 inherited from "Compact" will still show up.
1432 + Re-use Readers.Docx.Parse for StyleMap (#5766, Nikolay Yakimov).
1433 + Internal improvements and code simplification (Nikolay Yakimov).
1434 + Preserve built-in styles in DOCX with custom style (Ben Steinberg,
1435 #5670). This change prevents custom styles on divs and spans
1436 from overriding styles on certain elements inside them, like
1437 headings, blockquotes, and links. On those elements, the
1438 "native" style is required for the element to display correctly.
1439 This change also allows nesting of custom styles; in order to do so,
1440 it removes the default "Compact" style applied to Plain blocks,
1441 except when inside a table.
1442 + Add `proofState` to list of elements carried over from
1443 settings.xml in the reference.docx (Krystof Beuermann, #5703).
1444 + Change order of `ilvl` and `numId` in `document.xml` (Agustín
1445 Martín Barbero, #5645). Also, make list para properties go first.
1446 This reordering of properties shouldn't be necessary but
1447 it seems Word Online does not understand the docx correctly otherwise.
1449 * PowerPoint writer:
1451 + Code formatting is now context dependent (Jeroen de Haas, #5573).
1452 This commit alters the way in which the Powerpoint writer treats
1453 inline code and code blocks. Inline code is now formatted at
1454 the same size as the surrounding text. Code blocks are now given
1455 a margin and font size according to their level.
1456 Furthermore this commit allows changing the font with which code is
1457 formatted via the `monofont` option.
1458 + Start numbering at appopriate numbers (Jesse Rosenthal, #5709).
1459 Starting numbers for ordered lists were previously ignored. Now
1460 we specify the number if it is something other than 1.
1462 * Text.Pandoc.Parsing:
1464 + Add `manyChar`, `many1Char`, `manyTillChar`, `many1TillChar`,
1465 `many1Till`, `manyUntil`, `mantyUntilChar`: these are like their
1466 unsuffixed counterparts but pack some or all of their output
1467 (Christian Despres, #5884).
1468 + Add `stateAllowLineBreaks` to `ParserState` [API change].
1469 + Fix inline parsing in grid table cells (#5708).
1470 + Change type of `setLastStrPos` so it takes a `Maybe SourcePos`
1471 rather than a `SourcePos` [API change].
1472 + Make `parseFromString'` and `gridTableWith` and
1473 `gridTableWith'` polymorphic in the parser state,
1474 constraining it with `HasLastStrPosition` [API change].
1475 + `parseFromString'`: reset `stateLastStrPos` to `Nothing` before parse.
1476 + Rename takeWhileP -> take1WhileP and clean it up.
1477 (It doesn't match the empty sequence.)
1481 + For PDFs via HTML, ensure temp file is deleted even if the pdf
1482 program is not found (#5720).
1483 + Better detection of a Cygwin environment (#5451).
1484 + Don't assume tex log file is UTF8-encoded (#5872).
1485 Fall back to latin1 if it can't be read as UTF-8.
1487 * Text.Pandoc.Extensions:
1489 + Export new function `getAllExtensions`, which returns the
1490 extensions that affect a given format (whether enabled by default
1491 or not) [API change].
1492 + Change type of `parseFormatSpec` from
1493 `Either ParseError (String, Extensions -> Extensions)`
1494 to `Either ParseError (String, [Extension], [Extension])`
1496 + Add `Ext_gutenberg` constructor to `Extension` [API change].
1497 + Add `Ext_native_numbering` constructor to `Extension` [API change]
1500 * Text.Pandoc.Readers, Text.Pandoc.Writers:
1502 + Change type of `getReader` and `getWriter` so they return
1503 a value in the PandocMonad instance rather than an Either
1504 [API change]. Exceptions for unknown formats and unsupported
1505 extensions are now raised by these functions.
1509 + Change `optMetadataFile` type from `Maybe FilePath` to `[FilePath]`
1510 (Owen McGrath, #5702) [API change].
1512 * Text.Pandoc.Logging:
1514 + Add `CouldNotDeduceFormat` constructor to `LogMessage` [API change].
1515 Issue this warning when we're falling back to markdown or
1516 html because we don't recognize the extension of the input or
1518 + Clarify warning for missing title (#5760).
1519 + Add `UnusualConversion` constructor to `LogMessage` [API change]
1520 (Mauro Bieg, #5736). Emit warning on `-f latex -o out.pdf`.
1524 + Improve function documentation (Albert Krewkinkel).
1525 + Traverse nested blocks and inlines in correct order (Albert
1526 Krewinkel, #5667). Traversal methods are updated to use the new
1527 Walk module so that sequences with nested Inline (or Block) elements
1528 are traversed in the order in which they appear in the linearized
1530 + New unexported module `Text.Pandoc.Lua.Walk` (Albert Krewinkel).
1531 Lua filters must be able to traverse sequences of AST
1532 elements and to replace elements by splicing sequences back
1533 in their place. Special `Walkable` instances can be used for
1534 this; those are provided in a new module
1535 `Text.Pandoc.Lua.Walk`.
1536 + `Attr` values can now be given as normal Lua tables (Albert
1537 Krewinkel, #5744). This can be used as a convenient alternative
1538 to constructing `Attr` values with `pandoc.Attr`. Identifiers
1539 are taken from the `id` field, classes must be given as
1540 space separated words in the `class` field. All remaining fields
1541 are included as attributes. With this change, the following lines
1542 now create equal elements:
1544 pandoc.Span('test', {id = 'test', class = 'a b', check = 1})
1545 pandoc.Span('test', pandoc.Attr('test', {'a','b'}, {check = 1}))
1547 This also works when using the *attr* setter:
1549 local span = pandoc.Span 'text'
1550 span.attr = {id = 'test', class = 'a b', check = 1}
1552 Furthermore, the *attributes* field of AST elements can now be a
1553 plain key-value table even when using the `attributes` accessor:
1555 local span = pandoc.Span 'test'
1556 span.attributes = {check = 1} -- works as expected now
1558 + Export `make_sections`, remove `hierarchicalize`. Lua filters that
1559 use `hierarchicalize` will need to be rewritten to use
1561 + Add a `clone()` method to all AST elements (Albert Krewinkel, #5568).
1562 + Fix Lua function names in pandoc.system (niszet). Change
1563 `get_current_directory` to `get_working_directory` and
1564 `with_temp_directory` to `with_temporary_directory`, to
1565 conform to the manual.
1567 * Text.Pandoc.Error:
1569 + Add constructors `PandocUnknownReaderError`,
1570 `PandocUnknownWriterError`, `PandocUnsupportedExtensionError`.
1572 + Better message for `PandocShouldNeverHappenError`.
1573 + Better message for `PandocTemplateError`.
1575 * Text.Pandoc.Emoji:
1577 + Update emoji list (#5666). Done using new `tools/emojis.hs`,
1578 which uses the list from the gem GitHub uses. Future updates
1579 can be done with this tool.
1583 + Pass value of `--dpi` to `rsvg-convert` when converting SVG to PDF
1584 in the process of creating a PDF (#5721).
1586 * Text.Pandoc.Shared:
1588 + Replace `Element` and `makeHierarchical` with `makeSections`.
1589 Now that we have Divs, we can use them to represent the
1590 structure of sections, and we don't need a special Element type.
1591 `makeSections` reorganizes a block list, adding Divs with class
1592 `section` around sections, and adding numbering if needed.
1593 This change also fixes some longstanding issues recognizing section
1594 structure when the document contains Divs (#3057, see also #997).
1595 + Remove `Element` type [API change]
1596 + Remove `makeHierarchicalize` [API change]
1597 + Add `makeSections` [API change]
1598 + Export `deLink` [API change]
1599 + Make `filterIpynbOutput` strip ANSI escapes from code in output
1600 for non-ipynb formats, when the default "best" option is used with
1601 `--ipynb-output` (#5633).
1602 + Fix `camelCaseToHyphenated` so it handles `ABCDef` better.
1603 + Improve `isTight` (#5857). If a list has an empty item,
1604 this should not count against its being a tight list.
1605 + Export `htmlSpanLikeElements` [API change] (Daniele D'Orazio, #5796).
1606 This is a mapping of HTML span-like elements that are internally
1607 represented as a Span with a single class.
1608 + Change the implementation of `htmlSpanLikeElements` to retain
1609 classes and attributes (#5882, Florian Beeres).
1611 * Text.Pandoc.Slides: recognize content in Divs when determining
1614 * Text.Pandoc.SelfContained:
1616 + Omit content-type on type attribute for `<style>` (#5725).
1617 It doesn't seem to be valid for HTML5, and as a result Chrome
1618 ignores the style element.
1620 * Text.Pandoc.Pretty has been removed [API change].
1621 We now use the new external doclayout module instead.
1623 * Text.Pandoc.Writers.Shared:
1625 + Remove `metaToJSON`, `metaToJSON'` [API change].
1626 + Modify `addVariablesToContext`, `defField`, `setField`, `getField`,
1627 `resetField` to work with Context rather than JSON values. [API change]
1628 + Export new function `endsWithPlain` [API change].
1629 + Change `gridTables` so it does better at keeping the widths of
1630 columns (#4320) and does better at figuring out column widths
1631 when no widths are given (#5899).
1633 * Text.Pandoc.Options
1635 + Change type of `writerTemplate` to `Maybe Template` instead
1637 + Change To/FromJSON instances for `HTMLMathMethod`, `CiteMethod`,
1638 `ObfuscationMethod`, `TrackChanges`, `WrapOption`,
1639 `TopLevelDivision`, `ReferenceLocation`, `HTMLSlideVariant` (#5790).
1640 In each case we use lowercase (or hyphenated lowercase) for
1641 constructors to line up more closely with command-line option
1642 values. This is a breaking change for those who manually decode or
1643 encode JSON for these data types (e.g. for `ReaderOptions` or
1646 * Text.Pandoc.Filters:
1648 + Add `FromYAML` instance for `Filter`.
1649 + `applyFilters`: Add and apply filters in order (not reversed)
1650 This changes `applyFilters` from Text.Pandoc.Filter so
1651 that it does a left fold rather than a right fold, applying
1652 the filters in the order listed.
1656 + Change `toEntities` to emit numerical hex character references
1659 * Text.Pandoc.Highlighting:
1661 + Add additional listings languages (Wandmalfarbe).
1663 * Text.Pandoc.MediaBag:
1665 + Some of the types using Strings were switched to use FilePath instead
1666 (Christian Despres, #5884).
1668 * Text.Pandoc.Templates:
1670 + Don't import/export `varListToJSON` [API change]. It is removed in
1671 doctemplates >= 0.3.
1672 + Change type of `renderTemplate'` [API change]. Return value is
1673 now Text rather than being polymorphic. This makes room for
1674 upcoming removal of the `TemplateTarget` class from doctemplates.
1676 * Text.Pandoc.App.Opt [API changes]:
1678 + More convenient To/FromJSON instances. Make the field names
1679 like `strip-empty-paragraphs` rather than `optStripEmptyParagraphs`.
1680 Anyone who is using JSON serialization of Opt will need to adjust
1682 + Change `optHighlightStyle` to a `Maybe String` instead of
1683 `Maybe Style`. Do the parsing/loading of themes later, after
1685 + Remove `optBaseHeaderLevel` from `Opt`. We now just use
1686 `optShiftHeadingLevelBy`, to avoid redundancy.
1687 + Change `optShiftHeadingLevel` to `optShiftHeadingLevelBy` to
1689 + Custom FromJSON instance for `LineEnding`, so either `CRLF`
1690 or `crlf` will work.
1691 + Change `optVariables` from `[(String, String)]` to `Context Text`.
1692 + Change `optMetadata` to `Meta`, to allow structured values.
1693 The current behavior of the `--metadata` option stays the same.
1694 + Rename `optReader`, `optWriter` as `optFrom`, `optTo`.
1695 + Add `FromYAML` instances to `Opt` and to all subsidiary types.
1696 + Rename `optMetadataFile` to `optMetadataFiles`.
1697 + Rename `optPDFEngineArgs` to `optPDFEngineOpts`.
1698 + Rename `optWrapText` to `optWrap`.
1699 + Add `IpynbOutput` enumerated type: use this instead of
1700 a string for `optIpynbOutput`.
1701 + Change optInputFiles to a `Maybe [FilePath]` (#5888) [API change].
1702 `Nothing` means: nothing specified.
1703 `Just []` means: an empty list specified (e.g. in defaults).
1704 + List fields in Opt so they aren't reversed (#5881) [API change].
1705 Previously `optIncludeInHeader`, etc. were in reverse order.
1706 + The `sourcefile` variable is now always a list. It used to be
1707 sometimes a string, sometimes a list (when there was more than one).
1711 + default.latex: added code for `cslreferences` environment,
1712 to be used for pandoc-citeproc references. A `csl-hanging-indent`
1713 variable (set automatically if there is a `hanging-ident`
1714 class on the references Div) controls whether contents of this
1715 environment receive a hanging indent.
1716 + default.latex: Add `space` as default option for xeCJK, so that
1717 spaces between words are preserved (#5855, jeongminkim-islab).
1718 This is necessary for Korean.
1719 + default.latex: Remove include of `grffile` (#5848).
1720 This package used to be needed for proper handling of image filenames
1721 containing periods (in addition to the period before the extension).
1722 It no longer works with the latest LaTeX kernel and graphicx,
1723 so we have removed it. Future versions of graphicx will handle
1724 these filenames without the need for `grffile`.
1725 + default.context: add a saner default for page numbers.
1726 Previously they appeared centered at the top of the page;
1727 now we put them centered at the bottom, unless the `pagenumbering`
1729 + default.context: define a start-stop-pair `cslreferences` to
1730 allow for hanging indents in the bibliography (#5875, Denis Maier).
1731 + default.ms: update defaults. Use Palatino font, use slightly
1732 wider interparagraph space, don't indent paragraphs,
1733 and put page numbers on the bottom. This brings ms output
1734 closer to default LaTeX output.
1735 + default.revealjs: add navigationMode (Mauro Bieg, #5657).
1736 + default.muse: handle multiple authors better.
1737 + docbook4, docbook5 templates: add indentation to body.
1738 + HTML-based templates: use `styles.html` partial to avoid
1740 + HTML-based templates: change indentation of styles in template.
1742 * reference.docx (#5820):
1744 + Change Block Text (block quote) style so that the same font
1745 is used as in the body text, and the block text is indented
1747 + All headings now have a uniform color.
1748 + Level-1 headings no longer set `w:themeShade="B5"`.
1749 + Level-2 headings are now 14 point rather than 16 point.
1750 + Level-3 headings are now 12 point rather than 14 point.
1751 + Level-4 headings are italic rather than bold.
1753 * epub.css: Add CSS for hanging-indent div to support pandoc-citeproc's
1754 new hanging indents.
1758 + Repeat ghc-options in all stanzas.
1759 + Remove conditionals for ghc < 8 (Albert Krewinkel, #5693).
1760 + Compile with `-Wcpp-undef` and `-fhide-source-paths` when possible
1762 + Add cabal.project to extra-source-files (Albert Krewinkel).
1763 + Add dependency on skylighting-core (#5729). Even though it shouldn't
1764 be needed, some tools require it.
1765 + Require latest pandoc-types, texmath, skylighting, haddock-library.
1766 + Ensure TemplateHaskell is added to other-extensions when it is
1767 used (Vanessa McHale, #5728).
1768 + Remove `derive_json_via_th` flag; always use TH. This cuts down
1769 on code duplication and reduces the chance for errors. See #4083.
1775 + Remove references to obsolete flag (#5694).
1777 * Benchmarks: fix failure on ipynb.
1779 * Use MathJax 3 (zorkow).
1781 * KaTeX math: respect `classoption=fleqn` variable,
1782 bump KaTeX version to 0.11.1 (#5815, Mauro Bieg).
1784 * Fix redundant constraint compiler warnings (Pete Ryland, #5625).
1786 * Use throwError instead of fail when appropriate.
1788 * Use Prelude.fail to avoid ambiguity with fail from GHC.Base.
1790 * Add `diff-zip.sh` to tools (John MacFarlane, Agustín Martín Barbero).
1791 This is intended to make it easier to test differences in zip
1792 containers, like epub, docx, or odt.
1794 * Add `.gitattributes` (#5747). This ensures that the golden files
1795 in `test/fb2/reader/` don't have newlines converted. This should fix
1796 a test failure on GitHub CI with Windows.
1798 * Reorder options in `--help`.
1800 * Revise code for HsYAML-0.2.0.0 (@vijayphoenix, #5704).
1802 * Remove blank line in code example in Haddocks (Leif Metcalf, #5679).
1804 * Fix trypandoc with `getReader`/`getWriter` changes.
1806 * Allow building pandoc with GHC 8.8.
1808 * linux tarball: add architecture `-amd64` to filename.
1809 Now it will be: `pandoc-VERSION-linux-ARCH.tar.gz`.
1813 + Add section for exit codes.
1814 + Document some pptx limitations in slide show section:
1815 No incremental display (#5689). No pause with `. . .` (#5701).
1816 + reveal.js flags (Mauro Bieg, #5653).
1817 + Document addition of `data-` prefix to unknown attributes in HTML5.
1818 + Link to YAML spec (Mauro Bieg, #5687).
1819 + Fix capitalization of "Linux" (#5859, Marcus Stollsteimer).
1820 + Use a table for exit codes.
1821 + Put all template variable docs into one section.
1822 + Use ATX headers consistently.
1823 + Add fuller documentation of templates (#5779), including
1824 new template syntax, partials, etc.
1825 + Add documentation for the variable `hyperrefoptions` (Wandmalfarbe).
1826 + Clarify when macro definitions are passed as raw latex.
1827 In Markdown input, they are always passed through. In LaTeX, only if
1828 `latex_macros` is disabled.
1829 + Clarify that `--dpi` provides a default and doesn't override
1830 dpi values specified in the images themselves (#5721).
1831 + Document how to use custom writers with `--standalone` (#5866).
1832 + Clarify `--preserve-tabs` default.
1836 + Fix instructions for libicu.
1837 + Add Void Linux instructions (Volodymyr Kozachnyskyi).
1841 + Add information on tests (Agustín Martín Barbero, #5652).
1842 + Add information about command test naming to CONTRIBUTING (Florian B).
1844 * Fix typos in changelog and comments (#5896, Brian Wignall).
1846 * doc/lua-filters.md:
1848 + Fix mistakes in mediabag module docs (#5851, Albert Krewinkel).
1849 + Improve metadata replacement example in lua-filters doc (#5851).
1850 + Mention which Lua version is shipped with pandoc (Albert Krewinkel,
1853## pandoc 2.7.3 (2019-06-11)
1855 * Add `jira` (Atlassian's Jira wiki markup) as output format (#2497,
1858 * Add `tex_math_dollars` to `multimarkdownExtensions` (#5512).
1859 This form is now supported in multimarkdown,
1860 in addition to `tex_math_double_backslash`.
1862 * Fix `--self-contained` so it works when output format has extensions.
1863 Previously if you used `--self-contained` with `html-smart` or
1864 `html+smart`, it wouldn't work.
1866 * Add template variable `curdir` with working directory
1867 from which pandoc is run (#5464).
1869 * Markdown reader: don't create implicit reference for empty header
1872 * Muse reader: allow images inside link descriptions (Alexander Krotov).
1874 * HTML reader: epub related fixes.
1876 + With epub extensions, check for `epub:type` in addition to `type`.
1877 + Fix problem with noteref parsing which caused block-level
1878 content to be eaten with the noteref.
1879 + Rename `pAnyTag` to `pAny`.
1880 + Refactor note resolution.
1881 + Trim definition list terms (Alexander Krotov).
1885 + Add braces when resolving `\DeclareMathOperator`
1886 (#5441). These seem to be needed for xelatex but not pdflatex.
1887 + Allow newlines in `\mintinline`.
1888 + Pass through unknown listings language as class (#5540).
1889 Previously if the language was not in the list of languages supported
1890 by listings, it would not be added as a class, so highlighting
1891 would not be triggered.
1892 + `rawLaTeXInline`: Include trailing `{}`s in raw latex commands (#5439).
1893 This change affects the markdown reader and other readers that allow raw
1894 LaTeX. Previously, trailing `{}` would be included for unknown
1895 commands, but not for known commands. However, they are sometimes used
1896 to avoid a trailing space after the command. The chances that a `{}`
1897 after a LaTeX command is not part of the command are very small.
1899 * MediaWiki reader: handle multiple attributes in table row (#5471,
1902 * Docx reader: Add support for `w:rtl` (#5545). Elements with this
1903 property are put into Span inlines with `dir="rtl"`.
1905 * DocBook reader: Issue `IgnoredElement` warnings.
1907 * Org reader (Albert Krewinkel):
1909 + Fix planning elements in headers level 3 and higher
1910 (#5494). Planning info is now always placed before
1911 the subtree contents. Previously, the planning info was placed after
1912 the content if the header's subtree was converted to a list, which
1913 happens with headers of level 3 and higher per default.
1914 + Omit, but warn about unknown export options. Unknown export
1915 options are properly ignored and omitted from the output.
1916 + Prefer plain symbols over math symbols (#5483).
1917 Symbols like `\alpha` are output plain and unemphasized, not as math.
1918 + Recognize emphasis after TODO/DONE keyword (#5484).
1922 + Skip unknown elements rather than throwing errors (#5560).
1923 Sometimes custom elements are used (e.g. `id` element
1924 inside `author`); previously the reader would halt with an error.
1925 Now it skips the element and issues an `IgnoredElement` warning.
1926 + Parse notes (#5493, Alexander Krotov).
1927 + Internal improvements (Alexander Krotov).
1929 * OpenDocument writer: Roll back automatic figure/table numbering
1930 (#5474). This was added in pandoc 2.7.2, but it makes it impossible
1931 to use pandoc-crossref. So this has been rolled back for now,
1932 until we find a good solution to make this behavior optional
1933 (or a creative way to let pandoc-crossref and this feature
1936 * New module Text.Pandoc.Writers.Jira, exporting `writeJira` [API
1937 change] (Albert Krewinkel).
1941 + Don't include 'landmarks' if there aren't any.
1942 Previously we could get an empty ol element, which caused
1943 validation errors with epubcheck.
1944 + Ensure unique ids for styleesheets in content.opf (#5463).
1945 + Make stylesheet link compatible with kindlegen (#5466,
1946 Eric Schrijver). Pandoc omitted `type="text/css"` from both
1947 `<style>` and `<rel="stylesheet">` elements in all templates, which
1948 is valid according to the spec. However, Amazon’s kindlegen software
1949 relies on this attribute on `<link>` elements when detecting
1950 stylesheets to include.
1954 + Output video and audio elements depending on file
1955 extension of the image path (Mauro Bieg).
1956 + Emit empty alt tag in figures (#5518, Mauro Bieg).
1957 The same text is already in the <figcaption> and
1958 screen-readers would read it twice, see #4737.
1959 + Don't add variation selector if it's already there.
1960 This fixes round-trip failures.
1961 + Prevent gratuitous emojification on iOS (#5469).
1962 iOS chooses to render a number of Unicode entities, including '↩', as
1963 big colorful emoji. This can be defeated by appending Unicode
1964 VARIATION SELECTOR-15'/'VARIATION SELECTOR-16'. So we now append this
1965 character when escaping strings, for both '↩' and '↔'. If other
1966 characters prove problematic, they can simply be added to
1967 `needsVariationSelector`. + Add `class="heading"` to level 7+ Headers
1968 rendered as `<p>` elements (#5457).
1970 * RST writer: treat Span with no attributes as transparent (#5446).
1971 Previously an Emph inside a Span was being treated as
1972 nested markup and ignored. With this patch, the Span
1977 + Include inline code attributes with `--listings` (#5420).
1978 + Don't produce columns environment unless beamer (#5485).
1979 + Fix footnote in image caption. Regression: the fix for #4683 broke
1981 + Don't highlight code in headings (#5574). This causes
1983 + Use `\mbox` to get proper behavior inside `\sout` (#5529).
1985 * EPUB writer: Fix document section assignments (#5546).
1986 For example, introduction should go in bodymatter, not frontmatter, and
1987 epigraph, conclusion, and afterward should go in bodymatter, not
1988 backmatter. For the full list of assignments, see the manual.
1992 + Add backslashes to avoid unwanted interpretation of
1993 definition list terms as other kinds of block (#554).
1994 + Ensure the code fence is long enough (#5519).
1995 Previously too few backticks were used when the code block
1996 contained an indented line of backticks. (Ditto tildes.)
1997 + Handle labels with integer names (Jesse Rosenthal, #5495).
1998 Previously if labels had integer names, it could produce a conflict
1999 with auto-labeled reference links. Now we test for a conflict and
2000 find the next available integer. This involves adding a new state
2001 variable `stPrevRefs` to keep track of refs used in other document
2002 parts when using `--reference-location=block|section`
2004 * Textile writer: fix closing tag for math output (Albert Krewinkel).
2005 Opening and closing tag for math output match now.
2007 * Org writer: always indent src blocks content by 2 spaces (#5440, Albert
2008 Krewinkel). Emacs always uses two spaces when indenting the content of
2009 src blocks, e.g., when exiting a `C-c '` edit-buffer. Pandoc used to
2010 indent contents by the space-equivalent of one tab, but now always uses
2015 + Use `` `+...+` `` form for inline code.
2016 The old `` `a__b__c` `` yields emphasis inside code in asciidoc.
2017 To get a pure literal code span, use `` `+a__b__c+` ``.
2018 + Use proper smart quotes with asciidoctor (#5487).
2019 Asciidoctor has a different format for smart quotes.
2020 + Use doubled ## when necessary for spans (#5566).
2021 + Ensure correct nesting of strong/emph (#5565): strong
2022 must be the outer element.
2026 + Wrap elements with p when needed (#5570). The JATS spec restricts
2027 what elements can go inside `fn` and `list-item`. So we wrap other
2028 elements inside `<p specific-use="wrapper">` when needed.
2029 + Properly handle footnotes (#5511) according to "best practice."
2030 (Group them at the end in `<fn-group>` and use `<xref>` elements
2032 + Fix citations with PMID so they validate (#5481). This includes
2033 an update to data/jats.csl.
2034 + Ensure validity of `<pub-date>` by parsing the date and
2035 extracting year, month, and day, as expected. Also add an
2036 iso-8601-date attribute automatically.
2037 + Don't use `<break>` element for LineBreak. It is only
2038 allowed in a few special contexts, and not in `<p>` elements.
2039 + Don't make `<string-name>` a child of `<string>`, which is illegal.
2043 + Do not wrap note references into `<sup>` and brackets
2044 (Alexander Krotov). Existing FB2 readers, such as FBReader, already
2045 display links with type="note" as a superscript.
2046 + Use genre metadata field (#5478).
2048 * Muse writer: do not escape empty line after `<br>` (Alexander Krotov).
2050 * Add unicode code point in "Missing character" warning (#5538).
2051 If the character isn't in the console font, the message is pretty useless,
2052 so we show the code point for anything non-ASCII.
2054 * Lua: add Version type to simplify comparisons (Albert Krewinkel).
2055 Version specifiers like `PANDOC_VERSION` and `PANDOC_API_VERSION` are
2056 turned into `Version` objects. The objects simplify version-appropriate
2057 comparisons while maintaining backward-compatibility.
2058 A function `pandoc.types.Version` is added as part of the newly
2059 introduced module `pandoc.types`, allowing users to create version
2062 * pandoc lua module (Albert Krewinkel):
2064 - Fix deletion of nonexistent attributes (#5569).
2065 - Better tests for Attr and AttributeList.
2067 * pandoc.mediabag lua module (Albert Krewinkel):
2069 + Add function `delete` for deleting a single item.
2070 + Add function `empty` for removing all entries.
2071 + Add function `items` for iterating over mediabag.
2073 * Text.Pandoc.Class: Fix handling of `file:` URL scheme in
2074 `downloadOrRead` (#5517, Mauro Bieg). Previously `file:/`
2075 URLs were handled wrongly and pandoc attempted to make HTTP
2076 requests, which failed.
2078 * Text.Pandoc.MIME: add `mediaCategory` [API change] (Mauro Bieg).
2080 * Text.Pandoc.Shared:
2082 + Add `onlySimpleTableCells` [API change]
2083 (Mauro Bieg) and use this to consolidate simple-table detection
2084 (#5524). This fixes an inconsistency in the HTML reader, which did not
2085 treat tables with `<p>` inside cells as simple.
2086 + `metaToJSON`: treat digits starting with 0 as a string, not a number
2087 (#5479). This fixes a regression in YAML metadata in pandoc 2.7.2.
2089 * Text.Pandoc.Logging: Add `IgnoredElement` constructor for
2090 `LogMessage`. `SkippedConetnt` doesn't work for some XML-based
2091 readers which don't have access to parsec source positions.
2093 * Text.Pandoc.Asciify: Add Turkish undotted-i (#5433, Mauro Bieg).
2095 * Improve output of Lua tests (#5499, Albert Krewinkel).
2096 This makes use of tasty-lua, a package to write tests in Lua
2097 and integrate the results into Tasty output. Test output becomes
2098 more informative: individual tests and test groups become visible
2099 in test output. Failures are reported with helpful error messages.
2101 * Lua: add `pandoc.system` module (#5468, Albert Krewinkel).
2102 The `system` Lua module provides utility functions to interact with the
2103 operating- and file system. E.g.
2104 `print(pandoc.system.get_current_directory())`
2107 pandoc.system.with_temporary_directory('tikz', function (dir)
2108 -- write and compile a TikZ file with pdflatex
2112 * LaTeX template: Add pdflang to hypersetup if lang is set (#5443).
2114 * beamer template: Fix using Beamer with geometry (#5505, Daniel Maslowski).
2115 Beamer already loads geometry, so we need to use the `\geometry`
2116 command to set geometry options.
2118 * EPUB2/3 templates: Move inline styles to default epub.css (#5466).
2119 NOTE: Those who use a custom CSS stylesheet with EPUB should
2122 code{ white-space: pre-wrap; }
2123 span.smallcaps{ font-variant: small-caps; }
2124 span.underline{ text-decoration: underline; }
2125 q { quotes: "“" "”" "‘" "’"; }
2126 div.column{ display: inline-block; vertical-align: top; width: 50%; }
2128 * reveal.js template:
2130 + Updates for revealjs 3.8.0 (#5435, ebiim).
2131 + Remove reference to head.min.js (#5448, Winnie Hellmann).
2132 NOTE: users will need to update reveal.js to at least 3.8.0
2133 for their presentations generated with this version of pandoc
2138 + Replace `</>` with literal `/` (#5451).
2139 We use forward-slash for a directory separator in tmpDir,
2140 even on Windows (because that's what tex likes). So we
2141 should not put a backslash between the tmpDir and the
2142 filename on Windows. This is harmless enough in normal
2143 Windows setups, but it breaks on Cygwin.
2144 Thanks to @cc2x for noticing and diagnosing the problem.
2145 + Allow use of `-output-directory` in `--pdf-engine-opt` (#5462).
2146 This is currently possible with `mklatex` and `-outdir`, but
2147 was not yet possible with xelatex and `-output-directory`.
2148 + For PDF via ms/pdfroff, make TOC appear at beginning and in
2149 PDF bookmarks (#5553). Previously the TOC appeared at the end
2150 of the document, and was not bookmarked. To keep it at the end,
2151 add `--pdf-engine-opt=--no-toc-relocation` to your command line.
2153 * Fix broken links in documents (#5473, Shim Myeongseob).
2154 Also, use absolute links to pandoc.org when possible, so that
2155 the links can be followed by people viewing these documents
2158 * Improved sample lua tikz filter in lua-filters docs (#5445,
2159 Matthew Doty). There are three changes:
2161 + It only processes elements which begin with `\begin{tikzpicture}`
2162 + It uses pdf2svg instead of imagemagick to preserve fidelity
2163 + The images produced have transparent backgrounds
2167 + Add note about `title-meta`, `author-meta`, `date-meta` (#5486).
2168 + Fix typo (#5489, Christian Krause).
2170 * add test/tables.xwiki to git and pandoc.cabal (#5498, Mauro Bieg).
2172 * Disable missing-home-modules warning in `stack.yaml`.
2173 Otherwise `stack ghci` fails.
2176## pandoc 2.7.2 (2019-04-05)
2178 * Add XWiki writer (#1800, Derek Chen-Becker).
2179 Add `Text.Pandoc.Writers.XWiki`, exporting `writeXWiki` [API change].
2181 * Dokuwiki Reader: parse single curly brace (#5416, Mauro Bieg).
2183 * Vimwiki reader: improve handling of internal links (#5414).
2184 We no longer append `.html` to link targets, and we add a title
2185 `wikilink`. This mirrors behavior of other wiki readers. Generally
2186 the `.html` extension is not wanted. It may be important for output
2187 to HTML in certain circumstances, but it can always be added using a
2188 filter that matches on links with title `wikilink`.
2190 If your workflow requires the current behavior, here is a lua filter
2191 that will add the `.html` extension:
2195 if el.title == 'wikilink' then
2196 el.target = el.target .. ".html"
2203 + Use format `ipynb` for raw cell where no format given.
2204 + Avoid introducing spurious `.0` on integers in metadata.
2206 * Markdown reader: fenced div takes priority over setext header.
2208 * HTML reader: read `data-foo` attribute into `foo` (#5392).
2209 The HTML writer adds the `data-` prefix for HTML5 for nonstandard
2210 attributes. But the attributes are represented in the AST without
2211 the `data-` prefix, so we should strip this when reading HTML.
2213 * LaTeX reader: Improve autolink detection (#5340).
2215 * PowerPoint writer (Jesse Rosenthal):
2217 + Expand builtin reference doc to model all layouts.
2218 The previous built-in reference doc had only title and content
2219 layouts. Add in a section-header slide and a two-content slide, so
2220 users can more easily modify it to build their own templates.
2221 + Always open up in slide view. When editing a
2222 template/reference-doc, the user might be in Master view, but when
2223 producing a slide show, it is assumed that slide view will be
2225 + Remove `handoutsMasterList` from template presentation.xml
2226 + Fix numerous errors in templating (#5402). Previously, some templates
2227 produced by Office 365 (MacOS) would not render with `--reference-doc`
2228 correctly. We now apply correct shapes for content, and build
2229 shape trees correctly.
2230 + Make default placeholder type for template lookup.
2231 + Apply speaker notes to metadata slide if applicable.
2232 + Test for speaker notes after breaking header.
2233 + Correctly handle notes after section-title header.
2234 Previously, if notes came after a section-title header (ie, a level-1
2235 header in a slide-level=2 presentation), they would go on the next
2236 slide. This keeps them on the slide with the header.
2237 + Internal improvements.
2241 + Use format `ipynb` for raw cell where no format given.
2242 According to nbformat docs, this is supposed to render in every
2243 format. We don't do that, but we at least preserve it as a raw
2244 block in markdown, so you can round-trip.
2245 + Consolidate adjacent raw blocks. Sometimes pandoc creates two
2246 HTML blocks, e.g. one for the open tag and one for a close tag.
2247 If these aren't consolidated, only one will show up in output cell.
2248 + Fixed carry-over of nbformat from metadata.
2249 + Preserve `nbformat_minor` if it's given. This helps with round-tripping.
2253 + Avoid inadvertently creating ?` or !` ligatures (#5407).
2254 These are upside down ? and !, resp.
2255 + Fix footnotes in table caption and cells (#5367). This fixes a
2256 bug wherein footnotes appeared in the wrong order, and with
2257 duplicate numbers, when in table captions and cells.
2258 We now use regular `\footnote` commands, even in the table
2259 caption and the minipages containing cells. Apparently
2260 longtable knows how to handle this.
2262 * HTML writer: Don't add data- prefix to RDFa attributes (#5403).
2264 * JATS writer: Ensure that plain strings go inside `<pub-id>` tag (#5397).
2268 + Better rendering of numbers (#5398). If the number is integral,
2269 we render it as an integral not a float.
2270 + Proper rendering of empty map in YAML metadata (#5398). Should
2271 be `{}`, not empty string.
2272 + Properly escape attributes in Markdown writer (#5369).
2273 + Be sure implicit figures work in list contexts (#5368).
2274 Previously they would sometimes not work: e.g., when they
2275 occurred in final paragraphs in lists that were originally
2276 parsed as Plain and converted later using PlainToPara.
2278 * Docx writer: Use `w:br` without attributes for line breaks (#5377).
2279 We previously added the attribute `type="textWrapping"`, but
2280 this causes problems on Word Online.
2282 * LaTeX template (Andrew Dunning):
2284 + Ensure correct heading/table order (#5365). Improve workaround
2285 (#1658) for tables following headings. The new solution works whether
2286 or not the `indent` variable is enabled.
2287 + Remove `subparagraph` variable. The default is now to use run-in
2288 style for level 4 and 5 headings (`\paragraph` and `\subparagraph`).
2289 To get the previous default behavior (where these were formatted as
2290 blocks, like `\subsubsection`), set the `block-headings` variable.
2291 + Add pandoc to PDF metadata (#5388).
2292 + Group graphics-related code (#5389).
2293 + Move `\setstretch` after front matter (#5179). Ensures that
2294 `\maketitle`, `\tableofcontents`, and so forth are not affected by
2295 changes to line spacing.
2297 * Update data/jats.csl to avoid commas between name-part elements
2300 * Add support for golang (`go`) with `--listings` (#5427).
2302 * Text.Pandoc.Shared - improve `metaToJSON` behavior with numbers.
2303 We now do a better job marshalling numbers from MetaString
2304 or MetaInlines into JSON Number.
2306 * Text.Pandoc.Writers.Shared: `metaValueToJSON`: use Number Values for
2307 integers. Pandoc's MetaValue doesn't have a distinguished number type,
2308 so numbers are put in MetaStrings. If the MetaString consists
2309 entirely of digits, we convert it to a Number. We should probably
2310 consider adding a MetaNumber constructor to MetaValue, for better
2311 round-tripping with JSON etc. This change aids round-tripping in
2312 ipynb metadata fields, like `toc_depth`.
2314 * Text.Pandoc.Class: `fetchItem`: don't treat UNC paths as
2315 protocol-relative URLs (#5127). These are paths beginning `//?/UNC/...`.
2317 * Text.Pandoc.ImageSize: Improve `pdfSize` so it handles
2318 a wider range of PDFs (#4322, with help from Richard Davis).
2320 * Text.Pandoc.Pretty: avoid stack overflow by using strict sum (#5401).
2322 * Fix harmless error in file-scope code (#5422).
2326 + Improve 'header' and 'heading' usage (#5423, Andrew
2327 Dunning). The term 'header' was being used where 'heading'
2328 is more appropriate.
2329 + Add paragraph on options affecting markdown in ipynb.
2331 * stack.yaml - remove -Wmissing-home-modules
2332 This seems to cause problems with stack ghci. Remove RTS options.
2334 * Add ghc-options to cabal.project.
2336 * appveyor.yml - use ghc 8.6.4. Fixes segfault issues on Windows (#5037).
2338 * linux build process: Remove clone of pandoc-citeproc (#5366).
2339 It wasn't being used; cabal.project specifies the version to use.
2341## pandoc 2.7.1 (2019-03-14)
2343 * Add tectonic as an option for --pdf-engine (#5345, Cormac Relf).
2344 Runs tectonic on STDIN instead of a temporary .tex file, so that it
2345 looks in the working directory for `\include` and `\input` like the rest
2346 of the engines. Allows overriding the output directory
2347 args with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`.
2349 * Allow `-o/--output` to be used with `--print-default-data-file`,
2350 `--print-highlighting-style`, `--print-default-template`.
2351 Note that `-o` must occur BEFORE the `--print*` command on the command
2352 line (this is documented, #5357).
2356 + Support `\underline`, `\ul`, `\uline` (#5359, Paul
2357 Tilley). These are parsed as a Span with class `underline`, as
2359 + Ensure that `\Footcite` and `\Footcites` get put in a note.
2363 + Remove sensitivity to `raw_html`, `raw_tex` extensions.
2364 We now include every output format. Pruning is handled by
2366 + Better handling of cell metadata. We now include even complex cell
2367 metadata in the Div's attributes (as JSON, in complex cases, or
2368 as plain strings in simple cases).
2372 + Recurse into native divs for output cell data (#5354).
2373 + Render cell metadata fields from div attributes.
2375 * Docx writer: avoid extra copy of abstractNum and num elements
2376 in numbering.xml. This caused pandoc-produced docx files to
2377 be uneditable using Word Online (#5358).
2379 * Markdown writer: improve handling of raw blocks/inline.
2380 We now emit raw content using `raw_attribute` when no more
2381 direct method is available. Use of `raw_attribute` can be
2382 forced by disabling `raw_html` and `raw_tex`.
2384 * LaTeX writer: Add classes for frontmatter support (#5353, Andrew Dunning)
2385 and remove frontmatter from `scrreprt`.
2389 + Improve readability (#5363, Andrew Dunning).
2390 + Robust section numbering removal (#5351, Andrew Dunning).
2391 Ensures that section numbering does not reappear with custom
2392 section levels. See <https://tex.stackexchange.com/questions/473653/>.
2393 + Better handling of front/main/backmatter (#5348).
2394 In pandoc 2.7 we assumed that every class with chapters would accept
2395 `\frontmatter`, `\mainmatter`, and `\backmatter`. This is not so (e.g.
2396 report does not). So pandoc 2.7 breaks on report class by including an
2397 unsupported command. Instead of the `book-class` variable, we use two
2398 variables, `has-chapters` and `has-frontmatter`, and set these
2399 intelligently in the writer.
2401 * Text.Pandoc.Shared: Improve `filterIpynbOutput`. Ensure that
2402 images are prioritized over text. `best` should include everything
2405 * Tests.Old: specify `--data-dir=../data` to ensure tests can find
2406 data files even if they haven't been installed. Remove old
2407 `pandoc_datadir` environment variable, which hasn't done anything for a
2410 * MANUAL.txt: Add recommendation to use `raw_attribute` with ipynb (#5354).
2412 * Use cmark-gfm-hs 0.1.8 (note that 0.1.7 is buggy).
2414 * Use latest pandoc-citeproc, texmath.
2417## pandoc 2.7 (2019-03-03)
2419 * Use XDG data directory for user data directory (#3582). Instead of
2420 `$HOME/.pandoc`, the default user data directory is now
2421 `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
2422 `$HOME/.local/share` but can be overridden by setting the
2423 environment variable. If this directory is missing, then
2424 `$HOME/.pandoc` is searched instead, for backwards compatibility.
2425 However, we recommend moving local pandoc data files from
2426 `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the
2427 default user data directory remains the same.
2429 * Slide show formats behavior change: content under headers
2430 less than slide level is no longer ignored, but included in
2431 the title slide (for HTML slide shows) or in a slide after
2432 the title slide (for beamer). This change makes possible
2433 2D reveal.js slideshows with content in the top slide on
2434 each stack (#4317, #5237).
2436 * Add command line option `--ipynb-output=all|none|best` (#5339).
2437 Output cells in ipynb notebooks often contain several different
2438 versions of an output, with different MIME types, e.g. an HTML
2439 table and a plain-text fallback. Specifying `--ipynb-output=best`
2440 (the default) ensures that the best version for the output format
2441 is used. `all` includes all versions, and `none` suppresses them
2442 all, leaving output cells empty.
2444 * `asciidoctor` is now an output format separate from `asciidoc`,
2445 to accommodate some minor implementation-specific differences
2446 (currently just in the treatment of display math).
2448 * Add `latexmk` as an option for `--pdf-engine` (#3195).
2449 Note that you can use `--pdf-engine-opt=-outdir=bar` to specify
2450 a persistent temp directory.
2454 + Improve tight/loose list handling (#5285). Previously the
2455 algorithm allowed list items with a mix of Para and Plain, which
2457 + Add newline when parsing blocks in YAML (#5271). Otherwise last
2458 block gets parsed as a Plain rather than a Para. This is a
2459 regression in pandoc 2.x. This patch restores pandoc 1.19
2461 + Make `yamlToMeta` respect extensions (#5272, Mauro Bieg).
2462 This adds a `ReaderOptions` parameter to `yamlToMeta` [API change].
2463 + Fix bug parsing fenced code blocks (#5304). Previously parsing
2464 would break if the code block contained a string of backticks of
2465 sufficient length followed by something other than end of line.
2467 * LaTeX reader: don't let `\egroup` match `{`. `braced` now actually
2468 requires nested braces. Otherwise some legitimate command and
2469 environment definitions can break.
2471 * Docx reader (Jesse Rosenthal):
2473 + Rename `getDocumentPath` as `getDocumentXmlPath`.
2474 + Use field notation for setting `ReaderEnv`.
2475 + Figure out `document.xml` path once at the beginning of parsing, and
2476 add it to the environment, so we can avoid repeated lookups.
2477 + Dynamically determine main document xml path (#5277).
2478 The desktop Word program places the main document file in
2479 `word/document.xml`, but the online word places it in
2480 `word/document2.xml`. This file path is actually stated in the root
2481 `_rels/.rels` file, in the `Relationship` element with an
2482 `http://../officedocument` type.
2483 + Fix paths in archive to prevent Windows failure (#5277).
2484 Some paths in archives are absolute (have an opening slash) which, for
2485 reasons unknown, produces a failure in the test suite on MS
2486 Windows. This fixes that by removing the leading slash if it exists.
2487 + Add comments to aid code readability.
2488 + Trim space inside the last inline (#5273).
2489 + Unwrap sdt elements in footnotes and comments (#5302).
2491 * Muse reader (Alexander Krotov):
2493 + Test that block level markup does not break `<verbatim>`.
2494 + Add secondary note support.
2496 * ipynb reader: handle images referring to attachments. Previously
2497 we didn't strip off the attachment: prefix, so even though the
2498 attachment was available in the mediabag, pandoc couldn't find it.
2502 + Fix parsing of figures (#5321). This ensures that a figure
2503 containing a single image is parsed as a pandoc "implicit
2504 figure" (i.e., a Para with a single Image whose title attribute
2505 begins with `fig:`). More complex figures will still be parsed
2507 + Support `fig-group` block element (#5317).
2508 + Handle citations with multiple references (#5310). The `rid`
2509 attribute can have a space-separated list of ids.
2511 * AsciiDoc Writer: Add `writeAsciiDoctor` [API change, Tarik Graba].
2512 Handle display math appropriately for Asciidoctor.
2514 * JATS writer: wrap figure caption in `<p>` to fix validation (#5290,
2519 + Implement WAI-ARIA roles for (end)notes, citations, and
2520 bibliography (#4213). Note that doc-biblioref is only used when
2521 link-citations produces links, since it belongs on links.
2522 + Include content (including speaker notes) in title slides
2527 + Ensure final newline.
2528 + Only include metadata under `jupyter` field.
2529 + Don't create attachments for images with absolute URIs,
2530 including data: URIs (#5303).
2531 + Keep plain text fallbacks in output even if a richer format is
2532 included (#5293). We don't know what output format will be needed.
2533 See the `--ipynb-output` command line option for a way to control
2534 what formats are included in the output.
2536 * Markdown writer: use `markdown="1"` when appropriate for Divs:
2537 when `native_divs` and `markdown_in_html_blocks` are disabled
2538 but `raw_html` and `markdown_attribute` are enabled.
2542 + Use right fold for `escapeString`. This is more elegant than
2543 the explicit recursive code we were using.
2544 + Avoid `{}` after control sequences when escaping.
2545 `\ldots{}.` doesn't behave as well as `\ldots.` with the latex
2546 ellipsis package. This patch causes pandoc to avoid emitting
2547 the `{}` when it is not necessary. Now `\ldots` and other
2548 control sequences used in escaping will be followed by either
2549 a `{}`, a space, or nothing, depending on context.
2550 + For beamer, include contents under headers superordinate to
2551 slidelevel (#4317). Currently we keep the fancy title slide, and
2552 add a new slide with the same title and whatever content was
2555 * Powerpoint writer (Jesse Rosenthal): support underlines.
2556 Use span with single class "underline" as in docx writer.
2558 * Muse writer: escape secondary notes (Alexander Krotov).
2560 * FB2 writer: add section identifiers support (#5229, John KetzerX).
2562 * Make `--fail-if-warnings` work for PDF output (#5343).
2564 * Lua filters (Albert Krewinkel):
2566 + Load module `pandoc` before calling `init.lua` (#5287). The file
2567 `init.lua` in pandoc's data directory is run as part of pandoc's
2568 Lua initialization process. Previously, the `pandoc` module was
2569 loaded in `init.lua`, and the structure for marshaling was
2570 set up after. This allowed simple patching of element
2571 marshaling, but made using `init.lua` more difficult. Now, all
2572 required modules are now loaded before calling `init.lua`. The
2573 file can be used entirely for user customization. Patching
2574 marshaling functions, while discouraged, is still possible via
2576 + All Lua modules bundled with pandoc, i.e., `pandoc.List`,
2577 `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the
2578 `pandoc` module. They are assigned to the fields `List`, `mediabag`,
2579 `utils`, and `text`, respectively.
2581 * Text.Pandoc.Lua (Albert Krewinkel):
2583 + Split `StackInstances` into smaller Marshaling modules.
2584 + Get `CommonState` from Lua global. This allows more control over
2585 the common state from within Lua scripts.
2589 + Support the `subject` metadata variable (#5289, Pascal Wagler).
2590 + Add `\frontmatter`, `\mainmatter`, `\backmatter`
2591 for book classes (#5306).
2593 * epub3 template: Add titlepage class to section (#5269).
2595 * HTML5 template: Add ARIA role `doc-toc` for table of contents (#4213).
2597 * Make `--metadata-file` use selected extensions (#5279, #5272, Mauro Bieg).
2599 * Text.Pandoc.Shared:
2601 + Remove `withTempDir` [API change].
2602 + Add new exported function `defaultUserDataDirs` [API change].
2603 + Add `filterIpynbOutput` [API change].
2604 + `compactify`: Avoid lists with a mix of Plain and Para elements
2607 * Text.Pandoc.Translations: reorder alphabetically and remove `Author`
2608 (#5334, Mauro Bieg).
2610 * Text.Pandoc.Extensions:
2612 + More carefully groom ipynb default extensions.
2613 + Add `all_symbols_escapable` to `githubMarkdownExtensions`.
2617 + Use system temp directory when possible (#1192). Previously we
2618 created temp dirs in the working directory, partly (a) because
2619 there were problems using the system temp directory on Windows,
2620 when their pathnames included tildes, and partly (b) because
2621 programs like `epstopdf.pl` would not be allowed to write to
2622 directories outside the working directory in restricted mode. We
2623 now (a) use the system temp dir except when the path includes
2624 tildes, and (b) set `TEXMFOUTPUT` when creating the PDF, so that
2625 subsidiary programs can use the system temp directory. This
2626 addresses problems that occurred when pandoc was used in a
2627 synced directory (such as Dropbox).
2628 + Change types of subsidiary functions to PandocIO, to allow
2629 warnings to be threaded through (#5343).
2631 * Text.Pandoc.MIME: add WebP (#5267, Mauro Bieg).
2633 * Tests: avoid calling `findPandoc` multiple times.
2635 * Old tests: remove need for temp files by using `pipeProcess`.
2637 * Added simple ipynb reader/writer tests (#5274).
2639 * Rearrange `--help` output in a more rational way, with common
2640 options at the beginning and options grouped by function (#5336).
2642 * trypandoc: Add JATS and other missing formats (Arfon Smith, #5291).
2644 * Add missing copyright notices and remove license boilerplate (#4592,
2647 * Use latest basement/foundation on 32bit windows.
2649 * Use latest skylighting (#5328). Custom syntax definitions no
2650 longer try to load `language.dtd`.
2652 * Require texmath 0.11.2.1
2654 * Use latest pandoc-citeproc (0.16.1.1).
2658 + Clarify variable substitution indentation in templates (#5338,
2659 Agustín Martín Barbero).
2660 + Reorder custom-styles section (#5324, Mauro Bieg).
2662## pandoc 2.6 (2019-01-30)
2664 * Support ipynb (Jupyter notebook) as input and output format.
2666 + Add `ipynb` as input and output format (extension `.ipynb`).
2667 + Added Text.Pandoc.Readers.Ipynb [API change].
2668 + Added Text.Pandoc.Writers.Ipynb [API change].
2669 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
2671 + Depend on ipynb library.
2672 + Note: there is no template for ipynb.
2674 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
2675 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
2678 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
2679 extension. Task lists are supported from markdown and gfm input.
2680 They should work, to some degree, in all output formats, though in
2681 most formats you'll get a bullet list with a unicode character for
2682 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
2683 box is used as the list marker. API changes:
2685 + Added constructor `Ext_task_lists` to `Extension`.
2686 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
2689 * Allow some command line options to take URL in addition to FILE.
2690 `--include-in-header`, `--include-before-body`, `--include-after-body`.
2694 + Handle empty `start` attribute (see #5162).
2695 + Treat `textarea` as a verbatim environment (#5241) and preserve
2700 + Change treatment of `number-lines` directive (Brian Leung,
2701 #5207). Directives of this type without numeric inputs should
2702 not have a `startFrom` attribute; with a blank value, the
2703 writers can produce extra whitespace.
2704 + Removed superfluous `sourceCode` class on code blocks (#5047).
2705 + Handle `sourcecode` directive as synonynm for `code` (#5204).
2709 + Remove `sourceCode` class for literate Haskell code blocks
2710 (#5047). Reverse order of `literate` and `haskell` classes on
2711 code blocks when parsing literate Haskell, so `haskell` is
2713 + Treat `<textarea>` as a verbatim environment (#5241).
2717 + Handle `minlevel` option differently (#5190, Brian Leung).
2718 When `minlevel` exceeds the original minimum level observed in
2719 the file to be included, every heading should be shifted
2721 + Allow for case of `:minlevel == 0` (#5190).
2722 + Fix treatment of links to images (#5191, Albert Krewinkel).
2723 Links with descriptions which are pointing to images are no
2724 longer parsed as inline images, but as links.
2725 + Add support for #+SELECT_TAGS (Brian Leung).
2726 + Separate filtering logic from conversion function (Brian Leung).
2728 * TWiki reader: Fix performance issue with underscores (#3921).
2730 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
2731 We may not still be exactly matching mediawiki's algorithm.
2735 + Remove `sourceCode` class for literate Haskell code blocks
2736 (#5047). Reverse order of `literate` and `haskell` classes on
2737 code blocks when parsing literate Haskell, so `haskell` is
2739 + Support `\DeclareMathOperator` (#5149).
2740 + Support `\inputminted` (#5103).
2741 + Support `\endinput` (#5233).
2742 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
2743 was interpreted as a file extension, leading pandoc not to add
2744 `.tex` (and thus not to find the file). The new behavior matches
2749 + Use `mapLeft` from Shared instead of defining own.
2751 * Docx reader (Jesse Rosenthal):
2753 + Handle level overrides (#5134).
2757 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
2758 Also supports additional core properties: `subject`, `lang`,
2759 `category`, `description`.
2760 + Make Level into a real type, instead of an alias for a tuple
2763 * ICML writer (Mauro Bieg):
2765 + Support custom-styles (#5137, see #2106).
2766 + Support unnumbered headers (#5140).
2768 * Texinfo writer: Use header identifier for anchor if present (#4731).
2769 Previously we were overwriting an existing identifier with a new one.
2771 * Org writer: Preserve line-numbering for example and code blocks
2774 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
2775 in HTML and PDF as a unicode minus sign.
2777 * Ms writer: Ensure we have a newline after .EN in disply math (#5251).
2779 * RST writer: Don't wrap simple table header lines (#5128).
2781 * Asciidoc writer: Shorter delimiters for tables, blockquotes
2782 (#4364). This matches asciidoctor reference docs.
2784 * Dokuwiki writer: Remove automatic `:` prefix before internal image
2785 links (#5183, Damien Clochard). This prevented users from making
2786 relative image links.
2788 * Zimwiki writer: remove automatic colon prefix before internal
2789 images (#5183, Damien Clochard).
2791 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
2792 (#5105). Captions used to have the word 'caption' prepended; this
2793 has been removed. Also, 'thumb' is used instead of 'frame' to
2794 allow images to be resized.
2798 + Ensure that we don't get > 2 levels of section nesting,
2799 even with slide level > 2 (#5168).
2800 + If slide level == N but there is no N-level header, make
2801 sure the next header with level > N gets treated as a slide
2802 and put in a section, rather than remaining loose (#5168).
2806 + Make `plain` RawBlocks pass through in `plain` output.
2807 + Include needed whitespace after HTML figure (#5121).
2808 We use HTML for a figure in markdown dialects that can't
2809 represent it natively.
2811 * Commonmark writer:
2813 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
2814 + Implement `--toc` (`writerTableOfContents`)
2815 in commonmark/gfm writers (#5172).
2819 + Ensure that picture transforms are done on metadata too.
2820 + Small fixes to `nav.xhtml`:
2821 Add 'landmarks' id attribute to the landmarks nav.
2822 Replace old default CSS removing numbers from ol.toc li
2823 with new rules that match `nav#toc ol, nav#landmarks ol`.
2824 We keep the `toc` class on `ol` for backwards compatibility.
2828 + Make raw content marked `beamer` pass through in `beamer`
2829 output (pandoc/lua-filters#40).
2830 + Beamer: avoid duplicated `fragile` property in some cases
2832 + Add `#` special characters for listings (#4939).
2833 This character needs special handling in `\lstinline`.
2835 * RTF writer: use `toTableOfContents` from Shared to replace
2836 old duplicated code.
2840 + Support custom properties. Also supports additional core
2841 properties: `subject`, `category`, `description` (#5252,
2842 Agustín Martín Barbero).
2843 + Use `toTableOfContents` from Shared to replace old duplicated code.
2845 * ODT writer (Augustín Martín Barbero):
2847 + Fix typo in custom properties (#2839).
2848 + Improve standard properties, including the following core
2849 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
2850 `keywords`, `initial-creator` (from authors), `creation-date`
2851 (actual creation date) (#5252).
2855 + Allow '-' in filenames for custom lua writers (#5187).
2856 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
2857 + sample.lua: Add a missing `>` (MichaWiedenmann).
2859 * reveal.js template: Add `zoomKey` config (#4249).
2861 * HTML5 template: Remove unnecessary type="text/css" on style and
2862 link for HTML5 (#5146).
2864 * LaTeX template (Andrew Dunning, except where noted):
2866 + Prevent fontspec from scaling `mainfont` to match the default
2867 font, Latin Modern. A main font set to 12pt could
2868 previously appear between 11pt to 13pt depending on its design.
2869 To return to the earlier rendering, use `-V
2870 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
2871 + Display monospaced fonts without TeX ligatures when using
2872 `--pdf-engine=lualatex`. It now matches the behaviour of other
2873 engines (#5212, #5218).
2874 + Remove the deprecated `romanfont` variable. The functionality of
2875 `mainfont` is identical (#5218).
2876 + Render `\subtitle` with the standard document classes.
2877 Previously, `subtitle` only appeared when using the KOMA-Script
2878 classes or Beamer (#5213, #5244).
2879 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
2880 several language selection problems, notably with retaining
2881 French spacing conventions when switching to a verbatim
2882 environment or another language; and in printing Greek text
2883 without hyphenation (#5193).
2884 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
2885 available, improving the appearance of URLs by allowing them to
2886 break at additional points (#5193).
2887 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
2888 to correct heading levels in PDF bookmarks: see the [KOMA-Script
2889 3.26 release notes](https://komascript.de/release3.26) (#5193).
2890 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
2891 avoid a possible error when using additional packages alongside
2892 footnotes in tables (#5193, closes #4861).
2893 + Remove obsolete `fixltx2e` package, which has no functionality
2894 with TeX Live 2015 or later (#5193).
2895 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
2896 + Restrict `institute` variable to Beamer (#5219).
2897 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
2898 package if available to make footnotes in tables compatible
2899 with `hyperref` (#5234).
2900 + Number parts and chapters in book classes only if the
2901 `numbersections` variable is set, for consistency with other
2902 output formats. To return to the previous behaviour, use
2903 `-V numbersections -V secnumdepth=0` (#5235).
2904 + Reindent file (#5193).
2905 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
2906 + Set default listings language for lua, assembler (#5227, John
2907 MacFarlane). Otherwise we get an error when trying to compile code
2908 with lua or assembler code. To change the default dialect
2909 (currenty 5.3 for lua and x86masm for assembler), you can use
2910 `--include-in-header` to inject something like
2911 `\lstset{defaultdialect=[5.2]Lua}`.
2913 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
2914 in an instance of PandocMonad, like the other readers and
2915 writers. [API change]
2917 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
2918 in an instance of PandocMonad, like the other readers and
2919 writers. [API change]
2921 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
2922 for `PandocError`. [API change]
2924 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
2925 This is refactored out from the Markdown writer.
2926 It can be used in other writers to create a table of contents.
2928 * Improve error messages for UTF-8 decoding errors. Now we give
2929 the filename and byte offset (#4765).
2931 * Text.Pandoc.XML: Strip out illegal XML characters in
2932 `escapeXMLString` (#5119).
2934 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
2935 The implementation of `pipeProcess` was rewritten to fix sporadic
2936 failures caused by prematurely closed pipes.
2938 * Use `safeRead` instead of `read` everywhere in the code
2939 (John MacFarlane, Mauro Bieg, #5162, #5180).
2941 * Text.Pandoc.SelfContained: Decompress `.svgz` when
2942 converting to `data:` URI (#5163, Alexander Krotov).
2944 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
2945 (#5175, Alexander Krotov). [API change]
2947 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
2948 When pandoc is compiled with ghc 8.6, Windows paths are treated
2949 differently, and paths beginning `\\server` no longer work.
2950 This commit rewrites such patsh to `\\?\UNC\server` which works.
2951 The change operates at the level of argument parsing, so it
2952 only affects the command line program.
2954 * Simplify/fix reading of `--metadata` values on command line
2955 to avoid problems relating to hvr/HsYAML#7 (#5177).
2957 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
2958 Krewinkel). Incorrect types to pandoc element constructors are
2959 automatically converted to the correct types when possible. This was
2960 already done for most constructors, but conversions are now also done
2961 for nested types (like lists of lists).
2963 * Removed custom Setup.hs, use build-type: simple. The only thing we
2964 gained from the custom build was automatic installation of the man
2965 page when using 'cabal install'. But custom builds cause problems,
2966 e.g., with cross-compilation. Installation of the man page is
2967 better handled by packagers. Note to packagers (e.g. Debian): it
2968 may be necessary to add a step installing the man page with the
2971 * Allow latest http-client, tasty, zip-archive, Glob.
2973 * Require skylighting >= 0.7.5, adding support for sml, J,
2976 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
2977 works well with cabal v2.
2981 + Use button for installer links (John MacFarlane, Mauro Bieg,
2983 + Fix links and bump required stack version (max).
2984 + Improve installation notes on associated software (Andrew
2985 Dunning). Includes explanation of how to install related tools
2986 with package managers (since the method of installing
2987 `rsvg-convert` is not obvious).
2989 * doc/org.md: improve documentation of org features (Albert
2992 * doc/lua-filters.md: use 3rd level headers for module fields.
2996 + Clarify automatic identifiers (#5201). We remove
2997 non-alphanumerics. This includes, e.g., emojis.
2998 + Fix example for Div with id (Geoffrey Ely).
2999 + Update list of LaTeX packages used.
3000 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
3001 + Mention `raw_attribute` in documentation for `raw_html` and
3002 `raw_tex` (#5240, thanks to @eiro).
3003 + Clarify that `$sep$` must come right before `$endfor$` in templates
3005 + Document metadata support for docx, odt, pptx writers (Agustín
3007 + Reorganize template variables (#5249, Andrew Dunning).
3008 Add additional headings to categorize variables, and
3009 alphabetize when there is large number; add more examples.
3010 + Document `date-meta` template variable (#5260, Tristan Stenner).
3012 * trypandoc: Fix CSS and viewport.
3014## pandoc 2.5 (2018-11-27)
3016 * Text.Pandoc.App: split into several unexported submodules (Albert
3017 Krewinkel): Text.Pandoc.App.FormatHeuristics,
3018 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
3019 Text.Pandoc.App.OutputSettings. This is motivated partly by the
3020 desire to reduce recompilations when something is modified,
3021 since App previously depended on virtually every other module.
3023 * Text.Pandoc.Extensions
3025 + Semantically, `gfm_auto_identifiers` is now a modifier of
3026 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
3027 be turned on, and then the type of identifier produced depends on
3028 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
3029 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
3030 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
3031 GitHub doesn't seem to strip non-ascii characters any more.
3033 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
3035 + Test AST object equality via Haskell (#5092). Equality of Lua
3036 objects representing pandoc AST elements is tested by unmarshalling
3037 the objects and comparing the result in Haskell.
3038 A new function `equals` which performs this test has been added to the
3039 `pandoc.utils` module.
3040 + Improve stringify. Meta value strings (MetaString)
3041 and booleans (MetaBool) are now converted to the literal string and the
3042 lowercase boolean name, respectively. Previously, all values of these
3043 types were converted to the empty string.
3045 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
3046 already exists (Alexander Krotov).
3048 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
3049 or beginning of line (#5050).
3051 * Text.Pandoc.Readers.Markdown
3053 + Fix parsing of citations, quotes, and underline emphasis
3054 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
3055 and underline emphasis were no longer recognized after certain
3056 symbols, like parentheses (#5099, #5053).
3057 + In pandoc 2.4, a soft break after an abbreviation would be
3058 relocated before it to allow for insertion of a nonbreaking
3059 space after the abbreviation. This behavior is here reverted.
3060 A soft break after an abbreviation will remain, and no nonbreaking
3061 space will be added. Those who care about this issue should take care not
3062 to end lines with an abbreviation, or to insert nonbreaking spaces
3065 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
3066 `<body>` (Alexander Krotov). Some libraries include custom elements
3069 * Text.Pandoc.Readers.HTML
3071 + Allow `tfoot` before body rows (#5079).
3072 + Parse `<small>` as a Span with class "small" (#5080).
3073 + Allow thead containing a row with `td` rather than `th` (#5014).
3075 * Text.Pandoc.Readers.LaTeX
3077 + Cleaned up handling of dimension arguments. Allow decimal points,
3079 + Don't allow arguments for verbatim, etc.
3080 + Allow space before bracketed options.
3081 + Allow optional arguments after `\\` in tables.
3082 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
3083 but know that these font changing commands take no arguments.
3085 * Text.Pandoc.Readers.Muse
3087 + Trim whitespace before parsing grid table cells (Alexander Krotov).
3088 + Add grid tables support (Alexander Krotov).
3090 * Text.Pandoc.Shared
3092 + For bibliography match Div with id `refs`, not class `references`.
3093 This was a mismatch between pandoc's docx, epub, latex, and markdown
3094 writers and the behavior of pandoc-citeproc, which actually looks for a
3095 div with id `refs` rather than one with class `references`.
3096 + Exactly match GitHub's identifier generating algorithm (#5057).
3097 + Add parameter for `Extensions` to `uniqueIdent` and
3098 `inlineListToIdentifier` (#5057). [API change]
3099 This allows these functions to be sensitive to the settings of
3100 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
3101 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
3102 also means that `gfm_auto_identifiers` can now be used in all formats.
3104 * Text.Pandoc.Writers.AsciiDoc
3106 + Use `.`+ as list markers to support nested ordered lists (#5087).
3107 + Support list number styles (#5089).
3108 + Render Spans using `[#id .class]#contents#` (#5080).
3110 * Text.Pandoc.Writers.CommonMark
3112 + Respect `--ascii` (#5043, quasicomputational).
3113 + Make sure `--ascii` affects quotes, super/subscript.
3115 * Text.Pandoc.Writers.Docx
3117 + Fix bookmarks to headers with long titles (#5091).
3118 Word has a 40 character limit for bookmark names. In addition, bookmarks
3119 must begin with a letter. Since pandoc's auto-generated identifiers may
3120 not respect these constraints, some internal links did not work. With
3121 this change, pandoc uses a bookmark name based on the SHA1 hash of the
3122 identifier when the identifier isn't a legal bookmark name.
3123 + Add bookmarks to code blocks (Nikolay Yakimov).
3124 + Add bookmarks to images (Nikolay Yakimov).
3125 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
3127 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
3130 <meta name="calibre:series" content="Classics on War and Politics"/>
3132 are now included from an epub XML metadata file. You can also include
3133 this information in your YAML metadata, like so:
3136 series: Classics on War and Policitics
3138 In addition, ibooks-specific metadata can now be included via an XML
3139 file. (Previously, it could only be included via YAML metadata, see
3142 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `"` outside of
3145 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
3146 This avoids splitting up the output unnecessarily into separate elements.
3148 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
3149 if `writerIncremental` is True (#5072).
3151 * Text.Pandoc.Writers.Muse (Alexander Krotov).
3153 + Output tables as grid tables if they have multi-line cells.
3154 + Indent simple tables only on the top level.
3155 + Output tables with one column as grid tables.
3156 + Add support for `--reference-location`.
3157 + Internal improvements.
3159 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
3160 #5095). This was a regression in pandoc 2.4.
3162 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
3164 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
3166 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
3167 when there are several choices for a particular character.
3169 * data/abbreviations
3171 + Add additional abbreviations (Andrew Dunning)
3172 Many of these borrowed from the Chicago Manual of Style 10.42,
3173 'Scholarly abbreviations'.
3177 + Asciidoc template: add :lang: to title header is lang is set in
3180 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
3181 Disabling the flag will cause derivation of ToJSON and FromJSON
3182 instances via GHC Generics instead of Template Haskell. The flag is
3183 enabled by default, as deriving via Generics can be slow (see #4083).
3187 + Tweaked drop-down lists.
3188 + Put link to site in footer.
3189 + Preselect output format.
3190 + Update on change of in or out format.
3191 + Add man input format.
3195 + Fix outdated description of latex_macros extension.
3196 + Clarified placement of bibliography.
3197 + Added "A note on security."
3198 + Fix note on curly brace syntx for locators.
3199 + Document new explicit syntax for citeproc locators.
3200 + Remove confusing cross-links for some extensions.
3201 + Don't put pandoc in code ticks in heading.
3202 + Document that `--ascii` works for gfm and commonmark too.
3203 + Add `man` to `--from` options.
3205 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
3208## pandoc 2.4 (2018-11-03)
3212 * New input format `man` (Yan Pashkovsky, John MacFarlane).
3216 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
3217 via the new `writerPreferAscii` field in `WriterOptions`.
3218 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
3219 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
3220 Previously the to-ascii translation was done in Text.Pandoc.App,
3221 and thus not available to those using the writer functions
3224 * `--ascii` now works with Markdown output. HTML5 character reference
3227 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
3228 guaranteed, but the writer will use commands like `\"{a}` and `\l`
3229 whenever possible, to avoid emitting a non-ASCII character.
3231 * For HTML5 output, `--ascii` now uses HTML5 character reference
3232 entities rather than numerical entities.
3234 * Improved detection of format based on extension (in Text.Pandoc.App).
3235 We now ensure that if someone tries to convert a file for a
3236 format that has a pandoc writer but not a reader, it won't just
3237 default to markdown.
3239 * Add viz. to abbreviations file (#5007, Nick Fleisher).
3241 * AsciiDoc writer: always use single-line section headers,
3242 instead of the old underline style (#5038). Previously the single-line
3243 style would be used if `--atx-headers` was specified, but
3244 now it is always used.
3246 * RST writer: Use simple tables when possible (#4750).
3248 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
3249 quasicomputational). Previously, the writer would unconditionally
3250 emit HTML output for subscripts, superscripts, strikeouts (if the
3251 strikeout extension is disabled) and small caps, even with
3252 `raw_html` disabled. Now there are plain-text (and, where
3253 possible, fancy Unicode) fallbacks for all of these corresponding
3254 (mostly) to the Markdown fallbacks, and the HTML output is only
3255 used when `raw_html` is enabled.
3257 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
3258 This allows raw openxml blocks and inlines to be used in the pptx
3259 writer. Caveats: (1) It's up to the user to write
3260 well-formed openxml. The chances for corruption, especially with
3261 such a brittle format as pptx, is high. (2) Because of
3262 the tricky way that blocks map onto shapes, if you are using
3263 a raw block, it should be the only block on a slide
3264 (otherwise other text might end up overlapping it). (3) The
3265 pptx ooxml namespace abbreviations are different from the
3266 docx ooxml namespaces. Again, it's up to the user to get it
3267 right. Unzipped document and ooxml specification should be
3270 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
3271 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
3272 we tell katex to convert the contents of span elements with
3273 class "math". Since math has already been identified, this
3274 avoids wasted time parsing for LaTeX delimiters. Note, however,
3275 that this may yield unexpected results if you have span elements
3276 with class "math" that don't contain LaTeX math.
3277 Also, use latest version of KaTeX by default (0.9.0).
3279 * The man writer now produces ASCII-only output, using groff escapes,
3284 + Add title, author and date to metadata; any remaining
3285 metadata fields are added as `meta:user-defined` tags.
3286 + Implement table caption numbering (#4949, Nils Carlson).
3287 Captioned tables are numbered and labeled with format "Table 1:
3288 caption", where "Table" is replaced by a translation, depending
3289 on the value of `lang` in metadata. Uncaptioned tables are not
3291 + OpenDocument writer: Implement figure numbering in captions (#4944,
3292 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
3293 The format in the caption is "Figure 1: caption" and so on
3294 (where "Figure" is replaced by a translation, depending on the
3295 value of `lang` in the metadata). Captioned figures are numbered
3296 consecutively and uncaptioned figures are not enumerated. This
3297 is necessary in order for LibreOffice to generate an
3298 Illustration Index (Table of Figures) for included figures.
3300 * RST reader: Pass through fields in unknown directives as div attributes
3301 (#4715). Support `class` and `name` attributes for all directives.
3303 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
3304 Brian Leung). Headers with the corresponding tags should not
3305 appear in the output.
3307 * Log warnings about missing title attributes now include a
3308 suggestion about how to fix the problem (#4909).
3310 * Lua filter changes (Albert Krewinkel):
3312 + Report traceback when an error occurs. A proper Lua traceback is
3313 added if either loading of a file or execution of a filter
3314 function fails. This should be of help to authors of Lua filters
3315 who need to debug their code.
3317 + Allow access to pandoc state (#5015). Lua filters and custom
3318 writers now have read-only access to most fields of pandoc's
3319 internal state via the global variable `PANDOC_STATE`.
3321 + Push ListAttributes via constructor (Albert Krewinkel).
3322 This ensures that ListAttributes, as present in OrderedList elements,
3323 have additional accessors (viz. `start`, `style`, and `delimiter`).
3325 + Rename ReaderOptions fields, use snake_case. Snake case is used
3326 in most variable names, using camelCase for these fields was an
3327 oversight. A metatable is added to ensure that the old field
3328 names remain functional.
3330 + Iterate over AST element fields when using `pairs`. This makes
3331 it possible to iterate over all ield names of an AST element by
3332 using a generic `for` loop with pairs`:
3334 for field_name, field_content in pairs(element) do
3338 Raw table fields of AST elements should be considered an
3339 implementation detail and might change in the future. Accessing
3340 element properties should always happen through the fields
3341 listed in the Lua filter docs.
3343 Note that the iterator currently excludes the `t`/`tag` field.
3345 + Ensure that MetaList elements behave like Lists. Methods usable
3346 on Lists can also be used on MetaList objects.
3348 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
3349 object to the constructor `pandoc.MetaList` now returns the
3350 passed list as a MetaList. This is consistent with the
3351 constructor behavior when passed an (untagged) list.
3353 * Custom writers: Custom writers have access to the global variable
3354 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
3355 a userdata wrapper around the full pandoc AST and exposes two
3356 fields, `meta` and `blocks`. The field content is only
3357 marshaled on-demand, performance of scripts not accessing the
3358 fields remains unaffected.
3362 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
3364 * Text.Pandoc.Shared:
3366 + Export `splitSentences`. This was previously duplicated in the Man and
3368 + Add `ToString` typeclass (Alexander Krotov).
3370 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
3372 * Text.Pandoc.Parsing
3374 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
3375 + Generalize `readWithM` from `[Char]` to any `Char` Stream
3376 that is a `ToString` instance (Alexander Krotov).
3378 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
3380 * Text.Pandoc.XML: add `toHtml5Entities`.
3382 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
3385 * Text.Pandoc.Writers.Shared
3387 + Add exported functions `toSuperscript` and
3388 `toSubscript` (quasicomputational, #4528).
3389 + Remove exported functions `metaValueToInlines`,
3390 `metaValueToString`. Add new exported functions
3391 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
3392 `lookupMetaString`. Use these whenever possible for uniformity
3393 in writers (Mauro Bieg, #4907). (Note that
3394 removed function `metaValueToInlines` was in previous
3396 + Add `metaValueToString`.
3400 + Expose more useful internals (Albert Krewinkel):
3402 - `runFilterFile` to run a Lua filter from file;
3403 - data type `Global` and its constructors; and
3404 - `setGlobals` to add globals to a Lua environment.
3406 This module also contains `Pushable` and `Peekable` instances
3407 required to get pandoc's data types to and from Lua. Low-level
3408 Lua operation remain hidden in Text.Pandoc.Lua.
3410 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
3412 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
3413 `apply` (Albert Krewinkel).
3415### Bug fixes and under-the-hood improvements
3417 * Text.Pandoc.Parsing
3419 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
3420 + Rewrite `uri` without `withRaw` (Alexander Krotov).
3421 + Generalize `parseFromString` and `parseFromString'` to any
3422 streams with Char token (Alexander Krotov)
3423 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
3425 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
3428 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
3433 + Work around HXT limitation for --syntax-definition with windows
3435 + Always preserve tabs for man format. We need it for tables.
3436 + Split command line parsing code into a separate unexported
3437 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
3439 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
3442 * New unexported module Text.Pandoc.RoffChar, provided character
3443 escape tables for roff formats.
3445 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
3446 accept processing instructions (#3123, regression since 2.0).
3448 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
3449 account for empty lists (Alexander Krotov).
3451 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
3452 headerless table (#4382).
3454 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
3455 blocks (Brian Leung).
3457 * Text.Pandoc.Readers.Vimwiki:
3459 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
3461 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
3463 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
3464 `[Char]` (Alexander Krotov).
3466 * Text.Pandoc.Readers.LaTeX
3468 + Allow space at end of math after `\` (#5010).
3469 + Add support for `nolinkurl` command (#4992, Brian Leung).
3470 + Simplified type on `doMacros'`.
3471 + Tokenize before pulling tokens, rather than after (#4408). This
3472 has some performance penalty but is more reliable.
3473 + Make macroDef polymorphic and allow in inline context.
3474 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
3475 I have actually seen tex like this in the wild.
3476 + Improved parsing of `\def`, `\let`. We now correctly parse:
3486 + Improve parsing of `\def` argspec.
3487 + Skip `\PackageError` commands (see #4408).
3488 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
3489 so no raw tex should result unless we explicitly say `+raw_tex`.
3490 Previously some raw commands did make it through.
3491 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
3492 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
3493 Text.Pandoc.Readers.LaTeX.Lang (unexported).
3494 + Simplified accent code using unicode-transforms.
3495 New dependency on unicode-transforms package for normalization.
3496 + Allow verbatim blocks ending with blank lines (#4624).
3497 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
3498 This collects some of the general-purpose code from the LaTeX reader,
3499 with the aim of making the module smaller.
3501 * Text.Pandoc.Readers.Markdown
3503 + Fix awkward soft break movements before abbreviations (#4635).
3504 + Add updateStrPos in a couple places where needed.
3506 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
3507 (#4947). These are variants for "complex scripts" like Arabic
3508 and are now treated just like b, i (bold, italic).
3510 * Text.Pandoc.Readers.Muse (Alexander Krotov)
3512 + Try to parse lists before trying to parse table.
3513 This ensures that tables inside lists are parsed correctly.
3514 + Forbid whitespace after opening and before closing markup
3516 + Parse page breaks.
3517 + Simplify `museToPandocTable` to get rid of partial functions.
3518 + Allow footnotes to start with empty line.
3519 + Make sure that the whole text is parsed.
3520 + Allow empty headers. Previously empty headers caused parser to
3521 terminate without parsing the rest of the document.
3522 + Allow examples to be indented with tabs.
3523 + Remove indentation from examples indicated by `{{{` and `}}}`.
3524 + Fix parsing of empty cells.
3525 + Various changes to internals.
3526 + Rewrite some parsers in applicative style.
3527 + Avoid tagsoup dependency.
3528 + Allow table caption to contain `+`.
3530 * Text.Pandoc.Writers.LaTeX
3532 + Add newline if math ends in a comment (#4880). This prevents the
3533 closing delimiter from being swalled up in the comment.
3534 + With `--listings`, don't pass through org-babel attributes (#4889).
3535 + With `--biblatex`, use `\autocite` when possible (#4960).
3536 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
3537 we don't have prefixes and suffixes, we use instead
3538 `\autocite{a1,a2,a3}`.
3539 + Fix description lists contining highlighted code (#4662).
3541 * Text.Pandoc.Writers.Man
3543 + Don't wrap `.SH` and `.SS` lines (#5019).
3544 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
3545 one paragraph definitions.
3546 + Moved common groff functions to Text.Pandoc.Writers.Groff.
3547 * Fix strong/code combination on man (should be `\f[CB]` not
3548 `\f[BC]`, see #4973).
3549 + Man writer: use `\f[R]` instead of `\f[]` to reset font
3550 (Alexander Krotov, #4973).
3551 + Move `splitSentences` to Text.Pandoc.Shared.
3553 * Text.Pandoc.Writers.Docx
3555 + Add framework for custom properties (#3034). So far, we don't
3556 actually write any custom properties, but we have the
3557 infrastructure to add this.
3559 + Handle tables in table cells (#4953). Although this is not
3560 documented in the spec, some versions of Word require a `w:p`
3561 element inside every table cell. Thus, we add one when the
3562 contents of a cell do not already include one (e.g. when a table
3563 cell contains a table).
3565 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
3566 Adjust header levels so that n+1 level headers are only
3567 found under n level headers, and the top level is 1.
3569 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
3570 alignment (#4385). This change eliminates the large gap we used
3571 to have between bullet and text, and also ensures that numbers
3572 in numbered lists will be right-aligned.
3574 * Text.Pandoc.Writers.ZimWiki
3576 + Number ordered list items sequentially, rather than always
3578 + Remove extra indentation on lists (#4963).
3580 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
3581 `stylesheet` (Mauro Bieg, #4990).
3583 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
3584 normal content (#4629). Otherwise a raw block can prevent a
3585 paragraph from being recognized as such.
3587 * Text.Pandoc.Writers.Ms
3589 + Removed old `escapeBar`. We don't need this now that we use
3591 + Moved common code to Text.Pandoc.Writers.Roff and to
3592 Text.Pandoc.RoffChar.
3593 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
3594 with the man writer).
3596 * Text.Pandoc.Writers.Muse (Alexander Krotov).
3598 + Add support for grid tables.
3599 + Fix Muse writer style.
3600 + Use `length` instead of `realLength` to calculate definition
3601 indentation. Muse parsers don't take character width into
3602 account when calculating indentation.
3603 + Do not insert newline before lists.
3604 + Use lightweight markup after `</em>` tag.
3606 * New unexported module Text.Pandoc.Writers.Roff, providing functions
3607 useful for all roff format writers (man, ms).
3611 + Move globals handling to separate module Text.Pandoc.Lua.Global
3614 + Lua filter internals: push Shared.Element as userdata (Albert
3615 Krewinkel). Hierarchical Elements were pushed to Lua as plain
3616 tables. This is simple, but has the disadvantage that marshaling
3617 is eager: all child elements will be marshaled as part of the
3618 object. Using a Lua userdata object instead allows lazy access
3619 to fields, causing content marshaling just (but also each time)
3620 when a field is accessed. Filters which do not traverse the full
3621 element contents tree become faster as a result.
3623### Default template changes
3627 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
3628 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
3630 * AsciiDoc template: use single-line style for title.
3632 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
3635 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
3638 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
3640 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
3643### Documentation improvements
3647 + Add chromeos install instructions (#4958) (Evan Pratten).
3648 + Add note about TinyTeX.
3652 + Change `groff` -> `roff`.
3653 + Implement `--ascii` for Markdown writer.
3654 + Clarify LaTeX image dimensions output (Mauro Bieg).
3656 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
3658 * doc/getting-started.md: Added title to test1.md to avoid warning.
3660 * doc/lua-filters.md: merge type references into main document,
3661 fix description of Code.text (Albert Krewinkel).
3663### Build infrastructure improvements
3667 + Makefile: added quick-cabal, full-cabal targets.
3668 + Make .msi download targets insensitive to order of appveyor builds.
3670 * Update benchmarks for ghc 8.6.1.
3674 + Enable more compiler warnings (Albert Krewinkel).
3675 + Make base lower bound 4.8.
3676 + Bump upper bound for QuickCheck.
3677 + Bump upper bound for binary.
3678 + Updated version bounds for containers and haddock-library (#4974).
3679 + Added docx/docPropos/custom.xml to cabal data-files.
3680 + Require skylighting 0.7.4 (#4920).
3681 + New dependency on unicode-transforms package for normalization.
3683 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
3685 * Added `tools/changelog-helper.sh`.
3687 * Added test/grofftest.sh for testing the man reader on real man pages.
3689## pandoc 2.3.1 (2018-09-28)
3693 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
3694 This eliminates a regression introduced after pandoc 2.1.1, which
3695 caused inline constructions containing newlines not to be recognized.
3696 + Fix bug with internal link targets (#4919). They were gobbling up
3697 indented content underneath.
3699 * Markdown reader: distinguish autolinks in the AST. With this change,
3700 autolinks are parsed as Links with the `uri` class. (The same is true
3701 for bare links, if the `autolink_bare_uris` extension is enabled.)
3702 Email autolinks are parsed as Links with the `email` class. This
3703 allows the distinction to be represented in the AST.
3707 + Force inline code blocks to honor export options (Brian Leung).
3708 + Parse empty argument array in inline src blocks (Brian Leung).
3710 * Muse reader (Alexander Krotov):
3712 + Added additional tests.
3713 + Do not allow code markup to be followed by digit.
3714 + Remove heading level limit.
3715 + Simplify `<literal>` tag parsers
3716 + Parse Text instead of String. Benchmark shows 7% improvement.
3717 + Get rid of HTML parser dependency.
3718 + Various code improvements.
3720 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
3721 We do this in the LaTeX writer, and it avoids problems.
3722 Note that `/` works as a LaTeX path separator on Windows.
3726 + Add support for multiprenote and multipostnote arguments
3727 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
3728 the first prefix of a multicite, and the multipostnotes follow the
3730 + Fix a use of `last` that might take empty list. If you ran with
3731 `--biblatex` and have an empty document (metadata but no blocks),
3732 pandoc would previously raise an error because of the use of
3733 `last` on an empty list.
3735 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
3736 MonadFail instance (Jonas Scholl).
3738 * ODT Writer: Improve table header row style handling (Nils Carlson).
3739 This changes the way styles for cells in the header row
3740 and normal rows are handled in ODT tables.
3741 Previously a new (but identical) style was generated for
3742 every table, specifying the style of the cells within the table.
3743 After this change there are two style definitions for table cells,
3744 one for the cells in the header row, one for all other cells.
3745 This doesn't change the actual styles, but makes post-processing
3746 changes to the table styles much simpler as it is no longer
3747 necessary to introduce new styles for header rows and there are
3748 now only two styles where there was previously one per table.
3752 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
3753 class was added to autolinks by the HTML writer, but it had to
3754 guess what was an autolink and could not distinguish
3755 `[http://example.com](http://example.com)` from
3756 `<http://example.com>`. It also incorrectly recognized
3757 `[pandoc](pandoc)` as an autolink. Now the HTML writer
3758 simply passes through the `uri` attribute if it is present,
3759 but does not add anything.
3760 + Avoid adding extra section nestings for revealjs.
3761 Previously revealjs title slides at level (slidelevel - 1)
3762 were nested under an extra section element, even when
3763 the section contained no additional (vertical) content.
3764 That caused problems for some transition effects.
3765 + Omit unknown attributes in EPUB2 output. For example,
3766 `epub:type` attributes should not be passed through,
3767 or the epub produced will not validate.
3769 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
3770 The JATS spec does not allow these.
3772 * Textile writer: don't represent `uri` class explicitly
3773 for autolinks (#4913).
3775 * Lua filters (Albert Krewinkel):
3777 + Cleanup filter execution code.
3778 + Better error on test failure.
3780 * HTML, Muse reader tests: reduce time taken by round-trip test.
3782 * Added cabal.project.
3784 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
3786 * Use hslua v1.0.0 (Albert Krewinkel).
3788 * Fix `translations/ru` to use modern Russian orthography
3791 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
3792 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
3794## pandoc 2.3 (2018-09-16)
3796 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
3797 users to specify metadata in a YAML file, regardless of the
3798 input format (#1960).
3800 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
3802 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
3805 * Text.Pandoc.Readers.LaTeX.Types:
3807 + New type `ArgSpec` (API change).
3808 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
3813 + Use `tex` instead of `latex` for raw tex-ish content. We can't
3814 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
3815 use `tex` always. Note that if `context` or `latex` specifically
3816 is desired, you can still force that in a markdown document by
3817 using the raw attribute. Note that this change may affect some
3818 filters, if they assume that raw tex parsed by the Markdown reader
3819 will be RawBlock (Format `latex`). In most cases it should be
3820 trivial to modify the filters to accept `tex` as well.
3821 + Refactor and reorganize YAML code (Mauro Bieg).
3822 + Make `example_lists` work for interrupted lists
3823 without `startnum` (#4908).
3827 + Parse `<script type="math/tex` tags as math (#4877).
3828 These are used by MathJax in some configurations.
3829 + Extract spaces inside links instead of trimming them
3830 (Alexander Krotov, #4845).
3831 + Added round-trip tests (Alexander Krotov).
3832 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
3833 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
3834 (which is helpful for translation HTML documents using MathJaX).
3836 * Org reader (Albert Krewinkel):
3838 + Respect export option `p` for planning info. Inclusion of planning info
3839 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
3840 `p` export option: setting the option to `t` will add all planning
3841 information in a *Plain* block below the respective headline.
3842 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
3844 + Strip planning info from output. Planning info is parsed, but not
3845 included in the output (as is the default with Emacs Org-mode, #4867).
3849 + Handle parameter patterns for `\def` (#4768, #4771).
3850 For example: `\def\foo#1[#2]{#1 and #2}`.
3851 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
3852 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
3853 argument as the content.
3854 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
3855 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
3856 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
3857 will be parsed as a regular Quoted inline (not using the quotes
3858 appropriate to the foreign language).
3859 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
3860 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
3861 `\textcircled`. Also fall back to combining characters when composed
3862 characters are not available.
3863 + Resolve `\ref` for figure numbers.
3864 + Support `mintinline` (#4365, Marc Schreiber).
3865 + Fix siunitx unit commands so they are only recognized in
3866 siunitx contexts (#4842). For example, `\l` outside of an
3867 siunitx context should be l-slash, not l (for liter).
3868 + Fix double `unnumbered` class (#4838). The `unnumbered` class
3869 was being included twice for starred sections.
3871 * RST reader: Don't skip link definitions after comments (#4860).
3873 * Muse reader (Alexander Krotov):
3875 + Close the `</quote>` in indented tag test.
3876 There is already a separate test for unclosed `</quote>`.
3877 + Autonumber sections in the correct order. Parsing now stops
3878 at each section header to ensure the header is registered before
3879 parsing of the next section starts.
3880 + Move duplicate code into `headingStart` function.
3881 + Allow newline after opening `*` or `**`.
3882 + Don't allow digits after closing marker in lightweight markup
3883 This change makes reader more compatible with Emacs Muse.
3884 + Parse `<verse>` tag in one pass instead of using
3885 `parseFromString`. This change makes it possible to have
3886 verbatim `</verse>` tag inside verse.
3888 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
3889 (#4336). This allows pandoc to parse ODT document produced by KDE's
3892 * Muse writer (Alexander Krotov):
3894 + Output headers without asterisks if not on the top level.
3895 + Never wrap definition list terms.
3896 + Set `envInsideBlock = True` when rendering notes.
3897 + Use `""` instead of `[]` for empty String.
3898 + Check for whitespace in the beginning and end of Str's.
3899 + Escape `-`, `;` and `>` in the beginning of strings.
3900 + Escape list markers in the beginning of notes.
3901 + Normalize inline list before testing if tags should be used.
3902 + Use tags instead of lightweight markup for empty strings.
3903 + Use lightweight markup when possible.
3904 + Escape empty strings. This guarantees that `conditionalEscapeString`
3905 never returns empty string.
3906 + Wrap conditionalEscapeString result into `Muse` type.
3907 This removes the need to pass `envInsideLinkDescription` to it.
3908 + Separate `shouldEscapeString` function.
3909 + Simplify inline list rendering.
3910 + Replace newlines in strings with spaces.
3914 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
3915 + Properly handle display math in spans (#4826). This isn't a
3916 complete solution, since other nestings of display math may still
3917 cause problems, but it should work for what is by far the most
3922 + Always output `<dt>` element, even if it is empty (#4883,
3924 + Don't prefix `epub:` attributes with `data-`.
3926 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
3927 recognize these escapes.
3929 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
3930 Image scaling was broken when a width was set to a percentage.
3932 * EPUB writer: set `epub:type` on body element in each chapter,
3933 depending on the `epub:type` of the first section (#4823). This
3934 only affects epub3. See
3935 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
3937 * FB2 writer: put `coverpage` element between title and date rather than in
3938 `document-info` element (#4854).
3940 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
3942 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
3943 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
3944 tex is now used. Previously we'd "fake it with unicode" and fall
3945 back to tex when that didn't work. But newer haddock versions
3950 + Ensure that title element is always present, even if empty (#4839).
3951 + Put author tags in the template, rather than adding them in
3954 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
3955 `linkcolor` only affects internal links, and `urlcolor` only
3956 affects linked URLs. For external links, the option to use is
3959 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
3963 + Use `.. raw:: latex` for `tex` content.
3964 + Use `.. container` for generic Divs, instead of raw HTML.
3965 + Render Divs with admonition classes as admonitions (#4833).
3966 Also omit Div with class `admonition-title`. These are generated
3967 by the RST reader and should be omitted on round-trip.
3969 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
3970 (#4855, Antonio Terceiro).
3972 * HTML5 template: add the `title-block-header` identifier to the
3973 `header` element, to make it easier to style precisely (#4767,
3976 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
3977 José de Mattos Neto).
3979 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
3980 (#4853, Wandmalfarbe).
3982 * TEI template: improve `publicationStmt`. Add support for
3983 `publisher`, `address`, `pubPlace`, and `date` variables.
3985 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
3987 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
3989 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
3993 + Clarify that `--biblatex/--natbib` don't work directly for PDF
3995 + Document `epub:type` attribute (Mauro Bieg, #4901)
3996 + Clarify when `--resource-path` has an effect.
3997 + More detail on customization in syntax highlighting section.
3998 + Document encoding issue with `--listings` (#4871, Damien Clochard).
3999 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
4000 + Use https for context wiki links (#4910).
4004 + Link to lua-filters repository (#4874).
4005 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
4007 * lua-filters.md: add links to filters, and to lua-filters repository
4012 + Indicate that cabal >= 2.0 is needed.
4013 + Added chocolatey installation method (#4844, Miodrag Milić).
4015 * Travis: exclude round-trip tests, except for nightly test which can fail.
4017 * Use latest texmath, pandoc-citeproc.
4019 * Use a patched version of foundation until
4020 https://github.com/haskell-foundation/foundation/pull/503
4023 * Clean up appveyor build and Windows package creation.
4024 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
4025 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
4027 * Remove obsolete RELEASE-CHECKLIST.md.
4029 * Added additional compiler warnings in Makefile and CI builds.
4031## pandoc 2.2.3.2 (2018-08-07)
4033 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
4034 This fixes a regression in 2.2.3, which cause boolean values to
4035 be parsed as MetaInlines instead of MetaBool.
4037 We here record another undocumented (but desirable) change in 2.2.3:
4038 numerical metadata fields are now parsed as MetaInlines rather than
4041## pandoc 2.2.3.1 (2018-08-06)
4043 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
4044 (#4817). This fixes a regression in 2.2.3 which caused embedded
4045 mappings (e.g. mappings in sequences) not to work in YAML metadata.
4047## pandoc 2.2.3 (2018-08-05)
4049 * RST reader: improve parsing of inline interpreted text roles (#4811).
4051 + Use a Span with class "title-reference" for the default
4052 title-reference role.
4053 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
4054 and `Str`s for `title-reference`.
4055 + Use Code with class "interpreted-text" instead of Span and Str for
4056 unknown roles. (The RST writer has also been modified to round-trip
4058 + Disallow blank lines in interpreted text.
4059 + Backslash-escape now works in interpreted text.
4060 + Backticks followed by alphanumerics no longer end interpreted text.
4061 + Remove support for nested inlines (Francesco Occhipinti).
4062 RST does not allow nested emphasis, links, or other inline
4063 constructs. This fixes several bugs (#4581, #4561, #4792).
4065 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
4066 Krewinkel). Emphasis was not parsed when it followed directly after
4067 some block types (e.g., lists).
4069 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
4070 keys. Previously in 2.2.2 you could not do
4082 With this change, both forms work.
4084 * DocBook reader: metadata handling improvements.
4085 Now we properly parse title and subtitle elements that are direct
4086 children of book and article (as well as children of bookinfo,
4087 articleinfo, or info). We also now use the `subtitle` metadata
4088 field for subtitles, rather than tacking the subtitle on to the
4093 + Allow images to be directly nested within links (#4810, Francesco
4095 + Use `titleblock` instead of `title` variable for title block (#4803,
4096 Francesco Occhipinti). `titleblock` contains a properly formatted
4097 title and subtitle (using top-level headers). `title` and
4098 `subtitle` variables are still available and just contain the
4099 title and subtitle text. Note that this change will require an
4100 update to custom rst templates.
4101 + Render Code with class "interpreted-text" as interpreted text role.
4103 * MediaWiki writer: Avoid extra blank line in tables with empty cells
4104 (#4794). Note that the old output is semantically identical, but the
4105 new output looks better.
4107 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
4108 Krewinkel). Exposes a function converting which flattenes a list of
4109 blocks into a list of inlines. An example use case would be the
4110 conversion of Note elements into other inlines.
4112 * RST template: use `titleblock` instead of `title`. Users of
4113 custom RST templates will want to update this.
4115 * LaTeX template: Moved some beamer code in default.latex template.
4116 This change allows beamer themes to change the template and font (as
4117 Metropolis does) (#4450).
4119 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
4121 * Added test case for #4669 to repository.
4123 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
4127 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
4128 + Clarify when `csquotes` is used in LaTeX writer (#4514).
4129 + Add `commonmark` to list of output formats where `raw_tex` has an
4133## pandoc 2.2.2.1 (2018-07-19)
4135 * Fix regression finding templates in user data directory (#4777).
4136 Under version 2.2.1 and prior pandoc found latex templates in the
4137 templates directory under the data directory, but this broke in 2.2.2.
4139 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
4140 `rawLaTeXInline` (#4781). (This primarily affects the markdown
4141 reader, and other readers that accept raw tex.)
4142 Starting in 2.2.2, everything after an `\input` (or `\include`)
4143 in a markdown file would be parsed as raw LaTeX.
4147 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
4148 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
4149 Unlike `tags`, `keywords` is used in some of the writers
4150 and default templates.
4152 * Add missing `rollingLinks` option to revealjs template (#4778,
4155## pandoc 2.2.2 (2018-07-16)
4157 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
4158 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
4160 Note: HsYAML implements YAML 1.2, in which the valid true
4161 values are `true`, `True`, `TRUE`. This means a change in
4162 the semantics of YAML metadata that could affect users:
4163 `y`, `yes`, and `on` no longer count as true values.
4165 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
4168 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
4169 Anders Waldenborg). Non-ascii characters were not stripped from
4170 identifiers even if the `ascii_identifiers` extension was
4171 enabled (which is is by default for gfm).
4173 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
4174 Remove trailing Space from list items. Parse lists that have no space
4179 + Treat `lilypond` as a verbatim environment (#4725).
4180 + Parse figure label into Image id (#4700, Mauro Bieg).
4181 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
4182 + Allow spaces around `\graphicspath` arguments (#4698).
4183 + Handle includes without surrounding blanklines (#4553).
4184 In addition, `\input` can now be used in an inline context,
4185 e.g. to provide part of a paragraph, as it can in LaTeX.
4186 + In `rawLaTeXBlock`, handle macros that resolve to a
4187 `\begin` or `\end` (#4667).
4188 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
4189 Note that this only affected LaTeX in markdown.
4190 + Tighten up reading of beamer overlay specifications (#4669).
4191 Ideally we'd turn these on only when reading beamer, but currently
4192 beamer is not distinguished from latex as an input format.
4193 This commit also activates parsing of overlay specifications
4194 after commands in general (e.g. `\item`), since they can occur
4195 in many contexts in beamer.
4196 + Parse more siunitx unit commands (#4296, #4773).
4197 + Be more forgiving in key/value option parsing (#4761).
4201 + Allow empty code spans, e.g. `` ` ` ``.
4202 + Emojis are now wrapped in Spans with class `emoji` and
4203 attribute `data-emoji` (Anders Waldenborg, #4743).
4204 This allows the writer to handle them in a special way
4205 (e.g. using a special font, or just rendering the
4208 * Muse reader (Alexander Krotov, except where indicated):
4210 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
4211 + Add support for floating images.
4212 + Add support for images with specified width.
4213 + Parse image URLs without "guard" and "takeExtension".
4214 + Split link and image parsing into separate functions.
4215 + Parse links starting with "URL:" explicitly instead of trying to strip
4216 "URL:" prefix after parsing.
4218 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
4221 * Markdown writer: Preserve `implicit_figures` with attributes, even if
4222 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
4224 * Markdown and commonmark/github writers now respect the `emoji`
4225 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
4226 `:smile:` as `:smile:` rather than converting it to a smile
4229 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
4231 * ODT/OpenDocument writer: Make internal links work (#4358).
4232 This adds proper bookmarks to the headers with non-null IDs.
4234 * EPUB writer: Properly escape pagetitle. Previously we weren't
4235 escaping `&` and other XML characters in the pagetitle, so a title
4236 containing a `&` would be invalid.
4238 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
4243 + Don't treat 'example' as a syntax name (#4748).
4244 This fixes conversions from org with example blocks.
4245 + Support `--number-sections` via the `section-numbering`
4246 directive in standalone output.
4248 * reveal.js writer and template: reuse mathjax URL
4249 provided by the argument to `--mathjax` or the normal pandoc default,
4250 rather than a hard-coded one in the template (#4701).
4254 + Properly handle footnotes in table captions (#4683).
4255 Refactored code from figure captions to use in both places.
4256 + In beamer output, fix single digit column percentage (#4690, Mauro
4259 * FB2 writer (Alexander Krotov):
4261 + Convert Plain to Para in annotation (#2424).
4262 + Fix order of items in title-info (#2424).
4264 * Custom writer: fix error message on script failure (Albert Krewinkel).
4265 Error messages produced by Lua were not displayed by Pandoc.
4267 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
4268 inline containing the emoji character and some attributes with metadata
4269 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
4270 Anders Waldenborg, #4743).
4274 + Revert fix for #4484 (only compress images on last run, #4755).
4275 This will mean some increase in the time it takes to
4276 produce an image-heavy PDF with xelatex, but it will
4277 make tables of contents correct, which is more important.
4278 + Fix logic error in `runTeXProgram`. We were running the tex program
4279 one more time than requested. This should speed up PDF production.
4281 * Allow `--template` to take a URL as argument.
4283 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
4284 highlighting style (#4687, Adrian Sieber, API change).
4286 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
4287 installer the recommended method, and note that on some older versions of
4288 macOS, homebrew installs from source and takes a lot of disk space
4293 + Clarify EPUB linked media (#4756, Mauro Bieg)
4294 + Update manual for "true" YAML values. Now that we're using HsYAML and
4295 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
4296 `y`, `yes`, `on` no longer count as true values.
4297 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
4298 + Update manual on how math is rendered in LaTeX.
4299 + Add proxy description (#4131, Mauro Bieg).
4300 + Clarify that `--toc` requires `--standalone` (#4703).
4301 + Update citation styles link (#4699, wiefling).
4303 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
4304 (kaizshang91). Note that it will not take effect when readers/writers
4305 are called as libraries (#4674).
4307 * Improved translations/fr (#4766, lux-lth).
4309 * Removed inadvertently added `.orig` files from repository (#4648).
4311 * Remove `network-uri` flag and use 'Network.Socket'.
4312 This removes a compiler warning. There is no need for the old
4313 `network-uri` flag, since network 2.6 was released in 2014.
4315 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
4317 * Bump upper bounds for dependent packages.
4319 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
4320 confused because of the way ghc 7.10 is excluded in foundation's
4321 cabal file. This can be removed when haskell-foundation/foundation#500
4324 * Require cabal-version >= 2.0. This is needed for haddock-library.
4329## pandoc 2.2.1 (2018-05-10)
4331 * Restored and undeprecated gladtex for HTML math (#4607).
4333 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
4334 [API change, reverts removal in v2.2]
4335 + Restored and undeprecated `--gladtex` option, removed in v2.2.
4337 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
4339 * Org reader: Fix image filename recognition (Albert Krewinkel).
4340 Use a function from the filepath library to check whether a string is a
4341 valid file name. The custom validity checker that was used before gave
4342 wrong results (e.g. for absolute file paths on Windows,
4343 kawabata/ox-pandoc#52).
4345 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
4349 + Strip links from headers when creating TOC (#4340).
4350 Otherwise the TOC entries will not link to the sections.
4351 + Fix regression with tex math environments in HTML + MathJax (#4639).
4353 * Muse writer (Alexander Krotov): Add support for left-align and
4354 right-align classes (#4542).
4356 * Docx writer: Support underline (#4633).
4358 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
4359 `singleQuoteStart` and `doubleQuoteStart` (#4637).
4361 * `test-pandoc-utils.lua`: more robust testing on both windows
4362 and \*nix. Previously the pipe tests were only run if
4363 `\bin/false` and `/bin/sed` were present, which they aren't
4364 in default MacOS and Windows systems. Fixed by using `tr`
4365 and `false`, which should always be in the path on a \*nix
4366 system, and `find` and `echo` for Windows.
4368 * Text.Pandoc.Shared: add `uriPathToPath`.
4369 This adjusts the path from a file: URI in a way that is sensitive
4370 to Windows/Linux differences. Thus, on Windows,
4371 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
4372 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
4374 * Use `uriPathToPath` with file: URIs (#4613).
4376 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
4379 * Text.Pandoc.Class: Catch IO errors when writing media files
4380 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
4382 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
4384 * MANUAL (Mauro Bieg):
4386 + Clarify truthiness in template variables (#2281).
4387 + Clarify pipe table width calculation (#4520).
4389 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
4390 CMU Serif gives better typographic results than the previous
4391 Greek fallback DejaVu Serif.
4393 * Make HTML template polyglot (#4606, OvidiusCicero), by making
4394 `<link rel="stylesheet" href="$css$">` self-closing.
4396 * Use texmath 0.11, allowing better translation of non-ASCII
4397 characters in math (#4642).
4400## pandoc 2.2 (2018-04-27)
4402 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
4404 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
4405 and for `ms` and `man`.
4407 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
4408 `--asciimathml` options.
4410 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
4411 Krotov, API change).
4415 + Allow empty key-value attributes, like `title=""` (#2944).
4416 + Handle table w/o following blank line in fenced div (#4560).
4417 + Remove "fallback" for `doubleQuote` parser. Previously the
4418 parser tried to be efficient -- if no end double quote was found,
4419 it would just return the contents. But this could backfire in a
4420 case `**this should "be bold**`, since the fallback would return
4421 the content `"be bold**` and the closing boldface delimiter
4422 would never be encountered.
4423 + Improve computation of the relative width of the last column in a
4424 multiline table, so we can round-trip tables without constantly
4425 shrinking the last column.
4429 + Fix images with space in file path (#4344).
4433 + Properly resolve section numbers with `\ref` and chapters (#4529).
4434 + Parse sloppypar environment (#4517, Marc Schreiber).
4435 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
4436 Previously there were some bugs in how macros were handled.
4437 + Support `\MakeUppercase`, `\MakeLowercase`, `\uppercase`,
4438 `\lowercase`, and also `\MakeTextUppercase` and
4439 `\MakeTextLowercase` from textcase (#4959).
4443 + Fixed tables with no body rows (#4513).
4444 Previously these raised an exception.
4448 + Improve table parsing (#4508). This fixes detection of table
4449 attributes and also handles `!` characters in cells.
4453 + Properly handle title in `section` element (#4526).
4454 Previously we just got `section_title` for `section` (though `sect1`,
4455 `sect2`, etc. were handled properly).
4456 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
4460 + Combine adjacent CodeBlocks with the same attributes into
4461 a single CodeBlock. This prevents a multiline codeblock in
4462 Word from being read as different paragraphs.
4466 + Allow < 3 spaces indent under directives (#4579).
4467 + Fix anonymous redirects with backticks (#4598).
4469 * Muse reader (Alexander Krotov):
4471 + Add support for Text::Amuse multiline headings.
4472 + Add `<math>` tag support.
4473 + Add support for `<biblio>` and `<play>` tags.
4474 + Allow links to have empty descriptions.
4475 + Require block `<literal>` tags to be on separate lines.
4476 + Allow `-` in anchors.
4477 + Allow verse to be indented.
4478 + Allow nested footnotes.
4479 + Internal improvements.
4481 * Muse writer (Alexander Krotov):
4483 + Escape `>` only at the beginning of a line.
4484 + Escape `]` in image title.
4485 + Escape `]` brackets in URLs as `%5D`.
4486 + Only escape brackets when necessary.
4487 + Escape ordered list markers.
4488 + Do not escape list markers unless preceded by space.
4489 + Escape strings starting with space.
4490 + Escape semicolons and markers after line break.
4491 + Escape `;` to avoid accidental comments.
4492 + Don't break headers, line blocks and tables with line breaks.
4493 + Correctly output empty headings.
4494 + Escape horizontal rule only if at the beginning of the line.
4495 + Escape definition list terms starting with list markers.
4496 + Place header IDs before header.
4497 + Improve span writing.
4498 + Do not join Spans in normalization.
4499 + Don't align ordered list items.
4500 + Remove key-value pairs from attributes before normalization.
4501 + Enable `--wrap=preserve` for all tests by default.
4502 + Reduced `<verbatim>` tags in output.
4507 + Use more consistent indentation (#4563). Previously we
4508 used an odd mix of 3- and 4-space indentation. Now we use 3-space
4509 indentation, except for ordered lists, where indentation must
4510 depend on the width of the list marker.
4511 + Flatten nested inlines (#4368, Francesco Occhipinti).
4512 Nested inlines are not valid RST syntax, so we flatten them following
4513 some readability criteria discussed in #4368.
4517 + Ensure that `pagetitle` is always set, even when structured titles
4518 are used. This prevents spurious warnings about empty title
4521 * FB2 writer (Alexander Krotov):
4523 + Output links inline instead of producing notes. Previously all links
4524 were turned into footnotes with unclickable URLs inside.
4525 + Allow emphasis and notes in titles.
4526 + Don't intersperse paragraph with empty lines.
4527 + Convert metadata value `abstract` to book annotation.
4528 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
4529 FB2 does not have a way to represent line breaks inside paragraphs;
4530 previously we used `<empty-line />` elements, but these are not allowed
4533 * Powerpoint writer (Jesse Rosenthal):
4535 + Handle Quoted Inlines (#4532).
4536 + Simplify code with `ParseXml`.
4537 + Allow fallback options when looking for placeholder type.
4538 + Check reference-doc for all layouts.
4539 + Simplify speaker notes logic.
4540 + Change notes state to a simpler per-slide value.
4541 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
4542 means no speaker notes.
4543 + Add tests for improved speaker notes.
4544 + Handle speaker notes earlier in the conversion process.
4545 + Keep notes with related blocks (#4477). Some blocks automatically
4546 split slides (imgs, tables, `column` divs). We assume that any
4547 speaker notes immediately following these are connected to these
4548 elements, and keep them with the related blocks, splitting after them.
4549 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
4550 It contained a nonfree ICC color calibration profile and is not needed
4551 for production of a powerpoint document.
4555 + Include a blank line at the end of the row in a single-row multiline
4556 table, to prevent it from being interpreted as a simple table (#4578).
4558 * CommonMark writer:
4560 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
4561 enabled (#4527, quasicomputational).
4565 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
4569 + In beamer, don't use format specifier for default ordered lists
4570 (#4556). This gives better results for styles that put ordered list
4571 markers in boxes or circles.
4572 + Update `\lstinline` delimiters (#4369, Tim Parenti).
4576 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
4577 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
4578 since the header font is automatically bold (#4552).
4579 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
4580 + Create pdf anchor for a Div with an identifier (#4515).
4581 + Escape `/` character in anchor ids (#4515).
4582 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
4587 + Don't escape U+2019 as `'` (#4550).
4589 * Text.Pandoc.Options:
4591 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
4592 `Text.Pandoc.Options.HTMLMathMethod` [API change].
4594 * Text.Pandoc.Class:
4596 + `writeMedia`: unescape URI-escaping in file path. This avoids
4597 writing things like `file%20one.png` to the file system.
4599 * Text.Pandoc.Parsing:
4601 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
4603 + `uri`: don't treat `*` characters at end as part of URI (#4561).
4607 + Use the alias `application/eps` for EPS (#2067).
4608 This will ensure that we retain the eps extension after reading the
4609 image into a mediabag and writing it again.
4613 + Use `withTempDir` in `html2pdf`.
4614 + With `xelatex`, don't compress images til the last run (#4484).
4615 This saves time for image-heavy documents.
4616 + Don't try to convert EPS files (#2067). `pdflatex` converts them
4617 itself, and JuicyPixels can't do it.
4618 + For `pdflatex`, use a temp directory in the working directory.
4619 Otherwise we can have problems with the EPS conversion pdflatex
4620 tries to do, which can't operate on a file above the working
4621 directory without `--shell-escape`.
4623 * Changes to tests to accommodate changes in pandoc-types.
4624 In <https://github.com/jgm/pandoc-types/pull/36> we changed
4625 the table builder to pad cells. This commit changes tests
4626 (and two readers) to accord with this behavior.
4628 * Set default extensions for `beamer` same as `latex`.
4632 + Add `beameroption` variable (#4359, Étienne Bersac).
4633 + Use `pgfpages` package; this is needed for notes on second
4634 screen in beamer (Étienne Bersac).
4635 + Add `background-image` variable (#4601, John Muccigrosso).
4637 * reveal.js template: Add `background-image` variable (#4600,
4640 * ms template: Fix date. Previously `.ND` was used, but this only
4641 works if you have a title page, which we don't. Thanks to @teoric.
4643 * Removed pragmas for unused extensions (#4506, Anabra).
4645 * Fix bash completion for `--print-default-data-file` (#4549).
4646 Previously this looked in the filesystem, even if pandoc
4647 was compiled with `embed_data_files` (and sometimes it looked
4648 in a nonexistent build directory). Now the bash completion
4649 script just includes a hard-coded list of data file names.
4653 + Clarify template vs metadata variables (#4501, Mauro Bieg).
4654 + Fix raw content example (#4479, Mauro Bieg).
4655 + Specify that you use html for raw output in epub.
4656 + Add examples for raw docx blocks (#4472, Tristan Stenner).
4657 The documentation states that the target format name should match
4658 the output format, which isn't the case for `docx`/`openxml` and
4660 + Don't say that `empty_paragraphs` affects markdown output (#4540).
4661 + Consolidate input/output format documentation (#4577, Mauro Bieg).
4663 * New README template. Take in/out formats from manual.
4665 * Fix example in lua-filters docs (#4459, HeirOfNorton).
4667 * Use the `-threaded` GHC flag when building benchmarks (#4587,
4668 Francesco Occhipinti).
4670 * Bump temporary upper bound to 1.4.
4672 * Use pandoc-citeproc 0.14.3.1.
4674 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
4676 * Removed old lib directory. This was used for something long ago,
4677 but plays no role now.
4679 * Removed unneeded data file `LaTeXMathML.js`.
4681 * Create 64- and 32-bit versions of Windows binary packages.
4683## pandoc 2.1.3 (2018-03-18)
4685 * Docx reader (Jesse Rosenthal):
4687 + Add tests for nested smart tags.
4688 + Parse nested smart tags.
4689 + Make unwrapSDT into a general `unwrap` function that can unwrap both
4690 nested SDT tags and smartTags. This makes the SmartTags constructor in
4691 the Docx type unnecessary, so we remove it (#4446).
4692 + Remove unused `docxWarnings` (Alexander Krotov).
4694 * RST reader: Allow unicode bullet characters (#4454).
4696 * Haddock reader: Better table handling, using haddock-library's
4697 new table support, if compiled against a version that
4698 includes it. Note that tables with col/rowspans will not
4699 translate well into Pandoc.
4701 * Muse reader (Alexander Krotov):
4703 + Various internal improvements.
4704 + Require closing tag to have the same indentation as opening.
4705 + Do not reparse blocks inside unclosed block tag (#4425).
4706 + Parse `<class>` tag (supported by Emacs Muse).
4707 + Do not produce empty Str element for unindented verse lines.
4711 + Add support to parse unit string of `\SI` command (closes #4296,
4714 * Haddock writer: In the writer, we now render tables always as
4715 grid tables, since Haddock supports these.
4717 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
4719 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
4720 docx writer. We want decimal for the top level, not lower roman.
4724 + Strip whitespace at beginning and ending of inline containers
4725 (#4327, Francesco Occhipinti).
4726 + Filter out empty inline containers (#4434). There is nothing in
4727 RST that corresponds to e.g. `Emph []`, so we just ignore elements
4728 like this (Francesco Occhipinti).
4730 * Muse writer (Alexander Krotov):
4732 + Support spans with anchors.
4733 + Replace smallcaps with emphasis before normalization.
4734 + Output smallcaps as emphasis.
4735 + Expand Cite before list normalization.
4736 + Write empty inline lists as `<verbatim></verbatim>`.
4737 + Remove empty Str from the beginning of inline lists during normalization.
4738 + Escape "-" to avoid creating bullet lists.
4739 + Fix math expansion for more than one expression per paragraph.
4740 + Expand math before inline list normalization.
4742 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
4746 + Asciify pdf anchors, since unicode anchors don't work (#4436).
4747 Internal links should be converted automatically, so this shouldn't
4748 affect users directly.
4749 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
4751 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
4752 (#4307). If it's in the title, then we get a titlebar on slides with
4753 the `plain` attribute, when the id is non-null. This fixes a regression
4756 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
4758 * JATS writer: Remove extraneous, significant whitespace (#4335,
4761 * html2pdf: inject base tag with current working directory (#4413, Mauro
4762 Bieg). This helps ensure that linked resources are included.
4764 * Add Semigroup instances for everything for which we defined a
4765 Monoid instance previously (API change):
4767 + Text.Pandoc.Class.FileTree.
4768 + Text.Pandoc.Translations.Translations.
4769 + Text.Pandoc.Extensions.Extensions.
4770 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
4771 + Text.Pandoc.Pretty.Doc.
4772 + Text.Pandoc.MediaBag.MediaBag.
4774 * Add custom Prelude to give clean code for Monoid and Semigroup
4775 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
4776 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
4777 in all source files, and Prelude is explicitly imported
4778 (this is necessary for ghci to work properly with the custom prelude).
4780 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
4782 + Export `stripLeadingTrailingSpace`.
4783 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
4784 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
4785 expand cells, even if it results in cells that don't respect relative
4786 widths or surpass page column width. This change affects RST,
4787 Markdown, and Haddock writers.
4789 * Raise error if someone tries to print docx, odt, etc. template (#4441).
4791 * LaTeX template: Provide `bidi` package's option using
4792 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
4793 clash when `polyglossia` loads it first and then it is loaded again
4796 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
4797 Menke). Instructions on how to install the ICC profiles on ConTeXt
4798 standalone can be found in the wiki:
4799 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
4800 If the ICC profiles are not available the log will contain error
4803 * Use latest pandoc-types, skylighting
4805 * Use latest pandoc-citeproc in binary package.
4807 * Bump upper bound for time, criterion, haddock-library, exceptions,
4808 http-types, aeson, haddock-library.
4810 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
4812 * pandoc.cabal: fix up other-extensions and language fields.
4813 Language is now consistently `Haskell2010`, and other-extensions
4814 is consistently `NoImplicitPrelude`. Everything else to be specified
4815 in the module header as needed.
4817 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
4818 This is no longer necessary since we no longer support ghc 7.8.
4820 * Make `weigh-pandoc` into a benchmark program.
4821 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
4822 automatically when you build (and run) benchmarks.
4824 * MANUAL: add instructions for background images reveal.js (#4325, John
4827 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
4829## pandoc 2.1.2 (2018-03-02)
4833 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
4834 "nonindent spaces" before the opening and closing `:::`, but this
4835 interfered with list parsing, so now we require the fences to be flush with
4836 the margin of the containing block.
4838 * Commonmark reader:
4840 + `raw_html` is now on by default. It can be disabled explicitly
4841 using `-f commonmark-raw_html`.
4843 * Org reader (Albert Krewinkel):
4845 + Move citation tests to separate module.
4846 + Allow changing emphasis syntax (#4378). The characters allowed before
4847 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
4848 `#+pandoc-emphasis-post`, respectively. This allows to change which
4849 strings are recognized as emphasized text on a per-document or even
4850 per-paragraph basis. Example:
4852 #+pandoc-emphasis-pre: "-\t ('\"{"
4853 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
4857 + Fixed comments inside citations (#4374).
4858 + Fix regression in package options including underscore (#4424).
4859 + Make `--trace` work.
4860 + Fixed parsing of `tabular*` environment (#4279).
4864 + Fix regression in parsing of headers with trailing space (#4280).
4866 * Muse reader (Alexander Krotov):
4868 + Enable `<literal>` tags even if amuse extension is enabled.
4869 Amusewiki disables <literal> tags for security reasons.
4870 If user wants similar behavior in pandoc, RawBlocks and RawInlines
4871 can be removed or replaced with filters.
4872 + Remove space prefix from `<literal>` tag contents.
4873 + Do not consume whitespace while looking for closing end tag.
4874 + Convert alphabetical list markers to decimal in round-trip test.
4875 Alphabetical lists are an addition of Text::Amuse.
4876 They are not present in Emacs Muse and can be ambiguous
4877 when list starts with "i.", "c." etc.
4878 + Allow `<quote>` and other tags to be indented.
4879 + Allow single colon in definition list term.
4880 + Fix parsing of verse in lists.
4881 + Improved parsing efficiency. Avoid `parseFromString`.
4882 Lists are parsed in linear instead of exponential time now.
4883 + Replace ParserState with MuseState.
4884 + Prioritize lists with roman numerals over alphabetical lists.
4885 This is to make sure "i." starts a roman numbered list,
4886 instead of a list with letter "i" (followed by "j", "k", ...").
4887 + Fix directive parsing.
4888 + Parse definition lists with multiple descriptions.
4889 + Parse next list item before parsing more item contents.
4890 + Fixed a bug: headers did not terminate lists.
4891 + Move indentation parsing from `definitionListItem` to `definitionList`.
4892 + Paragraph indentation does not indicate nested quote.
4893 Muse allows indentation to indicate quotation or alignment,
4894 but only on the top level, not within a <quote> or list.
4895 + Require that block tags are on separate lines.
4896 Text::Amuse already explicitly requires it anyway.
4897 + Fix matching of closing inline tags.
4898 + Various internal changes.
4899 + Fix parsing of nested definition lists.
4900 + Require only one space for nested definition list indentation.
4901 + Do not remove trailing whitespace from `<code>`.
4902 + Fix parsing of trailing whitespace. Newline after whitespace now
4903 results in softbreak instead of space.
4905 * Docx reader (Jesse Rosenthal, except where noted):
4907 + Handle nested sdt tags (#4415).
4908 + Don't look up dependant run styles if `+styles` is enabled.
4909 + Move pandoc inline styling inside custom-style span.
4910 + Read custom styles (#1843). This will read all paragraph and
4911 character classes as divs and spans, respectively. Dependent styles
4912 will still be resolved, but will be wrapped with appropriate style
4913 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
4914 This can be used in conjunction with the `custom-style` feature in the
4915 docx writer for a pandoc-docx editing workflow. Users can convert from
4916 an input docx, reading the custom-styles, and then use that same input
4917 docx file as a reference-doc for producing an output docx file. Styles
4918 will be maintained across the conversion, even if pandoc doesn't
4920 + Small change to Fields hyperlink parser. Previously, unquoted string
4921 required a space at the end of the line (and consumed it). Now we
4922 either take a space (and don't consume it), or end of input.
4923 + Pick table width from the longest row or header (Francesco Occhipinti,
4926 * Muse writer (Alexander Krotov):
4928 + Change verse markup: `> ` instead of `<verse>` tag.
4929 + Remove empty strings during inline normalization.
4930 + Don't indent nested definition lists.
4931 + Use unicode quotes for quoted text.
4932 + Write image width specified in percent in Text::Amuse mode.
4933 + Don't wrap displayMath into `<verse>`.
4934 + Escape nonbreaking space (`~~`).
4935 + Join code with different attributes during normalization.
4936 + Indent lists inside Div.
4937 + Support definitions with multiple descriptions.
4939 * Powerpoint writer (Jesse Rosenthal):
4941 + Use table styles This will use the default table style in the
4942 reference-doc file. As a result they will be easier when using
4943 in a template, and match the color scheme.
4944 + Remove empty slides. Because of the way that slides were split, these
4945 could be accidentally produced by comments after images. When animations
4946 are added, there will be a way to add an empty slide with either
4947 incremental lists or pauses.
4948 + Implement syntax highlighting. Note that background colors can't
4949 be implemented in PowerPoint, so highlighting styles that require
4950 these will be incomplete.
4951 + New test framework for pptx. We now compare the output of the
4952 Powerpoint writer with files that we know to (a) not be corrupt,
4953 and (b) to show the desired output behavior (details below).
4954 + Add `notesMaster` to `presentation.xml` if necessary.
4955 + Ignore links and (end)notes in speaker notes.
4956 + Output speaker notes.
4957 + Read speaker note templates conditionally. If there are speaker
4958 notes in the presentation, we read in the notesMasters templates
4959 from the reference pptx file.
4960 + Fix deletion track changes (#4303, Jesse Rosenthal).
4962 * Markdown writer: properly escape @ to avoid capture as citation
4967 + Put hypertarget inside figure environment (#4388).
4968 This works around a problem with the endfloat package and
4969 makes pandoc's output compatible with it.
4970 + Fix image height with percentage (#4389). This previously caused
4971 the image to be resized to a percentage of textwidth, rather than
4974 * ConTeXt writer (Henri Menke):
4976 + New section syntax and support `--section-divs` (#2609).
4977 `\section[my-header]{My Header}` ->
4978 `\section[title={My Header},reference={my-header}]`.
4979 The ConTeXt writer now supports the `--section-divs` option to
4980 write sections in the fenced style, with `\startsection` and
4982 + xtables: correct wrong usage of caption (Henri Menke).
4986 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
4987 + Use new golden framework (Jesse Rosenthal).
4988 + Make more deterministic to facilitate testing (Jesse Rosenthal).
4989 - `getUniqueId` now calls to the state to get an incremented digit,
4990 instead of calling to P.uniqueHash.
4991 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
4992 seed (1848), so our randoms should be the same each time.
4993 + Fix ids in comment writing (Jesse Rosenthal). Comments from
4994 `--track-changes=all` were producing corrupt docx, because the
4995 writer was trying to get id from the `(ID,_,_)` field of
4996 the attributes, and ignoring the "id" entry in the key-value pairs. We
4999 * Ms writer: Added papersize variable.
5003 + Use `height` instead of `depth` for images (#4331).
5004 + Ensure that id prefix is always used.
5005 + Don't emit `role` attribute; that was a leftover from the
5007 + Use 'xml:id', not 'id' attribute (#4371).
5011 + Do not output implicit heading IDs (#4363, Alexander
5012 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
5016 + Remove `blockToRST'` moving its logic into `fixBlocks`
5017 (Francesco Occhipinti).
5018 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
5020 * RST template: remove definition of 'math' role as raw.
5021 This used to be needed prior to v 0.8 of docutils, but
5022 now math support is built-in.
5024 * Slides: Use divs to set incremental/non-incremental (#4381,
5025 Jesse Rosenthal). The old method (list inside blockquote) still
5026 works, but we are encouraging the use of divs with class
5027 `incremental` or `nonincremental`.
5029 * Text.Pandoc.ImageSize:
5031 + Make image size detection for PDFs more robust (#4322).
5032 + Determine image size for PDFs (#4322).
5033 + EMF Image size support (#4375, Andrew Pritchard).
5035 * Text.Pandoc.Extensions:
5037 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
5038 the docx reader (defaulting to off) to read pargraph and character
5039 styles not understood by pandoc (as divs and spans, respectively).
5040 + Made `Ext_raw_html` default for `commonmark` format.
5042 * Text.Pandoc.Parsing:
5044 + Export `manyUntil` (Alexander Krotov, API change).
5045 + Export improved `sepBy1` (Alexander Krotov).
5046 + Export list marker parsers: `upperRoman`, `lowerRoman`,
5047 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
5049 * Tests/Lua: fix tests on windows (Albert Krewinkel).
5051 * Lua: register script name in global variable (#4393). The name of the Lua
5052 script which is executed is made available in the global Lua variable
5053 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
5055 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
5056 There is very little pptx-specific in these tests, so we abstract out
5057 the basic testing function so it can be used for docx as well. This
5058 should allow us to catch some errors in the docx writer that slipped
5059 by the roundtrip testing.
5061 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
5062 functions used to construct AST element values are stored in the Lua
5063 registry for quicker access. Getting a value from the registry is much
5064 faster than getting a global value (partly to idiosyncrasies of hslua);
5065 this change results in a considerable performance boost.
5069 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
5070 + `doc/lua-filters.md`: document global vars set for filters
5072 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
5073 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
5074 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
5075 Rosenthal). Blockquoted lists are still described, but fenced divs are
5076 presented in preference.
5077 + MANUAL.txt: document header and footer variables (newmana).
5078 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
5079 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
5081 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
5083 * Use latest texmath.
5085 * Use latest pandoc-citeproc.
5087 * Allow exceptions 0.9.
5089 * Require aeson-pretty 0.8.5 (#4394).
5091 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
5093 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
5095 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
5097 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
5100## pandoc 2.1.1 (2018-01-18)
5104 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
5105 blank line. See lierdakil/pandoc-crossref#160.
5106 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
5107 The change both improves performance and fixes a regression whereby
5108 normal citations inside inline notes and figure captions were not
5113 + Better handling for headers with an anchor (#4240). Instead of creating a
5114 Div containing the header, we put the id directly on the header.
5115 This way header promotion will work properly.
5116 + Add aligned environment when needed in math (#4254). `rst2latex.py`
5117 uses an `align*` environment for math in `.. math::` blocks, so this
5118 math may contain line breaks. If it does, we put the math in an
5119 `aligned` environment to simulate `rst2latex.py`'s behavior.
5123 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
5127 + Advance source position at end of stream.
5128 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
5129 extension is set (#4246). This reverts to earlier behavior and is
5130 probably safer on the whole, since some macros only modify things in
5131 included packages, which pandoc's macro expansion can't modify.
5132 + Fixed pos calculation in tokenizing escaped space.
5133 + Allow macro definitions inside macros (#4253). Previously we went into
5134 an infinite loop with
5136 \newcommand{\noop}[1]{#1}
5137 \noop{\newcommand{\foo}[1]{#1}}
5140 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
5141 widths for the body were different from widths for the header in some
5144 * Docx reader (Jesse Rosenthal):
5146 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
5147 hyperlink found in older versions of word. The changes introduced for
5148 this, though, create a framework for parsing further fields in MS Word
5149 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
5150 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
5151 contains a simple parsec parser. At the moment, only simple hyperlink
5152 fields are accepted, but that can be extended in the future.
5154 * Muse reader (Alexander Krotov):
5156 + Parse `~~` as non-breaking space in Text::Amuse mode.
5157 + Refactor list parsing.
5159 * Powerpoint writer (Jesse Rosenthal):
5161 + Change reference to `notesSlide` to `endNotesSlide`.
5162 + Move image sizing into `picProps`.
5163 + Improve table placement.
5164 + Make our own `_rels/.rels` file.
5165 + Import reference-doc images properly.
5166 + Move `Presentation.hs` out of `PandocMonad`.
5167 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
5168 defines the Presentation datatype and goes Pandoc->Presentation;
5169 T.P.W.Pandoc.Output goes Presentation->Archive.
5170 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
5171 + Avoid overlapping blocks in column output.
5172 + Position images correctly in two-column layout.
5173 + Make content shape retrieval environment-aware.
5174 + Improve image handling. We now determine image and caption placement
5175 by getting the dimensions of the content box in a given layout.
5176 This allows for images to be correctly sized and positioned in a
5177 different template. Note that images without captions and headers are
5178 no longer full-screened. We can't do this dependably in different
5179 layouts, because we don't know where the header is (it could be to
5180 the side of the content, for example).
5181 + Read presentation size from reference file. Our presentation size is
5182 now dependent on the reference/template file we use.
5183 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
5184 subheaders will be printed in bold and given a bit of extra space
5185 before them. Note that at the moment, no distinction is made between
5186 levels of headers above the slide header, though that can be changed.
5187 + Check for required files. Since we now import from reference/dist
5188 file by glob, we need to make sure that we're getting the files we
5189 need to make a non-corrupt Powerpoint. This performs that check.
5190 + Improve templating using `--reference-doc`. Templating should work
5191 much more reliably now.
5192 + Include Notes slide in TOC.
5193 + Set notes slide header to slide-level.
5194 + Add table of contents. This is triggered by the `--toc` flag. Note
5195 that in a long slide deck this risks overrunning the text box. The user
5196 can address this by setting `--toc-depth=1`.
5197 + Set notes slide number correctly.
5198 + Clean up adding metadata slide. We want to count the slide numbers
5199 correctly if it's in there.
5200 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
5201 an anchor link. In powerpoint these are links to slides, so we keep
5202 track of a map relating anchors to the slides they occur on.
5203 + Make the slide number available to the blocks. For anchors,
5204 block-processing functions need to know what slide number
5205 they're in. We make the `envCurSlideId` available to blocks.
5206 + Move `curSlideId` to environment.
5207 + Allow setting `toc-title` in metadata.
5208 + Link notes to endnotes slide.
5212 + Fix cell width calculation (#4265). Previously we could get
5213 ever-lengthening cell widths when a table was run repeatedly through
5214 `pandoc -f markdown -t markdown`.
5218 + Escape `&` in lstinline (Robert Schütz).
5222 + Use xtables instead of Tables (#4223, Henri Menke).
5223 Default to xtables for context output. Natural Tables are used
5224 if the new `ntb` extension is set.
5228 + Fixed footnote backlinks with `--id-prefix` (#4235).
5230 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
5233 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
5234 (Jesse Rosenthal, API change).
5236 * Lua filters (Albert Krewinkel):
5238 + Make `PANDOC_READER_OPTIONS` available.
5239 The options which were used to read the document are made available to
5240 Lua filters via the `PANDOC_READER_OPTIONS` global.
5241 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
5242 on a Pandoc document.
5243 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
5244 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
5245 + Improve error messages. Provide more context about the task
5246 which caused an error.
5248 * data/pandoc.lua (Albert Krewinkel):
5250 + Accept singleton inline as a list. Every constructor which accepts a
5251 list of inlines now also accepts a single inline element for
5253 + Accept single block as singleton list. Every constructor which accepts
5254 a list of blocks now also accepts a single block element for
5255 convenience. Furthermore, strings are accepted as shorthand for
5256 `{pandoc.Str "text"}` in constructors.
5257 + Add attr, listAttributes accessors. Elements with
5258 attributes got an additional `attr` accessor. Attributes were
5259 accessible only via the `identifier`, `classes`, and `attributes`,
5260 which was in conflict with the documentation, which indirectly states
5261 that such elements have the an `attr` property.
5262 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
5263 module is closely tied to the pandoc version, which is available via
5265 + Fix access to Attr components. Accessing an Attr value (e.g.,
5266 ` Attr().classes`) was broken; the more common case of accessing it via
5267 an Inline or Block element was unaffected by this.
5269 * Move `metaValueToInlines` to from Docx writer to
5270 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
5275 + Clarify otherlangs in LaTeX (#4072).
5276 + Clarify `latex_macros` extension.
5277 + Recommend use of `raw_attribute` extension in header includes (#4253).
5279 * Allow latest QuickCheck, tasty, criterion.
5281 * Remove custom prelude and ghc 7.8 support.
5283 * Reduce compiler noise (exact paths for compiled modules).
5285## pandoc 2.1 (2018-01-07)
5287 * Allow filters and lua filters to be interspersed (#4196). Previously
5288 we ran all lua filters before JSON filters. Now we run filters in
5289 the order they are presented on the command line, whether lua or JSON.
5290 There are two incompatible API changes: The type of `applyFilters`
5291 has changed, and `applyLuaFilters` has been removed. `Filter` is
5294 * Use latest skylighting and omit the `missingIncludes` check, fixing
5295 a major performance regression in earlier releases of the 2.x series
5296 (#4226). Behavior change: If you use a custom syntax definition that
5297 refers to a syntax you haven't loaded, pandoc will now complain when
5298 it is highlighting the text, rather than doing a check at the start.
5299 This change dramatically speeds up invocations of pandoc on short
5302 * Text.Pandoc.Class: make `FileTree` opaque (don't export
5303 `FileTree` constructor). This forces users to interact with it using
5304 `insertInFileTree` and `getFileInfo`, which normalize file names.
5308 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
5309 direct, avoiding `parseFromString`. And it performs significantly
5310 better; unfortunately, parsing time still increases exponentially
5312 + Avoid parsing raw tex unless `\` + letter seen. This seems to
5313 help with the performance problem, #4216.
5315 * LaTeX reader: Simplified a check for raw tex command.
5317 * Muse reader (Alexander Krotov):
5319 + Enable round trip test (#4107).
5320 + Automatically translate `#cover` into `#cover-image`.
5321 Amusewiki uses #cover directive to specify cover image.
5323 * Docx reader (Jesse Rosenthal):
5325 + Allow for insertion/deletion of paragraphs (#3927).
5326 If the paragraph has a deleted or inserted paragraph break (depending
5327 on the track-changes setting) we hold onto it until the next
5328 paragraph. This takes care of accept and reject. For this we introduce
5329 a new state which holds the ils from the previous para if necessary.
5330 For `--track-changes=all`, we add an empty span with class
5331 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
5332 prior to the break to be inserted or deleted.
5333 + Remove unused anchors (#3679). Docx produces a lot of anchors with
5334 nothing pointing to them---we now remove these to produce cleaner
5335 output. Note that this has to occur at the end of the process
5336 because it has to follow link/anchor rewriting.
5337 + Read multiple children of `w:sdtContents`.
5338 + Combine adjacent anchors. There isn't any reason to have numerous
5339 anchors in the same place, since we can't maintain docx's
5340 non-nesting overlapping. So we reduce to a single anchor.
5343 * Muse writer (Alexander Krotov): don't escape URIs from AST
5347 + Removed redundant subtitle in title (Sebastian Talmon).
5348 + `firstRow` table definition compatibility for Word 2016 (Sebastian
5349 Talmon). Word 2016 seems to use a default value of "1" for table
5350 headers, if there is no firstRow definition (although a default
5351 value of 0 is documented), so all tables get the first Row formatted
5352 as header. Setting the parameter to 0 if the table has no header
5353 row fixes this for Word 2016
5354 + Fix custom styles with spaces in the name (#3290).
5356 * Powerpoint writer (Jesse Rosenthal):
5358 + Ignore Notes div for parity with other slide outputs.
5359 + Set default slidelevel correctly. We had previously defaulted to
5360 slideLevel 2. Now we use the correct behavior of defaulting to the
5361 highest level header followed by content. We change an expected test
5362 result to match this behavior.
5363 + Split blocks correctly for linked images.
5364 + Combine adjacent runs.
5365 + Make inline code inherit code size. Previously (a) the code size
5366 wasn't set when we force size, and (b) the properties was set from
5367 the default, instead of inheriting.
5368 + Simplify `replaceNamedChildren` function.
5369 + Allow linked images. The following markdown:
5370 `[](http://www.example.com)`
5371 will now produce a linked image in the resulting PowerPoint file.
5372 + Fix error with empty table cell. We require an empty `<a:p>` tag,
5373 even if the cell contains no paragraphs---otherwise PowerPoint
5374 complains of corruption.
5375 + Implement two-column slides. This uses the columns/column div
5376 format described in the pandoc manual. At the moment, only two
5377 columns (half the screen each) are allowed. Custom widths are not
5381 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
5383 * Lua filters (Albert Krewinkel):
5385 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
5386 + The current pandoc-types version is made available to Lua programs in
5387 the global `PANDOC_API_VERSION`. It contains the version as a list of
5389 + The pandoc version available as a global `PANDOC_VERSION` (a list
5391 + `data/pandoc.lua`: make `Attr` an `AstElement`.
5392 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
5393 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
5394 not set a metatable on the returned value, which made it difficult
5395 to amend objects of these types with new behavior. They are now
5396 subtypes of AstElement, meaning that all their objects can gain
5397 new features when a method is added to the behavior object
5398 (e.g., `pandoc.Pandoc.behavior`).
5399 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
5400 between a type and the behavioral properties of an instance of that
5401 type. The behavior of a type (and all its subtypes) can now be
5402 amended by adding methods to that types `behavior` object, without
5403 exposing the type objects internals. E.g.:
5405 pandoc.Inline.behavior.frob = function () print'42' end
5406 local str = pandoc.Str'hello'
5407 str.frob() -- outputs '42'
5409 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
5410 of a given type (e.g., all inline elements) was difficult, as the
5411 table used to lookup unknown methods would be reset every time a
5412 new element of that type was created, preventing recursive property
5413 lookup. This is was changed in that all methods and attributes of
5414 supertypes are now available to their subtypes.
5415 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
5416 fields were named like the Haskell fields, not like the documented,
5417 shorter version. The names are changed to match the documentation
5418 and Citations are given a shared metatable to enable simple
5420 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
5421 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
5422 difficult to handle failures while getting lists or a Map from Lua.
5423 A bug in pandoc, which made it necessary to always pass a tag when
5424 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
5425 module's constructor functions for these values is now optional
5426 (if still recommended).
5427 + Stop exporting `pushPandocModule` (API change). The introduction
5428 of `runPandocLua` renders direct use of this function obsolete.
5429 + Update generation of module docs for lua filters.
5430 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
5431 MacFarlane). I'm sure this was intended in the first place,
5432 but currently only `Meta` is supported.
5434 * Improve benchmarks.
5436 + Set the default extensions properly.
5437 + Improve benchmark argument parsing. You can now say
5438 `make bench BENCHARGS="markdown latex reader"` and both the
5439 markdown and latex readers will be benchmarked.
5441 * MANUAL.txt simplify and add more structure (Mauro Bieg).
5443 * Generate README.md from template and MANUAL.txt.
5444 `make README.md` will generate the README.md after changes
5445 to MANUAL.txt have been made.
5447 * Update copyright notices to include 2018 (Albert Krewinkel).
5449## pandoc 2.0.6 (2017-12-28)
5451 * Added `jats` as an input format.
5453 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
5454 change) (Hamish Mackenzie).
5455 + Improved citation handling in JATS reader. JATS citations
5456 are now converted to pandoc citations, and JATS ref-lists
5457 are converted into a `references` field in metadata, suitable
5458 for use with pandoc-citeproc. Thus a JATS article with embedded
5459 bibliographic information can be processed with pandoc and
5460 pandoc-citeproc to produce a formatted bibliography.
5462 * Allow `--list-extensions` to take an optional FORMAT argument.
5463 This lists the extensions set by default for the selected FORMAT.
5464 The extensions are now alphabetized, and the `+` or `-`
5465 indicating the default setting comes before, rather than after,
5470 + Preserve original whitespace between blocks.
5471 + Recognize `\placeformula` as context.
5472 + Be pickier about table captions. A caption starts with a `:` which
5473 can't be followed by punctuation. Otherwise we can falsely interpret
5474 the start of a fenced div, or even a table header line like
5475 `:--:|:--:`, as a caption.
5476 + Always use four space rule for example lists. It would be awkward
5477 to indent example list contents to the first non-space character after
5478 the label, since example list labels are often long. Thanks to
5479 Bernhard Fisseni for the suggestion.
5480 + Improve raw tex parsing. Note that the Markdown reader is also
5481 affected by the `latex_macros` extension changes described below
5482 under the LaTeX reader.
5486 + `latex_macros` extension changes (#4179). Don't pass through macro
5487 definitions themselves when `latex_macros` is set. The macros
5488 have already been applied. If `latex_macros` is enabled, then
5489 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
5490 a macro definition, and will update pandoc's internal macro map
5491 accordingly, but the empty string will be returned.
5492 + Export `tokenize`, `untokenize` (API change).
5493 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
5494 + Refactored `inlineCommand`.
5495 + Fix bug in tokenizer. Material following `^^` was
5496 dropped if it wasn't a character escape. This only affected
5497 invalid LaTeX, so we didn't see it in the wild, but it appeared
5498 in a QuickCheck test failure.
5499 + Fix regression in LateX tokenization (#4159). This mainly affects the
5500 Markdown reader when parsing raw LaTeX with escaped spaces.
5501 + Add tests of LaTeX tokenizer.
5502 + Support `\foreignlanguage` from babel.
5503 + Be more tolerant of `&` character (#4208). This allows us to parse
5504 unknown tabular environments as raw LaTeX.
5506 * Muse reader (Alexander Krotov):
5508 + Parse anchors immediately after headings as IDs.
5509 + Require that note references does not start with 0.
5510 + Parse empty comments correctly.
5512 * Org reader (Albert Krewinkel):
5514 + Fix asterisks-related parsing error (#4180).
5515 + Support minlevel option for includes (#4154). The level of headers
5516 in included files can be shifted to a higher level by specifying a
5517 minimum header level via the `:minlevel` parameter. E.g.
5518 `#+include: "tour.org" :minlevel 1` will shift the headers in
5519 tour.org such that the topmost headers become level 1 headers.
5520 + Break-up org reader test file into multiple modules.
5524 + Enable raw HTML and other extensions by default for notes
5525 (#4164). This fixes a regression in 2.0. Note that extensions can
5526 now be individually disabled, e.g. `-f opml-smart-raw_html`.
5530 + Allow empty list items (#4193).
5531 + More accurate parsing of references (#4156). Previously we erroneously
5532 included the enclosing backticks in a reference ID (#4156). This
5533 change also disables interpretation of syntax inside references, as
5534 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
5538 + Continue lists after interruption (#4025, Jesse Rosenthal).
5539 Docx expects that lists will continue where they left off after an
5540 interruption and introduces a new id if a list is starting again. So
5541 we keep track of the state of lists and use them to define a "start"
5542 attribute, if necessary.
5543 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
5544 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
5549 + Don't linkify table of contents.
5553 + Fix anchors for headers (#4188). We were missing an `_`.
5555 * PowerPoint writer (Jesse Rosenthal):
5557 + Treat lists inside BlockQuotes as lists. We don't yet produce
5558 incremental lists in PowerPoint, but we should at least treat lists
5559 inside BlockQuotes as lists, for compatibility with other slide formats.
5560 + Add ability to force size. This replaces the more specific
5561 `blockQuote runProp`, which only affected the size of blockquotes. We
5562 can use this for notes, etc.
5563 + Implement notes. This currently prints all notes on a final slide.
5564 Note that at the moment, there is a danger of text overflowing the
5565 note slide, since there is no logic for adding further slides.
5566 + Implement basic definition list functionality to PowerPoint writer.
5567 + Don't look for default template file for Powerpoint (#4181).
5568 + Add pptx to isTextFormat list. This is used to check standalone
5569 and not writing to the terminal.
5570 + Obey slide level option (Jesse Rosenthal).
5575 + Ensure that `distArchive` is the one that comes with pandoc
5576 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
5577 dir) would be used instead, and this could cause problems because a
5578 user-modified docx sometimes lacks vital sections that we count
5579 on the `distArchive` to supply.
5583 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
5584 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
5585 Alexander Krotov). Otherwise they can be interpreted as footnote
5588 * Muse writer (Alexander Krotov):
5590 + Don't wrap note references to the next line (#4172).
5594 + Use br elements in line blocks instead of relying on CSS
5595 (#4162). HTML-based templates have had the custom CSS for
5596 `div.line-block` removed. Those maintaining custom templates will want
5597 to remove this too. We still enclose line blocks in a div with class
5602 + Use `\renewcommand` for `\textlatin` with babel (#4161).
5603 This avoids a clash with a deprecated `\textlatin` command defined
5605 + Allow fragile=singleslide attribute in beamer slides (#4169).
5606 + Use `\endhead` after `\toprule` in headerless tables (#4207).
5610 + Add cover image specified by `cover-image` meta (Alexander Krotov,
5613 * JATS writer (Hamish Mackenzie):
5615 + Support writing `<fig>` and `<table-wrap>` elements
5616 with `<title>` and `<caption>` inside them by using Divs with class set
5617 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
5618 title is included as a Heading so the constraint on where Heading can
5619 occur is also relaxed.
5620 + Leave out empty alt attributes on links.
5621 + Deduplicate image mime type code.
5622 + Make `<p>` optional in `<td>` and `<th>` (#4178).
5623 + Self closing tags for empty xref (#4187).
5624 + Improve support for code language.
5628 + Use init file to setup Lua interpreter (Albert Krewinkel).
5629 The same init file (`data/init`) that is used to setup the Lua
5630 interpreter for Lua filters is also used to setup the interpreter of
5632 + Define instances for newtype wrapper (Albert Krewinkel). The custom
5633 writer used its own `ToLuaStack` instance definitions, which made
5634 it difficult to share code with Lua filters, as this could result
5635 in conflicting instances. A `Stringify` wrapper is introduced to
5637 + Added tests for custom writer.
5638 + Fixed definition lists and tables in `data/sample.lua`.
5640 * Fixed regression: when target is PDF, writer extensions were being
5641 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
5642 did not work properly.
5644 * Lua modules (Albert Krewinkel):
5646 + Add `pandoc.utils` module, to hold utility functions.
5647 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
5648 define the `pandoc` lua module.
5649 + Make a Haskell module for each Lua module. Move definitions for the
5650 `pandoc.mediabag` modules to a separate Haskell module.
5651 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
5652 + Add function `pandoc.utils.hierarchicalize` (convert list of
5653 Pandoc blocks into (hierarchical) list of Elements).
5654 + Add function `pandoc.utils.normalize_date` (parses a date and
5655 converts it (if possible) to "YYYY-MM-DD" format).
5656 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
5657 of numbers below 4000 into roman numerals).
5658 + Add function `pandoc.utils.stringify` (converts any AST element
5659 to a string with formatting removed).
5660 + `data/init.lua`: load `pandoc.utils` by default
5661 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
5662 utility functions are converted from hybrid lua/haskell functions
5663 into full Haskell functions. This avoids the need for intermediate
5664 `_pipe`/`_read` helper functions, which have dropped.
5665 + pandoc.lua: re-add missing MetaMap function. This was a bug
5666 introduced in version 2.0.4.
5668 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
5669 a pure way to insert an ersatz file into a `FileTree`. In addition, we
5670 normalize paths both on insertion and on lookup.
5672 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
5674 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
5676 * Text.Pandoc.Extensions: Alphabetical order constructors for
5677 `Extension`. This makes them appear in order in `--list-extensions`.
5679 * Allow lenient decoding of latex error logs, which are not always
5680 properly UTF8-encoded (#4200).
5682 * Update latex template to work with recent versions of beamer.
5683 The old template produced numbered sections with some recent
5684 versions of beamer. Thanks to Thomas Hodgson.
5686 * Updated reference.docx (#4175). Instead of just "Hello, world", the
5687 document now contains exemplars of most of the styles that have an
5688 effect on pandoc documents. This makes it easier to see the effect
5691 * Removed `default.theme` data file (#4096). It is no longer needed now
5692 that we have `--print-highlight-style`.
5694 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
5695 We still need this for the alpine static linux build, since
5696 we don't have ghc 8.2.2 for that yet.
5698 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
5699 can put flag settings for pandoc-citeproc there.
5701 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
5702 make releases easier.
5706 + Add note on what formats have `+smart` by default.
5707 + Use native syntax for custom-style (#4174, Mauro Bieg).
5708 + Introduce dedicated Extensions section, since some extensions
5709 affect formats other than markdown (Mauro Bieg, #4204).
5710 + Clarify default html output for `--section-divs` (Richard Edwards).
5712 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
5713 Closes jgm/pandoc-website#16.
5715 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
5717## pandoc 2.0.5 (2017-12-12)
5719 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
5720 generated with `--print-highlight-style` (#4133). Improve JSON
5721 serialization of styles.
5723 * Fix CSS issues involving line numbers (#4128).
5724 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
5725 Highlighting CSS no longer sets a generic color for pre and code; we only
5726 set these for class `sourceCode`.
5728 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
5730 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
5731 It works following the standard Pandoc conventions for making other
5732 sorts of slides. Caveats:
5734 + Syntax highlighting is not yet implemented. (This is difficult
5735 because there are no character classes in Powerpoint.)
5736 + Footnotes and Definition lists are not yet implemented. (Notes will
5737 usually take the form of a final slide.
5738 + Image placement and auto-resizing has a few glitches.
5739 + Reference powerpoint files don't work dependably from the command
5740 line. This will be implemented, but at the moment users are advised
5741 to change themes from within Powerpoint.
5743 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
5744 This is for functions used by both Powerpoint and Docx writers.
5746 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
5748 * Add `empty_paragraphs` extension.
5750 + Deprecate `--strip-empty-paragraphs` option. Instead we now
5751 use an `empty_paragraphs` extension that can be enabled on
5752 the reader or writer. By default, disabled.
5753 + Add `Ext_empty_paragraphs` constructor to `Extension`.
5754 + Revert "Docx reader: don't strip out empty paragraphs."
5755 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
5756 + Implement `empty_paragraphs` extension in docx reader and writer,
5757 opendocument writer, html reader and writer.
5758 + Add tests for `empty_paragraphs` extension.
5762 + Don't parse native div as table caption (#4119).
5763 + Improved computation of column widths in pipe tables.
5764 Pipe tables with lines longer than the text width (as set
5765 by `--columns`) are now scaled to text width, with the relative
5766 widths of columns determined by the ratios between the
5767 header lines. Previously we computed column widths using
5768 the ratio of header line lengths to column width, so that
5769 tables with narrow header lines were extremely thin, which
5770 was very rarely the desired result.
5772 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
5773 as long as it's not followed by a blank line. This has been fixed at the
5776 * Muse reader (Alexander Krotov):
5778 + Add test for `#disable-tables` directive in Emacs mode.
5779 + Don't allow emphasis to be preceded by letter.
5780 + Add underline support in Emacs Muse mode..
5781 + Support multiline directives in Amusewiki mode
5783 * Man writer: omit internal links (#4136). That is, just print the link
5784 text without the URL.
5786 * Markdown reader: accept processing instructions as raw HTML (#4125).
5788 * Lua filters (Albert Krewinkel):
5790 + Use script to initialize the interpreter. The file `init.lua` is
5791 used to initialize the Lua interpreter which is used in Lua filters.
5792 This gives users the option to require libraries which they want to
5793 use in all of their filters, and to extend default modules.
5794 + Fix package loading for Lua 5.1. The list of package searchers is
5795 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
5796 in Lua 5.2 and later.
5797 + Refactor lua module handling. The integration with Lua's package/module
5798 system is improved: A pandoc-specific package searcher is prepended to
5799 the searchers in `package.searchers`. The modules `pandoc` and
5800 `pandoc.mediabag` can now be loaded via `require`.
5801 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
5802 function which makes using Haskell functions as package loaders much
5805 * reveal.js template: add title-slide identifier to title slide (#4120).
5806 This allows it to be styled more easily.
5808 * LaTeX template: Added support for `pagestyle` variable (#4135,
5811 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
5815## pandoc 2.0.4 (2017-12-03)
5817 * Add `--print-highlight-style` option. This generates a JSON version
5818 of a highlighting style, which can be saved as a `.theme` file, modified,
5819 and used with `--highlight-style` (#4106, #4096).
5821 * Add `--strip-empty-paragraphs` option. This works for any input format.
5822 It is primarily intended for use with docx and odt documents where
5823 empty paragraphs have been used for inter-paragraph spaces.
5825 * Support `--webtex` for `gfm` output.
5827 * Recognize `.muse` file extension.
5829 * Support beamer `\alert` in LaTeX reader. Closes #4091.
5831 * Docx reader: don't strip out empty paragraphs (#2252).
5832 Users who have a conversion pipeline from docx may want to consider adding
5833 `--strip-empty-paragraphs` to the command line.
5835 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
5837 * Muse reader (Alexander Krotov):
5839 + Parse markup in definition list terms.
5840 + Allow definition to end with EOF.
5841 + Make code blocks round trip.
5842 + Drop common space prefix from list items.
5843 + Add partial round trip test.
5844 + Don't interpret XML entities.
5846 + Parse `~~` as non-breaking space in Emacs mode.
5847 + Correctly remove indentation from notes. Exactly one space is
5848 required and considered to be part of the marker.
5849 + Allow list items to be empty.
5850 + Add ordered list test.
5851 + Add more multiline definition tests.
5852 + Don't allow blockquotes within lists.
5853 + Fix reading of multiline definitions.
5854 + Add inline `<literal>` support.
5855 + Concatenate inlines of the same type
5857 * Docx writer: allow empty paragraphs (#2252).
5859 * CommonMark/gfm writer:
5861 + Use raw html for native divs/spans (#4113). This allows a pandoc
5862 markdown native div or span to be rendered in gfm using raw html tags.
5863 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
5864 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
5866 * Muse writer (Alexander Krotov):
5868 + Test that inline math conversion result is normalized.
5869 Without normalization this test produced
5870 `<em>a</em><em>b</em><em>c</em>`.
5871 + Improve inline list normalization and move to writer.
5872 + Escape hash symbol.
5873 + Escape `----` to avoid accidental horizontal rules.
5874 + Escape only `</code>` inside code tag.
5875 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
5879 + Allow specifying just width or height for image size.
5880 Previously both needed to be specified (unless the image was
5881 being resized to be smaller than its original size).
5882 If height but not width is specified, we now set width to
5883 textwidth. If width but not height is specified, we now set
5884 height to textheight. Since we have `keepaspectratio`, this
5885 yields the desired result.
5886 + Escape `~` and `_` in code with `--listings` (#4111).
5888 * HTML writer: export `tagWithAttributes`. This is a helper allowing
5889 other writers to create single HTML tags.
5891 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
5892 converting the case as needed in LaTeX and ConTeXt writers.
5894 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
5895 so that it no longer produces empty `Para`'s as an artifact.
5897 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
5898 This gives us automatic normalization, so we don't get
5899 for example two consecutive Spaces.
5901 * Include default CSS for 'underline' class in HTML-based templates.
5903 * revealjs template: add `tex2jax` configuration for the
5904 math plugin. With the next release of reveal.js, this will
5905 fix the problem of `$`s outside of math contexts being
5906 interpreted as math delimiters (#4027).
5908 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
5910 + Add basic lua List module (#4099, #4081). The List module is
5911 automatically loaded, but not assigned to a global variable. It can be
5912 included in filters by calling `List = require 'List'`. Lists of blocks,
5913 lists of inlines, and lists of classes are now given `List` as a metatable,
5914 making working with them more convenient. E.g., it is now possible to
5915 concatenate lists of inlines using Lua's concatenation operator `..`
5916 (requires at least one of the operants to have `List` as a metatable):
5918 function Emph (emph)
5919 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
5920 return pandoc.Span(emph.content .. s)
5923 The `List` metatable is assigned to the tables which get passed to
5924 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
5925 enables the use of the resulting objects as lists.
5926 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
5927 Pandoc and Meta elements are now pushed by calling the respective
5928 constructor functions of the pandoc Lua module. This makes serialization
5929 consistent with the way blocks and inlines are pushed to lua and allows
5930 to use List methods with the `blocks` value.
5931 + Add documentation for pandoc.List in `lua-filters.md`.
5933 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
5934 `&` (but not a valid entity) following them (#4094, #4088).
5936 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
5937 when `numberLines` is used (#4103).
5939 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
5940 requiring a leading 0 on single-digit days.
5942 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
5945 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
5946 Previously we only mentioned `--latexmathml`, even if `-m` was
5949 * Changelog: fix description of lua filters in 2.0 release
5950 (Albert Krewinkel). Lua filters were initially run *after* conventional
5951 (JSON) filters. However, this was changed later to make it easier to deal
5952 with files in the mediabag. The changelog is updated to describe that
5953 feature of the 2.0 release correctly.
5955 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
5956 #4085). This reduces compile time and memory usage significantly.
5958 * `lua-filters.md`: Added tikz filter example.
5960 * Create alternative zip file for macOS binaries.
5962 * Create alternative zip file for Windows binaries.
5964 * Update INSTALL.md since we now provide zips for binaries.
5966 * Relax `http-types` dependency (Justus Sagemüller, #4084).
5968 * Add `epub.md`, `getting-started.md` to docs. These used to live in
5971 * Add `packages` target to Makefile.
5973 * Bump bounds for binary, http-types, tasty-hunit
5975## pandoc 2.0.3 (2017-11-20)
5977 * Lua filters: preload text module (Albert Krewinkel, #4077).
5978 The `text` module is preloaded in lua. The module contains some UTF-8
5979 aware string functions, implemented in Haskell. The module is loaded on
5982 text = require 'text'
5984 s.text = text.upper(s.text)
5988 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
5989 #4071). Attribute lists are represented as associative lists in Lua. Pure
5990 associative lists are awkward to work with. A metatable is attached to
5991 attribute lists, allowing to access and use the associative list as if
5992 the attributes were stored in as normal key-value pair in table.
5993 Note that this changes the way `pairs` works on attribute lists. Instead
5994 of producing integer keys and two-element tables, the resulting iterator
5995 function now returns the key and value of those pairs. Use `ipairs` to
5996 get the old behavior. Warning: the new iteration mechanism only works if
5997 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
5999 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
6000 This fixes a bug where pandoc would stop parsing a URI with an
6001 empty attribute: for example, `&a=&b=` wolud stop at `a`.
6002 (The uri parser tries to guess which punctuation characters
6003 are part of the URI and which might be punctuation after it.)
6005 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
6007 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
6009 + Reimplemented `isEnabled` function from `Options.hs` to accept both
6010 `ReaderOptions` and `WriterOptions`.
6011 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
6013 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
6014 behavior for `muse`. New `Ext_amuse` constructor for
6015 `Extension`. Note: this is switched on by default; for
6016 Emacs behavior, use `muse-amuse`.
6018 * Muse reader (Alexander Krotov):
6020 + Count only one space as part of list item marker.
6021 + Produce SoftBreaks on newlines. Now wrapping can be preserved
6022 with `--wrap=preserve`.
6023 + Add Text::Amuse footnote extensions. Footnote end is indicated by
6024 indentation, so footnotes can be placed anywhere in the text,
6025 not just at the end of it.
6026 + Accept Emacs Muse definition lists when `-amuse`.
6027 Emacs Muse does not require indentation.
6031 + Ensure we don't produce level 0 headers (#4076), even for chapter
6032 sections in epubs. This causes problems because writers aren't set
6034 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
6035 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
6036 `markdown` or `html` `+tex_math_single_backslash`.
6038 * MANUAL: clarify that math extensions work with HTML.
6039 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
6040 will work with HTML as well as Markdown.
6042 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
6045 * RST reader: better support for 'container' directive (#4066).
6046 Create a div, incorporate name attribute and classes.
6050 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
6051 `rr`. We now expand it like a macro.
6052 + Allow optional args for parbox (#4056).
6053 + Allow optional arguments on `\footnote` (#4062).
6055 * EPUB writer: Fixed path for cover image (#4069). It was previously
6056 `media/media/imagename`, and should have been `media/imagename`.
6058 * Markdown writer: fix bug with doubled footnotes in grid tables
6061 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
6062 Otherwise we seem to get an error; biblatex wants polyglossia
6063 language to be defined.
6065 * Added examples to lua filters documentation.
6068## pandoc 2.0.2 (2017-11-12)
6070 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
6071 `--mimetex`, `--jsmath`.
6073 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
6074 leading to invalid XML in default JATS output with pandoc-citeproc.
6076 * `lua-filters.md`: use real-world man page filter as example.
6078 * Add lua filter functions `walk_inline` and `walk_block`
6079 in the pandoc module, to apply filters inside particular
6080 inline and block elements.
6082 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
6083 into new internal module `Text.Pandoc.Lua.Filter`.
6087 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
6088 This brings our handling of them into alignment with CommonMark's.
6089 + Fix YAML metadata with "chomp" (`|-`). Previously if a
6090 YAML block under `|-` contained a blank line, pandoc would
6091 not parse it as metadata.
6093 * Removed `etc.` from abbreviations file. Often `etc.` ends a
6094 sentence, and we want the period to be treated as a
6095 sentence-ending period.
6097 * Fix regression with `--metadata` (#4054). Values specified with
6098 `--metadata` should replace a metadata value set in the document
6099 itself, rather than creating a list including a new value.
6103 + Fix EPUB OCF structure. #3720 had been improperly implemented.
6104 + Fix modified paths for raw HTML tags (src, poster, etc.)
6105 (#4050, #4055). This had not been updated for the new EPUB
6106 container layout, with a separate text/ subdirectory.
6107 + Fix image paths with empty `--epub-subdirectory`.
6109 * Miscellaneous code cleanup (Alexander Krotov).
6111 * Use pandoc-types 1.17.3, which adds `Walkable` instances
6112 for `[Block] Block` and `[Inline] Inline`.
6114 * Remove obsolete `stack.full.yaml` (#4052).
6116 * Change to using pandoc-citeproc 0.12.1 in binary packages.
6118 * Consolidate math output method documentation (#4049, Mauro Bieg).
6120 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
6122 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
6123 Haskell filters. This is easier and faster.
6125 * Improved `INSTALL.md`.
6127 * Update commands to extract deb archive on Linux (#4043, Salim B).
6130## pandoc 2.0.1.1 (2017-11-04)
6132 * Improved fix to #3989 (parsing of HTML tags containing
6133 `>` in an attribute or comment). The previous fix (in 2.0.1) only
6134 worked in certain cases.
6136 * FB2 writer (Alexander Krotov):
6138 + Add `unrecognised` genre to `<title-info>`
6139 (Alexander Krotov). XML schema requires at least one genre.
6140 + Remove `<annotation>` from `<body>`.
6142 * CommonMark writer: fix strikethrough for `gfm` (#4038).
6144 * Use texmath 0.10, which adds support for a wider range of
6145 symbols and fixes default column alignments in MathML
6148 * Highlighting fixes, using skylighting 0.4.3.2:
6151 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
6152 + Ensure that code lines don't get duplicate identifiers (#4031).
6153 The line identifiers are built using the code block's identifier
6154 as a prefix. If the code block has null identifier, we use
6157 * Added a few abbreviations to `data/abbreviations`,
6158 and sorted the list (#3984, Wandmalfarbe).
6160 * Improved support for columns in HTML writer (#4028).
6162 + Remove `width` attribute from the `div`.
6163 + Remove space between `<div class="column">` elements,
6164 since this prevents columns whose widths sum to 100%
6165 (the space takes up space).
6166 + Move as much as possible of the CSS to the template.
6167 + Ensure that all the HTML-based templates (including epub)
6168 contain the CSS for columns.
6169 + Columns default to 50% width unless they are given a width
6170 attribute. So if you want two equal-width columns, you
6171 can use a div with class `column` and no `width` attribute.
6173 * SelfContained: use `base64` for css links with media attribute (#4026).
6174 This fixes `--self-contained` with S5.
6176 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
6178 * INSTALL.md: MacOS instructions needed xar -f (adam234).
6182 + Clarify that --setext-headers doesn't affect gfm output (#4035).
6183 + Clarify what is needed to open and close a div in `fenced_divs`
6184 (#4039, Tristano Ajmone).
6185 + Removed reference to `default.beamer` in docs (#4024).
6186 Also added mention of other templates affecting PDF output
6187 with different settings.
6190## pandoc 2.0.1 (2017-10-31)
6192 * Fixed regression in parsing of HTML comments in markdown and other
6193 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
6194 The parser stopped at the first `>` character, even if it wasn't
6195 the end of the comment.
6197 * Creole reader (Sascha Wilde):
6199 + Fix some minor typos and formatting.
6200 + Add additional test on nowiki-block after para.
6201 + Fix lists with trailing white space.
6203 * LaTeX reader: handle `%` comment right after command.
6204 For example, `\emph%`.
6206 * Markdown reader: make sure fenced div closers work in lists.
6207 Previously the following failed:
6214 and you needed a blank line before the closing `:::`.
6216 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
6217 enabled, Divs will be rendered as fenced divs.
6219 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
6222 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
6223 Note: this change may require some changes in CSS rules.
6224 `footnoteRef` has become `footnote-ref`, `titleslide` has
6225 become `title-slide`, and `footnoteBack` has become `footnote-back`.
6227 * JATS writer: Properly pass through author metadata (#4020).
6229 * FB2 writer (Alexander Krotov):
6231 + Write blocks outside of `<p>` in definitions.
6232 + Make bullet lists consistent with ordered lists, repeating
6233 the marker for the outer list rather than indenting sublists,
6234 since indentation does not work in readers.
6235 + Add new style FB2 tests.
6237 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
6238 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
6241 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
6243 * Fix broken reference links in manual (Andrew Dunning, #4014)
6245 * Fixed example of slide columns structure in changelog (#4015).
6246 Also documented this feature in MANUAL.txt.
6249## pandoc 2.0.0.1 (2017-10-30)
6253 + Fixed filepaths for nonstandard epub-subdirectory values.
6254 + Ensure that epub2 is recognized as a non-text format,
6255 so that a template is used.
6256 + Don't include "prefix" attribute for ibooks for epub2.
6257 It doesn't validate.
6258 + Fix stylesheet paths; previously we had an incorrect
6259 stylesheet path for the cover page and nav page.
6263 + Insert space when needed in macro expansion (#4007).
6264 Sometimes we need to insert a space after a control sequence
6265 to prevent it merging with a following letter.
6266 + Allow unbraced arguments for macros (#4007).
6267 + Allow body of macro definition to be unbraced (#4007).
6269 * Linux package build: ensure that pandoc-citeproc is statically linked.
6271 * trypandoc: add native, ms.
6274## pandoc 2.0 (2017-10-29)
6278 * New output format `ms` (groff ms). Complete support, including
6279 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
6280 texmath's new eqn writer to convert math to eqn format, so a ms file
6281 produced with this writer should be processed with `groff -ms -e` if
6284 * New output format `jats` (Journal Article Tag Suite). This is an XML
6285 format used in archiving and publishing articles. Note that a
6286 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
6287 unless a stylesheet is specified using `--css`.
6289 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
6290 This uses bindings to GitHub's fork of cmark, so it should parse
6291 gfm exactly as GitHub does (excepting certain postprocessing
6292 steps, involving notifications, emojis, etc.). `markdown_github`
6293 has been deprecated in favor of `gfm`.
6295 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
6297 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
6298 This uses bindings to GitHub's fork of cmark. `markdown_github`
6299 has been deprecated in favor of `gfm`.
6301 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
6303 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
6305 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
6306 Note that there is a new data file, `data/vimwiki.css`, which can
6307 be used to display the HTML produced by this reader and
6308 pandoc's HTML writer in the style of vimwiki's own HTML
6311 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
6313 * New syntax for Divs, with `fenced_divs` extension enabled by
6314 default (#168). This gives an attractive, plain-text way to create
6315 containers for block-level content.
6317 * Added new syntax for including raw content in any output format,
6318 enabled by the `raw_attribute` extension (which is on by default
6319 for `markdown` and `multimarkdown`). The syntax is the same as
6320 for fenced code blocks or code inlines, only with `{=FORMAT}` for
6321 attributes, where `FORMAT` is the name of the output format
6322 (e.g., `ms`, `html`).
6324 * Implement multicolumn support for slide formats (#1710).
6325 The structure expected is:
6327 :::::::::::::: {.columns}
6328 ::: {.column width="40%"}
6331 ::: {.column width="60%"}
6336 Support has been added for beamer and all HTML slide formats.
6338 * Allows line comments in templates, beginning with `$--` (#3806).
6339 (Requires doctemplates 0.2.1.)
6341 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
6342 (Stefan Dresselhaus, #3663, #2097).
6344 * Add `--log` option to save log messages in JSON format to a file (#3392).
6346 * Add `--request-header` option, to set request headers when pandoc
6347 makes HTTP requests to fetch external resources. For example:
6348 `--request-header User-Agent:blah`.
6350 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
6351 option works like `--filter` but takes pathnames of special lua filters
6352 and uses the lua interpreter baked into pandoc, so that no external
6353 interpreter is needed. Note that lua filters are all applied after
6354 regular filters, regardless of their position on the command line.
6355 For documentation of lua filters, see `doc/lua-filters.md`.
6357 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
6358 This contains a JSON representation of `ReaderOptions`, so filters
6361 * Support creation of pdf via groff `ms` and pdfroff.
6362 `pandoc -t ms -o output.pdf input.txt`.
6364 * Support for PDF generation via HTML and `weasyprint` or `prince`
6365 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
6367 * Added `--epub-subdirectory` option (#3720). This specifies the
6368 subdirectory in the OCF container that holds the EPUB specific content.
6369 We now put all EPUB related content in an `EPUB/` subdirectory by default
6370 (later this will be configurable).
6375 com.apple.ibooks.display-options.xml
6377 EPUB/ <<--configurable-->>
6378 fonts/ <<--static-->>
6380 media/ <<--static-->>
6383 styles/ <<--static-->>
6387 text/ <<--static-->>
6391 * Added `--resource-path=SEARCHPATH` command line option (#852).
6392 SEARCHPATH is separated by the usual character, depending on OS
6393 (: on unix, ; on windows). Default resource path is just working
6394 directory. However, the working directory must be explicitly
6395 specified if the `--resource-path` option is used.
6397 * Added --abbreviations=FILE option for custom abbreviations file
6398 (#256). Dfault abbreviations file (`data/abbreviations`) contains
6399 a list of strings that will be recognized by pandoc's
6400 Markdown parser as abbreviations. (A nonbreaking space will
6401 be inserted after the period, preventing a sentence space in
6402 formats like LaTeX.) Users can override the default by putting a file
6403 abbreviations in their user data directory (`~/.pandoc` on *nix).
6405 * Allow a theme file as argument to `--highlight-style`.
6406 Also include a sample, `default.theme`, in `data/`.
6408 * Allow `--syntax-definition` option for dynamic loading of syntax
6409 highlighting definitions (#3334).
6411 * Lists in `markdown` by default now use the CommonMark variable
6412 nesting rules (#3511). The indentation required for a block-level
6413 item to be included in a list item is no longer fixed, but is
6414 determined by the first line of the list item. To be included in
6415 the list item, a block must be indented to the level of the first
6416 non-space content after the list marker. Exception: if are 5 or more
6417 spaces after the list marker, then the content is interpreted as an
6418 indented code block, and continuation paragraphs must be indented
6419 two spaces beyond the end of the list marker. See the CommonMark
6420 spec for more details and examples.
6422 Documents that adhere to the four-space rule should, in most cases,
6423 be parsed the same way by the new rules. Here are some examples
6424 of texts that will be parsed differently:
6429 will be parsed as a list item with a sublist; under the four-space
6430 rule, it would be a list with two items.
6436 Here we have an indented code block under the list item, even though it
6437 is only indented six spaces from the margin, because it is four spaces
6438 past the point where a continuation paragraph could begin. With the
6439 four-space rule, this would be a regular paragraph rather than a code
6446 Here the code block will start with two spaces, whereas under
6447 the four-space rule, it would start with `code`. With the four-space
6448 rule, indented code under a list item always must be indented eight
6449 spaces from the margin, while the new rules require only that it
6450 be indented four spaces from the beginning of the first non-space
6451 text after the list marker (here, `a`).
6453 This change was motivated by a slew of bug reports from people
6454 who expected lists to work differently (#3125, #2367, #2575, #2210,
6455 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
6456 of CommonMark (now used by GitHub, for example). Those who
6457 prefer the old behavior can use `-f markdown+four_space_rule`.
6459 * Added `four_space_rule` extension. This triggers the old pandoc
6460 parsing rule for content nested under list items (the "four space
6463 * Added `spaced_reference_links` extension (#2602). It allows whitespace
6464 between the two parts of a reference link: e.g.
6470 This was previously enabled by default; now it is forbidden by default.
6472 * Add `space_in_atx_header` extension (#3512). This is enabled by default
6473 in pandoc and GitHub markdown but not the other flavors.
6474 This requirse a space between the opening #'s and the header
6475 text in ATX headers (as CommonMark does but many other implementations
6476 do not). This is desirable to avoid falsely capturing things ilke
6484 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
6487 * Allow ibooks-specific metadata in epubs (#2693). You can now have
6488 the following fields in your YAML metadata, and it will be treated
6489 appropriately in the generated EPUB:
6494 specified-fonts: false
6495 ipad-orientation-lock: portrait-only
6496 iphone-orientation-lock: landscape-only
6498 scroll-axis: vertical
6504 * Reader functions no longer presuppose that CRs have been
6505 stripped from the input. (They strip CRs themselves, before
6506 parsing, to simplify the parsers.)
6508 * Added support for translations (localization) (#3559).
6509 Currently this only affects the LaTeX reader, for things
6510 like `\figurename`. Translation data files for 46 languages
6511 can be found in `data/translations`.
6513 * Make `--ascii` work with DocBook output too.
6515 * Rename `--latex-engine` to `--pdf-engine`,
6516 and `--latex-engine-opt` to `--pdf-engine-opt`.
6518 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
6519 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
6520 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
6521 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
6523 * With `--filter` R filters are now recognized, even if they are
6524 not executable (#3940, #3941, Andrie de Vries).
6526 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
6528 * Make epub an alias for epub3, not epub2.
6530 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
6531 Multiple stylesheets may be used. Stylesheets will be taken both from
6532 `--css` and from the `stylesheet` metadata field (which can contain
6533 either a file path or a list of them).
6535 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
6536 The argument was for a bridge JavaScript that used to be necessary
6537 in 2004. We have removed the script already.
6539 * `--katex` improvements. The latest version is used, and the
6540 autoload script is loaded by default.
6542 * Change MathJax CDN default since old one is shutting down (#3544).
6543 Note: The new URL requires a version number, which we'll have
6544 to update manually in subsequent pandoc releases in order to
6545 take advantage of mathjax improvements.
6547 * `--self-contained`: don't incorporate elements with `data-external="1"`
6548 (#2656). You can leave an external link as it is by adding the attribute
6549 data-external="1" to the element. Pandoc will then not try to
6550 incorporate its content when `--self-contained` is used. This is
6551 similar to a feature already supported by the EPUB writer.
6553 * Allow `--extract-media` to work with non-binary input formats
6554 (#1583, #2289). If `--extract-media` is supplied with a non-binary
6555 input format, pandoc will attempt to extract the contents of all
6556 linked images, whether in local files, data: uris, or external uris.
6557 They will be named based on the sha1 hash of the contents.
6559 * Make `papersize: a4` work regardless of the case of `a4`.
6560 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
6562 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
6564 * Underlined elements are now treated consistently by readers
6565 (#2270, hftf); they are always put in a Span with class `underline`.
6566 This allows the user to treat them differently from other emphasis,
6567 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
6570 * Improved behavior of `auto_identifiers` when there are explicit ids
6571 (#1745). Previously only autogenerated ids were added to the list
6572 of header identifiers in state, so explicit ids weren't taken
6573 into account when generating unique identifiers. Duplicated
6574 identifiers could result. This simple fix ensures that explicitly given
6575 identifiers are also taken into account.
6577 * Use `table-of-contents` for contents of toc, make `toc` a boolean
6578 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
6579 This allows you to set `toc: true` in the metadata; this
6580 previously produced strange results in some output formats.
6581 For backwards compatibility, `toc` is still set to the
6582 toc contents. But it is recommended that you update templates
6583 to use `table-of-contents` for the toc contents and `toc`
6586 * Change behavior with binary format output to stdout.
6587 Previously, for binary formats, output to stdout was disabled
6588 unless we could detect that the output was being piped (and not
6589 sent to the terminal). Unfortunately, such detection is not
6590 possible on Windows, leaving windows users no way to pipe binary
6591 output. So we have changed the behavior in the following way:
6593 + Output to stdout is allowed when it can be determined that
6594 the output is being piped (on non-Windows platforms).
6595 + If the `-o` option is not used, binary output is never sent
6596 to stdout by default; instead, an error is raised.
6597 + If `-o -` is used, binary output is sent to stdout, regardless
6598 of whether it is being piped. This works on Windows too.
6600 * Better error behavior: uses of `error` have been replaced by
6601 raising of `PandocError`, which can be trapped and handled by the
6604 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
6605 GitHub has two Markdown modes, one for long-form documents like READMEs
6606 and one for short things like issue coments. In issue comments, a line
6607 break is treated as a hard line break. In README, wikis, etc., it is
6608 treated as a space as in regular Markdown. Since pandoc is more likely to
6609 be used to convert long-form documents from GitHub Markdown,
6610 `-hard_line_breaks` is a better default.
6612 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
6614 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
6615 Previously they would be transmitted to the template without any
6616 escaping. Note that `--M title='*foo*'` yields a different result from
6622 In the latter case, we have emphasis; in the former case, just
6623 a string with literal asterisks (which will be escaped
6624 in formats, like Markdown, that require it).
6626 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
6628 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
6629 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
6630 it is valid HTML5. HTML4 is not affected. This will allow us to use
6631 custom attributes in pandoc without producing invalid HTML. (With help
6632 from Wandmalfarbe, #3817.)
6634 * Plain writer: improved super/subscript rendering. We now
6635 handle more non-digit characters for which there are
6636 sub/superscripted unicode characters. When unicode
6637 sub/superscripted characters are not available, we use
6638 `_(..)` or `^(..)` (#3518).
6640 * Docbook, JATS, TEI writers: print INFO message when omitting interior
6641 header (#3750). This only applies to section headers inside list items,
6642 e.g., which were otherwise silently omitted.
6644 * Change to `--reference-links` in Markdown writer (#3701). With
6645 `--reference-location` of `section` or `block`, pandoc will now repeat
6646 references that have been used in earlier sections. The Markdown
6647 reader has also been modified, so that *exactly* repeated references
6648 do not generate a warning, only references with the same label but
6649 different targets. The idea is that, with references after every block,
6650 one might want to repeat references sometimes.
6652 * ODT/OpenDocument writer:
6654 + Support `lang` attribute (#1667).
6655 + Added support for `--toc` (#2836). Thanks to @anayrat.
6659 + `lang` meta, see #1667 (Mauro Bieg, #3515).
6660 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
6661 + Use `Table` rather than `Table Normal` for table style (#3275).
6662 `Table Normal` is the default table style and can't be modified.
6663 + Pass through comments (#2994). We assume that comments are defined as
6664 parsed by the docx reader:
6666 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
6667 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
6668 have a comment <span class="comment-end" id="0"></span>on it.
6670 We assume also that the id attributes are unique and properly
6671 matched between comment-start and comment-end.
6672 + Bookmark improvements. Bookmark start/end now surrounds content rather
6673 than preceding it. Bookmarks generated for Div with id
6674 (jgm/pandoc-citeproc#205).
6675 + Add `keywords` metadata to docx document properties (Ian).
6677 * RST writer: support unknown interpreted text roles by
6678 parsing them as `Span` with `role` attributes (#3407). This
6679 way they can be manipulated in the AST.
6683 + Line block: Use class instead of style attribute (#1623). We now
6684 issue `<div class="line-block">` and include a default definition
6685 for `line-block` in the default templates, instead of hard-coding a
6687 + Add class `footnoteBack` to footnote back references (Timm Albers).
6688 This allows for easier CSS styling.
6689 + Render SmallCaps as span with smallcaps class (#1592), rather than
6690 using a style attribute directly. This gives the user more flexibility
6691 in styling small caps in CSS.
6692 + With reveal.js we use `data-src` instead of `src` for images for
6694 + Special-case `.stretch` class for images in reveal.js (#1291).
6695 Now in reveal.js, an image with class `stretch` in a paragraph
6696 by itself will stretch to fill the whole screen, with no
6697 caption or figure environment.
6699 * Added warnings for non-rendered blocks to writers.
6701 * Writers now raise an error on template failure.
6703 * When creating a PDF via LaTeX, warn if the font is missing some
6706 * Remove initial check for PDF-creating program (#3819).
6707 Instead, just try running it and raise the exception if it
6708 isn't found at that point. This improves things for users of Cygwin
6709 on Windows, where the executable won't be found by `findExecutable`
6710 unless `.exe` is added. The same exception is raised as before, but
6713 * Readers issue warning for duplicate header identifiers (#1745).
6714 Autogenerated header identifiers are given suffixes so as not to clash
6715 with previously used header identifiers. But they may still coincide with
6716 an explicit identifier that is given for a header later in the document,
6717 or with an identifier on a div, span, link, or image. We now issue
6718 a warning in this case, so users can supply an explicit identifier.
6720 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
6721 and `raw_html` extensions.
6725 + Don't allow backslash + newline to affect block structure (#3730).
6726 Note that as a result of this change, the following, which formerly
6727 produced a header with two lines separated by a line break, will
6728 now produce a header followed by a paragraph:
6733 This may affect some existing documents that relied on
6734 this undocumented and unintended behavior. This change makes pandoc
6735 more consistent with other Markdown implementations, and with itself
6736 (since the two-space version of a line break doesn't work inside ATX
6737 headers, and neither version works inside Setext headers).
6740 * Org reader (Albert Krewinkel, unless noted):
6742 + Support `table.el` tables (#3314).
6743 + Support macros (#3401).
6744 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
6745 Recognized include types are `example`, `export`, `src`, and
6746 normal org file inclusion. Advanced features like line numbers
6747 and level selection are not implemented yet.
6748 + Interpret more meta value as inlines. The values of the following
6749 meta variables are now interpreted using org-markup instead of
6750 treating them as pure strings: `keywords` (comma-separated list of
6751 inlines), `subtitle` (inline values), `nocite` (inline values, can
6753 + Support `\n` export option (#3940). This turns all newlines in the
6754 text into hard linebreaks.
6758 + Improved admonition support (#223). We no longer add an
6759 `admonition` class, we just use the class for the type of admonition,
6760 `note` for example. We put the word corresponding to the label in
6761 a paragraph inside a `Div` at the beginning of the admonition with
6762 class `admonition-title`. This is about as close as we can get to
6764 + Initial support of `.. table` directive. This allows adding captions
6766 + Support `.. line-block` directive. This is deprecated but may still
6767 be in older documents.
6768 + Support scale and align attributes of images (#2662).
6769 + Implemented implicit internal header links (#3475).
6770 + Support RST-style citations (#853). The citations appear at the end
6771 of the document as a definition list in a special div with id
6772 `citations`. Citations link to the definitions.
6773 + Recurse into bodies of unknown directives (#3432).
6774 In most cases it's better to preserve the content than
6775 to emit it. This isn't guaranteed to have good results;
6776 it will fail spectacularly for unknown raw or verbatim directives.
6777 + Handle chained link definitions (#262). For example,
6780 .. _goodbye: example.com
6782 Here both `hello` and `goodbye` should link to `example.com`.
6783 + Support anchors (#262). E.g.
6791 This is supported by putting "paragraph" in a `Div` with id `hello`.
6792 + Support `:widths:` attribute for table directive.
6793 + Implement csv-table directive (#3533). Most attributes are supported,
6794 including `:file:` and `:url:`.
6795 + Support unknown interpreted text roles by parsing them as Span
6796 with "role" attributes (#3407). This way they can be manipulated in
6799 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
6803 + Implemented `\graphicspath` (#736).
6804 + Properly handle column prefixes/suffixes. For example, in
6805 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
6806 each cell will be interpreted as if it has a `$`
6807 before its content and a `$` after (math mode).
6808 + Handle komascript `\dedication` (#1845). It now adds a
6809 `dedication` field to metadata. It is up to the user to supply
6810 a template that uses this variable.
6811 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
6812 `sf`, `bf` (#3488). Spans with a class are used when there is
6814 + Expand `\newenvironment` macros (#987).
6815 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
6816 + Better support for subfigure package (#3577).
6817 A figure with two subfigures turns into two pandoc
6818 figures; the subcaptions are used and the main caption
6819 ignored, unless there are no subcaptions.
6820 + Add support for `\vdots` (Marc Schreiber, #3607).
6821 + Add basic support for hyphenat package (Marc Schreiber, #3603).
6822 + Add basic `\textcolor` support (Marc Schreiber).
6823 + Add support for `tabularx` environment (Marc Schreiber, #3632).
6824 + Better handling of comments inside math environments (#3113).
6825 This solves a problem with commented out `\end{eqnarray}` inside
6826 an eqnarray (among other things).
6827 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
6828 is selected (#3692). Otherwise skip with a warning. This is better
6829 than trying to parse it as text!
6830 + Add `\colorbox` support (Marc Schreiber).
6831 + Set identifiers on Spans used for `\label`.
6832 + Have `\setmainlanguage` set `lang` in metadata.
6833 + Support etoolbox's `\ifstrequal`.
6834 + Support `plainbreak`, `fancybreak` et al from the memoir class
6835 (bucklereed, #3833).
6836 + Support `\let`. Also, fix regular macros so they're expanded at the
6837 point of use, and NOT also the point of definition. `\let` macros,
6838 by contrast, are expanded at the point of definition. Added an
6839 `ExpansionPoint` field to `Macro` to track this difference.
6840 + Support simple `\def` macros. Note that we still don't support
6841 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
6842 + Support `\chaptername`, `\partname`, `\abstractname`, etc. (#3559,
6844 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
6845 attributes, so they can be handled in filters (Marc Schreiber, #3639)
6846 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
6847 #3589). Acronyms are not resolved by the reader, but acronym and
6848 glossary information is put into attributes on Spans so that they
6849 can be processed in filters.
6850 + Use `Link` instead of `Span` for `\ref`. This makes more sense
6851 semantically and avoids unnecessary `Span [Link]` nestings when
6852 references are resolved.
6853 + Rudimentary support for `\hyperlink`.
6854 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
6855 + Support `\lq`, `\rq`.
6856 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
6858 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
6859 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
6860 + Support `\k` ogonek accent.
6861 + Improve handling of accents. Handle ogonek, and fall back correctly
6862 with forms like `\"{}`.
6863 + Better support for ogonek accents.
6864 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
6865 + Support for `xspace` (Marc Schreiber, #3797).
6866 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
6868 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
6869 level 0 headers, and parts as level -1 headers. After parsing, we
6870 check for the lowest header level, and if it's less than 1 we bump
6871 everything up so that 1 is the lowest header level. So `\part` will
6872 always produce a header; no command-line options are needed.
6873 + Add block version of `\textcolor` (Marc Schreiber).
6874 + `\textcolor` works as inline and block command (Marc Schreiber).
6875 + `\textcolor` will be parse as span at the beginning of a paragraph
6877 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
6878 + Improved handling of include files in LaTeX reader (#3971).
6879 Previously `\include` wouldn't work if the included file
6880 contained, e.g., a begin without a matching end.
6881 + Support `\expandafter` (#3983).
6882 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
6883 as a synonym for `\newcommand`.
6884 + Handle `\lettrine` (Mauro Bieg).
6886 * Math improvements due to updates in texmath:
6888 + Improved handling of accents and upper/lower delimiters.
6889 + Support for output in GNU eqn format (used with *roff).
6890 + Allow `\boldsymbol` + a token without braces, and similarly
6891 with other styling commands.
6892 + Improve parsing of `\mathop` to allow multi-character operator names.
6893 + Add thin space after math operators when "faking it with
6896 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
6897 instance for `a -> [a]` (pandoc-types). Note that behavior
6898 will be slightly different, since `bottomUp`'s treatment of
6899 a function `[a] -> [a]` is to apply it to each sublist of a
6900 list, while walk applies it only to maximal sublists.
6901 Usually the latter behavior is what is wanted, and the
6902 former can be simulated when needed. But there may be
6903 existing filters that need to be rewritten in light of the
6904 new behavior. Performance should be improved.
6906 * There are some changes to syntax highlighting due to revisions
6907 in the `skylighting` library:
6909 + Support for `powershell` has been added, and many syntax
6910 definitions have been updated.
6911 + Background colors have been added to the `kate` style.
6912 + The way highlighted code blocks are formatted in HTML has
6913 been changed (David Baynard), in ways that may require
6914 changes in hard-coded CSS affecting highlighting.
6915 (If you haven't included hard-coded highlighting CSS in
6916 your template, you needn't change anything.)
6921 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
6922 This contains definitions of the `PandocMonad` typeclass, the
6923 `PandocIO` and `PandocPure` monads, and associated functions.
6925 * Changed types of all writers and readers.
6927 + We now use `Text` instead of `String` in the interface (#3731).
6928 (We have not yet changed the internals of most readers to work
6929 with `Text`, but making this change in the API now opens up a
6930 path to doing that.)
6931 + The result is now of form `m a` with constraint `PandocMonad m`.
6932 Readers and writers can be combined to form monadic values which
6933 can be run using either `runIO` or `runPure`. If `runIO` is used,
6934 then both readers and writers will be able to do IO when needed
6935 (for include files, for example); if `runPure` is used,
6936 then the functions are pure and will not touch IO.
6937 + Where previously you used
6938 `writeRST def (readMarkdown def "[foo](url)")`, now you
6940 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
6942 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
6943 contains reader helper functions formerly defined in the
6944 top-level `Text.Pandoc` module.
6946 + Changed `StringReader` -> `TextReader`.
6947 + `getReader` now returns a pair of a reader and
6948 `Extensions`, instead of building the extensions into the
6949 reader (#3659). The calling code must explicitly set
6950 `readerExtensions` using the `Extensions` returned. The
6951 point of the change is to make it possible for the calling
6952 code to determine what extensions are being used.
6954 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
6955 This contains writer helper functions formerly defined in the
6956 top-level `Text.Pandoc` module.
6958 + Changed `StringWriter` -> `TextWriter`.
6959 + `getWriter` now retuns a pair of a reader and
6960 `Extensions`, instead of building the extensions into the
6961 reader (#3659). The calling code must explicitly set
6962 `readerExtensions` using the `Extensions` returned. The
6963 point of the change is to make it possible for the calling
6964 code to determine what extensions are being used.
6966 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
6969 * New module `Text.Pandoc.App`. This abstracts out the functionality
6970 of the command line program (`convertWithOpts`), so it can be reproduced
6971 e.g. in a desktop or web application. Instead of exiting, we throw errors
6972 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
6973 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
6974 The module also exports some utility functions for parsing options
6975 and running filters.
6977 * New module `Text.Pandoc.Logging` (exported module) (#3392).
6978 This now contains the `Verbosity` definition previously in
6979 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
6980 eventually be used instead of raw strings for warnings. This will enable
6981 us, among other things, to provide machine-readable warnings if desired.
6982 Include ToJSON instance and showLogMessage. This gives us the possibility
6983 of both machine-readable and human-readable output for log messages.
6985 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
6987 * New module `Text.Pandoc.Translations`, exporting `Term`,
6988 `Translations`, `readTranslations`.
6990 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
6991 `TokType`, `Line`, `Column`.
6993 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
6995 * Expose some previously private modules (#3260). These are often
6996 helpful to people writing their own reader or writer modules:
6998 + `Text.Pandoc.Writers.Shared`
6999 + `Text.Pandoc.Parsing`
7000 + `Text.Pandoc.Asciify`
7001 + `Text.Pandoc.Emoji`
7002 + `Text.Pandoc.ImageSize`
7003 + `Text.Pandoc.Highlighting`
7005 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
7006 Extension parsing and processing functions were defined in the top-level
7007 `Text.Pandoc` module. These functions are moved to the Extensions
7008 submodule as to enable reuse in other submodules.
7010 * Add `Ext_raw_attribute` constructor for `Extension`.
7012 * Add `Ext_fenced_divs` constructor for `Extension'.
7014 * Add `Ext_four_space_rule` constructor in `Extension`.
7016 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
7018 * Add `Monoid` instance for `Extensions`.
7020 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
7022 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
7024 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
7026 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
7028 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
7030 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
7032 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
7034 * Export `setVerbosity` from `Text.Pandoc`.
7036 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
7038 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
7040 * `Text.Pandoc.UTF8`:
7042 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
7043 Define `toString`, `toStringLazy` in terms of them.
7044 + Add new functions parameterized on `Newline`: `writeFileWith`,
7045 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
7047 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
7049 * `Text.Pandoc.Highlighting`:
7051 + `highlighting` now returns an Either rather than Maybe.
7052 This allows us to display error information returned by the skylighting
7053 library. Display a warning if the highlighting library throws an error.
7054 + Add parameter for `SyntaxMap` to `highlight`.
7056 * `Text.Pandoc.Writers.Math`:
7058 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
7059 we only need to update these in one place.
7061 * `Text.Pandoc.SelfContained`:
7063 + Removed `WriterOptions` parameter from `makeSelfContained`.
7064 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
7065 the need to pass MediaBag around and improves exceptions. It also
7066 opens up the possibility of using makeSelfContained purely.
7067 + Export `makeDataURI`.
7069 * `Text.Pandoc.ImageSize`:
7071 + Export `lengthToDim`, new function `scaleDimension`.
7072 + Export `inEm` from ImageSize (#3450).
7073 + Change `showFl` and `show` instance for `Dimension` so
7074 extra decimal places are omitted.
7075 + Added `Em` as a constructor of `Dimension`.
7076 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
7078 * `Text.Pandoc.Templates`:
7080 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
7081 and raises a proper `PandocTemplateError` if there are problems, rather
7082 than failing with uncatchable `error`.
7083 + Change signature of `getDefaultTemplate`. Now it runs in any instance
7084 of `PandocMonad`, and returns a `String` rather than an `Either` value.
7085 And it no longer takes a `datadir` parameter, since this can be
7086 retrieved from `CommonState`.
7088 * `Text.Pandoc.Options`:
7090 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
7091 The EPUB writer now takes its EPUB subdirectory from this option.
7092 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
7093 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
7094 + Add `writerSyntaxMap` to `WriterOptions`.
7095 + Removed `writerEpubStylesheet` from `WriterOptions`.
7096 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
7097 in `CommonState` in `PandocMonad` instances. (And thus it can be used
7099 + Changed `writerEpubMetadata` to a `Maybe String`.
7100 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
7101 the `latex_macros` reader extension.
7102 + FromJSON/ToJSON instances for `ReaderOptions`.
7103 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
7104 one string (for the KaTeX base URL), rather than two.
7105 + Removed `writerSourceURL` from `WriterOptions`. We now use
7106 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
7108 * `Text.Pandoc.Shared`:
7110 + `tabFilter` now takes a `Text`, not `String`.
7111 + `openURL`: Changed type from an Either. Now it will just raise
7112 an exception to be trapped later.
7113 + Remove `normalizeSpaces` (#1530).
7114 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
7115 + Export a new function `crFilter`.
7116 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
7117 + Provide custom `isURI` that rejects unknown schemes.
7118 (Albert Krewinkel, #2713). We also export the set of known
7119 `schemes`. The new function replaces the function of the same name
7120 from `Network.URI`, as the latter did not check whether a scheme is
7121 well-known. All official IANA schemes (as of 2017-05-22) are
7122 included in the set of known schemes. The four non-official schemes
7123 `doi`, `isbn`, `javascript`, and `pmid` are kept.
7125 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
7126 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
7127 where they are defined in terms of `PandocMonad`
7128 primitives and have different signatures.
7129 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
7130 + Add `underlineSpan`.
7132 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
7134 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
7135 With the new API one can simply use `getLog` after running
7138 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
7139 and `rawLaTeXBlock`. (Both now return a `String`, and they are
7140 polymorphic in state.)
7143### Bug fixes and under-the-hood improvements
7145 * TEI writer: Added identifiers on `<div>` elements.
7147 * DokuWiki reader: Better handling for code block in list item (#3824).
7149 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
7151 * ZimWiki writer: Removed internal formatting from note and table cells,
7152 because ZimWiki does not support it (Alex Ivkin, #3446).
7156 + Updated list of syntax highlighting languages (#3461).
7157 Now `r` gets you `<source>` rather than `<code>` (among others).
7158 + Add display attribute on `<math>` tags (#3452). This allows display
7159 math to be rendered properly.
7160 + Remove newline before `</ref>` (#2652).
7161 + Don't softbreak lines inside list items (#3531).
7165 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
7166 + Add unit tests (Alexander Krotov).
7167 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
7168 + Do not strip `#` from Org anchor links (Alexander Krotov).
7170 * CommonMark writer:
7172 + Avoid excess blank lines at end of output.
7173 + Prefer pipe tables to HTML tables even if it means losing relative
7174 column width information (#3734).
7175 + Support table, strikethrough extensions, when enabled (as with gfm).
7176 Note that we bypass the commonmark writer from cmark and construct our
7177 own pipe tables, with better results.
7178 + Properly support `--wrap=none`.
7179 + Use smallcaps class for `SmallCaps` (#1592).
7180 + Omit "fig:" prefix in image titles. This is used internally to
7181 indicate internal figures.
7185 + Properly handle table captions.
7186 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
7187 + Implemented `+/-smart` and improved escaping with `+smart`.
7188 + Add empty comments when needed to avoid including a blockquote
7189 in the indented content of a preceding block (#3675).
7190 + Improve grid table output, fix bug with empty rows (#3516).
7191 Uses the new `gridTable` in Writers.Shared, which is here
7192 improved to better handle 0-width cells.
7193 + Remove space at beginning/end of RST code span (#3496). Otherwise
7194 we get invalid RST. There seems to be no way to escape the space.
7195 + Add header anchors when header has non-standard id (#3937).
7196 + Correctly handle inline code containing backticks, using a `:literal:`
7198 + Don't backslash-escape word-internal punctuation (#3978).
7202 + Don't include variables in metadata blocks. Previously variables set
7203 on the command line were included in e.g. YAML metadata, contrary to
7204 documentation and intentions.
7205 + Improved escaping with `+smart`.
7206 + Fixed grid tables embedded in grid tables (#2834).
7207 + Use span with class 'smallcaps' for SmallCaps, instead of a style
7208 attribute as before (#1592).
7209 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
7210 extension is enabled (#3454). Otherwise in a document starting with
7211 a literal `%` the first line is wrongly interpreted as a title.
7212 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
7213 properly escape things that would otherwise start ordered lists,
7219 + Better handling of tables with empty columns (#3337). We now
7220 calculate the number of columns based on the longest row (or the
7221 length of aligns or widths).
7222 + Escape unordered list markers at beginning of paragraph (#3497), to
7223 avoid false interpretation as a list.
7224 + Escape `|` appropriately.
7225 + Ensure space before list at top level (#3487).
7226 + Avoid spurious blanklines at end of document after tables and list,
7228 + Fixed bugs in simple/multiline list output (#3384).
7229 Previously we got overlong lists with `--wrap=none`. This is fixed.
7230 Previously a multiline list could become a simple list (and would
7231 always become one with `--wrap=none`).
7232 + Don't emit a simple table if `simple_tables` disabled (#3529).
7233 + Case-insensitive reference links (David A Roberts, #3616).
7234 Ensure that we do not generate reference links whose labels differ only
7235 by case. Also allow implicit reference links when the link
7236 text and label are identical up to case.
7237 + Put space before reference link definitions (Mauro Bieg, #3630).
7238 + Better escaping for links (David A. Roberts, #3619). Previously the
7239 Markdown writer would sometimes create links where there were none
7240 in the source. This is now avoided by selectively escaping bracket
7241 characters when they occur in a place where a link might be created.
7242 + Added missing `\n` (David A. Roberts, #3647).
7243 + Fixed duplicated reference links with `--reference-links`
7244 and `--reference-location=section` (#3674). Also ensure that there
7245 are no empty link references `[]`.
7246 + Avoid inline surround-marking with empty content (#3715).
7247 E.g. we don't want `<strong></strong>` to become `****`.
7248 Similarly for emphasis, super/subscript, strikeout.
7249 + Don't allow soft break in header (#3736).
7250 + Make sure `plain`, `markdown_github`, etc. work for raw.
7251 Previously only `markdown` worked. Note: currently a raw block labeled
7252 `markdown_github` will be printed for any `markdown` format.
7253 + Ensure that `+` and `-` are escaped properly so they don't cause
7254 spurious lists (#3773). Previously they were only
7255 if succeeded by a space, not if they were at end of line.
7256 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
7257 even if the table has relative width information (#3734).
7258 + Markdown writer: don't crash on `Str ""`.
7259 + Make `Span` with null attribute transparent. That is, we don't use
7260 brackets or `<span>` tags to mark spans when there are no attributes;
7261 we simply output the contents.
7262 + Escape pipe characters when `pipe_tables` enabled (#3887).
7263 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
7264 we backslash escape these. Otherwise we use entities as before.
7265 + When writing plain, don't use ` ` to separate list and indented
7266 code. There's no need for it in this context, since this isn't to be
7267 interpreted using Markdown rules.
7268 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
7269 HTML links containing classes originally now preserve them when using
7270 javascript email obfuscation.
7271 + Render `SmallCaps` as a native span when `native_spans` are enabled.
7272 + Always write attributes with `bracketed_spans` (d-dorazio).
7276 + Fix handling of nested font commands (#3568). Previously pandoc emitted
7277 incorrect markup for bold + italic, for example, or bold + code.
7278 + Avoid error for definition lists with no definitions (#3832).
7282 + Fix internal links with `writerIdentifierPrefix opt`
7283 (#3397, Mauro Bieg).
7287 + Don't include bookmarks on headers unless non-null id (#3476).
7288 + Support 9 levels of headers (#1642).
7289 + Allow 9 list levels (#3519).
7290 + Don't take `distArchive` from datadir (#3322). The docx writer takes
7291 components from the distribution's version of `reference.docx` when it
7292 can't find them in a user's custom `reference.docx`. Previously, we
7293 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
7294 to be used as the distribution's reference.docx. This led to a
7295 bizarre situation where pandoc would produce a good docx using
7296 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
7297 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
7298 + Fixed handling of soft hyphen (0173) (#3691).
7299 + Better handling of keywords (#3719).
7300 + Cleaner code for handling dir and style attributes for `Div`.
7301 + Use `Set` for dynamic styles to avoid duplicates.
7302 + Removed redundant element from data/docx/word/numbering.xml.
7303 The elements we need are generated when the document is
7304 compiled; this didn't do anything.
7305 + Activate `evenAndOddHeaders` from reference docx (#3901,
7306 Augustín Martín Barbero).
7308 * ODT/OpenDocument writer:
7310 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
7311 + Use more widely available bullet characters (#1400). The old
7312 characters weren't available in some font sets. These seem to work
7313 well on Windows and Linux versions of LibreOffice.
7314 + Wider labels for lists (#2421). This avoids overly narrow labels for
7315 ordered lists with `()` delimiters. However, arguably it creates
7316 overly wide labels for bullets. Also, lists now start flush with
7317 the margin, rather than indented.
7318 + Fixed dropped elements in some ordered lists (#2434).
7322 + Don't render `RawBlock` as code.
7323 + Don't fail with an error on interior headers (e.g. in list) (#3750).
7324 Instead, omit them with an INFO message.
7325 + Add support for "lang" metadata (Alexander Krotov, #3625).
7326 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
7327 produced one paragraph with `<empty-line/>` elements, which are not
7328 allowed inside `<p>` according to FB2 schema.
7329 + Replace `concatMap` with `cMap` (Alexander Krotov).
7330 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
7335 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
7336 + Render raw inline environments when `--mathjax` used (#3816).
7337 We previously did this only with raw blocks, on the assumption
7338 that math environments would always be raw blocks. This has changed
7339 since we now parse them as inline environments.
7340 + Ensure we don't get two style attributes for width and height.
7341 + Report when not rendering raw inline/block.
7342 + Issue warning if no title specified and template used (#3473).
7343 + Info message if `lang` is unspecified (#3486).
7344 + Removed unused parameter in `dimensionsToAttributeList`.
7345 + Avoid two class attributes when adding `uri` class (#3716).
7346 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
7348 + Use revealjs's math plugin for mathjax (#3743). This is a thin
7349 wrapper around mathjax that makes math look better on revealjs.
7350 + Slidy: use h1 for all slides, even if they were originally
7351 level 2 headers (#3566). Otherwise the built-in table of contents
7356 + Don't render LaTeX images with data: URIs (#3636). Note that
7357 `--extract-media` can be used when the input contains data: URIs.
7358 + Make highlighted code blocks work in footnotes (Timm Albers).
7359 + Don't use figure inside table cell (#3836).
7360 + Use proper code for list enumerators (#3891). This should fix problems
7361 with lists that don't use arabic numerals.
7362 + Always add hypertarget when there's a non-empty identifier (#2719).
7363 Previously the hypertargets were only added when there was actually
7364 a link to that identifier.
7365 + Use `%` after hypertarget before code block.
7366 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
7367 fixes formatting problems in beamer citations).
7368 + Don't use `lstinline` in `\item[..]` (#645). If you do, the contents
7369 of item disappear or are misplaced. Use `\texttt` instead.
7370 + Fix problem with escaping in `lstinline` (#1629). Previously the
7371 LaTeX writer created invalid LaTeX when `--listings` was specified and
7372 a code span occurred inside emphasis or another construction.
7373 + Fix error with line breaks after empty content (#2874). LaTeX
7374 requires something before a line break, so we insert a `~` if no
7375 printable content has yet been emitted.
7377 + Fixed detection of otherlangs (#3770). We weren't recursing into
7379 + Handle language in inline code with `--listings` (#3422).
7380 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
7381 The textcomp package allows pdfLaTeX to parse `€` directly, making the
7382 `\euro` command unneeded.
7383 + Fixed footnotes in table captions (#2378). Note that if the table has
7384 a first page header and a continuation page header, the notes will
7385 appear only on the first occurrence of the header.
7386 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
7387 Previously you could link to a header above or below slide level but
7388 not *to* slide level. This commit changes that. Hypertargets are
7389 inserted inside frame titles; technically the reference is to just
7390 after the title, but in normal use (where slides are viewed full
7391 screen in a slide show), this does not matter.
7392 + Remove `\strut` at beginning of table cells (#3436). This fixes a
7393 problem with alignment of lists in table cells. The `\strut` at the
7394 end seems to be enough to avoid the too-close spacing that motivated
7395 addition of the strut in #1573.
7396 + Add partial siunitx Support (Marc Schreiber, #3588).
7400 + Refactored to use BCP47 module.
7401 + Remove unnecessary `$` (Alexander Krotov, #3482).
7402 + Use header identifiers for chapters (#3968).
7406 + `title_page.xhtml` is now put in `text/`.
7407 + Don't strip formatting in TOC (#1611).
7411 + Fix bug for certain links in table cells (#3667).
7412 + Allow 'pre' code in list item (#3916).
7416 + Added warnings for ignored material (#3392).
7417 + Better sanity checks to avoid parsing unintended things as
7418 raw HTML in the Markdown reader (#3257).
7419 + Revise treatment of `li` with `id` attribute (#3596). Previously we
7420 always added an empty div before the list item, but this created
7421 problems with spacing in tight lists. Now we do this: If the list
7422 item contents begin with a `Plain` block, we modify the `Plain`
7423 block by adding a `Span` around its contents. Otherwise, we add a
7424 `Div` around the contents of the list item (instead of adding an
7425 empty `Div` to the beginning, as before).
7426 + Add `details` tag to list of block tags (#3694).
7427 + Removed `button` from block tag list (#3717). It is already in the
7428 `eitherBlockOrInlineTag` list, and should be both places.
7429 + Use `Set`s instead of lists for block tag lookup.
7430 + Rewrote to use `Text` throughout. Effect on memory usage is modest
7432 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
7434 + Ensure that paragraphs are closed properly when the parent block
7435 element closes, even without `</p>` (#3794).
7436 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
7437 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
7438 `<main>` closes `<p>` and behaves like a block element generally
7439 + Support column alignments (#1881). These can be set either
7440 with a `width` attribute or with `text-width` in a `style` attribute.
7441 + Modified state type to be an instance of `HasLogMessages`, so
7442 `registerHeader` can issue warnings.
7443 + `</td>` or `</th>` should close any open block tag (#3991).
7444 + `<td>` should close an open `<th>` or `<td>`.
7445 + `htmlTag` improvements (#3989). We previously failed on cases
7446 where an attribute contained a `>` character. This patch fixes the
7447 bug, which especially affects raw HTML in Markdown.
7451 + Newline is not indentation (Alexander Krotov).
7455 + Allow extra hyphens after `|-` in tables (#2649).
7456 + Allow blank line after table start (#2649).
7457 + Fixed more table issues (#2649).
7458 + Ensure that list starts begin at left margin (#2606). Including when
7459 they're in tables or other list items.
7460 + Make smart double quotes depend on `smart` extension (#3585).
7461 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
7462 + Modified state type to be an instance of `HasLogMessages`, so
7463 `registerHeader` can issue warnings.
7465 * TWiki reader (Alexander Krotov):
7467 + Remove unnecessary `$` (#3597).
7468 + Simplify `linkText` (#3605).
7472 + Minor refactoring, avoiding explicit MediaBag handling.
7473 This all works behind the scenes in CommonState plumbing.
7477 + Don't drop smartTag contents (#2242).
7478 + Handle local namespace declarations (#3365). Previously we didn't
7479 recognize math, for example, when the xmlns declaration occurred on
7480 the element and not the root.
7481 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
7482 does the work of `normalizeSpaces` as well, so we avoid the need for
7484 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
7485 paragraphs styled with "HeadingN" as "nth-level header." But if a
7486 document has a custom style named "Heading0", this will produce a
7487 0-level header, which shouldn't exist. We only parse this style
7488 if N>0. Otherwise we treat it as a normal style name, and
7489 follow its dependencies, if any.
7490 + Add tests for avoiding zero-level header (Jesse Rosenthal).
7494 + Replaced `collectRights` with Rights from `Data.Either`.
7495 + Remove dead code (Albert Krewinkel).
7497 * Org reader (Albert Krewinkel, unless noted).
7499 + Don't allow tables inside list items (John MacFarlane, #3499).
7500 + Disallow tables on list marker lines (#3499).
7501 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
7502 + Allow emphasized text to be followed by `[` (#3577).
7503 + Handle line numbering switch for src blocks.
7504 The line-numbering switch that can be given to source blocks (`-n` with
7505 an start number as an optional parameter) is parsed and translated to a
7506 class/key-value combination used by highlighting and other readers and
7508 + Stop adding rundoc prefix to src params. Source block parameter names
7509 are no longer prefixed with `rundoc`. This was intended to simplify
7510 working with the rundoc project, a babel runner. However, the rundoc
7511 project is unmaintained, and adding those markers is not the reader's
7512 job anyway. The original language that is specified for a source
7513 element is now retained as the `data-org-language` attribute and only
7514 added if it differs from the translated language.
7515 + Allow multi-word arguments to src block params (#3477). The reader now
7516 correctly parses src block parameter list even if parameter arguments
7517 contain multiple words.
7518 + Avoid creating `nullMeta` by applying `setMeta` directly
7520 + Replace `sequence . map` with `mapM`.
7521 + Fix smart parsing behavior. Parsing of smart quotes and special
7522 characters can either be enabled via the `smart` language extension or
7523 the `'` and `-` export options. Smart parsing is active if either the
7524 extension or export option is enabled. Only smart parsing of special
7525 characters (like ellipses and en and em dashes) is enabled by default,
7526 while smart quotes are disabled. Previously, all smart parsing was
7527 disabled unless the language extension was enabled.
7528 + Subject full doc tree to headline transformations (Albert Krewinkel,
7529 #3695). Emacs parses org documents into a tree structure, which is
7530 then post-processed during exporting. The reader is changed to do the
7531 same, turning the document into a single tree of headlines starting
7533 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
7534 cite keys included special characters also at the end. This caused
7535 problems when citations occur right before colons or at the end of
7536 a sentence. With this change, all non alphanumeric characters at
7537 the end of a cite key are ignored. This also adds `,` to the list
7538 of special characters that are legal in cite keys to better mirror
7539 the behaviour of org-export.
7540 + Fix module names in haddock comments. Copy-pasting had lead to
7541 haddock module descriptions containing the wrong module names.
7542 + Recognize babel result blocks with attributes (#3706). Babel
7543 result blocks can have block attributes like captions and names.
7544 Result blocks with attributes were not recognized and were parsed
7545 as normal blocks without attributes.
7546 + Include tags in headlines. The Emacs default is to include tags in the
7547 headline when exporting. Instead of just empty spans, which contain the
7548 tag name as attribute, tags are rendered as small caps and wrapped in
7549 those spans. Non-breaking spaces serve as separators for multiple tags.
7550 + Respect export option for tags (#3713). Tags are appended to
7551 headlines by default, but will be omitted when the `tags` export option
7553 + Use `tag-name` attribute instead of `data-tag-name`.
7554 + Use `org-language` attribute rather than `data-org-language`.
7555 + Modified state type to be an instance of `HasLogMessages`, so
7556 `registerHeader` can issue warnings.
7557 + End footnotes after two blank lines. Footnotes can not only be
7558 terminated by the start of a new footnote or a header, but also by two
7559 consecutive blank lines.
7560 + Update emphasis border chars (#3933). The org reader was updated to
7561 match current org-mode behavior: the set of characters which are
7562 acceptable to occur as the first or last character in an org emphasis
7563 have been changed and now allows all non-whitespace chars at the
7564 inner border of emphasized text (see `org-emphasis-regexp-components`).
7568 + Fixed small bug in list parsing (#3432). Previously the parser didn't
7569 handle properly this case:
7575 + Handle multiline cells in simple tables (#1166).
7576 + Parse list table directive (Keiichiro Shikano, #3432).
7577 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
7578 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
7579 + Reorganize block parsers for ~20% faster parsing.
7580 + Fixed `..include::` directive (#3880).
7581 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
7582 Previously pandoc would sometimes combine two line blocks separated
7583 by blanks, and ignore trailing blank lines within the line block.
7584 + Fix indirect hyperlink targets (#512).
7588 + Allow attributes in reference links to start on next line (#3674).
7589 + Parse YAML metadata in a context that sees footnotes defined in
7590 the body of the document (#1279).
7591 + When splitting pipe table cells, skip tex math (#3481).
7592 You might have a `|` character inside math. (Or for that matter
7593 something that the parser might mistake for raw HTML.)
7594 + Treat span with class `smallcaps` as SmallCaps.
7595 This allows users to specify small caps in Markdown this way:
7596 `[my text]{.smallcaps}` (#1592).
7597 + Fixed internal header links (#2397).
7598 This patch also adds `shortcut_reference_links` to the list
7600 + Treat certain environments as inline
7601 when they occur without space surrounding them (#3309, #2171).
7602 E.g. equation, math. This avoids incorrect vertical space
7604 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
7605 + Allow latex macro definitions indented 1-3 spaces.
7606 Previously they only worked if nonindented.
7607 + Improved parsing of indented raw HTML blocks (#1841).
7608 Previously we inadvertently interpreted indented HTML as
7609 code blocks. This was a regression. We now seek to determine the
7610 indentation level of the contents of an HTML block, and (optionally)
7611 skip that much indentation. As a side effect, indentation may be
7612 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
7613 used. This is better than having things interpreted as indented
7615 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
7616 + Warn for notes defined but not used (#1718).
7617 + Use `anyLineNewline` (Alexander Krotov).
7618 + Interpret YAML metadata as Inlines when possible (#3755). If
7619 the metadata field is all on one line, we try to interpret it as
7620 Inlines, and only try parsing as Blocks if that fails. If it
7621 extends over one line (including possibly the `|` or `>` character
7622 signaling an indented block), then we parse as Blocks. This was
7623 motivated by some German users finding that `date: '22. Juin 2017'`
7624 got parsed as an ordered list.
7625 + Fixed spurious parsing as citation as reference def (#3840).
7626 We now disallow reference keys starting with `@` if the
7627 `citations` extension is enabled.
7628 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
7629 Previously only `[-@roe]` (with brackets) was recognized as
7630 suppress-author, and `-@roe` was treated the same as `@roe`.
7631 + Fixed parsing of fenced code after list when there is no intervening
7633 + Allow raw latex commands starting with `\start` (#3558). Previously
7634 these weren't allowed because they were interpreted as starting
7635 ConTeXt environments, even without a corresponding `\stop`...
7636 + Added `inlines`, `inlines1`.
7637 + Require nonempty alt text for `implicit_figures` (#2844).
7638 A figure with an empty caption doesn't make sense.
7639 + Removed texmath macro material; now all this is handled
7640 in the LaTeX reader functions.
7641 + Fixed bug with indented code following raw LaTeX (#3947).
7645 + Rewrote LaTeX reader with proper tokenization (#1390,
7646 #2118, #3236, #3779, #934, #982). This rewrite is primarily
7647 motivated by the need to get macros working properly. A side benefit
7648 is that the reader is significantly faster. We now tokenize the
7649 input text, then parse the token stream. Macros modify the token
7650 stream, so they should now be effective in any context, including
7651 math. Thus, we no longer need the clunky macro processing
7652 capacities of texmath.
7653 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
7654 + Allow `\newcommand\foo{blah}` without braces.
7655 + Support `\lstinputlisting` (#2116).
7656 + Issue warnings when skipping unknown latex commands (#3392).
7657 + Include contents of `\parbox`.
7658 + Allow `\hspace` and `\vspace` to count as raw block or inline.
7659 Previously we would refuse to parse anything as raw inline if
7660 it was in the `blockCommands` list. Now we allow exceptions
7661 if they're listed under ignoreInlines in inlineCommands.
7662 This should make it easier e.g. to include an `\hspace`
7663 between two side-by-side raw LaTeX tables.
7664 + Don't drop contents of `\hypertarget`.
7665 + Handle spaces before `\cite` arguments.
7666 + Allow newpage, clearpage, pagebreak in inline contexts as well as
7667 block contexts (#3494).
7668 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
7669 + Use `pMacroDefinition` in macro (for more direct parsing).
7670 Note that this means that `macro` will now parse one
7671 macro at a time, rather than parsing a whole group together.
7672 + Fixed failures on `\ref{}`, `\label{}` with `+raw_tex`. Now these
7673 commands are parsed as raw if `+raw_tex`; otherwise, their argument
7674 is parsed as a bracketed string.
7675 + Don't crash on empty `enumerate` environment (#3707).
7676 + Handle escaped `&` inside table cell (#3708).
7677 + Handle block structure inside table cells (#3709). `minipage` is no
7679 + Handle some width specifiers on table columns (#3709). Currently
7680 we only handle the form `0.9\linewidth`. Anything else would have
7681 to be converted to a percentage, using some kind arbitrary assumptions
7683 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
7684 LaTeX reader's treatment of raw commands, but it also affects the
7686 + Fixed regression with starred environment names (#3803).
7687 + Handle optional args in raw `\titleformat` (#3804).
7688 + Improved heuristic for raw block/inline. An unknown command at the
7689 beginning of the line that could be either block or inline is
7690 treated as block if we have a sequence of block commands followed by
7691 a newline or a `\startXXX` command (which might start a raw ConTeXt
7693 + Don't remove macro definitions from the output, even if
7694 `Ext_latex_macros` is set, so that macros will be applied.
7695 Since they're only applied to math in Markdown, removing the macros
7696 can have bad effects. Even for math macros, keeping them should be
7698 + Removed `macro`. It is no longer necessary, since the
7699 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
7700 the need for a separate `latexMacro` parser in the Markdown reader.
7701 + Use `label` instead of `data-label` for label in caption (#3639).
7702 + Fixed space after `\figurename` etc.
7703 + Resolve references to section numbers.
7704 + Fix `\let\a=0` case, with single character token.
7705 + Allow `@` as a letter in control sequences. `@` is commonly used
7706 in macros using `\makeatletter`. Ideally we'd make the tokenizer
7707 sensitive to `\makeatletter` and `\makeatother`, but until then this
7708 seems a good change.
7709 + Track header numbers and correlate with labels.
7710 + Allow `]` inside group in option brackets (#3857).
7711 + lstinline with braces can be used (verb cannot be used with braces)
7712 (Marc Schreiber, #3535).
7713 + Fix keyval function: pandoc did not parse options in braces correctly
7714 (Marc Schreiber, #3642).
7715 + When parsing raw LaTeX commands, include trailing space (#1773).
7716 Otherwise things like `\noindent foo` break and turn into
7717 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
7718 formats that allow `raw_tex`).
7719 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
7721 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
7722 + Allow space before `=` in bracketd options (Ben Firshman).
7723 + Be more forgiving in parsing command options. This was needed, for
7724 example, to make some minted options work.
7725 + Strip off quotes in `\include` filenames.
7727 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
7729 * `Text.Pandoc.PDF`:
7731 + Got `--resource-path` working with PDF output (#852).
7732 + Fetch images when generating PDF via context (#3380).
7733 To do this, we create the temp directory as a subdirectory
7734 of the working directory. Since context mk IV by default looks
7735 for images in the parent directory, this works.
7736 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
7737 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
7738 This reduces code duplication.
7739 + `html2pdf`: use stdin instead of intermediate HTML file
7740 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
7741 doesn't use `TEXINPUTS`.
7743 * `Text.Pandoc.Pretty`:
7745 + Simplified definition of `realLength`.
7746 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
7748 * `Text.Pandoc.MIME`:
7750 + Use `application/javascript` (not `application/x-javascript`).
7751 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
7753 * `Text.Pandoc.ImageSize`:
7755 + Improve SVG image size code (Marc Schreiber, #3580).
7756 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
7758 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
7759 and reduction of memory usage in most of the writers.
7761 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
7763 * `Text.Pandoc.SelfContained`:
7765 + Fixed problem with embedded fonts (#3629).
7766 + Refactored getData from `getDataURI` in `SelfContained`.
7767 + Don't use data URIs for script or style (#3423). Instead, just use
7768 script or style tags with the content inside. The old method with
7769 data URIs prevents certain optimizations outside pandoc. Exception:
7770 data URIs are still used when a script contains `</script>` or a
7771 style contains `</`.
7772 + SelfContained: Handle URL inside material retrieved from a URL
7773 (#3629). This can happen e.g. with an @import of a google web font.
7774 (What is imported is some CSS which contains an url reference
7775 to the font itself.) Also, allow unescaped pipe (|) in URL.
7776 + Load resources from `data-src` (needed for lazy loading in
7777 reveal.js slide shows).
7778 + Handle `data-background-image` attribute on section (#3979).
7780 * `Text.Pandoc.Parsing`:
7782 + Added `indentWith` (Alexander Krotov, #3687).
7783 + Added `stateCitations` to `ParserState`.
7784 + Removed `stateChapters` from `ParserState`.
7785 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
7786 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
7787 + Adjusted type of `insertIncludedFile` so it can be used with token
7789 + Replace old texmath macro stuff from Parsing. Use Macro from
7790 Text.Pandoc.Readers.LaTeX.Types instead.
7791 + Export `insertIncludedFile`.
7792 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
7793 + Replace partial with total function (Albert Krewinkel).
7794 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
7795 `insertIncludeFile` function is generalized to work with all parser
7796 states which are instances of that class.
7797 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
7798 The `insertIncludeFiles` function was generalized and renamed
7799 to `insertIncludedFiles'`; the specialized versions are based on that.
7800 + `many1Till`: Check for the end condition before parsing (Herwig
7801 Stuetz). By not checking for the end condition before the first
7802 parse, the parser was applied too often, consuming too much of the
7803 input. This only affects `many1Till p end` where `p` matches on a
7805 + Provide `parseFromString` (#3690). This is a version of
7806 `parseFromString` specialied to ParserState, which resets
7807 `stateLastStrPos` at the end. This is almost always what we want.
7808 This fixes a bug where `_hi_` wasn't treated as emphasis in the
7809 following, because pandoc got confused about the position of the
7810 last word: `- [o] _hi_`.
7811 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
7812 + Fix `blanklines` documentation (Alexander Krotov, #3843).
7813 + Give less misleading line information with `parseWithString`.
7814 Previously positions would be reported past the end of the chunk.
7815 We now reset the source position within the chunk and report
7816 positions "in chunk."
7817 + Add `anyLineNewline` (Alexander Krotov).
7818 + Provide shared F monad functions for Markdown and Org readers
7819 (Albert Krewinkel). The `F` monads used for delayed evaluation
7820 of certain values in the Markdown and Org readers are based on a
7821 shared data type capturing the common pattern of both `F` types.
7822 + Add `returnF` (Alexander Krotov).
7823 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
7824 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
7825 + Added `readerAbbreviations` to `ParserState`. Markdown reader
7826 now consults this to determine what is an abbreviation.
7827 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
7828 parsers for markdown and rst was combined into one single
7829 parser `gridTable`, slightly changing parsing behavior of both
7830 parsers: (1) The markdown parser now compactifies block content
7831 cell-wise: pure text blocks in cells are now treated as paragraphs
7832 only if the cell contains multiple paragraphs, and as plain blocks
7833 otherwise. Before, this was true only for single-column tables. (2)
7834 The rst parser now accepts newlines and multiple blocks in header
7836 + Generalize tableWith, gridTableWith (Albert Krewinkel).
7837 The parsing functions `tableWith` and `gridTableWith` are generalized
7838 to work with more parsers. The parser state only has to be an
7839 instance of the `HasOptions` class instead of requiring a concrete
7840 type. Block parsers are required to return blocks wrapped into a
7841 monad, as this makes it possible to use parsers returning results
7842 wrapped in `Future`s.
7844 * `Text.Pandoc.Shared`:
7846 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
7847 + `stringify`: handle Quoted better (#3958). Previously we were losing
7848 the quotation marks in Quoted elements.
7850 * `Text.Pandoc.Writers.Shared`:
7852 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
7853 This allows us to add the variables AFTER using the metadata
7854 to generate a YAML header (in the Markdown writer).
7855 + Added `unsmartify` (previously in RST writer).
7856 Undo literal double curly quotes. Previously we left these.
7857 + Generalize type of `metaToJSON` so it can take a Text. Previously a
7858 String was needed as argument; now any ToJSON instance will do.
7859 + Added `gridTable` (previously in Markdown writer).
7860 + `gridTable`: Refactored to use widths in chars.
7861 + `gridTable`: remove unnecessary extra space in cells.
7862 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
7863 values to become lists.
7864 + Pipe tables: impose minimum cell size (see #3526).
7867### Default template changes
7869 * HTML templates (including EPUB and HTML slide show templates):
7871 + Make default.html5 polyglot markup conformant (John Luke Bentley,
7872 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
7873 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
7874 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
7875 + Regularized CSS in html/epub/html slide templates (#3485).
7876 All templates now include `code{white-space: pre-wrap}`
7877 and CSS for `q` if `--html-q-tags` is used. Previously some templates
7878 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
7880 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
7881 + `default.revealjs`: make `history` default to true.
7882 + `default.revealjs`: use lazy loading (#2283).
7883 + `default.revealjs`: add `mathjax` variable and some conditional code
7884 to use the MathJaX plugin.
7885 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
7886 + `default.dzslides`: Load Google Font using HTTPS by default
7889 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
7892 * LaTeX/Beamer template:
7894 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
7895 `default.beamer` has been removed; beamer now uses the
7896 `default.latex` template. Beamer-specific parts are conditional
7897 on the `beamer` variable set by the writer. Note that
7898 `pandoc -D beamer` will return this (combined) template.
7899 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
7900 Beamer loads `xcolor` rather than `color`, and thus the
7901 `dvipsnames` option doesn't take effect. This also provides a wider
7902 range of colour selections with the `svgnames` option.
7903 + Use starred versions of `xcolor` names (Andrew Dunning).
7904 Prevents changes to documents defined using the `dvipsnames` list (e.g.
7905 `Blue` gives a different result with svgnames enabled).
7906 + Load `polyglossia` after header-includes (#3898). It needs to be
7907 loaded as late as possible.
7908 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
7910 + Don't load `fontspec` before `unicode-math` (over there).
7911 The `unicode-math` package loads `fontspec` so explict loading of
7912 `fontspec` before `unicode-math` is not necessary.
7913 + Use `unicode-math` by default in default.latex template. mathspec will
7914 be used in xelatex if the `mathspec` variable is set; otherwise
7915 unicode-math will be used (Václav Haisman).
7916 + Use `dvipsnames` options when `colorlinks` specified (otherwise
7917 we get an error for `maroon`) (Thomas Hodgson).
7918 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
7919 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
7920 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
7921 clash when loading a package (e.g. `tufte-latex`) that uses
7922 `hyperref` settings different from those in the template.
7923 + Add `natbiboptions` variable (#3768).
7924 + Fix links inside captions in LaTeX output with links-as-notes
7925 (Václav Haisman, #3651). Declare our redefined `\href` robust.
7926 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
7927 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
7928 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
7929 packages. Use existing `CJKmainfont` and `CJKoptions` template
7930 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
7931 and `luatexjapresetoptions` for `luatexja-preset`.
7932 + Added `aspectratio` variable to beamer template (Václav Haisman,
7934 + Modified template.latex to fix XeLaTex being used with tables
7935 (lwolfsonkin, #3661). Reordered `lang` variable handling to
7936 immediately before `bidi`.
7938 * ConTeXt template: Improved font handling: `simplefonts` is now
7939 obsolete in ConTeXt (Pablo Rodríguez).
7942### Documentation improvements
7946 + Add URL for Prince HTML > PDF engine (Ian, #3919).
7947 + Document that content above slide-level will be omitted in
7948 slide shows. See #3460, #2265.
7949 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
7950 + Small clarification in YAML metadata section.
7951 + Document that html4 is technically XHTML 1.0 transitional.
7952 + Remove refs to highlighting-kate (#3672).
7953 + Document ibooks specific epub metadata.
7954 + Clarify that mathml is used for ODT math.
7955 + Mention limitations of Literate Haskell Support (#3410,
7957 + Add documentation of limitations of grid tables (Stephen
7959 + Clarify that meta-json contains transformed values (Jakob Voß,
7960 #3491) Make clear that template variable `meta-json` does not
7961 contain plain text values or JSON output format but field values
7962 transformed to the selected output format.
7966 + Clarify that templates are dual-licensed.
7967 + Clarify that pandoc-types is BSD3 licensed.
7968 + List new files not written by jgm (Albert Krewinkel).
7969 + Update dates in copyright notices (Albert Krewinkel). This follows
7970 the suggestions given by the FSF for GPL licensed software.
7971 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
7975 + Improved instructions for tests with patterns.
7976 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
7980 + Fixed typos (Wandmalfarbe, #3479).
7981 + Add "ask on pandoc-discuss" (Mauro Bieg).
7983 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
7984 end of this document is autogenerated from `data/pandoc.lua`
7985 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
7988 * Add `doc/filters.md`. This is the old scripting tutorial from
7991 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
7992 to using pandoc as a Haskell library.
7995### Build infrastructure improvements
7997 * Removed `data/templates` submodule. Templates are now a subtree
7998 in `data/templates`. This removes the need to do `git submodule
8001 * Renamed `tests` -> `test`.
8003 * Remove `https` flag. Always build with HTTPS support.
8005 * Use `file-embed` instead of `hsb2hs` to embed data files when
8006 `embed_data_files` flag is set. `file-embed` gives us better dependency
8007 tracking: if a data file changes, ghc/stack/cabal know to recompile
8008 the Data module. This also removes `hsb2hs` as a build dependency.
8010 * Add `custom-setup` stanza to pandoc, lowercase field names.
8012 * Add `static` Cabal flag.
8014 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
8015 than -OSX. Changed local names from osx to macos.
8017 * make_macos_package.sh - Use strip to reduce executable size.
8019 * Revised binary linux package. Now a completely static executable
8020 is created, using Docker and alpine. We create both a deb and a
8021 tarball. The old `deb` directory has been replaced with a `linux`
8022 directory. Running `make` in the `linux` directory should
8023 perform the build, putting the binary packages in `artifacts/`.
8025 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
8026 pandoc-data packages will be uninstalled; this package provides
8027 both (#3822). Add latex packages as 'suggested', update
8030 * Remove cpphs build requirement -- it is no longer needed.
8032 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
8034 * Name change OSX -> macOS (ickc, #3869).
8036 * Fix casing of Linux, UNIX, and Windows (ickc).
8038 * `.travis.yml`: create a source dist and do cabal build and test there.
8039 That way we catch errors due to files missing from the data
8040 section of pandoc.cabal.
8044 + Split `make haddock` from `make full`.
8045 + Add BRANCH variable for winpkg.
8046 + Add `lint` target.
8047 + Improve `make full`. Disable optimizations.
8048 Build everything, inc. trypandoc and benchmarks. Use parallel build.
8049 + Allow `make test` to take `TESTARGS`.
8051 * Added new command tests (`Tests.Command`), using small text files
8052 in `test/command/`. Any files added in this directory will be treated
8053 as shell tests (see smart.md for an example). This makes it very easy
8054 to add regression tests etc.
8056 * Test fixes so we can find data files. In old tests & command tests,
8057 we now set the environment variable `pandoc_datadir`. In lua tests,
8058 we set the datadir explicitly.
8060 * Refactored `compareOutput` in docx writer test.
8062 * Consolidated some common functions in `Tests.Helper`.
8064 * Small change to unbalanced bracket test to speed up test suite.
8066 * Speed up Native writer quickcheck tests.
8068 * Use tasty for tests rather than test-framework.
8070 * Add simple Emacs mode to help with Pandoc templates editing.
8071 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
8074## pandoc 1.19.2.4 (2017-09-10)
8076 * Add dependencies on texmath and skylighting to the executable.
8077 This is needed for dependency version numbers to be available,
8080## pandoc 1.19.2.3 (2017-09-09)
8082 * Add CPP to Setup.hs so it works with Cabal >= 2 and < 2.
8084## pandoc 1.19.2.2 (2017-09-08)
8086 * Fix build with GHC 8.2.1 (#3876, Peter Simons). Setup.hs does not
8087 compile with Cabal 2.x, so we require an earlier version via
8088 setup-depends. The following packages need newer versions with
8089 GHC 8.2.1 and had their constraints relaxed accordingly:
8090 executable-path, process, syb, and time.
8092## pandoc 1.19.2.1 (2017-01-31)
8094 * Require skylighting >= 0.1.1.4.
8095 * Adjust test output for skylighting version.
8096 * Relax upper bounds on blaze-html and blaze-markup.
8098## pandoc 1.19.2 (2017-01-29)
8100 * Use skylighting library instead of highlighting-kate for syntax
8101 highlighting. Skylighting is faster and more accurate (#3363).
8102 Later we'll be able to add features like warning messages, dynamic
8103 loading of xml syntax definitions, and dynamic loading of themes.
8105 * Added a new highlight style, `breezeDark`.
8107 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
8108 This allows more languages to be used when using the `--listings`
8111 * OpenDocument writer:
8113 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
8114 + Don't profilerate text styles unnecessarily (#3371).
8115 This change makes the writer create only as many temporary
8116 text styles as are absolutely necessary. It also consolidates
8117 adjacent nodes with the same style.
8119 * Org reader (Albert Krewinkel):
8121 + Allow short hand for single-line raw blocks (Albert Krewinkel,
8122 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
8123 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
8124 + Accept org-ref citations followed by commas (Albert Krewinkel).
8125 Bugfix for an issue which, whenever the citation was immediately
8126 followed by a comma, prevented correct parsing of org-ref citations.
8127 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
8128 `/*strong and emphasized*/`) was interpreted incorrectly in that the
8129 inner markup was not recognized.
8130 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
8132 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
8133 In the past, the docx reader wrote an empty header as an empty list. It
8134 should have the same width as a row (and be filled with empty cells).
8138 + Improved handling of display math (#3362). Sometimes display math is
8139 indented with more than one colon. Previously we handled these cases
8140 badly, generating definition lists and missing the math.
8141 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
8142 behavior when the smart option is parsed to match other readers'
8147 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
8148 (#3341). Previously this did not properly enable escaped line breaks.
8149 + Disallow space between inline code and attributes (#3326, #3323,
8152 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
8154 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
8156 * LaTeX writer: allow tables with empty cells to count as "plain."
8157 This addresses a problem of too-wide tables when empty cells
8158 are used. Thanks to Joost Kremers for reporting the issue.
8160 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
8161 Unprefixed numbers where used by older org-mode versions, but are no
8164 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
8167 * Markdown writer: Fix display math with `--webtex` (#3298).
8169 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
8174 + default.latex: Moved geometry after hyperref (Václav Haisman).
8175 Otherwise PDF sizes can be wrong in some circumstances.
8176 + Copied a few changes from default.latex to default.beamer
8178 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
8179 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
8180 that contain verbatim in notes (#3361). (Note: the beamer template
8181 was updated to match the LaTeX template, but at this point verbatim
8182 in notes seems not to work in beamer.)
8183 + default.latex: Allow passing `microtypeoptions` to microtype
8185 + default.latex: Add hyphen option to url package.
8186 + default.docbook5: Fix namespace declarations (Mauro Bieg).
8188 * Moved `make_osx_package.sh` to `osx/` directory.
8190 * Travis continuous integration:
8192 + Fix false positives with dist build.
8193 + Speed improvements (Kolen Cheung, #3304, #3357).
8197 + Clarify that blank space is needed around footnotes (#3352).
8198 + Fixed typo (#3351, Alexey Rogechev).
8199 + Note that `--wrap=auto` does not work in HTML output.
8200 + Default `--columns` width is 72, not 80.
8201 + Fixed broken links (#3316, Kolen Cheung).
8202 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
8206 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
8207 + Added instructions for extracting binary from OSX, Windows packages.
8209 * CONTRIBUTING.md: Describe labels currently used in issue tracker
8210 (Albert Krewinkel). The labels have changed over time, the list of
8211 labels is updated to reflect the current set of labels used in the
8214 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
8216 * Bumped version bounds for dependencies.
8219## pandoc 1.19.1 (2016-12-10)
8221 * Set `PANDOC_VERSION` environment variable for filters (#2640).
8222 This allows filters to check the pandoc version that produced
8223 the JSON they are receiving.
8225 * Docx reader: Ensure one-row tables don't have header (#3285,
8226 Jesse Rosenthal). Tables in MS Word are set by default to have
8227 special first-row formatting, which pandoc uses to determine whether
8228 or not they have a header. This means that one-row tables will, by
8229 default, have only a header -- which we imagine is not what people
8230 want. This change ensures that a one-row table is not understood to
8231 be a header only. Note that this means that it is impossible to
8232 produce a header-only table from docx, even though it is legal
8233 pandoc. But we believe that in nearly all cases, it will be an
8234 accidental (and unwelcome) result
8238 + Fixed some bad regressions in HTML table parser (#3280).
8239 This regression leads to the introduction of empty rows
8240 in some circumstances.
8241 + Understand `style=width:` as well as `width` in `col` (#3286).
8245 + Print warnings when keys, substitition, notes not found.
8246 Previously the parsers failed and we got raw text. Now we get a
8247 link with an empty URL, or empty inlines in the case of a note or
8250 + Fix hyperlink aliases (#3283).
8252 * Man writer: Ensure that periods are escaped at beginning of line
8255 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
8256 (#3272, Albert Krewinkel). Fix interaction of top-level
8257 divisions `part` or `chapter` with unnumbered headers when
8258 emitting LaTeX. Headers are ensured to be written using
8259 stared commands (like `\subsection*{}`).
8261 * LaTeX template: use comma not semicolon to separate keywords for
8262 `pdfkeywords`. Thanks to Wandmalfarbe.
8264 * Markdown writer: Fixed incorrect word wrapping (#3277).
8265 Previously pandoc would sometimes wrap lines too early due to
8268 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
8269 possible to insert escape codes for content that needs escaping at the
8270 beginning of a line.
8272 * Removed old MathMLInHTML.js from 2004, which should no longer
8273 be needed for MathML with modern browsers.
8275 * Fixed tests with dynamic linking (#2709).
8277 * Makefile: Use stack instead of cabal for targets. This is just
8278 a convenience for developers.
8280 * Fixed bash completion of filenames with space (#2749).
8282 * MANUAL: improved documentation on how to create a custom
8285 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
8287## pandoc 1.19 (2016-12-01)
8289 * Changed resolution of filter paths.
8291 + We now first treat the argument of `--filter` as a full (absolute
8292 or relative) path, looking for a program there. If it's found, we
8294 + If not, and if it is a simple program name or a relative path, we
8295 try resolving it relative to `$DATADIR/filters`.
8296 + If this fails, then we treat it as a program name and look in the
8298 + Removed a hardcoded '/' that may have caused problems with
8301 Previously if you did `--filter foo` and you had `foo` in your path and
8302 also an executable `foo` in your working directory, the one in the path
8303 would be used. Now the one in the working directory is used.
8305 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
8306 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
8307 `foo/bar.hs` relative to the working directory.
8309 * Allow `file://` URIs as arguments (#3196). Also improved default reader
8310 format detection. Previously with a URI ending in .md or .markdown,
8311 pandoc would assume HTML input. Now it treats these as markdown.
8313 * Allow to overwrite top-level division type heuristics (#3258,
8314 Albert Krewinkel). Pandoc uses heuristics to determine the most
8315 reasonable top-level division type when emitting LaTeX or
8316 Docbook markup. It is now possible to overwrite this implicitly set
8317 top-level division via the `top-level-division` command line parameter.
8319 * Text.Pandoc.Options \[API changes\]:
8321 + Removed `writerStandalone` field in `WriterOptions`, made
8322 `writerTemplate` a `Maybe` value. Previously setting
8323 `writerStandalone = True` did nothing unless a template was provided
8324 in writerTemplate. Now a fragment will be generated if
8325 `writerTemplate` is `Nothing`; otherwise, the specified template
8326 will be used and standalone output generated.
8327 + `Division` has been renamed `TopLevelDivision` (#3197). The
8328 `Section`, `Chapter`, and `Part` constructors were renamed to
8329 `TopLevelSection`, `TopLevelChapter`, and
8330 `TopLevelPart`, respectively. An additional `TopLevelDefault`
8331 constructor was added, which is now also the new default value of
8332 the `writerTopLevelDivision` field in `WriterOptions`.
8334 * Improved error if they give wrong arg to `--top-level-division`.
8336 * Use new module from texmath to lookup MS font codepoints in Docx reader.
8337 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
8338 lives in texmath (0.9).
8340 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
8341 when the qnames lacked the docbook namespace URI.
8345 + Improved table parsing (#3027). We now check explicitly for non-1
8346 rowspan or colspan attributes, and fail when we encounter them.
8347 Previously we checked that each row had the same number of cells,
8348 but that could be true even with rowspans/colspans. And there are
8349 cases where it isn't true in tables that we can handle fine -- e.g.
8350 when a tr element is empty. So now we just pad rows with empty cells
8352 + Treat `<math>` as MathML by default unless something else is
8353 explicitly specified in xmlns. Provided it parses as MathML,
8354 of course. Also fixed default which should be to inline math if no
8355 display attribute is used.
8356 + Only treat "a" element as link if it has href (#3226). Otherwise
8359 * Docx reader (Jesse Rosenthal):
8361 + Add a placeholder value for CHART. We wrap `[CHART]` in a
8362 `<span class="chart">`. Note that it maps to inlines because, in
8363 docx, anything in a drawing tag can be part of a larger paragraph.
8364 + Be more specific in parsing images We not only want `w:drawing`,
8365 because that could also include charts. Now we specify
8366 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
8367 a first step toward allowing other sorts of drawing data as well.
8368 + Abstract out function to avoid code repetition.
8369 + Update tests for img title and alt (#3204).
8370 + Handle Alt text and titles in images. We use the "description" field
8371 as alt text and the "title" field as title. These can be accessed
8372 through the "Format Picture" dialog in Word.
8373 + Docx reader utils: handle empty namespace in `elemName`. Previously,
8374 if given an empty namespace `(elemName ns "" "foo")` `elemName`
8375 would output a QName with a `Just ""` namespace. This is never what
8376 we want. Now we output a `Nothing`. If someone *does* want a
8377 `Just ""` in the namespace, they can enter the QName
8380 * ODT reader/writer:
8382 + Inline code when text has a special style (Hubert Plociniczak). When
8383 a piece of text has a text `Source_Text` then we assume that this is
8384 a piece of the document that represents a code that needs to
8385 be inlined. Adapted the writer to also reflect that change.
8386 Previously it was just writing a 'preformatted' text using a
8387 non-distinguishable font style. Code blocks are still not recognized
8388 by the ODT reader. That's a separate issue.
8389 + Infer table's caption from the paragraph (#3224,
8390 Hubert Plociniczak). ODT's reader always put empty captions for the
8391 parsed tables. This commit
8393 1. checks paragraphs that follow the table definition
8394 2. treats specially a paragraph with a style named 'Table'
8395 3. does some postprocessing of the paragraphs that combines tables
8396 followed immediately by captions
8398 The ODT writer used the `TableCaption` style for the caption
8399 paragraph. This commit follows the OpenOffice approach which allows
8400 for appending captions to table but uses a built-in style named
8401 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
8402 should change the style's name from `TableCaption` to `Table`.
8404 * ODT reader: Infer tables' header props from rows (#3199,
8405 Hubert Plociniczak). ODT reader simply provided an empty header list
8406 which meant that the contents of the whole table, even if not empty, was
8407 simply ignored. While we still do not infer headers we at least have to
8408 provide default properties of columns.
8412 + Allow reference link labels starting with `@...` if `citations`
8413 extension disabled (#3209). Example: in
8417 `link text` isn't hyperlinked because `[@a]` is parsed as
8418 a citation. Previously this happened whether or not the `citations`
8419 extension was enabled. Now it happens only if the `citations`
8420 extension is enabled.
8421 + Allow alignments to be specified in Markdown grid tables. For
8424 +-------+---------------+--------------------+
8425 | Right | Left | Centered |
8426 +=========:+:=================+:=============:+
8427 | Bananas | $1.34 | built-in wrapper |
8428 +-------+---------------+--------------------+
8430 + Allow Small Caps elements to be created using bracketed spans (as
8431 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
8435 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
8436 Fixed an error which came up, for example, with `\vspace` inside
8437 a caption. (Captions expect inlines.)
8438 + Improved table handling. We can now parse all of the tables emitted
8439 by pandoc in our tests. The only thing we don't get yet are
8440 alignments and column widths in more complex tables. See #2669.
8441 + Limited support for minipage.
8442 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
8443 + Handle BVerbatim from fancyvrb (#3203).
8444 + Handle hungarumlaut (#3201).
8445 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
8446 (#3184). This allows use of things like `\only<2,3>{my content}` in
8447 Markdown that is going to be converted to beamer.
8449 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
8450 overly long code will appear on every slide.
8452 * Org reader (Albert Krewinkel):
8454 + Respect column width settings (#3246). Table column properties can
8455 optionally specify a column's width with which it is displayed in
8456 the buffer. Some exporters, notably the ODT exporter in org-mode
8457 v9.0, use these values to calculate relative column widths. The org
8458 reader now implements the same behavior. Note that the org-mode
8459 LaTeX and HTML exporters in Emacs don't support this feature yet,
8460 which should be kept in mind by users who use the column
8462 + Allow HTML attribs on non-figure images (#3222). Images which are
8463 the only element in a paragraph can still be given HTML attributes,
8464 even if the image does not have a caption and is hence not a figure.
8465 The following will add set the `width` attribute of the image to
8468 +ATTR\_HTML: :width 50%
8469 =======================
8471 \[\[file:image.jpg\]\]
8473 + Support `ATTR_HTML` for special blocks (#3182). Special
8474 blocks (i.e. blocks with unrecognized names) can be prefixed with an
8475 `ATTR_HTML` block attribute. The attributes defined in that
8476 meta-directive are added to the `Div` which is used to represent the
8478 + Support the `todo` export option. The `todo` export option allows to
8479 toggle the inclusion of TODO keywords in the output. Setting this to
8480 `nil` causes TODO keywords to be dropped from headlines. The default
8481 is to include the keywords.
8482 + Add support for todo-markers. Headlines can have optional
8483 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
8484 or `#+TYP_TODO` meta directive. Multiple such directives can be
8485 given, each adding a new set of recognized todo-markers. If no
8486 custom todo-markers are defined, the default `TODO` and `DONE`
8487 markers are used. Todo-markers are conceptually separate from
8488 headline text and are hence excluded when autogenerating
8489 headline IDs. The markers are rendered as spans and labelled with
8490 two classes: One class is the markers name, the other signals the
8491 todo-state of the marker (either `todo` or `done`).
8495 + Use `\autocites*` when "suppress-author" citation used.
8496 + Ensure that simple tables have simple cells (#2666). If cells
8497 contain more than a single Plain or Para, then we need to set
8498 nonzero widths and put contents into minipages.
8499 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
8503 + Fix calculation of column widths for aligned multiline tables
8504 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
8505 usage for tables when `--columns` is set in such a way that cells
8506 must be very tiny. Now cells are guaranteed to be big enough so that
8507 single words don't need to line break, even if this pushes the line
8508 length above the column width.
8509 + Use bracketed form for native spans when `bracketed_spans`
8511 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
8512 sublist got rendered with a blank line after, while a tight ordered
8513 sublist did not. Now we don't get the blank line in either case.
8514 + Fix escaping of spaces in super/subscript (#3225). Previously two
8515 backslashes were inserted, which gave a literal backslash.
8516 + Adjust widths in Markdown grid tables so that they match
8521 + Give full detail when there are errors converting tex math.
8522 + Handle title text in images (Jesse Rosenthal). We already handled
8523 alt text. This just puts the image "title" into the docx
8525 + Fixed XML markup for empty cells (#3238). Previously the Compact
8526 style wasn't being applied properly to empty cells.
8530 + Updated `renderHtml` import from blaze-html.
8532 * Text.Pandoc.Pretty:
8534 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
8535 caused spurious blank lines in grid tables when we had things like
8536 `blankline $$ blankline`.
8537 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
8538 + Added error message for illegal call to `block` (Björn Peemöller).
8540 * Text.Pandoc.Shared:
8542 + Put `warn` in MonadIO.
8543 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
8544 URL starts with `//` and there is no "base URL" (as there would be
8545 if a URL were used on the command line), then default to http:.
8547 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
8549 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
8550 fixes a crash with `pandoc --version` on unusual systems with no real
8551 user (e.g. SQL Server 2016).
8553 * Added weigh-pandoc for memory usage diagnostics (#3169).
8555 * Use correct mime types for woff and woff2 (#3228).
8557 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
8559 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
8560 1.18 section where it belongs.
8562 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
8565 * Further revisions to manual for `--version` changes (#3244).
8569## pandoc 1.18 (2016-10-26)
8571 * Added `--list-input-formats`, `--list-output-formats`,
8572 `--list-extensions`, `--list-highlight-languages`, and
8573 `--list-highlight-styles` (#3173). Removed list of highlighting
8574 languages from `--version` output. Removed list of input and output
8575 formats from default `--help` output.
8577 * Added `--reference-location=block|section|document` option
8578 (Jesse Rosenthal). This determines whether Markdown link references
8579 and footnotes are placed at the end of the document, the end of the
8580 section, or the end of the top-level block.
8582 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
8583 This determines what a level-1 header corresponds to in LaTeX,
8584 ConTeXt, DocBook, and TEI output. The default is `section`.
8585 The `--chapters` option has been deprecated in favor of
8586 `--top-level-division=chapter`.
8588 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
8589 is now used in parsing RST and Markdown line blocks, DocBook
8590 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
8591 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
8592 are handled specially in the following ouput formats: AsciiDoc
8593 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
8594 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
8595 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
8596 other output formats, a paragraph with hard linebreaks is emitted.
8598 * Allow binary formats to be written to stdout (but not to tty) (#2677).
8599 Only works on posix, since we use the unix library to check whether
8600 output is to tty. On Windows, pandoc works as before and always requires
8601 an output file parameter for binary formats.
8603 * Changed JSON output format (Jesse Rosenthal). Previously we used
8604 generically generated JSON, but this was subject to change depending
8605 on the version of aeson pandoc was compiled with. To ensure stability,
8606 we switched to using manually written ToJSON and FromJSON
8607 instances, and encoding the API version. **Note:** pandoc filter
8608 libraries will need to be revised to handle the format change.
8609 Here is a summary of the essential changes:
8611 + The toplevel JSON format is now `{"pandoc-api-version" :
8612 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
8613 instead of `[{"unMeta": META}, [BLOCKS]]`.
8614 Decoding fails if the major and minor version numbers don't
8616 + Leaf nodes no longer have an empty array for their "c" value.
8617 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
8618 rather than `{"t":"Space","c":[]}` as before.
8620 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
8621 module to pandoc-types (Jesse Rosenthal). This makes it easier
8622 to use QuickCheck with pandoc types outside of pandoc itself.
8624 * Add `bracketed_spans` Markdown extension, enabled by default
8625 in pandoc `markdown`. This allows you to create a native span
8626 using this syntax: `[Here is my span]{#id .class key="val"}`.
8628 * Added `angle_brackets_escapable` Markdown extension (#2846).
8629 This is needed because github flavored Markdown has a slightly
8630 different set of escapable symbols than original Markdown;
8631 it includes angle brackets.
8633 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
8635 * Print highlighting-kate version in `--version`.
8637 * `Text.Pandoc.Options`:
8639 + `Extension` has new constructors `Ext_brackted_spans` and
8640 `Ext_angle_brackets_escapable` [API change].
8641 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
8642 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
8645 * `--filter`: we now check `$DATADIR/filters` for filters before
8646 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
8647 Voß for the idea). Filters placed in this directory need not
8648 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
8649 or `.rb`, pandoc will run the right interpreter.
8651 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
8652 default (Kolen Cheung).
8654 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
8656 * Execute .js filters with node (Jakob Voß).
8660 + Support `bc..` extended code blocks (#3037). Also, remove trailing
8661 newline in code blocks (consistently with Markdown reader).
8662 + Improve table parsing. We now handle cell and row attributes, mostly
8663 by skipping them. However, alignments are now handled properly.
8664 Since in pandoc alignment is per-column, not per-cell, we
8665 try to devine column alignments from cell alignments.
8666 Table captions are also now parsed, and textile indicators
8667 for thead and tfoot no longer cause parse failure. (However,
8668 a row designated as tfoot will just be a regular row in pandoc.)
8669 + Improve definition list parsing. We now allow multiple terms
8670 (which we concatenate with linebreaks). An exponential parsing
8671 bug (#3020) is also fixed.
8672 + Disallow empty URL in explicit link (#3036).
8676 + Use Div instead of BlockQuote for admonitions (#3031).
8677 The Div has class `admonition` and (if relevant) one of the
8678 following: `attention`, `caution`, `danger`, `error`, `hint`,
8679 `important`, `note`, `tip`, `warning`. **Note:** This will change
8680 the rendering of some RST documents! The word ("Warning", "Attention",
8681 etc.) is no longer added; that must be done with CSS or a filter.
8682 + A Div is now used for `sidebar` as well.
8683 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
8684 space before a footnote marker. We discard those spaces so that footnotes
8685 will be adjacent to the text that comes before it. This is in line with
8686 what rst2latex does.
8687 + Allow empty lines when parsing line blocks (Albert Krewinkel).
8691 + Allow empty lines when parsing line blocks (Albert Krewinkel).
8692 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
8696 + More robust parsing of unknown environments (#3026).
8697 We no longer fail on things like `^` inside options for tikz.
8698 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
8699 Some custom environments give these a meaning, so we should try not to
8700 fall over when we encounter them.
8701 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
8705 + Fix for unquoted attribute values in mediawiki tables (#3053).
8706 Previously an unquoted attribute value in a table row
8707 could cause parsing problems.
8708 + Improved treatment of verbatim constructions (#3055).
8709 Previously these yielded strings of alternating Code and Space
8710 elements; we now incorporate the spaces into the Code. Emphasis
8711 etc. is still possible inside these.
8712 + Properly interpret XML tags in pre environments (#3042). They are meant
8713 to be interpreted as literal text.
8715 * EPUB reader: don't add root path to data: URIs (#3150).
8716 Thanks to @lep for the bug report and patch.
8718 * Org reader (Albert Krewinkel):
8720 + Preserve indentation of verse lines (#3064). Leading spaces in verse
8721 lines are converted to non-breaking spaces, so indentation is preserved.
8722 + Ensure image sources are proper links. Image sources as those in plain
8723 images, image links, or figures, must be proper URIs or relative file
8724 paths to be recognized as images. This restriction is now enforced
8725 for all image sources. This also fixes the reader's usage of uncleaned
8726 image sources, leading to `file:` prefixes not being deleted from
8727 figure images. Thanks to @bsag for noticing this bug.
8728 + Trim verse lines properly (Albert Krewinkel).
8729 + Extract meta parsing code to module. Parsing of meta-data is well
8730 separable from other block parsing tasks. Moving into new module to
8731 get small files and clearly arranged code.
8732 + Read markup only for special meta keys. Most meta-keys should be read
8733 as normal string values, only a few are interpreted as marked-up text.
8734 + Allow multiple, comma-separated authors. Multiple authors can be
8735 specified in the `#+AUTHOR` meta line if they are given as a
8736 comma-separated list.
8737 + Give precedence to later meta lines. The last meta-line of any given
8738 type is the significant line. Previously the value of the first line
8739 was kept, even if more lines of the same type were encounterd.
8740 + Read LaTeX_header as header-includes. LaTeX-specific header commands
8741 can be defined in `#+LaTeX_header` lines. They are parsed as
8742 format-specific inlines to ensure that they will only show up in LaTeX
8744 + Set documentclass meta from LaTeX_class.
8745 + Set classoption meta from LaTeX_class_options.
8746 + Read HTML_head as header-includes. HTML-specific head content can be
8747 defined in `#+HTML_head` lines. They are parsed as format-specific
8748 inlines to ensure that they will only show up in HTML output.
8749 + Respect `author` export option. The `author` option controls whether
8750 the author should be included in the final markup. Setting
8751 `#+OPTIONS: author:nil` will drop the author from the final meta-data
8753 + Respect `email` export option. The `email` option controls whether the
8754 email meta-field should be included in the final markup. Setting
8755 `#+OPTIONS: email:nil` will drop the email field from the final
8757 + Respect `creator` export option. The `creator` option controls whether
8758 the creator meta-field should be included in the final markup. Setting
8759 `#+OPTIONS: creator:nil` will drop the creator field from the final
8760 meta-data output. Org-mode recognizes the special value `comment` for
8761 this field, causing the creator to be included in a comment. This is
8762 difficult to translate to Pandoc internals and is hence interpreted the
8763 same as other truish values (i.e. the meta field is kept if it's
8765 + Respect unnumbered header property (#3095). Sections the `unnumbered`
8766 property should, as the name implies, be excluded from the automatic
8767 numbering of section provided by some output formats. The Pandoc
8768 convention for this is to add an "unnumbered" class to the header. The
8769 reader treats properties as key-value pairs per default, so a special
8770 case is added to translate the above property to a class instead.
8771 + Allow figure with empty caption (Albert Krewinkel, #3161).
8772 A `#+CAPTION` attribute before an image is enough to turn an image into
8773 a figure. This wasn't the case because the `parseFromString` function,
8774 which processes the caption value, would fail on empty values. Adding
8775 a newline character to the caption value fixes this.
8779 + Use XML convenience functions (Jesse Rosenthal).
8780 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
8781 the code a lot cleaner than the original XML.Light functions, but they
8782 had been used inconsistently. This puts them in wherever applicable.
8783 + Handle anchor spans with content in headers. Previously, we would only
8784 be able to figure out internal links to a header in a docx if the
8785 anchor span was empty. We change that to read the inlines out of the
8786 first anchor span in a header.
8787 + Let headers use exisiting id. Previously we always generated an id for
8788 headers (since they wouldn't bring one from Docx). Now we let it use an
8789 existing one if possible. This should allow us to recurs through anchor
8791 + Use all anchor spans for header ids. Previously we only used the first
8792 anchor span to affect header ids. This allows us to use all the anchor
8793 spans in a header, whether they're nested or not (#3088).
8794 + Test for nested anchor spans in header. This ensures that anchor spans
8795 in header with content (or with other anchor spans inside) will resolve
8796 to links to a header id properly.
8798 * ODT reader (Hubert Plociniczak)
8800 + Include list's starting value. Previously the starting value of
8801 the lists' items has been hardcoded to 1. In reality ODT's list
8802 style definition can provide a new starting value in one of its
8804 + Infer caption from the text following the image.
8805 Frame can contain other frames with the text boxes.
8806 + Add `fig:` to title for Image with a caption (as expected
8807 by pandoc's writers).
8808 + Basic support for images in ODT documents.
8809 + Don't duplicate text for anchors (#3143). When creating an anchor
8810 element we were adding its representation as well as the original
8811 content, leading to text duplication.
8815 + Include an anchor element when a div or span has an id (#3102).
8816 Note that DocBook does not have a class attribute, but at least this
8817 provides an anchor for internal links.
8821 + Don't use * for unnumbered paragraph, subparagraph. The starred
8822 variants don't exist. This helps with part of #3058...it gets rid of
8823 the spurious `*`s. But we still have numbers on the 4th and 5th level
8825 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
8826 Otherwise they can cause unintended ligatures like `` ?` ``.
8827 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
8828 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
8829 This allows figure placement defaults to be changed by the user
8832 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
8833 TEI doesn't have `<book>` elements but only generic `<divN>` division
8834 elements. Checking the template for a trailing `</book>` is nonsensical.
8836 * MediaWiki writer: transform filename with underscores in images (#3052).
8837 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
8838 for internal links, but it also needs to happen for images.
8840 * ICML writer: replace partial function (!!) in table handling (#3175,
8843 * Man writer: allow section numbers that are not a single digit (#3089).
8845 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
8846 (#3068). In AsciiDoc, you must use a special form of emphasis
8847 (double `__`) for intraword emphasis. Pandoc was previously using
8848 this more than necessary.
8850 * EPUB writer: use stringify instead of plain writer for metadata
8851 (#3066). This means that underscores won't be used for emphasis,
8852 or CAPS for bold. The metadata fields will just have unadorned
8857 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
8858 with a `custom-style` key in the attributes will apply the corresponding
8859 key to the contained blocks or inlines.
8860 + Add ReaderT env to the docx writer (Jesse Rosenthal).
8861 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
8862 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
8863 on the command line. For finer-grained control, you can set
8864 the `dir` attribute in Div or Span elements.
8866 * Org writer (Albert Krewinkel):
8868 + Remove blank line after figure caption. Org-mode only treats an image
8869 as a figure if it is directly preceded by a caption.
8870 + Ensure blank line after figure. An Org-mode figure should be surrounded
8871 by blank lines. The figure would be recognized regardless, but images
8872 in the following line would unintentionally be treated as figures as
8874 + Ensure link targets are paths or URLs. Org-mode treats links as
8875 document internal searches unless the link target looks like a URL or
8876 file path, either relative or absolute. This change ensures that this
8878 + Translate language identifiers. Pandoc and Org-mode use different
8879 programming language identifiers. An additional translation between
8880 those identifiers is added to avoid unexpected behavior. This fixes a
8881 problem where language specific source code would sometimes be output
8883 + Drop space before footnote markers (Albert Krewinkel, #3162).
8884 The writer no longer adds an extra space before footnote markers.
8888 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
8889 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
8891 + Check for the `raw_html` extension before emitting a raw HTML block.
8892 + Abstract out note/ref function (Jesse Rosenthal).
8893 + Add ReaderT monad for environment variables (Jesse Rosenthal).
8895 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
8896 subtitle, author, date (#3119). Note that, as a result of this change,
8897 authors may need to update CSS.
8899 * revealjs template: Added `notes-server` option
8900 (jgm/pandoc-templates#212, Yoan Blanc).
8904 + Restore whitespace between paragraphs. This was
8905 a regression in the last release (jgm/pandoc-templates#207).
8906 + Added `themeoptions` variable (Carsten Gips).
8907 + Added `beamerarticle` variable. This causes the `beamerarticle`
8908 package to be loaded in beamer, to produce an article from beamer
8909 slides. (Carsten Gips)
8910 + Added support for `fontfamilies` structured variable
8912 + Added hypersetup options (Jake Zimmerman).
8916 + Added dummy definition for `\institute`.
8917 This isn't a standard command, and we want to avoid a crash when
8918 `institute` is used with the default template.
8919 + Define default figure placement (Václav Haisman), since pandoc
8920 no longer includes `[htbp]` for figures. Users with custom templates
8921 will want to add this. See #3103.
8922 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
8925 * Moved template compiling/rendering code to a separate library.
8926 `doctemplates`. This allows the pandoc templating system to be
8929 * Text.Pandoc.Error: Fix out of index error in `handleError`
8930 (Matthew Pickering). The fix is to not try to show the exact line when
8931 it would cause an out-of-bounds error as a result of included files.
8933 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
8935 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
8936 addresses. Technically `**@user` is a valid email address, but if we
8937 allow things like this, we get bad results in markdown flavors
8938 that autolink raw email addresses (see #2940). So we exclude a few
8939 valid email addresses in order to avoid these more common bad cases.
8941 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
8942 emit the alt text, emphasized. This accords with what the ODT writer
8943 currently does. The user will still get a warning about a nonexistent
8946 * Fix example in API documentation (#3176, Thomas Weißschuh).
8948 * Tell where to get tarball in INSTALL (#3062).
8950 * Rename README to MANUAL.txt and add GitHub-friendly README.md
8951 (Albert Krewinkel, Kolen Cheung).
8953 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
8957 + Put note on structured vars in separate paragraph (#2148, Albert
8958 Krewinkel). Make it clearer that structured author variables require a
8960 + Note that `--katex` works best with `html5` (#3077).
8961 + Fix the LaTeX and EPUB links in manual (Morton Fox).
8962 + Document `biblio-title` variable.
8964 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
8966 * Update KaTeX to v0.6.0 (Kolen Cheung).
8968 * Allow latest dependencies.
8970 * Use texmath 0.8.6.6 (#3040).
8972 * Allow http-client 0.4.30, which is the version in stackage lts.
8973 Previously we required 0.5.
8974 Remove CPP conditionals for earlier versions.
8976 * Remove support for GHC < 7.8 (Jesse Rosenthal).
8978 + Remove Compat.Monoid.
8979 + Remove an inline monad compatibility macro.
8980 + Remove Text.Pandoc.Compat.Except.
8981 + Remove directory compat.
8982 + Change constraint on mtl.
8983 + Remove unnecessary CPP condition in UTF8.
8984 + Bump base lower bound to 4.7.
8985 + Remove 7.6 build from .travis.yaml.
8986 + Bump supported ghc version in CONTRIBUTING.md.
8987 + Add note about GHC version support to INSTALL.
8988 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
8989 + Remove TagSoup compat.
8990 + Add EOL note to time compat module. Because time 1.4 is a boot library
8991 for GHC 7.8, we will support the compatibility module as long as we
8992 support 7.8. But we should be clear about when we will no longer need
8994 + Remove blaze-html CPP conditional.
8995 + Remove unnecessary CPP in custom Prelude.
8997## pandoc 1.17.2 (2016-07-17)
8999 * Added Zim Wiki writer, template and tests. `zimwiki` is now
9000 a valid output format. (Alex Ivkin)
9002 * Changed email-obfuscation default to no obfuscation (#2988).
9003 + `writerEmailObfuscation` in `defaultWriterOptions` is now
9005 + the default for the command-line `--email-obfuscation` option is
9008 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
9012 + Support arbitrary raw inlines (Albert Krewinkel).
9013 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
9014 parlance) to be included as `@@format:raw foreign format text@@`.
9015 + Improve Div handling (Albert Krewinkel). Div blocks handling is
9016 changed to make the output look more like idiomatic org mode:
9017 - Div-wrapped content is output as-is if the div's attribute is the
9019 - Div containers with an id but neither classes nor key-value pairs
9020 are unwrapped and the id is added as an anchor.
9021 - Divs with classes associated with greater block elements are
9022 wrapped in a `#+BEGIN`...`#+END` block.
9023 - The old behavior for Divs with more complex attributes is kept.
9025 * HTML writer: Better support for raw LaTeX environments (#2758).
9026 Previously we just passed all raw TeX through when MathJax
9027 was used for HTML math. This passed through too much.
9028 With this patch, only raw LaTeX environments that MathJax
9029 can handle get passed through.
9030 This patch also causes raw LaTeX environments to be treated
9031 as math, when possible, with MathML and WebTeX output.
9033 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
9034 (#2993). Markdown line breaks involve a newline, and simple and pipe
9035 tables can't contain one.
9037 * Make --webtex work with the Markdown writer (#1177).
9038 This is a convenient option for people using
9039 websites whose Markdown flavors don't provide for math.
9043 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
9044 We treat display math like block quotes, and apply FirstParagraph style
9045 to paragraphs that follow them. These can be styled as the user
9046 wishes. (But, when the user is using indentation, this allows for
9047 paragraphs to continue after display math without indentation.)
9048 + Use actual creation time as doc prop (Jesse Rosenthal).
9049 Previously, we had used the user-supplied date, if available, for Word's
9050 document creation metadata. This could lead to weird results, as in
9051 cases where the user post-dates a document (so the modification might be
9052 prior to the creation). Here we use the actual computer time to set the
9057 + Don't URI-escape image source (#2825). Usually this is a local file,
9058 and replacing spaces with `%20` ruins things.
9059 + Allow 'standout' as a beamer frame option (#3007).
9060 `## Slide title {.standout}`.
9062 * RST reader: Fixed links with no explicit link text. The link
9063 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
9064 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
9065 Closes Debian #828167 -- reported by Christian Heller.
9069 + Fixed attributes (#2984). Attributes can't be followed by
9070 a space. So, `_(class)emph_` but `_(noclass) emph_`.
9071 + Fixed exponential parsing bug (#3020).
9072 + Fix overly aggressive interpretation as images (#2998).
9073 Spaces are not allowed in the image URL in textile.
9077 + Fix `\cite` so it is a NormalCitation not AuthorInText.
9078 + Strip off double quotes around image source if present (#2825).
9079 Avoids interpreting these as part of the literal filename.
9083 + Add semicolon to list of special chars (Albert Krewinkel)
9084 Semicolons are used as special characters in citations syntax. This
9085 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
9086 suffix]`. Previously, parsing would have failed unless there was a space
9087 or other special character as the last <prefix> character.
9088 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
9089 A specification for an official Org-mode citation syntax was drafted by
9090 Richard Lawrence and enhanced with the help of others on the orgmode
9091 mailing list. Basic support for this citation style is added to the
9093 + Support arbitrary raw inlines (Albert Krewinkel).
9094 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
9095 parlance) to be included as `@@format:raw foreign format text@@`.
9096 + Remove partial functions (Albert Krewinkel, #2991).
9097 Partial functions like `head` lead to avoidable errors and should be
9098 avoided. They are replaced with total functions.
9099 + Support figure labels (Albert Krewinkel, #2496, #2999).
9100 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
9101 respective image. This allows e.g. the LaTeX to add proper `\label`
9103 + Improve tag and properties type safety (Albert Krewinkel).
9104 Specific newtype definitions are used to replace stringly typing of tags
9105 and properties. Type safety is increased while readability is improved.
9106 + Parse as headlines, convert to blocks (Albert Krewinkel).
9107 Emacs org-mode is based on outline-mode, which treats documents as trees
9108 with headlines are nodes. The reader is refactored to parse into a
9109 similar tree structure. This simplifies transformations acting on
9110 document (sub-)trees.
9111 * Refactor comment tree handling (Albert Krewinkel).
9112 Comment trees were handled after parsing, as pattern matching on lists
9113 is easier than matching on sequences. The new method of reading
9114 documents as trees allows for more elegant subtree removal.
9115 * Support archived trees export options (Albert Krewinkel).
9116 Handling of archived trees can be modified using the `arch` option.
9117 Archived trees are either dropped, exported completely, or collapsed to
9118 include just the header when the `arch` option is nil, non-nil, or
9119 `headline`, respectively.
9120 * Put export setting parser into module (Albert Krewinkel).
9121 Export option parsing is distinct enough from general block parsing to
9122 justify putting it into a separate module.
9123 * Support headline levels export setting (Albert Krewinkel).
9124 The depths of headlines can be modified using the `H` option. Deeper
9125 headlines will be converted to lists.
9126 * Replace ugly code with view pattern (Albert Krewinkel).
9127 Some less-than-smart code required a pragma switching of overlapping
9128 pattern warnings in order to compile seamlessly. Using view patterns
9129 makes the code easier to read and also doesn't require overlapping
9130 pattern checks to be disabled.
9131 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
9132 Org rules for allowed characters before or after markup chars were not
9133 checked for verbatim text. This resultet in wrong parsing outcomes of
9134 if the verbatim text contained e.g. space enclosed markup characters as
9135 part of the text (`=is_substr = True=`). Forcing the parser to update
9136 the positions of allowed/forbidden markup border characters fixes this.
9138 * LaTeX template: fix for obscure hyperref/xelatex issue.
9139 Here's a minimal case:
9141 \documentclass[]{article}
9142 \usepackage{hyperref}
9147 Without this change, this fails on the second invocation of xelatex.
9148 This affects inputs this like `# %á` with pdf output via xelatex.
9150 * trypandoc: call results 'html' instead of 'result'.
9151 This is for better compatibility with babelmark2.
9153 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
9154 MultiMarkdown was only mentioned as a supported Markdown dialect but not
9155 as a possible input or output format. A brief mention is added
9156 everywhere the other supported markdown dialects are mentioned.
9158 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
9159 Raw HTML is kept when the output format is Emacs Org mode.
9161 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
9163 * Text.Pandoc.Shared:
9165 + Introduce blocksToInlines function (Jesse Rosenthal).
9166 This is a lossy function for converting `[Block] -> [Inline]`. Its main
9167 use, at the moment, is for docx comments, which can contain arbitrary
9168 blocks (except for footnotes), but which will be converted to spans.
9169 This is, at the moment, pretty useless for everything but the basic
9170 `Para` and `Plain` comments. It can be improved, but the docx reader
9171 should probably emit a warning if the comment contains more than this.
9172 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
9173 + Add further formats for `normalizeDate` (Jesse Rosenthal).
9174 We want to avoid illegal dates -- in particular years with greater than
9175 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
9176 `%Y%m`, and finally `%Y`.
9177 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
9178 We only allow years between 1601 and 9999, inclusive. The ISO 8601
9179 actually says that years are supposed to start with 1583, but MS Word
9180 only allows 1601-9999. This should stop corrupted word files if the date
9181 is out of that range, or is parsed incorrectly.
9182 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
9183 Previously we parsed a list of dates, took the first one, and then
9184 tested its year range. That meant that if the first one failed, we
9185 returned nothing, regardless of what the others did. Now we test for
9186 sanity before running `msum` over the list of Maybe values. Anything
9187 failing the test will be Nothing, so will not be a candidate.
9191 + Add simple comment functionality. (Jesse Rosenthal).
9192 This adds simple track-changes comment parsing to the docx reader. It is
9193 turned on with `--track-changes=all`. All comments are converted to
9194 inlines, which can list some information. In the future a warning will be
9195 added for comments with formatting that seems like it will be excessively
9196 denatured. Note that comments can extend across blocks. For that reason
9197 there are two spans: `comment-start` and `comment-end`. `comment-start`
9198 will contain the comment. `comment-end` will always be empty. The two
9199 will be associated by a numeric id.
9200 + Enable warnings in top-level reader (Jesse Rosenthal).
9201 Previously we had only allowed for warnings in the parser. Now we allow
9202 for them in the `Docx.hs` as well. The warnings are simply concatenated.
9203 + Add warning for advanced comment formatting. (Jesse Rosenthal).
9204 We can't guarantee we'll convert every comment correctly, though we'll
9205 do the best we can. This warns if the comment includes something other
9207 + Add tests for warnings. (Jesse Rosenthal).
9208 + Add tests for comments (Jesse Rosenthal).
9209 We test for comments, using all track-changes options. Note that we
9210 should only output comments if `--track-changes=all`. We also test for
9211 emitting warnings if there is complicated formatting.
9213 * README: update to include track-changes comments. (Jesse Rosenthal)
9215 * Improved Windows installer - don't ignore properties set on command-line.
9216 See #2708. Needs testing to see if this resolves the issue.
9219 * Process markdown extensions on command line in L->R order (#2995).
9220 Previously they were processed, very unintuitively, in R->L
9221 order, so that `markdown-tex_math_dollars+tex_math_dollars`
9222 had `tex_math_dollars` disabled.
9224 * Added `secnumdepth` variable to LaTeX template (#2920).
9226 * Include table of contents in README.html in Windows package.
9228 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
9229 In Writers.Shared, we strip leading and trailing spaces for display
9230 math. Since SoftBreak's are treated as spaces, we should strip those
9233 * beamer, latex templates: pass biblatexoptions directly in package load.
9234 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
9236 * CPP workaround for deprecation of `parseUrl` in http-client.
9238 * Removed some redundant class constraints.
9240 * make_oxs_package.sh - use OSX env variable.
9242 * Added `winpkg` target to Makefile. This downloads the windows package
9243 from appveyor and signs it using the key.
9245 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
9246 Raw TeX is kept verbatim when the output format is Emacs Org mode.
9248 * Support math with haddock-library >= 1.4.
9250 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
9251 wouldn't accept the package.
9253 * Update library dependency versions.
9255## pandoc 1.17.1 (2016-06-04)
9257 * New output format: `docbook5` (Ivo Clarysse).
9259 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
9264 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
9265 This allows header attributes to be added to org documents in the form
9266 of `:PROPERTIES:` drawers. All available attributes are stored as
9267 key/value pairs. This reflects the way the org reader handles
9268 `:PROPERTIES:` blocks.
9269 + Add drawer capability (Carlos Sosa). For the implementation of the
9270 Drawer element in the Org Writer, we make use of a generic Block
9271 container with attributes. The presence of a `drawer` class defines
9272 that the `Div` constructor is a drawer. The first class defines the
9273 drawer name to use. The key-value list in the attributes defines
9274 the keys to add inside the Drawer. Lastly, the list of Block elements
9275 contains miscellaneous blocks elements to add inside of the Drawer.
9276 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
9277 reserved for internal use by Org-mode and should not be used.
9278 The `CUSTOM_ID` property is to be used instead, it is converted to the
9279 `ID` property for certain export format.
9283 + Ignore `--incremental` unless output format is beamer (#2843).
9284 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
9285 Allow for optional argument in square brackets.
9286 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
9287 This allows one to access the hyphenation patterns in CTAN's
9289 + Add missing languages from hyph-utf8 (Andrew Dunning).
9290 + Improve use of `\strut` with `\minipage` inside tables
9291 (Jose Luis Duran). This improves spacing in multiline
9293 + Use `{}` around options containing special chars (#2892).
9294 + Avoid lazy `foldl`.
9295 + Don't escape underscore in labels (#2921). Previously they were
9297 + brazilian -> brazil for polyglossia (#2953).
9299 * HTML writer: Ensure mathjax link is added when math appears in footnote
9300 (#2881). Previously if a document only had math in a footnote, the
9301 MathJax link would not be added.
9303 * EPUB writer: set `navpage` variable on nav page.
9304 This allows templates to treat it differently.
9308 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
9309 + Properly handle `ulink`/`link` (Ivo Clarysse).
9313 + Unescape URIs in spine (#2924).
9314 + EPUB reader: normalise link id (Mauro Bieg).
9318 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
9319 `moveTo` and `moveFrom` are track-changes tags that are used when a
9320 block of text is moved in the document. We now recognize these tags and
9321 treat them the same as `insert` and `delete`, respectively. So,
9322 `--track-changes=accept` will show the moved version, while
9323 `--track-changes=reject` will show the original version.
9324 + Tests for track-changes moving (Jesse Rosenthal).
9326 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
9327 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
9328 would error out if zip-archive failed. We change the archive extraction
9329 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
9331 * Markdown, HTML readers: be more forgiving about unescaped `&` in
9332 HTML (#2410). We are now more forgiving about parsing invalid HTML with
9333 unescaped `&` as raw HTML. (Previously any unescaped `&`
9334 would cause pandoc not to recognize the string as raw HTML.)
9338 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
9339 + Added `-s` to markdown-reader-more test.
9341 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
9342 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
9344 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
9347 * RST reader: Support `:class:` option for code block in RST reader
9350 * Org reader (all Albert Krewinkel, except where noted otherwise):
9352 + Stop padding short table rows.
9353 Emacs Org-mode doesn't add any padding to table rows. The first
9354 row (header or first body row) is used to determine the column count,
9355 no other magic is performed.
9356 + Refactor rows-to-table conversion. This refactors
9357 the codes conversing a list table lines to an org table ADT.
9358 The old code was simplified and is now slightly less ugly.
9359 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
9360 This fixes Org mode parsing of some corner cases regarding empty cells
9361 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
9362 two empty cells, but would be parsed as a single cell containing a pipe
9363 character. Empty rows where parsed as alignment rows and dropped from
9365 + Fix spacing after LaTeX-style symbols.
9366 The org-reader was droping space after unescaped LaTeX-style symbol
9367 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
9368 instead. This seems to be because the LaTeX-reader treats the
9369 command-terminating space as part of the command. Dropping the trailing
9370 space from the symbol-command fixes this issue.
9371 + Print empty table rows. Empty table rows should not
9372 be dropped from the output, so row-height is always set to be at least 1.
9373 + Move parser state into separate module.
9374 The org reader code has become large and confusing. Extracting smaller
9375 parts into submodules should help to clean things up.
9376 + Add support for sub/superscript export options.
9377 Org-mode allows to specify export settings via `#+OPTIONS` lines.
9378 Disabling simple sub- and superscripts is one of these export options,
9379 this options is now supported.
9380 + Support special strings export option Parsing of special strings
9381 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
9383 + Support emphasized text export option. Parsing of emphasized text can
9384 be toggled using the `*` option. This influences parsing of text marked
9385 as emphasized, strong, strikeout, and underline. Parsing of inline math,
9386 code, and verbatim text is not affected by this option.
9387 + Support smart quotes export option. Reading of smart quotes can be
9388 toggled using the `'` option.
9389 + Parse but ignore export options. All known export options are parsed
9391 + Refactor block attribute handling. A parser state attribute was used
9392 to keep track of block attributes defined in meta-lines. Global state
9393 is undesirable, so block attributes are no longer saved as part of the
9394 parser state. Old functions and the respective part of the parser state
9396 + Use custom `anyLine`. Additional state changes need to be made after
9397 a newline is parsed, otherwise markup may not be recognized correctly.
9398 This fixes a bug where markup after certain block-types would not be
9400 + Add support for `ATTR_HTML` attributes (#1906).
9401 Arbitrary key-value pairs can be added to some block types using a
9402 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
9403 when exporting to HTML, but since we cannot make this distinction here,
9404 the attributes are always added. The functionality is now supported
9406 + Add `:PROPERTIES:` drawer support (#1877).
9407 Headers can have optional `:PROPERTIES:` drawers associated with them.
9408 These drawers contain key/value pairs like the header's `id`. The
9409 reader adds all listed pairs to the header's attributes; `id` and
9410 `class` attributes are handled specially to match the way `Attr` are
9411 defined. This also changes behavior of how drawers of unknown type
9412 are handled. Instead of including all unknown drawers, those are not
9413 read/exported, thereby matching current Emacs behavior.
9414 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
9415 + Respect drawer export setting. The `d` export option can be used
9416 to control which drawers are exported and which are discarded.
9417 Basic support for this option is added here.
9418 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
9419 Also fix up tab handling for leading whitespace in code blocks.
9420 + Support new syntax for export blocks. Org-mode version 9
9421 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
9422 where `<FORMAT>` is the format of the block's content, the new
9423 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
9425 + Refactor `BEGIN...END` block parsing.
9426 + Fix handling of whitespace in blocks, allowing content to be indented
9427 less then the block header.
9428 + Support org-ref style citations. The *org-ref* package is an
9429 org-mode extension commonly used to manage citations in org
9430 documents. Basic support for the `cite:citeKey` and
9431 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
9432 + Split code into separate modules, making for cleaner code and
9435 * Added `docbook5` template.
9437 * `--mathjax` improvements:
9439 + Use new CommonHTML output for MathJax (updated default MathJax URL,
9441 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
9442 This is designed for cases where the input is always TeX and maximal
9443 conformity with TeX is desired. It seems to be smaller and load faster
9444 than what we used before. See #2858.
9445 + Load the full MathJax config to maximize loading speed (KolenCheung).
9447 * Bumped upper version bounds to allow use of latest packages
9448 and compilation with ghc 8.
9450 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
9451 #2310, #2310, #2824). This fixes behavior of roots, e.g.
9452 `\sqrt[3]{x}`, and issues with sub/superscript positioning
9453 and matrix column alignment in docx.
9457 + Clarified documentation of `implicit_header_references` (#2904).
9458 + Improved documentation of `--columns` option.
9460 * Added appveyor setup, with artefacts (Jan Schulz).
9462 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
9464 * LaTeX template: support for custom font families (vladipus).
9465 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
9466 can find some other usages. Example usage in YAML metadata:
9469 - name: \cyrillicfont
9470 font: Liberation Serif
9471 - name: \cyrillicfonttt
9472 options: Scale=MatchLowercase
9475 * Create unsigned msi as build artifact in appveyor build.
9477 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
9481## pandoc 1.17.0.3 (2016-03-24)
9483 * LaTeX writer: Fixed position of label in figures (#2813).
9484 Previously the label wasn't in the right place, and `\ref`
9485 wouldn't work properly.
9486 * Added .tei test files to pandoc.cabal so they'll be included
9488 * Updated copyright dates.
9490## pandoc 1.17.0.2 (2016-03-23)
9492 * Fixed serious regression in `htmlInBalanced`, which caused
9493 newlines to be omitted in some raw HTML blocks in Markdown
9496## pandoc 1.17.0.1 (2016-03-21)
9498 * File scope is no longer used when there are no input files (i.e.,
9499 when input comes from stdin). Previously file scope was triggered
9500 when the `json` reader was specified and input came from `stdin`,
9501 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
9502 thanks to Fedor Sheremetyev for calling the bug to our attention.)
9503 * Improved documentation of templates (#2797).
9505## pandoc 1.17 (2016-03-20)
9507 * Added `--file-scope` option (Jesse Rosenthal).
9508 By default pandoc operates on multiple files by first concatenating
9509 them (around extra line breaks) and then processing the joined file. So
9510 it only parses a multi-file document at the document scope. This has the
9511 benefit that footnotes and links can be in different files, but for
9512 some purposes it is useful to parse the individual files first
9513 and then combine their outputs (e.g. when the files use footnotes
9514 or links with the same labels). The `--file-scope` option causes
9515 pandoc to parse the files first, and then combine the parsed output,
9516 instead of combining before parsing. `--file-scope` is selected
9517 automatically for binary input files (which cannot be concatenated)
9518 and for pandoc json.
9520 * Add TEI Writer (Chris Forster) and `tei` output format.
9522 * Added a general `ByteStringReader` with warnings, used by the docx
9523 reader (API change, Jesse Rosenthal).
9525 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
9527 * Changed type of `Shared.uniqueIdent` argument from
9528 `[String]` to `Set String`. This avoids performance problems in documents
9529 with many identically named headers (API change, #2671).
9531 * Removed `tex_math_single_backslash` from `markdown_github` options
9534 * Make language extensions as well as full language names
9535 trigger syntax highlighting. For example, `py` will now work as
9536 well as `python` (jgm/highlighting-kate#83).
9538 * Added `institute` variable to latex, beamer templates (Fraser
9539 Tweedale, Josef Svenningsson).
9541 * Docx reader (Jesse Rosenthal):
9543 + Handle alternate content. Some word functions (especially graphics)
9544 give various choices for content so there can be backwards compatibility.
9545 + Don't turn numbered headers into lists.
9546 + Docx Reader: Add state to the parser, for warnings
9547 + Update feature checklist in source code.
9548 + Get rid of `Modifiable` typeclass.
9549 + Add tests for adjacent hyperlinks.
9550 + Add a "Link" modifier to `Reducible`. We want to make sure that
9551 links have their spaces removed, and are appropriately smushed
9556 + Fixed behavior of base tag (#2777).
9557 If the base path does not end with slash, the last component
9558 will be replaced. E.g. base = `http://example.com/foo`
9559 combines with `bar.html` to give `http://example.com/bar.html`.
9560 If the href begins with a slash, the whole path of the base
9561 is replaced. E.g. base = `http://example.com/foo/` combines
9562 with `/bar.html` to give `http://example.com/bar.html`.
9563 + Rewrote `htmlInBalanced`. This version avoids an exponential
9564 performance problem with `<script>` tags, and it should be faster
9566 + Properly handle an empty cell in a simple table (#2718).
9567 + Handle multiple `<meta>` tags with same name. Put them in a list
9568 in the metadata so they are all preserved, rather than (as before)
9569 throwing out all but one..
9573 + Improved pipe table parsing (#2765).
9574 + Allow `+` separators in pipe table cells. We already allowed
9575 them in the header, but not in the body rows, for some reason.
9576 This gives compatibility with org-mode tables.
9577 + Don't cross line boundary parsing pipe table row.
9578 Previously an Emph element could be parsed across the newline
9579 at the end of the pipe table row.
9580 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
9581 performance (#2730).
9582 + Fixed bug with smart quotes around tex math.
9586 + Handle interior `$` characters in math (#2743). For example,
9588 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
9589 This gives better results when people write e.g. `\TeX{}` in Markdown.
9590 + Properly handle LaTeX "math" environment as inline math (#2171).
9592 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
9595 * Org reader (Albert Krewinkel):
9597 + Prefix even empty figure names with "fig:" (#2643). The
9598 convention used by pandoc for figures is to mark them by prefixing
9599 the name with `fig:`. The org reader failed to do this if a figure
9601 + Refactor link-target processing (#2684).
9603 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
9604 Thanks to @c-foster.
9606 * HTML writer: Don't include alignment attribute for default table columns.
9607 Previously these were given "left" alignment. Better to leave off
9608 alignment attributes altogether (#2694).
9610 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
9611 better compatibility with other Markdown flavors (Henrik Tramberend).
9615 + Use image identifier to create a label and hypertarget for
9616 figures (Mauro Bieg).
9617 + Avoid double toprule in headerless table with caption (#2742).
9618 + Clean up options parser (Jesse Rosenthal).
9619 + Treat `memoir` template with `article` option as article, instead
9620 of treating all `memoir` templates as books.
9621 + Allow more flexible table alignment (Henrik Tramberend, #2665).
9622 New default is not to include `[c]` option (which is the default
9623 anyway if no positioning is specified). Now LaTeX emplates can
9624 control the overall table alignment in a document by setting the
9625 longtable length variables `LTleft` and `LTright`. For example,
9626 `\setlength\LTleft\parindent\setlength\LTright\fill`
9627 will create left-aligned tables that respect paragraph indentation.
9629 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
9631 * Org writer - pass through RawInline with format "org".
9633 * DokuWiki writer: use `$$` for display math.
9635 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
9637 * Make protocol-relative URIs work again (#2737).
9639 * make_osx_package.sh: Use env variable for developer id certs.
9641 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
9644 * Allow `zip-archive` 0.3.
9646 * Allow `aeson` 0.11.
9648## pandoc 1.16.0.2 (2016-01-12)
9650 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
9652 * Fixed regression in latex smart quote parsing (#2645).
9653 In cases where a match was not found for a quote, everything
9654 from the open quote to the end of the paragraph was being dropped.
9656## pandoc 1.16.0.1 (2016-01-10)
9658 * Fixed regression with `--latex-engine` (#2618). In 1.16
9659 `--latex-engine` raises an error if a full path is given.
9661 * Org reader: Fix function dropping subtrees tagged `:noexport`
9662 (Albert Krewinkel, #2628):
9664 * Markdown reader: renormalize table column widths if they exceed 100%
9667 * Textile reader: don't allow block HTML tags in inline contexts.
9668 The reader previously did allow this, following redcloth,
9669 which happily parses
9671 Html blocks can be <div>inlined</div> as well.
9675 <p>Html blocks can be <div>inlined</div> as well.</p>
9677 This is invalid HTML. The above sample now produces;
9679 <p>Html blocks can be</p>
9685 * Improved default template lookup for custom lua scripts (#2625).
9686 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
9687 pandoc would look for the template in
9688 `~/.pandoc/templates/default./path/to/lua/script.lua`.
9689 With this change it will look in the more reasonable
9690 `~/.pandoc/templates/default.script.lua`. This makes it possible to
9691 store default templates for custom writers.
9693 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
9696 * LaTeX writer: restore old treatment of Span (#2624). A Span is
9697 now rendered with surrounding `{}`, as it was before 1.16.
9699 * Entity handling fixes: improved handling of entities like
9700 `⟨` that require a trailing semicolon. Allow uppercase
9701 `x` in numerical hexidecimal character references, working
9702 around a tagsoup bug.
9704 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
9705 memory use on compile. With aeson 0.10 we were getting an out of
9706 memory error on a 2GB Ubuntu 64-bit VM.
9708 * Improved deb package creation script. Made `DPKGVER` work.
9709 Renamed `COMMIT` to `TREE`. You should now be able to do
9710 `TREE=1.16.0.1 DPKGVER=2 make deb`.
9713## pandoc 1.16 (2016-01-02)
9715 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
9717 + Added syntax for link and image attributes to pandoc's Markdown.
9718 + Updated readers and writers to use link and image attributes
9720 + Support image attributes in Docx, Textile, RST readers.
9722 * Renamed link attribute extensions. The old `link_attributes` is
9723 now `mmd_link_attributes`, and `link_attributes` now enables the
9724 new pandoc-style link and image attributes (API change).
9725 Note: this change could break some existing workflows.
9727 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
9728 Added threefold wrapping option.
9730 + Command line option: deprecated `--no-wrap`, added
9731 `--wrap=[auto|none|preserve]`
9732 + Added `WrapOption`, exported from `Text.Pandoc.Options`
9733 + Changed type of `writerWrapText` in `WriterOptions` from
9734 `Bool` to `WrapOption`.
9735 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
9736 + Supported `SoftBreak` in readers and writers.
9738 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
9739 change, Mauro Bieg).
9741 * Added `--dpi` command-line option (Mauro Bieg).
9743 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
9744 This change makes `--no-tex-ligatures` affect the LaTeX reader
9745 as well as the LaTeX and ConTeXt writers. If it is used,
9746 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
9747 literally, rather than parsing ligatures for quotation marks
9748 and dashes. And the LaTeX writer will print unicode quotation
9749 mark and dash characters literally, rather than converting
9750 them to the standard ASCII ligatures. Note that `--smart` has
9751 no effect on the LaTeX reader. `--smart` is still the default
9752 for all input formats when LaTeX or ConTeXt is the output format,
9753 *unless* `--no-tex-ligatures` is used.
9755 Some examples to illustrate the logic:
9758 % echo "'hi'" | pandoc -t latex
9760 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
9762 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
9764 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
9766 % echo "'hi'" | pandoc -f latex
9770 * Removed deprecated options `--offline` and `--html5`.
9772 * Fixed language code for Czech (`cs` not `cz`) (#2597).
9774 * Implemented `east_asian_line_breaks` extension (#2586).
9775 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
9776 to `Extension` (API change). This extension is like
9777 `ignore_line_breaks`, but smarter -- it only ignores line breaks
9778 between two East Asian wide characters. This makes it better suited
9779 for writing with a mix of East Asian and non-East Asian scripts.
9781 * Added support for PDF creation via `wkhtmltopdf`.
9782 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
9783 if you have math.) Margins can be set using the variables
9784 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
9785 Other styling can be done through CSS.
9787 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
9788 We were capturing final colons as in `[@foo: bar]`; the citation id
9789 was being parsed as `@foo:`.
9793 + Fixed image syntax for local files (#2589).
9794 + Changed type of `writeICML` (Mauro Bieg).
9795 API change: It is now `WriterOptions -> Pandoc -> IO String`.
9796 Also handle new image attributes.
9797 + Intersperse line breaks instead of appending them to
9798 every `ParagraphStyleRange` (Mauro Bieg, #2501).
9799 + Add `Cite` style to citations (Mauro Bieg).
9800 + Added figure handling (#2590, Mauro Bieg).
9801 + Better handling of math. Instead of just printing the raw tex,
9802 we now try to fake it with unicode characters.
9804 * HTML writer: Include `example` class for example lists (#2524).
9806 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
9808 + Support for percentage widths/heights
9809 + Use `Attr` instead of title to get dimensions from ODT walker
9810 to `writeOpenDocument`.
9814 + Support anchors in spans and divs with id elements
9815 (jgm/pandoc-citeproc#143).
9816 + Fixed code blocks (#1861).
9818 * Haddock writer: omit formatting inside links, which isn't supported
9821 * MediaWiki writer: Fixed spacing issues in table cells.
9823 + Start cell on new line unless it's a single Para or Plain
9825 + For single Para or Plain, insert a space after the `|` to
9826 avoid problems when the text begins with a character like
9829 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
9833 + Add support for GAP highlighting using listings (Raniere Silva).
9834 + Consider `header-includes` content as well as templates
9835 when determining whether to use csquotes (Andreas Lööw).
9836 + Create defaults for geometry using `margin-left` etc.
9837 If `geometry` has no value, but `margin-left`, `margin-right`,
9838 `margin-top`, and/or `-margin-bottom` are given, a default value
9839 for `geometry` is created from these. Note that these variables
9840 already affect PDF production via HTML5 with `wkhtmltopdf`.
9842 * ConTeXt writer: set default layout based on `margin-left`, etc.
9843 This sets up `\setuplayout` based on the variables `margin-left`,
9844 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
9847 * Docx writer: better handling of PDF images. Previously we tried
9848 to get the image size from the image even if an explicit size was
9849 specified. Since we still can't get image size for PDFs, this made
9850 it impossible to use PDF images in docx. Now we don't try to get
9851 the image size when a size is already explicitly specified.
9853 * Markdown writer: use raw HTML for link/image attributes when
9854 the `link_attributes` extension is unset and `raw_html` is set (#2554).
9856 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
9860 + Improved smart quote parsing (#2555). This fixes redering of
9862 + Use curly quotes for unmatched ` (#2555).
9863 + Allow blank space between braced arguments of commands (#2592).
9867 + Improved pipe table relative widths. Previously pipe table
9868 columns got relative widths (based on the header underscore lines)
9869 when the source of one of the rows was greater in width than the
9870 column width. This gave bad results in some cases where much of
9871 the width of the row was due to nonprinting material (e.g. link
9872 URLs). Now pandoc only looks at printable width (the width of a
9873 plain string version of the source), which should give better results.
9874 Thanks to John Muccigrosso for bringing up the issue.
9875 + Fixed parsing bug with macros. Previously macro definitions in
9876 indented code blocks were being parsed as macro definitions, not code.
9878 * Textile reader: skip over attribute in image source (#2515).
9879 We don't have a place yet for styles or sizes on images, but
9880 we can skip the attributes rather than incorrectly taking them
9881 to be part of the filename.
9883 * Docx reader: Handle dummy list items (Jesse Rosenthal).
9884 These come up when people create a list item and then delete the
9885 bullet. It doesn't refer to any real list item, and we used to ignore
9888 * CommonMark reader/writer rewritten to use latest `cmark`.
9890 * Fixed Emoji character definitions (#2523). There were many bugs in the
9893 * `Text.Pandoc.CSS`:
9895 + Added `pickStylesToKVs` function to extract multiple properties at
9896 once (API change, Mauro Bieg).
9897 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
9899 * `trypandoc`: sort drop-down lists.
9903 + Made `\euro` conditional on presence of character.
9904 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
9905 + Moved `header-includes` before setting of title (Thomas Hodgson),
9906 to match the LaTeX template (jgm/pandoc-templates#168).
9907 + Added `section-titles` variable (defaults to true)
9908 to enable/suppress section title pages in beamer
9909 slide shows (Thomas Hodgson).
9910 + Moved beamer themes after fonts, so that themes can
9911 change fonts. (Previously the fonts set were being
9912 clobbered by lmodern.sty.) (Thomas Hodgson).
9914 * Beamer/LaTeX template changes (Thomas Hodgson):
9915 + Added `thanks` variable
9916 + Use `parskip.sty` when `indent` isn't set (fall back to using
9917 `setlength` as before if `parskip.sty` isn't available).
9918 + Use `biblio-style` with biblatex.
9919 + Added `biblatexoptions` variable.
9921 * LaTeX template changes:
9923 + Added `paper` after `$papersize$` variable in latex template.
9924 Thus you can say `papersize: a4` and the latex will contain
9925 `a4paper`. This change may break some existing workflows; if
9926 you currently specify `a4paper`, you'll get `a4paperpaper` which
9927 is meaningless. However, the change seems worth it, as it will
9928 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
9929 and html->pdf via wkhtmltopdf.
9930 + Only pass options to color package if `colorlinks` is set
9932 + Make definition of `\euro` conditional in xelatex/lualatex,
9933 as it is already for pdflatex (Andrew Dunning).
9934 + Removed setting of `subject` in PDF metadata.
9935 This used to be set to the subtitle, but really the subtitle
9936 need not give the subject. Also, `subtitle` can contain formatting,
9937 so we'd need, at least, a plain text version for this.
9938 + Moved `header-includes` before setting of `\title`, `\author`,
9939 etc. This allows these macros to be redefined.
9940 + Use `\subtitle` command for `subtitle`, instead of tacking it
9941 on to the title as before. We give a no-op fallback definition if it
9942 is not defined. This change should produce much better results
9943 in classes that support `\subtitle`. With the default article
9944 class, which does not define `\subtitle`, subtitles will no
9945 longer be printed unless the user defines `\subtitle` and
9946 redefines `\maketitle`.
9947 + Moved redefinitions of `\paragraph` and `\subparagraph` to
9948 before header-includes.
9952 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
9953 needed for things to work on ConTeXt stable from TeXLive 2015.
9954 + Revert use of `\setuphead` in title block (Andrew Dunning,
9957 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
9959 * Fixed man template so disabling hyphenation actually works.
9960 The command needs to come after .TH.
9962 * Added 'navigation' variable to beamer template (#2543).
9963 Valid values are `empty` (the default), `horizontal`, `vertical`,
9964 and `frame`. Note that this changes the default behavior from
9965 `horizontal` to `empty`. Closes #2543.
9967 * Added `toc` to HTML slide format templates (Andrew Dunning),
9968 so that `--toc` creates a contents slide.
9970 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
9972 * Allow pipe tables with no body rows (#2556).
9973 Previously this raised a runtime error.
9975 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
9976 as URL. The Haskell URI parsing routines will accept "C:" as a
9977 scheme, so we rule that out manually. This helps with
9978 `--self-contained` and absolute Windows paths.
9980 * Define a `meta-json` variable for all writers (#2019). This contains
9981 a JSON version of all the metadata, in the format selected for the
9982 writer. So, for example, to get just the YAML metadata, you can run
9983 pandoc with the following custom template: `$meta-json$`. The intent
9984 is to make it easier for static site generators and other tools to get
9987 * Document limitations of --self-contained (#2553).
9989 * Improved Citations section of README (#2551). Added information
9990 about `link-citations` and a link to the pandoc-citeproc man page.
9992 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
9995 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
9997 * Improved implicit pandoc-citeproc inclusion.
9998 The filter pandoc-citeproc is automatically used when
9999 `--bibliography` is specified on the command line, unless
10000 `--natbib` or `--biblatex` is used. However, previously this
10001 only worked if `--bibliography` was spelled out in full, and not
10002 if `--biblio` was used.
10004 * reveal.js: Interpret pauses correctly for all headers (#2530).
10005 Previously, when using headers below the slide level, pauses are left
10006 uninterpreted into pauses. In my opinion, unexpected behavior but
10007 intentional looking at the code.
10009 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
10011 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
10014 * ImageSize: Added functions for converting between image dimensions
10017 * Use lts-3.18 in stack.yaml. This avoids Windows build
10018 issues with the HTTP library.
10020 * Bump version bounds for dependencies.
10022## pandoc 1.15.2.1 (2015-11-16)
10024 * Added two missing test files, and `stack.yaml`, to
10025 `extra-source-files` so they're included in the source tarball.
10027 * reveal.js template: Fixed parallaxBackground options.
10028 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
10029 need integer values, not strings. (Vaughn Iverson)
10031## pandoc 1.15.2 (2015-11-15)
10033 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
10034 ConTeXt rather than LaTeX (#2463).
10036 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
10038 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
10039 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
10042 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
10043 parsing (#2469). Tightened up the inline HTML parser so it disallows
10046 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
10050 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
10051 Paragraphs can be followed by lists, even if there is no blank line
10052 between the two blocks. However, this should only be true if the
10053 paragraph is not within a list, were the preceding block should be
10054 parsed as a plain instead of paragraph (to allow for compact lists).
10055 Thanks to @rgaiacs for bringing this up.
10056 + Allow toggling header args (Albert Krewinkel, #2269).
10057 Org-mode allows to skip the argument of a code block header argument if
10058 it's toggling a value. Argument-less headers are now recognized,
10059 avoiding weird parsing errors.
10060 + Fix markup parsing in headers (Albert Krewinkel, #2504).
10061 Markup as the very first item in a header wasn't recognized. This was
10062 caused by an incorrect parser state: positions at which inline markup
10063 can start need to be marked explicitly by changing the parser state.
10064 This wasn't done for headers. The proper function to update the state
10065 is now called at the beginning of the header parser, fixing this issue.
10066 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
10067 Smart quotes, ellipses, and dashes should behave like normal quotes,
10068 single dashes, and dots with respect to text markup parsing.
10069 + Require whitespace around definition list markers (#2518).
10070 This rule was not checked before, resulting in bugs with footnotes
10071 and some link types.
10075 + Pipe tables with long lines now get relative cell widths (#2471).
10076 If a pipe table contains a line longer than the column width (as set by
10077 `--columns` or 80 by default), relative widths are computed based on the
10078 widths of the separator lines relative to the column width. This should
10079 solve persistent problems with long pipe tables in LaTeX/PDF output, and
10080 give more flexibility for determining relative column widths in other
10081 formats, too. For narrower pipe tables, column widths of 0 are used,
10082 telling pandoc not to specify widths explicitly in output formats that
10084 + Improved parser for `mmd_title_block`. We now allow blank metadata
10085 fields. These were explicitly disallowed before.
10086 + Citation keys can now contain `://`, so URLs and DOIs can be used
10087 as citation keys (jgm/pandoc-citeproc#166).
10089 * Beamer template: fix incompatibility of section slides with natbib.
10090 Natbib (and presumably biblatex) bibliography commands create
10091 their own section. Since these are in frame environments,
10092 we have an incompatibility with the `\AtBeginSection` macro
10093 which creates a special frame when a new section occurs.
10094 (We can't have a frame inside another frame.) This change disables
10095 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
10096 bringing the problem to my attention. This supersedes #145. See
10099 * Textile reader: don't do smart punctuation unless explicitly asked
10100 (#2480). Note that although smart punctuation is part of the textile
10101 spec, it's not always wanted when converting from textile
10102 to, say, Markdown. So it seems better to make this an option.
10104 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
10105 The `comment` environment is handled in a similar way to the
10106 `verbatim` environment, except that its content is discarded.
10108 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
10109 Jesse Rosenthal). This fixes a problem with links in notes.
10111 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
10112 (mb21). For LaTeX, also collect `lang` and `dir` attributes on spans and
10113 divs to set the `lang`, `otherlangs` and `dir` variables if they aren’t set
10118 + Use proper command for `\textarabic` (mb21).
10119 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
10120 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
10121 to link to Div or Span elements. We now don't bother defining `\label`
10122 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
10123 + Avoid footnotes in list of figures (#1506).
10124 + Properly handle footnotes in captions (#1506).
10125 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
10126 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
10127 `toccolor` is set (#2508).
10129 * Textile writer: support start number in ordered lists (#2465).
10131 * OpenDocument writer: Allow customization of opendocument
10132 automatic styles. Automatic styles can now be inserted in the
10133 template, which now provides the enclosing `<office:automatic-styles>`
10136 * Docx writer: insert space between footnote reference and note (#2527).
10137 This matches Word's default behavior.
10139 * EPUB writer: don't download linked media when `data-external` attribute
10140 set (#2473). By default pandoc downloads all linked media and includes it
10141 in the EPUB container. This can be disabled by setting `data-external` on
10142 the tags linking to media that should not be downloaded. Example:
10144 <audio controls="1">
10145 <source src="http://www.sixbarsjail.it/tmp/bach_toccata.mp3"
10146 type="audio/mpeg"></source>
10149 * HTML writer: use width on whole table if col widths sum to < 100%.
10150 Otherwise some browsers display the table with the columns
10151 separated far apart.
10153 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
10154 `abstract` (Andrew Dunning).
10156 * HTML-based templates (Andrew Dunning):
10158 + Use en dash instead of hyphen between title prefix and title.
10159 + Add `keywords` to metadata.
10160 + Add `lang`, `dir`, `quotes` where missing.
10161 + Always make author and date display conditional.
10162 + Updated dzslides template from source.
10164 * Man template: make "generated by" comment conditional.
10166 * LaTeX, Beamer templates:
10168 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
10169 filled by commands that make babel understand the polyglossia-style
10170 language directives (mb21, #137).
10171 + Improved formatting of conditionals; `$for$` is always provided to allow
10172 multiple options (Andrew Dunning, #141).
10173 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
10174 to improve support for LuaTeX (Andrew Dunning, #135).
10175 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
10176 - use same options for all LaTeX engines;
10177 - add `subtitle` and `keywords` to PDF metadata;
10178 - do not override `hyperref` link coloring without user input, effectively making
10179 the `hidelinks` option the default (removed as a separate variable);
10180 - link colors can be enabled (using a slightly darker version of the old
10181 defaults) using a new `colorlinks` variable, automatically used by
10182 the LaTeX writer when custom colors are specified;
10183 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
10184 `colorlinks`, and is only applied if `colorlinks` is disabled.
10186 * ConTeXt template (Andrew Dunning):
10188 + New variables for controlling styles: `linkstyle`, `linkcolor`,
10189 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
10190 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
10191 `monofont`, `mathfont`, `fontsize`.
10192 + Default template no longer supports MkII.
10193 + Improve writing of title block (suppressing numbering of first page).
10194 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
10195 + Support `subtitle`, `abstract`.
10196 + Support list of figures (`lof`), list of tables (`lot`).
10197 + Disable link styling by default.
10198 + Define styles for all section types.
10199 + Enable microtype.
10200 + Improved formatting of conditionals.
10202 * Beamer template: added code to prevent slide breaks inside paragraphs
10203 (#2422, thanks to Nick Bart). This will matter, in practice, only when
10204 `allowframebreaks` is used. It is especially helpful for bibliography
10207 * OpenDocument template: Add `<office:automatic-styles>` tag around
10208 automatic styles. The writer now longer provides this (see #2520).
10210 * Restored Text.Pandoc.Compat.Monoid.
10212 * Do not export (<>) from custom Prelude. The Prelude now matches
10213 base 4.8 Prelude's API.
10215 * Don't use custom prelude with ghc 7.10. Use the custom prelude
10216 only for earlier versions. This change makes `stack ghci` and
10217 `cabal repl` work (#2503), at least with ghc 7.10.
10219 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
10220 This prevents problems building haddocks with "C" locale.
10222 * Change default for old-locale flag to False.
10224 * Use stack in deb, osx, and Windows package generators.
10226 * Added Vagrantfile for building deb in vm.
10227 This should help in automating binary package creation. 'make package'
10228 will make the package. 'make package COMMIT=blah' will make the package
10233 + Consistent capitalization for pandoc and Markdown.
10234 + Fixed `auto_identifiers` examples (Benoit Schweblin).
10235 + Improved documentation of template variables (Andrew Dunning).
10237## pandoc 1.15.1 (2015-10-15)
10239 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
10240 and reexported from `Text.Pandoc` (Alex Vong). This allows
10241 writers to access it. (Alex Vong) (API change)
10243 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
10244 `subscripts` (#2401).
10246 * Added `odt` as input format (MarLinn). Added new module
10247 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
10248 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
10249 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
10250 Partly implemented features: Citations, Tables.
10254 + Add basic tests for each header style (Ophir Lifshitz).
10255 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
10256 + Skip spaces in headers (Ophir Lifshitz).
10257 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
10258 `# Header {id="myid" class="foo bar"}`
10259 is now equivalent to `# Header {#myid .foo .bar}`.
10260 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
10261 (Kristof Bastiaensen)
10262 + Pipe tables: allow indented columns. Previously the left-hand column
10263 could not start with 4 or more spaces indent. This was inconvenient
10264 for right-aligned left columns. Note that the first (header column)
10265 must still have 3 or fewer spaces indentation, or the table will be
10266 treated as an indented code block.
10267 + Fix regression: allow HTML comments containing `--`.
10268 Technically this isn't allowed in an HTML comment, but
10269 we've always allowed it, and so do most other implementations.
10270 It is handy if e.g. you want to put command line arguments
10275 + Don't eat excess whitespace after macros with only optional
10277 + Support longtable (#2411).
10278 + Implement `\Cite` (#2335).
10279 + Support abstract environment. The abstract populates an
10280 `abstract` metadata field.
10281 + Properly handle booktabs lines. Lines aren't part of the
10282 pandoc table model, so we just ignore them (#2307).
10286 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
10287 + Updated for new automatic header attributes.
10288 + Add auto identifiers if not present on headers. This makes
10289 TOC linking work properly.
10290 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
10291 + Test `<ol>` type, class, and inline list-style(-type) CSS
10293 + Better handling of "section" elements (#2438). Previously
10294 `<section>` tags were just parsed as raw HTML blocks. With
10295 this change, section elements are parsed as Div elements with
10296 the class "section".
10298 * MediaWiki reader: handle unquoted table attributes (#2355).
10302 + Added proper support for DocBook `xref` elements (Frerich Raabe).
10303 Added `dbContent` field to reader state, so we can lookup
10305 + Handle `informalexample` (#2319).
10309 + Create special punctuation test (Ophir Lifshitz).
10310 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
10311 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
10312 in `headers.docx` with pandoc's current `styles.xml`, which
10313 contains styles for Heading 1 through 6. Added Heading 4
10314 through 7 to the test document. Note that Heading 7 is not
10315 parsed as a Heading because there is no Heading 7 style.
10317 * RST reader: better handling of indirect roles.
10318 Previously the parser failed on this kind of case
10320 .. role:: indirect(code)
10322 .. role:: py(indirect)
10327 Now it correctly recognizes `:py:` as a code role.
10331 + Add auto identifiers if not present on headers
10332 (#2354, Juliusz Gonera).
10333 + Allow verse blocks to contain empty lines (#2402,
10336 * EPUB reader: stop mangling external URLs (#2284).
10340 + Don't insert `\ ` when complex expression in matched pairs.
10341 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
10342 + Ensure that `\ ` is inserted when needed before Cite and Span
10343 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
10344 + Normalize headers only in "standalone" mode (#2394).
10346 * Haddock writer: escape `*` and `^` (G. Bataille).
10350 + In TOC, add links to headers (#829).
10351 + Use unicode super/subscripts for digits in plain output
10352 (when the `superscripts` and `subscripts` extensions are
10357 + Moved invalid character stripping to `formattedString`.
10358 This avoids an inefficient generic traversal (#2356).
10359 + Use user data directory for `reference.docx` archive.
10360 This allows the test suite to work without installing pandoc first.
10361 It also brings the docx writer in line with the odt writer.
10362 + Tests: docx writer tests now use `../data` for data directory.
10363 This allows tests to be run without installing first.
10364 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
10368 + Fixed detection of 'chapters' from template.
10369 If a documentclass isn't specified in metadata, but the
10370 template has a hardwired bookish documentclass, act as if
10371 `--chapters` was used. This was the default in earlier
10372 versions, but it has been broken for a little while.
10373 + Correctly recognize book documentclass in metadata (#2395).
10374 + Set language-related variables automatically, depending
10375 on the value of the `lang` field, which is now always
10376 assumed to be in BCP47 format (mb21, #1614, #2437).
10377 + Add `\protect` to `\hyperdef` in inline context. This way we
10378 don't get an error when this is used as a moveable argument (#2136).
10379 + Support all frame attributes in Beamer.
10380 + Percent-encode more special characters in URLs (#1640, #2377).
10381 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
10385 + Update KaTeX JS and CSS versions (Emily Eisenberg).
10386 + For dzslides, add `role="note"` for speaker notes (#1693).
10387 + Percent-encode more special characters in URLs (#1640, #2377).
10388 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
10389 + Render Div with class `section` as `<section>` in HTML5.
10393 + In TOC, replace literal `<br/>` with space (#2105).
10394 + With `--webtex`, include image file rather than `data:` URI (#2363).
10396 * Native writer: format Div properly, with blocks separated.
10398 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
10403 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
10404 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
10408 + Beamer: Add `innertheme`, `outertheme` variables
10409 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
10410 Integrate recent font and language updates from LaTeX template;
10411 allow use of `mainfont` variable for changing the slide text
10412 in XeTeX and LuaTeX (Andrew Dunning, #131).
10413 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
10414 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
10415 (Andrew Dunning, #122). Support handling of bidirectional
10416 text (mb21, #120). Improve reliability of superscripts/subscripts
10417 under XeTeX and prevent letters and numbers from appearing on a
10418 different baseline by removing use of the `realscripts` package
10419 (via `xltxtra`). To restore use of OpenType characters for these
10420 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
10421 `header-includes` (Andrew Dunning, #130). Remove redundant
10422 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
10423 `indent`, `subparagraph` variables (Andrew Dunning).
10424 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
10425 #113). Prevent package clash with `tufte-latex` and other classes that
10426 include `hyperref` or `color` (Xavier Olive, #115).
10427 + ConTeXt: Support handling of bidirectional text (mb21, #120).
10428 + LaTeX and ConTeXt: Use more specific language variables.
10429 Instead of directly using `lang`, we now use `babel-lang` and
10430 `polyglossia-lang` and `context-lang`. These variables are set by
10431 the writers to the necessary values, based on the `lang` variable
10432 (which now always takes a value in BCP47 format). (mb21, #114, #129).
10433 + HTML: Support handling of bidirectional text (mb21, #120).
10434 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
10435 Add dir attribute in html5 (Andrew Dunning).
10436 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
10437 Add `width`, `height` variables (Anrew Dunning). Update template
10438 from 3.1 source (Andrew Dunning). All configuration options are now
10439 available as variables, but are only be included if set (reveal.js
10440 uses defaults otherwise).
10441 + man: Added comment stating that the page is autogenerated by pandoc,
10442 giving version. Added `adjusting` and `hyphenate` variables
10445 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
10447 * MediaBag: ensure that `/` is always used as path separator.
10449 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
10451 * Added `--bash-completion` option. This generates a bash completion
10452 script. To use: `eval "$(pandoc --bash-completion)"`.
10454 * Text.Pandoc.Error: Define Typeable and Exception instances
10455 for PandocError (#2386).
10457 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
10458 This makes keys with extra space at the beginning and end
10465 will now be a link to bar (it wasn't before).
10467 * Text.Pandoc: disable `auto_identifiers` for epub.
10468 The epub writer inserts its own auto identifiers;
10469 this is more complex due to splitting into "chapter" files.
10471 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
10472 It now reexports Data.Time.
10474 * Use custom Prelude to avoid compiler warnings.
10476 + The (non-exported) prelude is in prelude/Prelude.hs.
10477 + It exports Monoid and Applicative, like base 4.8 prelude,
10478 but works with older base versions.
10479 + It exports (<>) for mappend.
10480 + It hides 'catch' on older base versions.
10482 * Added a `stack.ymal` and stack install instructions to INSTALL.
10484 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
10486 * Added note to CONTRIBUTING.md about ghc versions and travis.
10488 * Clarify docs on block quotes. The space after `>` is optional (#2346).
10490 * Removed obsolete reference to default.csl (#2372).
10492 * List all styles in manual for `--reference-docx` (Chris Black)
10494 * Don't capitalize header links in man page.
10496 * Added section on repl to CONTRIBUTING.md.
10498 * README: Added space after backslash in image example (#2329).
10500 * Document details of citation locator terms (Nick Bart).
10502 * Fixed some internal links in README (#2309).
10504 * Improve CSL documentation, variables documentations,
10505 links, and cross-references in README. (Andrew Dunning)
10507 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
10509 * Use `newManager` instead of `withManager` in recent `http-client`.
10510 This avoids a deprecation warning.
10512 * Allow building with latest versions of http-types,
10513 HUnit, criterion, syb, aeson.
10515 * Updated benchmark program for new criterion API.
10517 * Setup.hs: rewrite so as not to use process, directory, filepath.
10518 Using anything outside base is dangerous, since older
10519 versions of ghc may link against two different versions.
10521 * Added appveyor (Windows continuous integration) builds.
10523 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
10524 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
10525 `make .travis.yml` regenerates it based on the tested-with
10526 field of the cabal file.
10528## pandoc 1.15.0.6 (2015-07-15)
10530 * `--self-contained`: Fixed overaggressive CSS minimization
10531 (#2301, 2286). Previously `--self-contained` wiped out all
10532 spaces in CSS, including semantically significant spaces.
10533 This was a regression from 1.14.x.
10535 * Markdown reader: don't allow bare URI links or autolinks in link
10536 label (#2300). Added test cases.
10538 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
10539 Previously we disallowed `-` at the end of an autolink,
10540 and disallowed the combination `=-`. This commit liberalizes the
10541 rules for allowing punctuation in a bare URI, and adds test cases.
10542 One potential drawback is that you can no longer put a bare
10543 URI in em dashes like this:
10544 `this uri---http://example.com---is an example.`
10545 But in this respect we now match github's treatment of bare URIs.
10547 * HTML writer: support speaker notes in dzslides.
10548 With this change `<div class="notes">` and also `<div class="notes"
10549 role="note">` will be output if `-t dzslides` is used. So we can
10550 have speaker notes in dzslides too. Thanks to maybegeek.
10552 * Updated dzslides template.
10554 * Improved documentation of options to print system default files (#2298).
10555 `--print-default-data-file` and `--print-default-template`.
10557 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
10558 (Tiziano Müller). MathJax seems currently to be the only maintained
10559 math rendering extension for DokuWiki.
10561 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
10562 div as top-level header (#2294). This fixes a bug with `--section-divs`,
10563 where the final references section added by pandoc-citeproc, enclosed in
10564 its own div, got nested in the div for the section previous to it.
10566 * Allow vector 0.11.
10568 * Require cmark > 0.4.
10570## pandoc 1.15.0.5 (2015-07-10)
10572 * HTML writer: Fixed email javascript obfuscation with `mailto:`
10573 URLs (#2280). This fixes a potential security issue. Because
10574 single quotes weren't being escaped in the link portion, a
10575 specially crafted email address could allow javascript code injection.
10577 * RST reader: allow inline formatting in definition list field
10578 names (Lars-Dominik Braun).
10580 * PDF: Make sure `--latex-engine-opt` goes before the filename
10581 on the command line. LaTeX needs the argument to come after
10582 the options (#1779).
10584 * CommonMark writer: fixed tags used for super/subscript.
10586 * ConTeXt template: activate hanging indent for definition lists
10589 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
10590 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
10591 to include `hsb2hs` in Build-Tools in cabal.
10593 * Improved Windows installer (thanks to nkalvi).
10595 + When per-machine installation is chosen, the system path
10596 is updated instead of the user's.
10597 + An appropriate default is used for per-machine installation
10599 + Admin privileges are no longer required for a per-user install
10601 * Travis: unpack sdist for build to catch packaging bugs.
10603 * Improved documentation on where user templates go (#2272).
10605## pandoc 1.15.0.4 (2015-07-03)
10607 * Added pandoc.1 man page to the repository. It is no longer
10608 built as part of the cabal build process. (This proved too
10609 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
10610 when `README` is changed.
10612 * Copying of the man page now respects `--destdir` (#2262).
10614 * Improved error messages for filters. User is now informed if
10615 the filter requires an interpreter that isn't found in the path,
10616 or if the filter returns an error status.
10618## pandoc 1.15.0.3 (2015-07-02)
10620 * Ensure target directory is created when installing man page.
10622## pandoc 1.15.0.2 (2015-07-02)
10624 * Added files needed for building man page to Extra-Source-Files.
10626## pandoc 1.15.0.1 (2015-07-01)
10628 * Man page is now built and installed as part of the cabal build
10629 process. Removed Makefile target for man page.
10631## pandoc 1.15 (2015-07-01)
10633 * Man page changes:
10635 + Removed `--man1`, `--man5` options (breaking change).
10636 + Removed `Text.Pandoc.ManPages` module (breaking API change).
10637 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
10638 create the man page from README using a custom template and filters.
10639 + Added `man/` directory with template and filters needed to build
10641 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
10642 Now there is just pandoc.1, which has all the content from README.
10643 This change was needed because of the extensive cross-references
10644 between parts of the README.
10645 + Removed old `data/pandoc.1.template` and
10646 `data/pandoc_markdown.5.template`.
10648 * OpenDocument writer: Do not add a carriage return after a hard
10649 line break (Michael Chladek).
10653 + use `\goto` for internal links.
10654 + Added a `%` at end for `\reference` to avoid spurious space.
10656 * Ignore sandbox on 'make quick'
10658## pandoc 1.14.1 (2015-06-30)
10660 * Added `--man1` and `--man5` options to pandoc, allowing
10661 pandoc to generate its own man pages. Man pages are no longer
10662 automatically generated in the build process (the process for
10663 this was too complex and prone to failure, #2190). The
10664 `make-pandoc-man-pages` executable has been removed. The
10665 `man/` directory has been removed, and man page templates
10666 have been moved to `data/`. NOTE TO PACKAGERS: You will no
10667 longer find pandoc's man pages in `man/`, but you can
10668 generate them using `pandoc --man1 > pandoc.1` and `pandoc
10669 --man5 > pandoc_markdown.5`.
10671 * Added new unexported module: `Text.Pandoc.ManPages`.
10673 * `README` now acts like a data file (even though it isn't in
10674 `data/`). So, for example, `pandoc --print-default-data-file README`
10675 will produce the README.) This change was required for the `--man1`
10676 and `--man5` options, since the man pages are produced from the
10677 README, but it may be useful for other purposes as well.
10679 * Allow `reference.docx` and `reference.odt` to be used with
10680 `--print-default-data-file` and to shadow defaults if placed in
10681 the user data directory. Note that as of 1.14, we no longer
10682 include these files as data files; instead, we include their
10683 components. This change causes pandoc to behave as if it has
10684 these data files; they are constructed on demand when needed
10685 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
10687 * Fixed regression in CSS parsing with `--self-contained` (#2224).
10688 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
10689 silently drops big sections of CSS. This commit replaces the
10690 use of css-text with a small but principled CSS preprocessor,
10691 which removes whitespace and comments and replaces `url()` with
10692 base 64 data when possible.
10694 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
10695 This will allow math to work when pages are being viewed locally.
10697 * `Text.Pandoc.Options`: Export `plainExtensions`.
10698 These are the extensions used in `plain` output.
10700 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
10701 math mode; treat them as regular inline text. Normally these will
10702 cause an error in LaTeX, but there are contexts (e.g. `alltt`
10703 environments) where they are allowed.
10705 * HTML reader: allow `<body>` to close `<head>`.
10707 * DocBook reader: support `mediaobject`s and `figures` (#2184, mb21).
10709 * RST reader: Fix reference names with special characters
10710 (Lars-Dominik Braun).
10712 * Textile writer: escape `+` and `-` as entities (#2225).
10714 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
10716 * Plain writer: don't use symbols for super/subscript (#2237).
10717 Simplified code by using `plainExtensions`.
10719 * InDesign writer: Properly escape URLs containing more than one
10720 colon character (gohai).
10722 * Docx writer: Make sure we use dist version of `reference.docx`
10723 (and not the user's version) for certain settings. Taking some
10724 settings values from a user-supplied reference.docx can lead to
10725 corruption. This fixes a regression from the last release (#2249).
10727 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
10728 `getDefaultReferenceODT` (API change). These functions have been
10729 removed from the Docx and ODT writers.
10731 * LaTeX template (Xavier Olive):
10732 + Added `CJKmainfont` and `CJKoptions` variables.
10733 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
10735 * Epub templates: use `author.role`, not `author.type`.
10737 * Bump cmark version to >= 0.3.4.
10739 * Improved Windows installer (#2205, thanks to nkalvi).
10740 Users can now select a per-user or systemwide install, and can set
10741 the installation path. At the end of installation, the install location
10742 is given. The install location is also now given in the list of
10743 installed programs in Control Panel. Cleaner WiX syntax is used for
10746 * Added `download_stats` target to Makefile.
10748## pandoc 1.14.0.4 (2015-06-02)
10750 * Added missing commonmark template.
10752 * Improved try pandoc (moved button, show raw command).
10754## pandoc 1.14.0.3 (2015-06-01)
10756 * Allow compilation with syb 0.5.*.
10758 * Custom writer: fixed some compiler warnings for ghc < 7.10.
10760## pandoc 1.14.0.2 (2015-05-31)
10762 * Allow building with hslua 0.4.
10764## pandoc 1.14.0.1 (2015-05-28)
10766 * Fixed problem with building of `reference.docx` and `reference.odt`
10767 when the `embed_data_files` flag is used. Instead of having a phase
10768 of the build where `reference.docx` and `reference.odt` are created
10769 from their constituent data files, we now construct these archives
10770 from their constituents when a `docx` or `odt` is built. The
10771 constituent files have been moved from `extra-source-files` to
10772 `data-files`, and `reference.docx` and `reference.odt` have been
10773 removed. Users can create their own `reference.docx` or
10774 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
10775 `make-reference-files.hs` has been removed, simplifying the build
10778 * Don't include generated man pages in extra-source-files (#2189).
10780 * Bumped upper bound for aeson.
10782 * ConTeXt writer: create internal link anchors for Div elements with
10783 identifiers. (This is needed for linked citations to work.)
10785## pandoc 1.14 (2015-05-27)
10789 * Added `commonmark` as input and output format.
10791 * Added `--verbose` flag for debugging output in PDF production (#1840,
10794 * Allow wildcards in `--epub-embed-font` arguments (#1939).
10796 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
10798 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
10799 This is enabled by default for those markdown flavors that
10800 support reading shortcut reference links, namely: `markdown`,
10801 `markdown_strict`, `markdown_github`, `markdown_php`.
10802 If the extension is enabled, the reader parses shortcut reference
10803 links like `[foo]`, and the writer creates such links unless doing
10804 so would cause problems. Users of markdown flavors that support
10805 shortcut reference links should not notice a difference in reading
10806 markdown, but the markdown pandoc produces may differ.
10807 If shortcut links are not desired, the extension can be disabled
10810### Behavior changes
10812 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
10813 A "dirty" TOC is created at the beginning of document.
10814 It can be regenerated after the document has been opened.
10816 * An implicit `--filter pandoc-citeproc` is now triggered only when the
10817 `--bibliography` option is used, and not when the `bibliography`
10818 field in metadata is specified (#1849).
10822 + Reference links with `implicit_header_references` are no longer
10823 case-sensitive (#1606).
10824 + Definition lists no longer require indentation for first line (#2087).
10825 Previously the body of the definition (after the `:` or `~` marker)
10826 needed to be in column 4. This commit relaxes that requirement,
10827 to better match the behavior of PHP Markdown Extra. So, now
10828 this is a valid definition list:
10832 + Resolve a potentially ambiguity with table captions:
10842 Is "bar" a definition, or the caption for the table? We'll count
10843 it as a caption for the table.
10844 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
10845 Markdown Extra. Note: If you have been using headerless pipe tables,
10846 this change may cause existing tables to break.
10847 + Allow pipe tables with header but no body (#2017).
10848 + Allow a digit as first character of a citation key (Matthias Troffaes).
10849 See https://github.com/jgm/pandoc-citeproc/issues/97
10853 + Don't limit includes to `.tex` extension (#1882).
10854 If the extension is not `.tex`, it must be given explicitly in
10855 the `\input` or `\include`.
10859 + Allow numbering in the style file. This allows inherited styles
10860 with numbering (lists) (Jesse Rosenthal).
10864 + Support smart punctuation (Craig Bosma).
10865 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
10866 `:noexport:` tag set are not exported. This mirrors org-mode.
10867 + Put header tags into empty spans (Albert Krewinkel, #2160).
10868 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
10869 Instead of being interpreted as part of the headline, the tags are now
10870 put into the attributes of empty spans. Spans without textual content
10871 won't be visible by default, but they are detectable by filters. They
10872 can also be styled using CSS when written as HTML.
10873 + Generalize code block result parsing (Albert Krewinkel).
10874 Previously, only code blocks were recognized as result blocks;
10875 now, any kind of block can be the result.
10877 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
10878 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
10882 + Add "inline" or "display" class to math spans (#1914).
10883 This allows inline and display math to be styled differently.
10884 + Include raw latex blocks if `--mathjax` specified (#1938).
10885 + Require highlighting-kate >= 0.5.14 (#1903).
10886 This ensures that all code blocks will be wrapped in a `div`
10887 with class `sourceCode`. Also, the default highlighting CSS
10888 now adds `div.sourceCode { x-overflow: auto; }`, which means
10889 that code blocks (even with line numbers) will acquire a scroll
10890 bar on screens too small to display them (e.g. mobile phones).
10891 See also jgm/highlighting-kate#65.
10895 + Use a declaration for tight lists (Jose Luis Duran, Joseph
10896 Harriott). Previously, pandoc hard-coded some commands to make
10897 tight lists in LaTeX. Now we use a custom command instead,
10898 allowing the styling to be changed in a macro in the header.
10899 (Note: existing templates may need to be modified to include
10900 the definition of this macro. See the current template.)
10901 + Beamer output: if the header introducing a slide has the
10902 class `fragile`, add the `[fragile]` option to the slide (#2119).
10904 * MediaWiki writer:
10906 + Use `File:` instead of the deprecated `Image:` for images and
10907 other media files (Greg Rundlett).
10911 + Render a `Div (id,_,_) [Para _]` element as a `para` element
10912 with an `id` attribute. This makes links to citations work in
10913 DocBook with pandoc-citeproc.
10917 + Normalize headings to sequential levels (Nikolay Yakimov).
10918 This is pretty much required by docutils.
10919 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
10920 + Better handling of raw latex inline (#1961). We use
10921 `` :raw-latex:`...` `` and add a definition for this role to
10926 + Remove `linear=no` from cover `itemref` (#1609).
10927 + Don't use `sup` element for epub footnotes (#1995).
10928 Instead, just use an a element with class `footnoteRef`.
10929 This allows more styling options, and provides better results
10930 in some readers (e.g. iBooks, where anything inside the a
10931 tag breaks popup footnotes).
10932 + Take TOC title from `toc-title` metadata field.
10936 + Implemented `FirstParagraph` style (Jesse Rosenthal).
10937 Following the ODT writer, we add the `FirstParagraph` style to the
10938 first text paragraph following an image, blockquote, table, heading,
10939 or beginning of document. This allows it to be styled differently.
10940 The default is for it to be the same as `Normal`.
10941 + Added `BodyText` style (Jesse Rosenthal).
10942 We apply a `BodyText` style to all unstyled paragraphs. This is,
10943 essentially, the same as `Normal`, except that since not everything
10944 inherits from `BodyText` (the metadata won't, for example, or
10945 the headers or footnote numbers), we can change the text in the body
10946 without having to make exceptions for everything. If we do want to
10947 change *everything*, we can still do it through `Normal`.
10948 + Altered `Blockquote` style slightly (Jesse Rosenthal).
10949 Since `BlockQuote` derives from `BodyText`, we just want to specify
10950 by default that it won't indent, regardless of what `BodyText` does.
10951 Note that this will not produce any visible difference in the default
10953 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
10954 + Added a style to figure images (Nikolay Yakimov).
10955 Figures with empty captions use style `Figure`.
10956 Figures with nonempty captions use style `Figure with Caption`, which
10957 is based on `Figure`, and additionally has `keepNext` set.
10961 + Added figure captions (Nikolay Yakimov). The following styles are
10963 `Figure` -- for figure with empty caption),
10964 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
10965 `FigureCaption` (based on `Caption`) -- for figure captions.
10966 Also, `TableCaption` (based on `Caption`) is used for table captions.
10970 * New `Text.Pandoc.Error` module with `PandocError` type
10971 (Matthew Pickering).
10973 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
10974 (Matthew Pickering). This allows better handling of errors.
10976 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
10978 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
10980 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
10981 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
10982 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
10985 * New `Ext_shortcut_reference_links` constructor for `Extension`
10986 (Konstantin Zudov).
10992 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
10993 + Check for tex macros after indented code (#1973).
10994 + Rewrote `charsInBalancedBrackets` for efficiency.
10995 + Make sure a closing `</div>` doesn't get included in a
10996 definition list item (#2127).
10997 + Don't parse bracketed text as citation if it might be a link,
10998 image, or footnote (Nikolay Yakimov).
10999 + Require space after key in mmd title block (#2026, Nikolay
11000 Yakimov). Require space after key-value delimiter colon in mmd title
11002 + Require nonempty value in mmd title block (Nikolay Yakimov).
11003 + Disable all metadata block extensions when parsing
11004 metadata field values (#2026, Nikolay Yakimov). Otherwise we
11005 could get a mmd title block inside YAML metadata, for example.
11009 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
11010 + Handle tables with `<th>` in body rows (#1859, mb21).
11011 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
11012 to see if the input starts with `<!--`. If not, it's bogus comment
11013 mode and we fail `htmlTag`.
11014 + Handle `base` tag; if it has an `href` value, this is added to
11015 all relative URLs in links and images.
11019 + Look inside "info" elements for section titles (#1931).
11023 + Parse images in deprecated vml format (Jesse Rosenthal).
11024 + Allow sub/superscript verbatims (Jesse Rosenthal).
11025 Verbatim usually shuts off all other run styles, but we don't want it
11026 to shut off sub/superscript.
11030 + Handle `tabular*` environment (#1850).
11031 Note that the table width is not actually parsed or taken into
11032 account, but pandoc no longer chokes on it.
11033 + Ignore options in `\lstinline` rather than raising error (#1997).
11034 + Add some test cases for simple tables (Mathias Schenner).
11035 + Handle valign argument in tables (Mathias Schenner) (currently
11036 we just ignore this).
11037 + Allow non-empty colsep in tables (Mathias Schenner).
11038 The `tabular` environment allows non-empty column separators
11039 with the "@{...}" syntax. Previously, pandoc would fail to
11040 parse tables if a non-empty colsep was present. With this
11041 commit, these separators are still ignored, but the table gets
11042 parsed. A test case is included.
11043 + Recognize `\newpage` as a block command.
11044 + Allow block content in `\title{}` (#2001).
11045 + Check for block-level newcommand aliases in blockCommand (Nikolay
11047 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
11048 + Properly gobble spaces after `\\` (#2007).
11052 + Handle newlines in table cells, and empty cells (#1919).
11056 + Allow image links with non-image targets (Hans-Peter Deifel).
11057 This matches behavior of Org-Mode for links like
11058 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
11062 + Don't print empty id attributes (thanks to Steve Horne).
11066 + Fixed list-style-type for numbered example lists.
11067 Should be "decimal," not "example" (#1902).
11068 + Do not omit missing `alt` attribute on `img` tag (#1131,
11070 + Allow multiple colgroups in table (#2122).
11071 + In revealjs, ensure that lists in speaker notes don't add "fragment"
11072 classes, which can cause additional keypresses to be needed to
11073 advance a slide (#1394).
11077 + Don't escape `$` in URL (#1913).
11078 + Don't use listings in headers (Matthew Pickering, #1963).
11079 + Recognize book documentclass if set in metadata (#1971).
11080 This sets `--chapters` implicitly if the documentclass in metadata
11081 is a book documentclass. Previously this was done only if a book
11082 documentclass was set in a variable.
11083 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
11084 + Make `mainlang` work when `lang` is in metadata (#2174).
11088 + Fix wrapping by using breakable spaces (Tim Lin).
11092 + Fixed toc depth in RST writer. Previously the depth was being
11093 rendered as a floating point number with a decimal point.
11097 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
11098 compatibility with original Markdown. We now escape `<` and `>`
11099 with entities. Also, we now backslash-escape square brackets.
11100 + Avoid introducing spurious list items through wrapping (#1946).
11101 + Don't emit span tags if plain or raw HTML disabled.
11103 * MediaWiki writer:
11105 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
11109 + Insert some needed blank lines (#1860).
11110 + Avoid wrapping after list marker (#1858).
11114 + Properly handle internal links to IDs in spans, divs (#1884).
11115 + Use plain writer for metadata dc: fields (#2121).
11116 This gives better results when we have, e.g. multiple paragraphs.
11117 Note that tags aren't allowed in these fields.
11118 + Properly handle image links without an extension (#1855).
11119 + Improved chapter splitting and internal link rewriting (#1887,
11120 #2162, #2163). This will ensure that internal links work and
11121 that the references section produced by pandoc-citeproc is
11122 in its own chapter.
11123 + Fixed handling of svg images (#2183).
11127 + Better handling of raw blocks and inlines (#1951).
11128 Previously these were always escaped and printed verbatim.
11129 Now they are ignored unless the format is `icml`, in which
11130 case they are passed through unescaped.
11131 + Fixed image URIs in ICML output (gohai).
11135 + Raise error if loadstring returns an error status.
11136 + Raise `PandocLuaException` instead of using 'error'.
11137 Eventually we'll change the return type so that no exception
11138 is involved, but at least this can be trapped.
11139 + Use UTF-8 aware bytestring conversion.
11140 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
11141 Also factored out ByteString, since it's only used as an intermediate
11146 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
11147 + Filter out illegal XML characters (#1992, Matthew Pickering).
11148 + Added `noProof` to docx syntax highlighting `SourceCode` style.
11149 + Added footnotes id -1 and 0 (Jesse Rosenthal).
11150 Word uses, by default, footnotes with id -1 and 0 for separators. If a
11151 user modifies `reference.docx`, they will end up with a `settings.xml`
11152 file that references these footnotes, but no such footnotes in the
11153 document. This will produce a corruption error. Here we add these to the
11154 document and `settings.xml` file, so future modifications won't break
11156 + Handle lists correctly inside table cells (Jesse Rosenthal).
11157 Previously we didn't transform lists inside table cells.
11158 + Set firstRow information in tables (Nikolay Yakimov).
11159 + Don't replace `SourceCode` style in `reference.docx` if it is defined
11160 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
11161 any `SourceCode` and `*Tok` styles in `reference.docx`.
11162 + Attempt to match international style names (#1607, Nikolay Yakimov).
11163 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
11164 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
11165 `Definition`, `First Paragraph`.
11166 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
11167 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
11168 `Footnote Ref -> Footnote Reference`.
11169 + Added `Caption` style (Nikolay Yakimov).
11170 + Changed these styles' inheritance (Nikolay Yakimov):
11171 `Image Caption <- Caption`, `Table Caption <- Caption`.
11172 + Remove `SourceCode` style from `reference.docx` (#1872).
11173 This is added automatically by the docx writer.
11174 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
11176 * `Text.Pandoc.PDF`
11178 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
11179 + More comprehensible errors on image conversion (#2067).
11180 EPS can't be supported without shelling out to something like
11181 ImageMagick, but at least we can avoid mysterious error messages.
11183 * `Text.Pandoc.Shared`:
11185 + Make safeRead safe (#1801, Matthew Pickering).
11186 + Addded `mapLeft`, `hush` (Matthew Pickering).
11188 * `Text.Pandoc.Pretty`:
11190 + Remove partial function (Matthew Pickering).
11192 * `Text.Pandoc.SelfContained`:
11194 + Add `;charset=utf-8` to script mime type if missing (#1842).
11195 + Improved building of data URIs (#1940). Now base64 is used except
11196 for `text/*` mime types.
11197 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
11198 + Properly handle data URIs in css urls (#2129).
11199 Use a proper CSS parser (adds dependency on `text-css`).
11201 * `Text.Pandoc.UTF8`:
11203 + Better handling of bare CRs in input files (#2132).
11204 Previously we just stripped them out; now we convert
11205 other line ending styles to LF line endings.
11207 * `Text.Pandoc.ImageSize`:
11209 + Fixed some exif header parsing bugs (#1834).
11210 + Make imageSize return an Either, not a Maybe (#1834).
11211 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
11212 parse failure (rather than `error`).
11213 + Improved warnings when image size can't be determined.
11214 + Removed error landmines (Matthew Pickering).
11216 * Added woff2 to MIME types (Alfred Wechselberger).
11218 * pandoc: When a binary input format is used, warn that file
11219 arguments past the first one are being ignored (Matthew Pickering).
11221### Template changes
11225 + Degrade gracefully if `\paragraph` not defined.
11226 + Include `grffile` together with `graphicx` (#2074).
11227 This properly handles filenames containing spaces and dots.
11228 + Redefine `\paragraph`, `\subparagraph`... to behave more
11229 like section headers (#1658).
11230 + Import hyperref before polyglossia to avoid an error with xelatex,
11231 "please load package hyperref before bidi package" (Nick Bart).
11232 + Added `toccolor` variable to control link color in toc (Kaixhin).
11234 * LaTeX, Beamer templates:
11236 + Provide `\tightlist`, which is now used by the LaTeX writer.
11237 + Use polyglossia in beamer (#85).
11238 + Use `bibliography` instead of `biblio-files`
11239 (#1661). Also use `\addbibresource` instead of `\bibliography` for
11241 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
11242 variable that is derived from a comma-separated list in `lang`;
11243 the last language is `mainlang` and the others are `otherlang`.
11247 + Use `div`, not `p`, for "rights" on title page.
11248 + Added header-includes, include-before, include-after (#1987).
11250 * OpenDocument template:
11252 + Use `text:p` instead of `text:h` for title.
11253 Using `text:h` causes problems with numbering. Closes #2059.
11254 Thansk to @nkalvi for diagnosing this.
11256 * reveal.js template:
11258 + Link to non-minified css, js. The minified versions no longer
11259 ship with the library.
11260 + Correctly include style CSS (#1949).
11261 + New configurable options options: `center`, `maxScale`, `slideNuber`
11262 (Dmitry Smirnov, pandoc-templates#89).
11263 + Moved custom CSS after theme. This allows custom CSS to modify
11264 themes, instead of being replaced by them.
11265 + Allow `center` to be set to false.
11267### Under the hood improvements
11269 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
11270 Yakimov). Instead the repository now includes the component text files,
11271 and the zipped binaries are built from these using a helper
11272 program, `make-reference-files`. This should make maintenance of
11273 these components easier going forward.
11275 * `Text.Pandoc.Parsing`:
11277 + Added new `<+?>` combinator (Nikolay Yakimov).
11278 + Added `stateHeaderKeys` to `ParserState`.
11280 * `make_deb.sh` fixes:
11282 + Detect architecture.
11283 + Add Installed-Size to debian package control file (#1900).
11284 + Use `fakeroot` to get permissions right.
11285 + Use `mkdir` and `cp` instead of `install`.
11286 + Set permissions of directories to 755.
11287 + Install in `/usr` rather than `/usr/local`.
11288 + Compress man pages.
11289 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
11291 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
11292 to assist with transition to `time` 1.5.
11294 * Updated CONTRIBUTING.md with information about issue tags (Matthew
11297 * Updated travis installs to the new sudo-less syntax (Tim Lin).
11299 * Updated dependency version bounds.
11301 * EPUB tests: don't use `joinPath`, which varies across platforms.
11302 Instead, use a forward-slash to join paths, regardless of the
11303 platform. This matches the way `MediaBag` now works.
11305 * Clarify JSON input and output in usage message (Caleb McDaniel).
11307 * Improved INSTALL instructions.
11309 * Always build man pages. Removed make-pandoc-man-pages flag.
11311 * Makefile: removed man target, now that we generate man pages by default.
11315 + Fixed typos (J. Lewis Muir).
11316 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
11317 + Added note on in-field markup in biblio databases (Nick Bart).
11318 + Fixed misleading example of raw HTML block.
11319 + Various minor formatting and consistency fixes for the program
11320 options (Andreas Lööw).
11321 + Made definition lists for options all "loose" for consistency.
11322 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
11323 `--bib2json` and `--bib2yaml` options (Nick Bart).
11324 + Removed obsolete reference to `mods2yaml` (Nick Bart).
11325 + Added section on syntax highlighting.
11326 + Documented `toccolor` variable.
11328## pandoc 1.13.2.1 (2015-04-15)
11330 * Updated to build with ghc 7.10.1.
11332 * Bumped package upper bounds for filepath, blaze-html, blaze-markup.
11334## pandoc 1.13.2 (2014-12-20)
11336 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
11340 + Better handling of paragraph in div (#1591).
11341 Previously text that ended a div would be parsed as Plain
11342 unless there was a blank line before the closing div tag.
11343 + Don't treat a citation as a reference link label (#1763).
11344 + Fix autolinks with following punctuation (#1811).
11345 The price of this is that autolinked bare URIs can no longer
11346 contain `>` characters, but this is not a big issue.
11347 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
11348 + Allow `startnum` to work without `fancy_lists`. Formerly
11349 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
11351 * RST reader (all Daniel Bergey):
11353 + Parse quoted literal blocks (#65). RST quoted literal blocks are
11354 the same as indented literal blocks (which pandoc already supports)
11355 except that the quote character is preserved in each line.
11356 + Parse RST class directives. The class directive accepts one or more
11357 class names, and creates a Div value with those classes. If the
11358 directive has an indented body, the body is parsed as the children of
11359 the Div. If not, the first block following the directive is made a
11360 child of the Div. This differs from the behavior of rst2xml, which
11361 does not create a Div element. Instead, the specified classes are
11362 applied to each child of the directive. However, most Pandoc Block
11363 constructors to not take an Attr argument, so we can't duplicate this
11365 + Warn about skipped directives.
11366 + Literal role now produces Code. Code role should have "code" class.
11367 + Improved support for custom roles
11369 - Added `sourceCode` to classes for `:code:` role, and anything
11370 inheriting from it.
11371 - Add the name of the custom role to classes if the Inline
11372 constructor supports Attr.
11373 - If the custom role directive does not specify a parent role,
11374 inherit from the `:span:` role.
11376 This differs somewhat from the `rst2xml.py` behavior. If a custom
11377 role inherits from another custom role, Pandoc will attach both
11378 roles' names as classes. `rst2xml.py` will only use the class of
11379 the directly invoked role (though in the case of inheriting from a
11380 `:code:` role with a `:language:` defined, it will also provide the
11381 inherited language as a class).
11382 + Warn about ignored fields in role directives.
11386 + Parse label after caption into a span instead of
11387 inserting an additional paragraph of bracketed text (#1747).
11388 + Parse math environments as inline when possible (#1821).
11389 + Better handling of `\noindent` and `\greektext` (#1783).
11390 + Handle `\texorpdfstring` more gracefully.
11391 + Handle `\cref` and `\sep` (Wikiwide).
11392 + Support `\smartcite` and `\Smartcite` from biblatex.
11396 + Retain display type of MathML output (#1719, Matthew Pickering).
11397 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
11398 + Make `embed` tag either block or inline (#1756).
11402 + Handle `keycombo`, `keycap` (#1815).
11403 + Get string content in inner tags for literal elements (#1816).
11404 + Handle `menuchoice` elements better, with a `>` between (#1817).
11405 + Include `id` on section headers (#1818).
11406 + Document/test "type" as implemented (Brian O'Sullivan).
11407 + Add support for calloutlist and callout (Brian O'Sullivan).
11408 We treat a calloutlist as a bulleted list. This works well in practice.
11409 + Add support for `classname` (Bryan O'Sullivan).
11413 + Fix window path for image lookup (Jesse Rosenthal).
11414 Don't use os-sensitive "combine", since we always want the paths in our
11415 zip-archive to use forward-slashes.
11416 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
11417 When users number their headers, Word understands that as a single item
11418 enumerated list. We make the assumption that such a list is, in fact,
11420 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
11421 There could be new top-level headers after making lists, so we have to
11422 rewrite links after that.
11423 + Use polyglot header list (Jesse Rosenthal).
11424 We're just keeping a list of header formats that different languages
11425 use as their default styles. At the moment, we have English, German,
11426 Danish, and French. We can continue to add to this.
11427 This is simpler than parsing the styles file, and perhaps less
11428 error-prone, since there seems to be some variations, even within a
11429 language, of how a style file will define headers.
11430 + Remove header class properly in other langs (Jesse Rosenthal).
11431 When we encounter one of the polyglot header styles, we want to remove
11432 that from the par styles after we convert to a header. To do that, we
11433 have to keep track of the style name, and remove it appropriately.
11434 + Account for external link URLs with anchors. Previously, if a URL
11435 had an anchor, the reader would incorrectly identify it as an
11436 internal link and return only the anchor as URL. (Caleb McDaniel)
11437 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
11441 + Added state changing blanklines (Jesse Rosenthal).
11442 This allows us to emphasize at the beginning of a new paragraph (or, in
11443 general, after blank lines).
11444 + Fixed bug with bulleted lists:
11450 was being parsed as a list, even though an unindented `*`
11451 should make a heading. See
11452 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
11453 + Org reader: absolute, relative paths in link (#1741, Albert
11454 Krewinkel). The org reader was too restrictive when parsing links;
11455 some relative links and links to files given as absolute paths
11456 were not recognized correctly.
11457 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
11458 This is important for use in gitit, which uses empty links
11460 + Respect indent when parsing Org bullet lists (#1650, Timothy
11461 Humphries). Fixes issue with top-level bullet list parsing.
11462 + Fix indent issue for definition lists (Timothy Humphries,
11463 see #1650, #1698, #1680).
11464 + Parse multi-inline terms correctly in definition list (#1649,
11465 Matthew Pickering).
11466 + Fix rules for emphasis recognition (Albert Krewinkel).
11467 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
11468 strings. This is wrong, as `,` and `'` are forbidden border chars and
11469 may not occur on the inner border of emphasized text.
11470 + Drop COMMENT document trees (Albert Krewinkel).
11471 Document trees under a header starting with the word `COMMENT` are
11472 comment trees and should not be exported. Those trees are dropped
11474 + Properly handle links to `file:target` (Albert Krewinkel).
11475 Org links like `[[file:target][title]]` were not handled correctly,
11476 parsing the link target verbatim. The org reader is changed such that
11477 the leading `file:` is dropped from the link target (see #756, #1812).
11478 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
11479 Org supports special symbols which can be included using LaTeX syntax,
11480 but are actually MathML entities. Examples for this are
11481 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
11482 or `\copy` (the copyright sign ©)
11486 + URI handling improvements. Now we outsource most of the work to
11487 `fetchItem'`. Also, do not include queries in file extensions (#1671).
11491 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
11492 + Handle consecutive linebreaks (#1733).
11493 + Protect graphics in headers (Jesse Rosenthal).
11494 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
11495 + Put `~` before header in list item text (Jesse Rosenthal).
11496 Because of the built-in line skip, LaTeX can't handle a section header
11497 as the first element in a list item.
11498 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
11499 + Better handling of display math in simple tables (#1754).
11500 We convert display math to inline math in simple tables,
11501 since LaTeX can't deal with display math in simple tables.
11502 + Escape spaces in code (#1694, Bjorn Buckwalter).
11504 * MediaWiki writer:
11506 + Fixed links with URL = text. Previously these were rendered as bare
11507 words, even if the URL was not an absolute URL (#1825).
11511 + Don't force all citations into footnotes.
11515 + Add blankline at end of output (#1732, Matthew Pickering).
11519 + Ensure blank line after figure.
11520 + Avoid exces whitespace after last list item (#1777).
11521 + Wrap line blocks with spaces before continuations (#1656).
11522 + Fixed double-rendering of footnotes in RST tables (#1769).
11526 + Better handling of block quotes. This change ensures that
11527 multiple paragraph blockquotes are rendered using native `>`
11528 rather than as HTML (#1738).
11529 + Fix external images (#1739). Preface relative links with ":",
11530 absolute URIs without. (Timothy Humphries)
11534 + Use protocol-relative URL for mathjax.
11535 + Put newline btw img and caption paragraph.
11536 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
11537 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
11538 This adds `KaTeX` to `HTMLMathMethod` (API change).
11539 + Don't double render when `email-obfuscation=none` (#1625, Matthew
11541 + Make header attributes work outside top level (#1711).
11542 Previously they only appeared on top level header elements.
11543 Now they work e.g. in blockquotes.
11547 + Correctly handle images without extensions (#1729).
11548 + Strip querystring in ODT write (#1682, Todd Sifleet).
11552 + Add newline to output.
11556 + Don't add `sourceURL` to absolute URIs (#1669).
11557 + Don't use unsupported `opf:title-type` for epub2.
11558 + Include "landmarks" section in nav document for epub3 (#1757).
11559 + Removed playOrder from navpoint elements in ncx file (#1760).
11560 These aren't required, and they make manual modification of epubs
11562 + Extract title even from structured title.
11563 + Don't include nav node in spine unless `--toc` was requested.
11564 Previously we included it in the spine with `linear="no"`, leading
11565 to odd results in some readers (#1593).
11566 + Fixed absolute URI detection (#1672).
11567 + Correctly resolve relative URIs (#1671).
11568 + Use regular page template for `nav.xhtml`, including doctype (#1759).
11572 + Put docx table captions above tables (#1641, Nikolay Yakimov).
11573 + Get the page width from the reference docx file, and use
11574 it to scale images that are too large to fit (Grégory Bataille).
11575 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
11576 are inferred based on `<w:name val="heading #">` fallback, if there
11577 are no en-US "Heading#" styles
11578 + Look in user data dir for archive `reference.docx`.
11579 + Renumber header and footer relationships to avoid collisions (Jesse
11580 Rosenthal). We previously took the old relationship names of the
11581 headers and footer in secptr. That led to collisions. We now make
11582 a map of availabl names in the relationships file, and then rename
11587 + Add function toLabel (Mark Szepieniec).
11588 This function can be used to sanitize reference labels so that
11589 they do not contain any of the illegal characters \#[]",{}%()|= .
11590 Currently only Links have their labels sanitized, because they
11591 are the only Elements that use passed labels.
11593 * `Text.Pandoc.Shared`:
11595 + Moved import of `toChunks` outside of CPP conditional (#1590).
11596 + Fix `inDirectory` to reset to the original directory in case
11597 an exception occurs (Freiric Barral).
11601 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
11602 Thanks to bluebirch.
11603 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
11605 + LaTeX template: Add shorthands=off to babel options (#1648).
11606 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
11607 This aids styling, making it possible for example to set 0 margins
11608 on the title page (#1758).
11609 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
11610 Previously we just expected 'title', 'subtitle', 'author', 'date'.
11611 Now we still support those, but also support the format recommended
11612 for epub metadata in the pandoc README:
11619 text: An investigation of metadata
11627 text: doi:10.234234.234/33
11628 publisher: My Press
11629 rights: (c) 2007 John Smith, CC BY-NC
11632 * `Text.Pandoc.Templates.getDefaultTemplate`:
11633 don't fail when called with "fb2" (#1660).
11635 * `Text.Pandoc.Parsing`:
11637 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
11638 For example: `$x = \text{the $n$th root of $y$}` (#1677).
11639 + Change `parseFromString` to fail if not all input is consumed.
11640 (Matthew Pickering)
11641 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
11642 used by more readers (API change, Daniel Bergey).
11644 * `Text.Pandoc.Pretty`:
11646 + Improve performance of `realLength` (Matthew Pickering).
11647 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
11648 were getting at the end of markdown fragments (as well as rst, org,
11651 * `Text.Pandoc.MIME`:
11653 + Add mime type for WebVTT (Jason Ronallo).
11654 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
11655 This is needed for epub3 validation.
11657 * `Text.Pandoc.MediaBag`:
11659 + Fix Windows specific path problems (#1597).
11661 * `Text.Pandoc.Shared`:
11663 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
11665 * Link the test suite using `-threaded`.
11666 This allows the test suite to be run using `+RTS -N`.
11668 * Added `network` dependency under `network-uri` flag in test section.
11670 * Give better error messages when someone tries to convert from
11671 pdf, doc, odt (#1683).
11673 * Added `track` to list of tags treated by `--self-contained` (#1664).
11676## pandoc 1.13.1 (2014-08-30)
11678 * Fixed `--self-contained` with Windows paths (#1558).
11679 Previously `C:\foo.js` was being wrongly interpreted as a URI.
11681 * HTML reader: improved handling of tags that can be block or inline.
11682 Previously a section like this would be enclosed in a paragraph,
11683 with RawInline for the video tags (since video is a tag that can
11684 be either block or inline):
11686 <video controls="controls">
11687 <source src="../videos/test.mp4" type="video/mp4" />
11688 <source src="../videos/test.webm" type="video/webm" />
11690 The videos can not be played back on your system.<br/>
11691 Try viewing on Youtube (requires Internet connection):
11692 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
11697 This change will cause the video and source tags to be parsed
11698 as RawBlock instead, giving better output.
11699 The general change is this: when we're parsing a "plain" sequence
11700 of inlines, we don't parse anything that COULD be a block-level tag.
11704 + Be sensitive to user styles. Note that "Hyperlink" is
11705 "blacklisted," as we don't want the default underline styling to be
11706 inherited by all links by default (Jesse Rosenthal).
11707 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
11708 This makes to docx reader's native output fit with the way the markdown
11709 reader understands its markdown output.
11713 + Header is now parsed only if standalone flag is set (Matthew Pickering).
11714 + The header is now parsed as meta information. The first line is the
11715 `title`, the second is the `author` and third line is the `date`
11716 (Matthew Pickering).
11717 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
11718 + Fixed crash when reading from stdin.
11720 * Textile writer: Extended the range of cases where native textile
11721 tables will be used (as opposed to raw HTML): we now handle any
11722 alignment type, but only for simple tables with no captions.
11724 * EPUB writer: Don't use page-progression-direction in EPUB2, which
11725 doesn't support it. Also, if page-progression-direction not specified
11726 in metadata, don't include the attribute even in EPUB3; not including it
11727 is the same as including it with the value "default", as we did before.
11730 * Org writer: Accept example lines with indentation at the beginning
11735 + Refactor to use Reader monad (Matthew Pickering).
11736 + Avoid using raw HTML in table cells; instead, use `\\`
11737 instead of newlines (Jesse Rosenthal).
11738 + Properly handle HTML table cell alignments, and use spacing
11739 to make the tables look prettier (#1566).
11743 + Bibliography entries get `Bibliography` style (#1559).
11744 + Implement change tracking (Jesse Rosenthal).
11748 + Fixed a bug that caused a table caption to repeat across all pages
11750 + Improved vertical spacing in tables and made it customizable using
11751 standard lengths set by booktab. See
11752 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
11754 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
11755 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
11756 + Made horizontal rules more flexible (Jose Luis Duran).
11758 * Text.Pandoc.MIME:
11760 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
11761 Code cleanups (Artyom Kazak).
11765 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
11768 * Improved OSX build procedure.
11770 * Added `network-uri` flag, to deal with split of `network-uri` from
11773 * Fix build dependencies for the `trypandoc` flag, so that they are
11774 ignored if `trypandoc` flag is set to False (Gabor Pali).
11776 * Updated README to remove outdated claim that `--self-contained`
11777 looks in the user data directory for missing files.
11779## pandoc 1.13.0.1 (2014-08-17)
11783 + Fixed regression which bungled list numbering (#1544), causing
11784 all lists to appear as basic ordered lists.
11785 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
11786 Added a property to all table rows where the sum of column widths
11787 is specified in pct (fraction of 5000). This helps persuade Word
11788 to lay out the table with the widths we specify.
11790 * Fixed a bug in Windows 8 which caused pandoc not to find the
11791 `pandoc-citeproc` filter (#1542).
11793 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
11794 Most significantly, the reader now uses Builder, leading to some
11795 performance improvements.
11797 * HTML reader: Parse appropriately styled span as SmallCaps.
11799 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
11800 `superscript`, and `subscript` extensions, respectively, are
11801 deactivated (#1127).
11803 * Added `trypandoc` flag to build CGI executable used in the online
11806 * Makefile: Added 'quick', 'osxpkg' targets.
11808 * Updated README in templates to indicate templates license.
11809 The templates are dual-licensed, BSD3 and GPL2+.
11811## pandoc 1.13 (15 August 2014)
11815 * Added `docx` as an input format (Jesse Rosenthal). The docx
11816 reader includes conversion of native Word equations to pandoc
11817 LaTeX `Math` elements. Metadata is taken from paragraphs at the
11818 beginning of the document with styles `Author`, `Title`, `Subtitle`,
11819 `Date`, and `Abstract`.
11821 * Added `epub` as an input format (Matthew Pickering). The epub
11822 reader includes conversion of MathML to pandoc LaTeX `Math`
11825 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
11826 Txt2tags is a lightweight markup format described at
11827 <http://txt2tags.org/>.
11829 * Added `dokuwiki` as an output format (Clare Macrae).
11831 * Added `haddock` as an output format.
11833 * Added `--extract-media` option to extract media contained in a zip
11834 container (docx or epub) while adjusting image paths to point to the
11837 * Added a new markdown extension, `compact_definition_lists`, that
11838 restores the syntax for definition lists of pandoc 1.12.x, allowing
11839 tight definition lists with no blank space between items, and
11840 disallowing lazy wrapping. (See below under behavior changes.)
11842 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
11844 * Added extensions `native_spans` and `native_divs` to activate
11845 parsing of material in HTML span or div tags as Pandoc Span
11846 inlines or Div blocks.
11848 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
11849 Textile, and MediaWiki readers. This is an option intended
11850 for debugging parsing problems; ordinary users should not need
11853### Behavior changes
11855 * Changed behavior of the `markdown_attribute` extension, to bring
11856 it in line with PHP markdown extra and multimarkdown. Setting
11857 `markdown="1"` on an outer tag affects all contained tags,
11858 recursively, until it is reversed with `markdown="0"` (#1378).
11860 * Revised markdown definition list syntax (#1429). Both the reader
11861 and writer are affected. This change brings pandoc's definition list
11862 syntax into alignment with that used in PHP markdown extra and
11863 multimarkdown (with the exception that pandoc is more flexible about
11864 the definition markers, allowing tildes as well as colons). Lazily
11865 wrapped definitions are now allowed. Blank space is required
11866 between list items. The space before a definition is used to determine
11867 whether it is a paragraph or a "plain" element. **WARNING: This change
11868 may break existing documents!** Either check your documents for
11869 definition lists without blank space between items, or use
11870 `markdown+compact_definition_lists` for the old behavior.
11872 * `.numberLines` now works in fenced code blocks even if no language
11873 is given (#1287, jgm/highlighting-kate#40).
11875 * Improvements to `--filter`:
11877 + Don't search PATH for a filter with an explicit path.
11878 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
11879 the system path, even if there was a `caps.py` in the working directory.
11880 + Respect shebang if filter is executable (#1389).
11881 + Don't print misleading error message.
11882 Previously pandoc would say that a filter was not found,
11883 even in a case where the filter had a syntax error.
11887 + Parse `div` and `span` elements even without `--parse-raw`,
11888 provided `native_divs` and `native_spans` extensions are set.
11889 Motivation: these now generate native pandoc Div and Span
11890 elements, not raw HTML.
11891 + Parse EPUB-specific elements if the `epub_html_exts`
11892 extension is enabled. These include `switch`, `footnote`,
11893 `rearnote`, `noteref`.
11897 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
11898 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
11899 `\cite{Coffee}`), can be used without any further escaping (Albert
11902 * Textile reader and writer:
11904 + The `raw_tex` extension is no longer set by default. You can
11905 enable it with `textile+raw_tex`.
11909 + Support `equation`, `informalequation`, `inlineequation` elements with
11910 `mml:math` content. This is converted into LaTeX and put into a Pandoc
11913 * Revised `plain` output, largely following the style of Project
11916 + Emphasis is rendered with `_underscores_`, strong emphasis
11918 + Headings are rendered differently, with space to set them off,
11919 not with setext style underlines. Level 1 headers are ALL CAPS.
11920 + Math is rendered using unicode when possible, but without the
11921 distracting emphasis markers around variables.
11922 + Footnotes use a regular `[n]` style.
11926 + Horizontal rules are now a line across the whole page.
11927 + Prettier pipe tables. Columns are now aligned (#1323).
11928 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
11929 no longer emits any raw HTML, including span and div tags
11930 generated by Span and Div elements.
11931 + Use span with style for `SmallCaps` (#1360).
11935 + Autolinks now have class `uri`, and email autolinks have class
11936 `email`, so they can be styled.
11940 + Document formatting is carried over from `reference.docx`.
11941 This includes margins, page size, page orientation, header,
11942 and footer, including images in headers and footers.
11943 + Include abstract (if present) with `Abstract` style (#1451).
11944 + Include subtitle (if present) with `Subtitle` style, rather
11945 than tacking it on to the title (#1451).
11949 + Write empty span elements with an id attribute as org anchors.
11950 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
11954 + Put table captions above tables, to match the conventional
11955 standard. (Previously they appeared below tables.)
11956 + Use `\(..\)` instead of `$..$` for inline math (#1464).
11957 + Use `\nolinkurl` in email autolinks. This allows them to be styled
11958 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
11959 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
11960 curly quotes in the PDF output (#1364).
11961 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
11962 do not appear before the overlays in which their markers appear
11964 + Don't produce a `\label{..}` for a Div or Span element. Do produce
11965 a `\hyperdef{..}` (#1519).
11969 + If the metadata includes `page-progression-direction` (which can be
11970 `ltr` or `rtl`, the `page-progression-direction` attribute will
11971 be set in the EPUB spine (#1455).
11973 * Custom lua writers:
11975 + Custom writers now work with `--template`.
11976 + Removed HTML header scaffolding from `sample.lua`.
11977 + Made citation information available in lua writers.
11979 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
11980 adjacent `RawBlock`s when possible.
11984 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
11986 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
11989 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
11992 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
11995 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
11997 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
11998 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
11999 readers return a pair of a `Pandoc` document and a `MediaBag` with
12000 the media resources they contain. This can be extracted using
12001 `--extract-media`. Writers that incorporate media (PDF, Docx,
12002 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
12003 for resources in the `MediaBag` generated by the reader, in addition to
12004 the file system or web.
12006 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
12007 Renamed `readTeXMath'` to `texMathToInlines`.
12009 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
12010 `readers` now associates names of readers with `Reader`
12011 structures. This allows inclusion of readers, like the docx
12012 reader, that take binary rather than textual input.
12014 * `Text.Pandoc.Shared`:
12016 + Added `capitalize` (Artyom Kazak), and replaced uses of
12017 `map toUpper` (which give bad results for many languages).
12018 + Added `collapseFilePath`, which removes intermediate `.` and
12019 `..` from a path (Matthew Pickering).
12020 + Added `fetchItem'`, which works like `fetchItem` but searches
12021 a `MediaBag` before looking on the net or file system.
12022 + Added `withTempDir`.
12023 + Added `removeFormatting`.
12024 + Added `extractSpaces` (from HTML reader) and generalized its type
12025 so that it can be used by the docx reader (Matthew Pickering).
12027 + Added `normalizeInlines`, `normalizeBlocks`.
12028 + `normalize` is now `Pandoc -> Pandoc` instead of
12029 `Data a :: a -> a`. Some users may need to change their uses of
12030 `normalize` to the newly exported `normalizeInlines` or
12033 * `Text.Pandoc.Options`:
12035 + Added `writerMediaBag` to `WriterOptions`.
12036 + Removed deprecated and no longer used `readerStrict` in
12037 `ReaderOptions`. This is handled by `readerExtensions` now.
12038 + Added `Ext_compact_definition_lists`.
12039 + Added `Ext_epub_html_exts`.
12040 + Added `Ext_native_divs` and `Ext_native_spans`.
12041 This allows users to turn off the default pandoc behavior of
12042 parsing contents of div and span tags in markdown and HTML
12043 as native pandoc Div blocks and Span inlines.
12045 * `Text.Pandoc.Parsing`:
12047 + Generalized `readWith` to `readWithM` (Matthew Pickering).
12048 + Export `runParserT` and `Stream` (Matthew Pickering).
12049 + Added `HasQuoteContext` type class (Matthew Pickering).
12050 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
12051 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
12052 `applyMacros` (Matthew Pickering).
12053 + Added custom `token` (Matthew Pickering).
12054 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
12055 track of the ending tag we're waiting for when we're parsing inside
12057 + Added `stateMarkdownAttribute` to `ParserState`. This is used
12058 to keep track of whether the markdown attribute has been set in
12060 + Generalized type of `registerHeader`, using new type classes
12061 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
12062 Pickering). These allow certain common functions to be reused
12063 even in parsers that use custom state (instead of `ParserState`),
12064 such as the MediaWiki reader.
12065 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
12066 and generalized their types (Matthew Pickering).
12068 * `Text.Pandoc.Pretty`:
12071 + Added `blanklines`, which guarantees a certain number of blank lines
12078 + Fixed parsing of indented code in list items. Indented code
12079 at the beginning of a list item must be indented eight spaces
12080 from the margin (or edge of the container), or four spaces
12081 from the list marker, whichever is greater.
12082 + Fixed small bug in HTML parsing with `markdown_attribute`, which
12083 caused incorrect tag nesting for input like
12084 `<aside markdown="1">*hi*</aside>`.
12085 + Fixed regression with intraword underscores (#1121).
12086 + Improved parsing of inline links containing quote characters (#1534).
12087 + Slight rewrite of `enclosure`/`emphOrStrong` code.
12088 + Revamped raw HTML block parsing in markdown (#1330).
12089 We no longer include trailing spaces and newlines in the
12090 raw blocks. We look for closing tags for elements (but without
12091 backtracking). Each block-level tag is its own `RawBlock`;
12092 we no longer try to consolidate them (though `--normalize` will do so).
12093 + Combine consecutive latex environments. This helps when you have
12094 two minipages which can't have blank lines between them (#690, #1196).
12095 + Support smallcaps through span.
12096 `<span style="font-variant:small-caps;">foo</span>` will be
12097 parsed as a `SmallCaps` inline, and will work in all output
12098 formats that support small caps (#1360).
12099 + Prevent spurious line breaks after list items (#1137). When the
12100 `hard_line_breaks` option was specified, pandoc would formerly
12101 produce a spurious line break after a tight list item.
12102 + Fixed table parsing bug (#1333).
12103 + Handle `c++` and `objective-c` as language identifiers in
12104 github-style fenced blocks (#1318).
12105 + Inline math must have nonspace before final `$` (#1313).
12109 + Handle comments at the end of tables. This resolves the issue
12110 illustrated in <http://stackoverflow.com/questions/24009489>.
12111 + Correctly handle table rows with too few cells. LaTeX seems to
12112 treat them as if they have empty cells at the end (#241).
12113 + Handle leading/trailing spaces in `\emph` better.
12114 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
12115 so that we don't get things like `* hi *` in markdown output.
12116 Also applies to `textbf` and some other constructions (#1146).
12117 + Don't assume preamble doesn't contain environments (#1338).
12118 + Allow (and discard) optional argument for `\caption` (James Aspnes).
12122 + Fixed major parsing problem with HTML tables. Table cells were
12123 being combined into one cell (#1341).
12124 + Fixed performance issue with malformed HTML tables.
12125 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
12126 + Allow space between `<col>` and `</col>`.
12127 + Added `audio` and `source` in `eitherBlockOrInline`.
12128 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
12129 `blockTags` to `eitherBlockOrInline`.
12130 + `map` and `object` were mistakenly in both lists; they have been removed
12132 + Ignore `DOCTYPE` and `xml` declarations.
12134 * MediaWiki reader:
12136 + Don't parse backslash escapes inside `<source>` (#1445).
12137 + Tightened up template parsing.
12138 The opening `{{` must be followed by an alphanumeric or `:`.
12139 This prevents the exponential slowdown in #1033.
12140 + Support "Bild" for images.
12144 + Better handle elements inside code environments. Pandoc's document
12145 model does not allow structure inside code blocks, but at least this way
12146 we preserve the text (#1449).
12147 + Support `<?asciidoc-br?>` (#1236).
12151 + Fixed list parsing. Lists can now start without an intervening
12152 blank line (#1513).
12153 + HTML block-level tags that do not start a line are parsed as
12154 inline HTML and do not interrupt paragraphs (as in RedCloth).
12158 + Make tildes create inline code (#1345). Also relabeled `code` and
12159 `verbatim` parsers to accord with the org-mode manual.
12160 + Respect `:exports` header argument in code blocks (Craig Bosma).
12161 + Fixed tight lists with sublists (#1437).
12165 + Avoid excess whitespace in `nav.xhtml`. This should improve
12166 TOC view in iBooks (#1392).
12167 + Fixed regression on cover image.
12168 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
12169 because the metadata id was not correct. Now we derive the id from the
12170 actual cover image filename, which we preserve rather than using
12172 + Keep newlines between block elements. This allows
12173 easier diff-ability (#1424).
12174 + Use `stringify` instead of custom `plainify`.
12175 + Use `renderTags'` for all tag rendering. This properly handles tags
12176 that should be self-closing. Previously `<hr/>` would appear in EPUB
12177 output as `<hr></hr>` (#1420).
12178 + Better handle HTML media tags.
12179 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
12180 can have only one dc:date, so only the first one is used.
12184 + Correctly handle figures in notes. Notes can't contain figures in
12185 LaTeX, so we fake it to avoid an error (#1053).
12186 + Fixed strikeout + highlighted code (#1294).
12187 Previously strikeout highlighted code caused an error.
12191 + Improved detection of autolinks with URLs containing escapes.
12195 + Improved image embedding: `fetchItem'` is now used to get the
12196 images, and calculated image sizes are indicated in the RTF.
12197 + Avoid extra paragraph tags in metadata (#1421).
12201 + Deactivate "incremental" inside slide speaker notes (#1394).
12202 + Don't include empty items in the table of contents for
12203 slide shows. (These would result from creating a slide
12204 using a horizontal rule.)
12206 * MediaWiki writer:
12208 + Minor renaming of `st` prefixed names.
12212 + Double up emphasis and strong emphasis markers in intraword
12213 contexts, as required by asciidoc (#1441).
12217 + Avoid wrapping that might start a list, blockquote, or header (#1013).
12218 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
12219 + Don't use braced attributes for fenced code (#1416).
12220 If `Ext_fenced_code_attributes` is not set, the first class
12221 attribute will be printed after the opening fence as a bare word.
12222 + Separate adjacent lists of the same kind with an HTML comment (#1458).
12226 + Fixed treatment of data uris for images (#1062).
12230 + Use Compact style for empty table cells (#1353).
12231 Otherwise we get overly tall lines when there are empty
12232 table cells and the other cells are compact.
12233 + Create overrides per-image for `media/` in reference docx.
12234 This should be somewhat more robust and cover more types of images.
12235 + Improved `entryFromArchive` to avoid an unneeded parse.
12236 + Section numbering carries over from reference.docx (#1305).
12237 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
12238 we assign numbers based on the list marker styles.
12240 * `Text.Pandoc.Options`:
12242 + Removed `Ext_fenced_code_attributes` from `markdown_github`
12245 * `Text.Pandoc.ImageSize`:
12247 + Use default instead of failing if image size not found
12248 in exif header (#1358).
12249 + ignore unknown exif header tag rather than crashing.
12250 Some images seem to have tag type of 256, which was causing
12253 * `Text.Pandoc.Shared`:
12255 + `fetchItem`: unescape URI encoding before reading local file (#1427).
12256 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
12257 doing mime lookup, to improve mime type guessing.
12258 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
12259 other things are treated as relative URIs if `sourceURL` is `Just _`,
12260 otherwise as file paths on the local file system.
12261 + `fetchItem` now properly handles links without a protocol (#1477).
12262 + `fetchItem` now escapes characters not allowed in URIs before trying
12264 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
12266 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
12267 needed to resolve relative URLs when we fetch resources (#750).
12269 * `Text.Pandoc.Parsing`
12271 + Simplified `dash` and `ellipsis` (#1419).
12272 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
12273 + Generalized functions to use `ParsecT` (Matthew Pickering).
12274 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
12277### Template changes
12279 * Added haddock template.
12280 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
12281 be "advisory" in HTML5, but kindlegen seems to require them.
12282 * EPUB3: Put title page in section with `epub:type="titlepage"`.
12283 * LaTeX: Made `\subtitle` work properly (#1327).
12284 * LaTeX/Beamer: remove conditional around date (#1321).
12285 * LaTeX: Added `lot` and `lof` variables, which can be set to
12286 get `\listoftables` and `\listoffigures` (#1407). Note that
12287 these variables can be set at the command line with `-Vlot -Vlof`
12288 or in YAML metadata.
12290### Under the hood improvements
12292 * Rewrote normalize for efficiency (#1385).
12294 * Rewrote Haddock reader to use `haddock-library` (#1346).
12296 + This brings pandoc's rendering of haddock markup in line
12297 with the new haddock.
12298 + Fixed line breaks in `@` code blocks.
12299 + alex and happy are no longer build-depends.
12301 * Added `Text.Pandoc.Compat.Directory` to allow building against
12302 different versions of the `directory` library.
12304 + Added `Text.Pandoc.Compat.Except` to allow building against
12305 different verions of `mtl`.
12307 * Code cleanup in some writers, using Reader monad to avoid
12308 passing options parameter around (Matej Kollar).
12310 * Improved readability in `pandoc.hs`.
12312 * Miscellaneous code cleanups (Artyom Kazak).
12314 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
12317 * Changed `http-conduit` flag to `https`. Depend on `http-client`
12318 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
12319 depends on `conduit` via `yaml`.)
12321 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
12322 This change to highlighting-kate means that PHP fragments no longer need
12323 to start with `<?php`. It also fixes a serious bug causing failures with
12326 * Require latest `texmath`. This fixes `\tilde{E}` and allows
12327 `\left` to be used with `]`, `)` etc. (#1319), among many other
12330 * Require latest `zip-archive`. This has fixes for unicode path names.
12332 * Added tests for plain writer.
12334 * `Text.Pandoc.Templates`:
12336 + Fail informatively on template syntax errors.
12337 With the move from parsec to attoparsec, we lost good error
12338 reporting. In fact, since we weren't testing for end of input,
12339 malformed templates would fail silently. Here we revert back to
12340 Parsec for better error messages.
12341 + Use `ordNub` (#1022).
12345 + Made benchmarks compile again (Artyom Kazak).
12346 + Fixed so that the failure of one benchmark does not prevent others
12347 from running (Artyom Kazak).
12348 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
12349 + Changed benchmark to use only the test suite, so that benchmarks
12352 * Windows build script:
12354 + Add `-windows` to file name.
12355 + Use one install command for pandoc, pandoc-citeproc.
12356 + Force install of pandoc-citeproc.
12358 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
12359 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
12360 will extract it into a folder named `SOMETHING.pkg`, which it
12361 will interpret as a defective package (#1308).
12365 + Made headers for all extensions so they have IDs and can be
12366 linked to (Beni Cherniavsky-Paskin).
12367 + Fixed typos (Phillip Alday).
12368 + Fixed documentation of attributes (#1315).
12369 + Clarified documentation on small caps (#1360).
12370 + Better documentation for `fenced_code_attributes` extension
12372 + Documented fact that you can put YAML metadata in a separate file
12376## pandoc 1.12.4.2 (2014-05-14)
12378 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
12380 * Shared: `addMetaValue` now behaves slightly differently:
12381 if both the new and old values are lists, it concatenates their
12382 contents to form a new list.
12386 + Set `bibliography` in metadata from `\bibliography` or
12387 `\addbibresource` command.
12388 + Don't error on `%foo` with no trailing newline.
12392 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
12393 + Fix parsing of blank lines within blocks (Albert Krewinkel).
12394 + Support pandoc citation extension (Albert Krewinkel). This can
12395 be turned off by specifying `org-citation` as the input format.
12399 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
12400 other readers (Albert Krewinkel).
12402 * `Text.Pandoc.Parsing`:
12404 + Added `citeKey` (see above).
12405 + Added `HasLastStrPosition` type class and `updateLastStrPos`
12406 and `notAfterString` functions.
12408 * Updated copyright notices (Albert Krewinkel).
12410 * Added default.icml to data files so it installs with the package.
12414 + The binary is now built with options to ensure that it can be
12415 used with OSX 10.6+.
12416 + Moved OSX package materials to osx directory.
12417 + Added OSX package uninstall script, included in the zip container
12418 (thanks to Daniel T. Staal).
12420## pandoc 1.12.4 (2014-05-07)
12422 * Made it possible to run filters that aren't executable
12423 (#1096). Pandoc first tries to find the executable (searching
12424 the path if path isn't given). If it fails, but the file
12425 exists and has a `.py`, `.pl`, `.rb`, `.hs`, or `.php`
12426 extension, pandoc runs the filter using the appropriate
12427 interpreter. This should make it easier to use filters on
12428 Windows, and make it more convenient for everyone.
12430 * Added Emacs org-mode reader (Albert Krewinkel).
12432 * Added InDesign ICML Writer (mb21).
12434 * MediaWiki reader:
12436 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
12437 + Fixed bug in certain nested lists (#1213). If a level 2 list was
12438 followed by a level 1 list, the first item of the level 1 list
12440 + Handle table rows containing just an HTML comment (#1230).
12444 + Give better location information on errors, pointing to line
12445 numbers within included files (#1274).
12446 + LaTeX reader: Better handling of `table` environment (#1204).
12447 Positioning options no longer rendered verbatim.
12448 + Better handling of figure and table with caption (#1204).
12449 + Handle `@{}` and `p{length}` in tabular. The length is not actually
12450 recorded, but at least we get a table (#1180).
12451 + Properly handle `\nocite`. It now adds a `nocite` metadata
12452 field. Citations there will appear in the bibliography but not
12453 in the text (unless you explicitly put a `$nocite$` variable
12458 + Ensure that whole numbers in YAML metadata are rendered without
12459 decimal points. (This became necessary with changes to aeson
12460 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
12461 + Fixed regression on line breaks in strict mode (#1203).
12462 + Small efficiency improvements.
12463 + Improved parsing of nested `div`s. Formerly a closing `div` tag
12464 would be missed if it came right after other block-level tags.
12465 + Avoid backtracking when closing `</div>` not found.
12466 + Fixed bug in reference link parsing in `markdown_mmd`.
12467 + Fixed a bug in list parsing (#1154). When reading a raw list
12468 item, we now strip off up to 4 spaces.
12469 + Fixed parsing of empty reference link definitions (#1186).
12470 + Made one-column pipe tables work (#1218).
12474 + Better support for attributes. Instead of being ignored, attributes
12475 are now parsed and included in Span inlines. The output will be a bit
12476 different from stock textile: e.g. for `*(foo)hi*`, we'll get
12477 `<em><span class="foo">hi</span></em>` instead of
12478 `<em class="foo">hi</em>`. But at least the data is not lost.
12479 + Improved treatment of HTML spans (%) (#1115).
12480 + Improved link parsing. In particular we now pick up on attributes.
12481 Since pandoc links can't have attributes, we enclose the whole link in
12482 a span if there are attributes (#1008).
12483 + Implemented correct parsing rules for inline markup (#1175, Matthew
12485 + Use Builder (Matthew Pickering).
12489 + Better treatment of `formalpara`. We now emit the title (if present)
12490 as a separate paragraph with boldface text (#1215).
12491 + Set metadata `author` not `authors`.
12492 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
12493 Matthew Pickering).
12494 + Converted current meta information parsing in DocBook to a more
12495 extensible version which is aware of the more recent meta
12496 representation (Matthew Pickering).
12500 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
12502 + Treat processing instructions & declarations as block. Previously
12503 these were treated as inline, and included in paragraph tags in HTML
12504 or DocBook output, which is generally not what is wanted (#1233).
12505 + Updated `closes` with rules from HTML5 spec.
12506 + Use Builder (Matthew Pickering, #1162).
12510 + Remove duplicate `http` in PEP links (Albert Krewinkel).
12511 + Make rst figures true figures (#1168, CasperVector)
12512 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
12513 rST parser now supports: all built-in rST roles, new role definition,
12514 role inheritance, though with some limitations.
12515 + Use `author` rather than `authors` in metadata.
12516 + Better handling of directives. We now correctly handle field
12517 lists that are indented more than three spaces. We treat an
12518 `aafig` directive as a code block with attributes, so it can be
12519 processed in a filter (#1212).
12523 + Mark span contents with label if span has an ID (Albert Krewinkel).
12524 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
12525 + Handle line breaks in simple table cells (#1217).
12526 + Workaround for level 4-5 headers in quotes. These previously produced
12527 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
12528 This adds an `mbox{}` in these contexts to work around the problem.
12529 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
12530 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
12531 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
12532 ligature with LuaLaTeX but `\/` does.
12533 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
12535 * ConTeXt writer: Improved autolinks (#1270).
12539 + Improve handling of hard line breaks in Docbook writer
12540 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
12541 just for the newline character.
12542 + Don't let line breaks inside footnotes influence the enclosing
12543 paragraph (Neil Mayhew).
12544 + Distinguish tight and loose lists in DocBook output, using
12545 `spacing="compact"` (Neil Mayhew, #1250).
12547 * Docx writer: When needed files are not present in the user's
12548 `reference.docx`, fall back on the versions in the `reference.docx`
12549 in pandoc's data files. This fixes a bug that occurs when a
12550 `reference.docx` saved by LibreOffice is used. (#1185)
12554 + Include extension in epub ids. This fixes a problem with duplicate
12555 extensions for fonts and images with the same base name but different
12556 extensions (#1254).
12557 + Handle files linked in raw `img` tags (#1170).
12558 + Handle media in `audio` source tags (#1170).
12559 Note that we now use a `media` directory rather than `images`.
12560 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
12561 will both be incorporated into `content.opf` and the epub container.
12565 + Add colgroup around col tags (#877). Also affects EPUB writer.
12566 + Fixed bug with unnumbered section headings. Unnumbered section
12567 headings (with class `unnumbered`) were getting numbers.
12568 + Improved detection of image links. Previously image links with
12569 queries were not recognized, causing `<embed>` to be used instead
12572 * Man writer: Ensure that terms in definition lists aren't line wrapped
12577 + Use proper escapes to avoid unwanted lists (#980). Previously we used
12578 0-width spaces, an ugly hack.
12579 + Use longer backtick fences if needed (#1206). If the content contains a
12580 backtick fence and there are attributes, make sure longer fences are
12581 used to delimit the code. Note: This works well in pandoc, but github
12582 markdown is more limited, and will interpret the first string of three
12583 or more backticks as ending the code block.
12585 * RST writer: Avoid stack overflow with certain tables (#1197).
12587 * RTF writer: Fixed table cells containing paragraphs.
12591 + Correctly handle UTF-8 in custom lua scripts (#1189).
12592 + Fix bugs with lua scripts with mixed-case filenames and
12593 paths containing `+` or `-` (#1267). Note that `getWriter`
12594 in `Text.Pandoc` no longer returns a custom writer on input
12597 * AsciiDoc writer: Handle multiblock and empty table cells
12598 (#1245, #1246). Added tests.
12600 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
12602 * `Text.Pandoc.Shared`:
12604 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
12605 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
12606 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
12608 + `openURL`: set proxy with value of http_proxy env variable (#1211).
12609 Note: proxies with non-root paths are not supported, due to
12610 limitations in `http-conduit`.
12612 * `Text.Pandoc.PDF`:
12614 + Ensure that temp directories deleted on Windows (#1192). The PDF is
12615 now read as a strict bytestring, ensuring that process ownership will
12616 be terminated, so the temp directory can be deleted.
12617 + Use `/` as path separators in a few places, even on Windows.
12618 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
12619 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
12620 + Changes to error reporting, to handle non-UTF8 error output.
12622 * `Text.Pandoc.Templates`:
12624 + Removed unneeded datatype context (Merijn Verstraaten).
12626 + YAML objects resolve to "true" in conditionals (#1133).
12627 Note: If `address` is a YAML object and you just have `$address$`
12628 in your template, the word `true` will appear, which may be
12629 unexpected. (Previously nothing would appear.)
12631 * `Text.Pandoc.SelfContained`: Handle `poster` attribute in `video`
12634 * `Text.Pandoc.Parsing`:
12636 + Made `F` an instance of Applicative (#1138).
12637 + Added `stateCaption`.
12638 + Added `HasMacros`, simplified other typeclasses.
12639 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
12640 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
12641 + Changed the smart punctuation parser to return `Inlines`
12642 rather than `Inline` (Matthew Pickering).
12643 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
12644 from typeclasses of monads to typeclasses of states. This simplifies
12645 the instance definitions and provides more flexibility. Generalized
12646 type of `getOption` and added a default definition. Removed
12647 `askReaderOption`. Added `extractReaderOption`. Added
12648 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
12649 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
12650 `modifyHeaderMap`. Added `extractIdentifierList` and
12651 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
12652 for `getIdentifierList`, `putIdentifierList`, and
12653 `modifyIdentifierList`. The ultimate goal here is to allow different
12654 parsers to use their own, tailored parser states (instead of
12655 `ParserState`) while still using shared functions.
12657 * Template changes:
12659 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
12660 + LaTeX template: Add `linestretch` and `fontfamily` variables.
12661 + LaTeX template: Conditionalize author and date commands.
12662 + Beamer template: Consistent styles for figure and table captions
12664 + LaTeX and beamer template: Adjust widths correctly for oversized
12665 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
12666 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
12667 `upquote` only after `fontenc` (Yihui Xie).
12668 + Beamer template: Added caption package (#1200).
12669 + Beamer template: changes for better unicode handling (KarolS).
12670 + DocBook template: use `authorgroup` if there are authors.
12671 + revealjs template: Move `include-after` to end (certainlyakey).
12672 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
12674 * Bumped version bounds of dependencies.
12676 * Added a `--trace` command line option, for debugging backtracking
12677 bugs. So far this only works with the markdown reader.
12679 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
12681 * Updated travis script to test with multiple GHC versions.
12683 * Force failure of a Travis build if GHC produces warnings (Albert
12686 * Add `.editorconfig` (Albert Krewinkel).
12687 See <http://editorconfig.org/> for details.
12689 * Give more useful error message if '-t pdf' is specified (#1155).
12691 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
12693 * Allow `html4` as a synonym of `html` as a reader (it already works
12698 + Added an explanation of how to use YAML metadata to
12699 force items to appear in the bibliography without citations in
12700 the text (like LaTeX `\nocite`).
12701 + Added note to `--bibtex/--natbib`: not for use in making PDF
12702 (#1194, thanks to nahoj).
12703 + Added explanatory notes about `--natbib` and `--biblatex`.
12704 + Added specification of legal syntax for citation keys.
12705 + Fixed variable defaults documentation (Albert Krewinkel).
12707 * Removed copyright statements for files that have been removed
12708 (Albert Krewinkel).
12710 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
12711 They aren't needed at runtime. We keep README and COPYRIGHT in data
12712 to ensure that they'll be available on all systems on which pandoc
12715 * Use cabal sandboxes in Windows build script.
12717## pandoc 1.12.3.3 (2014-02-03)
12719 * To changes to source; recompiled tarball with latest alex and
12720 happy, so they will work with GHC 7.8.
12722## pandoc 1.12.3.2 (2014-02-03)
12724 * Bumped version bounds for blaze-html, blaze-markup.
12726 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
12729 * Fixed mediawiki ordered list parsing (#1122).
12731 * HTML reader: Fixed bug reading inline math with `$$` (#225).
12733 * Added support for LaTeX style literate Haskell code blocks in rST
12734 (Merijn Verstraaten).
12736## pandoc 1.12.3.1 (2014-01-14)
12738 * Relaxed version constraint on binary, allowing the use of binary 0.5.
12741## pandoc 1.12.3 (2014-01-10)
12743 * The `--bibliography` option now sets the `biblio-files` variable.
12744 So, if you're using `--natbib` or `--biblatex`, you can just use
12745 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
12747 * Don't run pandoc-citeproc filter if `--bibliography` is
12748 used together with `--natbib` or `--biblatex` (Florian Eitel).
12750 * Template changes:
12752 + Updated beamer template to include booktabs.
12753 + Added `abstract` variable to LaTeX template.
12754 + Put `header-includes` after `title` in LaTeX template (#908).
12755 + Allow use of `\includegraphics[size]` in beamer.
12756 This just required porting a macro definition from the default
12757 LaTeX template to the default beamer template.
12759 * `reference.docx`: Include `FootnoteText` style.
12760 Otherwise Word ignores the style, even when specified in the `pPr`.
12763 * `reference.odt`: Tidied `styles.xml`.
12765 * Relaxed version bounds for dependencies.
12767 * Added `withSocketsDo` around http conduit code in `openURL`,
12768 so it works on Windows (#1080).
12770 * Added `Cite` function to `sample.lua`.
12774 + Fixed regression in title blocks (#1089).
12775 If author field was empty, date was being ignored.
12776 + Allow backslash-newline hard line breaks in grid and
12777 multiline table cells.
12778 + Citation keys may now start with underscores, and may contain
12779 underscores adjacent to internal punctuation.
12783 + Add support for `Verb` macro (jrnold) (#1090).
12784 + Support babel-style quoting: `` "`..."' ``.
12786 * Properly handle script blocks in strict mode. (That is,
12787 `markdown-markdown_in_html_blocks`.) Previously a spurious
12788 `<p>` tag was being added (#1093).
12790 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
12795 + Factored out function for table cell creation.
12796 + Better treatment of footnotes in tables.
12797 Notes now appear in the regular sequence, rather than in the
12798 table cell. (This was a regression in 1.10.)
12800 * HTML reader: Parse name/content pairs from meta tags as metadata.
12803 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
12805 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
12807 * ODT writer: Use mathml for proper rendering of formulas.
12808 Note: LibreOffice's support for this seems a bit buggy. But
12809 it should be better than what we had before.
12811 * RST writer: Ensure no blank line after def in definition list (#992).
12813 * Markdown writer: Don't use tilde code blocks with braced attributes in
12814 `markdown_github` output. A consequence of this change is that the
12815 backtick form will be preferred in general if both are enabled. That
12816 is good, as it is much more widespread than the tilde form. (#1084)
12818 * Docx writer: Fixed problem with some modified reference docx files.
12819 Include `word/_rels/settings.xml.rels` if it exists, as well as other
12820 `rels` files besides the ones pandoc generates explicitly.
12824 + With `--toc`, headers no longer link to themselves (#1081).
12825 + Omit footnotes from TOC entries. Otherwise we get doubled
12826 footnotes when headers have notes!
12830 + Avoid duplicate notes when headings contain notes.
12831 This arose because the headings are copied into the metadata
12832 "title" field, and the note gets rendered twice. We strip the
12833 note now before putting the heading in "title".
12834 + Strip out footnotes from toc entries.
12835 + Fixed bug with `--epub-stylesheet`. Now the contents of
12836 `writerEpubStylesheet` (set by `--epub-stylesheet`)
12837 should again work, and take precedence over a stylesheet specified
12840 * `Text.Pandoc.Pretty`: Added `nestle`. API change.
12842 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
12844 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
12847 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
12848 we could only get size information for JFIF format, which led
12849 to squished images in Word documents. Closes #976.
12851 * Removed old `MarkdownTest_1.0.3` directory (#1104).
12854## pandoc 1.12.2.1 (2013-12-08)
12856 * Markdown reader: Fixed regression in list parser, involving
12857 continuation lines containing raw HTML (or even verbatim raw HTML).
12859## pandoc 1.12.2 (2013-12-07)
12861 * Metadata may now be included in YAML blocks in a markdown document.
12869 text: An investigation of metadata
12877 text: doi:10.234234.234/33
12878 publisher: My Press
12879 rights: (c) 2007 John Smith, CC BY-NC
12880 cover-image: img/mypic.jpg
12881 stylesheet: style.css
12884 Metadata may still be provided using `--epub-metadata`; it will
12885 be merged with the metadata in YAML blocks.
12889 + `meta` tags are now used instead of `opf` attributes for EPUB3.
12890 + Insert "svg" property as needed in opf (EPUB 3).
12891 + Simplify `imageTypeOf` using `getMimeType`.
12892 + Add properties attribute to `cover-image` item for EPUB 3.
12893 + Don't include node for `cover.xhtml` if no cover!
12894 + Ensure that same identifier is used throughout (#1044).
12895 If an identifier is given in metadata, we use that; otherwise
12896 we generate a random uuid.
12897 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
12898 Fixes an issue with Calibre putting the cover at the end of the book
12899 if the spine has `linear="no"`. Apparently this is best practice
12900 for other converters as well:
12901 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
12902 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
12903 + Allow partial dates: `YYYY`, `YYYY-MM`.
12905 * Markdown writer: Fix rendering of tight sublists (#1050).
12906 Previously a spurious blank line was included after a tight sublist.
12908 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
12909 This is reported to be necessary to avoid an error from recent
12910 versions of Libre Office when files contain more than one image
12911 Thanks to wmanley for reporting and diagnosing the problem.
12913 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
12914 Instead, let this be set in the template, using `\setupfloat`.
12915 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
12917 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
12919 * Fixed bug with markdown intraword emphasis. Closes #1066.
12921 * Docbook writer: Hierarchicalize block content in metadata.
12922 Previously headers just disappeared from block-level metadata
12923 when it was used in templates. Now we apply the 'hierarchicalize'
12924 transformation. Note that a block headed by a level-2 header will
12925 turn into a `<sect1>` element.
12927 * OpenDocument writer: Skip raw HTML (#1035).
12928 Previously it was erroneously included as verbatim text.
12930 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
12931 This allows better control of formatting, since the `<a>`
12932 tags have a distinguishing class (#1049).
12936 + Use mime type info returned by fetchItem.
12937 + Fixed core metadata (#1046).
12938 Don't create empty date nodes if no date given.
12939 Don't create multiple `dc:creator` nodes; instead separate by
12941 + Fix URL for core-properties in `_rels/.rels` (#1046).
12943 * Plain writer: don't print `<span>` tags.
12947 + Fix definition lists with internal links in terms (#1032).
12948 This fix puts braces around a term that contains an internal
12949 link, to avoid problems with square brackets.
12950 + Properly escape pdftitle, pdfauthor (#1059).
12951 + Use booktabs package for tables (thanks to Jose Luis Duran).
12953 * Updated beamer template. Now references should work properly
12954 (in a slide) when `--biblatex` or `--natbib` is used.
12958 + Parse contents of curly quotes or matched `"` as quotes.
12959 + Support `\textnormal` as span with class `nodecor`.
12960 This is needed for pandoc-citeproc.
12961 + Improved citation parsing. This fixes a run-time error that occurred
12962 with `\citet{}` (empty list of keys). It also ensures that empty keys
12963 don't get produced.
12965 * MediaWiki reader: Add automatic header identifiers.
12969 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
12971 + Recognize `svg` tags as block level content (thanks to MinRK).
12972 + Parse LaTeX math if appropriate options are set.
12976 + Yaml block must start immediately after `---`. If there's a blank
12977 line after `---`, we interpreted it as a horizontal rule.
12978 + Correctly handle empty bullet list items.
12979 + Stop parsing "list lines" when we hit a block tag.
12980 This fixes exponential slowdown in certain input, e.g.
12981 a series of lists followed by `</div>`.
12983 * Slides: Preserve `<div class="references">` in references slide.
12985 * `Text.Pandoc.Writer.Shared`:
12987 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
12988 attributes, leading to invalid HTML.
12989 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
12990 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
12991 encoded bytestring was returned. We now decode it so it's a proper
12994 * DocBook reader: Handle numerical attributes starting with decimal.
12995 Also use `safeRead` instead of `read`.
12997 * `Text.Pandoc.Parsing`:
12999 + Generalized type of `registerHeader`, using new type classes
13000 `HasReadeOptions`, `HasIdentifierList`, `HasHeaderMap`.
13001 These allow certain common functions to be reused
13002 even in parsers that use custom state (instead of `ParserState`),
13003 such as the MediaWiki reader.
13004 + Moved inlineMath, displayMath from Markdown reader to Parsing.
13005 Generalize their types and export them from Parsing. (API change.)
13007 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
13008 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
13009 in all the writers. Require `texmath >= 0.6.5.2`.
13011 * `Text.Pandoc.MIME`:
13013 + Add entry for `jfif`.
13014 + In looking up extensions, drop the encoding info.
13015 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
13017 * Templates: Changed how array variables are resolved. Previously if
13018 `foo` is an array (which might be because multiple values were set on
13019 the command line), `$foo$` would resolve to the concatenation of the
13020 elements of foo. This is rarely useful behavior. It has been changed
13021 so that the first value is rendered. Of course, you can still iterate
13022 over the values using `$for(foo)$`. This has the result that you can
13023 override earlier settings using `-V` by putting new values later on the
13024 command line, which is useful for many purposes.
13026 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
13028 * Allow "epub2" as synonym for "epub", "html4" for "html".
13030 * Don't look for slidy files in data files with `--self-contained`.
13032 * Allow `https:` command line arguments to be downloaded.
13034 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
13036## pandoc 1.12.1 (2013-10-20)
13038 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
13039 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
13040 "c": "foo"}`. This new format is easier to work with outside of Haskell.
13041 Incidentally, "t" stands for "tag", "c" for "contents".
13043 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
13044 when converting to markdown (#1027).
13048 + Ensure that preamble doesn't contribute to the text of
13050 + Fixed character escaping in `\url{}`. Previously `\~` wasn't handled
13051 properly, among others.
13052 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
13053 bibtex titles, since we need to know what was protected from
13054 titlecase conversions.
13058 + Specially escape non-ascii characters in labels.
13059 Otherwise we can get compile errors and other bugs when
13060 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
13061 + Add link anchors for code blocks with identifiers (#1025).
13063 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
13064 It allows fragments identifiers.
13068 + A Div element with class "notes" is treated as speaker
13069 notes. Currently beamer goes to `\note{}`, revealjs to
13070 `<aside class="notes">`, and the notes are simply suppressed in
13071 other formats (#925).
13072 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
13073 The old version caused a pause to be inserted before the first
13074 material on a slide. This has been fixed.
13075 + Removed data files for s5, slideous, slidy.
13076 Users of s5 and slideous will have to download the needed
13077 files, as has been documented for some time in the README.
13078 By default, slidy code will be sought on the web, as before.
13080 * HTML writer: Insert command to typeset mathjax only in slideous output
13083 * RST writer: Skip spaces after display math. Otherwise we get indentation
13084 problems, and part of the next paragraph may be rendered as part of the
13087 * OpenDocument writer: Fix formatting of strikeout code (#995),
13088 thanks to wilx. don't use `font-face-decls` variable.
13090 * Fixed test suite so it works with cabal sandboxes.
13092## pandoc 1.12.0.2 (2013-09-20)
13094 * Removed an unused dependency (`stringable`) from pandoc.cabal.
13095 This will help packagers, but users should not need to upgrade.
13097## pandoc 1.12.0.1 (2013-09-20)
13099 * Allow `--metadata` to be repeated for the same key to form a list.
13100 This also has the effect that `--bibliography` can be repeated,
13103 * Handle boolean values in `--metadata`. Note that anything not parseable
13104 as a YAML boolean or string is treated as a literal string.
13105 You can get a string value with "yes", or any of the strings interpretable
13106 as booleans, by quoting it:
13108 -M boolvalue=yes -M stringvalue='"yes"'
13110 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
13113 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
13114 in which docx files could not be read by some versions of Word
13115 and LibreOffice (#990).
13117 * Fixed a regression involving slide shows with bibliographies.
13118 The Div container around references messed up the procedure for carving
13119 a document into slides. So we now remove the surrounding Div in
13122 * More informative error message when a filter is not found in path.
13124 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
13125 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
13127 * Don't use unicode_collation in building OSX package:
13128 it adds something like 50MB of dependencies to the package.
13130 * Declare alex and happy as build-tools (#986).
13132## pandoc 1.12 (2013-09-15)
13136 * Much more flexible metadata, including arbitrary fields and structured
13137 values. Metadata can be specified flexibly in pandoc markdown using
13138 YAML metadata blocks, which may occur anywhere in the document:
13141 title: Here is my title.
13143 This is the abstract.
13147 and *inline markup*
13149 tags: [cat, dog, animal]
13152 Metadata fields automatically populate template variables.
13154 * Added `opml` (OPML) as input and output format. The `_note` attribute,
13155 used in OmniOutliner and supported by multimarkdown, is supported.
13156 We treat the contents as markdown blocks under a section header.
13158 * Added `haddock` (Haddock markup) as input format (David Lazar).
13160 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
13161 (Thanks to Jamie F. Olson for the initial patch.)
13162 Nested vertical stacks are used for hierarchical structure.
13163 Results for more than one level of nesting may be odd.
13165 * Custom writers can now be written in lua.
13167 pandoc -t data/sample.lua
13169 will load the script sample.lua and use it as a custom writer.
13170 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
13171 Note that pandoc embeds a lua interpreter, so lua need not be
13172 installed separately.
13174 * New `--filter/-F` option to make it easier to run "filters"
13175 (Pandoc AST transformations that operate on JSON serializations).
13176 Filters are always passed the name of the output format, so their
13177 behavior can be tailored to it. The repository
13178 <https://github.com/jgm/pandocfilters> contains
13179 a python module for writing pandoc filters in python, with
13180 a number of examples.
13182 * Added `--metadata/-M` option.
13183 This is like `--variable/-V`, but actually adds to metadata, not
13186 * Added `--print-default-data-file` option, which allows printing
13187 of any of pandoc's data files. (For example,
13188 `pandoc --print-default-data-file reference.odt` will print
13191 * Added syntax for "pauses" in slide shows:
13199 * New markdown extensions:
13201 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
13202 rather than being treated as hard line breaks or spaces. This is useful
13203 for some East Asian languages, where spaces aren't used between words,
13204 but text is separated into lines for readability.
13205 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
13206 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
13207 only. (Default for `markdown_github`.) (#807)
13208 + `lists_without_preceding_blankline`: Allow lists to start without
13209 preceding blank space. (Default for `markdown_github`.) (#972)
13211### Behavior changes
13213 * `--toc-level` no longer implies `--toc`.
13214 Reason: EPUB users who don't want a visible TOC may still want
13215 to set the TOC level for in the book navigation.
13217 * `--help` now prints in and out formats in alphabetical order, and
13218 says something about PDF output (#720).
13220 * `--self-contained` now returns less verbose output (telling you
13221 which URLs it is fetching, but not giving the full header). In
13222 addition, there are better error messages when fetching a URL fails.
13224 * Citation support is no longer baked in to core pandoc. Users who
13225 need citations will need to install and use a separate filter
13226 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
13227 `csl`, and `citation-abbreviations` from the metadata, though it
13228 may still be specified on the command line as before.
13230 * A `Cite` element is now created in parsing markdown whether or not
13231 there is a matching reference.
13233 * The `pandoc-citeproc` script will put the bibliography at the
13234 end of the document, as before. However, it will be put inside a `Div`
13235 element with class "references", allowing users some control
13236 over the styling of references. A final header, if any, will
13237 be included in the `Div`.
13239 * The markdown writer will not print a bibliography if the
13240 `citations` extension is enabled. (If the citations are formatted
13241 as markdown citations, it is redundant to have a bibliography,
13242 since one will be generated automatically.)
13244 * Previously we used to store the directory of the first input file,
13245 even if it was local, and used this as a base directory for finding
13246 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
13247 users. So we now look for images relative to the current
13248 working directory, even if the first file argument is in another
13249 directory. Note that this change may break some existing workflows.
13250 If you have been assuming that relative links will be interpreted
13251 relative to the directory of the first file argument, you'll need
13252 to make that the current directory before running pandoc. (#942)
13254 * Better error reporting in some readers, due to changes in `readWith`:
13255 the line in which the error occurred is printed, with a caret pointing
13258 * All slide formats now support incremental slide view for definition lists.
13260 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
13261 Parse `:<math>...</math>` as display math. These notations are used with
13262 the MathJax MediaWiki extension.
13264 * All writers: template variables are set automatically from metadata
13265 fields. However, variables specified on the command line with
13266 `--variable` will completely shadow metadata fields.
13268 * If `--variable` is used to set many variables with the same name,
13271 * Man writer: The `title`, `section`, `header`, and `footer` can now
13272 all be set individually in metadata. The `description` variable has been
13273 removed. Quotes have been added so that spaces are allowed in the
13274 title. If you have a title that begins
13276 COMMAND(1) footer here | header here
13278 pandoc will still parse it into a title, section, header, and
13279 footer. But you can also specify these elements explicitly (#885).
13283 + Added support for YAML metadata blocks, which can come anywhere
13284 in the document (not just at the beginning). A document can contain
13285 multiple YAML metadata blocks.
13286 + HTML span and div tags are parsed as pandoc Span and Div elements.
13290 + Allow simple tables to be printed as grid tables,
13291 if other table options are disabled. This means you can do
13292 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
13293 and all tables will render as grid tables.
13294 + Support YAML title block (render fields in alphabetical order
13295 to make output predictable).
13299 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
13300 structured metadata. (Note: existing code that pattern-matches
13301 on `Meta` will have to be revised.) Metadata can now contain
13302 indefinitely many fields, with content that can be a string,
13303 a Boolean, a list of `Inline` elements, a list of `Block`
13304 elements, or a map or list of these.
13306 * A new generic block container (`Div`) has been added to `Block`,
13307 and a generic inline container (`Span`) has been added to `Inline`.
13308 These can take attributes. They will render in HTML, Textile,
13309 MediaWiki, Org, RST and Markdown (with `markdown_in_html`
13310 extension) as HTML `<div>` and `<span>` elements; in other formats
13311 they will simply pass through their contents. But they can be
13312 targeted by scripts.
13314 * `Format` is now a newtype, not an alias for String.
13315 Equality comparisons are case-insensitive.
13317 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
13318 functions that are much faster than the SYB functions from
13319 `Text.Pandoc.Generic`. These functions are now used where possible
13320 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
13321 match the generic traversals `bottomUp` and `queryWith`.)
13323 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
13324 instances for the basic pandoc types. They use GHC generics and
13325 should be faster than the old JSON serialization using
13326 `Data.Aeson.Generic`.
13328 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
13329 This is a souped-up version of `readProcessWithErrorcode` that
13330 uses lazy bytestrings instead of strings and allows setting
13331 environment variables. (Used in `Text.Pandoc.PDF`.)
13333 * New module `Text.Pandoc.Readers.OPML`.
13335 * New module `Text.Pandoc.Writers.OPML`.
13337 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
13338 This is based on Haddock's own lexer/parser.
13340 * New module `Text.Pandoc.Writers.Custom`.
13342 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
13343 Either, for better error handling.
13345 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
13347 * Removed `stripTags` from `Text.Pandoc.XML`.
13349 * `Text.Pandoc.Templates`:
13351 + Simplified `Template` type to a newtype.
13353 + Changed type of `renderTemplate`: it now takes a JSON context
13354 and a compiled template.
13355 + Export `compileTemplate`.
13356 + Export `renderTemplate'` that takes a string instead of a compiled
13358 + Export `varListToJSON`.
13360 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
13364 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
13365 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
13366 `Text.Pandoc.JSON` should be used instead. (Compiling against
13367 pandoc-types instead of pandoc will also produce smaller executables.)
13368 * Removed the deprecated `jsonFilter` function.
13369 + Added `readJSON`, `writeJSON` to the API (#817).
13371 * `Text.Pandoc.Options`:
13373 + Added `Ext_lists_without_preceding_blankline`,
13374 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
13375 `Ext_yaml_metadataBlock` to `Extension`.
13376 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
13377 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
13378 first command-line argument is an absolute URL. (So, relative links
13379 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
13380 + All bibliography-related fields have been removed from
13381 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
13382 `readerReferences`, `readerCitationStyle`.
13384 * The `Text.Pandoc.Biblio` module has been removed. Users of the
13385 pandoc library who want citation support will need to use
13386 `Text.CSL.Pandoc` from `pandoc-citeproc`.
13390 * In markdown, don't autolink a bare URI that is followed by `</a>`
13393 * `Text.Pandoc.Shared`
13395 + `openURL` now follows redirects (#701), properly handles `data:`
13396 URIs, and prints diagnostic output to stderr rather than stdout.
13397 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
13398 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
13399 + Fixed `readDefaultDataFile` so it works on Windows.
13400 + Better error messages for `readDefaultDataFile`. Instead of
13401 listing the last path tried, which can confuse people who are
13402 using `--self-contained`, so now we just list the data file name.
13403 + URL-escape pipe characters. Even though these are legal, `Network.URI`
13404 doesn't regard them as legal in URLs. So we escape them first (#535).
13406 * Mathjax in HTML slide shows: include explicit "Typeset" call.
13407 This seems to be needed for some formats (e.g. slideous) and won't
13408 hurt in others (#966).
13410 * `Text.Pandoc.PDF`
13412 + On Windows, create temdir in working directory, since the system
13413 temp directory path may contain tildes, which can cause
13414 problems in LaTeX (#777).
13415 + Put temporary output directory in `TEXINPUTS` (see #917).
13416 + `makePDF` tries to download images that are not found locally,
13417 if the first argument is a URL (#917).
13418 + If compiling with `pdflatex` yields an encoding error, offer
13419 the suggestion to use `--latex-engine=xelatex`.
13421 * Produce automatic header identifiers in parsing textile, RST,
13422 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
13424 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
13425 before treating as a filename. This fixes `--self-contained` when used
13426 with CSS files that include web fonts using the method described here:
13427 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
13428 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
13430 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
13431 percent-encoding, or a `+` character, as final punctuation.
13433 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
13434 EPS images properly sized on conversion to Word.
13436 * Slidy: Use slidy.js rather than slidy.js.gz.
13437 Reason: some browsers have trouble with the gzipped js file,
13438 at least on the local file system (#795).
13442 + Properly handle blank line at beginning of input (#882).
13443 + Fixed bug in unmatched reference links. The input
13444 `[*infile*] [*outfile*]` was getting improperly parsed:
13445 "infile" was emphasized, but "*outfile*" was literal (#883).
13446 + Allow internal `+` in citation identifiers (#856).
13447 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
13448 + Do not generate blank title, author, or date metadata elements.
13449 Leave these out entirely if they aren't present.
13450 + Allow backtick code blocks not to be preceded by blank line (#975).
13454 + Correctly handle entities.
13455 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
13456 in code blocks, rather than printing them verbatim. Parse attributes
13457 on `<pre>` tag for code blocks.
13459 * HTML reader: Handle non-simple tables (#893). Column widths are read from
13460 `col` tags if present, otherwise divided equally.
13464 + Support alltt environment (#892).
13465 + Support `\textasciitilde`, `\textasciicircum` (#810).
13466 + Treat `\textsl` as emphasized text reader (#850).
13467 + Skip positional options after `\begin{figure}`.
13468 + Support `\v{}` for hacek (#926).
13469 + Don't add spurious ", " to citation suffixes.
13470 This is added when needed in pandoc-citeproc.
13471 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
13472 + Improved support for accented characters (thanks to Scott Morrison).
13473 + Parse label after section command and set id (#951).
13477 + Don't insert paragraphs where docutils doesn't.
13478 `rst2html` doesn't add `<p>` tags to list items (even when they are
13479 separated by blank lines) unless there are multiple paragraphs in the
13480 list. This commit changes the RST reader to conform more closely to
13481 what docutils does (#880).
13482 + Improved metadata. Treat initial field list as metadata when
13483 standalone specified. Previously ALL fields "title", "author",
13484 "date" in field lists were treated as metadata, even if not at
13485 the beginning. Use `subtitle` metadata field for subtitle.
13486 + Fixed 'authors' metadata parsing in reST. Semicolons separate
13491 + Allow space before table rows.
13492 + Fixed regression for `<ref>URL</ref>`.
13493 `<` is no longer allowed in URLs, according to the uri parser
13494 in `Text.Pandoc.Parsing`. Added a test case.
13495 + Correctly handle indented preformatted text without preceding
13496 or following blank line.
13497 + Fixed `|` links inside table cells. Improved attribute parsing.
13498 + Skip attributes on table rows. Previously we just crashed if
13499 rows had attributes, now we ignore them.
13500 + Ignore attributes on headers.
13501 + Allow `Image:` for images (#971).
13502 + Parse an image with caption in a paragraph by itself as a figure.
13506 + Don't use ligatures in escaping inline code.
13507 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
13508 wherein notes were numbered incorrectly in tables (#827).
13509 + Always create labels for sections. Previously the labels were only
13510 created when there were links to the section in the document (#871).
13511 + Stop escaping `|` in LaTeX math.
13512 This caused problems with array environments (#891).
13513 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
13514 `\` will cause major problems if unescaped.
13515 + Write id for code block to label attribute in LaTeX when listings
13516 is used (thanks to Florian Eitel).
13517 + Scale LaTeX tables so they don't exceed columnwidth.
13518 + Avoid problem with footnotes in unnumbered headers (#940).
13520 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
13521 to the slide if it is one of the header classes. It is recommended
13522 that your bibliography slide have this attribute:
13524 # References {.allowframebreaks}
13526 This causes multiple slides to be created if necessary, depending
13527 on the length of the bibliography.
13529 * ConTeXt writer: Properly handle tables without captions. The old output
13530 only worked in MkII. This should work in MkIV as well (#837).
13532 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
13536 + Fixed `--no-highlight` (Alexander Kondratskiy).
13537 + Don't convert to lowercase in email obfuscation (#839).
13538 + Ensure proper escaping in `<title>` and `<meta>` fields.
13542 + Support `--atx-headers` (Max Rydahl Andersen).
13543 + Don't print empty identifier blocks `([[]])` on headers (Max
13548 + Fixing wrong numbered-list indentation in open document format
13549 (Alexander Kondratskiy) (#369).
13550 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
13551 + Minor changes for ODF 1.2 conformance (#939). We leave the
13552 nonconforming `contextual-spacing` attribute, which is provided by
13553 LibreOffice itself and seems well supported.
13557 + Fixed rendering of display math in lists.
13558 In 1.11 and 1.11.1, display math in lists rendered as a new list
13559 item. Now it always appears centered, just as outside of lists,
13560 and in proper display math style, no matter how far indented the
13561 containing list item is (#784).
13562 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
13563 Previously we used `w:cr` (#873).
13564 + Use Compact style for Plain block elements, to
13565 differentiate between tight and loose lists (#775).
13566 + Ignore most components of `reference.docx`.
13567 We take the `word/styles.xml`, `docProps/app.xml`,
13568 `word/theme/theme1.xml`, and `word/fontTable.xml` from
13569 `reference.docx`, ignoring everything else. This should help
13570 with the corruption problems caused when different versions of
13571 Word resave the reference.docx and reorganize things.
13572 + Made `--no-highlight` work properly.
13576 + Don't add `dc:creator` tags if present in EPUB metadata.
13577 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
13578 + Don't put blank title page in reading sequence.
13579 Set `linear="no"` if no title block. Addresses #797.
13580 + Download webtex images and include as data URLs.
13581 This allows you to use `--webtex` in creating EPUBs.
13582 Math with `--webtex` is automatically made self-contained.
13583 + In `data/epub.css`, removed highlighting styles (which
13584 are no longer needed, since styles are added by the HTML
13585 writer according to `--highlighting-style`). Simplified
13587 + If resource not found, skip it, as in Docx writer (#916).
13591 + Properly handle characters above the 0000-FFFF range.
13592 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
13593 + Fixed regression with RTF table of contents.
13594 + Only autolink absolute URIs. This fixes a regression, #830.
13598 + Only autolink absolute URIs. This fixes a regression, #830.
13599 + Don't wrap attributes in fenced code blocks.
13600 + Write full metadata in MMD style title blocks.
13601 + Put multiple authors on separate lines in pandoc titleblock.
13602 Also, don't wrap long author entries, as new lines get treated
13605 * `Text.Pandoc.Templates`:
13607 + Fixed bug retrieving default template for markdown variants.
13608 + Templates can now contain "record lookups" in variables;
13609 for example, `author.institution` will retrieve the `institution`
13610 field of the `author` variable.
13611 + More consistent behavior of `$for$`. When `foo` is not a list,
13612 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
13613 So if `foo` resolves to "", no output should be produced.
13614 See pandoc-templates#39.
13616 * Citation processing improvements (now part of pandoc-citeproc):
13618 + Fixed `endWithPunct` The new version correctly sees a sentence
13619 ending in '.)' as ending with punctuation. This fixes a bug which
13620 led such sentences to receive an extra period at the end: '.).'.
13621 Thanks to Steve Petersen for reporting.
13622 + Don't interfere with Notes that aren't citation notes.
13623 This fixes a bug in which notes not generated from citations were
13624 being altered (e.g. first letter capitalized) (#898).
13625 + Only capitalize footnote citations when they have a prefix.
13626 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
13627 inserted before it before passing to citeproc-hs, so that bare numbers
13628 are treated as page numbers by default. A suffix not beginning with
13629 punctuation has a space added at the beginning (rather than a comma and
13630 space, as was done before for not-author-in-text citations).
13631 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
13632 properly, with '23' treated as a locator of type 'page'.
13633 + Many improvements to citation rendering, due to fixes in citeproc-hs
13634 (thanks to Andrea Rossato).
13635 + Warnings are issued for undefined citations, which are rendered
13637 + Fixed hanging behavior when locale files cannot be found.
13639### Template changes
13641 * DocBook: Use DocBook 4.5 doctype.
13643 * Org: '#+TITLE:' is inserted before the title.
13644 Previously the writer did this.
13646 * LaTeX: Changes to make mathfont work with xelatex.
13647 We need the mathspec library, not just fontspec, for this.
13648 We also need to set options for setmathfont (#734).
13650 * LaTeX: Use `tex-ansi` mapping for `monofont`.
13651 This ensures that straight quotes appear as straight, rather than
13652 being treated as curly. See #889.
13654 * Made `\includegraphics` more flexible in LaTeX template.
13655 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
13657 * LaTeX/Beamer: Added `classoption` variable.
13658 This is intended for class options like `oneside`; it may
13659 be repeated with different options. (Thanks to Oliver Matthews.)
13661 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
13663 * LaTeX: Added `biblio-style` variable (#920).
13665 * DZSlides: title attribute on title section.
13667 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
13669### Under-the-hood improvements
13671 * Markdown reader:Improved strong/emph parsing, using the strategy of
13672 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
13673 no backtracking, and no keeping track of nesting levels. It will give
13674 different results in some edge cases, but these should not affect normal
13677 * Added `Text.Pandoc.Compat.Monoid`.
13678 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
13679 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
13681 * Added `Text.Pandoc.Compat.TagSoupEntity`.
13682 This allows pandoc to compile with `tagsoup` 0.13.x.
13683 Thanks to Dirk Ullrich for the patch.
13685 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
13686 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
13687 handle simple math in bibliography fields.)
13689 * Added `Text.Pandoc.Writers.Shared` for shared functions used
13690 only in writers. `metaToJSON` is used in writers to create a
13691 JSON object for use in the templates from the pandoc metadata
13692 and variables. `getField`, `setField`, and `defField` are
13693 for working with JSON template contexts.
13695 * Added `Text.Pandoc.Asciify` utility module.
13696 This exports functions to create ASCII-only versions of identifiers.
13698 * `Text.Pandoc.Parsing`
13700 + Generalized state type on `readWith` (API change).
13701 + Specialize readWith to `String` input. (API change).
13702 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
13703 with `stateMeta` and `stateMeta'`.
13705 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
13706 bytestrings seemed to cause problems using pandoc on 64-bit Windows
13709 * Factored out `registerHeader` from markdown reader, added to
13710 `Text.Pandoc.Parsing`.
13712 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
13713 Reason: < 0.5 does not provide a monoid instance for Attribute,
13714 which is now needed by the HTML writer (#803).
13716 * Added `http-conduit` flag, which allows fetching https resources.
13717 It also brings in a large number of dependencies (`http-conduit`
13718 and its dependencies), which is why for now it is an optional flag
13721 * Added CONTRIBUTING.md.
13723 * Improved INSTALL instructions.
13725 * `make-windows-installer.bat`: Removed explicit paths for executables.
13727 * `aeson` is now used instead of `json` for JSON.
13729 * Set default stack size to 16M. This is needed for some large
13730 conversions, esp. if pandoc is compiled with 64-bit ghc.
13732 * Various small documentation improvements.
13733 Thanks to achalddave and drothlis for patches.
13735 * Removed comment that chokes recent versions of CPP (#933).
13737 * Removed support for GHC version < 7.2, since pandoc-types now
13738 requires at least GHC 7.2 for GHC generics.
13741## pandoc 1.11.1 (2013-03-17)
13745 + Fixed regression in which parentheses were lost in link URLs.
13746 Added tests. Closes #786.
13747 + Better handling of unmatched double quotes in `--smart` mode.
13748 These occur frequently in fiction, since it is customary not to
13749 close quotes in dialogue if the speaker does not change between
13750 paragraphs. The unmatched quotes now get turned into literal
13751 left double quotes. (No `Quoted` inline is generated, however.)
13752 Closes #99 (again).
13754 * HTML writer: Fixed numbering mismatch between TOC and sections.
13755 `--number-offset` now affects TOC numbering as well
13756 as section numbering, as it should have all along. Closes #789.
13758 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
13759 as markdown citations, even if `--bibliography` was specified, unless
13760 `citation` extension is disabled. Now, formatted citations are always
13761 printed if `--bibliography` was specified. If you want to reformat
13762 markdown keeping pandoc markdown citations intact, don't use
13763 `--bibliography`. Note that citations parsed from LaTeX documents will
13764 be rendered as pandoc markdown citations when `--bibliography` is not
13767 * ODT writer: Fixed regression leading to corrupt ODTs.
13768 This was due to a change in the `Show` instance for
13769 `Text.Pandoc.Pretty.Doc`. Closes #780.
13771 * Fixed spacing bugs involving code block attributes in
13772 RST reader and Markdown writer. Closes #763.
13774 * Windows package: Various improvements due to Fyodor Sheremetyev.
13776 + Automatically set installation path (Program Files or Local App Data).
13777 + Set system PATH environment variable when installing for all users.
13778 + Pandoc can installed for all users using the following command.
13779 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
13781 * Bumped QuickCheck version bound.
13783## pandoc 1.11 (2013-03-09)
13785 * Added `--number-offset` option. (See README for description.)
13787 * Added `--default-image-extension` option. (See README for description.)
13789 * `--number-sections` behavior change: headers with class `unnumbered`
13790 will not be numbered.
13792 * `--version` now reports the default data directory.
13794 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
13796 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
13798 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
13799 a field for `Attr` rather than just `String`. (API change.)
13801 * Added `markdown_github` as input format. This was an accidental
13804 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
13807 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
13811 + Fixed captions with longtable. Thanks to Joost Kremers.
13812 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
13816 + Load microtype after fonts. Microtype needs to know
13817 what fonts are being used. Thanks to dfc for the patch.
13818 + Set `secnumdepth` to 5 if `--number-sections` specified.
13819 This yields behavior equivalent to the other writers, numbering
13820 level 4 and 5 headers too. Closes #753.
13824 + Handle `<colgroup>` tag.
13825 + Preserve all header attributes.
13829 + Parse `\hrule` as `HorizontalRule`. Closes #746.
13830 + Parse starred variants of `\section` etc. as headers with
13831 attribute `unnumbered`.
13832 + Read optional attributes in `lstlisting` and `Verbatim` environments.
13833 We convert these to pandoc standard names, e.g. `numberLines`
13834 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
13835 + Handle language attribute for lstlistings.
13836 + Better support for Verbatim and minted environments. Closes #763.
13840 + `-` in an attribute context = `.unnumbered`. The point of this
13841 is to provide a way to specify unnumbered headers in non-English
13843 + Fixed bug parsing key/value attributes. Parsing failed if you
13844 had an unquoted attribute immediately before the final '}'.
13845 + Make backslash escape work in attributes.
13846 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
13847 pandoc will parse a MMD title block if it sees one, even if
13848 `pandoc_title_blocks` is enabled.
13849 + Refactoring: `litChar` now includes entities, so we don't need
13850 to use `fromEntities` e.g. on titles.
13851 + Allow spaces around borders in pipe tables. Closes #772.
13852 + Allow all punctuation in angle-bracket autolinks. Previously
13853 things like `----` were disallowed, because the uri parser
13854 treated them as trailing punctuation. Closes #768.
13855 + Make `implicit_header_references` work properly when
13856 headers are given explicit identifiers.
13857 + Check for tables before line blocks. Otherwise some pipe
13858 tables get treated as line blocks.
13859 + Allow `&` in emails (for entities).
13860 + Properly handle entities in titles and links. A markdown link
13861 `<http://göogle.com>` should be a link to `http://göogle.com`.
13866 + Handle attributes on headers.
13870 + Add `fig:` as title for images with captions.
13871 This is needed for them to be rendered as figures. Closes #766.
13872 + Never emit an empty paragraph. See #761.
13873 + Handle `\caption` for images in figures. Closes #766.
13874 + Parse `\section*`, etc. as unnumbered sections.
13878 + Support header attributes. The attributes go on
13879 the enclosing `section` or `div` tag if `--section-divs` is specified.
13880 + Fixed a regression (only now noticed) in html+lhs output.
13881 Previously the bird tracks were being omitted.
13885 + Omit lists with no items to avoid LaTeX errors.
13886 + Support line numbering with `--listings`.
13887 If `numberLines` class is present, we add `numbers=left`;
13888 if `startFrom` is present, we add `firstnumber=`. (#763)
13892 + Removed `\placecontent`. This produced a duplicate toc,
13893 in conjunction with `\placelist`.
13894 + Use `\title`, `\subject` etc. for headers with
13895 `unnumbered` class.
13899 + Support header attributes.
13903 + Use grid tables when needed, and if enabled. Closes #740.
13904 + Render citations as pandoc-markdown citations.
13905 Previously citations were rendered as citeproc-formatted citations
13906 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
13907 unless the `citations` extension is disabled.
13908 If you still want formatted citations in your markdown output,
13909 use `pandoc -t markdown-citations`.
13913 + Support `:number-lines:` in code blocks.
13917 + Better treatment of display math. Display math inside a
13918 paragraph is now put in a separate paragraph, so it will render
13919 properly (centered and without extra blank lines around it).
13920 Partially addresses #742.
13921 + Content types and document rels xml files are now created from
13922 scratch, rather than being taken over from `reference.docx`.
13923 This fixes problems that arise when you edit the `reference.docx`
13925 + We also now encode mime types for each individual image rather
13926 than using defaults. This should allow us to handle a wider
13927 range of image types (including PDF). Closes #414.
13928 + Changed style names in `reference docx`.
13929 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
13930 The old names got changed by Word when the `reference.docx` was
13931 edited. Closes #414.
13935 + Fix section numbering. Previously the numbering restarted from 1
13936 in each chapter (with `--number-sections`), though the numbers in
13937 the table of contents were correct.
13938 + Headers with "unnumbered" attribute are not numbered. (Nor do they
13939 cause an increment in running numbering.) Section numbers now work
13940 properly, even when there is material before the first numbered section.
13941 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
13942 but `linear` is set to `no` unless the `--toc` option is specified.
13943 Include `<guide>` element in OPF. This should allow the TOC to
13944 be useable in Kindles when converted with kindlegen. Closes #773.
13946 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
13947 This dramatically reduces the speed penalty that comes from enabling the
13948 `autolink_bare_uris` extension. The penalty is still substantial (in one
13949 test, from 0.33s to 0.44s), but nowhere near what it used to be.
13950 The RST reader is also much faster now, as it autodetects URIs.
13952 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
13953 with class "unnumbered". Unnumbered sections get `[]` for their
13956 * `Text.Pandoc.Pretty`:
13958 + Fixed `chomp` so it works inside `Prefixed` elements.
13959 + Changed `Show` instance so it is better for debugging.
13961 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
13963 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
13965 * Windows installer improvements:
13967 + The installer is now signed with a certificate (thanks to
13968 Fyodor Sheremetyev).
13969 + WiX is used instead of InnoSetup. The installer is now a
13971 + The version number is now auto-detected, and need not be
13972 updated separately.
13974 * OSX installer improvements:
13976 + The package and pandoc executable are now signed with a
13977 certificate (thanks to Fyodor Sheremetyev).
13978 + RTF version of license is used.
13979 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
13982 * Converted COPYING to markdown.
13984 * pandoc.cabal: Require latest versions of highlighting-kate,
13985 texmath, citeproc-hs, zip-archive.
13987## pandoc 1.10.1 (2013-01-23)
13989 * Markdown reader: various optimizations, leading to a
13990 significant performance boost.
13992 * RST reader: Allow anonymous form of inline links:
13993 `` `hello <url>`__ `` Closes #724.
13995 * Mediawiki reader: Don't require newlines after tables.
13996 Thanks to jrunningen for the patch. Closes #733.
13998 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
13999 when output is LaTeX, and applied when it is another format.
14000 Partially addresses #730.
14002 * Markdown and RST readers: Added parser to `block` that skips blank
14003 lines. This fixes a subtle regression involving grid tables with
14004 empty cells. Also added test for grid table with empty cells.
14007 * RST writer: Use `.. code:: language` for code blocks with language.
14010 * DocBook writer: Fixed output for hard line breaks, adding a newline
14011 between `<literallayout>` tags.
14013 * Markdown writer: Use an autolink when link text matches url.
14014 Previously we also checked for a null title, but this
14015 test fails for links produced by citeproc-hs in bibliographies.
14016 So, if the link has a title, it will be lost on conversion
14017 to an autolink, but that seems okay.
14019 * Markdown writer: Set title, author, date variables as before.
14020 These are no longer used in the default template, since we use
14021 titleblock, but we set them anyway for those who use custom templates.
14023 * LaTeX writer: Avoid extra space at start/end of table cell.
14024 Thanks to Nick Bart for the suggestion of using @{}.
14026 * `Text.Pandoc.Parsing`:
14028 + More efficient version of `anyLine`.
14029 + Type of `macro` has changed; the parser now returns `Blocks`
14030 instead of `Block`.
14032 * Relaxed old-time version bound, allowing 1.0.*.
14034 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
14035 should create a symlink as described in the README.
14037## pandoc 1.10.0.5 (2013-01-23)
14039 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
14040 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
14041 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
14043 * Markdown reader: Fixed bug with headerless grid tables.
14044 The 1.10 code assumed that each table header cell contains exactly one
14045 block. That failed for headerless tables (0) and also for tables with
14046 multiple blocks in a header cell. The code is fixed and tests provided.
14047 Thanks to Andrew Lee for pointing out the bug.
14049 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
14051 + Tilde code fences can again take a bare language string
14052 (`~~~ haskell`), not just curly-bracketed attributes
14053 (`~~~ {.haskell}`).
14054 + Backtick code blocks can take the curly-bracketed attributes.
14055 + Backtick code blocks don't *require* a language.
14056 + Consolidated code for the two kinds of fenced code blocks.
14058 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
14060 * Markdown writer: Use proportional font for email autolinks with
14061 obfuscation. Closes #714.
14063 * Corrected name of `blank_before_blockquote` in README. Closes #718.
14065 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
14066 The bug prevented an autolink at the end of a string (e.g.
14067 at the end of a line block line) from counting as a link. Closes #711.
14069 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
14070 This should work on Windows, unlike the TH solution with
14073 * Eliminated use of TH in test suite.
14075 * Added `Text.Pandoc.Data` (non-exported) to hold the association
14076 list of embedded data files, if the `embed_data_files` flag is selected.
14077 This isolates the code that needs special treatment with file-embed or
14080 * Changes to `make-windows-installer.bat`.
14082 + Exit batch file if any of the cabal-dev installs fail.
14083 + There's no longer any need to reinstall `highlighting-kate`.
14084 + Don't start with a `cabal update`; leave that to the user.
14085 + Force reinstall of pandoc.
14087 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
14090## pandoc 1.10.0.4 (2013-01-20)
14092 * Fixed bug with escaped % in LaTeX reader. Closes #710.
14094## pandoc 1.10.0.3 (2013-01-20)
14096 * Added further missing fb2 tests to cabal file.
14098## pandoc 1.10.0.2 (2013-01-20)
14100 * Added fb2 tests to cabal file's extra-source-files.
14102## pandoc 1.10.0.1 (2013-01-20)
14104 * Bump version bounds on test-framework packages.
14106## pandoc 1.10 (2013-01-19)
14110 * New input formats: `mediawiki` (MediaWiki markup).
14112 * New output formats: `epub3` (EPUB v3 with MathML),
14113 `fb2` (FictionBook2 ebooks).
14115 * New `--toc-depth` option, specifying how many levels of
14116 headers to include in a table of contents.
14118 * New `--epub-chapter-level` option, specifying the header
14119 level at which to divide EPUBs into separate files.
14120 Note that this normally affects only performance, not the
14121 visual presentation of the EPUB in a reader.
14123 * Removed the `--strict` option. Instead of using `--strict`,
14124 one can now use the format name `markdown_strict` for either input
14125 or output. This gives more fine-grained control that `--strict`
14126 did, allowing one to convert from pandoc's markdown to strict
14127 markdown or vice versa.
14129 * It is now possible to enable or disable specific syntax
14130 extensions by appending them (with `+` or `-`) to the writer
14131 or reader name. For example,
14133 pandoc -f markdown-footnotes+hard_line_breaks
14135 disables footnotes and enables treating newlines as hard
14136 line breaks. The literate Haskell extensions are now implemented
14137 this way as well, using either `+lhs` or `+literate_haskell`.
14138 For a list of extension names, see the README under
14139 "Pandoc's Markdown."
14141 * The following aliases have been introduced for specific
14142 combinations of markdown extensions: `markdown_phpextra`,
14143 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
14144 work just like regular reader and writer names, and can be modified
14145 with extension modifiers as described above. (Note that conversion
14146 from one markdown dialect to another does not work perfectly,
14147 because there are differences in markdown parsers besides
14148 just the extensions, and because pandoc's internal document model is
14149 not rich enough to capture all of the extensions.)
14151 * New `--html-q-tags` option. The previous default was to use `<q>`
14152 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
14153 Moreover, they are not a robust way of typesetting quotes, since
14154 some user agents don't support them, and some CSS resets (e.g.
14155 bootstrap) prevent pandoc's quotes CSS from working properly.
14156 We now just insert literal quote characters by default in both
14157 `html` and `html5` output, but this option is provided for
14158 those who still want `<q>` tags.
14160 * The markdown reader now prints warnings (to stderr) about
14161 duplicate link and note references. Closes #375.
14163 * Markdown syntax extensions:
14165 + Added pipe tables. Thanks to François Gannaz for the initial patch.
14166 These conform to PHP Markdown Extra's pipe table syntax. A subset
14167 of org-mode table syntax is also supported, which means that you can
14168 use org-mode's nice table editor to create tables.
14170 + Added support for RST-style line blocks. These are
14171 useful for verse and addresses.
14173 + Attributes can now be specified for headers, using the same
14174 syntax as in code blocks. (However, currently only the
14175 identifier has any effect in most writers.) For example,
14179 See [the header above](#foo).
14181 + Pandoc will now act as if link references have been defined
14182 for all headers without explicit identifiers.
14183 So, you can do this:
14187 Link to [My header].
14188 Another link to [it][My header].
14194 + Command macros now work everywhere, including non-math.
14195 Environment macros still not supported.
14196 + `\input` now works, as well as `\include`. TEXINPUTS is used.
14197 Pandoc looks recursively into included files for more included files.
14199### Behavior changes
14201 * The Markdown reader no longer puts the text of autolinks in a
14202 `Code` inline. This means that autolinks will no longer appear
14203 in a monospace font.
14205 * The character `/` can now appear in markdown citation keys.
14207 * HTML blocks in strict_markdown are no longer required to begin
14208 at the left margin. Technically this is required, according to
14209 the markdown syntax document, but `Markdown.pl` and other markdown
14210 processors are more liberal.
14212 * The `-V` option has been changed so that if there are duplicate
14213 variables, those specified later on the command line take precedence.
14215 * Tight lists now work in LaTeX and ConTeXt output.
14217 * The LaTeX writer no longer relien on the `enumerate` package.
14218 Instead, it uses standard LaTeX commands to change the list numbering
14221 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
14222 tables to be split over page boundaries.
14224 * The RST writer now uses a line block to render paragraphs containing
14225 linebreaks (which previously weren't supported at all).
14227 * The markdown writer now applies the `--id-prefix` to footnote IDs.
14230 * The plain writer no longer uses backslash-escaped line breaks
14231 (which are not very "plain").
14233 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
14234 Read bytestring and use `Text`'s decodeUtf8 instead of using
14235 `System.IO.hGetContents`. This way you get a message saying
14236 "invalid UTF-8 stream" instead of "invalid byte sequence."
14237 You are also told which byte caused the problem.
14239 * Docx, ODT, and EPUB writers now download images specified by a URL
14240 instead of skipping them or raising an error.
14244 + The default CSS now left-aligns headers by default, instead of
14245 centering. This is more consistent with the rest of the writers.
14246 + A proper multi-level table of contents is now used in `toc.ncx`.
14247 There is no longer a subsidiary table of contents at the beginning
14249 + Code highlighting now works by default.
14250 + Section divs are used by default for better semantic markup.
14251 + The title is used instead of "Title Page" in the table of contents.
14252 Otherwise we have a hard-coded English string, which looks
14253 strange in ebooks written in other languages. Closes #572.
14257 + Put mathjax in span with class "math". Closes #562.
14258 + Put citations in a span with class "citation." In HTML5, also include
14259 a `data-cite` attribute with a space-separated list of citation
14262 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
14263 This treats both `\r\n` and `\n` as `\n` on input, no matter
14264 what platform we're running on.
14266 * Citation processing is now done in the Markdown and LaTeX
14267 readers, not in `pandoc.hs`. This makes it easier for library users
14270### Template changes
14272 * HTML: Added css to template to preserve spaces in `<code>` tags.
14273 Thanks to Dirk Laurie.
14275 * Beamer: Remove English-centric strings in section pages.
14276 Section pages used to have "Section" and a number as well as the
14277 section title. Now they just have the title. Similarly for part
14278 and subsection. Closes #566.
14280 * LaTeX, ConTeXt: Added papersize variable.
14282 * LaTeX, Beamer templates: Use longtable instead of ctable.
14284 * LaTeX, Beamer templates: Don't require 'float' package for tables.
14285 We don't actually seem to use the '[H]' option.
14287 * Markdown, plain: Fixed titleblock so it is just a single string.
14288 Previously separate title, author, and date variables were used,
14289 but this didn't allow different kinds of title blocks.
14293 + Rationalized templates. Previously there were three different
14294 templates involved in epub production. There is now just one
14295 template, `default.epub` or `default.epub3`. It can now be
14296 overridden using `--template`, just like other templates.
14297 The titlepage is now folded into the default template.
14298 A `titlepage` variable selects it.
14299 + UTF-8, lang tag, meta tags, title element.
14301 * Added scale-to-width feature to beamer template
14305 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
14306 Previously header identifiers were autogenerated by the writers.
14307 Now they are added in the readers (either automatically or explicitly).
14309 * `Text.Pandoc.Builder`:
14311 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
14312 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
14313 custom Monoid instances for `Many Inline` and `Many Block. This
14314 allows `Many` to be made an instance of `Foldable` and `Traversable`.
14315 + The old `Listable` class has been removed.
14316 + The module now exports `isNull`, `toList`, `fromList`.
14317 + The old `Read` and `Show` instances have been removed; derived
14318 instances are now used.
14319 + Added `headerWith`.
14321 * The readers now take a `ReaderOptions` rather than a `ParserState`
14322 as a parameter. Indeed, not all parsers use the `ParserState` type;
14323 some have a custom state. The motivation for this change was to separate
14324 user-specifiable options from the accounting functions of parser state.
14326 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
14327 formerly in `Text.Pandoc.Shared`, and its associated
14328 data types. It also includes a new type `ReaderOptions`, which
14329 contains many options formerly in `ParserState`, and its associated
14332 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
14333 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
14334 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
14335 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
14336 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
14337 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
14338 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
14339 + `ParserState.stateIndentedCodeClasses` ->
14340 `ReaderOptions.readerIndentedCodeClasses`.
14341 + Added `ReaderOptions.readerCitationStyle`.
14343 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
14344 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
14345 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
14346 been renamed `writerEpubMetadata` for consistency.
14348 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
14349 longer stylesheet, fonts, reference files as separate parameters.
14351 * Removed `writerLiterateHaskell` from `WriterOptions`, and
14352 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
14353 by an extension (`Ext_literate_haskell`).
14355 * Removed deprecated `writerXeTeX`.
14357 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
14358 Strict is now handled through extensions.
14360 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
14361 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
14362 and `multimarkdownExtensions`, as well as the `Extensions` type.
14364 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
14367 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
14368 (thanks to Sergey Astanin).
14372 + Added `getReader`, `getWriter` to `Text.Pandoc`.
14373 + `writers` is now an association list `(String, Writer)`.
14374 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
14375 an `IOByteStringWriter`. ALL writers are now in the 'writers'
14376 list, including the binary writers and FB2 writer. This allows
14377 code in `pandoc.hs` to be simplified.
14378 + Changed type of `readers`, so all readers are in IO.
14379 Users who want pure readers can still get them form the reader
14380 modules; this just affects the function `getReader` that looks up
14381 a reader based on the format name. The point of this change is to
14382 make it possible to print warnings from the parser.
14384 * `Text.Pandoc.Parsing`:
14386 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
14387 No other module directly imports Parsec. This will make it easier
14388 to change the parsing backend in the future, if we want to.
14389 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
14390 + Export the type synonym `Parser`.
14391 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
14392 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
14393 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
14394 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
14395 + `ParserState` is no longer an instance of `Show`.
14396 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
14397 + Generalized type of `withQuoteContext`.
14398 + Added `guardEnabled`, `guardDisabled`, `getOption`.
14399 + Removed `failIfStrict`.
14400 + `lookupKeySrc` and `fromKey` are no longer exported.
14402 * `Data.Default` instances are now provided for `ReaderOptions`,
14403 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
14404 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
14405 of `defaultWriterOptions` (which is still defined). Closes #546.
14407 * `Text.Pandoc.Shared`:
14409 + Added `safeRead`.
14410 + Renamed `removedLeadingTrailingSpace` to `trim`,
14411 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
14412 + Count `\r` as space in `trim` functions.
14413 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
14415 + Removed `failUnlessLHS`.
14416 + Export `compactify'`, formerly in Markdown reader.
14417 + Export `isTightList`.
14418 + Do not export `findDataFile`.
14419 + `readDataFile` now returns a strict ByteString.
14420 + Export `readDataFileUTF8` which returns a String, like the
14421 old `readDataFile`.
14422 + Export `fetchItem` and `openURL`.
14424 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
14425 Removed `readImageSize`.
14427 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
14428 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
14431 * `Text.Pandoc.UTF8` is now an exposed module.
14433 * `Text.Pandoc.Biblio`:
14435 + csl parameter now a `String` rather than a `FilePath`.
14436 + Changed type of `processBiblio`. It is no longer in the IO monad.
14437 It now takes a `Maybe Style` argument rather than parameters for CSL
14438 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
14439 the style file and add abbreviations.)
14441 * Markdown reader now exports `readMarkdownWithWarnings`.
14443 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
14448 * Make `--ascii` work properly with `--self-contained`. Closes #568.
14452 + Fixed link parser to avoid exponential slowdowns. Closes #620.
14453 Previously the parser would hang on input like this:
14455 [[[[[[[[[[[[[[[[[[hi
14457 We fixed this by making the link parser parser characters
14458 between balanced brackets (skipping brackets in inline code spans),
14459 then parsing the result as an inline list. One change is that
14461 [hi *there]* bud](/url)
14463 is now no longer parsed as a link. But in this respect pandoc behaved
14464 differently from most other implementations anyway, so that seems okay.
14466 + Look for raw html/latex blocks before tables.
14467 Otherwise the following gets parsed as a table:
14478 + Added support for `:target:` on `.. image::` blocks
14480 + Field list fixes:
14482 - Fixed field lists items with body beginning after a new line
14484 - Allow any char but ':' in names of field lists in RST reader
14486 - Don't allow line breaks in field names.
14487 - Require whitespace after field list field names.
14488 - Don't create empty definition list for metadata field lists.
14489 Previously a field list consisting only of metadata fields (author,
14490 title, date) would be parsed as an empty DefinitionList, which is
14491 not legal in LaTeX and not needed in any format.
14493 + Don't recognize inline-markup starts inside words.
14494 For example, `2*2 = 4*1` should not contain an emphasized
14495 section. Added test case for "Literal symbols". Closes #569.
14496 + Allow dashes as separator in simple tables. Closes #555.
14497 + Added support for `container`, `compound`, `epigraph`,
14498 `rubric`, `highlights`, `pull-quote`.
14499 + Added support for `.. code::`.
14500 + Made directive labels case-insensitive.
14501 + Removed requirement that directives begin at left margin.
14502 This was (correctly) not in earlier releases; docutils doesn't
14503 make the requirement.
14504 + Added support for `replace::` and `unicode::` substitutions.
14505 + Ignore unknown interpreted roles.
14506 + Renamed image parser to `subst`, since it now handles all
14507 substitution references.
14511 + Allow newlines before pipes in table. Closes #654.
14512 + Fixed bug with list items containing line breaks.
14513 Now pandoc correctly handles hard line breaks inside list items.
14514 Previously they broke list parsing.
14515 + Implemented comment blocks.
14516 + Fixed bug affected words ending in hyphen.
14517 + Properly handle links with surrounding brackets.
14518 Square brackets need to be used when the link isn't surrounded by
14519 spaces or punctuation, or when the URL ending may be ambiguous.
14521 + Removed nullBlock. Better to know about parsing problems than
14522 to skip stuff when we get stuck.
14523 + Allow ID attributes on headers.
14524 + Textile reader: Avoid parsing dashes as strikeout.
14525 Previously the input
14532 would be parsed with strikeouts rather than dashes. This fixes
14533 the problem by requiring that a strikeout delimiting - not be
14534 followed by a -. Closes #631.
14535 + Expanded list of `stringBreakers`.
14536 This fixes a bug on input like "(_hello_)" which should
14537 be a parenthesized emphasized "hello".
14538 The new list is taken from the PHP source of textile 2.4.
14539 + Fixed autolinks. Previously the textile reader and writer
14540 incorrectly implented RST-style autolinks for URLs and email
14541 addresses. This has been fixed. Now an autolink is done this way:
14542 `"$":http://myurl.com`.
14543 + Fixed footnotes bug in textile. This affected notes occurring
14544 before punctuation, e.g. `foo[1].`. Closes #518.
14548 + Better handling of citation commands.
14549 + Better handling of `\noindent`.
14550 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
14552 + Made `rawLaTeXInline` try to parse block commands as well. This
14553 is usually what we want, given how `rawLaTeXInline` is used in
14554 the markdown and textile readers. If a block-level LaTeX command
14555 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
14556 we can treat it as raw inline LaTeX.
14557 + Handle `\slash` command. Closes #605.
14558 + Basic `\enquote` support.
14559 + Fixed parsing of paragraphs beginning with a group. Closes #606.
14560 + Use curly quotes for bare straight quotes.
14561 + Support obeylines environment. Closes #604.
14562 + Guard against "begin", "end" in inlineCommand and
14564 + Better error messages for environments. Now it should tell you that
14565 it was looking for \end{env}, instead of giving "unknown parse error."
14569 + Added HTML 5 tags to list of block-level tags.
14570 + HTML reader: Fixed bug in `htmlBalanced`, which
14571 caused hangs in parsing certain markdown input using
14573 + Parse `<q>` as `Quoted DoubleQuote`.
14574 + Handle nested `<q>` tags properly.
14575 + Modified `htmlTag` for fewer false positives.
14576 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
14577 This makes it more useful in the wikimedia and markdown parsers.
14579 * DocBook reader: Support title in "figure" element. Closes #650.
14581 * MediaWiki writer:
14583 + Remove newline after `<br/>` in translation of `LineBreak`
14584 There's no particular need for a newline (other than making the
14585 generated MediaWiki source look nice to a human), and in fact
14586 sometimes it is incorrect: in particular, inside an enumeration, list
14587 items cannot have embedded newline characters. (Brent Yorgey)
14588 + Use `<code>` not `<tt>` for Code.
14590 * Man writer: Escape `-` as `\-`.
14591 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
14592 signs. That is preferable for use with command-line options. See
14593 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
14594 to Andrea Bolognani for bringing the issue to our attention.
14598 + Improved line block output. Use nonbreaking spaces for
14599 initial indent (otherwise lost in HTML and LaTeX).
14600 Allow multiple paragraphs in a single line block.
14601 Allow soft breaks w continuations in line blocks.
14602 + Properly handle images with no alt text. Closes #678.
14603 + Fixed bug with links with duplicate text. We now (a) use anonymous
14604 links for links with inline URLs, and (b) use an inline link instead
14605 of a reference link if the reference link would require a label that
14606 has already been used for a different link. Closes #511.
14607 + Fixed hyperlinked images. Closes #611. Use `:target:`
14608 field when you have a simple linked image.
14609 + Don't add `:align: center` to figures.
14611 * Texinfo writer: Fixed internal cross-references.
14612 Now we insert anchors after each header, and use `@ref` instead of `@uref`
14613 for links. Commas are now escaped as `@comma{}` only when needed;
14614 previously all commas were escaped. (This change is needed, in part,
14615 because `@ref` commands must be followed by a real comma or period.) Also
14616 insert a blank line in from of `@verbatim` environments.
14620 + Made --id-prefix work in DocBook as well as HTML.
14622 + Don't include empty captions in figures. Closes #581.
14626 + Use `\hspace*` for nonbreaking space after line break,
14627 since `~` spaces after a line break are just ignored.
14629 + Don't escape `_` in URLs or hyperref identifiers.
14630 + Properly escape strings inside `\url{}`. Closes #576.
14631 + Use `[fragile]` only for slides containing code rendered
14632 using listings. Closes #649.
14633 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
14634 highlighting-kate's macros, which redefine `|` as a short verbatim
14635 delimiter. Thanks to Björn Peemöller for raising this issue.
14636 + Use minipage rather than parbox for block containers in tables.
14637 This allows verbatim code to be included in grid tables.
14639 + Prevent paragraphs containing only linebreaks or spaces.
14643 + Included `highlighting-css` for code spans, too.
14644 Previously it was only included if used in a code block. Closes #653.
14645 + Improved line breaks with `<dd>` tags. We now put a newline between
14646 `</dd>` and `<dd>` when there are multiple definitions.
14647 + Changed mathjax cdn url so it doesn't use https. (This caused
14648 problems when used with `--self-contained`.) See #609.
14652 + `--number-sections` now works properly.
14653 + Don't strip meta and link elements in epub metadata.
14654 Patch from aberrancy. Closes #589.
14655 + Fixed a couple validation bugs.
14656 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
14657 of chapters in some readers, which apparently sort ch2 after ch10.
14660 * ODT writer: properly set title property (Arlo O'Keeffe).
14664 + Fixed bug with nested lists. Previously a list like
14671 would come out with a bullet instead of "2."
14672 Thanks to Russell Allen for reporting the bug.
14673 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
14674 This seems to fix a problem viewing pandoc-generated
14675 docx files in LibreOffice.
14676 + Use integer ids for bookmarks. Closes #626.
14677 + Added nsid to abstractNum elements. This helps when merging
14678 word documents with numbered or bulleted lists. Closes #627.
14679 + Use separate footnotes.xml for notes.
14680 This seems to help LibreOffice convert the file, even though
14681 it was valid docx before. Closes #637.
14682 + Use rIdNN identifiers for r:embed in images.
14683 + Avoid reading image files again when we've already processed them.
14684 + Fixed typo in `referenc.docx` that prevented image captions from
14685 working. Thanks to Huashan Chen.
14687 * `Text.Pandoc.Parsing`:
14689 + Fixed bug in `withRaw`, which didn't correctly handle the case
14690 where nothing is parsed.
14691 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
14692 though it still doesn't implement quoted strings in email addresses.
14693 + Revised URI parser. It now allows many more schemes, allows
14694 uppercase URIs, and better handles trailing punctuation and
14695 trailing slashes in bare URIs. Added many tests.
14696 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
14697 etc. parse properly. Formerly we had some English-centric heuristics,
14698 but they are no longer needed. Closes #698.
14700 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
14701 This fixes bug with Chinese commas in markdown and reST tables, and
14702 a bug that caused combining characters to be dropped.
14704 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
14706 * `Text.Pandoc.Biblio`:
14708 + Run `mvPunc` and `deNote` on metadata too.
14709 This fixed a bug with notes on titles using footnote styles.
14710 + Fixed bug in fetching CSL files from CSL data directory.
14712 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
14713 is provided. It should be the URL up to the path.
14715 * Fixed/simplified diff output for tests.
14716 Biblio: Make sure mvPunc and deNote run on metadata too.
14717 This fixed a bug with notes on titles using footnote styles.
14719### Under the hood improvements
14721 * We no longer depend on `utf8-string`. Instead we use functions
14722 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
14724 * Use `safeRead` instead of using `reads` directly (various modules).
14726 * "Implicit figures" (images alone in a paragraph) are now handled
14727 differently. The markdown reader gives their titles the prefix `fig:`; the
14728 writers look for this before treating the image as a figure. Though this
14729 is a bit of a hack, it has two advantages: (i) implicit figures can be
14730 limited to the markdown reader, and (ii) they can be deactivated by turning
14731 off the `implicit_figures` extension.
14733 * `catch` from `Control.Exception` is now used instead of the
14734 old Preface `catch`.
14736 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
14737 and `oneOfStrings` (which is now non-backtracking).
14739 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
14740 Now citeproc-hs is fixed upstream, so this is no longer needed.
14743 * Textile reader: Improved speed of `hyphenedWords`.
14744 This speeds up the textile reader by about a factor of 4.
14746 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
14747 better performance, and automatic normalization.
14749 * Major rewrite of markdown reader:
14751 + Use `Text.Pandoc.Builder` instead of lists. This also
14752 means that everything is normalized automatically.
14753 + Move to a one-pass parsing strategy, returning values in the reader
14754 monad, which are then run (at the end of parsing) against the final
14757 * In HTML writer, we now use `toHtml` instead of pre-escaping.
14758 We work around the problem that blaze-html unnecessarily escapes `'`
14759 by pre-escaping just the `'` characters, instead of the whole string.
14760 If blaze-html later stops escaping `'` characters, we can simplify
14761 `strToHtml` to `toHtml`. Closes #629.
14763 * Moved code for embedding images in RTFs from `pandoc.hs` to the
14764 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
14766 * Moved citation processing from `pandoc.hs` into the readers.
14767 This makes things more convenient for library users.
14769 * The man pages are now built by an executable `make-pandoc-man-pages`,
14770 which has its own stanza in the cabal file so that dependencies can be
14771 handled by Cabal. Special treatment in `Setup.hs` ensures that this
14772 executable never gets installed; it is only used to create the man pages.
14774 * The cabal file has been modified so that the pandoc library is used
14775 in building the pandoc executable. (This required moving `pandoc.hs`
14776 from `src` to `.`.) This cuts compile time in half.
14778 * The `executable` and `library` flags have been removed.
14780 * `-threaded` has been removed from ghc-options.
14782 * Version bounds of dependencies have been raised, and the
14783 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
14786 * We now require base >= 4.2.
14788 * Integrated the benchmark program into cabal. One can now do:
14790 cabal configure --enable-benchmarks && cabal build
14791 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
14793 The benchmark now uses README + testsuite, so benchmark results
14794 from older versions aren't comparable.
14796 * Integrated test suite with cabal.
14797 To run tests, configure with `--enable-tests`, then `cabal test`.
14798 You can specify particular tests using `--test-options='-t markdown'`.
14799 No output is shown unless tests fail. The Haskell test modules
14800 have been moved from `src/` to `tests/`.
14802 * Moved all data files and templates to the `data/` subdirectory.
14804 * Added an `embed_data_files` cabal flag. This causes all
14805 data files to be embedded in the binary, so that the binary
14806 is self-sufficient and can be relocated anywhere, copied on
14807 a USB key, etc. The Windows installer now uses this.
14808 (Since we no longer have the option to build the executable
14809 without the library, this is the only way to get a relocatable
14810 binary on Windows.)
14812 * Removed pcre3.dll from windows package.
14813 It isn't needed unless highlighting-kate is compiled with the
14814 `pcre-light` flag. By default, regex-prce-builtin is used.
14817## pandoc 1.9.4.5 (2012-10-21)
14819 * Raised version bounds on network, base64-bytestring, json,
14820 and template-haskell.
14822## pandoc 1.9.4.4 (2012-10-20)
14824 * Removed `tests` flag and made test suite into a proper cabal
14825 test suite, which can now be enabled using `--enable-tests`
14826 and run with `cabal test`.
14828 * Moved man page creation out of `Setup.hs` and into an
14829 executable built by Cabal, but never installed. This
14830 allows dependencies to be specified, and solves a problem
14831 with 1.9.4.3, which could only be installed if `data-default`
14832 had already been installed.
14834 * Updated `lhs-latex.tex` test for latest highlighting-kate
14835 representation of backticks.
14837## pandoc 1.9.4.3 (2012-10-20)
14839 * Removed `-threaded` from default compile flags.
14841 * Modified modules to compile with GHC 7.6 and latest version of time
14844## pandoc 1.9.4.2 (2012-06-29)
14846 * Don't encode/decode file paths if base >= 4.4.
14847 Prior to base 4.4, filepaths and command line arguments were treated
14848 as unencoded lists of bytes, not unicode strings, so we had to work
14849 around that by encoding and decoding them. This commit adds CPP
14850 checks for the base version that intelligibly enable encoding/decoding
14851 when needed. Fixes a bug with multilingual filenames when pandoc was
14852 compiled with ghc 7.4 (#540).
14854 * Don't generate an empty H1 after hrule slide breaks.
14855 We now use a slide-level header with contents `[Str "\0"]` to mark
14856 an hrule break. This avoids creation of an empty H1 in these
14857 contexts. Closes #484.
14859 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
14861 * In make_osx_package.sh, ensure citeproc-hs is built with the
14862 embed_data_files flag.
14864 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
14866 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
14867 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
14869 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
14872 * Added webm to mime types. Closes #543.
14874 * Added some missing exports and tests to the cabal file
14875 (Alexander V Vershilov).
14877 * Compile with `-rtsopts` and `-threaded` by default.
14879## pandoc 1.9.4.1 (2012-06-08)
14881 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
14883 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
14884 variables. Make TOC links black.
14886 * LaTeX template improvements.
14888 + Don't print date unless one is given explicitly in the document.
14889 + Simplified templates.
14890 + Use fontenc [T1] by default, and lmodern.
14891 + Use microtype if available.
14895 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
14896 Motivation: `@item1 [50]` should be as close as possible to
14898 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
14899 beginning with a citation to be empty. Closes #531.
14901 * Fixed documentation on mixed lists. Closes #533.
14903## pandoc 1.9.4 (2012-06-03)
14905 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
14906 footnotes and captions. We now handle note citations by inserting
14907 footnotes during initial citation processing, and doing a separate
14908 pass later to remove notes inside notes.
14910 * Added 'zenburn' highlight style from highlighting-kate.
14912 * Added Slideous writer. Slideous is an HTML + javascript slide show
14913 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
14917 + Ensure we don't have extra blank lines at ends of cells.
14918 This can cause LaTeX errors, as they are interpreted as new paragraphs.
14919 + More consistent interblock spacing.
14920 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
14921 code in LaTeX. Closes #527.
14922 + Ensure that a Verbatim at the end of a footnote is followed by
14923 a newline. (Fixes a regression in the previous version.)
14924 + In default template, use black for internal links and TOC.
14925 Added commented-out code to use footnotes for links, as would
14926 be suitable in print output.
14928 * Beamer writer: When `--incremental` is used, lists inside
14929 a block quote should appear all at once. (This makes Beamer
14930 output consistent with the HTML slide show formats.)
14934 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
14935 to avoid gobbling spaces after the `%` sign.
14936 + Ensure space after `\stopformula`.
14940 + Use `:` form instead of `~` in definition lists, for better
14941 compatibility with other markdown implementations.
14942 + Don't wrap the term, because it breaks definition lists.
14943 + Use a nonzero space to prevent false recognition
14944 of list marker in ordered lists. Closes #516.
14946 * Org writer: Add space before language name. Closes #523.
14948 * Docx writer: Simplified bullet characters so they work properly
14949 with Word 2007. Closes #520.
14951 * LaTeX reader: Support `\centerline`.
14953 * RST reader: handle figures. Closes #522.
14955 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
14958## pandoc 1.9.3 (2012-05-12)
14960 * Added docbook reader (with contributions from Mauro Bieg).
14962 * Fixed bug in `fromEntities`. The previous version would turn
14963 `hi & low you know;` into `hi &`.
14967 + Don't skip nonbreaking spaces.
14968 Previously a paragraph containing just ` ` would be rendered
14969 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
14970 + Support `<col>` and `<caption>` in tables. Closes #486.
14974 + Don't recognize references inside delimited code blocks.
14975 + Allow list items to begin with lists.
14979 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
14980 + Control sequences can't be followed by a letter.
14981 This fixes a bug where `\begingroup` was parsed as `\begin`
14982 followed by `group`.
14983 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
14984 + Make `\label` and `\ref` sensitive to `--parse-raw`.
14985 If `--parse-raw` is selected, these will be parsed as raw latex
14986 inlines, rather than bracketed text.
14987 + Don't crash on unknown block commands (like `\vspace{10pt}`)
14988 inside `\author`; just skip them. Closes #505.
14992 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
14993 + Added support for LaTeX blocks and inlines (Paul Rivier).
14994 + Better conformance to RedCloth inline parsing (Paul Rivier).
14995 + Parse '+text+' as emphasized (should be underlined, but this
14996 is better than leaving literal plus characters in the output.
14998 * Docx writer: Fixed multi-paragraph list items. Previously they each
14999 got a list marker. Closes #457.
15003 + Added `--no-tex-ligatures` option to avoid replacing
15004 quotation marks and dashes with TeX ligatures.
15005 + Use `fixltx2e` package to provide `\textsubscript`.
15006 + Improve spacing around LaTeX block environments:
15007 quote, verbatim, itemize, description, enumerate.
15009 + Use blue instead of pink for URL links in latex/pdf output.
15011 * ConTeXt writer: Fixed escaping of `%`.
15012 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
15013 Inside URLs, `%` needs to be escaped as `\%`
15014 Thanks to jmarca and adityam for the fix. Closes #492.
15016 * Texinfo writer: Escape special characters in node titles.
15017 This fixes a problem pointed out by Joost Kremers. Pandoc used
15018 to escape an '@' in a chapter title, but not in the corresponding
15019 node title, leading to invalid texinfo.
15021 * Fixed document encoding in texinfo template.
15022 Resolves Debian Bug #667816.
15026 + Don't force delimited code blocks to be flush left.
15027 Fixes bug with delimited code blocks inside lists etc.
15028 + Escape `<` and `$`.
15030 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
15031 Previously we used `\href{\#ident}{text}`, which didn't work on
15032 all systems. Thanks to Dirk Laurie.
15034 * RST writer: Don't wrap link references. Closes #487.
15036 * Updated to use latest versions of blaze-html, mtl.
15039## pandoc 1.9.2 (2012-04-05)
15043 + Made `lstlisting` work as a proper verbatim environment.
15044 + Fixed bug parsing LaTeX tables with one column.
15048 + Use `{}` around `ctable` caption, so that formatting can be used.
15049 + Don't require eurosym package unless document has a €.
15051 * LaTeX template: Added variables for `geometry`, `romanfont`,
15052 `sansfont`, `mathfont`, `mainfont` so users can more easily
15057 + Run latex engine at least two times, to ensure
15058 that PDFs will have hyperlinked bookmarks.
15059 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
15061 * Texinfo writer: retain directories in image paths. (Peter Wang)
15063 * RST writer: Better handling of inline formatting, in accord
15064 with docutils' "inline markup recognition rules" (though we don't
15065 implement the unicode rules fully). Now `hi*there*hi` gets
15066 rendered properly as `hi\ *there*\ hi`, and unnecessary
15067 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
15071 + Parse `\ ` as null, not escaped space.
15072 + Allow `` :math:`...` `` even when not followed by blank
15073 or `\`. This does not implement the complex rule docutils follows,
15074 but it should be good enough for most purposes.
15075 + Add support for the rST default-role directive. (Greg Maslov)
15077 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
15080 * Markdown reader: Properly handle citations nested in other inline
15083 * Markdown writer: don't replace empty alt in image with "image".
15085 * DZSlides: Updated template.html and styles in default template.
15086 Removed bizarre CSS for `q` in dzslides template.
15088 * Avoid repeated `id` attribute in section and header in HTML slides.
15090 * README improvements: new instructions on internal links,
15091 removed misleading note on reST math.
15095 + Fixed Windows installer so that dzslides works.
15096 + Removed stripansi.sh.
15097 + Added .travis.yml for Travis continuous integration support..
15098 + Fixed upper bound for zlib (Sergei Trofimovich).
15099 + Fixed upper bound for test-framework.
15100 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
15103## pandoc 1.9.1.2 (2012-03-09)
15105 * Added `beamer+lhs` as output format.
15107 * Don't escape `<` in `<style>` tags with `--self-contained`.
15108 This fixes a bug which prevented highlighting from working
15109 when using `--self-contained`.
15111 * PDF: run latex engine three times if `--toc` specified.
15112 This fixes page numbers in the table of contents.
15114 * Docx writer: Added TableNormal style to tables.
15116 * LaTeX math environment fixes. `aligned` is now used instead of
15117 the nonexistent `aligned*`. `multline` instead of the nonexistent
15120 * LaTeX writer: Use `\textasciitilde` for literal `~`.
15122 * HTML writer: Don't escape contents of EQ tags with --gladtex.
15123 This fixes a regression from 1.8.
15125 * Use `<q>` tags for Quoted items for HTML5 output.
15126 The quote style can be changed by modifying the template
15127 or including a css file. A default quote style is included.
15129 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
15130 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
15132 * Updated LaTeX template for better language support.
15133 Use `polyglossia` instead of `babel` with xetex.
15134 Set `lang` as documentclass option.
15135 `\setmainlanguage` will use the last of a comma-separated
15136 list of languages. Thanks to François Gannaz.
15138 * Fixed default LaTeX template so `\euro` and `€` work. The
15139 `eurosym` package is needed if you are using pdflatex.
15141 * Fixed escaping of period in man writer (thanks to Michael Thompson).
15143 * Fixed list label positions in beamer.
15145 * Set `mainlang` variable in context writer.
15146 This parallels behavior of latex writer. `mainlang` is the last
15147 of a comma-separated list of languages in lang.
15149 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
15151 * Changed `-V` so that you can specify a key without a value.
15152 Such keys get the value `true`.
15154 * Fixed permissions on installed man pages - thanks Magnus Therning.
15156 * Windows installer: require XP or higher. The installer is
15157 now compiled on a Windows 7 machine, which fixes a problem
15158 using citation functions on Windows 7.
15160 * OSX package: Check for 64-bit Intel CPU before installing.
15163## pandoc 1.9.1.1 (2012-02-11)
15165 * Better handling of raw latex environments in markdown. Now
15171 turns into a raw latex block as expected.
15173 * Improvements to LaTeX reader:
15175 + Skip options after block commands.
15176 + Correctly handle `{\\}` in braced.
15177 + Added a needed 'try'.
15178 + Citations: add `, ` to suffix if it doesn't start with space or
15179 punctuation. Otherwise we get no space between the year and the
15180 suffix in author-date styles.
15182 * Added two needed data files for S5. This fixes a problem with
15183 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
15184 which was no longer being used.
15186 * Fixed some minor problems in `reference.docx`:
15187 name on "Date" style, `xCs` instead of `xIs`.
15189 * Fixed a problem creating docx files using a reference docx
15190 modified using Word. The problem seems to be that Word
15191 modifies `_rels/.rels`, changing the Type of the Relationship to
15192 `docProps/core.xml`. Pandoc now changes this back to the correct
15193 value if it has been altered, fixing the problem.
15195 * Fixed html5 template so it works properly with highlighting.
15197## pandoc 1.9.1 (2012-02-09)
15201 + Fixed regression in 1.9; properly handle escaped $ in latex math.
15202 + Put LaTeX verse environments in blockquotes.
15206 + Limit nesting of strong/emph. This avoids exponential lookahead
15207 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
15208 + Improved attributes syntax (in code blocks/spans): (1)
15209 Attributes can contain line breaks. (2) Values in key-value
15210 attributes can be surrounded by either double or single quotes, or
15211 left unquoted if they contain no spaces.
15213 * Headers no longer wrap in markdown or RST writers.
15215 * Added `stateMaxNestingLevel` to `ParserState`.
15216 We set this to 6, so you can still have `Emph` inside `Emph`,
15217 just not indefinitely.
15219 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
15221 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
15224 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
15226## pandoc 1.9.0.5 (2012-02-06)
15228 * Changed cabal file so that build-depends for the test program
15229 are not required unless the tests flag is used.
15231 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
15232 form ligatures (dashes) in code spans.
15234## pandoc 1.9.0.4 (2012-02-06)
15236 * Raised version bound on test-framework to avoid problems
15237 compiling tests on GHC 7.4.1.
15239 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
15240 so citations don't just disappear unless you process with
15241 citeproc. Ignore `\bibliographystyle`, `\nocite`.
15243 * Simplified tex2pdf; it will always run latex twice to
15244 resolve table of contents and hyperrefs.
15246## pandoc 1.9.0.3 (2012-02-06)
15248 * Require Cabal >= 1.10.
15250 * Tweaked cabal file to meet Cabal 1.10 requirements.
15252## pandoc 1.9.0.2 (2012-02-05)
15254 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
15257## pandoc 1.9 (2012-02-05)
15261 * Added a Microsoft Word `docx` writer. The writer includes support
15262 for highlighted code and for math (which is converted from TeX to OMML,
15263 Office's native math markup language, using texmath's new OMML module).
15264 A new option `--reference-docx` allows the user to customize the
15267 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
15269 * Better support for slide shows:
15271 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
15272 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
15274 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
15275 slide presentations.
15277 + New, flexible rules for dividing documents into sections and slides
15278 (see the "Structuring the slide show" in the User's Guide). These
15279 are backward-compatible with the old rules, but they allow slide
15280 shows to be organized into sections and subsections containing
15283 + A new `--slide-level` option allows users to override defaults
15284 and select a slide level below the first header level with content.
15286 * A new `--self-contained` option produces HTML output that does not
15287 depend on an internet connection or the presence of any external
15288 files. Linked images, CSS, and javascript is downloaded (or fetched
15289 locally) and encoded in `data:` URIs. This is useful for making portable
15290 `HTML slide shows. The --offline` option has been deprecated and is now
15291 `treated as a synonym or --self-contained`.
15293 * Support for PDF output:
15295 + Removed the old `markdown2pdf`.
15296 + `pandoc` can now create PDFs (assuming you have latex and a set of
15297 appropriate packages installed): just specify an output file with the
15299 + A new option `--latex-engine` allows you to specify `pdflatex`,
15300 `xelatex`, or `lualatex` as the processor.
15302 * Highlighting changes:
15304 + Syntax highlighting is now a standard feature; the `highlighting`
15305 flag is no longer needed when compiling.
15306 + A new `--no-highlight` option allows highlighting to be disabled.
15307 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
15308 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
15309 + A new `--highlight-style` option selects between various highlighting
15312 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
15314 * LaTeX `\include` and `\usepackage` commands are now processed,
15315 provided the files are in the working directory.
15317 * EPUB improvements:
15319 + Internal and external links now work in EPUB.
15320 + Raw HTML is allowed.
15321 + New `--epub-embed-font` option.
15322 + Customizable templates for EPUB pages offer more control over
15323 formatting: `epub-page.html`, `epub-coverimage.html`,
15324 `epub-titlepage.html`.
15326 * `--mathml` now works with DocBook.
15328 * Added support for math in RST reader and writer. Inline math uses the
15329 `` :math:`...` `` construct. Display math uses
15333 or if the math is multiline,
15339 These constructions are now supported now by `rst2latex.py`.
15341 * Github syntax for fenced code blocks is supported in pandoc's
15342 markdown. You can now write
15354 * Easier scripting: a new `toJsonFilter` function makes it easier to
15355 write Haskell scripts to manipulate the Pandoc AST.
15356 See [Scripting with pandoc](scripting.html#pandoc-1.9-changes).
15358### Behavior changes
15360 * Fixed parsing of consecutive lists in markdown.
15361 Pandoc previously behaved like Markdown.pl for consecutive
15362 lists of different styles. Thus, the following would be parsed
15363 as a single ordered list, rather than an ordered list followed
15364 by an unordered list:
15372 This change makes pandoc behave more sensibly, parsing this as
15373 two lists. Any change in list type (ordered/unordered) or in
15374 list number style will trigger a new list. Thus, the following
15375 will also be parsed as two lists:
15383 Since we regard this as a bug in Markdown.pl, and not something
15384 anyone would ever rely on, we do not preserve the old behavior
15385 even when `--strict` is selected.
15387 * Dashes work differently with `--smart`: `---` is always em-dash,
15388 and `--` is always en-dash. Pandoc no longer tries to guess when
15389 `-` should be en-dash. *Note:* This may change how existing documents
15390 look when processed with pandoc. A new option, `--old-dashes`,
15391 is provided for legacy documents.
15393 * The markdown writer now uses setext headers for levels 1-2.
15394 The old behavior (ATX headers for all levels) can be restored
15395 using the new `--atx-headers` option.
15397 * Links are now allowed in markdown image captions. They are also
15398 allowed in links, but will appear there as regular text. So,
15400 [link with [link](/url)](/url)
15404 <p><a href="/url">link with link</a></p>
15406 * Improved handling of citations using `citeproc-hs-0.3.4`.
15407 Added `--citation-abbreviations` option.
15409 * Citation keys can no longer end with a punctuation character.
15410 This means that `@item1.` will be parsed as a citation with key
15411 'item1', followed by a period, instead of a citation with key
15412 'item1.', as was the case previously.
15414 * In HTML output, citations are now put in a span with class `citation`.
15416 * The markdown reader now recognizes DocBook block and inline tags.
15417 It was always possible to include raw DocBook tags in a markdown
15418 document, but now pandoc will be able to distinguish block from
15419 inline tags and behave accordingly. Thus, for example,
15425 will not be wrapped in `<para>` tags.
15427 * The LaTeX parser has been completely rewritten; it is now much more
15428 accurate, robust, and extensible. However, there are two important
15429 changes in how it treats unknown LaTeX. (1) Previously, unknown
15430 environments became BlockQuote elements; now, they are treated
15431 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
15432 same as `xyz`. (2) Previously, arguments of unknown commands
15433 were passed through with their braces; now the braces are stripped
15436 * `--smart` is no longer selected automatically with `man` output.
15438 * The deprecated `--xetex` option has been removed.
15440 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
15441 instead. `html5` and `html5+lhs` are now separate output formats.
15443 * Single quotes are no longer escaped in HTML output. They do not
15444 need to be escaped outside of attributes.
15446 * Pandoc will no longer transform leading newlines in code
15447 blocks to `<br/>` tags.
15449 * The ODT writer now sizes images appropriately, using the image
15450 size and DPI information embedded in the image.
15452 * `--standalone` is once again implicitly for a non-text output format
15453 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
15454 and get a standalone ODT file.
15456 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
15459 * The HTML writer now uses `<del>` for strikeout.
15461 * In HTML output with `--section-divs`, the classes `section` and
15462 `level[1,2,..6]` are put on the `div` tags so they can be styled.
15463 In HTML 5 output with `--section-divs`, the classes
15464 `level[1,2,...6]` are put on `section` tags.
15466 * EPUB writer changes:
15468 + The `lang` variable now sets the language
15469 in the metadata (if it is not set, we default to the locale).
15470 + EPUB: UTF-8 is used rather than decimal entities.
15472 * Added `titleslide` class to title slide in S5 template.
15474 * In HTML, EPUB, and docx metadata, the date is normalized into
15475 YYYY-MM-DD format if possible. (This is required for validation.)
15477 * Attributes in highlighted code blocks are now preserved in HTML.
15478 The container element will have the classes, id, and key-value attributes
15479 you specified in the delimited code block. Previously these were stripped
15482 * The reference backlink in the HTML writer no longer has a special
15483 `footnoteBacklink` class.
15485 * The HTML template has been split into `html` and `html5` templates.
15487 * Author and date are treated more consistently in HTML templates.
15488 Authors are now `<h2>`, date `<h3>`.
15490 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
15492 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
15496 * Better support for combining characters and East Asian wide characters
15497 in markdown and reST.
15499 * Better handling of single quotes with `--smart`.
15500 Previously `D'oh l'*aide*` would be parsed with left and right single
15501 quotes instead of apostrophes. This kind of error is now fixed.
15503 * Highlighting: Use `reads` instead of `read` for better error handling.
15504 Fixes crash on `startNum="abc"`.
15506 * Added blank comment after directives in rst template.
15508 * Unescape entities in citation `refId`. The `refId`s coming
15509 from citeproc contain XML numeric entities, and these don't match with the
15510 citation keys parsed by pandoc. Solution is to unescape them.
15512 * HTML reader: Fixed bug parsing tables with both thead and tbody.
15516 + Better handling of escapes in link URLs and titles.
15517 + Fixed backslash escapes in reference links.
15518 + Fixed bug in table/hrule parsing, by checking that the top
15519 line of a table is not followed by a blank line. This bug caused
15520 slowdowns on some files with hrules and tables, as pandoc tried to
15521 interpret the hrules as the tops of multiline tables.
15522 + Fixed bug in code block attribute parser. Previously the ID attribute
15523 got lost if it didn't come first. Now attributes can come in any order.
15525 * RST reader: allow footnotes followed by newline without space characters.
15529 + Ignore empty groups {}, { }.
15530 + LaTeX reader: Handle `\@`.
15531 + LaTeX reader: Don't crash on commands like `\itemsep`.
15532 + LaTeX reader: Better handling of letter environments.
15534 * RST writer: Fixed bug involving empty table cells. isSimple was being
15535 calculated in a way that assumed there were no non-empty cells.
15539 + Made `--toc` work even without `--number-sections`.
15540 + Escape # in link URLs.
15541 + Use buffering for footnotes containing code blocks.
15542 + Changed 'descr' to 'description', fixed alignment.
15546 + Escape euro character.
15547 + Don't escape `~` inside `\href{...}`.
15548 + Escape `#` in href URLs.
15549 + Improved detection of book classes. We now check the
15550 `documentclass` variable, and if that is not set, we look through
15551 the template itself. Also, we have added the KOMA classes scrreprt
15552 and scrbook. You can now make a book using
15553 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
15554 + LHS files now set the "listings" variable, so that the definition
15555 of the `code` environment will be included in the template.
15556 + Links are colored blue by default (this can be changed by
15557 modifying `hyperref` settings in the template).
15558 + Added `lang` variable to LaTeX template.
15562 + Fixed bug in HTML template with html5 and mathml.
15563 + Don't use self-closing img, br, hr tags for HTML5.
15564 + Use `<section>` for footnotes if HTML5.
15565 + Update HTML templates to use Content-Style-Type meta tag.
15566 + Use separate variables for meta-date, meta-author.
15567 This makes footnotes work in author and date fields.
15568 + Use 'vertical-align:middle' in WebTeX math for better alignment.
15570 * S5/slidy writer: Make footnotes appear on separate slide at end.
15572 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
15573 META-INF/manifest.xml for ODT files will have everything it needs, so
15574 that ODT files modified by LibreOffice can be used as `--reference-odt`.
15576 * `Text.Pandoc.Templates`: Return empty string for json template.
15578 * `Text.Pandoc.Biblio`:
15580 + Expand citations recursively inside nested inlines.
15581 + Treat `\160` as space when parsing locator and suffix.
15582 This fixes a bug with "p. 33" when `--smart` is used. Previously
15583 the whole "p. 33" would be included in the suffix, with no locator.
15584 + Put whole author-in-text citation in a Cite. Previously just the
15585 date and other info went in the Cite.
15586 + Don't add comma+space to prefix if it ends in punctuation.
15588 * Updated chicago-author-date.csl. The old version did not work
15589 properly for edited volumes with no author.
15593 + Add date to EPUB titlepage and metadata.
15594 + Added TOC identifier in EPUB page template.
15595 + Don't generate superfluous file `cover-image.jpg`.
15597### Under the hood improvements
15599 * Modified `make_osx_package.sh` to use cabal-dev.
15600 Items are no longer installed as root.
15601 Man pages are zipped and given proper permissions.
15603 * Modified windows installer generater to use cabal-dev.
15605 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
15606 Setup.hs we now invoke 'runghc' in a way that points it to the correct
15607 package databases, instead of always falling back to the default user
15610 * Updated to work with GHC 7.4.1.
15612 * Removed dependency on old-time.
15614 * Removed dependency on dlist.
15616 * New slidy directory for "self-contained."
15618 * TeXMath writer: Use unicode thin spaces for thin spaces.
15620 * Markdown citations: don't strip off initial space in locator.
15624 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
15625 from the native `Inline` type in pandoc-types. Now we use `Str`
15626 elements with unicode.
15628 * Improvements to `Text.Pandoc.Builder`:
15630 + `Inlines` and `Blocks` are now newtypes (not synonyms for
15632 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
15633 and a new `Listable` class, which allows these to be manipulated
15634 to some extent like lists. Monoid append includes automatic
15636 + `+++` has been replaced by `<>` (mappend).
15638 * Use blaze-html instead of xhtml for HTML generation.
15639 This changes the type of `writeHtml`.
15641 * `Text.Pandoc.Shared`:
15643 + Added `warn` and `err`.
15644 + Removed `unescapeURI`, modified `escapeURI`.
15645 (See under [behavior changes], above.)
15647 * Changes in URI escaping: Previously the readers escaped URIs by
15648 converting unicode characters to octets and then percent encoding.
15649 Now unicode characters are left as they are, and `escapeURI` only
15650 percent-encodes space characters. This gives more readable
15651 URIs, and works well with modern user agents. URIs are no longer unescaped
15652 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
15654 * New module `Text.Pandoc.SelfContained`.
15656 * New module `Text.Pandoc.Docx`.
15658 * New module `Text.Pandoc.PDF`.
15660 * Added `writerBeamer` to `WriterOptions`.
15662 * Added `normalizeDate` to `Text.Pandoc.Shared`.
15664 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
15665 This is like `splitWithIndices`, but it is sensitive to distinctions
15666 between wide, combining, and regular characters.
15668 * `Text.Pandoc.Pretty`:
15670 + Added `chomp` combinator.
15671 + Added `beforeNonBreak` combinator. This allows you to include
15672 something conditionally on it being before a nonblank.
15673 Used for RST inline math.
15674 + Added `charWidth` function. All characters marked W or F in the unicode
15675 spec EastAsianWidth.txt get width 2.
15676 + Added `realLength`, based on `charWidth`. `realLength` is now
15677 used in calculating offsets.
15679 * New module `Text.Pandoc.Slides`, for common functions for breaking
15680 a document into slides.
15682 * Removed `Text.Pandoc.S5`, which is no longer needed.
15684 * Removed `Text.Pandoc.CharacterReferences`. Moved
15685 `characterReference` to `Text.Pandoc.Parsing`.
15686 `decodeCharacterReferences` is replaced by `fromEntities`
15687 in `Text.Pandoc.XML`.
15689 * Added `Text.Pandoc.ImageSize`. This is intened for use
15690 in `docx` and `odt` writers, so the size and dpi of images
15693 * Removed `writerAscii` in `WriterOptions`.
15695 * Added `writerHighlight` to `WriterOptions`.
15697 * Added `DZSlides` to `HTMLSlideVariant`.
15699 * `writeEPUB` has a new argument for font files to embed.
15701 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
15702 of whether we're parsing the position immediately after a regular
15703 (non-space, non-symbol) string, which is useful for distinguishing
15704 apostrophes from single quote starts.
15706 * `Text.Pandoc.Parsing`:
15708 + `escaped` now returns a `Char`.
15709 + Removed `charsInBalanced'`, added a character parser as
15710 a parameter of `charsInBalanced`. This is needed for
15711 proper handling of escapes, etc.
15714 * Added `toEntities` to `Text.Pandoc.XML`.
15716 * `Text.Pandoc.Readers.LaTeX`:
15718 + Export `handleIncludes`.
15719 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
15721 * Added `ToJsonFilter` class and `toJsonFilter` function to
15722 `Text.Pandoc`, deprecating the old `jsonFilter` function.
15724 * `Text.Pandoc.Highlighting`:
15726 + Removed `highlightHtml`, `defaultHighlightingCss`.
15727 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
15728 key functions from highlighting-kate.
15729 + Changed types of highlighting function. `highlight` returns a
15730 `Maybe`, not an `Either`.
15733## pandoc 1.8.2.1 (2011-08-01)
15735 * Adjusted Arbitrary instance to help avoid timeouts in tests.
15737 * Added `Tests.Writers.Markdown` to cabal file.
15739 * Relaxed version bounds on pandoc-types, test-framework.
15741## pandoc 1.8.2 (2011-07-30)
15743 * Added script to produce OS X package.
15745 * Made `templates` directory a git submodule. This should make it
15746 easier for people to revise their custom templates when the default
15749 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
15750 **Note:** If you have existing templates in `~/.pandoc/templates`, you
15751 must rename them to conform to the new scheme!
15753 * Default template improvements:
15755 + HTML: Display author and date after title.
15756 + HTML: Made table of contents more customizable. The container
15757 for the TOC is now in the template, so users can insert a header
15758 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
15759 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
15760 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
15761 hard-coding. If you want to put your slidy files in the slidy
15762 subdirectory, for example, you can do
15763 `pandoc -t slidy -V slidy-url=slidy -s`.
15764 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
15765 & writer). Closes #279.
15766 + LaTeX: Set `\emergencystretch` to prevent overfull lines.
15767 + LaTeX: Use different `hyperref` options for `xetex`, fixing
15768 problems with unicode bookmarks (thanks to CircleCode).
15769 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
15770 with `inputenc`. This covers fewer characters but is more
15771 robust with other packages, and `ucs` is unmaintained. Users
15772 who need better unicode support should use xelatex or lualatex.
15774 * If a template specified with `--template` is not found, look for it
15775 in `datadir`. Also, if no extension is provided, supply one based
15776 on the writer. So now you can put your `special.latex` template in
15777 `~/.pandoc/templates`, and use it from any directory via
15778 `pandoc -t latex --template special`.
15780 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
15782 * Fixed smart quotes bug, now handling `'...hi'` properly.
15786 + Partial support for labeled footnotes.
15787 + Improved accuracy of `simpleReferenceName` parser.
15791 + Substitute correct unicode characters for
15792 characters in the 128..159 range, which are often found even in
15793 HTML that purports to be UTF-8.
15795 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
15796 to the title, after a colon and linebreak). Closes #280.
15798 * Leaner `reference.odt`.
15800 * Added unexported module `Text.Pandoc.MIME` for use in
15803 * ODT writer: Construct `manifest.xml` based on archive contents.
15804 This fixes a bug in ODTs containing images. Recent versions of
15805 LibreOffice would reject these as corrupt, because `manifest.xml`
15806 did not contain a reference to the image files.
15810 + Make verbatim environments flush to avoid spurious
15811 blank lines. Closes #277.
15812 + Use `\texttt` and escapes insntead of `\verb!...!`, which
15813 is too fragile (doesn't work in command arguments).
15814 + Use `\enquote{}` for quotes if the template includes
15815 the `csquotes` package. This provides better support for
15816 local quoting styles. (Thanks to Andreas Wagner for the idea.)
15818 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
15819 margin, preventing spurious blank lines.
15823 + Use non-minimized version of `slidy.css` with `--offline`
15824 option, so users can more easily edit it.
15825 + Also fixed a bug in the CSS that prevented proper centering
15826 of title (now reported and fixed upstream).
15830 + Replaced `s5/default/slides.js.{comment,packed}` with
15831 new compressed `s5/default/slides.min.js`.
15832 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
15833 when `--offline` is specified. Using inline CSS didn't
15834 work with Chrome or Safari. This fixes offline
15835 S5 on those browsers.
15837 * HTML writer: Removed English title on footnote backlinks.
15838 This is incongrous in non-English documents.
15842 + Use CALS tables. (Some older docbook software does not work
15843 well with XHTML tables.) Closes #77.
15844 + Use `programlisting` tags (instead of `screen`) for code blocks.
15848 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
15849 of `-interaction=batchmode`, which essentially just ignored errors,
15850 leading to bad results. Better to know when something is wrong.
15851 + Fixed issues with non-UTF-8 output of `pdflatex`.
15852 + Better error reporting.
15854 * `--mathjax` now takes an optional URL argument. If it is not
15855 provided, pandoc links directly to the (secure) mathjax CDN,
15856 as now recommended (thanks to dsanson).
15858 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
15859 since the LaTeX writer now produces a file that can be processed by
15860 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
15862 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
15863 to be used to create the PDF.
15866## pandoc 1.8.1.2 (2011-07-16)
15868 * Added `--epub-cover-image` option.
15870 * Documented `--biblatex` and `--natbib` options.
15872 * Allow `--section-divs` with slidy output. Resolves Issue #296.
15874 * Disallow notes within notes in reST and markdown.
15875 These previously caused infinite looping and stack overflows.
15882 Note references are allowed in reST notes, so this isn't a full
15883 implementation of reST. That can come later. For now we need to
15884 prevent the stack overflows. Partially resolves Issue #297.
15886 * EPUB writer: Allow non-plain math methods.
15888 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
15889 `(@item1; @item2)` because the final paren was being parsed as part of
15892 * Changed URI parser so it doesn't include trailing punctuation.
15893 So, in RST, `http://google.com.` should be parsed as a link followed by a
15894 period. The parser is smart enough to recognize balanced parentheses, as
15895 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
15897 * Markdown+lhs reader: Require space after inverse bird tracks, so that
15898 HTML tags can be used freely at the left margin of a markdown+lhs document.
15899 Thanks to Conal Elliot for the suggestion.
15901 * Markdown reader: Fixed bug in footnote order (reported by CircleCode).
15904 + Fixed bug in in field lists with multi-line items at the
15906 + Added parentheses to RST `specialChars`, so
15907 `(http://google.com)` will be parsed as a link in parens.
15908 Resolves Issue #291.
15909 + Allow `|` followed by newline in RST line block.
15913 + Gobble option & space after linebreak `\\[10pt]`.
15916 + Make it possible to have colons after links. (qerub)
15917 + Make it possible to have colons after links. (Christoffer Sawicki)
15920 + Skip spaces after `<b>`, `<emph>`, etc.
15921 + Handle tbody, thead in simple tables. Closes #274.
15922 + Implicit `Para`s instead of `Plains` in some contexts.
15924 * OpenDocument writer: Use special `First paragraph` style for
15925 first paragraph after most non-paragraph blocks. This allows users to
15926 specify e.g. that only paragraphs after the first paragraph of a block are
15927 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
15929 * LaTeX writer: use `deVerb` on table and picture captions.
15930 Otherwise LaTeX complains about `\verb` inside command argument.
15931 Thanks to bbanier for reporting the bug.
15933 * Markdown writer: Insert HTML comment btw list and indented code block.
15934 This prevents the code block from being interpreted as part of the list.
15936 * EPUB writer: Add a meta element specify the cover.
15937 Some EPUB e-readers, such as the Nook, require a meta element inside the
15938 OPF metadata block to ensure the cover image is properly displayed.
15941 * HTML writer: Use embed tag for images with non-image extensions.
15942 (e.g. PDFs). Closes #264.
15944 * LaTeX writer: Improved tables.
15946 + More space between lines, top-align cells.
15947 + Use ctable package, which allows footnotes and
15948 provides additional options.
15949 + Made cell alignments work in multiline tables.
15950 + Closes #271, #272.
15952 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
15953 Also do this when copying image files into EPUBs and ODTs.
15956 * Changed to github issue tracker.
15958 * Added failing emph/strong markdown test case due to Perry Wagle.
15960 * Slidy improvements:
15961 + Updated to use Slidy2.
15962 + Fixed bug, unclosed div tag.
15963 + Added `duration` variable in template.
15964 Setting this activates the timer.
15965 + Use 'titlepage' instead of 'cover' for title div.
15968## pandoc 1.8.1.1 (2011-02-13)
15970 * `markdown2pdf`: Removed some debugging lines accidentally included
15971 in the 1.8.1 release. With those lines, the temp directory is created
15972 in the working directory, and it is not deleted. This fix restores
15973 the original behavior.
15975## pandoc 1.8.1 (2011-02-13)
15977 * Added `--ascii` option. Currently supported only in HTML writer,
15978 which it causes to use numerical entities instead of UTF-8.
15980 * EPUB writer: `--toc` now works to provide a table of contents
15981 at the beginning of each chapter.
15983 * LaTeX writer: Change figure defaults to `htbp`.
15984 This prevents "too many unprocessed floats." Resolves
15987 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
15990 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
15991 Tanimoto. Resolves Issue #286.
15993 * HTML writer: Put line breaks in section divs.
15995 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
15997## pandoc 1.8.0.3 (2011-02-05)
15999 * Fixed Source-repository stanza in cabal file.
16001## pandoc 1.8.0.2 (2011-02-05)
16005 + Stringify alt text instead of converting to HTML.
16006 + Break lines after block elements, not inside tags.
16007 HTML output now closely resembles that of tidy. Resolves Issue #134.
16009 * Markdown reader: Fixed bug in footnote block parser (pointed out
16010 by Jesse Rosenthal). The problem arose when the blank line
16011 at the end of a footnote block contained indenting spaces.
16013 * Shared: Improved 'normalize' function so it normalizes Spaces too.
16014 In normal form, Space elements only occur to separate two non-Space
16015 elements. So, we never have [Space], or [, ..., Space].
16019 + Improved Arbitrary instance.
16020 + Added timeout for test instances.
16024 + Added section on four-space rule for lists. Resolves Issue #283.
16025 + Clarified optional arguments on math options.
16027 * markdown2pdf: Fixed bug with output file extensions.
16028 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
16029 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
16031## pandoc 1.8.0.1 (2011-01-31)
16033 * Revised Interact.hs so that it works with the CPP macros
16034 in the UTF8 module.
16036 * Revised Setup.hs so that we don't call MakeManPage.hs unless
16037 the man pages are out of date.
16039## pandoc 1.8 (2011-01-30)
16043 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
16044 You can now write, for example,
16046 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
16048 and, when you process your document using `pandoc`, specifying
16049 a citation style using `--csl` and a bibliography using `--bibliography`,
16050 the citation will be replaced by an appropriately formatted
16051 citation, and a list of works cited will be added to the end
16054 This means that you can switch effortlessly between different citation
16055 and bibliography styles, including footnote, numerical, and author-date
16056 formats. The bibliography can be in any of the following formats: MODS,
16057 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
16058 See the README for further details.
16060 Citations are supported in the markdown reader, using a special
16061 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
16062 (Thanks to Nathan Gass for the natbib and biblatex support.)
16064 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
16065 the `textile` reader, an almost complete implementation of the textile
16066 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
16067 Resolves Issue #51.
16069 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
16071 * New `json` reader and writer, for reading and writing a JSON
16072 representation of the native Pandoc AST. These are much faster
16073 than the `native` reader and writer, and should be used for
16074 serializing Pandoc to text. To convert between the JSON representation
16075 and native Pandoc, use `encodeJSON` and `decodeJSON` from
16076 `Text.JSON.Generic`.
16078 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
16079 to write scripts that transform a JSON-encoded pandoc document.
16082 -- removelinks.hs - removes links from document
16084 main = interact $ jsonFilter $ bottomUp removeLink
16085 where removeLink (Link xs _) = Emph xs
16088 To use this to remove links while translating markdown to LaTeX:
16090 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
16092 * Attributes are now allowed in inline `Code` elements, for example:
16094 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
16096 The attribute syntax is the same as for delimited code blocks.
16097 `Code` inline has an extra argument place for attributes, just like
16098 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
16099 is compiled with highlighting support. Resolves Issue #119.
16101 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
16102 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
16103 scripts to transform Pandoc documents. Scripts can now change
16104 how each element is rendered in each output format.
16106 * You can now define LaTeX macros in markdown documents, and pandoc
16107 will apply them to TeX math. For example,
16109 \newcommand{\plus}[2]{#1 + #2}
16112 yields `3+4`. Since the macros are applied in the reader, they
16113 will work in every output format, not just LaTeX.
16115 * LaTeX macros can also be used in LaTeX documents (both in math
16116 and in non-math contexts).
16118 * A new `--mathjax` option has been added for displaying
16119 math in HTML using MathJax. Resolves issue #259.
16121 * Footnotes are now supported in the RST reader. (Note, however,
16122 that unlike docutils, pandoc ignores the numeral or symbol used in
16123 the note; footnotes are put in an auto-numbered ordered list.)
16124 Resolves Issue #258.
16126 * A new `--normalize` option causes pandoc to normalize the AST
16127 before writing the document. This means that, for example,
16128 `*hi**there*` will be rendered as `<em>hithere</em>`
16129 instead of `<em>hi</em><em>there</em>`. This is not the default,
16130 because there is a significant performance penalty.
16132 * A new `--chapters` command-line option causes headers
16133 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
16134 Resolves Issue #265.
16136 * In DocBook output, `<chapter>` is now used for top-level
16137 headers if the template contains `<book>`. Resolves Issue #265.
16139 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
16140 the LaTeX writer to use the listings package for code blocks.
16141 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
16142 Millon for the markdown2pdf patch.)
16144 * `markdown2pdf` now supports `--data-dir`.
16146 * URLs in autolinks now have class "url" so they can be styled.
16148 * Improved prettyprinting in most formats. Lines will be wrapped
16149 more evenly and duplicate blank lines avoided.
16151 * New `--columns` command-line option sets the column width for
16152 line wrapping and relative width calculations for tables.
16154 * Made `--smart` work in HTML, RST, and Textile readers, as well
16157 * Added `--html5` option for HTML5 output.
16159 * Added support for listings package in LaTeX reader
16160 (Puneeth Chaganti).
16162 * Added support for simple tables in the LaTeX reader.
16164 * Added support for simple tables in the HTML reader.
16166 * Significant performance improvements in many readers and writers.
16168### API and program changes
16170 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
16171 auxiliary package, `pandoc-types`. This will make it possible for other
16172 programs to supply output in Pandoc format, without depending on the whole
16175 * Added `Attr` field to `Code`.
16177 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
16178 `RawBlock` and `RawInline`.
16180 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
16181 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
16182 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
16184 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
16186 * `Text.Pandoc` now exports association lists `readers` and `writers`.
16188 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
16189 `readNative` can now read full pandoc documents, block lists, blocks,
16190 inline lists, or inlines. It will interpret `Str "hi"`
16191 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
16192 This should make testing easier.
16194 * Removed deprecated `-C/--custom-header` option.
16195 Use `--template` instead.
16197 * `--biblio-file` has been replaced by `--bibliography`.
16198 `--biblio-format` has been removed; pandoc now guesses the format
16199 from the file extension (see README).
16201 * pandoc will treat an argument as a URI only if it has an
16202 `http(s)` scheme. Previously pandoc would treat some
16203 Windows pathnames beginning with `C:/` as URIs.
16205 * The `--sanitize-html` option and the `stateSanitize` field in
16206 `ParserState` have been removed. Sanitization is better done in the
16207 resulting HTML using `xss-sanitize`, which is based on pandoc's
16208 sanitization, but improved.
16210 * pandoc now adds a newline to the end of its output in fragment
16211 mode (= not `--standalone`).
16213 * Added support for `lang` in `html` tag in the HTML template,
16214 so you can do `pandoc -s -V lang=es`, for example.
16216 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
16217 a boolean argument that selects between "inline" and
16220 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
16221 Images are embedded in RTF output when possible (png, jpeg).
16222 Resolves Issue #275.
16224 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
16225 `pretty` package. Changed all writers that used
16226 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
16228 * Rewrote `writeNative` using the new prettyprinting module. It is
16229 now much faster. The output has been made more consistent and compressed.
16230 `writeNative` is also now sensitive to writerStandalone`, and will simply
16231 `print a block list if writerStandalone` is False.
16233 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
16234 blocks and concatenate them, so a separate module is no longer needed.
16236 * `Text.Pandoc.Shared`:
16238 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
16240 + Added `normalize`.
16241 + Removed unneeded prettyprinting functions:
16242 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
16243 `BlockWrapper`, `wrappedBlocksToDoc`.
16244 + Made `splitBy` take a test instead of an element.
16245 + Added `findDataFile`, refactored `readDataFile`.
16246 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
16247 + Fixed `inlineListToIdentifier` to treat `\160` as ' '.
16249 * `Text.Pandoc.Readers.HTML`:
16251 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
16252 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
16253 `htmlBlockElement`, `htmlComment`
16254 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
16257 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
16258 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
16261 * Ellipses are no longer allowed to contain spaces.
16262 Previously we allowed '. . .', ' . . . ', etc. This caused
16263 too many complications, and removed author's flexibility in
16264 combining ellipses with spaces and periods.
16266 * Allow linebreaks in URLs (treat as spaces). Also, a string of
16267 consecutive spaces or tabs is now parsed as a single space. If you have
16268 multiple spaces in your URL, use `%20%20`.
16270 * `Text.Pandoc.Parsing`:
16272 + Removed `refsMatch`.
16273 + Hid `Key` constructor.
16274 + Removed custom `Ord` and `Eq` instances for `Key`.
16275 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
16276 + Generalized type on `readWith`.
16278 * Small change in calculation of relative widths of table columns.
16279 If the size of the header > the specified column width, use
16280 the header size as 100% for purposes of calculating
16281 relative widths of columns.
16283 * Markdown writer now uses some pandoc-specific features when `--strict`
16284 is not specified: `\` newline is used for a hard linebreak instead of
16285 two spaces then a newline. And delimited code blocks are used when
16286 there are attributes.
16288 * HTML writer: improved gladTeX output by setting ENV appropriately
16289 for display or inline math (Jonathan Daugherty).
16291 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
16295 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
16296 + `\index{}` commands are skipped.
16298 * Added `fontsize` variable to default LaTeX template.
16299 This makes it easy to set the font size using `markdown2pdf`:
16300 `markdown2pdf -V fontsize=12pt input.txt`.
16302 * Fixed problem with strikeout in LaTeX headers when using
16303 hyperref, by adding a command to the default LaTeX template
16304 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
16307 * The `COLUMNS` environment variable no longer has any effect.
16309### Under-the-hood improvements
16311 * Pandoc now compiles with GHC 7. (This alone leads to a
16312 significant performance improvement, 15-20%.)
16314 * Completely rewrote HTML reader using tagsoup as a lexer. The
16315 new reader is faster and more accurate. Unlike the
16316 old reader, it does not get bogged down on some input
16317 (Issues #277, 255). And it handles namespaces in tags
16320 * Replaced `escapeStringAsXML` with a faster version.
16322 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
16323 for a significant performance boost.
16325 * Improved performance of all readers by rewriting parsers.
16327 * Simplified Text.Pandoc.CharacterReferences by using
16328 entity lookup functions from TagSoup.
16330 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
16331 from `System.IO` if base >= 4.2. This gives support for
16332 windows line endings on windows.
16334 * Remove duplications in documentation by generating the
16335 pandoc man page from README, using `MakeManPage.hs`.
16337 * README now includes a full description of markdown syntax,
16338 including non-pandoc-specific parts. A new `pandoc_markdown`
16339 man page is extracted from this, so you can look up markdown
16340 syntax by doing `man pandoc_markdown`.
16342 * Completely revised test framework (with help from Nathan Gass).
16343 The new test framework is built when the `tests` Cabal flag is set. It
16344 includes the old integration tests, but also some new unit and quickcheck
16345 tests. Test output has been much improved, and you can now specify a glob
16346 pattern after `cabal test` to indicate which tests should be run;
16347 for example `cabal test citations` will run all the citation tests.
16349 * Added a shell script, `stripansi.sh`, for filtering ANSI control
16350 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
16352 * Added `Interact.hs` to make it easier to use ghci while developing.
16353 `Interact.hs` loads `ghci` from the `src` directory, specifying
16354 all the options needed to load pandoc modules (including
16355 specific package dependencies, which it gets by parsing
16356 dist/setup-config).
16358 * Added `Benchmark.hs`, testing all readers + writers using criterion.
16360 * Added `stats.sh`, to make it easier to collect and archive
16361 benchmark and lines-of-code stats.
16363 * Added upper bounds to all cabal dependencies.
16365 * Include man pages in extra-source-files. This allows users to
16366 install pandoc from the tarball without needing to build the man
16371 * Filenames are encoded as UTF8. Resolves Issue #252.
16373 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
16374 were just parsed literally, leading to problems in some output formats.
16375 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
16376 Resolves Issue #270.
16378 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
16379 Spaces at end of line were not being stripped properly,
16380 resulting in unintended LineBreaks.
16384 + Allow HTML comments as inline elements in markdown.
16385 So, `aaa <!-- comment --> bbb` can be a single paragraph.
16386 + Fixed superscripts with links: `^[link](/foo)^` gets
16387 recognized as a superscripted link, not an inline note followed by
16389 + Fixed regression, making markdown reference keys case-insensitive again.
16390 Resolves Issue #272.
16391 + Properly handle abbreviations (like `Mr.`) at the end of a line.
16392 + Better handling of intraword underscores, avoiding exponential
16393 slowdowns in some cases. Resolves Issue #182.
16394 + Fixed bug in alignments in tables with blank rows in the header.
16398 + Field lists now allow spaces in field names, and
16399 block content in field values. (Thanks to Lachlan Musicman
16400 for pointing out the bug.)
16401 + Definition list items are now always `Para` instead of
16402 `Plain`, matching behavior of `rst2xml.py`.
16403 + In image blocks, the description is parsed properly and
16404 used for the alt attribute, not also the title.
16405 + Skip blank lines at beginning of file. Resolves
16410 + Improved parsing of preamble.
16411 Previously you'd get unexpected behavior on a document that
16412 contained `\begin{document}` in, say, a verbatim block.
16413 + Allow spaces between `\begin` or `\end` and `{`.
16414 + Support `\L` and `\l`.
16415 + Skip comments inside paragraphs.
16419 + Escape strings in `\href{..}`.
16420 + In nonsimple tables, put cells in `\parbox`.
16422 * OpenDocument writer: don't print raw TeX.
16426 + Fixed bug in `Image`. URI was getting unescaped twice!
16427 + Avoid printing extra blank lines at the end if there are
16428 no notes or references.
16430 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
16431 This avoids unwanted interpretation as an optional argument.
16433 * ConTeXt writer: Fixed problem with inline code. Previously
16434 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
16435 If it contains neither, use `\type{}`; otherwise use `\mono{}`
16436 with an escaped version of the string.
16438 * `:` now allowed in HTML tags. Resolves Issue #274.
16442## pandoc 1.6 (2010-07-24)
16444+ New EPUB and HTML Slidy writers. (Issue #122)
16446 - [EPUB] is a standard ebook format, used in Apple's iBooks for
16447 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
16448 reader, and many other devices, and by online ebook readers like
16449 [bookworm]. (Amazon's Kindle uses a different format, MobiPocket,
16450 but EPUB books can easily be converted to Kindle format.) Now you
16451 can write your book in markdown and produce an ebook with a single
16452 command! I've put up a short [tutorial here].
16453 - [Slidy], like S5, is a system for producing HTML+javascript slide shows.
16455+ All input is assumed to be UTF-8, no matter what the locale and ghc
16456 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
16457 Also, a BOM, if present, is stripped from the input.
16459+ Markdown now supports grid tables, whose cells can contain
16460 arbitrary block elements. (Issue #43)
16462+ Sequentially numbered example lists in markdown with `@` marker.
16464+ Markdown table captions can begin with a bare colon and no longer need
16465 to include the English word "table." Also, a caption can now occur
16466 either before or after the table. (Issue #227)
16468+ New command-line options:
16470 - `--epub-stylesheet` allows you to specify a CSS file that will
16471 be used to style your ebook.
16472 - `--epub-metadata` allows you to specify metadata for the ebook.
16473 - `--offline` causes the generated HTML slideshow to include all
16474 needed scripts and stylesheets.
16475 - `--webtex` causes TeX math to be converted to images using the
16476 Google Charts API (unless a different URL is specified).
16477 - `--section-divs` causes div tags to be added around each section
16478 in an HTML document. (Issue #230, 239)
16480+ Default behavior of S5 writer in standalone mode has changed:
16481 previously, it would include all needed scripts and stylesheets
16482 in the generated HTML; now, only links are included unless
16483 the `--offline` option is used.
16485+ Default behavior of HTML writer has changed. Between 1.2 and 1.5,
16486 pandoc would enclose sections in div tags with identifiers on the
16487 div tags, so that the sections can be manipulated in javascript.
16488 This caused undesirable interactions with raw HTML div tags. So,
16489 starting with 1.6, the default is to put the identifiers directly
16490 on the header tags, and not to include the divs. The `--section-divs`
16491 option selects the 1.2-1.5 behavior.
16495 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
16496 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
16497 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
16498 `writerIncludeAfter`.
16499 - Added `headerShift` to `Text.Pandoc.Shared`.
16500 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
16501 to a new module, `Text.Pandoc.Parsing`.
16502 - Added `stateHasChapters` to `ParserState`.
16503 - Added `HTMLSlideVariant`.
16504 - Made `KeyTable` a map instead of an association list.
16505 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`, `docDate`).
16506 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord` instances.
16507 - Reference keys now have a type of their own (`Key`), with its
16508 own `Ord` instance for case-insensitive comparison.
16509 - Added `Text.Pandoc.Writers.EPUB`.
16510 - Added `Text.Pandoc.UUID`.
16511 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
16512 Removed `saveOpenDocumentAsODT`, added `writeODT`.
16513 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
16514 Removed `prettyPandoc`.
16515 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
16516 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
16517 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
16518 To write S5, you now use `writeHtml` with `writerSlideVariant`
16519 set to `S5Slides` or `SlidySlides`.
16521+ Template changes. If you use custom templates, please update them,
16522 particularly if you use syntax highlighting with pandoc. The old HTML
16523 templates hardcoded highlighting CSS that will no longer work with
16524 the most recent version of highlighting-kate.
16526 - HTML template: avoid empty meta tag if no date.
16527 - HTML template: Use default highlighting CSS from highlighting-kate
16528 instead of hard-coding the CSS into the template.
16529 - HTML template: insert-before text goes before the title, and
16530 immediately after the `<body>` tag, as documented. (Issue #241)
16531 - Added slidy and s5 templates.
16532 - Added amssymb to preamble of latex template. (github Issue 1)
16534+ Removed excess newlines at the end of output. Note: because output
16535 will not contain an extra newline, you may need to make adjustments
16536 if you are inserting pandoc's output into a template.
16538+ In S5 and slidy, horizontal rules now cause a new slide, so you
16539 are no longer limited to one slide per section.
16541+ Improved handling of code in man writer. Inline code is now monospace,
16542 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
16544+ HTML reader parses `<tt>` as Code. (Issue #247)
16546+ html+lhs output now contains bird tracks, even when compiled without
16547 highlighting support. (Issue #242)
16549+ Colons are now no longer allowed in autogenerated XML/HTML identifiers,
16550 since they have a special meaning in XML.
16552+ Code improvements in ODT writer. Remote images are now replaced with
16553 their alt text rather than a broken link.
16555+ LaTeX reader improvements:
16557 - Made latex `\section`, `\chapter` parsers more forgiving of whitespace.
16558 - Parse `\chapter{}` in latex.
16559 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
16560 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
16561 for use in markdown reader.
16562 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
16563 in markdown document.
16565+ LaTeX writer: images are automatically shrunk if they would extend
16566 beyond the page margin.
16568+ Plain, markdown, RST writers now use unicode for smart punctuation.
16570+ Man writer converts math to unicode when possible, as in other writers.
16572+ `markdown2pdf` can now recognize citeproc options.
16574+ Command-line arguments are converted to UTF-8. (Issue #234)
16576+ `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
16577 This allows it to handle a wider range of formulas. Also, if a formula
16578 cannot be converted, it is left in raw TeX; formulas are no longer
16579 partially converted.
16581+ Unicode curly quotes are left alone when parsing smart quotes. (Issue #143)
16583+ Cabal file changes:
16585 - Removed parsec < 3 restriction.
16586 - Added 'threaded' flag for architectures where GHC lacks a threaded
16588 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
16589 - Require highlighting-kate 0.2.7.
16591+ Use explicit imports from `Data.Generics`. Otherwise we have a
16592 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
16594+ New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
16596[EPUB]: http://en.wikipedia.org/wiki/EPUB
16597[Slidy]: http://www.w3.org/Talks/Tools/Slidy
16598[bookworm]: http://bookworm.oreilly.com/
16599[tutorial here]: http://johnmacfarlane.net/pandoc/epub.html
16601## pandoc 1.5.1.1 (2010-03-29)
16603+ Fixed header identifiers (uniqueIdent in Shared) so they
16604 work as advertized in README and are guaranteed to be
16605 valid XHTML names. Thanks to Xyne for reporting the bug.
16607## pandoc 1.5.1 (2010-03-23)
16609+ Fixed treatment of unicode characters in URIs.
16610+ Revised Setup.hs so it works with debian's build process.
16611+ Fixed bug in OpenDocument writer that led to invalid
16612 XML for some input.
16614## pandoc 1.5.0.1 (2010-03-21)
16616+ HTML writer: Fixed error in math writer (with MathML option)
16617 that caused an infinite loop for unparsable MathML.
16619## pandoc 1.5 (2010-03-20)
16621+ Moved repository to [github](http://github.com/jgm/pandoc).
16622+ New `--mathml` option, for display of TeX math as MathML.
16623+ New `--data-dir` option, allowing users to specify a data
16624 directory other than `~/.pandoc`. Files placed in this directory
16625 will be used instead of system defaults.
16626+ New `--base-header-level` option. For example, `--base-header-level=2`
16627 changes level 1 headers to level 2, level 2 to level 3, etc.
16628+ New 'plain' output format: plain text without pictures, hyperlinks,
16629 inline formatting, or anything else that looks even vaguely
16631+ Titles and authors in title blocks can now span multiple lines,
16632 as long as the continuation lines begin with a space character.
16633+ When given an absolute URI as a parameter, pandoc will fetch
16634 the content via HTTP.
16635+ The HTML reader has been made much more forgiving. It no
16636 longer requires well-formed xhtml as input.
16637+ `html2markdown` has been removed; it is no longer necessary, given
16638 the last two changes. `pandoc` can be used by itself to convert
16639 web pages to markdown or other formats.
16640+ `hsmarkdown` has also been removed. Use `pandoc --strict` instead.
16641 Or symlink pandoc's executable to `hsmarkdown`; `pandoc` will then
16642 behave like `hsmarkdown` used to.
16643+ An image in a paragraph by itself is now rendered as a figure
16644 in most writers, with the alt text as the caption.
16645+ Incomplete support for reST tables (simple and grid). Thanks to
16646 Eric Kow. Colspans and rowspans not yet supported.
16647+ In mediawiki, links with relative URLs are now formatted as wikilinks.
16648 Also, headers have been promoted: `= head =` is now level 1 instead of
16650+ The markdown reader now handles "inverse bird tracks" when parsing
16651 literate haskell. These are used for haskell example code that
16652 is not part of the literate program.
16653+ The `-B` and `-A` options now imply `-s` and no longer work in
16655+ Headerless tables are now printed properly in all writers.
16656 In addition, tbody, thead, and cols are used in HTML and Docbook
16658+ Improved build system; removed obsolete Makefile.
16659+ In LaTeX writer, `\chapter` is now used instead of `\section`.
16660 when the documentclass is book, report, or memoir.
16661+ Many small bug fixes. See [changelog] for details.
16663## pandoc 1.4 (2010-01-02)
16665+ New template system replaces old headers, giving users much
16666 more control over pandoc's output in `--standalone` mode.
16667 Added `--template` and `--variable` options. The `--print-default-header`
16668 option is now `--print-default-template`. See README under
16669 "Templates" for details.
16670+ The old `--custom-header` option should still work, but it has
16672+ New `--reference-odt` option allows users to customize styles
16674+ Users may now put custom templates, s5 styles, and a reference
16675 ODT in the `~/.pandoc` directory, where they will override system
16676 defaults. See README for details.
16677+ Unicode is now used whenever possible in HTML and XML output. Entities
16678 are used only where necessary (`>`, `<`, `"`, `&`).
16679+ Authors and dates may now include formatting and notes.
16680+ Added `--xetex` option for `pandoc` and `markdown2pdf`.
16681+ Windows installer now includes highlighting support and
16682 `markdown2pdf` and `hsmarkdown` wrappers.
16683+ Pandoc no longer requires Template Haskell, which should make
16685+ Pandoc can now be built on GHC 6.12, as well as earlier versions.
16686+ See README for other small improvements and bug fixes.
16688## pandoc 1.3 (2009-12-10)
16690+ Added `--id-prefix` option to help prevent duplicate
16691 identifiers when you're generating HTML fragments.
16692+ Added `--indented-code-classes` option, which specifies
16693 default highlighting syntax for indented code blocks.
16694+ `--number-sections` now affects HTML output.
16695+ Improved syntax for markdown definition lists.
16696+ Better looking simple tables.
16697+ Markdown tables without headers are now possible.
16698+ New hard line break syntax: backslash followed by newline.
16699+ Improved performance of markdown reader by ~10% by eliminating the
16700 need for a separate parsing pass for notes.
16701+ Improved syntax highlighting for literate Haskell.
16702+ Support for "..code-block" directive in RST reader.
16703+ Windows binary now includes highlighting support.
16704+ Many bug fixes and small improvements. See [changelog]
16707## pandoc 1.2.1 (2009-07-18)
16709+ Improved the efficiency of the markdown reader's
16710 abbreviation parsing (should give a big performance
16711 boost with `--smart`).
16712+ HTML writer now wraps sections in divs with unique
16713 identifiers, for easier manipulation.
16714+ Improved LaTeX reader's coverage of math modes.
16715+ Added a portable Haskell version of markdown2pdf (thanks
16716 to Paolo Tanimoto).
16717+ Made `--strict` compatible with `--standalone` and `--toc.`
16718+ Many other small improvements and bug fixes.
16719 See [changelog] for details.
16721## pandoc 1.2 (2009-03-01)
16723+ Added support for literate Haskell. lhs support is triggered by
16724 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
16725 Haskell LaTeX. '.lhs' files are treated by default as literate
16727+ Added `--email-obfuscation` option.
16728+ Brought citeproc support up to date for citeproc-hs-0.2.
16729+ Many bugs fixed. See [changelog] for details.
16731## pandoc 1.1 (2008-11-06)
16733+ New `--jsmath` option supporting use of pandoc with [jsMath].
16734+ Classes on HTML table output for better CSS styling.
16735+ Windows installer no longer requires admin privileges.
16736+ Many bugs fixed. See [changelog] for details.
16738## pandoc 1.0 (2008-09-13)
16740+ New writers for MediaWiki, GNU Texinfo (thanks to Peter Wang),
16741 OpenDocument XML (thanks to Andrea Rossato), and ODT (OpenOffice
16743+ New [delimited code blocks](README.html#delimited-code-blocks),
16744 with optional syntax highlighting.
16745+ Reorganized build system: pandoc can now be built using standard
16746 Cabal tools. It can be compiled on Windows without Cygwin.
16747 The tests can also be run without perl or unix tools.
16748+ LaTeXMathML replaces ASCIIMathML for rendering math in HTML.
16749+ Support for "displayed" math.
16750+ Common abbreviations are now handled more intelligently, with
16751 a non-breaking space (and not a sentence-ending space) after
16753+ Code is -Wall clean.
16754+ Many bug fixes and small improvements. See [changelog] for
16757## pandoc 0.46 (2008-01-08)
16759+ Added a `--sanitize-html` option (and a corresponding parameter
16760 in `ParserState` for those using the pandoc libraries in programs).
16761 This option causes pandoc to sanitize HTML (in HTML or Markdown
16762 input) using a whitelist method. Possibly harmful HTML elements
16763 are replaced with HTML comments. This should be useful in the
16764 context of web applications, where pandoc may be used to convert
16765 user input into HTML.
16766+ Made -H, -A, and -B options cumulative: if they are specified
16767 multiple times, multiple files will be included.
16768+ Many bug fixes and small improvements. See [changelog] for full
16771## pandoc 0.45 (2007-12-09)
16773+ Many bug fixes and structural improvements. See [changelog] for
16775+ Improved treatment of math. Math is now rendered using unicode
16776 by default in HTML, RTF, and DocBook output. For more accurate
16777 display of math in HTML, `--gladtex`, `--mimetex`, and `--asciimathml`
16778 options are provided. See the [User's Guide](README.html#math) for
16780+ Removed support for box-style block quotes in markdown.
16781+ More idiomatic ConTeXt output.
16782+ Text wrapping in ConTeXt and LaTeX output.
16783+ Pandoc now correctly handles all standard line endings
16785+ New `--no-wrap` option that disables line wrapping and minimizes
16786 whitespace in HTML output.
16787+ Build process is now compatible with both GHC 6.8 and GHC 6.6.
16788 GHC and GHC_PKG environment variables may be used to specify
16789 which version of the compiler to use, when multiple versions are
16792## pandoc 0.44 (2007-09-03)
16794 [ John MacFarlane ]
16796 * Fixed bug in HTML writer: when --toc was used, anchors were put around
16797 headers, which is invalid XHTML (block content within inline element).
16798 Now the anchors are put inside the header tags. Resolves Issue #23.
16800 * Added xmlns attribute to html element in html writer tests.
16801 This attribute is added by more recent versions of the
16802 xhtml library (>= 3000), and is required for valid XHTML.
16806 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
16807 command instead of 'runhaskell', which, on some platforms (such as s390,
16808 alpha, m68k), throws the following error:
16810 runhaskell Setup.hs configure --prefix=/usr
16811 ghc-6.6.1: not built for interactive use
16813 This causes a serious FTBFS bug. Closes: #440668.
16815## pandoc 0.43 (2007-09-02)
16817 [ John MacFarlane ]
16819 * The focus of this release is performance. The markdown parser
16820 is about five times faster than in 0.42, based on benchmarks
16821 with the TextMate manual.
16823 * Main.hs: Replaced CRFilter and tabFilter with single function
16824 tabFilter, which operates on the whole string rather than breaking
16825 it into lines, and handles dos-style line-endings as well as tabs.
16827 * Added separate LaTeX reader and native reader tests; removed
16830 * Text.Pandoc.Shared:
16832 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
16833 + General code cleanup (to elimante warnings when compiling with -Wall.)
16834 + Added 'wrapped' function, which helps wrap text into paragraphs,
16835 using the prettyprinting library.
16836 + Rewrote charsInBalanced and charsInBalanced'.
16837 - Documented restriction: open and close must be distinct characters.
16838 - Rearranged options for greater efficiency.
16839 - Bug fix: Changed inner call to charsInBalanced inside
16840 charsInBalanced' to charsInBalanced'.
16841 + anyLine now requires that the line end with a newline (not eof).
16842 This is a harmless assumption, since we always add newlines to the
16843 end of a block before parsing with anyLine, and it yields a 10% speed
16845 + Removed unnecessary 'try' in anyLine.
16846 + Removed unneeded 'try' from romanNumeral parser.
16847 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
16848 + Removed unneeded 'try' in parseFromString.
16849 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
16851 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
16852 'try' is not automatically applied to the 'end' parser. Added
16853 'try' in calls to 'enclosed' where needed. Slight speed increase.
16857 + Replaced individual wrapping routines in RST, Man, and Markdown
16858 writers with 'wrapped' from Text.Pandoc.Shared.
16859 + Rewrote LaTeX writer to use the prettyprinting library,
16860 so we get word wrapping, etc.
16861 + Modified latex writer tests for new latex writer using prettyprinter.
16862 + Fixed bug in LaTeX writer: autolinks would not cause
16863 `\usepackage{url}` to be put in the document header. Also, changes
16864 to state in enumerated list items would be overwritten.
16865 + In Markdown writer, escape paragraphs that begin with ordered list
16866 markers, so they don't get interpreted as ordered lists.
16868 * Text.Pandoc.Reades.LaTeX:
16870 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
16871 numeral after "enum" in "setcounter" would consist entirely of
16872 "i"s. 'enumiv' is legitimate.
16873 + LaTeX command and environment names can't contain numbers.
16874 + Rearranged order of parsers in inline for slight speed improvement.
16875 + Added '`' to special characters and 'unescapedChar'.
16877 * Text.Pandoc.Readers.RST:
16879 + Removed unneeded try's in RST reader; also minor code cleanup.
16881 + Rearranged parsers in inline (doubled speed).
16883 * Text.Pandoc.Readers.Markdown:
16885 + Skip notes parsing if running in strict mode. (This yields a nice
16886 speed improvement in strict mode.)
16887 + Simplify autolink parsing code, using Network.URI to test for
16888 URIs. Added dependency on network library to debian/control and
16890 + More perspicuous definition of nonindentSpaces.
16891 + Removed unneeded 'try' in 'rawLine'.
16892 + Combined linebreak and whitespace into a new whitespace parser, to
16893 avoid unnecessary reparsing of space characters.
16894 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
16895 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
16896 + Use lookAhead in parsers for setext headers and definition lists
16897 to see if the next line begins appropriately; if not, don't waste
16898 any more time parsing.
16899 + Don't require blank lines after code block. (It's sufficient to
16900 end code block with a nonindented line.)
16901 + Changed definition of 'emph': italics with '_' must not
16902 be followed by an alphanumeric character. This is to help
16903 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
16904 `[LC<em>TYPE]:my</em>type`.
16905 + Improved Markdown.pl-compatibility in referenceLink: the two parts
16906 of a reference-style link may be separated by one space, but not
16907 more... [a] [link], [not] [a link].
16908 + Fixed markdown inline code parsing so it better accords with
16909 Markdown.pl: the marker for the end of the code section is a clump
16910 of the same number of `'s with which the section began, followed
16911 by a non-` character. So, for example,
16912 ` h ``` i ` -> `<code>h ``` i</code>`.
16913 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
16914 rules are slightly different.
16915 + Rewrote 'para' for greater efficiency.
16916 + Rewrote link parsers for greater efficiency.
16917 + Removed redundant 'referenceLink' in definition of inline (it's
16918 already in 'link').
16919 + Refactored escapeChar so it doesn't need 'try'.
16920 + Refactored hrule for performance in Markdown reader.
16921 + More intelligent rearranging of 'inline' so that most frequently
16922 used parsers are tried first.
16923 + Removed tabchar parser, as whitespace handles tabs anyway.
16925 * Text.Pandoc.CharacterReferences:
16928 + Removed unnecessary 'try's for a speed improvement.
16929 + Removed unnecessary '&' and ';' from the entity table.
16933 + Makefile: Get VERSION from cabal file, not Main.hs.
16934 + Modified MacPorts Portfile:
16935 - Depend on haddock
16936 - Build and install libraries and library documentation in
16937 addition to pandoc executable
16938 - Added template item for md5 sum in Portfile.in.
16939 - Incorporated changes from MacPorts repository (r28278).
16940 + FreeBSD port: Don't try to generate distinfo in Makefile.
16941 It can be made using 'make makesum' in FreeBSD.
16942 + Make both freebsd and macports targets depend on tarball.
16944 * Website and documentation:
16946 + Updated INSTALL instructions.
16947 + Added pandocwiki demo to website.
16948 + Removed local references to Portfile, since pandoc is now in the
16949 MacPorts repository.
16951## pandoc 0.42 (2007-08-26)
16953 [ John MacFarlane ]
16955 * Main.hs: Use utf8 conversion on the extra files loaded with
16956 the -H, -C, -B, and -A options. This fixes problems with unicode
16957 characters in these files.
16959 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
16960 Text.Pandoc.Readers.HTML and without it we get a linking error when
16965 + Added new rule for enhanced markdown ordered lists: if the list
16966 marker is a capital letter followed by a period (including a
16967 single-letter capital roman numeral), then it must be followed by
16968 at least two spaces. The point of this is to avoid accidentally
16969 treating people's initials as list markers: a paragraph might begin,
16970 "B. Russell was an English philosopher," and this shouldn't be
16971 treated as a list. Documented change in README.
16972 + Blocks that start with "p. " and a digit are no longer treated
16973 as ordered lists (it's a page number).
16974 + Added a needed 'try' to listItem.
16975 + Removed check for a following setext header in endline.
16976 A full test is too inefficient (doubles benchmark time), and the
16977 substitute we had before is not 100% accurate.
16978 + Don't use Code elements for autolinks if --strict specified.
16980 * LaTeX writer: When a footnote ends with a Verbatim environment, the
16981 close } of the footnote cannot occur on the same line or an error occurs.
16982 Fixed this by adding a newline before the closing } of every footnote.
16985 + Removed incorrect "{}" around style information in HTML tables.
16986 Column widths now work properly in HTML.
16987 + If --strict option is specified (and --toc is not), don't include
16988 identifiers in headers, for better Markdown compatibility.
16992 + Separated $(web_dest) and website targets.
16993 + In website, index.txt is now constructed from template index.txt.in.
16994 + Added freebsd target to Markefile. This creates the freebsd Makefile
16995 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
16996 from the repository.
16997 + Added macport target to Makefile. Portfile is built from template
16999 + Removed OSX package targets. (Too many difficulties involving
17000 dependencies on dynamic libraries.)
17001 + More complete INSTALL instructions for all architectures.
17004 + Added a programming demo, pandocwiki.
17008 * Do not forget to close pandoc's ITP. Closes: #391666
17010## pandoc 0.41 (2007-08-19)
17012 [ John MacFarlane ]
17014 * Fixed bugs in HTML reader:
17015 + Skip material at end *only if* `</html>` is present (previously,
17016 only part of the document would be parsed if an error was
17017 found; now a proper error message is given).
17018 + Added new constant eitherBlockOrInline with elements that may
17019 count either as block-level or as inline. Modified isInline and
17020 isBlock to take this into account.
17021 + Modified rawHtmlBlock to accept any tag (even an inline tag):
17022 this is innocuous, because rawHtmlBlock is tried only if a regular
17023 inline element can't be parsed.
17024 + Added a necessary 'try' in definition of 'para'.
17026 * Fixed bug in markdown ordered list parsing. The problem was that
17027 anyOrderedListStart did not check for a space following the
17028 ordered list marker. So in 'A.B. 2007' the parser would be
17029 expecting a list item, but would not find one, causing an error.
17030 Fixed a similar bug in the RST reader. Resolves Issue #22.
17032 * Refactored RST and Markdown readers using parseFromString.
17034 * LaTeX reader will now skip anything after \end{document}.
17036 * Fixed blockquote output in markdown writer: previously, block
17037 quotes in indented contexts would be indented only in the first
17040 * Added note to INSTALL about variations in versions of the xhtml
17041 library that can lead to failed tests (thanks to Leif LeBaron).
17043## pandoc 0.4 (2007-01-16)
17045 [ John MacFarlane ]
17047 * Added two new output formats: groff man pages and ConTeXt. By
17048 default, output files with extensions ".ctx" and ".context" are
17049 assumed to be ConTeXt, and output files with single-digit extensions
17050 are assumed to be man pages.
17052 * Enhanced ordered lists (documented in README, under Lists):
17053 + The OrderedList block element now stores information about
17054 list number style, list number delimiter, and starting number.
17055 + The readers parse this information when possible.
17056 + The writers use this information to style ordered lists.
17057 + The enhancement can be disabled using the --strict option.
17059 * Added support for tables (with a new Table block element). Two kinds
17060 of tables are supported: a simple table with one-line rows, and a
17061 more complex variety with multiline rows. All output formats are
17062 supported, but only markdown tables are parsed at the moment. The
17063 syntax is documented in README.
17065 * Added support for definition lists (with a new DefinitionList block
17066 element). All output and input formats are supported. The syntax is
17067 documented in README.
17069 * Added support for superscripts and subscripts (with new Superscript
17070 and Subscript inline elements). All input and output
17071 formats. The syntax is documented in README.
17073 * Added support for strikeout (with a new Strikeout inline element).
17074 All input and output formats are supported. Thanks to Bradley Kuhn,
17075 who contributed a patch. The syntax is documented in README. Resolves
17078 * Added a --toc|--table-of-contents option. This causes an automatically
17079 generated table of contents (or an instruction that creates one) to
17080 be inserted at the beginning of the document. Not supported in S5,
17081 DocBook, or man page writers.
17083 * Modified the -m|--asciimathml option:
17085 + If an optional URL argument is provided, a link is inserted
17086 instead of the contents of the ASCIIMathML.js script.
17087 + Nothing is inserted unless the document actually contains
17090 * Removed Blank block element as unnecessary.
17092 * Removed Key and Note blocks from the Pandoc data structure. All
17093 links are now stored as explicit links, and note contents are
17094 stored with the (inline) notes.
17096 + All link Targets are now explicit (URL, title) pairs; there
17097 is no longer a 'Ref' target.
17098 + Markdown and RST parsers now need to extract data from key and
17099 note blocks and insert them into the relevant inline elements.
17100 Other parsers have been simplified, since there is no longer any need
17101 to construct separate key and note blocks.
17102 + Markdown, RST, and HTML writers need to construct lists of
17103 notes; Markdown and RST writers need to construct lists of link
17104 references (when the --reference-links option is specified); and
17105 the RST writer needs to construct a list of image substitution
17106 references. All writers have been rewritten to use the State monad
17107 when state is required.
17108 + Several functions (generateReference, keyTable,
17109 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
17110 used by them) have been removed from Text.Pandoc.Shared, since
17111 they are no longer needed. New functions and data structures
17112 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
17113 added. The functions inTags, selfClosingTag, inTagsSimple, and
17114 inTagsIndented have been moved to the DocBook writer, since that
17115 is now the only module that uses them. NoteTable is now exported
17116 in Text.Pandoc.Shared.
17117 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
17118 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
17119 + Added writerNotes and writerReferenceLinks to WriterOptions.
17121 * Added Text.Pandoc module that exports basic readers, writers,
17122 definitions, and utility functions. This should export everything
17123 needed for most uses of Pandoc libraries. The haddock documentation
17124 includes a short example program.
17126 * Text.Pandoc.ASCIIMathML is no longer an exported module.
17128 * Added Text.Pandoc.Blocks module to help in printing markdown
17129 and RST tables. This module provides functions for working with
17130 fixed-width blocks of text--e.g., placing them side by side, as
17133 * Refactored to avoid reliance on Haskell's Text.Regex library, which
17134 (a) is slow, and (b) does not properly handle unicode. This fixed
17135 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
17137 + Replaced 'gsub' with a general list function 'substitute'
17138 that does not rely on Text.Regex.
17139 + Rewrote extractTagType in HTML reader so that it doesn't use
17141 + In Markdown reader, replaced email regex test with a custom email
17142 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
17143 with a custom function isSelfClosingTag.
17144 + Modified Docbook writer so that it doesn't rely on Text.Regex for
17145 detecting 'mailto' links.
17146 + Removed escapePreservingRegex and reamped entity-handling
17147 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
17148 avoid reliance on Text.Regex (see below on character reference
17151 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
17153 * Changed handling of XML entities. Entities are now parsed (and unicode
17154 characters returned) in the Markdown and HTML readers, rather than being
17155 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
17156 instead of entities for characters above 128. This makes the HTML and
17157 DocBook output much more readable and more easily editable.
17159 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
17160 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
17161 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
17162 Moved both functions to Text.Pandoc.Writers.Docbook.
17163 + Added characterReference parser to Text.Pandoc.CharacterReferences.
17164 This parses a string and return a unicode character.
17165 + Rewrote decodeCharacterReferences to use the new parser instead of
17167 + Added new charRef parser for Markdown and HTML, which replaces the
17168 old 'entity' parser. Added '&' as a special character in Markdown reader.
17169 + Modified HTML and Markdown readers to call decodeEntities on all raw
17170 strings (e.g. authors, dates, link titles), to ensure that no
17171 unprocessed entities are included in the native representation of
17172 the document. (In the HTML reader, most of this work is done by a
17173 change in extractAttributeName.)
17174 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
17175 since a unicode non-breaking space is impossible to distinguish visually
17176 from a regular space. (Resolves Issue #3.)
17177 + Removed encodeEntitiesNumerical.
17178 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
17179 slight performance boost over the old association list.
17180 + Removed unneeded decodeEntities from 'str' parser in HTML and
17183 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
17184 fromUTF8, for clarity.
17186 * Replaced old haskell98 module names replaced by hierarchical module
17187 names, e.g. List by Data.List. Removed haskell98 from dependencies
17188 in pandoc.cabal, and added mtl (needed for state monad). Substituted
17191 * Refactored and cleaned up character escaping in writers, using
17192 backslashEscapes and escapeStringUsing functions.
17194 * Instead of adding `\n\n` to the end of an input string in Main.hs,
17195 this is now done in the readers. This makes the libraries behave
17196 the way you'd expect from the pandoc program. Resolves Issue #10.
17198 * URLs and email addresses in autolinks are now typeset as Code.
17200 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
17201 doesn't display the whole output unless there's a line ending.
17203 * Major code cleanup in all modules, for greater consistency, concision,
17208 + Fixed several bugs (extractTagType, attribute parsing).
17209 + Remove Null blocks in lists of blocks when possible.
17210 + Allow HTML comments as raw HTML inline.
17214 + Ordered list items may no longer begin with uppercase letters, or
17215 letters greater than 'n'. (This prevents first initials and page
17216 reference, e.g. 'p. 400', from being parsed as beginning lists.)
17217 Also, numbers beginning list items may no longer end with ')',
17218 which is now allowed only after letters. Note: These changes
17219 may cause documents to be parsed differently. Users should take
17221 + Changed autoLink parsing to conform better to Markdown.pl's
17222 behavior. `<google.com>` is not treated as a link, but
17223 `<http://google.com>`, `<ftp://google.com>`, and
17224 `<mailto:google@google.com>` are.
17225 + Cleaned up handling of embedded quotes in link titles. Now these are
17226 stored as a '"' character, not as '"'.
17227 + Use lookAhead parser for the 'first pass' (looking for reference keys),
17228 instead of parsing normally, then using setInput to reset input. This
17229 yields a slight performance boost.
17230 + Fixed several bugs in smart quote recognition.
17231 + Fixed bug in indentSpaces (which didn't properly handle
17232 cases with mixed spaces and tabs).
17233 + Consolidated 'text', 'special', and 'inline' into 'inline'.
17234 + Fixed bug which allowed URL and title to be separated by multiple blank
17235 lines in links and reference keys. They can be on separate lines but
17236 can't have blank lines between them.
17237 + Correctly handle bracketed text inside inline footnotes and links,using
17238 new function inlinesInBalanced. Resolves Issue #14.
17239 + Fixed bug in footnotes: links in footnotes were not being
17240 processed. Solution: three-stage parse. First, get all the
17241 reference keys and add information to state. Next, get all the
17242 notes and add information to state. (Reference keys may be needed
17243 at this stage.) Finally, parse everything else.
17244 + Replaced named constants like 'emphStart' with literals.
17245 + Removed an extra occurrence of escapedChar in definition of inline.
17249 + Allow the URI in a RST hyperlink target to start on the line
17250 after the reference key.
17251 + Added 'try' in front of 'string', where needed, or used a different
17252 parser. This fixes a bug where ````` would not be correctly parsed as
17254 + Fixed slow performance in parsing inline literals in RST reader. The
17255 problem was that ``#`` was seen by 'inline' as a potential link or image.
17256 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
17258 + Use lookAhead instead of getInput/setInput in RST reader. Removed
17259 unneeded getState call, since lookAhead automatically saves and
17260 restores the parser state.
17261 + Allow hyperlink target URIs to be split over multiple lines, and
17262 to start on the line after the reference. Resolves Issue #7.
17263 + Fixed handling of autolinks.
17267 + Replaced `choice [(try (string ...), ...]` idiom with `oneOfStrings`,
17269 + Added clauses for tilde and caret. Tilde is `\ensuremath{\sim}`, and
17270 caret is `\^{}`, not `\^` as before.
17271 + Added parsing for `\url`.
17272 + Parse `\texttt{}` as code, provided there's nothing fancy inside.
17276 + Modified HTML writer to use the Text.XHtml library. This results
17277 in cleaner, faster code, and it makes it easier to use Pandoc in
17278 other projects, like wikis, which use Text.XHtml. Two functions are
17279 now provided, writeHtml and writeHtmlString: the former outputs an
17280 Html structure, the latter a rendered string. The S5 writer is also
17281 changed, in parallel ways (writeS5, writeS5String).
17282 + The Html header is now written programmatically, so it has been
17283 removed from the 'headers' directory. The S5 header is still
17284 needed, but the doctype and some of the meta declarations have
17285 been removed, since they are written programmatically. This change
17286 introduces a new dependency on the xhtml package.
17287 + Fixed two bugs in email obfuscation involving improper escaping
17288 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
17290 + Fixed another bug in email obfuscation: If the text to be obfuscated
17291 contains an entity, this needs to be decoded before obfuscation.
17292 Thanks to thsutton for the patch. Resolves Issue #15.
17293 + Changed the way the backlink is displayed in HTML footnotes.
17294 Instead of appearing on a line by itself, it now generally
17295 appears on the last line of the note. (Exception: when the
17296 note does not end with a Plain or Para block.) This saves space
17298 + Added automatic unique identifiers to headers:
17299 - The identifier is derived from the header via a scheme
17300 documented in README.
17301 - WriterState now includes a list of header identifiers and a table
17302 of contents in addition to notes.
17303 - The function uniqueIdentifiers creates a list of unique identifiers
17304 from a list of inline lists (e.g. headers).
17305 - This list is part of WriterState and gets consumed by blockToHtml
17306 each time a header is encountered.
17307 + Include CSS for .strikethrough class in header only if strikethrough
17308 text appears in the document.
17309 + If the 'strict' option is specified, elements that do not appear in
17310 standard markdown (like definition lists) are passed through as
17312 + Simplified treatment of autolinks, using pattern matching instead of
17317 + Links in markdown output are now printed as inline links by default,
17318 rather than reference links. A --reference-links option has been added
17319 that forces links to be printed as reference links. Resolves Issue #4.
17320 + Use autolinks when possible. Instead of `[site.com](site.com)`,
17325 + Rewrote to use the State monad. The preamble now includes only those
17326 packages that are actually required, given the document's content.
17327 Thus, for example, if strikeout is not used, ulem is not required.
17328 Modified LaTeXHeader accordingly.
17329 + Modified LaTeX writer to insert `\,` between consecutive quotes.
17330 + Removed unused function tableRowColumnWidths.
17331 + Simplified code for escaping special characters.
17332 + Leave extra blank line after `\maketitle`.
17333 + Include empty `\author{}` when no author specified to avoid LaTeX
17335 + Include fancyvrb code in header only if needed -- that is, only
17336 if there is actually code in a footnote.
17337 + Use `\url{}` for autolinks.
17338 + Include [mathletters] option in ucs package, so that basic unicode
17339 Greek letters will work correctly.
17341 * RST writer: Force blank line before lists, so that sublists will
17342 be handled correctly.
17344 * Docbook writer: Fixed a bug: email links with text, like
17345 [foo](me@bar.baz), were being incorrectly treated as autolinks.
17347 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
17348 Text.Pandoc.Shared.
17350 * Text.Pandoc.Shared:
17352 + Added defaultWriterOptions.
17353 + Added writerTableOfContents to WriterOptions.
17354 + Added writerIgnoreNotes option to WriterOptions. This is needed
17355 for processing header blocks for a table of contents, since notes on
17356 headers should not appear in the TOC.
17357 + Added prettyprinting for native Table format.
17358 + Removed some unneeded imports.
17359 + Moved escape and nullBlock parsers from
17360 Text.ParserCombinators.Pandoc, since the latter is for
17361 general-purpose parsers that don't depend on Text.Pandoc.Definition.
17362 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
17363 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
17364 writer, because HTML writer now uses these in constructing a table
17366 + Added clauses for new inline elements (Strikeout, Superscript,
17367 Subscript) to refsMatch.
17368 + Removed backslashEscape; added new functions escapeStringUsing and
17370 + Moved failIfStrict from markdown reader, since it is now used also
17371 by the HTML reader.
17372 + Added a 'try' to the definition of indentSpaces.
17373 + In definition of 'reference', added check to make sure it's not a note
17375 + Added functions: camelCaseToHyphenated, toRomanNumeral,
17376 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
17377 charsInBalanced', withHorizDisplacement, romanNumeral
17378 + Fixed a bug in the anyLine parser. Previously it would parse an empty
17379 string "", but it should fail on an empty string, or we get an error
17380 when it is used inside "many" combinators.
17381 + Removed followedBy' parser, replacing it with the lookAhead parser from
17383 + Added some needed 'try's before multicharacter parsers, especially in
17385 + Removed the 'try' from the 'end' parser in 'enclosed', so that
17386 'enclosed' behaves like 'option', 'manyTill', etc.
17387 + Added lineClump parser, which parses a raw line block up to and
17388 including any following blank lines.
17389 + Renamed parseFromStr to parseFromString.
17390 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
17391 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
17393 + Removed unneeded 'try' in blanklines.
17394 + Removed endsWith function and rewrote calling functions to use
17395 isSuffixOf instead.
17396 + Added >>~ combinator.
17397 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
17400 * Refactored runtests.pl; added separate tests for tables.
17404 + Added -asxhtml flag to tidy in html2markdown. This will
17405 perhaps help the parser, which expects closing tags.
17406 + Modified markdown2pdf to run pdflatex a second time if --toc or
17407 --table-of-contents was specified; otherwise the table of
17408 contents won't appear.
17409 + Modified markdown2pdf to print a helpful message if the 'ulem'
17410 LaTeX package is required and not found.
17412 * Changes to build process:
17414 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
17416 + Removed cabalize and Pandoc.cabal.in. The repository now contains
17417 pandoc.cabal itself.
17418 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
17419 likes the cabal file to have the same name as the tarball.
17420 + Expanded and revised the package description in pandoc.cabal.
17421 Revised the package synopsis.
17422 + The tarball built by 'make tarball' now contains files built from
17423 templates (including man pages and shell scripts), so pandoc can
17424 be built directly using Cabal tools, without preprocessing.
17425 + Executable binaries are now stripped before installing.
17426 + Man pages are now generated from markdown sources, using pandoc's
17428 + Use HTML version of README (instead of RTF) in Mac OS X installer.
17429 + Instead of testing for the existence of a pandoc symlink in build-exec,
17434 + Updated README and man pages with information on new features.
17435 + Updated INSTALL instructions with some useful clarifications and
17437 + Updated web content.
17439 * Added FreeBSD port.
17445 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
17446 libghc6-xhtml-dev. Removed libghc6-html-dev.
17447 + Suggest texlive-latex-recommended | tetex-extra instead of
17448 tetex-bin. This brings in fancyvrb and unicode support.
17451## pandoc 0.3 (2007-01-05)
17453 [ John MacFarlane ]
17455 * Changes in pandoc options:
17457 + Allow options to follow or precede arguments.
17458 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
17459 + Added '--strict' option.
17460 + Added '-o/--output' option.
17461 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
17462 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
17463 error conditions. This is helpful for writing wrappers.
17464 + Added copyright message to '-v' output, modeled after FSF messages.
17465 + Reformatted usage message so that it doesn't wrap illegibly.
17466 + Removed extra blanks after '-h' and '-D' output.
17468 * Added docbook writer.
17470 * Added implicit setting of default input and output format based
17471 on input and output filename extensions. These defaults are
17472 overridden if explicit input and output formats are specified using
17473 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
17476 * Allow ordered list items to begin with (single) letters, as well
17477 as numbers. The list item marker may now be terminated either by
17478 '.' or by ')'. This extension to standard markdown is documented
17481 * Revised footnote syntax. (See README for full details.) The
17482 '[^1]' format now standard in markdown extensions is supported,
17483 as are inline footnotes with this syntax: `^[My note.]`.
17484 The earlier footnote syntax `^(1)` is no longer supported.
17486 * Improved HTML representation of footnotes. All footnotes
17487 are now auto-numbered and appear in an ordered list at the
17488 end of the HTML document. Since the default appearance is now
17489 acceptable, the old footnote styles have been removed from the
17494 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
17495 These readers ran 'runParser' on processed chunks of text to handle
17496 embedded block lists in lists and quotation blocks. But then
17497 any changes made to the parser state in these chunks was lost,
17498 as the state is local to the parser. So, for example, footnotes
17499 didn't work in quotes or list items. The fix: instead of calling
17500 runParser on some raw text, use setInput to make it the input, then
17501 parse it, then use setInput to restore the input to what it was
17502 before. This is shorter and more elegant, and it fixes the problem.
17503 + Fixed bug in notFollowedBy' combinator (adding 'try' before
17504 'parser'). Adjusted code that uses this combinator accordingly.
17505 + Fixed bug in RTF writer that caused improper indentation on
17506 footnotes occurring in indented blocks like lists.
17507 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
17508 and date are parsed correctly. Everything else in the preamble
17510 + Modified escapedChar in LaTeX reader to allow a `\` at the end of a
17511 line to count as escaped whitespace.
17512 + Modified LaTeX reader to produce inline links rather than reference
17513 links. Otherwise, links in footnotes aren't handled properly.
17514 + Fixed handling of titles in links in Markdown reader, so that
17515 embedded quotation marks are now handled properly.
17516 + Fixed Markdown reader's handling of embedded brackets in links.
17517 + Fixed Markdown reader so that it only parses bracketed material
17518 as a reference link if there is actually a corresponding key.
17519 + Revised inline code parsing in Markdown reader to conform to
17520 markdown standard. Now any number of `s can begin inline code,
17521 which will end with the same number of `s. For example, to
17522 have two backticks as code, write ``` `` ```. Modified Markdown
17523 writer accordingly.
17524 + Fixed bug in text-wrapping routine in Markdown and RST writers.
17525 Now LineBreaks no longer cause wrapping problems.
17526 + Supported hexadecimal numerical entity references as well as
17528 + Fixed bug in Markdown reader's handling of underscores and other
17529 inline formatting markers inside reference labels: for example,
17530 in '[A_B]: /url/a_b', the material between underscores was being
17531 parsed as emphasized inlines.
17532 + Changed Markdown reader's handling of backslash escapes so that
17533 only non-alphanumeric characters can be escaped. Strict mode
17534 follows Markdown.pl in only allowing a select group of punctuation
17535 characters to be escaped.
17536 + Modified HTML reader to skip a newline following a `<br>` tag.
17537 Otherwise the newline will be treated as a space at the beginning
17540 * Made handling of code blocks more consistent. Previously, some
17541 readers allowed trailing newlines, while others stripped them.
17542 Now, all readers strip trailing newlines in code blocks. Writers
17543 insert a newline at the end of code blocks as needed.
17545 * Modified readers to make spacing at the end of output more consistent.
17547 * Minor improvements to LaTeX reader:
17549 + `\thanks` now treated like a footnote.
17550 + Simplified parsing of LaTeX command arguments and options.
17551 commandArgs now returns a list of arguments OR options (in
17552 whatever order they appear). The brackets are included, and
17553 a new stripFirstAndLast function is provided to strip them off
17554 when needed. This fixes a problem in dealing with \newcommand
17555 and \newenvironment.
17557 * Revised RTF writer:
17559 + Default font is now Helvetica.
17560 + An `\f0` is added to each `\pard`, so that font resizing works
17563 * Moved handling of "smart typography" from the writers to the Markdown
17564 and LaTeX readers. This allows great simplification of the writers
17565 and more accurate smart quotes, dashes, and ellipses. DocBook can
17566 now use `<quote>`. The '--smart' option now toggles an option in
17567 the parser state rather than a writer option. Several new kinds
17568 of inline elements have been added: Quoted, Ellipses, Apostrophe,
17571 * Changes in HTML writer:
17573 + Include title block in header even when title is null.
17574 + Made javascript obfuscation of emails even more obfuscatory,
17575 by combining it with entity obfuscation.
17577 * Changed default ASCIIMathML text color to black.
17581 + Added --strip-trailing-cr option to diff in runtests.pl, for
17582 compatibility with Windows.
17583 + Added regression tests with footnotes in quote blocks and lists.
17585 * Makefile changes:
17587 + osx-pkg target creates a Mac OS X package (directory). New osx
17588 directory contains files needed for construction of the package.
17589 + osx-dmg target creates a compressed disk image containing the package.
17590 + win-pkg target creates Windows binary package.
17591 + tarball target creates distribution source tarball.
17592 + website target generates pandoc's website automatically, including
17593 demos. New 'web' directory contains files needed for construction
17594 of the website (which will be created as the 'pandoc' subdirectory
17596 + Makefile checks to see if we're running Windows/Cygwin; if so,
17597 a '.exe' extension is added to each executable in EXECS.
17599 * Removed all wrappers except markdown2pdf and html2markdown.
17601 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
17602 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
17603 option and disables other options.
17605 * Added code to html2markdown that tries to determine the character
17606 encoding of an HTML file, by parsing the "Content-type" meta tag.
17608 + If the encoding can't be determined, then if the content is local,
17609 the local encoding is used; if it comes from a URL, UTF-8 is used
17611 + If input is from STDIN, don't try to determine character encoding.
17612 + Encoding can be specified explicitly using '-e' option.
17614 * Improved warning messages in wrappers:
17616 + Print warning if iconv not available
17617 + More user-friendly error messages in markdown2pdf, when
17622 + Renamed 'Text/Pandoc/HtmlEntities' module to
17623 'Text/Pandoc/Entities'. Also changed function names so as
17624 not to be HTML-specific.
17625 + Refactored SGML string escaping functions from HTML and Docbook
17626 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
17627 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
17629 + Removed splitBySpace and replaced it with a general, polymorphic
17631 + Refactored LaTeX reader for clarity (added isArg function).
17632 + Converted some CR's to LF's in src/ui/default/print.css.
17633 + Added license text to top of source files.
17634 + Added module data for haddock to source files.
17635 + Reformatted code for consistency.
17637 * Rewrote documentation and man pages. Split README into INSTALL
17640 * Split LICENSE into COPYING and COPYRIGHT.
17642 * Removed TODO, since we now maintain ToDo on the wiki.
17644 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
17649 * Revamped build process to conform to debian standards and created
17650 a proper debian package. Closes: #391666.
17652 * Modified build process to support GHC 6.6.
17654 + The package can still be compiled using GHC 6.4.2, though because
17655 of dependencies the "make deb" target works only with GHC 6.6+.
17656 + The script 'cabalize' is used to create an appropriate
17657 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
17660 * Refactored template processing (fillTemplates.pl).
17662 * Modified wrapper scripts to make them more robust and portable.
17663 To avoid code duplication and ensure consistency, wrappers are
17664 generated via a templating system from templates in src/wrappers.
17666 + Wrappers now accept multiple filenames, when appropriate.
17667 + Spaces and tabs allowed in filenames.
17668 + getopts shell builtin is used for portable option parsing.
17669 + Improved html2markdown's web grabber code, making it more robust,
17670 configurable and verbose. Added '-e', '-g' options.
17673## pandoc 0.2 (2006-08-14)
17675 * Fixed unicode/utf-8 translation
17677## pandoc 0.1 (2006-08-14)
17679 * 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