1# Revision history for pandoc
3## pandoc 2.14.0.3 (2021-06-22)
5 * Text.Pandoc.MediaBag `insertMediaBag`: ensure we get a sane mediaPath
6 for URLs (#7391). In earlier 2.14.x versions, we'd get
7 incorrect paths for resources downloaded from URLs when the
8 media are extracted (including in PDF production).
9 * Text.Pandoc.Parsing: improve `emailAddress` (#7398).
10 Previously the parser would accept characters in domains
11 that are illegal in domains, and this sometimes caused it
12 to gobble bits of the following text.
13 * txt2tags reader: modify the email address parser so
14 it still includes form parameters, even after the change to
15 `emailAddress` in Text.Pandoc.Parsing.
16 * Text.Pandoc.Readers.Metadata: Fix regression with comment-only YAML
17 metadata blocks (#7400).
18 * reveal.js writer and template: better handling of options. Previously
19 it was impossible to specify false values for options that default to
20 true (e.g. `center`); setting the option to false just caused the portion
21 of the template setting the option to be omitted. Now we prepopulate
22 all the variables with their default values, including them all
23 unconditionally and allowing them to be overridden.
24 * Markdown writer: Fix regression in code blocks with attributes (#7397).
25 Code blocks with a single class but nonempty attributes
26 were having attributes drop as a result of #7242.
28 + Add strut at end of minipage if it contains line breaks.
29 Without them, the last line is not as tall as it should be in
31 + Always use a minipage for cells with line breaks, when
32 width information is available (#7393). Otherwise the way we treat them
33 can lead to content that overflows a cell.
34 + Use `\strut` instead of `~` before `\\` in empty line.
35 * Use lts-18.0 stack resolver.
36 * Require skylighting 0.10.5.2 (adding support for Swift).
37 * Require commonmark 0.2.1.
38 * Rephrase section on unsafe HTML in manual.
41## pandoc 2.14.0.2 (2021-06-13)
43 * Fix MediaBag regressions (#7345). iIn the 2.14 release `--extract-media`
44 stopped working as before; there could be mismatches between the
45 paths in the rendered document and the extracted media.
46 This patch makes several changes that restore the earlier behavior
47 (while keeping the same API). The `mediaPath` in 2.14 was always
48 constructed from the SHA1 hash of the media contents. Now, we
49 preserve the original path unless it's an absolute path or contains
50 `..` segments (in that case we use a path based on the SHA1 hash of
53 In Text.Pandoc.MediaBag, `mediaDirectory` and `mediaItems` now use the
54 `mediaPath`, rather than the mediabag key, for the first component of the
55 tuple. This makes more sense, I think, and fits with the documentation of
56 these functions; eventually, though, we should rework the API so that
57 `mediaItems` returns both the keys and the MediaItems.
59 In Text.Pandoc.Class.IO, rewriting of source paths in `extractMedia` has
62 In Text.Pandoc.Class.PandocMonad, `fillMediaBag` has been modified so that
63 it doesn't modify image paths (that was part of the problem in #7345).
65 We now do path normalization (e.g. `\` separators on Windows) in
70 + Text.Pandoc.PDF: Fix regression in 2.14 for generation of PDFs with
72 + Only print relevant part of environment on `--verbose`. Since
73 `--verbose` output might be put in an issue, we want to avoid
74 spilling out secrets in environment variables.
76 * Markdown reader: fix pipe table regression in 2.11.4 (#7343).
77 Previously pipe tables with empty headers (that is, a header
78 line with all empty cells) would be rendered as headerless
79 tables. This broke in 2.11.4. The fix here is to produce an
80 AST with an empty table head when a pipe table has all empty
83 * LaTeX reader: don't allow optional `*` on symbol control sequences
84 (#7340). Generally we allow optional starred variants of LaTeX commands
85 (since many allow them, and if we don't accept these explicitly,
86 ignoring the star usually gives acceptable results). But we
87 don't want to do this for `\(*\)` and similar cases.
89 * Docx reader: handle absolute URIs in Relationship Target (#7374).
91 * Docx writer: fix handling of empty table headers (Albert Krewinkel,
92 #7369). A table header which does not contain any cells is now treated as
95 * LaTeX writer: Fix regression in table header position (#7347).
96 In recent versions the table headers were no longer bottom-aligned
97 (if more than one line). This patch fixes that by using minipages
98 for table headers in non-simple tables.
102 + Do not use simple class for fenced-divs (Jan Tojnar, amends #7242.)
103 + Do not throw away attributes when `Ext_attributes` is enabled.
104 `Ext_attributes` covers at least the following:
105 `Ext_fenced_code_attributes`, `Ext_header_attributes`,
106 `Ext_inline_code_attributes`, `Ext_link_attributes`.
110 + Allow `pipe_tables` to be disabled for commonmark formats
111 (`commonmark_x`, `gfm`) (#7375).
112 + Re-use functions from Text.Pandoc.Markdown.Inline (Jan Tojnar).
114 * DocBook writer: Remove non-existent admonitions (Jan Tojnar).
115 `attention`, `error` and `hint` are reStructuredText specific.
117 * HTML writer: Don't omit width attribute on div (#7342).
119 * Text.Pandoc.MIME, `extensionFromMimeType`: add a few special cases.
120 When we do a reverse lookup in the MIME table, we just get the
121 last match, so when the same mime type is associated with several
122 different extensions, we sometimes got weird results, e.g. `.vs`
123 for `text/plain`. These special cases help us get the most standard
124 extensions for mime types like `text/plain`.
126 * Lua utils: fix handling of table headers in `from_simple_table` (Albert
127 Krewinkel, #7369). Passing an empty list of header cells now results
128 in an empty table header.
130 * Text.Pandoc.Citeproc:
132 + Avoid duplicate classes and attributes on references div.
133 + Fix regression in citeproc processing (#7376). If inline
134 references are used (in the metadata `references` field), we
135 should still only include in the bibliography items that are
136 actually cited (unless `nocite` is used).
138 * Require citeproc 0.4.0.1. This fixes a bug which led to doubled
139 "et al." in some (rare) circumstances.
143 + Mention GladTeX for EPUB export (Sebastian Humenda).
144 This updates the manual and the web site about the GladTeX usage.
145 + More details and a useful link for YAML syntax.
147 * CONTRIBUTING.md: update modules overview (Albert Krewinkel).
149 * using-the-pandoc-api.md: switch from String to Text (Albert Krewinkel).
152## pandoc 2.14.0.1 (2021-06-01)
154 * Commonmark reader: Fix regression in 2.14 with YAML metdata block parsing,
155 which could cause the document body to be omitted after metadata (#7339).
157 * HTML reader: fix column width regression in 2.14 (#7334).
158 Column widths specified with a style attribute were off by a factor of 100.
160 * Markdown reader: in `rebasePaths`, check for both Windows and Posix
161 absolute paths. Previously Windows pandoc was treating
162 `/foo/bar.jpg` as non-absolute.
164 * Text.Pandoc.Logging: In rendering `LoadedResource`, use relative paths.
166 * Docx writer: fix regression on captions (#7328). The "Table Caption"
167 style was no longer getting applied. (It was overwritten by "Compact.")
169 * Use commonmark-extensions 0.2.1.2
171## pandoc 2.14 (2021-05-28)
173 * Change reader types, allowing better tracking of source positions
174 [API change]. Previously, when multiple file arguments were provided,
175 pandoc simply concatenated them and passed the contents to the readers,
176 which took a Text argument. As a result, the readers had no way of knowing
177 which file was the source of any particular bit of text. This meant that
178 we couldn't report accurate source positions on errors or include accurate
179 source positions as attributes in the AST. More seriously, it meant that
180 we couldn't resolve resource paths relative to the files containing them
181 (see e.g. #5501, #6632, #6384, #3752).
183 * Add `rebase_relative_paths` extension (#3752). When enabled, this
184 extension rewrites relative image and link paths by prepending
185 the (relative) directory of the containing file. This
186 behavior is useful when your input sources are split
187 into multiple files, across several directories, with files
188 referring to images stored in the same directory. The
189 extension can be enabled for all markdown and commonmark-based formats.
191 * Add Text.Pandoc.Sources (exported module), with a `Sources` type and a
192 `ToSources` class. A `Sources` wraps a list of `(SourcePos, Text)` pairs
193 [API change]. A parsec `Stream` instance is provided for `Sources`. The
194 module also exports versions of parsec's `satisfy` and other Char parsers
195 that track source positions accurately from a `Sources` stream (or any
196 instance of the new `UpdateSourcePos` class).
198 * Text.Pandoc.Parsing
200 + Export the modified Char parsers defined in Text.Pandoc.Sources
201 instead of the ones parsec provides. Modified parsers to use a
202 `Sources` as stream [API change].
203 + Improve include file functions [API change]. Remove old
204 `insertIncludedFileF`. Give `insertIncludedFile` a more general type,
205 allowing it to be used where `insertIncludedFileF` was.
206 + Add parameter to the `citeKey` parser from
207 Text.Pandoc.Parsing, which controls whether the `@{..}`
208 syntax is allowed [API change].
210 * Text.Pandoc.Error: Modified the constructor `PandocParsecError` to take a
211 `Sources` rather than a `Text` as first argument, so parse error locations
212 can be accurately reported.
214 * Fix source position reporting for YAML bibliographies (#7273).
216 * Issue error message when reader or writer format is malformed
217 (#7231). Previously we exited with an error status but (due to a bug)
220 * Smarter smart quotes (#7216, #2103). Treat a leading `"` with no
221 closing `"` as a left curly quote. This supports the practice, in
222 fiction, of continuing paragraphs quoting the same speaker without an
223 end quote. It also helps with quotes that break over lines in line blocks.
227 + Use MetaInlines not MetaBlocks for multimarkdown metadata fields.
228 This gives better results in converting to e.g. pandoc markdown.
229 + Implement curly-brace syntax for Markdown citation keys (#6026).
230 The change provides a way to use citation keys that contain
231 special characters not usable with the standard citation key syntax.
232 Example: `@{foo_bar{x}'}` for the key `foo_bar{x}`. It also allows
233 separating citation keys from immediately following text, e.g. `@{foo}A`.
237 + Seek include files in the directory of the file
238 containing the include directive, as RST requires (#6632).
239 + Use `insertIncludedFile` from Text.Pandoc.Parsing
240 instead of reproducing much of its code.
242 * Org reader: Resolve org includes relative to the directory containing the
243 file containing the INCLUDE directive (#5501).
245 * ODT reader: Treat tabs as spaces (#7185, niszet).
249 + Add handling of vml image objects (#7257, mbrackeantidot).
250 + Support new table features (Emily Bourke, #6316): column
251 spans, row spans, multiple header rows, table description
252 (parsed as a simple caption), captions, column widths.
256 + Improved siunitx support (#6658, #6620).
257 + Better support for `\xspace` (#7299).
258 + Improve parsing of `\def` macros. We previously set "verbatim mode"
259 even for parsing the initial `\def`; this caused problems
260 for `\def` nested inside another `\def`.
261 + Implement `\newif`.
263 * ConTeXt writer: improve ordered lists (#5016, Denis Maier).
264 Change ordered list from itemize to enumerate. Add new
265 itemgroup for ordered lists. Remove manual insertion of
266 width attributes. Use tabular figures in ordered list
271 + Don't fail on unmatched closing "script" tag (Albert Krenkel, #7282).
272 + Keep h1 tags as normal headers (#2293, Albert Krewinkel).
273 The tags `<title>` and `<h1 class="title">` often contain the same
274 information, so the latter was dropped from the document. However, as
275 this can lead to loss of information, the heading is now always
276 retained. Use `--shift-heading-level-by=-1` to turn the `<h1>`
277 into the document title, or a filter to restore the previous behavior.
278 + Handle relative lengths (e.g. `2*`) in HTML column widths (#4063).
279 See <https://www.w3.org/TR/html4/types.html#h-6.6>.
281 * DocBook/JATS readers:
283 + Fix mathml regression caused by the switch in XML libraries (#7173).
284 + Fix "phrase" in DocBook: take classes from "role" not "class" (#7195).
286 * DocBook reader: ensure that first and last names are separated (#6541).
288 * Jira reader (Albert Krewinkel, #7218):
290 + Support "smart" links: `[alias|https://example.com|smart-card]` syntax.
291 + Allow spaces and most unicode characters in attachment links.
292 + No longer require a newline character after `{noformat}`.
293 + Only allow URI path segment characters in bare links.
294 + The `file:` schema is no longer allowed in bare links; these
297 * Plain writer: handle superscript unicode minus (#7276).
301 + Better handling of line breaks in simple tables (#7272).
302 Now we also handle the case where they're embedded in other elements,
304 + For beamer output, support `exampleblock` and `alertblock` (#7278).
305 A block will be rendered as an `exampleblock` if the heading
306 has class `example` and an `alertblock` if it has class `alert`.
307 + Separate successive quote chars with thin space (#6958,
308 Albert Krewinkel). Successive quote characters are separated with
309 a thin space to improve readability and to prevent unwanted ligatures.
310 Detection of these quotes sometimes had failed if the second quote
311 was nested in a span element.
312 + Separate successive quote chars with thin space (#6958, Albert
315 * EPUB Writer: Fix belongs-to-collection XML id choice (#7267, nuew).
316 The epub writer previously used the same XML id for both the book
317 identifier and the epub collection. This causes an error on epubcheck.
319 * BibTeX/BibLaTeX writer: Handle `annote` field (#7266).
321 * ZimWiki writer: allow links and emphasis in headers (#6605,
326 + Support blank lines in line blocks (#6564, Albert Krewinkel,
327 thanks to @denismaier).
328 + Use span identifiers as reference anchors (#7246, Albert Krewinkel).
332 + Keep attributes from code nested below `pre` tag (#7221,
333 Albert Krewinkel). If a code block is defined with `<pre><code
334 class="language-x">…</code></pre>`, where the `<pre>` element has no
335 attributes, then the attributes from the `<code>` element are used
336 instead. Any leading `language-` prefix is dropped in the code's
337 `class` attribute are dropped to improve syntax highlighting.
338 + Ensure headings only have valid attribs in HTML4 (#5944, Albert
340 + Parse `<header>` as a Div (Albert Krewinkel).
344 + Inline latex envs need newlines (#7252, tecosaur).
345 As specified in https://orgmode.org/manual/LaTeX-fragments.html, an
346 inline \begin{}...\end{} LaTeX block must start on a new line.
347 + Use LaTeX style maths deliminators (#7196, tecosaur).
349 * JATS writer (Albert Krewinkel):
351 + Use either styled-content or named-content for spans (#7211).
352 If the element has a content-type attribute, or at least one class,
353 then that value is used as `content-type` and the span is put inside
354 a `<named-content>` element. Otherwise a `<styled-content>` element
356 + Reduce unnecessary use of `<p>` elements for wrapping (#7227).
357 The `<p>` element is used for wrapping in cases were the contents
358 would otherwise not be allowed in a certain context. Unnecessary
359 wrapping is avoided, especially around quotes (`<disp-quote>` elements).
360 + Convert spans to `<named-content>` elements (#7211). Spans with
361 attributes are converted to `<named-content>` elements instead of
362 being wrapped with `<milestone-start/>` and `<milestone-end>`
363 elements. Milestone elements are not allowed in documents using the
364 articleauthoring tag set, so this change ensures the creation of valid
366 + Add footnote number as label in backmatter (#7210). Footnotes in the
367 backmatter are given the footnote's number as a label. The
368 articleauthoring output is unaffected from this change, as footnotes
369 are placed inline there.
370 + Escape disallows chars in identifiers. XML identifiers must start
371 with an underscore or letter, and can contain only a limited set
372 of punctuation characters. Any IDs not adhering to these rules are
373 rewritten by writing the offending characters as `Uxxxx`,
374 where `xxxx` is the character's hex code.
376 * Jira writer: use `{color}` when span has a color attribute
377 (Albert Krewinkel, tarleb/jira-wiki-markup#10).
381 + Autoset table width if no column has an explicit width (Albert
383 + Extract Table handling into separate module (Albert Krewinkel).
384 + Support colspans and rowspans in tables (Albert Krewinkel, #6315).
385 + Support multirow table headers (Albert Krewinkel).
386 + Improve integration of settings from reference.docx (#1209).
387 This change allows users to create a reference.docx that
388 sets `w:proofState` for spelling or grammar to `dirty`,
389 so that spell/grammar checking will be triggered on the
391 + Copy over more settings from reference.docx (#7240). From settings.xml
392 in the reference-doc, we now include: `zoom`, `embedSystemFonts`,
393 `doNotTrackMoves`, `defaultTabStop`, `drawingGridHorizontalSpacing`,
394 `drawingGridVerticalSpacing`, `displayHorizontalDrawingGridEvery`,
395 `displayVerticalDrawingGridEvery`, `characterSpacingControl`,
396 `savePreviewPicture`, `mathPr`, `themeFontLang`, `decimalSymbol`,
397 `listSeparator`, `autoHyphenation`, `compat`.
398 + Set zoom to 100% by default in settings.xml.
399 + Align math options more with current Word defaults (e.g. Cambria Math
401 + Remove `rsid`s from default settings.xml. Word will add these
402 when revisions are made.
404 * Ms writer: Handle tables with multiple paragraphs (#7288).
405 Previously they overflowed the table cell width. We now set line lengths
406 per-cell and restore them after the table has been written.
410 + Use cleaner braceless syntax for code blocks with a
411 single class (#7242, Jan Tojnar).
412 + Add quotes properly in markdown YAML metadata fields (#7245).
413 This fixes a bug, which caused the writer to look at the *last*
414 rather than the *first* character in determining whether quotes
415 were needed. So we got spurious quotes in some cases and
416 didn't get necessary quotes in others.
417 + Use `@{..}` syntax for citations when needed.
418 + Use fewer unneeded escapes for `#` (see #6259).
419 + Improve escaping of `@`. We need to escape literal `@` before
420 `{` because of the new citation syntax.
422 * Commonmark writer: Use backslash escapes for `<` and `|`...
423 instead of entities (#7208).
425 * Powerpoint writer: allow `monofont` to be specified in metadata
430 + Use non-starred names for xcolor color names (#6109).
431 This should make svgnames and x11names work properly.
432 + Fix bad vertical spacing after bibliography (#7234, badumont).
433 + List of figures before list of tables (#7235, Julien Dutant).
434 + Move CSL macro definitions before header-includes so they can be
436 + Improve treatment of CSL `entry-spacing` (#7296).
437 Previously with the default template settings (`indent` variable
438 not set), we would get interparagraph spaces separating bib
439 entries even with `entry-spacing="0"`. On the other hand,
440 setting `entry-spacing="2"` gave ridiculously large spacing.
441 This change makes the spacing caused by `entry-spacing` a multiple
442 of `\parskip` by default, which gives aesthetically reasonable
443 output. Those who want a larger or smaller unit (e.g. because
444 they use `indent` which sets `\parskip` to 0) may
445 `\setlength{\cslentryspacingunit}{10pt}` in header-includes
446 to override the defaults.
447 + Move title, author, date up to top of preamble (#7295).
448 This allows header-includes to use them, and puts them
449 in a position where you can see them immediately.
450 + Define commands for zero width non-joiner character
451 (#6639, Albert Krewinkel). The zero-width non-joiner character
452 is used to avoid ligatures (e.g. in German).
456 + Define `enumerate` itemgroup (#5016, Denis Maier).
457 + List of figures before list of tables (#7235, Julien Dutant).
459 * reveal.js template:
461 + Support `toc-title` (#7171, Florian Kohrt).
462 + Use `hash: true` by default rather than `history: true` (#6968).
464 * HTML-based slide shows: add support for `institute` (#7289, Thomas
467 * Text.Pandoc.Extensions: Add constructor `Ext_rebase_relative_paths` to
468 `Extensions` [API change].
470 * Text.Pandoc.XML.Light: add Eq, Ord instances for Content,
471 Element, Attr, CDataKind [API change].
473 * Text.Pandoc.MediaBag:
475 + Change type to use a `Text` key instead of `[FilePath]`.
476 We normalize the path and use `/` separators for consistency.
477 + Export `MediaItem` type [API change].
478 + Change `MediaBag` type to a map from Text to MediaItem [API change].
479 + `lookupMedia` now returns a `MediaItem` [API change].
480 + Change `insertMedia` so it sets the `mediaPath` to a filename based on
481 the SHA1 hash of the contents. This will be used when contents
484 * Text.Pandoc.Class.PandocMonad:
486 + Remove `fetchMediaResource` [API change]. Use `fetchItem` to get
487 resources in `fillMediaBag`.
488 + Add informational message in `downloadOrRead` indicating what path
489 local resources have been loaded from.
491 * Text.Pandoc.Logging:
493 + Remove single quotes around paths in messages.
494 + Add LoadedResource constructor to LogMessage [API change].
495 This is for INFO-level messages telling where image data has been
496 loaded from. (This can vary because of the resource path.)
498 * Text.Pandoc.Asciify: simplify code and export `toAsciiText` [API change].
499 Instead of encoding a giant (and incomplete) map, we now
500 just use unicode-transforms to normalize the text to
501 a canonical decomposition, and manipulate the result.
503 * App: allow tabs expansion even if file-scope is used (Albert Krewinkel,
504 #6709). Tabs in plain-text inputs are now handled correctly, even if
505 the `--file-scope` flag is used.
507 * Add new internal module Text.Pandoc.Writers.GridTable (Albert Krewinkel).
509 * Text.Pandoc.Highlighting: Change type of `languagesByExtension`, adding
510 a parameter for a `SyntaxMap` [API change] (Jan Tojnar, #7241).
511 Languages defined using `--syntax-definition` were not recognized by
512 `languagesByExtension`. This patch corrects that, allowing the writers
513 to see all custom definitions. The LaTeX writer still uses the default
514 syntax map, but that's okay in that context, since
515 `--syntax-definition` won't create new listings styles.
517 * Text.Pandoc.Citeproc:
519 + Ensure that CSL-related attributes are passed on to a Div with id
520 'refs'. Otherwise things like `entry-spacing` won't work when
522 + Use metadata's `lang` for the lang parameter of citeproc, overriding
524 + Recognize locators spelled with a capital letter (#7323).
525 + Add a comma and a space in front of the suffix if it doesn't start
526 with space or punctuation (#7324).
527 + Don't detect math elements as locators (#7321).
529 * Remove Text.Pandoc.BCP47 module [API change]. Use types and functions
530 from UnicodeCollation.Lang instead. This is a richer implementation
533 * Text.Pandoc.Shared:
535 + Fix regression in grid tables for wide characters (#7214).
536 In the translation from String to Text, a char-width-sensitive
537 `splitAt'` was dropped. This commit reinstates it and uses it to make
538 `splitTextByInstances` char-width sensitive.
539 + Add `getLang` (formerly in the now-removed BCP47) [API change].
541 * Text.Pandoc.SelfContained: use `application/octet-stream`
542 for unknown mime types instead of halting with an error (#7202).
544 * Lua filters: respect Inlines/Blocks filter functions in `pandoc.walk_*`
547 * Add text as build-depend for trypandoc (#7193, Roman Beránek).
549 * Bump upper-bounds for network-uri, time, attoparsec.
553 * Use texmath 0.12.3.
555 * Use jira-wiki-markup 1.3.5 (Albert Krewinkel).
557 * Require latest skylighting (fixes a bug in XML syntax highlighting).
559 * Use latest xml-conduit.
561 * Use latest commonmark, commonmark-extensions, commonmark-pandoc.
563 * Use haddock-library-1.10.0 (Albert Krewinkel).
565 * Allow compilation with base 4.15 (Albert Krewinkel).
569 + Add information about `lang` and bibliography sorting.
570 + Add info about YAML escape sequences, link to spec (#7152,
572 + Note that `institute` variable works for HTML-based slides.
573 + Update documentation on citation syntax.
574 + Add citation example for locators and suffixes (Tristan Stenner)
576 * Updated and fixed typos in documentation (Charanjit Singh,
577 Anti-Distinctlyminty, Tatiana Porras, obcat).
579 * Add instructions for installing pandoc-types before compiling filter.
581 * INSTALL: add note that parallel installations should be avoided
584 * Remove `biblatex-nussbaum.md` test. It is basically the same
585 as `biblaetx-quotes.md`.
587 * Command tests: fail if a file contains no tests---and fix a
588 test that failed in that way!
590 * Use smaller images in tests, reducing the size of the source tarball by 8 MB.
593## pandoc 2.13 (2021-03-21)
595 * Support `yaml_metadata_block` extension for `commonmark`, `gfm` (#6537).
596 This supported is a bit more limited than with pandoc's
597 `markdown`. The YAML block must be the first thing in the input,
598 and the leaf notes are parsed in isolation from the rest of
599 the document. So, for example, you can't use reference
600 links if the references are defined later in the document.
602 * Fix fallback to default partials when custom templates are used.
603 If the directory containing a template does not contain the partial,
604 it should be sought in the default templates, but this was not
605 working properly (#7164).
607 * Handle `nocite` better with `--biblatex` and `--natbib` (#4585).
608 Previously the nocite metadata field was ignored with these formats.
609 Now it populates a `nocite-ids` template variable and causes a
610 `\nocite` command to be issued.
612 * Text.Pandoc.Citeproc: apply `fixLinks` correctly (#7130). This is code
613 that incorporates a prefix like `https://doi.org/` into a following link
616 * Text.Pandoc.Shared:
618 + Remove `backslashEscapes`, `escapeStringUsing` [API change]. Replace
619 these inefficient association list lookups with more efficient escaping
620 functions in the writers that used them (for a 10-25% performance boost
621 in org, haddock, rtf, texinfo writers).
622 + Remove `ToString`, `ToText` typeclasses [API change]. These were needed
623 for the transition from String to Text, but they are no longer used and
624 may clash with other things.
625 + Simplify `compactDL`.
627 * Text.Pandoc.Parsing:
629 + Change type of `readWithM` so that it is no longer polymorphic
630 [API change]. The `ToText` class has been removed, and now that we've
631 completed the transition to Text we no longer need this to operate
633 + Remove `F` type synonym [API change]. Muse and Org were defining their
636 * Text.Pandoc.Readers.Metadata:
638 + Export `yamlMetaBlock` [API change].
639 + Make `yamlBsToMeta`, `yamlBsToRefs` polymorphic on the parser state
642 * Markdown reader: Fix regression with `tex_math_backslash` (#7155).
644 * MediaWiki reader: Allow block-level content in notes (ref) (#7145).
646 * Jira reader (Albert Krewinkel):
648 + Fixed parsing of autolinks (i.e., of bare URLs in the text).
649 Previously an autolink would take up the rest of a line, as spaces
650 were allowed characters in these items.
651 + Emoji character sequences no longer cause parsing failures. This was
652 due to missing backtracking when emoji parsing fails.
653 + Mark divs created from panels with class "panel".
655 * RST reader: fix logic for ending comments (#7134). Previously comments
656 sometimes got extended too far.
658 * DocBook writer: include Header attributes as XML attributes on
659 section (Erik Rask). Attributes with key names that are not allowed
660 as XML attributes are dropped, as are attributes with invalid values
661 and `xml:id` (DocBook 5) and `id` (DocBook 4).
665 + Make `nsid` in `abstractNum` deterministic. Previously we assigned
666 a random number, but we don't need random values, so now we just
667 assign a value based on the list marker.
668 + Use integral values for `w:tblW` (#7141).
670 * Jira writer (Albert Krewinkel):
672 + Block quotes are only rendered as `bq.` if they do not contain a
674 + Jira writer: improve div/panel handling. Include div attributes in
675 panels, always render divs with class `panel` as panels, and
676 avoid nesting of panels.
678 * HTML writer: Add warnings on duplicate attribute values.
679 This prevents emitting invalid HTML. Ultimately it would be good to
680 prevent this in the types themselves, but this is better for now.
682 * Org writer: Prevent unintended creation of ordered list items (#7132,
683 Albert Krewinkel). Adjust line wrapping if default wrapping would cause
684 a line to be read as an ordered list item.
686 * JATS templates: support 'equal-contrib' attrib for authors (Albert
687 Krewinkel). Authors who contributed equally to a paper may be marked
688 with `equal-contrib`.
690 * reveal.js template: replace JS comment with HTML (#7154, Florian Kohrt).
692 * Text.Pandoc.Logging: Add `DuplicateAttribute` constructor to `LogMessage`.
695 * Use `-j4` for linux release build. This speeds up the build dramatically
698 * cabal.project: remove ghcoptions. Move flags to top level, so they can
699 be set differently on the command line.
701 * Require latest texmath, skylighting, citeproc, jira-wiki-markup.
702 (The latest skylighting fixes a bad bug with Haskell syntax highlighting.)
703 Narrow version bounds for texmath, skylighting, and citeproc, since
704 the test output depend on them.
706 * Use doclayout 0.3.0.2. This significantly reduces the time and memory
707 needed to compile pandoc.
709 * Use `foldl'` instead of `foldl` everywhere.
711 * Update bounds for random (#7156, Alexey Kuleshevich).
713 * Remove uses of some partial functions.
715 * Don't bake in a larger stack size for the executable.
719 + Use `getExecutablePath` from base, avoiding the dependency on
721 + Factor out `setupEnvironment` in Helpers, to avoid code duplication.
722 + Fix finding of data files by setting teh `pandoc_datadir` environment
723 variable when we shell out to pandoc. This avoids the need to use
724 `--data-dir` for the tests, which caused problems finding `pandoc.lua`
725 when compiling without the `embed_data_files` flag (#7163).
727 * Benchmark improvements:
729 + Build `+RTS -A8m -RTS` into default ghc-options for benchmark.
730 This is necessary to get accurate benchmark results; otherwise we
731 are largely measuring garbage collecting, some not related to the
733 + Allow specifying BASELINE file in 'make bench' for comparison
734 (otherwise the latest benchmark is chosen by default).
735 + Force `readFile` in benchmarks early (Bodigrim).
737 * CONTRIBUTING: suggest using a `cabal.project.local` file (#7153,
740 * Add ghcid-test to Makefile. This loads the test suite in ghcid.
743## pandoc 2.12 (2021-03-08)
745 * `--resource-path` now accumulates if specified multiple
746 times (#6152). Resource paths specified later on the command line are
747 prepended to those specified earlier. Thus,
748 `--resource-path foo --resource-path bar:baz` is equivalent to
749 `--resource-path bar:bas:foo`. (The previous behavior was
750 for the last `--resource-path` to replace all the rest.)
751 `resource-path` in defaults files behaves the same way: it
752 will be prepended to the resource path set by earlier
753 command line options or defaults files. This change
754 facilitates the use of multiple defaults files: each can
755 specify a directory containing resources it refers to
756 without clobbering the resource paths set by the others.
758 * Allow defaults files to refer to the home directory, the
759 user data directory, and the directory containing the defaults file
760 itself (#5871, #5982, #5977). In fields that expect file paths
761 (and only in these fields),
763 + `${VARIABLE}` will expand to the value of the environment variable
764 `VARIABLE` (and in particular `${HOME}` will expand to the path
765 of the home directory). A warning will be raised for undefined
767 + `${USERDATA}` will expand to the path of the user data
768 directory in force when the defaults file is being processed.
769 + `${.}` will expand to the directory containing the defaults file.
770 (This allows default files to be placed in a directory containing
771 resources they make use of.)
773 * When downloading content from URL arguments, be sensitive to
774 the character encoding (#5600). We can properly handle UTF-8 and latin1
775 (ISO-8859-1); for others we raise an error. Fall back to latin1 if
776 no charset is given in the mime type and UTF-8 decoding fails.
778 * Allow abbreviations that don't end in a period to be
779 specified using `--abbreviations` (#7124).
781 * Add new unexported module Text.Pandoc.XML.Light, as well
782 as Text.Pandoc.XML.Light.Types, Text.Pantoc.XML.Light.Proc,
783 Text.Pandoc.XML.Light.Output. (Closes #6001, #6565, #7091).
785 This module exports definitions of `Element` and `Content`
786 that are isomorphic to xml-light's, but with Text
787 instead of String. This allows us to keep most of the code in existing
788 readers that use xml-light, but avoid lots of unnecessary allocation.
790 We also add versions of the functions from xml-light's
791 Text.XML.Light.Output and Text.XML.Light.Proc that operate on our
792 modified XML types, and functions that convert xml-light types to our
793 types (since some of our dependencies, like texmath, use xml-light).
795 We export functions that use xml-conduit's parser to produce an
796 `Element` or `[Content]`. This allows existing pandoc code to use
797 a better parser without much modification.
799 The new parser is used in all places where xml-light's parser was
800 previously used. Benchmarks show a significant performance improvement
801 in parsing XML-based formats (with docbook, opml, jats, and docx
802 almost twice as fast, odt and fb2 more than twice as fast).
804 In addition, the new parser gives us better error reporting than
805 xml-light. We report XML errors, when possible, using the new
806 `PandocXMLError` constructor in `PandocError`.
808 These changes revealed the need for some changes in the tests. The
809 docbook-reader.docbook test lacked definitions for the entities it used;
810 these have been added. And the docx golden tests have been updated,
811 because the new parser does not preserve the order of attributes.
815 + Avoid expensive tree normalization step, as it is not necessary
816 with the new XML parser.
817 + Support `informalfigure` (#7079) (Nils Carlson).
821 + Use Map instead of list for Namespaces. This gives a speedup of
822 about 5-10%. With this and the XML parsing changes, the docx reader
823 is now about twice as fast as in the previous release.
827 + Small performance tweaks.
828 + Also, remove exported class `NamedTag(..)` [API change]. This was just
829 intended to smooth over the transition from String to Text and is no
831 + As a result, the functions `isInlineTag` and `isBlockTag`
832 are no longer polymorphic; they apply to a `Tag Text` [API change].
833 + Do a lookahead to find the right parser to use. This takes
834 benchmarks from 34ms to 23ms, with less allocation.
835 + Fix bad handling of empty `src` attribute in `iframe` (#7099).
836 If `src` is empty, we simply skip the `iframe`.
837 If `src` is invalid or cannot be fetched, we issue a warning
838 nd skip instead of failing with an error.
842 + Avoid tree normalization, which is no longer necessary given the
847 + Don't export `tokenize`, `untokenize` [API change]. These are internal
848 implementation details, which were only exported for testing.
849 They don't belong in the public API.
850 + Improved efficiency of the parser. With these changes the reader
851 is almost twice as fast as in the last release in our benchmarks.
852 + Code cleanup, removing some unnecessary things.
853 + Rewrite `withRaw` so it doesn't rely on fragile assumptions
854 about token positions (which break when macros are expanded)
855 (#7092). This requires the addition of `sEnableWithRaw` and
856 `sRawTokens` in `LaTeXState`, and a new combinator `disablingWithRaw`
857 to disable collecting of raw tokens in certain contexts.
858 Add `parseFromToks` to Text.Pandoc.Readers.LaTeX.Parsing.
859 Fix parsing of single character tokens so it doesn't mess
860 up the new raw token collecting. These changes slightly increase
861 allocations and have a small performance impact.
862 + Handle some bibtex/biblatex-specific commands that used to be
863 dealt with in pandoc-citeproc (#7049).
864 + Optimize `satisfyTok`, avoiding unnecessary macro expansion steps.
865 Benchmarks after this change show 2/3 of the run time and 2/3 of the
866 allocation of the Feb. 10 benchmarks.
867 + Removed `sExpanded` in state. This isn't actually needed and checking
868 it doesn't change anything.
869 + Improve `braced'`. Remove the parameter, have it parse the
870 opening brace, and make it more efficient.
871 + Factor out pieces of the LaTeX reader to make the module smaller.
872 This reduces memory demands when compiling. Created
873 Text.Pandoc.Readers.{LaTeX,Math,Citation,Table,Macro,Inline}.
874 Changed Text.Pandoc.Readers.LaTeX.SIunitx to export a command map
875 instead of individual commands.
876 + Handle table cells containing `&` in `\verb` (#7129).
878 * Make Text.Pandoc.Readers.LaTeX.Types an unexported module [API change].
882 + Improved handling of mmd link attributes in references (#7080).
883 Previously they only worked for links that had titles.
884 + Improved efficiency of the parser (benchmarks show a 15% speedup).
888 + Avoid tree normalization, which is no longer necessary with the
893 + Finer-grained errors on parse failure (#7091).
894 + Give more information if the zip container can't be unpacked.
898 + Support `task_lists` extension (Albert Krewinkel, #6336).
899 + Fix bug in org-ref citation parsing (Albert Krewinkel, #7101).
900 The org-ref syntax allows to list multiple citations separated by
901 comma. Previously commas were accepted as part of the citation id,
902 so all citation lists were parsed as one single citation.
906 + Use `getTimestamp` instead of `getCurrentTime` to fetch timestamp.
907 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
908 + RST reader: fix handling of header in CSV tables (#7064).
909 The interpretation of this line is not affected by the delim option.
913 + Modified the Doc parser to skip leading blank lines. This fixes
914 parsing of documents which start with multiple blank lines (Albert
916 + Prevent URLs within link aliases to be treated as autolinks (Albert
921 + Remove formerly exported functions that are no longer used in the
922 code base: `splitByIndices`, `splitStringByIndicies`, `substitute`,
923 and `underlineSpan` (which had been deprecated in April 2020)
925 + Export `handleTaskListItem` (Albert Krewinkel) [API change].
926 + Change `defaultUserDataDirs` to `defaultUserDataDir` [API
927 change]. We determine what is the default user data directory
928 by seeing whether the XDG directory and/or legacy
933 + BibTeX writer: use doclayout and doctemplate. This change allows
934 bibtex/biblatex output to wrap as other formats do,
935 depending on the settings of `--wrap` and `--columns` (#7068).
939 + Output `[]` if no references in input, instead of raising a
940 PandocAppError as before.
944 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
945 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
949 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
950 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds (#7093).
951 This does not suffice to fully enable reproducible in EPUB, since
952 a unique id is still being generated for each build.
953 + Support `belongs-to-collection` metadata (#7063) (Nick Berendsen).
957 + Escape special chars in reference elements (Albert Krewinkel).
958 Prevents the generation of invalid markup if a citation element
959 contains an ampersand or another character with a special meaning
964 + Use Span identifiers as anchors (Albert Krewinkel).
965 + Use `{noformat}` instead of `{code}` for unknown languages (Albert
966 Krewinkel). Code blocks which are not marked as a language supported
967 by Jira are rendered as preformatted text via `{noformat}` blocks.
971 + Adjust hypertargets to beginnings of paragraphs (#7078).
972 Use `\vadjust pre` so that the hypertarget takes you to the beginning
973 of the paragraph rather than one line down.
974 This makes a particular difference for links to citations using
975 `--citeproc` and `link-citations: true`.
976 + Change BCP47 lang tag from `jp` to `ja` (Mauro Bieg, #7047).
977 + Use function instead of map for accent lookup (should be
979 + Split the module to make it easier to compile on low-memory
980 systems: added Text.Pandoc.Writers.LaTeX.{Util,Citation,Lang}.
984 + Handle math right before digit. We insert an HTML comment to
985 avoid a `$` right before a digit, which pandoc will not recognize
987 + Split the module to make it easier to compile on low-memory
988 systems: added Text.Pandoc.Writers.Markdown.{Types,Inline}.
992 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
993 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
994 + Update default ODT style (Lorenzo). Previously, the "First paragraph"
995 style inherited from "Standard" but not from "Text body." Now
996 it is adjusted to inherit from "Text body", to avoid some ugly
997 spacing issues. It may be necessary to update a custom `reference.odt`
998 in light of this change.
1002 + Support `task_lists` extension (Albert Krewinkel, #6336).
1006 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
1007 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
1009 * JATS templates: tag `author.name` as `string-name` (Albert Krewinkel).
1010 The partitioning the components of a name into surname, given names,
1011 etc. is not always possible or not available. Using `author.name`
1012 allows to give the full name as a fallback to be used when
1013 `author.surname` is not available.
1015 * Add default templates for bibtex and biblatex, so that
1016 the variables `header-include`, `include-before`, `include-after`
1017 (or alternatively the command line options
1018 `--include-in-header`, `--include-before-body`, `--include-after-body`)
1023 + Update to iftex package (#7073) (Andrew Dunning)
1024 + Wrap url colours in braces (#7121) (Loïc Grobol).
1026 * revealjs template: Add 'center' option for vertical slide centering.
1029 * Text.Pandoc.XML: Improve efficiency of `fromEntities`.
1033 + Add exported function `getCharset` [API change].
1035 * Text.Pandoc.UTF8: change IO functions to return Text, not String
1036 [API change]. This affects `readFile`, `getContents`, `writeFileWith`,
1037 `writeFile`, `putStrWith`, `putStr`, `putStrLnWith`, `putStrLn`.
1038 `hPutStrWith`, `hPutStr`, `hPutStrLnWith`, `hPutStrLn`, `hGetContents`.
1039 This avoids the need to uselessly create a linked list of characters
1040 when emiting output.
1044 + Add `parseOptionsFromArgs` [API change, new exported function].
1045 + Add fields for CSL options to `Opt` [API change]:
1046 `optCSL`, `optbibliography`, `optCitationAbbreviations`.
1048 * Text.Pandoc.Citeproc.BibTeX
1050 + `Text.Pandoc.Citeproc.writeBibTeXString` now returns
1051 `Doc Text` instead of `Text` (#7068).
1052 + Correctly handle `pages` (= `page` in CSL) (#7067).
1053 + Correctly handle BibLaTeX `langid` (= `language` in CSL, #7067).
1054 + In BibTeX output, protect foreign titles since there's no language
1056 + Clean up BibTeX parsing (#7049). Previously there was a messy code
1057 path that gave strange results in some cases, not passing through raw
1058 tex but trying to extract a string content. This was an artefact of
1059 trying to handle some special bibtex-specific commands in the BibTeX
1060 reader. Now we just handle these in the LaTeX reader and simplify
1061 parsing in the BibTeX reader. This does mean that more raw tex will
1062 be passed through (and currently this is not sensitive to the
1063 `raw_tex` extension; this should be fixed).
1065 * Text.Pandoc.Citeproc.MetaValue
1067 + Correctly parse "raw" date value in markdown references metadata.
1068 (See jgm/citeproc#53.)
1070 * Text.Pandoc.Citeproc
1072 + Use https URLs for links (Salim B, #7122).
1076 + Add `getTimestamp` [API change]. This attempts to read the
1077 `SOURCE_DATE_EPOCH` environment variable and parse a UTC time
1078 from it (treating it as a unix date stamp, see
1079 https://reproducible-builds.org/specs/source-date-epoch/). If the
1080 variable is not set or can't be parsed as a unix date stamp, then the
1081 function returns the current date.
1085 + Add `PandocUnsupportedCharsetError` constructor for
1086 `PandocError` [API change].
1087 + Export `renderError` [API change].
1088 + Refactor `handleError` to use `renderError`. This allows us render
1089 error messages without exiting.
1091 * Text.Pandoc.Extensions
1093 + `Ext_task_lists` is now supported by org (and turned
1094 on by default) (Albert Krewinkel, #6336).
1095 + Remove `Ext_fenced_code_attributes` from allowed commonmark attributes
1096 (#7097). This attribute was listed as allowed, but it didn't actually
1097 do anything. Use `attributes` for code attributes and more.
1101 + Always load built-in Lua scripts from default data-dir (Albert
1102 Krewinkel). The Lua modules `pandoc` and `pandoc.List` are now always
1103 loaded from the system's default data directory. Loading from a
1104 different directory by overriding the default path, e.g. via
1105 `--data-dir`, is no longer supported to avoid unexpected behavior
1106 and to address security concerns.
1107 + Add module "pandoc.path" (Albert Krewinkel, #6001, #6565).
1108 The module allows to work with file paths in a convenient and
1109 platform-independent manner.
1110 + Use strict evaluation when retrieving AST value from the stack
1111 (Albert Krewinkel, #6674).
1115 + Disable `smart` extension when building PDF via LaTeX.
1116 This is to prevent accidental creation of ligatures like
1117 `` ?` `` and `` !` `` (especially in languages with quotations like
1118 German), and similar ligature issues. (See jgm/citeproc#54.)
1122 + Fix parsing of unquoted values (#7112). Previously we didn't allow
1123 unescaped quotes in unquoted values, but they are allowed
1128 + Use a more robust method for testing the executable. Many
1129 of our tests require running the pandoc executable. This
1130 is problematic for a few different reasons. First,
1131 cabal-install will sometimes run the test suite after
1132 building the library but before building the executable,
1133 which means the executable isn't in place for the tests.
1134 One can work around that by first building, then building
1135 and running the tests, but that's fragile. Second, we
1136 have to find the executable. So far, we've done that using
1137 a function `findPandoc` that attempts to locate it
1138 relative to the test executable (which can be located
1139 using findExecutablePath). But the logic here is delicate
1140 and work with every combination of options. To solve both
1141 problems, we add an `--emulate` option to the
1142 `test-pandoc` executable. When `--emulate` occurs as the
1143 first argument passed to `test-pandoc`, the program simply
1144 emulates the regular pandoc executable, using the rest of
1145 the arguments (after `--emulate`). Thus, `test-pandoc
1146 --emulate -f markdown -t latex` is just like `pandoc -f
1147 markdown -t latex`. Since all the work is done by library
1148 functions, implementing this emulation just takes a couple
1149 lines of code and should be entirely reliable. With this
1150 change, we can test the pandoc executable by running the
1151 test program itself (locatable using `findExecutablePath`)
1152 with the `--emulate` option. This removes the need for the
1153 fragile `findPandoc` step, and it means we can run our
1154 integration tests even when we're just building the
1155 library, not the executable. [Note: part of this change
1156 involved simplifying some complex handling to set
1157 environment variables for dynamic library paths. I have
1158 tested a build with `--enable-dynamic-executable`, and it
1159 works, but further testing may be needed.]
1160 + Print accurate location if a test fails (Albert
1161 Krewinkel). Ensures that tasty-hunit reports the location
1162 of the failing test instead of the location of the helper
1165 * Documentation: Update URLs and use `https` where possible (#7122,
1168 * Add `doc/libraries.md`, a description of libraries that support pandoc.
1172 + MANUAL: block-level formatting is not allowed in line blocks (#7107).
1173 + Clarify `tex_math_dollars` extension. Note that no blank lines
1174 are allowed between the delimiters in display math.
1175 + Add MANUAL section on reproducible builds.
1176 + Document no template fallback for absolute path (#7077, Nixon
1178 + Improve docs for cite-method.
1179 + Update README and man page.
1181 * Makefile: in `make bench`, create CSV files for comparison and compare
1182 against previous benchmark run. Add timestamp to CSV filenames.
1184 * cabal.project: don't explicitly set -trypandoc.
1185 If we do, this can't be overridden on the cabal command line.
1187 * doc/lua-filters.md: improve documentation for
1188 `pandoc.mediabag.insert`, `pandoc.mediabag.fetch`,
1189 `directory`, `normalize` (Albert Krewinkel).
1191 * Allow base64-bytestring-1.2.* (Dmitrii Kovanikov)
1193 * Require jira-wiki-markup 1.3.3 (Albert Krewinkel)
1195 * Require citeproc 0.3.0.8, which correctly titlecases when titles
1196 contain non-ASCII characters.
1198 * Use skylighting 0.10.4. This version of skylighting uses xml-conduit
1199 rather than hxt. This speeds up parsing of XML syntax definitions
1200 fourfold, and removes four packages from pandoc's dependency graph:
1201 hxt-charproperties, hxt-unicode, hxt-regex-xmlschema, hxt.
1203 * Add script `tools/parseTimings.pl` to help pin down which
1204 modules take the most time and memory to compile.
1206 * Avoid unnecessary use of NoImplicitPrelude pragma (#7089) (Albert
1211 + Use the lighter-weight tasty-bench instead of criterion.
1212 + Run writer benchmarks for binary formats too.
1213 + Alphabetize benchmarks.
1214 + Don't run benchmarks for bibliography formats
1215 (yet; we need a special input for them).
1216 + Show allocation data
1217 + Clean up benchmark code.
1218 + Allow specifying patterns using `-p blah'.
1220 * trypandoc: add 2 second timeout.
1222 * Use `-split-sections` in creating linux release binary.
1223 This reduces executable size significantly (by about 30%).
1225 * Remove `weigh-pandoc`. It's not really useful any more, now that our
1226 regular benchmarks include data on allocation.
1228 * Improve linux package build process and add script to
1229 automate building an arm64 binary package.
1232## pandoc 2.11.4 (2021-01-22)
1234 * Add `biblatex`, `bibtex` as output formats (closes #7040).
1236 * Recognize more extensions as markdown by default (#7034):
1237 `mkdn`, `mkd`, `mdwn`, `mdown`, `Rmd`.
1239 * Implement defaults file inheritance (#6924, David Martschenko).
1240 Allow defaults files to inherit options from other defaults files by
1241 specifying them with the following syntax:
1242 `defaults: [list of defaults files or single defaults file]`.
1244 * Fix infinite HTTP requests when writing epubs from URL source (#7013).
1245 Due to a bug in code added to avoid overwriting the cover image
1246 if it had the form `fileX.YYY`, pandoc made an endless sequence
1247 of HTTP requests when writing epub with input from a URL.
1251 + Allow multiple pipe chars in todo sequences (Albert Krewinkel, #7014).
1252 Additional pipe chars, used to separate "action" state from "no further
1253 action" states, are ignored. E.g., for the following sequence, both
1254 `DONE` and `FINISHED` are states with no further action required:
1255 `#+TODO: UNFINISHED | DONE | FINISHED`.
1256 + Restructure output of captioned code blocks (Albert Krewinkel, #6977).
1257 The Div wrapper of code blocks with captions now has the class
1258 "captioned-content". The caption itself is added as a Plain block
1259 inside a Div of class "caption". This makes it easier to write filters
1260 which match on captioned code blocks. Existing filters will need to be
1262 + Mark verbatim code with class `verbatim` (Dimitri Sabadie, #6998).
1266 + Handle `filecontents` environment (#7003).
1267 + Put contents of unknown environments in a Div when `raw_tex` is not
1268 enabled (#6997). (When `raw_tex` is enabled, the whole environment is
1269 parsed as a raw block.) The class name is the name of the environment.
1270 Previously, we just included the contents without the surrounding Div,
1271 but having a record of the environment's boundaries and name can be
1276 + Allow space around storng/emph delimiters (#6993).
1278 * New module Text.Pandoc.Writers.BibTeX, exporting
1279 writeBibTeX and writeBibLaTeX. [API change]
1283 + Revert table line height increase in 2.11.3 (#6996).
1284 In 2.11.3 we started adding `\addlinespace`, which produced less dense
1285 tables. This wasn't an intentional change; I misunderstood a comment in
1286 the discussion leading up to the change. This commit restores the earlier
1287 default table appearance. Note that if you want a less dense table, you
1288 can use something like `\def\arraystretch{1.5}` in your header.
1292 + Adjust internal links to identifiers defined in raw HTML sections
1293 after splitting into chapters (#7000).
1294 + Recognize `Format "html4"`, `Format "html5"` as raw HTML.
1295 + Adjust internal links to images, links, and tables after splitting into
1296 chapters. Previously we only did this for Div and Span and Header
1297 elements (see #7000).
1301 + Don't justify text inside table cells.
1305 + Use `<element-citation>` if `element_citations`
1306 extension is enabled (Albert Krewinkel).
1307 + Fix citations (Albert Krewinkel, #7018). By default
1308 we use formatted citations.
1309 + Ensure that `<disp-quote>` is always wrapped in `<p>` (#7041).
1313 + Cleaned up raw formats. We now react appropriately
1314 to `gfm`, `commonmark`, and `commonmark_x` as raw formats.
1318 + Fix bug with dropped content from inside spans with a class in
1323 + Handle table header using styles (#7008). Instead of hard-coding
1324 the border and header cell vertical alignment, we now let this
1325 be determined by the Table style, making use of Word's
1326 "conditional formatting" for the table's first row. For
1327 headerless tables, we use the tblLook element to tell Word
1328 not to apply conditional first-row formatting.
1330 * Commonmark writer:
1332 + Implement start number on ordered lists (#7009). Previously they always
1333 started at 1, but according to the spec the start number is respected.
1337 + Fix implicit_figure at end of footnotes (#7006).
1339 * ConTeXt template: Remove `\setupthinrules` from default template.
1340 The width parameter this used is not actually supported,
1341 and the command didn't do anything.
1343 * Text.Pandoc.Extensions:
1345 + Add `Ext_element_citations` constructor (Albert Krewinkel).
1347 * Text.Pandoc.Citeproc.BibTeX: New unexported function
1348 `writeBibtexString`.
1350 * Text.Pandoc.Citeproc:
1352 + Use finer grained imports (Albert Krewinkel).
1353 + Factor out and export `getStyle` [API change].
1354 + Export `getReferences` [API change, #7106].
1355 + Factor out getLang.
1357 * Text.Pandoc.Parsing: modify `gridTableWith'` for headerless tables.
1358 If the table lacks a header, the header row should be an empty
1359 list. Previously we got a list of empty cells, which caused
1360 an empty header to be emitted instead of no header. In LaTeX/PDF
1361 output that meant we got a double top line with space between.
1363 * ImageSize: use `viewBox` for SVG if no length, width attributes (#7045).
1364 This change allows pandoc to extract size information from more SVGs.
1366 * Add simple default.nix.
1368 * Use commonmark 0.1.1.3.
1370 * Use citeproc 0.3.0.5.
1372 * Update default CSL to use latest chicago-author-date.csl.
1374 * CONTRIBUTING.md: add note on GNU xargs.
1378 + Update description of `-L`/`--lua-filter`.
1379 + Document use of citations in note styles (#6828).
1381## pandoc 2.11.3.2 (2020-12-29)
1383 * HTML reader: use renderTags' from Text.Pandoc.Shared (Albert Krewinkel).
1384 A side effect of this change is that empty `<col>` elements are written
1385 as self-closing tags in raw HTML blocks.
1387 * Asciidoc writer: Add support for writing nested tables (#6972, timo-a).
1388 Asciidoc supports one level of nesting. If deeper tables are to be
1389 written, they are omitted and a warning is issued.
1391 * Docx writer: fix nested tables with captions (#6983).
1392 Previously we got unreadable content, because docx seems
1393 to want a `<w:p>` element (even an empty one) at the end of
1396 * Powerpoint writer: allow arbitrary OOXML in raw inline elements
1397 (Albert Krewinkel). The raw text is now included verbatim in the
1398 output. Previously is was parsed into XML elements, which prevented
1399 the inclusion of partial XML snippets.
1401 * LaTeX writer: support colspans and rowspans in tables (#6950,
1402 Albert Krewinkel). Note that the multirow package is needed for
1403 rowspans. It is included in the latex template under a variable,
1404 so that it won't be used unless needed for a table.
1406 * HTML writer: don't include p tags in CSL bibliography entries
1407 (#6966). Fixes a regression in 2.11.3.
1409 * Add `meta-description` variable to HTML templates (#6982). This
1410 is populated by the writer by stringifying the `description`
1411 field of metadata (Jerry Sky). The `description` meta tag will
1412 make the generated HTML documents more complete and SEO-friendly.
1414 * Citeproc: fix handling of empty URL variables (`DOI`, etc.).
1415 The `linkifyVariables` function was changing these to links
1416 which then got treated as non-empty by citeproc, leading
1417 to wrong results (e.g. ignoring nonempty URL when empty DOI is present).
1418 See jgm/citeproc#41.
1420 * Use citeproc 0.3.0.3. Fixes an issue in author-only citations when
1421 both an author and translator are present, and an issue with
1422 citation group delimiters.
1424 * Require texmath 0.12.1. This improves siunitx support in math,
1425 fixes bugs with `\*mod` family operators and arrays, and avoids
1426 italicizing symbols and operator names in docx output.
1428 * Ensure that the perl interpreter used for filters with `.pl`
1431 * MANUAL: note that textarea content is never parsed as Markdown
1435## pandoc 2.11.3.1 (2020-12-18)
1437 * Added some missing files to extra-source-files and data
1438 files, so they are included in the sdist tarball. Closes #6961.
1439 Cleaned up some extraneous data and test files, and added
1440 a CI check to ensure that the test and data files included
1441 in the sdist match what is in the git repository.
1443 * Use citeproc 0.3.0.1, which avoids removing nonbreaking
1444 space at the end of the `initialize-with` attribute. (Some
1445 journals require nonbreaking space after initials, and this
1446 makes that possible.)
1448## pandoc 2.11.3 (2020-12-17)
1450 * With `--bibliography` (or `bibliography` in metadata), a
1451 URL may now be provided, and pandoc will fetch the resource.
1452 In addition, if a file path is provided and it is not
1453 found relative to the working directory, the resource
1454 path will be searched (#6940).
1456 * Add `sourcepos` extension for `commonmark`, `gfm`, `commonmark_x`
1457 (#4565). With the `sourcepos` extension set set, `data-pos`
1458 attributes are added to the AST by the commonmark reader. No other
1459 readers are affected. The `data-pos` attributes are put on elements
1460 that accept attributes; for other elements, an enlosing Div or Span
1461 is added to hold the attributes.
1463 * Change extensions for `commonmark_x`: replace `auto_identifiers`
1464 with `gfm_auto_identifiers` (#6863). `commonmark_x` never actually
1465 supported `auto_identifiers` (it didn't do anything), because the
1466 underlying library implements gfm-style identifiers only. Attempts
1467 to add the `auto_identifiers` extension to `commonmark` will now
1472 + Split module into several submodules (Albert Krewinkel). Reducing
1473 module size should reduce memory use during compilation.
1474 + Support advanced table features (Albert Krewinkel):
1475 block level content in captions, row and colspans,
1476 body headers, row head columns, footers, attributes.
1477 + Disable round-trip testing for tables. Information for cell
1478 alignment in a column is not preserved during round-trips (Albert
1480 + Allow finer grained options for tag omission (Albert Krewinkel).
1481 + Simplify list attribute handling (Albert Krewinkel).
1482 + Pay attention to `lang` attributes on body element (#6938).
1483 These (as well as `lang` attributes on the html element) should update
1485 + Retain attribute prefixes and avoid duplicates (#6938).
1486 Previously we stripped attribute prefixes, reading `xml:lang` as
1487 `lang` for example. This resulted in two duplicate `lang`
1488 attributes when `xml:lang` and `lang` were both used. This commit
1489 causes the prefixes to be retained, and also avoids invald
1490 duplicate attributes.
1492 * Commonmark reader:
1494 + Refactor `specFor`.
1495 + Set input name to `""` to avoid clutter in sourcepos output.
1499 + Parse `#+LANGUAGE` into `lang` metadata field (#6845, Albert
1501 + Preserve targets of spurious links (#6916, Albert
1502 Krewinkel). Links with (internal) targets that the reader doesn't
1503 know about are converted into emphasized text. Information on the
1504 link target is now preserved by wrapping the text in a Span of class
1505 `spurious-link`, with an attribute `target` set to the link's
1506 original target. This allows to recover and fix broken or unknown
1511 + Table text width support (#6791, Nils Carlson).
1512 Table width in relation to text width is not natively supported
1513 by docbook but is by the docbook `fo` stylesheets through an XML
1514 processing instruction, `<?dbfo table-width="50%"?>`.
1518 + Improve parsing of command options (#6869, #6873).
1519 In cases where we run into trouble parsing inlines til the
1520 closing `]`, e.g. quotes, we return a plain string with the
1521 option contents. Previously we mistakenly included the brackets
1523 + Preserve center environment (#6852, Igor Pashev).
1524 The contents of the `center` environment are put in a `Div`
1525 with class `center`.
1526 + Don't parse `\rule` with width 0 as horizontal rule. These are
1527 sometimes used as spacers in LaTeX.
1528 + Don't apply theorem default styling to a figure inside (#6925).
1529 If we put an image in italics, then when rendering to Markdown
1530 we no longer get an implicit figure.
1534 + Handle unknown interwiki links better (#6932).
1535 DokuWiki lets the user define his own Interwiki links. Previously
1536 pandoc reacted to these by emitting a google search link, which is
1537 not helpful. Instead, we now just emit the full URL including the
1538 wikilink prefix, e.g. `faquk>FAQ-mathml`. This at least gives users
1539 the ability to modify the links using filters.
1543 + Properly handle boolean values in writing YAML metadata (#6388).
1544 + Ensure that a new csl-block begins on a new line (#6921).
1545 This just looks better and doesn't affect the semantics.
1549 + Better image handling (#6948). An image alone in its paragraph
1550 (but not a figure) is now rendered as an independent image, with an
1551 `alt` attribute if a description is supplied. An inline image that
1552 is not alone in its paragraph will be rendered, as before, using a
1553 substitution. Such an image cannot have a "center", "left", or
1554 "right" alignment, so the classes `align-center`, `align-left`, or
1555 `align-right` are ignored. However, `align-top`, `align-middle`,
1556 `align-bottom` will generate a corresponding `align` attribute.
1560 + Keep raw openxml strings verbatim (#6933, Albert Krewinkel).
1561 + Use Content instead of Element. This allows us to inject
1562 raw OpenXML into the document without reparsing it into an
1563 Element, which is necessary if you want to inject an open
1565 + Fix bullets/lists indentation, so that the first level is slightly
1566 indented to the right instead of right on the margin (cholonam).
1567 + Support bold and italic in "complex script" (#6911).
1568 Previously bold and italics didn't work properly in LTR
1569 text. This commit causes the w:bCs and w:iCs attributes
1570 to be used, in addition to w:b and w:i, for bold and
1571 italics respectively.
1575 + Fix image bounding box for custom widths/heighta (Mauro Bieg, #6936).
1579 + Improve table spacing (#6842, #6860).
1580 Remove the `\strut` that was added at the end of minipage
1581 environments in cells. Replace `\tabularnewline` with
1583 + Improve calculation of column spacing (#6883).
1584 + Extract table handling into separate module (Albert Krewinkel).
1585 + Fix bug with nested `csl-` display Spans (#6921).
1586 + Improve longtable output (#6883). Don't create minipages for
1587 regular paragraphs. Put width and alignment information in the
1588 longtable column descriptors.
1590 * OpenDocument writer:
1592 + Support for table width as a percentage of text width
1593 (#6792, Nils Carson).
1594 + Implement Div and Span ident support (#6755, Nils Carson).
1595 Spans and Divs containing an ident in the Attr will become bookmarks
1596 or sections with idents in OpenDocument format.
1597 + Add two extensions, `xrefs_name` and `xrefs_number` (#6774, Nils
1598 Carlson). Links to headings, figures and tables inside the
1599 document are substituted with cross-references that will use the
1600 name or caption of the referenced item for `xrefs_name` or the
1601 number for `xrefs_number`. For the `xrefs_number` to be useful
1602 heading numbers must be enabled in the generated document and
1603 table and figure captions must be enabled using for example the
1604 `native_numbering` extension. In order for numbers and reference
1605 text to be updated the generated document must be refreshed.
1609 + Support advanced table features (Albert Krewinkel).
1610 + Support author affiliations (#6687, Albert Krewinkel).
1614 + Use correct id attribute consistently (Jan Tojnar).
1615 DocBook5 should always use `xml:id` instead of `id`.
1616 + Handle admonition titles better (Jan Tojnar).
1617 Docbook reader produces a `Div` with `title` class for `<title>`
1618 element within an “admonition” element. Markdown writer then turns
1619 this into a fenced div with `title` class attribute. Since fenced
1620 divs are block elements, their content is recognized as a
1621 paragraph by the Markdown reader. This is an issue for Docbook
1622 writer because it would produce an invalid DocBook document from
1623 such AST – the `<title>` element can only contain “inline”
1624 elements. Handle this special case separately by unwrapping
1625 the paragraph before creating the `<title>` element.
1626 + Add XML namespaces to top-level elements (#6923, Jan Tojnar).
1627 Previously, we only added `xmlns` attributes to chapter
1628 elements, even when running with `--top-level-division=section`.
1629 These namespaces are now added to part and section elements too,
1630 when they are the selected top-level divisions.
1631 We do not need to add namespaces to documents produced with
1632 `--standalone` flag, since those will already have xmlns attribute on
1633 the root element in the template.
1637 + Fix handling of nested `csl-` display spans (#6921).
1638 Previously inner Spans used to represent CSL display attributes were
1639 not rendered as div tags as intended.
1643 + Include title page in landmarks (#6919).
1644 Note that the toc is also included if `--toc` is specified.
1645 + Add frontmatter type on body element for nav.xhtml (#6918).
1647 * EPUB templates: use preserveAspectRatio="xMidYMid" for cover image (#6895,
1648 Shin Sang-jae). This change affects both the epub2 and the epub3
1649 templates. It avoids distortion of the cover image by requiring that the
1650 aspect ratio be preserved.
1654 + Include `csquotes` package if `csquotes` variable set.
1655 + Put back `amssymb`. We need it for checkboxes in todo lists,
1656 and maybe for other things. In this location it seems compatible
1657 with the cases that prompted #6469 and PR #6762.
1658 + Disable language-specific shorthands in babel (#6817, #6887).
1659 Babel defines "shorthands" for some languages, and these can
1660 produce unexpected results. For example, in Spanish, `1.22`
1661 gets rendered as `122`, and `et~al.` as `etal`.
1662 One would think that babel's `shorthands=off` option (which
1663 we were using) would disable these, but it doesn't. So we
1664 remove `shorthands=off` and add some code that redefines
1665 the shorthands macro. Eventually this will be fixed in babel,
1666 I hope, and we can revert to something simpler.
1668 * JATS template: allow array of persistent institute ids in `pid`
1671 * Text.Pandoc.Parsing: minor code and efficiency improvements.
1673 * Text.Pandoc.Extension:
1675 + Add `Ext_sourcepos` constructor for `Extension` [API change].
1676 + Add `Ext_xrefs_name` and `Ext_xrefs_number` constructors for
1677 `Extension` (Nils Carson) [API change].
1679 * Text.Pandoc.Citeproc:
1681 + Fix truncation of `[Citation]` list in `Cite` inside footnotes (#6890).
1682 This affected author-in-text citations in footnotes. It didn't cause
1683 problems for the printed output, but for filters that expected the
1684 citation id and other information.
1685 + Allow the use of both inline and external references (#6951),
1686 as with pandoc-citeproc. References defined in the document's
1687 metadata take priority over references with the same id defined in
1688 an external bibliography.
1689 + Use `fetchItem` to get external bibliography (#6940).
1690 + Ensure that BCP47 lang codes can be used. We ignore the variants
1691 and just use the base lang code and country code when passing off
1693 + Citeproc BibTeX parser: revert change in `getRawField`
1694 which was made (for reasons forgotten) when transferring
1695 this code from pandoc-citeproc. The change led to `--` in
1696 URLs being interpreted as en-dashes, which is unwanted (#6874).
1698 * Text.Pandoc.ImageSize:
1700 + Default to DPI 72 if the format specifies DPI of 0 (#6880).
1701 This shouldn't happen, in general, but it can happen with
1702 JPEGs that don't conform to the spec. Having a DPI of 0
1703 will blow up size calculations (division by 0).
1704 + ImageSize: use JuicyPixels to determine size for png, jpeg, and
1705 gif, instead of doing our own binary parsing (#6936). This
1706 gives more reliable results.
1710 + Remove `foldOrElse` (internal module) (Albert Krewinkel).
1712 * Use skylighting 0.10.2 (#6625).
1714 * Use citeproc 0.3. This fixes issues with references with
1715 duplicate ids (jgm/citeproc#36).
1717 * Use doctemplates 0.9. This fixes issues with boolean
1718 metadata values in the Markdown writer (#6388)
1719 and in `meta-json` (#6650). It also fixes
1720 issues with nested for loops in templates.
1722 * Add translations zh-Hans.yaml and zh-Hant.yaml (#6904, #6909,
1723 Kolen Cheung, taotieren).
1725 * Add tests: True to cabal.project.
1726 This fixes some CI failures for cabal.
1728 * Normalize test/tables/*.native (#6888, Kolen Cheung).
1730 * Move executable to `app` directory to avoid problems with cabal repl.
1732 * CONTRIBUTING: add section "How can I help?" (#6892, Albert Krewinkel).
1733 Also adds a paragraph aimed at highlighting the importance of feature
1736 * MANUAL: Document that --number-sections works in `ms` (#6935).
1739## pandoc 2.11.2 (2020-11-19)
1741 * Default to using ATX (`##`-style) headings for Markdown output
1742 (#6662, Aner Lucero). Previously we used Setext (underlined) headings
1743 by default for levels 1--2.
1745 * Add option `--markdown-headings=atx|setext`, and deprecate
1746 `--atx-headers` (#6662, Aner Lucero).
1748 * Support `markdown-headings` in defaults files.
1750 * Fix corner case in YAML metadata parsing (#6823). Previously YAML
1751 metadata would sometimes not get recognized if a field ended with a
1752 newline followed by spaces.
1754 * `--self-contained`: increase coverage (#6854).
1755 Previously we only self-contained attributes for certain tag names
1756 (`img`, `embed`, `video`, `input`, `audio`, `source`, `track`,
1757 `section`). Now we self-contain any occurrence of `src`,
1758 `data-src`, `poster`, or `data-background-image`, on any tag; and
1759 also `href` on `link` tags.
1763 + Fix detection of locators following in-text citations.
1764 Prevously, if we had `@foo [p. 33; @bar]`, the `p. 33` would be
1765 incorrectly parsed as a prefix of `@bar` rather than a suffix of
1767 + Improve period suppression algorithm for citations in notes
1768 in note citation styles (#6835).
1769 + Don't increment `stateNoteNumber` for example list references.
1770 This helps with #6836 (a bug in which example list references
1771 disturb calculation of citation note number and affect when
1772 `ibid` is triggered).
1776 + Move `getNextNumber` from Readers.LaTeX to Readers.LaTeX.Parsing.
1777 + Fix negative numbers in siunitx commands. A change in pandoc 2.11
1778 broke negative numbers, e.g. `\SI{-33}{\celcius}` or `\num{-3}`.
1779 This fixes the regression.
1781 * DocBook reader: drop period in formalpara title
1782 and put it in a div with class `formalpara-title`, so that
1783 people can reformat with filters (#6562).
1785 * Man reader: improve handling of `.IP` (#6858). We now better handle
1786 `.IP` when it is used with non-bullet, non-numbered lists, creating a
1787 definition list. We also skip blank lines like groff itself.
1789 * Bibtex reader: fall back on `en-US` if locale for LANG not found.
1790 This reproduces earlier pandoc-citeproc behavior (jgm/citeproc#26).
1794 + Wrap all tables (Albert Krewinkel).
1795 All `<table>` elements are put inside `<table-wrap>` elements, as the
1796 former are not valid as immediate child elements of `<body>`.
1797 + Move Table handling to separate module (Albert Krewinkel).
1798 Adds two new unexported modules:
1799 Text.Pandoc.Writers.JATS.Types, Text.Pandoc.Writers.JATS.Table.
1803 + Replace org #+KEYWORDS with #+keywords (TEC).
1804 As of ~2 years ago, lower case keywords became the standard (though
1805 they are handled case insensitive, as always).
1806 + Update org supported languages and identifiers according to the
1807 current list contained in
1808 <https://orgmode.org/worg/org-contrib/babel/languages/index.html>
1811 * Only use `filterIpynbOutput` if input format is ipynb (#6841).
1812 Before this change content could go missing from divs with class
1813 `output`, even when non-ipynb was being converted.
1815 * When checking reader/writer name, check base name now that we permit
1816 extensions on formats other than markdown.
1818 * Text.Pandoc.PDF: Fix `changePathSeparators` for Windows (#6173).
1819 Previously a path beginning with a drive, like `C:\foo\bar`, was
1820 translated to `C:\/foo/bar`, which caused problems.
1821 With this fix, the backslashes are removed.
1823 * Text.Pandoc.Logging:
1825 + Add constructor `ATXHeadingInLHS` to `LogMessage` [API change].
1826 + Add constructor `EnvironmentVariableUndefined` to
1827 `LogMessage` [API change].
1829 * Fix error that is given when people specify `doc` output (#6834,
1832 * LaTeX template: add a `\break` after parbox in `CSLRightInline`.
1833 This should fix spacing problems between entries with numeric styles.
1834 Also fix number of params on `CSLReferences`.
1836 * reveal.js template: Put quotes around `controlsLayout`,
1837 `controlsBackArrows`, and `display`, since these require strings.
1838 Add `showSlideNumber`, `hashOneBasedIndex`, `pause`.
1840 * Use citeproc 0.2. This fixes a bug with title case around parentheses.
1842 * pandoc.cabal: remove 'static' flag.
1843 This isn't really necessary and can be misleading (e.g. on macOS,
1844 where a fully static build isn't possible). cabal's new option
1845 `--enable-executable-static` does the same. On stack you can add
1846 something like this to the options for your executable in package.yaml:
1848 ld-options: -static -pthread
1850 * Remove obsolete bibutils flag setting in `linux/make_artifacts.sh`.
1854 + Correct `link-citation` -> `link-citations`.
1855 + Add a sentence about `pagetitle` for HTML (#6843, Alex Toldaiev).
1857 * INSTALL.md: Remove references to `pandoc-citeproc` (#6857).
1859 * CONTRIBUTING: describe hlint and how it's used (#6840, Albert
1862## pandoc 2.11.1.1 (2020-11-07)
1864 * Citeproc: improve punctuation in in-text note citations (#6813).
1865 Previously in-text note citations inside a footnote would sometimes have
1866 the final period stripped, even if it was needed (e.g. on the end of
1869 * Use citeproc 0.1.1.1. This improves the decision about when
1870 to use `ibid` in cases where citations are used inside
1873 * Support `nocase` spans for `csljson` output.
1875 * Require latest commonmark, commonmark-extensions.
1876 This fixes a bug with `autolink_bare_uris` and commonmark.
1878 * LaTeX reader: better handling of `\\` inside math in table cells (#6811).
1880 * DokuWiki writer: translate language names for code elements
1881 and improve whitespace (#6807).
1883 * MediaWiki writer: use `syntaxhighlight` tag instead of deprecated
1884 `source` for highlighted code (#6810). Also support `startFrom`
1885 attribute and `numberLines`.
1887 * Lint code in PRs and when committing to master (#6790,
1890 * doc/filters.md: describe technical details of filter invocations (#6815,
1894## pandoc 2.11.1 (2020-11-03)
1896 * DocBook Reader: fix duplicate bibliography bug (#6773, Nils Carlson).
1900 + Parse contents of iframes (#6770).
1901 + Parse inline svg as image unless `raw_html` is set in the reader (in
1902 which case the svg is passed through as raw HTML) (#6770).
1906 + Fix bug parsing macro arguments (#6796). If `\cL` is
1907 defined as `\mathcal{L}`, and `\til` as `\tilde{#1}`, then
1908 `\til\cL` should expand to `\tilde{\mathcal{L}}`, but
1909 pandoc was expanding it to `\tilde\mathcal{L}`. This is
1910 fixed by parsing the arguments in "verbatim mode" when the
1911 macro expands arguments at the point of use.
1912 + Properly support optional (cite) argument for
1913 `\blockquote` from `csquotes` (#6802).
1915 * LaTeX writer: Improved calculation of table column widths.
1916 We now have LaTeX do the calculation, using `\tabcolsep`.
1917 So we should now have accurate relative column widths no
1918 matter what the text width. The default template has been modified to load
1919 the calc package if tables are used.
1921 * HTML writer: Fix duplicate "class" attribute for table
1924 * Text.Pandoc.Filter: allow shorter YAML representation of Citeproc
1925 (Albert Krewinkel). The map-based YAML representation of filters expects
1926 `type` and `path` fields. The path field had to be present for all filter
1927 types, but is not used for citeproc filters. The field can now be omitted
1928 when type is "citeproc", as described in the MANUAL.
1930 * Text.Pandoc.Error: Add `PandocBibliographyError` constructor
1931 for `PandocError` [API change]. This ensures that bibliography parsing
1932 errors generate messages that include the bibliography file name --
1933 otherwise it can be quite mysterious where it is coming from.
1935 * Citeproc: properly handle `csl` field with `data:` URI (#6783).
1936 This is used with the JATS writer, so this fixes a regression
1937 in pandoc 2.11 with JATS output and citeproc.
1939 * Allow `citation-abbreviations` in defaults file.
1941 * JATS templates: ensure `jats_publishing` output is valid
1944 * LaTeX template: Fix `CSLRightInline`, so that it does not
1945 run over the right margin.
1947 * HTML template: default CSS tweaks (Mauro Bieg and John
1950 - Fix margin before codeblock
1951 - Add `monobackgroundcolor` variable, making the background color
1952 and padding of code optional.
1953 - Ensure that backgrounds from highlighting styles take precedence over
1955 - Remove list markers from TOC
1956 - Add margin-bottom where needed
1957 - Remove italics from blockquote styling
1958 - Change borders and spacing in tables to be more consistent with other
1961 - Set font-size for print media to 12pt.
1962 - Reduce interline space.
1963 - Reduce interparagraph space.
1964 - Reduce line width.
1965 - Remove the special `line-height: 1` for table cells.
1966 - Remove the special line-height for pre.
1967 - Ensure that there is a bit more space before a heading
1969 - Slightly reduced space after title header.
1970 - Add CSS example to MANUAL
1972 * man template: Change comment that triggers `tbl` from
1973 `.\"t` to `'\" t`, as specified in groff_man(7) (#6803).
1975 * Use latest commonmark, commonmark-extensions.
1976 This fixes a bug with nested blocks in footnotes with the
1977 `footnote` extension to `commonmark`. See jgm/commonmark-hs#63.
1979 * Citeproc: use comma for in-text citations inside footnotes.
1980 When an author-in-text citation like `@foo` occurs in a footnote,
1981 we now render it with: `AUTHOR NAME + COMMA + SPACE + REST`.
1982 Previously we rendered: `AUTHOR NAME + SPACE + "(" + REST + ")"`.
1983 This gives better results. Note that normal citations are still
1984 rendered in parentheses.
1986 * Use latest citeproc:
1988 + citeproc no longer capitalizes notes, so we do it
1989 in pandoc when appropriate.
1992 * Clarify manual on `--track-changes` (#6801).
1994 * Add `doc/jats.md` to document pandoc's handling of JATS
1995 (#6794, Albert Krewinkel).
1997 * Fix code example in lua-filters.md (#6795).
1999## pandoc 2.11.0.4 (2020-10-21)
2001 * Commonmark writer: fix regression with fenced divs (#6768).
2002 Starting with 2.10.1, fenced divs no longer render with
2003 HTML div tags in commonmark output. This is a regression
2004 due to our transition from cmark-gfm. This commit fixes it.
2006 * Use released version of citeproc. (This fixes a mis-step
2007 in the 2.11.0.3 release, which is now deprecated.)
2009 * Use latest sylighting, with support for `groovy`.
2011 * Document that --html-q-tags requires the smart extension on the reader
2014## pandoc 2.11.0.3 (2020-10-20)
2016 * Use latest citeproc (closes #6765). This fixes a problem with
2017 author-in-text citations for references including both an author
2018 and an editor. Previously, both were included in the text, but only
2019 the author should be.
2021 * With `--citeproc`, ensure that the final period is removed when
2022 citations that occur in notes in note-based styles get put in
2023 parentheses. See jgm/citeproc#20.
2025 * Normalize rewritten image paths with `--extract-media` (#6761).
2026 This change will avoid mixed paths like this one when
2027 `--extract-media` is used with a Word file:
2028 ``. Instead we'll get
2029 ``.
2031 * Modify `--version` output. Use space more efficiently and report the
2032 citeproc and ipynb versions, along with skylighting, texmath, and
2033 pandoc-types. Drop the word "default" before "user data directory."
2035 * DocBook reader: bibliomisc and anchor support (#6754, Nils Carlson).
2036 Also ensure that bibliodiv without a title no longer results in
2039 * ConTeXt template: adds `\setupinterlinespace` to fonts larger
2040 than normal (#6763, Denis Maier).
2042 * LaTeX template: Do not load amssymb if not needed (#6469, Angelo Peronio).
2043 See <https://tex.stackexchange.com/a/549938>.
2045 * Relax upper bound on hslua, allow hslua-1.3.* (Albert Krewinkel).
2049 + Improve explanation of "indent" variable (#6767, Cyrus Yip).
2050 + Remove org from list of input formats supporting raw_tex (#6753,
2054## pandoc 2.11.0.2 (2020-10-15)
2056 * Fix handling of `xdata` in bibtex/biblatex bibliographies (#6752).
2058 * Fix some small typos in the API documentation (#6751, Michael Hoffmann).
2060 * Require citeproc 0.1.0.2. This fixes a regression from pandoc-citeproc
2061 involving spacing between components of a reference in certain styles
2064 * Fix typos in comments, doc strings, error messages, and tests
2065 (Albert Krewinkel, #6738).
2067## pandoc 2.11.0.1 (2020-10-13)
2069 * LaTeX reader: support more acronym commands (#6746):
2070 `\acl`, `\aclp`, and capitalized versions of already
2073 * Commonmark reader: add `pipe_table` extension *after* defaults (#6739).
2074 Otherwise we get bad results for non-table, non-paragraph
2075 lines containing pipe characters.
2077 * Markdown writer: Fix autolinks rendering for gfm (#6740).
2078 Previously, autolinks rendered as raw HTML, due to the
2079 `class="uri"` added by pandoc's markdown reader.
2083 + Escape option values in lstlistings environment (#6742).
2084 + Fix handling of `lang` `pt-BR` (#2953). For polyglossia we now
2085 use `\setmainlanguage[variant=brazilian]{portuguese}` and for babel
2086 `\usepackage[shorthands=off,main=brazilian]{babel}`.
2088 * Depend on latest citeproc (0.1.0.1).
2090 + This fixes the citation number issue with ieee.csl and other
2091 styles that do not explicitly sort bibliographies (#6741). (Pandoc
2092 was numbering them by their order in the bibliography file,
2093 rather than the order cited, as required by the CSL spec.)
2094 + Fixes groupin/collapsing with citation items with prefixes.
2096 * default.latex: fix `CSLReference` macro definition.
2098 * Fix MANUAL.txt CSL JSON conversion examples.
2100 * Fix spelling errors in changelog, MANUAL.txt, `doc/org.md` (#6738).
2103## pandoc 2.11 (2020-10-11)
2105 * Add `--citeproc` (`-C`) option to trigger built-in citation processing.
2106 It is no longer necessary to use the external `pandoc-citeproc`
2107 filter. `--citeproc` behaves like a filter and can be positioned
2108 relative to other filters as they appear on the command line.
2110 The new built-in citation processing uses the citeproc library,
2111 a reimplementation of CSL citation processing that fixes many
2112 of the shortcomings of pandoc-citeproc. In general, citation
2113 processing should work much the same as it did with pandoc-citeproc,
2114 but with greater fidelity to CSL styles and better performance.
2115 (The tests from the pandoc-citeproc package have been carried
2116 over to pandoc.) The following differences should be noted:
2118 - At this point, only some of the writers (HTML, ms, LaTeX) properly
2119 interpret CSL display styles. You should get decent output in
2120 all formats (at least as good as with pandoc-citeproc), but
2121 indentation and block-alignment may not be right.
2123 - pandoc-citeproc searches the `~/.csl` directory for `.csl`
2124 styles. Pandoc instead searches the `csl` subdirectory of
2125 the pandoc user data directory (e.g., `~/.pandoc/csl` or
2126 `~/.local/share/pandoc/csl`). Users who already keep
2127 CSL styles in `~/.csl` may find it convenient to add a
2130 - Some of the bibliography formats supported by pandoc-citeproc (via
2131 hs-bibutils) are no longer supported: Copac, EndNote,
2132 ISI, MEDLINE, MODS, and RIS. If you use one of these formats,
2133 you may use the `bibutils` utility to convert to BibLaTeX.
2134 We now support only BibTeX, BibLaTeX, CSL JSON,
2135 and pandoc's YAML/Markdown analogue of CSL JSON.
2137 - pandoc-citeproc would always retrieve the independent parent
2138 of a dependent style by doing an HTTP request. pandoc will
2139 now first seek the independent parent locally (in the resource
2140 path or in the `csl` subdirectory of the pandoc user data
2141 directory) before resorting to HTTP. In addition, you may
2142 omit the `.csl` extension, e.g. `--csl zoology`.
2144 - Using the `--bibliography` option (or including
2145 `bibliography` in YAML metadata) no longer triggers
2146 citation processing implicitly: one must always use the
2147 `--citeproc` option if citation processing is wanted.
2149 * Add `csljson` as and input and output format. This allows pandoc
2150 to convert between `csljson` and other bibliography formats
2151 (e.g. `-f csljson -t markdown -s` or `-f bibtex -t csljson`),
2152 and to generate formatted versions of CSL JSON bibliographies
2153 (e.g., `pandoc -f csljson --citeproc pl.json -o pl.pdf`).
2155 * Added `bibtex`, `biblatex` as input formats. This allows pandoc
2156 to convert between BibLaTeX and BibTeX and other bibliography formats,
2157 and to generated formatted versions of BibTeX/BibLaTeX bibliographies
2158 (e.g., `pandoc -f biblatex --citeproc pl.bib -o pl.pdf`).
2160 * Raise informative errors when YAML metadata parsing fails (#6730).
2161 Previously the command would succeed, returning empty metadata,
2162 with no errors or warnings.
2164 * Sort languages in `--list-highlight-languages` output (#6718,
2165 Albert Krewinkel). Languages were previously sorted by their
2166 long name, which leads to unexpected results).
2168 * Add CSS to default HTML template (#6601, Mauro Bieg). This
2169 greatly improves the default typography in pandoc's HTML
2170 output. The CSS is sensitive to a number of variables
2171 (e.g. `mainfont`, `fontsize`, `linestretch`): see the manual for
2172 details. To restore the earlier, more spartan output, you can
2173 disable this with `-M document-css=false`.
2175 * Support `--toc-depth` option for ODT writer (#6696, niszet).
2177 * Fix issues with Windows UNC paths with some options (#5127).
2179 * Remove `fenced_code_blocks` and `backtick_code_blocks` from allowed
2180 `commonmark` and `gfm` extensions. These shouldn't really be counted
2181 as extensions, because they can't be disabled in commonmark.
2182 Adjust markdown writer to check for the commonmark variant in addition
2185 * Add these extensions to `gfm` and `commonmark`:
2186 `fenced_code_blocks`, `backtick_code_blocks`, `fenced_code_attributes`.
2187 These can't really be disabled in the reader, but they need to be enabled
2188 in the writer or we just get indented code.
2190 * Make sure proper set of extensions is recognized for `commonmark_x`.
2192 * Allow `gfm_auto_identifiers`, `ascii_identifiers` extensions for `docx`.
2196 + Add `Maybe FilePath` parameter to `yamlToMeta` [API change].
2197 + Export `yamlToRefs` [API change], a version of `yamlToMeta`
2198 specialized to references.
2199 + Set `citationNoteNum` accurately in citations.
2200 + Revise abbreviation support. Don't insert a nonbreaking space after a
2201 potential abbreviation if it comes right before a note or citation.
2202 This causes problems for citeproc's moving of note citations.
2206 + Support missing siunitx commands (#6658).
2207 + Support `squared`, `cubed`, `tothe` in siunitx (#6657).
2208 + Improved uncertainty handling in slunitx.
2209 + Factored out siunitx stuff into separate unexposed module.
2210 + Fix improper empty cell filtering (#6689, Christian Despres).
2211 + Fix parsing of "show name" in `\newtheorem` (#6734).
2212 Previously we were just treating it as a string and
2213 ignoring accents and formatting.
2214 + Prevent wrong nesting of `\multirow` and `\multicolumn` table
2215 cells (#6603, Laurent P. René de Cotret).
2216 + Table cell parser not consuming spaces correctly (#6596,
2217 Laurent P. René de Cotret).
2218 + Change `SIRange` to `SIrange` (#6617, Emerson Harkin).
2219 + Allow blank lines inside `\author` (#6324).
2223 + Don't squelch space at end of emphasis and other inline elements;
2224 instead, move it outside the element (#6719).
2225 + Implement table cell alignment (#6698, Nils Carlson).
2226 + Implement column span support for tables (#6492, Nils Carlson).
2227 + Update list of block level tags (#6610).
2232 + Don't squelch space at end of emphasis and other inline elements;
2233 instead, move it outside the element (#6719).
2237 + Apply `.. class::` directly to following Header rather than creating
2238 a surrounding Div (#6699).
2242 + Allow empty dates in comments and tracked changes (#6726, Diego
2247 + Be less aggressive about using quotes for YAML values,
2248 allowing e.g. a quotation mark or bracket as long as it's not at the
2249 beginning of the line.
2250 + Use double quotes for YAML metadata (#6727).
2251 + Sort YAML metadata keys in Markdown output case-insensitive.
2256 + Support asciidoctor's block figures (#6538, argent0).
2260 + Fix spacing issue with list in definition list.
2261 When a list occurs at the beginning of a definition list definition,
2262 it can start on the same line as the label, which looks bad.
2263 Fix that by starting such lists with an `\item[]`.
2267 + Support intermediate table headers (#5314, Albert Krewinkel).
2268 + Support attributes on all table elements (Albert Krewinkel).
2269 + Render table footers if present (#6314, Albert Krewinkel).
2270 + Fix addition of `doc-biblioentry` role.
2271 + Support colspans and rowspans in HTML tables (#6312, Albert Krewinkel).
2275 + Support internal document links (#5541, Leonard Rosenthol).
2276 + Changed default link state to invisible (#6676, Leonard Rosenthol).
2280 + Better handle list items whose contents are lists (#5948, Michael
2281 Hoffmann). If the first element of a bulleted or ordered list is
2282 another list, then that first item would previously disappear if the
2283 target format is docx.
2284 + Separate adjacent tables (#4315). Word combines adjacent tables,
2285 so to prevent this we insert an empty paragraph between two
2290 + Don't force blank line after headings (#6554).
2292 * OpenDocument writer:
2294 + Implement table cell alignment (#6700 Nils Carson, Mauro Bieg).
2295 + New table cell support with row and column spans (#6682, Nils Carson).
2296 + Syntax highlighting for inline code (#6711, niszet).
2298 * Add Text.Pandoc.Citeproc module, exporting `processCitations`
2299 [API change]. This depends on several other, unexported
2300 modules under Text.Pandoc.Citeproc.
2302 * Add module Text.Pandoc.Writers.CslJson, exporting `writeCslJson`.
2305 * Add module Text.Pandoc.Readers.CslJson, exporting `readCslJson`.
2308 * Add module Text.Pandoc.Readers.BibTeX, exporting `readBibTeX` and
2309 `readBibLaTeX`. [API change]
2311 * Text.Pandoc.Filter: Add `CiteprocFilter` constructor to Filter.
2312 [API change] This runs the processCitations transformation.
2313 We need to treat it like a filter so it can be placed
2314 in the sequence of filter runs (after some, before others).
2315 In FromYAML, this is parsed from `citeproc` or `{type: citeproc}`,
2316 so this special filter may be specified either way in a defaults file
2317 (or by `citeproc: true`, though this gives no control of positioning
2318 relative to other filters).
2320 * Add new exported module Text.Pandoc.Writers.AnnotatedTable [API change]
2321 (#6655, Christian Despres). This module (which should generally
2322 be imported qualified to avoid name conflicts) provides a
2323 `Table` type that mirrors the structure of a pandoc `Table`,
2324 but with added inferred information so that the writers do not have to
2325 lay out tables themselves. The `toTable` and `fromTable` functions convert
2326 between an annotated `Table` and a regular pandoc `Table`. In addition to
2327 producing a `Table` with coherent and well-formed annotations, the
2328 `toTable` function also normalizes its input table like the table
2329 builder does. Tests ensure that `toTable` normalizes tables exactly
2330 like the table builder, and that its annotations are coherent.
2332 * Text.Pandoc.Logging:
2334 + Remove unused `CouldNotParseYamlMetadata` constructor for `LogMessage`
2336 + Add `CiteprocWarning` constructor to `LogMessage` [API change].
2338 * Text.Pandoc.Readers.Metadata: export `yamlBsToRefs` [API change].
2339 These allow specifying an id filter so we parse only references
2340 that are used in the document.
2342 * Text.Pandoc.Parsing:
2344 + Export ParseError [API change].
2345 + Add `stateInNote` and `stateNoteNumber` to `ParserState`
2346 [API change]. These are used to populate note numbers for citation
2349 * Fix apparent typos in sample.lua (#6729, William Lupton).
2350 Also make the writer less aggressive in escaping quotes.
2352 * Text.Pandoc.Options:
2354 + `defaultMathJaxURL`: use `tex-chtml-full` instead of `tex-mml-chtml`
2355 (#6599, Kolen Cheung). This drops the MathML support (which we
2356 don't need for HTML math rendering) and includes the full JavaScript,
2357 which makes it possible to use `--self-contained` (though there may
2358 still be issues if the required math fonts aren't available). This
2359 change should also reduce latency in pages with lots of formulas.
2360 + Add `/tex-chtml-full.js` to `defaultMathJaxURL` (#6593) Previously we
2361 added this in processing command line options, but not in processing
2362 defaults files, which was inconsistent.
2364 * epub.css: Fix cover page selectors and add note explaining their use
2367 * Add data files needed for Text.Pandoc.Citeproc: these include
2368 `default.csl` in the data directory and a `citeproc` directory that
2369 is only used at compile-time for biblatex localizations. Note that we've
2370 added `file-embed` as a mandatory rather than a conditional
2371 dependency, because of the biblatex localization files.
2375 + Add SimpleTable for backwards compatibility (#6575, Albert Krewinkel).
2376 A new type `SimpleTable` is made available to Lua filters. It is
2377 similar to the `Table` type in pandoc versions before 2.10;
2378 conversion functions from and to the new Table type are provided.
2379 Old filters using tables now require minimal changes and can use, e.g.,
2381 if PANDOC_VERSION > {2,10,1} then
2382 pandoc.Table = pandoc.SimpleTable
2387 function Table (tbl)
2388 tbl = pandoc.utils.to_simple_table(tbl)
2390 return pandoc.utils.from_simple_table(tbl)
2393 to work with the current pandoc version.
2395 + Make `attr` argument optional in `Table` constructor (Albert Krewinkel).
2396 This changes the Lua API. It is highly unlikely for this change to affect
2397 existing filters, since the documentation for the new Table constructor
2398 (and type) was incomplete and partly wrong before. The Lua API is now
2399 more consistent, as all constructors for elements with attributes now
2400 take attributes as the last parameter.
2404 * Add a dedicated Citations section which consolidates the information
2405 the manual used to contain about citation processing, and incorporates
2406 some information formerly found in the pandoc-citeproc man page.
2407 + Add note about lualatex using `selnolig`.
2408 + Remove duplicate `seriespage` (#6568, Blake Eryx).
2409 + Remove lists of support extensions for markdown variants (#6604).
2410 Instead, offer the advice to use `--list-extensions=FORMAT`.
2411 + Fix position of attributes in header (Albert Krewinkel).
2412 + Delete obsolete section on compact and loose lists (#6684).
2415 * doc/lua-filters.md:
2417 + Add info on how to debug Lua filters (#6732, Ian Max Andolina).
2418 + Document Underline type and constructor (Albert Krewinkel).
2419 + Document `body` field (Albert Krewinkel).
2420 + Add missing header attribute
2421 + Add missing Link.title field (Albert Krewinkel).
2422 + Make the setting-the-date example conditional (the-solipsist).
2423 This makes the example a bit more realistic.
2424 + Remove outdated link table example.
2428 + Add section on tables (Albert Krewinkel).
2429 + Add section on handling of unknown directives (Albert Krewinkel).
2431 * CONTRIBUTING.md: fix typo (#6584, Dmitry Volodin).
2433 * Use golden test framework for command tests. This means that
2434 `--accept` can be used to update expected output.
2436 * Use the `smart` extension when generating pandoc's man page (#6613).
2438 * Release-candidate: don't build windows i386.
2439 So far we haven't been able to figure out how to get
2440 stack to use a 32-bit ghc.
2442 * Use `null` instead of deprecated `Builder.isNull`.
2446 + Fix macospkg target to fetch target from S3 artifacts.
2447 + Fix pandoc-templates target to include all partials.
2449 * Remove duplicated dependency in pandoc.cabal (#6591, Felix Yan).
2451 * Sort build depends in pandoc.cabal alphabetically (#6691,
2454 * Add .travis.yml for macos release candidate build (#6622).
2455 We need to build the release candidate on Travis rather
2456 than GitHub actions, because GH has macos 10.15, and
2457 binaries compiled on that OS will not work with 10.13.
2458 This build is only triggered on `rc/*` branches.
2460 * Remove instructions for building pandoc-citeproc from CI and
2461 release binary build instructions. We will no longer distribute
2464 * Fix math rendering in trypandoc (this broke after
2465 commit d8ad766d17603784b86fc5c2e1b22864125d04d1).
2467 * Use latest versions of skylighting, commonmark (#6589),
2468 comonmark-extensions, commonmark-pandoc, texmath.
2470 * Relax version bounds for hslua, hslua-module-text, bytestring.
2472 * Use released pandoc-types 1.22. This changes the JSON
2473 encoding slightly for the new table types introduced
2474 in 1.21, so they're more consistent with the rest.
2475 Developers of libraries for pandoc filters will want
2478 * Fix hlint suggestions, update hlint.yaml (#6680, Christian Despres).
2480 * Code cleanup (#6678, Joseph C. Sible).
2482 * Add haddocks to functions in Text.Pandoc.Writers.Shared (Albert
2485 * Remove duplicate `tshow` definition.
2487 * Linux release candidate build: use ghc-musl container. This simplifies
2488 our build process (over using a customized alpine container).
2491## pandoc 2.10.1 (2020-07-23)
2493 * Add `commonmark_x` output format. This is `commonmark` with a number
2494 of useful pandoc extensions enabled.
2496 * Many more extensions now work with `commonmark` and `gfm`.
2498 * Add generic `attributes` extension. This allows attributes to
2499 be added to any block or inline element in a uniform way. Since
2500 the Pandoc AST doesn't include attributes on each element type,
2501 the attributes will sometimes be added by creating a surrounding
2502 Div or Span container. Currently this extension is only
2503 compatible with the `commonmark` and `gfm` readers.
2505 To add an attribute to a block-level element, e.g. a paragraph,
2506 put it before the block:
2509 This is a paragraph.
2511 Multiple attributes may be used and will be combined:
2514 {.blue .warning key="val"}
2515 This is a paragraph.
2517 To add an attribute to an inline-level element, put it
2518 immediately after the element:
2520 *emphasized text*{.special}
2523 * Support `--number-sections` for docx output (#1413).
2527 + Support `\SIRange` reader (#6418, Emerson Harkin).
2528 + Support table col-span and row-span (#6311, Laurent P. René de Cotret).
2529 Supports `\multirow` and `\multicolumn`.
2530 + Support amsthm: `\newtheorem`, `\theoremstyle`, and theorem and
2531 proof environments, including labels and references. The only thing
2532 that is unsupported is the second optional argument, which causes
2533 numbering to be reset after the specified series is incremented.
2534 + Moved some code to T.P.LaTeX.Parsing. We need to reduce the size
2535 of the LaTeX reader to ease compilation on resource-limited systems.
2539 + Fix csv tables with multiline cells (#6549).
2540 + Fix spurious newlines in some attributes from directives.
2541 + Avoid extra newline in included code blocks.
2543 * Commonmark reader:
2545 + Switch from cmark-gfm to commonmark-hs for commonmark and gfm
2546 parsing. This avoids depending on a C library
2547 and allows us to support more pandoc extensions for
2548 `commonmark` and `gfm`.
2552 + Parse releaseinfo as metadata (#6542).
2556 + Only use `bCs/iCs` on runs with `rtl` or `cs` property (#6514, Nikolay
2558 + Code cleanup/refactoring (Nikolay Yakimov).
2560 * Org reader (Albert Krewinkel):
2562 + Respect export setting which disables entities
2563 MathML-like entities, e.g., `\alpha`, can be disabled with the
2564 `#+OPTION: e:nil` export setting (Albert Krewinkel).
2565 + Respect export setting disabling footnotes. Footnotes can be removed
2566 from the final document with the `#+OPTION: f:nil` export setting.
2567 + Respect tables-excluding export setting. Tables can be removed from
2568 the final document with the `#+OPTION: |:nil` export setting.
2572 + Move `asciify` out of `escapeString`. Otherwise `unsmartify`
2573 doesn't catch quotes that have already been turned to entities.
2574 + Add `writeCommonmark` (new exported function, API change).
2575 + Use unicode super/subscript characters when possible if the
2576 `superscript` or `subscript` extension or `raw_html` aren't available.
2577 + Render caption as following paragraph when `table_caption` extension
2579 + Use numerical labels for reference links that are longer
2580 than 999 characters or contain square brackets, for conformity
2581 with commonmark (#6560).
2583 * Commonmark writer:
2585 + Instead of using cmark-gfm, use `writeCommonmark` from the
2586 Markdown writer. This function calls the markdown writer
2587 with appropriate extensions and a few small modifications
2588 (e.g. not requiring backslashes before spaces inside
2589 super/subscripts). With this change `comonmark` and
2590 `gfm` output can be used with a wider selection of
2593 * Jira writer: keep image caption as alt attribute (#6529, Albert
2598 + Improve alt-text/caption handling for HTML5 (#6491, Albert Krewinkel).
2599 Screen readers read an image's `alt` attribute and the figure caption,
2600 both of which come from the same source in pandoc. The figure caption is
2601 hidden from screen readers with the `aria-hidden` attribute. This
2602 improves accessibility. For HTML4, where `aria-hidden` is not allowed,
2603 pandoc still uses an empty `alt` attribute to avoid duplicate contents.
2607 + Fix code highlighting with blank lines. Previously blank lines
2608 were simply omitted from highlighted code.
2609 + Escape starting periods in ms writer code blocks (#6505, Michael
2610 Hoffmann). If a line of ms code block output starts with a period (.),
2611 it should be prepended by `\&` so that it is not interpreted as a roff
2614 * Text.Pandoc.Extensions:
2616 + Add `raw_markdown` extension (which only affects `ipynb`
2618 + Trim down `githubMarkdownExtensions`.
2619 Previously it included all of the following, which make
2620 sense for the legacy `markdown_github` but not for `gfm`,
2621 since they are part of base commonmark and thus
2622 can't be turned off in `gfm`:
2624 - `Ext_all_symbols_escapable`
2625 - `Ext_backtick_code_blocks`
2626 - `Ext_fenced_code_blocks`
2627 - `Ext_space_in_atx_header`
2628 - `Ext_intraword_underscores`
2629 - `Ext_lists_without_preceding_blankline`
2630 - `Ext_shortcut_reference_links`
2632 These have been removed from `githubMarkdownExtensions`, though
2633 they're still turned on for legacy `markdown_github`.
2634 + Add `Ext_attributes` constructor for `Extension` [API change].
2636 * LaTeX template: use selnolig to selectively suppress ligatures with
2639 * Benchmark bytestring readers (Nikolay Yakimov).
2643 + Update using-the-pandoc-api.md (favonia).
2644 + Fix Typos in lua-filters.md (tajmone).
2645 + Rewrite Raw HTML/TeX section in MANUAL.txt to avoid duplicate
2646 headings for the extensions.
2647 + Fix typo in MANUAL.txt (Benjamin Wuethrich).
2648 + Remove duplicate 'titlepage' in MANUAL.txt (Blake Eryx).
2649 + CONTRIBUTING.md: Advertise the official nightlies in GitHub actions.
2650 Replaces #6500, thanks to @ickc.
2654## pandoc 2.10 (2020-06-29)
2656 * Use pandoc-types 1.21. This adds two things:
2658 + A native Underline constructor for Inline (#6277, Vaibhav Sagar).
2659 + More expressive types for tables (#1024, Christian Despres).
2660 Tables can now take attributes; and rowspans and colspans,
2661 column headers, multiple row headers, table head and foot
2662 can all be represented. (Note, however, that reader and
2663 writer support for these features is still lacking, so
2664 most users won't see any differences in table conversion
2665 yet. These changes just lay the foundation for further
2668 * Support new Underline element in readers and writers (#6277,
2671 * Support new Table type (Christian Despres).
2672 The Builder.simpleTable now only adds a row to the TableHead
2673 when the given header row is not null. This uncovered an
2674 inconsistency in the readers: some would unconditionally
2675 emit a header filled with empty cells, even if the header
2676 was not present. Now every reader has the conditional
2677 behaviour. Only the XWiki writer depended on the header row
2678 being always present; it now pads its head as necessary.
2680 * Add an option to disable certificate validation (#6156, Cédric Couralet,
2681 Cécile Chemin, Juliette Fourcot). This commit adds the option
2682 `--no-check-certificate`, which disables certificate checking when
2683 resources are fetched by HTTP.
2685 * Unify defaults and markdown metadata parsers (#6328, Nikolay
2686 Yakimov). Clean up code in Text.Pandoc.Readers.Metadata and
2687 properly handle errors in `yamlToMeta`. This fixes parsing
2688 of Boolean fields in metadata withinin defaults files and reduces
2693 + Implement `<procedure>` (#6442, Mathieu Boespflug).
2694 + Implement `<phrase>` (#6438, Mathieu Boespflug).
2695 + Treat envar and systemitem like code (#6435, Mathieu Boespflug).
2696 + Implement `<replaceable>` (#6437, Mathieu Boespflug)
2697 + Map `<simplesect>` to unnumbered section (#6436, Mathieu Boespflug).
2701 + Handle "label" element in section title (#6288).
2702 + Parse abstract element into metadata field of same name
2703 (#6480, Albert Krewinkel).
2705 * Jira reader (Albert Krewinkel):
2707 + Resolve multiple parsing problems, including issues with empty
2708 table cells, faulty recognition of closing emphasis characters, and
2709 parsing of image attributes (#6212, #6219, #6220).
2710 + Two consecutive markup chars are now parsed verbatim (#6343);
2711 styled text must not be empty.
2712 + Newlines are no longer allowed within styled text (#6325).
2713 + Links to anchors are now parsed as links (#6407).
2714 + Retain image attributes (#6234). Jira images attributes as in
2715 `!image.jpg|align=right!` are retained as key-value pairs. Thumbnail
2716 images, such as `!example.gif|thumbnail!`, are marked by a
2717 `thumbnail` class in their attributes.
2718 + Use Underline for inserted text (#6237). Previously, the span was
2719 marked with the non-standard class `inserted`.
2720 + Improve icon conversion for `(/)`, `(x)`, `(!)`, `(?)`
2721 `(+)`, `(-)`, `(off)`, `(*)`. (#6236, #6264).
2722 + Support citations, attachment links, and user links (#6231, #6238,
2724 + Resolve parsing issues of blockquote, color (#6233, #6235).
2728 + Parse attributes into table attributes.
2729 + Support `<bdo>` (#5794, Tristan de Cacqueray).
2730 + Add `summary` to list of block-level HTML tags (#6385).
2731 This improves support for summary/details inside Markdown.
2732 NOTE: you need to include a blank line before the closing
2733 `</details>`, if you want the last part of the content to
2734 be parsed as a paragraph.
2735 + Fix parsing unclosed th elements in a table (#6247).
2737 * Commonmark reader: Implement `implicit_figures` extension (#6350).
2741 + Fix inline code in lists (#6284, Nikolay Yakimov).
2742 Previously inline code containing list markers was sometimes
2744 + Don't require blank line after grid table (#6481).
2745 This allows grid tables to be enclosed in fenced divs with no
2746 intervening blank lines.
2750 + Don't parse beyond `\end{document}` (#6380).
2751 This required some internal changes to `\subfile` handling.
2752 + Better handling of `\lettrine`. SmallCaps instead of Span
2753 for the part after the initial capital. Ensure that both
2754 arguments are parsed, so that in Markdown both
2755 are treated as raw LateX. (Closes #6258.)
2757 * Org reader (Albert Krewinkel):
2759 + Recognize images with uppercase extensions (#6472).
2760 + Keep unknown keyword lines as raw org. The lines of unknown
2761 keywords, like `#+SOMEWORD: value` are no longer read as metadata,
2762 but kept as raw `org` blocks. This ensures that more information
2763 is retained when round-tripping org-mode files; additionally,
2764 this change makes it possible to support non-standard org
2765 extensions via filters.
2766 + Unify keyword handling. Handling of export settings and other
2767 keywords (like `#+LINK`) has been combined and unified.
2768 + Support `LATEX_HEADER_EXTRA` and `HTML_HEAD_EXTRA`
2769 settings. These export settings are treated like their non-extra
2770 counterparts, i.e., the values are added to the `header-includes`
2772 + Allow multiple `#+SUBTITLE` export settings. The values of all
2773 lines are read as inlines and collected in the `subtitle`
2775 + Read `#+INSTITUTE` values as text with markup. The value is
2776 stored in the `institute` metadata field and used in the
2777 default beamer presentation template.
2778 + The behavior of the `#+AUTHOR` and `#+KEYWORD` export
2779 settings has changed: Org now allows multiple such lines
2780 and adds a space between the contents of each line. Pandoc
2781 now always parses these settings as meta inlines; setting
2782 values are no longer treated as comma-separated lists.
2783 Note that a Lua filter can be used to restore the previous
2785 + Read description lines as inlines (#6485). `#+DESCRIPTION` lines
2786 are now treated as text with markup. If multiple such
2787 lines are given, then all lines are read and separated by soft
2789 + Honor tex export option (#4070). The `tex` export option can be set
2790 with `#+OPTION: tex:nil` and allows three settings:
2791 `t` (the default) causes LaTeX fragments to be parsed as TeX or added
2792 as raw TeX. `nil` removes all LaTeX fragments from the document.
2793 `verbatim` treats LaTeX as text.
2798 + Pass arbitrary attributes through in code blocks (#6465).
2799 Exceptions: name (which becomes the id), class (which becomes the
2800 classes), and number-lines (which is treated specially to fit
2801 with pandoc highlighting).
2802 + Handle `date::` directive (#6276).
2804 * Textile reader: support `pre.` for code blocks (#6454).
2808 + Implement `raw_markdown` extension (#5408). Specifying
2809 `-f ipynb+raw_markdown` will cause Markdown cells
2810 to be represented as raw Markdown blocks, instead of being
2811 parsed. This is not what you want when going from `ipynb`
2812 to other formats, but it may be useful when going from `ipynb`
2813 to Markdown or to `ipynb`, to avoid semantically insignificant
2814 changes in the contents of the Markdown cells that might
2815 otherwise be introduced.
2816 + Handle application/pdf output as image (#6430).
2817 + Properly handle image/svg+xml as an image (#6430).
2821 + Distinguish between docx parsing and docx container unpacking errors.
2825 + Fix `gfm_auto_identifiers` so that `-` is not replaced by `_` (#6335).
2829 + Add nested syntax highlighting (#6256, Vlad Hanciuta).
2830 Nested syntaxes are specified like this:
2836 The preformatted code block parser has been extended to check if the
2837 first attribute of the block is not a `key=value` pair, and in that
2838 case it will be considered as a class.
2841 * Jira writer (Albert Krewinkel):
2843 + Always escape braces (#6478). Braces are now always escaped, even
2844 within words or when surrounded by whitespace. Jira and
2845 Confluence treat braces specially.
2846 + Convert Underline to inserted text (`+inserted+`).
2847 + Add image attributes (#6234). Image attributes are added
2848 to the output as image parameters. If the image has a
2849 class "thumbnail", then a thumbnail image is generated;
2850 all other attributes are discarded in this case.
2854 + Ensure that `-M csquotes` works even in fragment mode (#6265).
2855 + Escape `^` specially for listings (#6460).
2856 + Create hypertarget for links with identifier (#6360).
2857 + Distinguish between single and double quotes when using enquote
2858 package (#6457, dbecher-ito).
2859 + Add support for customizable alignment of columns in beamer (#6331,
2861 + Add support for customizable alignment of columns in beamer
2862 (#4805, #4150, andrebauer).
2866 + Use CSS in favor of `<br>` for display math (#6372)
2867 Some CSS to ensure that display math is
2868 displayed centered and on a new line is now included
2869 in the default HTML-based templates; this may be
2870 overridden if the user wants a different behavior.
2874 + Clean-up Div handling (Albert Krewinkel).
2878 + Enable column and row bands for tables (#6371).
2879 This change will not have any effect with the default style.
2880 However, it enables users to use a style (via a reference.docx)
2881 that turns on row and/or column bands.
2883 * OpenDocument (and ODT) writer:
2885 + Add custom-style "Abstract" in metadata abstract.
2886 This ensures that the abstract is rendered with style Abstract.
2887 + Enable custom-style attribute on a Div.
2888 This allows you to apply a custom style to contained paragraphs.
2892 + Add id of figure to enclosed image.
2893 + Add personname element to docbook author (#6244).
2897 + Properly handle cover-image containing spaces (#6391).
2901 + Ensure consistent padding for pipe tables (#6240).
2902 + Avoid unnecessary escapes before intraword `_` when
2903 `intraword_underscores` extension is enabled (#6296).
2907 + Properly handle images with same alt text (#6194).
2908 Previously we created duplicate references for these in rendering RST.
2912 + Add blank line after Div (#6308).
2916 + Support Haddock tables (Joe Hermaszewski).
2917 See this PR on Haddock for details on the table format:
2918 <https://github.com/haskell/haddock/pull/718>.
2920 * PowerPoint writer (Jesse Rosenthal):
2922 + Write math input verbatim in speaker notes (#6301).
2923 OMML in speaker notes would lead to corrupt PowerPoint output. We now
2924 output the OMML verbatim as LaTeX in the speaker notes.
2926 * LaTeX template: Make polyglossia package options list-aware
2927 (#6444, Frederik Elwert).
2929 * Reveal.js template:
2931 + Update template for reveal.js 4.0.0 (#6390, Salim B).
2932 + Update template with newly available options (#6347, Jake Zimmerman).
2933 + Use CDN version of revealjs v4 by default (#6408).
2935 * opendocument template: Add abstract and subtitle to opendocument
2938 * reference.odt: clean up styles. Add Abstract.
2939 Change Author, Date to centered paragraphs with no character
2942 * epub.css: wrap overlong lines in highlighted code blocks (#6242).
2943 This fixes a problem in iBooks v2.4 with our earlier
2944 horizontally scrolling code blocks. The problem seems to
2945 be a bug in iBooks, not pandoc, but since iBooks is a major
2946 target we're changing pandoc's default behavior so that
2947 pandoc-produced epubs work on that platform.
2951 + Use `--enable-local-file-access` in invoking `wkhtmltopdf` (#6474).
2952 `wkhtmltopdf` changed in recent versions to require this for
2953 access to local files. This fixes PDF via HTML5 with `--css`.
2954 + Send verbose output to stderr, not stdout (#6483).
2956 * Text.Pandoc.MIME: Fix MIME type for TrueType fonts in EPUBs
2957 (#6464, Michael Reed).
2959 * Text.Pandoc.Shared:
2961 + `makeSections`: omit number attribute when unnumbered class
2962 is present (#6339). Previously the attribute was included but given
2963 an empty value, and this caused the table of contents creation
2964 functions in Text.Pandoc.Writers.Shared to think these items had
2965 numbers, which meant that they were included in the TOC even if the
2966 `unlisted` class was used.
2967 + Deprecate `underlineSpan` in Shared in favor of
2968 `Text.Pandoc.Builder.underline` (Vaibhav Sagar).
2969 + `renderTags'`: use self-closing tag for col element (#6295).
2971 * Text.Pandoc.UUID: Fix `getRandomUUID`, which previously would
2972 return the same value twice in a row. Make `getRandomUUID`
2973 polymorphic in PandocMonad. Remove `getUUID` (#6228, Joseph C. Sible).
2975 * Text.Pandoc.Class: Generalize `PandocIO` functions to `MonadIO`.
2977 * Fixed Katex standalone script (#6399, Lucas Escot).
2978 Global macros are now persistent when using the HTML Writer with the
2981 * Lua subsystem (Albert Krewinkel):
2983 + Use new type PandocLua for all pandoc Lua operations (API change).
2984 The new type `PandocLua` is an instance of the `PandocMonad` typeclass
2985 and can thus be used in a way similar to `PandocIO`.
2986 + Use PandocError for exceptions in Lua subsystem (API change).
2987 The PandocError type is used throughout the Lua subsystem. All Lua
2988 functions throw an exception of this type if an error occurs. The
2989 `LuaException` type is removed and no longer exported from
2990 `Text.Pandoc.Lua`. In its place, a new constructor `PandocLuaError`
2991 is added to PandocError.
2993 * Lua filters: improve error messages for failing filters (#6332,
2994 Albert Krewinkel). Print the Lua error properly instead of
2995 displaying their `show` string.
2997 * Use latest skylighting. This fixes a bug with lua multiline
2998 comments (and may improve handling of other syntaxes as well).
2999 IT also adds `aria-hidden="true"` to the empty a elements, which
3000 helps people who use screen readers.
3002 * Use latest texmath.
3004 * Require latest doctemplates 0.8.2.
3005 This adds support for template pipes `first`, `rest`,
3006 `last`, `allbutlast`.
3008 * Revert 0e48a02 and dependency on base-noprelude, which hasn't
3009 been updated for ghc 8.10 (see #6187).
3011 * Dependency adjustments:
3013 + Allow haddock-library 1.9.x.
3014 + Allow hslua 1.1 (#6243, Felix Yan).
3015 + Allow base64-bytestring 1.1.
3016 + Use latest jira-wiki-markup.
3017 + Allow http-client 0.7.
3018 + Allow tasty 1.3.x.
3019 + Allow aeson 1.5 (#6400, Felix Yan).
3020 + Remove unused dependency `vector` (#6462, Laurent P. René de Cotret).
3021 + Bump QuickCheck upper bound.
3023 * Significant code cleanup and simplification (Joseph C. Sible, #6223,
3024 #6209, #6225, #6229, #6226, #6340).
3026 * Remove unnecessary hlint ignores (#6341, Joseph C. Sible).
3028 * Remove obsolete RelaxedPolyRec extension (#6487, Nikolay Yakimov).
3030 * trypandoc improvements (Mike Tzou):
3032 + Add standalone option to the command text (#6210).
3033 + Update third party libraries.
3037 + Clarify template partial naming (#6476, Mauro Bieg).
3038 + Describe `jira` as "Jira/Confluence wiki markup" (#6351, Albert
3039 Krewinkel). In the past, Jira's wiki markup was also used by -- and
3040 could be imported into -- Atlassian Confluence.
3041 + Add link to print-css.rocks (#6272, Mauro Bieg).
3042 + Clarify pipe table column width adjustment (#6254).
3043 + Fix ATX header syntax.
3044 + Fix misleading note about image size conversions (#6353).
3045 + Update links to reveal.js documentation (#6386, Salim B).
3046 + Separate adjacent verbatim code blocks (#6307, tom-audm).
3050 + Document behavior of `smart` extension (#4387, Albert Krewinkel).
3051 + Describe all supported export options in detail.
3055 + Fix description of BulletList Lua type (Levi Gruspe).
3056 + Use pandoc.system module in TikZ example (Albert
3057 Krewinkel). Showcase temporary directory handling with
3058 `with_temporary_directory` and `with_working_directory`.
3060 * INSTALL.md: fix FreeBSD port link (#6422, Mo).
3061 The FreeBSD port was renamed from pandoc to hs-pandoc in 2010.
3062 The old pandoc port is still at version 1.5.1.1
3064 * Propagate `(DY)LD_LIBRARY_PATH` in tests (#6376, Lila).
3066 * Bump `cabal-version` to 2.2 (#6377).
3068 * Make it possible to compile using Stack on NixOS (#6439, Mathieu
3071 * CI action to check for commit message length (Nikolay Yakimov, #6398).
3074## pandoc 2.9.2.1 (2020-03-23)
3076 * Markdown reader: Fix table alignment when heading begins with t (#6153).
3077 Due to a typo (`t` instead of `\t`) we were center aligning column
3078 headings that begin with a lowercase `t`!
3080 * Text.Pandoc.Readers.Roff:
3082 + Fix parsing of `\.` in man/ms readers (#6175).
3083 Previously due to a typo it was being parsed as `` ` ``.
3084 + Fix parsing of `\'` in man/ms readers (#6175). It was being parsed
3087 * Jira reader (Albert Krewinkel):
3089 + Fix parsing of tables without preceding blankline (#6198).
3090 A bug was fixed which caused faulty parsing if a table was not
3091 preceded by a newline and the first table cell had no space
3092 after the initial `|` characters.
3093 + Fix parsing of strikeout, emphasis (#6196). A bug was fixed which
3094 caused non-emphasized text containing digits and/or non-special
3095 symbols (like dots) to sometimes be parsed incorrectly.
3096 + Support colored inline text, indented lists (#6183, #6184).
3100 + Fix definition lists so indent even when paragraph indent is
3101 set to 0 (as is the default). Also ensure indent for display math
3102 that falls back to TeX.
3103 + Use `.QS/.QE` instead of `.RS/.RE` for block quotes.
3105 * EPUB writer: fix regression on detection of front/back/bodymatter
3106 (#6170). This bug caused sections with epub:type `dedication` to be
3107 misplaced in bodymatter instead of frontmatter as specified
3108 in the manual. The same problem would affect other epub:types.
3109 The pattern matching needed to be changed with the use of
3112 * AsciiDoc writer: remove redundant `otherwise` guard in
3113 `inlineToAsciiDoc` (#6146, Ryan Scott).
3115 * Text.Pandoc.Class:
3117 + Fix missing import when data files are not embedded (Albert Krewinkel).
3118 + Subdivide Text.Pandoc.Class into small unexported modules
3119 and ensure that all functions have Haddock documentation (#6106,
3121 + Finer grained imports of Text.Pandoc.Class submodules (#6203, Albert
3124 * Text.Pandoc.XML: Add to list of HTML5 attributes:
3125 `allow`, `autocapitalize`, `decoding`, `enterkeyhint`,
3126 `imagesizes`, `imagesrcset`, `loading`.
3128 * Use implicit Prelude (#6187, Albert Krewinkel).
3129 The previous behavior was introduced as a fix for #4464. It seems that
3130 this change alone did not fix the issue, and `stack ghci` and `cabal
3131 repl` only work with GHC 8.4.1 or newer, as no custom Prelude is loaded
3132 for these versions. Given this, it seems cleaner to revert to the
3135 * Always use custom prelude (#6187, Albert Krewinkel).
3136 Previously, the custom prelude was used only with older GHC versions, as
3137 a workaround for problems with ghci. The ghci problems are resolved by
3138 replacing package `base` with `base-noprelude`, allowing for consistent
3139 use of the custom prelude across all GHC versions.
3141 * Remove outdated checks for no longer supported base versions
3144 * PDF via wkhtmltopdf: put user-specified options last (#6171).
3145 Certain options (e.g. `cover`) need to come after flags on
3148 * Text.Pandoc.App: set resource path at the beginning so it can affect
3149 things like include-in-header (#5982).
3151 * Change macOS release candidate CI process so that notarized
3152 packages can be produced (#6169).
3154 * Make MANUAL more explicit about nonbreaking space handling by
3155 `all_symbols_escapable` (#6154, Fabien Schurter).
3157 * trypandoc (Mike Tzou):
3159 + Add checkbox for standalone option (#6189).
3160 + Use strict mode for JavaScript code (#6188).
3161 + Fetch resources over https (#6188).
3162 + Remove unnecessary attributes on style, script elements (#6188).
3164 * Use details tag to make GitHub releases changelog collapsible.
3166 * Update filter code in doc/filters.md so it works with latest pandoc
3169 * linux/Dockerfile: upgrade to alpine 3.11 (#6180, Albert Krewinkel).
3170 This is used to build the static linux binaries.
3173## pandoc 2.9.2 (2020-02-15)
3175 * Add `csv` as an input format (#6100). The CSV table is converted into a
3176 pandoc simple table. A new module Text.Pandoc.Readers.CSV
3177 exports `readCSV` [API change].
3179 * Introduce new format variants for JATS writer (#6014, Albert Krewinkel):
3181 - `jats_archiving` for the "Archiving and Interchange Tag Set",
3182 - `jats_publishing` for the "Journal Publishing Tag Set", and
3183 - `jats_articleauthoring` for the "Article Authoring Tag Set."
3185 The `jats` output format is now an alias for `jats_archiving`.
3186 The module Text.Pandoc.Writers.JATS now exports
3187 `writeJatsArchiving`, `writeJatsPublishing`, and
3188 `writeJatsArticleAuthoring`, as well as the legacy
3189 `writeJATS` [API change].
3191 * `--defaults`: Support `bibliography` and `csl` fields.
3192 Move `addMeta` from Text.Pandoc.App.CommandLineOptions to
3193 Text.Pandoc.App.Opt (internal change).
3195 * Add timing info for filters in `--verbose` mode (#6112).
3196 When verbose mode is specified (verbosity == INFO), print a
3197 notice when running a filter and when a filter completes (including
3202 + Allow `&` in LaTeX citation keys (#6110).
3203 + Improve caption and label parsing.
3204 + Don't emit empty Span elements for labels.
3205 + Put tables with labels in a surrounding Div.
3206 + Resolve `\ref` to table numbers (#6137).
3207 + Skip comments in more places where this is needed (#6114).
3208 + Allow beamer overlays for all commands in all raw tex (#6043).
3209 This affects parsing of raw tex in LaTeX and in Markdown and
3211 + Improve parsing of raw environments (#6034). If parsing fails
3212 in a raw environment (e.g. due to special characters like unescaped
3213 `_`), try again as a verbatim environment, which is less sensitive to
3214 special characters. This allows us to capture special environments
3215 that change catcodes as raw tex when `-f latex+raw_tex` is used.
3219 + Add highlight directive (#6140, Lucas Escot).
3223 + Prevent triple `[[[` which confuses MediaWiki (#6119).
3227 + Don't parse `data-id` as `id` attribute. And similarly don't
3228 parse any `data-X` as `X` when `X` is a valid HTML attribute.
3232 + Simplify parsing of sub- and superscripts (#6127, Albert Krewinkel).
3233 Speeds up parsing of single-word, markup-less sub- and superscripts.
3237 + Group biblatex citations even with prefix and suffix (#5849, Ethan
3238 Riley). Previously biblatex citations were only grouped if there
3239 was no prefix. This patch allows them to be grouped in subgroups split
3240 by prefixes and suffixes, which allows better citation sorting.
3241 + Fix regression in handling of columns in beamer slides (#6033).
3242 Columns in title slides were causing problems with
3244 + Fix duplicate frame classes in LaTeX/Beamer output (#6107).
3248 + Fix duplicate attributes on headings (#6062), regression from 2.7.x.
3249 + Fix `--number-offset` with HTML TOC. Eventually it would be worth
3250 adding a parameter to `makeSections` so this could be done at that
3251 level; then it would also affect other writers that construct
3253 + reveal.js: restore old behavior for 2D nesting (#6032).
3254 The fix to #6030 actually changed behavior, so that the
3255 2D nesting occurred at slide level N-1 and N, instead of
3256 at the top-level section. This commit restores the v2.7.3 behavior.
3257 If there are more than 2 levels, the top level is horizontal
3258 and the rest are collapsed to vertical.
3259 + reveal.js: ensure that pauses work even in title slides (#5819).
3263 + Fix regression: spurious dots in markdown_mmd metadata output (#6133).
3267 + Fix regression with Compact style on tight lists (#6072).
3268 Starting in 2.8, the docx writer no longer distinguishes between tight
3269 and loose lists, since the Compact style is omitted. This is a
3270 side-effect of the fix to #5670, as explained in the changelog. This
3271 patch fixes the problem by extending the exception currently offered to
3272 Plain blocks inside tables to Plain blocks inside list items.
3276 + Fix output of table headers (Albert Krewinkel, #6035).
3278 * Add Text.Pandoc.Image with unexported svgToPng.
3280 * Text.Pandoc.XML: Export `html5Attributes`, `html4Attributes`,
3281 `rdfaAttributes` (formerly unexported in Text.Pandoc.Writers.HTML).
3284 * Text.Pandoc.Shared: Export a new function `findM` (#6125,
3287 * Text.Pandoc.Logging: Add `RunningFilter`, `FilterCompleted`
3288 constructors to LogMessage [API change].
3290 * Text.Pandoc.CSV: fix bug in CSV parser; previously an extra blank record
3291 would sometimes be inserted at the end.
3293 * LaTeX template: add space option to xeCJK with PassOptionsToPackage
3294 (#6002). Otherwise we can get a clash with documentclasses that
3295 already load the package.
3299 + Allow filtering of element lists (#6038, Albert Krewinkel). Lists of
3300 Inline and Block elements can now be filtered via `Inlines` and
3301 `Blocks` functions, respectively. This is helpful if a filter
3302 conversion depends on the order of elements rather than a single
3303 element. For example, the following filter can be used to remove all
3304 spaces before a citation:
3306 function isSpaceBeforeCite (spc, cite)
3307 return spc and spc.t == 'Space'
3308 and cite and cite.t == 'Cite'
3311 function Inlines (inlines)
3312 for i = #inlines-1,1,-1 do
3313 if isSpaceBeforeCite(inlines[i], inlines[i+1]) then
3320 + Add methods `insert`, `remove`, and `sort` to pandoc.List
3321 (Albert Krewinkel). Example of use:
3323 local numbers = pandoc.List {2, 3, 1}
3324 numbers:sort() -- numbers is now {1, 2, 3}
3325 + Make `pandoc.List` a callable constructor (Albert Krewinkel).
3326 It is now possible to construct a new List via
3327 `pandoc.List()` instead of `pandoc.List:new()`.
3328 + Add tests for pandoc.List module (Albert Krewinkel).
3330 * Text.Pandoc.App.CommandLineOptions: Change `setVariable` to use `Text`
3331 instead of `String`. This avoids some unnecessary unpacking.
3333 * Use versioned directory for windows release zipfile.
3334 Also remove old `make-windows-installer.bat`, superseded by GitHub
3335 actions workflow, and modify `pandoc.wxs` for new paths.
3337 * Extensive code cleanup (#6141, #6128, #6129, #6130, #6123,
3338 #6105, 6102, #6117, #6124, #6115, #6116, #6111, Joseph C. Sible).
3340 * Fix hlint warnings (Albert Krewinkel).
3342 * Use latest doclayout, doctemplates (#6031). The new version of
3343 doclayout fixes a memory leak that affected `--include-in-header` with
3344 large files (and possibly other cases involving extremely long lines).
3346 * Use latest texmath.
3348 * Use latest skylighting and fix test suite (#6086).
3350 * sample.lua: Fix typo in descriptive comments (#6136, Caleb Maclennan).
3351 Fix typo in error message (#6135).
3353 * Add Docker and GH Actions instructions/links to INSTALL.md.
3355 * Update filter documentation (#6065). Improve cabal v2 instructions.
3356 Remove example using pandoc API directly (we have other
3357 docs for that and it was outdated).
3361 + Cross-link constructors and types (Albert Krewinkel).
3362 Thanks to @bpj for the idea.
3363 + Sort pandoc.List methods alphabetically (Albert Krewinkel).
3364 + Unify, fix anchors and internal links (#6061, Albert Krewinkel).
3365 Links and anchors now follow consistent conventions, like
3366 lowercase-only anchor names. This breaks some links to specific
3367 sections in the document, but will make it much easier to link
3368 documentation in the future.
3369 + Clarify filter function execution order (#6059, Albert Krewinkel).
3371 * In docs, update URLs and use `https:` wherever possible (#6090,
3374## pandoc 2.9.1.1 (2020-01-05)
3378 + Fix parsing bug affected indented code after raw HTML (#6009, #5360).
3382 + Fix regression in beamer slide structure with certain slide levels
3384 + Allow framebreaks for beamer's TOC (Heiko Schlittermann, #6012)
3385 + Properly handle unnumbered headings level 4+ (#6018).
3386 Previously the `\paragraph` command was used instead of
3387 `\paragraph*` for unnumbered level 4 headings.
3391 + Fix revealjs slide structure regression with certain slide levels
3393 + Add newlines to make slide show output more readable.
3397 + Remove extra spaces from table cells (Albert Krewinkel, #6024).
3399 * JATS template: Update JATS dtd (Arfon Smith, #6020). Use the archiving
3400 and interchange DTD rather than the more restrictive journal publishing
3401 DTD (which doesn't permit ext-link as a valid child).
3403 * Text.Pandoc.PDF: Fix `runTeXProgram` so that the input source is always
3404 overwritten (#6027). Previously it wasn't overridden if the file already
3405 existed, which led to bad results on subsequent runs when
3406 `pdf-engine-opt=-output-directory=` was used to specify an explicit temp
3409 * Text.Pandoc.BCP47: Change `getLang` to handle block-level contents
3410 (#6008). Some readers (e.g. RST) will populate the `lang` metadata field
3411 with block-level content. `getLang` has been modified to handle this.
3412 Previously in these cases the LaTeX writer would not properly set the
3413 "main language" of the document.
3415 * Fix `test/tables.org` (Albert Krewinkel).
3417 * Use HTTPS in copyright message (Felix Yan, #6010)
3420## pandoc 2.9.1 (2019-12-23)
3422 * Add Jira reader (Albert Krewinkel, #5556).
3424 * Jira writer: use jira-wiki-markup renderer (Albert Krewinkel,
3425 #5926). The following improvements are included in this change:
3427 + non-jira raw blocks are fully discarded instead of showing
3429 + table cells can contain multiple blocks;
3430 + unnecessary blank lines are removed from the output;
3431 + markup chars within words are properly surrounded by
3433 + preserving soft linebreaks via `--wrap=preserve` is
3436 Note that backslashes are rendered as HTML entities, as there
3437 appears no alternative to produce a plain backslash if it is
3438 followed by markup. This may cause problems when used with
3439 confluence, where rendering seems to fail in this case.
3441 * Fix regression with `--number-sections`. Starting with 2.8,
3442 `--number-sections` also had the effect of `--section-divs`,
3443 even if `--section-divs` was not specified.
3445 * Improved table of contents generation in markdown, RTF,
3446 commonmark, better handling cases where section headings are
3449 * Ensure that later default file values for `variable` replace
3450 earlier ones (5988).
3452 * HTML reader: Add `nav` to list of block-level tags.
3454 * Org reader (Albert Krewinkel):
3456 + Wrap named table in Div, using name as id (#5984).
3457 Tables which are given a name via `#+NAME:` or `#+LABEL:`
3458 are wrapped in an additional Div, with the name set as the
3460 + Report parsing errors properly.
3461 + Fix parsing problem for colons in headline (#5993).
3463 * Text.Pandoc.PDF: Ensure UTF8 when printing source in
3464 `--verbose` mode, avoiding an error on platforms that
3465 default to something other than UTF-8 (#5997).
3467 * Text.Pandoc.Templates: Strip directory before trying to find
3468 partial in data files (#5987).
3470 * Text.Pandoc.Shared: Improve `makeSections` so we don't get
3471 doubled "number" attributes in EPUB output (or anywhere
3474 * Added tests for `--toc` and `--section-divs`.
3476 * Text.Pandoc.MIME: Added glsl MIME type for WebGL maps (#6000,
3479 * MANUAL: A bit clearer explanation for `--base-header-level`.
3480 We now say exactly how to translate between the deprecated
3481 `--base-header-level` and `--shift-heading-level-by`.
3485 + Remove spurious dot in title (#5996, Mauro Bieg).
3486 + Replace metadata example with image centering (#6004,
3487 Albert Krewinkel). Thanks to @efx for proposing this filter.
3490## pandoc 2.9 (2019-12-11)
3492 * Text.Pandoc.Templates [API change]
3494 + Add Monad wrappers `WithDefaultPartials` and `WithPartials`.
3495 Wrapping these around an instance of `PandocMonad` gives
3496 us different instances of `TemplateMonad`, with different
3497 search behavior in retrieving partials.
3498 To compile a template and limit partial search to pandoc's
3499 data files, use `runWithDefaultPartials (compileTemplate ...)`.
3500 To compile a template and allow partials to be found locally
3501 (either on the file system or via HTTP, in the event that
3502 the main template has an absolute URL), ue
3503 `runWithPartials (compileTemplate ...)`.
3504 + Export `getTemplate`, which seeks a template locally,
3505 or via HTTP if the template has an absolute URL, falling
3506 back to the data files if not found.
3507 + Export `compileDefaultTemplate` -- does `getDefaultTemplate`
3508 and compiles the result, raising an error on failure.
3510 * Text.Pandoc.Class [API change]
3512 + Remove `TemplateMonad` instances for `PandocIO` and `PandocPure`.
3513 These were too limiting and caused a bug whereby a local
3514 partial could be used even when the default template was requested.
3515 We now rely on instances provided in the Templates module.
3517 * Text.Pandoc.App.OutputSettings: Simplify template retrieval code.
3519 * ConTeXt template: Adjust to title formatting (#5949, Denis Maier).
3520 Add `\setupinterlinespace` to `title`, `subtitle`, `date` and `author`
3521 elements: otherwise longer titles that run over multiple lines will look
3522 squashed as `\tfd` etc. won't adapt the line spacing to the font size.
3524 * reveal.js template: Add title-slide-attributes variable (#5981,
3527 * More informative JSON parse error (#5973).
3529 * Use external emojis package (forked from pandoc). Removed emoji data
3530 in Text.Pandoc.Emoji.
3532 * Fix regression in `makeSections` (#5965).
3533 Previously `hierarchicalize` (the ancestor of `makeSections`) would put
3534 header attributes on the containing Div. In 2.8 this behavior changed,
3535 which broke some tools depending on pandoc. Here we roll back this change,
3536 so that attributes again migrate from the header to the containing Div when
3537 `makeSections` is run. Note that attributes are retained on the header as
3538 well (unlike before) -- with the exception of the `id` attribute, which of
3539 course cannot be duplicated.
3541 * Fix `--toc-depth` regression in 2.8 (#5967).
3543 * Use doctemplates 0.8. Rename template 'filters' as 'pipes'
3544 to avoid confusion with the other notion of filter used by pandoc.
3546 * Fix README.md so that relative links from manual become absolute.
3547 Previously they'd be broken links when viewed on GitHub or Hackage.
3548 So we add the base URL for the pandoc manual.
3550 * Document display math syntax in manual.
3552## pandoc 2.8.1 (2019-12-05)
3554 * Add `ascii_identifiers` as a supported extension for `markdown`.
3555 This fixes a regression in 2.8.
3557 * Fix regression with behavior of `--variable` (#5962).
3558 Previously `-Vfoo=1 -Vfoo=2` would produce a list value for foo;
3559 with 2.8 it produced just `2`. This commit restores the earlier
3562 * Roll back part of of `--shift-heading-level-by` change (#5957).
3563 With positive heading shifts, starting in 2.8 this option
3564 caused metadata titles to be removed and changed to regular
3565 headings. This behavior is incompatible with the old
3566 behavior of `--base-header-level` and breaks old workflows,
3567 so we have rolled back the change. Note that there is now an
3568 asymmetry in positive and negative heading level shifts:
3569 With positive shifts, the metadata title stays the same and
3570 does not get changed to a heading in the body, while with
3571 negative shifts, a heading can be converted into the
3574 * Text.Pandoc.Shared: Fix `makeSections` so it doesn't turn
3575 column Divs into sections.
3577 * HTML writer: add task-list class to ul if all elements are
3578 task list items. This will allow styling unordered task
3579 lists in a way that omits the bullet.
3581 * HTML-based templates: Add CSS to suppress bullet on unordered task lists.
3583 * ConTeXt template: Fix `\startcslreferences` and use ConTeXt syntax
3584 conventions (#5945, Denis Maier). The old version had a too large
3585 a skip at the beginning of the reference list.
3587 * LaTeX template: keep the `\author{}` command even if author is not
3588 specified (#5961, Yihui Xie). Avoids a LaTeX warning.
3590 * Generate Emoji module with TH.
3592 + Add Text.Pandoc.Emoji.TH.
3593 + Replace long literal list in Text.Pandoc.Emoji with one-liner
3594 generating it from `emoji.json` using TH.
3595 + Add Makefile target to download `emoji.json`.
3596 + Remove `tools/emoji.hs`.
3598 * Increase GC allocation space for compilation in cabal.project.
3600 * Clean up manual on PDF generation backend options (#5940).
3602 * Update release checklist to include code signing step and update
3603 Windows release-candidate builds (#5950).
3606## pandoc 2.8.0.1 (2019-11-26)
3608 * List `pdf` in `--list-output-formats`.
3609 * EPUB writer: Fix regression with `--css` (#5937). In 2.8 `--css`
3610 would not have an effect on EPUB output.
3611 * RST writer: Use grid tables for one-column tables, since
3612 simple tables clash with heading syntax in this case (#5936).
3613 * Add unexported module Text.Pandoc.Readers.Metadata (see #5914).
3614 * Use doctemplates 0.7.2, which adds the `nowrap` filter to
3616 * Update default man template using `nowrap` for .TH heading (#5929).
3617 * HTML templates: Add support for `toc-title` variable (#5930,
3619 * Remove `grffile` (LaTeX package) requirement in MANUAL.txt
3620 (#5927, Ian Max Andolina).
3621 * Use skylighting 0.8.3.
3623## pandoc 2.8 (2019-11-22)
3625 * Improvements in templates system (from doctemplates):
3627 + Pandoc templates now support a number of new features that
3628 have been added in doctemplates: notably, `elseif`, `it`,
3629 partials, filters, and syntax to control nesting and reflowing of
3630 text. These changes make pandoc more suitable out of the
3631 box for generating plain-text documents from data in YAML
3632 metadata. It can create enumerated lists and even tabular
3634 + We now used templates parameterized on doclayout Doc types.
3635 The main impact of this change is better reflowing of
3636 content interpolated into templates. Previously,
3637 interpolated variables were rendered independently and
3638 interpolated as strings, which could lead to overly long
3639 lines. Now the templates interpolated as Doc values which
3640 may include breaking spaces, and reflowing occurs after
3641 template interpolation rather than before.
3642 + Remove code from the LaTeX, Docbook, and JATS writers that
3643 looked in the template for strings to determine whether it
3644 is a book or an article, or whether csquotes is used. This
3645 was always kludgy and unreliable.
3646 + Change template code to use new API for doctemplates.
3648 * Add `--defaults`/`-d` option. This adds the ability to specify
3649 a collection of default values for options in a YAML file. For
3650 example, one might define a set of defaults for letters,
3651 and then do `pandoc -d letter myletter.md -o myletter.pdf`.
3652 See the documentation of this feature in MANUAL.txt.
3654 * Raise error on unsupported extensions (#4338).
3656 * The `--list-extensions[=FORMAT]` option now lists only
3657 extensions that affect the given FORMAT.
3659 * Add `-L` option as shortcut for `--lua-filter`.
3661 * Add `--shift-heading-level-by` option and deprecate
3662 `--base-heading-level` (#5615). The new option does
3663 everything the old one does, but also allows negative shifts.
3664 It also promotes the document metadata (if not null) to a
3665 level-1 heading with a +1 shift, and demotes an initial
3666 level-1 heading to document metadata with a -1 shift. This
3667 supports converting documents that use an initial level-1
3668 heading for the document title.
3670 * Allow `--metadata-file` to be used repeatedly to include
3671 multiple metadata files (Owen McGrath, #5702). Values in
3672 files specified first will be overridden by those in later
3675 * `--ascii` now uses numerical hex character references (#5718).
3677 * Allow PDF output to stdout (#5751). PDF output now behaves like other
3678 binary formats: it will not be output to the terminal, but can be
3679 sent to stdout using either `-o -` or a pipe. The intermediate format
3680 will be determined based on the setting of `--pdf-engine`.
3682 * Make some writers sensitive to 'unlisted' class on headings (#1762).
3683 If this is present on a heading with the 'unnumbered' class,
3684 the heading won't appear in the TOC. This class has no
3685 effect if 'unnumbered' is not also specified. This affects HTML-based
3686 writers (including slide shows and EPUB), LateX (including beamer), RTF,
3687 and PowerPoint. Other writers do not yet support `unlisted`.
3689 * Fix `gfm_auto_identifiers` behavior with emojis (#5813). Note that
3690 we also now use emoji names for emojis when `ascii_identifiers`
3693 * When `--ipynb-output` is used with the default "best" format, strip
3694 ANSI escape codes for non-ipynb output (#5633). These cause problems
3695 in many formats, including LaTeX.
3697 * Don't look for template files remotely for remote input (#5579).
3698 Previously pandoc would look for the template at a remote URL when a
3699 URL was used for the input file, instead of taking it from the
3702 * Allow combining `-Vheader-includes` and `--include-in-header` (#5904).
3703 Previously `header-includes` set as a variable would be
3704 clobbered by material included using `--include-in-header`.
3706 * Change merge behavior for metadata. Previously, if a document
3707 contained two YAML metadata blocks that set the same field, the
3708 conflict would be resolved in favor of the first. Now it is resolved
3709 in favor of the second (due to a change in pandoc-types).
3710 This makes the behavior more uniform with other things in pandoc
3711 (such as reference links and `--metadata-file`).
3713 * Don't add a newline to fragment output if there's already one.
3715 * Change exit codes and document in MANUAL.txt:
3717 + `PandocAppError` was 1, is now 4
3718 + `PandocOptionError` was 2, is now 6
3719 + `PandocMakePDFError` was 65, is now 66
3721 * Switch to new pandoc-types and use Text instead of String [API change].
3722 (Christian Despres, #5884).
3726 + Better handling of `<q>` with cite attribute (#5798, Ole Martin Ruud).
3727 If a `<q>` tag has a `cite` attribute, we interpret it as a Quoted
3728 element with an inner Span.
3729 + Add support for HTML `<samp>` element (#5792, Amogh Rathore).
3730 The `<samp>` element is parsed as Code with class `sample`.
3731 + Add support for HTML `<var>` element (#5799, Amogh Rathore).
3732 The `<var>` element is parsed as Code with class `variable`.
3733 + Add support for `<mark>` elements (Florian B, #5797). Parse
3734 `<mark>` elements from HTML as Spans with class `mark`.
3735 + Add support for `<kbd>` elements, parsing them as Span with class
3736 `kbd` (Daniele D'Orazio, #5796).
3737 + Add support for `<dfn>`, parsing this as a Span with class `dfn`
3738 (#5882, Florian Beeres).
3742 + Headers: don't parse content over newline boundary (#5714).
3743 + Handle inline code more eagerly within lists (Brian Leung, #5627).
3744 + Removed some needless lookaheads.
3745 + Don't parse footnote body unless extension enabled.
3746 + Fix small super/subscript issue (#5878). Superscripts and subscripts
3747 cannot contain spaces, but newlines were previously allowed
3748 (unintentionally). This led to bad interactions in some cases
3749 with footnotes. With this change newlines are also not allowed inside
3751 + Use `take1WhileP` for `str`, table row. This yields a small but
3752 measurable performance improvement.
3757 + Fix parsing of optional arguments that contain braced text (#5740).
3758 + Don't try to parse includes if `raw_tex` is set (#5673).
3759 When the `raw_tex` extension is set, we just carry through
3760 `\usepackage`, `\input`, etc. verbatim as raw LaTeX.
3761 + Properly handle optional arguments for macros (#5682).
3762 + Fix `\\` in `\parbox` inside a table cell (#5711).
3763 + Improve `withRaw` so it can handle cases where the token string is
3764 modified by a parser (e.g. accent when it only takes part of a Word
3765 token) (#5686). This fixes a bug that caused the ends of
3766 certain documents to be dropped.
3767 + Handle `\passthrough` macro used by latex writer (#5659).
3768 + Support tex `\tt` command (#5654).
3769 + Search for image with list of extensions like latex does, if an
3770 extension is not provided (#4933).
3771 + Handle `\looseness` command values better (#4439).
3772 + Add `mbox` and `hbox` handling (Vasily Alferov, #5586).
3773 When `+raw_tex` is enabled, these are passed through literally.
3774 Otherwise, they are handled in a way that emulates LaTeX's behavior.
3775 + Properly handle `\providecommand` and `\provideenvironment` (#5635).
3776 They are now ignored if the corresponding command or environment
3778 + Support epigraph command in LaTeX Reader (oquechy, #3523).
3779 + Ensure that expanded macros in raw LaTeX end with a space
3780 if the original did (#4442).
3781 + Treat `ly` environment from lilypond as verbatim (Urs Liska, #5671).
3782 + Add `tikzcd` to list of special environments (Eigil Rischel).
3783 This allows it to be processed by filters, in the same way that
3784 one can do for `tikzpicture`.
3788 + Better support for `while`.
3789 + More improvements in parsing conditionals.
3790 + Fix problem parsing comments before macro.
3791 + Improve handling of groups.
3792 + Better parsing of groups (#5410). We now allow groups
3793 where the closing `\\}` isn't at the beginning of a line.
3797 + Keep `name` property in `imgAttr` (Brian Leung, #5619).
3798 + Fixed parsing of indented blocks (#5753). We were requiring
3799 consistent indentation, but this isn't required by RST.
3800 + Use title, not admonition-title, for admonition title.
3801 This puts RST reader into alignment with docbook reader.
3802 + Don't strip final underscore from absolute URI (#5763).
3803 + Avoid spurious warning when resolving links to internal anchors
3804 ending with `_` (#5763).
3808 + Accept `ATTR_LATEX` in block attributes (Albert Krewinkel, #5648).
3809 Attributes for LaTeX output are accepted as valid block attributes;
3810 however, their values are ignored.
3811 + Modify handling of example blocks (Brian Leung, #5717).
3812 + Allow the `-i` switch to ignore leading spaces (Brian Leung).
3813 + Handle awkwardly-aligned code blocks within lists (Brian Leung).
3814 Code blocks in Org lists must have their `#+BEGIN_` aligned in a
3815 reasonable way, but their other components can be
3816 positioned otherwise.
3817 + Fix parsing of empty comment lines (#5856, Albert Krewinkel).
3818 Comment lines in Org-mode can be completely empty.
3820 * Muse reader (Alexander Krotov):
3822 + Add RTL support (#5551).
3823 + Do not allow closing asterisks to be followed by `*`.
3824 + Do not split series of asterisks into symbols and emphasis (#5821).
3825 + Do not terminate emphasis on `*` not followed by space.
3829 + Parse markup inside monospace ('') (#5916, Alexander Krotov).
3833 + Move style-parsing-specific code to a new unexported module,
3834 Text.Pandoc.Readers.Docx.Parse.Styles (Nikolay Yakimov).
3835 + Move StyleMap to docx writer (Nikolay Yakimov).
3836 + Only use LTR when it is overriding BiDi setting (#5723, Jesse
3837 Rosenthal). The left-to-right direction setting in docx is used
3838 in the spec only for overriding an explicit right-to-left setting.
3839 We only process it when it happens in a paragraph set with BiDi.
3840 This is especially important for docs exported from Google Docs,
3841 which explicitly (and unnecessarily) set `rtl=0` for every paragraph.
3842 + Fix list number resumption for sublists (#4324).
3843 The first list item of a sublist should not resume numbering
3844 from the number of the last sublist item of the same level,
3845 if that sublist was a sublist of a different list item.
3849 + Richer parse for admonitions (Michael Peyton Jones, #1234).
3850 Instead of parsing admonitions as blockquotes, we now parse
3851 them as Divs with an appropriate class. We also handle titles
3852 for admonitions as a nested Div with the "title" class.
3853 + Fix nesting of chapters and sections (#5864, Florian Klink,
3854 Félix Baylac-Jacqué).
3855 + Fix bug with entities in mathphrase element (#5885).
3859 + Skip optional `{{table}}` template (#5757).
3863 + Fix dollar-math parsing to ensure that space is left between a
3864 control sequence and a following letter (#5836).
3865 + In `untokenize`, ensure space between control sequence
3866 and following letter (#5836).
3867 + Don't omit macro definitions defined in the preamble.
3868 These were formerly omitted (though they still affected macro
3869 resolution if `latex_macros` was set). Now they are included in
3871 + Parse macro definitions as raw LaTeX when `latex_macros` is
3872 disabled. (When `latex_macros` is enabled, we omit them, since
3873 pandoc is applying the macros itself.)
3874 + Fix a hang/memory leak in certain circumstances (#5845).
3875 + Text.Pandoc.Readers.LaTeX.Parsing: add `[Tok]` parameter to
3876 `rawLaTeXParser`. This allows us to repeat retokenizing
3877 unnecessarily in e.g. `rawLaTeXBlock`.
3878 + Add KOMA-Script metadata commands (#5910, Andrew Dunning).
3879 Add all titling commands to existing definition for `\dedication`.
3880 + Parse `\micro` siunitx unit command (#5921, Jose Luis Duran).
3884 + Ensure proper nesting when we have long ordered list markers (#5705).
3885 + Make `plain` output plainer (#5741). Previously we used the following
3886 Project Gutenberg conventions for plain output: extra space before and
3887 after level 1 and 2 headings, all-caps for strong emphasis,
3888 underscores surrounding regular emphasis. Now these
3889 conventions are used only when the `gutenberg` extension is
3890 enabled. By default, Strong and Emph are rendered without
3891 special formatting, and headings are rendered without
3892 special formatting, and with only one blank line following.
3893 To restore the former behavior, use `-t plain+gutenberg`.
3894 + Prefer using raw_attribute when enabled (#4311).
3895 The `raw_attribute` will be used to mark raw bits, even HTML
3896 and LaTeX, and even when `raw_html` and `raw_tex` are
3897 enabled, as they are by default. To get the old behavior,
3898 disable `raw_attribute` in the writer.
3899 + Prefer `pipe_tables` to raw HTML even when we must
3900 lose width information (#2608, #4497).
3901 + Improve escaping in list items (#5918).
3905 + Don't include `+` in code blocks for regular asciidoc.
3906 This is asciidoctor-specific.
3907 + Handle admonitions (#5690).
3911 + Add thin space when needed in LaTeX quote ligatures (#5684).
3912 + Use `\hspace{0pt}` for 0-width space U+200B (#5756).
3913 + Use `cslreferences` environment for csl bibliographies.
3914 This allows bibliographies to receive special formatting.
3915 The template now contains definition of this environment (enabled
3916 only when CSL is used). It also defines a `\cslhangindent` length.
3917 This is set to 2em by default when the bibliography style specifies
3918 a hanging indent. To override the length, you can use e.g.
3919 `\setlength{\cslhangindent}{7em}` in header-includes.
3920 See jgm/pandoc-citeproc#410.
3921 + Strip off `{}` around locator for biblatex/natbib output (#5722).
3922 + Fix line breaks at start of paragraph (#3324).
3923 Previously we just omitted these. Now we render them
3924 using `\hfill\break` instead of `\\`. This is a revision
3925 of a PR by @sabine (#5591) who should be credited with the idea.
3926 + We no longer look in the template or header-includes to see if a
3927 book or article documentclass is used, or to see whether the
3928 `csquotes` package is used. To use `csquotes` for LaTeX, set
3929 `csquotes` in your variables or metadata. To specify a book
3930 style, use the `documentclass` variable or
3931 `--top-level-division`.
3932 + Fix horizontal rule (#5801). We change to use 0.5pt rather than
3933 `\linethickness`, which apparently only ever worked "by accident"
3934 and no longer works with recent updates to texlive.
3938 + Add option to include source files in ConTeXt PDFs (Tristan
3939 Stenner, #5578). The metadata field or variable
3940 (`includesource`) can be set to attach the source documents
3941 to the resulting PDF.
3942 + Customizable type of PDF/A for the ConTeXt writer (Karl
3943 Pettersson, #5608). The `pdfa` variable may now be set in metadata.
3944 Also updated color profile settings in accordance with ConTeXt wiki,
3945 and made ICC profile and output intent for PDF/A customizable
3946 using `pdfaiccprofile` and `pdfaintent`.
3947 + Unit tests: adjust code property to avoid an irrelevant
3948 failure involving inline code with two consecutive newlines.
3949 + Set `csl-hanging-indent` variable if needed.
3950 + Use special environment for CSL references.
3951 + Use braces, not start/stop, for inline language tags.
3952 This prevents unwanted gobbling of spaces.
3956 + Use numeric character references with `--ascii` (#5718).
3957 Previously we used named character references with html5 output.
3958 But these aren't valid XML, and we aim to produce html5 that is
3959 also valid XHTML (polyglot markup). (This is also needed for epub3.)
3960 + Ensure that line numbers in code blocks get id-prefix (#5650).
3961 + Ensure TeX formulas are rendered correctly (Philip Pesca,
3962 #5658). The web service passed in to `--webtex` may render
3963 formulas using inline or display style by default.
3964 Prefixing formulas with the appropriate command ensures
3965 they are rendered correctly.
3966 + Render inline formulas correctly with `--webtex` (Philip
3967 Pesca, #5655). We add `\textstyle` to the beginning of the
3968 formula to ensure it will be rendered in inline style.
3969 + Pass through `aria-` attributes to HTML5 (#5642).
3970 + Render a Quoted element with an inner Span with
3971 `cite` attribute using a `<q>` tag (#5798, Ole Martin Ruud).
3972 + Render a Span with class `mark` using the `<mark>` element
3973 (Florian Beeres, #5797).
3974 + Render Span with class `dfn` using `<dfn>` element
3975 (Florian Beeres, #5882).
3976 + Render Span with class `kbd` using `<kbd>` element (Daniele
3978 + Render Code with class `variable` using `<var>` element
3979 (Amogh Rathore, #5799).
3980 + Render Code with class `sample` using `<samp>` element
3981 (Amogh Rathore, #5799).
3985 + Improve splitting into chapters (#5761), using `makeSection`.
3986 + Avoid issuing warning multiple times when title not set (see #5760).
3987 + Use svg tag wrapper for cover image (#5638). In addition, the
3988 code generating the image has been moved to the template, to make it
3989 more customizable. NOTE: Those who use custom EPUB
3990 templates will need to adjust their templates, adding the
3991 code to generate the cover image. (Previously this was just
3992 inserted into 'body'.)
3993 + Improve toChapters, making it work better if there are Divs
3995 + Add support for EPUB2 covers (blmage, #3992).
3996 + Do not override existing "fileN" medias when writing to EPUB format
3998 + Ensure that `lang` variable is set on all chapters (so that it
3999 will add an `xml:lang` attribute on the `html` element).
4003 + Removed remnants of `admonition-title`.
4004 + Fix handling of `:align:` on figures and images (#4420).
4005 When the image has the `align-right` (etc.) class, we now use
4006 an `:align:` attribute.
4007 + Improve spacing for tables with no width information (#5899).
4008 If a simple table would be too wide, we use a grid table.
4009 + Fix backslash escaping after strings (Albert Krewinkel, #5906).
4010 The check whether a complex inline element following a string must
4011 be escaped, now depends on the last character of the string instead
4013 + Ensure there's a blank line before tables (#5898).
4017 + Handle mixed lists without HTML fallback (#5107).
4021 + Fix multiline table (Zihang Chen, #5683).
4025 + Add RTL support (Alexander Krotov, #5551).
4029 + Suppress non-absolute link URLs (#5770). Absolute URLs are
4030 still printed in parentheses following the link text, but relative
4031 URLs are suppressed (just as internal links starting with '#'
4033 + Improved definition list term output. Now we boldface code but
4034 not other things. This matches the most common style in man pages
4035 (particularly option lists).
4039 + Use `.LP` instead of `.PP` for line block (#5588).
4040 + Use boldface for definition terms in DefinitionLists.
4044 + Do not emit empty `<fn-group>` (Mauro Bieg, #5595).
4045 + Update template to v1.1dtd (#5632, Arfon Smith).
4046 + Update `data/jats.csl` to avoid commas between editor
4047 name-part elements. (#5629)
4048 + Add `abstract` to template (Mauro Bieg).
4052 + Don't strip hash from internal links (#5922).
4056 + Remove escapeStringForJira for code blocks (Jan-Otto Kröpke).
4057 + Remove extraneous newline after single-line block quotes
4058 (#5858, Albert Krewinkel).
4059 + Improve escaping of special characters, using backslash escapes
4060 instead of HTML entities (#5858, Albert Krewinkel).
4062 * OpenDocument writer:
4064 + Avoid duplicate attributes (#4634). We use the innermost
4065 attribute in nested cases.
4066 + If `native_numbering` extension is set, use native OpenDocument
4067 enumeration for figures and tables (Nils Carlson).
4068 + Place caption before table (#5681, Dmitry Pogodin).
4072 + Add a test for MathML formulas in ODT documents (blmage).
4073 + Improve the parsing of frames in ODT documents (blmage).
4077 + Make handling of styles more robust in localized versions
4078 of Word (Nikolay Yakimov, #5523, #5052, #5074). We now use
4079 style names, not ids, for assigning semantic meaning, since
4080 the ids can change depending on the locale. Style name
4081 comparisons are case-insensitive, since those are
4082 case-insensitive in Word. Since docx style names can have
4083 spaces in them, and pandoc-markdown classes can't, anywhere
4084 when style name is used as a class name, spaces are
4085 replaced with ASCII dashes `-`. Code styles, i.e. "Source
4086 Code" and "Verbatim Char" now honor style inheritance. Docx
4087 Reader now honours "Compact" style (used in
4088 Pandoc-generated docx). The side-effect is that "Compact"
4089 style no longer shows up in docx+styles output. Styles
4090 inherited from "Compact" will still show up.
4091 + Re-use Readers.Docx.Parse for StyleMap (#5766, Nikolay Yakimov).
4092 + Internal improvements and code simplification (Nikolay Yakimov).
4093 + Preserve built-in styles in DOCX with custom style (Ben Steinberg,
4094 #5670). This change prevents custom styles on divs and spans
4095 from overriding styles on certain elements inside them, like
4096 headings, blockquotes, and links. On those elements, the
4097 "native" style is required for the element to display correctly.
4098 This change also allows nesting of custom styles; in order to do so,
4099 it removes the default "Compact" style applied to Plain blocks,
4100 except when inside a table.
4101 + Add `proofState` to list of elements carried over from
4102 settings.xml in the reference.docx (Krystof Beuermann, #5703).
4103 + Change order of `ilvl` and `numId` in `document.xml` (Agustín
4104 Martín Barbero, #5645). Also, make list para properties go first.
4105 This reordering of properties shouldn't be necessary but
4106 it seems Word Online does not understand the docx correctly otherwise.
4108 * PowerPoint writer:
4110 + Code formatting is now context dependent (Jeroen de Haas, #5573).
4111 This commit alters the way in which the Powerpoint writer treats
4112 inline code and code blocks. Inline code is now formatted at
4113 the same size as the surrounding text. Code blocks are now given
4114 a margin and font size according to their level.
4115 Furthermore this commit allows changing the font with which code is
4116 formatted via the `monofont` option.
4117 + Start numbering at appropriate numbers (Jesse Rosenthal, #5709).
4118 Starting numbers for ordered lists were previously ignored. Now
4119 we specify the number if it is something other than 1.
4121 * Text.Pandoc.Parsing:
4123 + Add `manyChar`, `many1Char`, `manyTillChar`, `many1TillChar`,
4124 `many1Till`, `manyUntil`, `mantyUntilChar`: these are like their
4125 unsuffixed counterparts but pack some or all of their output
4126 (Christian Despres, #5884).
4127 + Add `stateAllowLineBreaks` to `ParserState` [API change].
4128 + Fix inline parsing in grid table cells (#5708).
4129 + Change type of `setLastStrPos` so it takes a `Maybe SourcePos`
4130 rather than a `SourcePos` [API change].
4131 + Make `parseFromString'` and `gridTableWith` and
4132 `gridTableWith'` polymorphic in the parser state,
4133 constraining it with `HasLastStrPosition` [API change].
4134 + `parseFromString'`: reset `stateLastStrPos` to `Nothing` before parse.
4135 + Rename takeWhileP -> take1WhileP and clean it up.
4136 (It doesn't match the empty sequence.)
4140 + For PDFs via HTML, ensure temp file is deleted even if the pdf
4141 program is not found (#5720).
4142 + Better detection of a Cygwin environment (#5451).
4143 + Don't assume tex log file is UTF8-encoded (#5872).
4144 Fall back to latin1 if it can't be read as UTF-8.
4146 * Text.Pandoc.Extensions:
4148 + Export new function `getAllExtensions`, which returns the
4149 extensions that affect a given format (whether enabled by default
4150 or not) [API change].
4151 + Change type of `parseFormatSpec` from
4152 `Either ParseError (String, Extensions -> Extensions)`
4153 to `Either ParseError (String, [Extension], [Extension])`
4155 + Add `Ext_gutenberg` constructor to `Extension` [API change].
4156 + Add `Ext_native_numbering` constructor to `Extension` [API change]
4159 * Text.Pandoc.Readers, Text.Pandoc.Writers:
4161 + Change type of `getReader` and `getWriter` so they return
4162 a value in the PandocMonad instance rather than an Either
4163 [API change]. Exceptions for unknown formats and unsupported
4164 extensions are now raised by these functions.
4168 + Change `optMetadataFile` type from `Maybe FilePath` to `[FilePath]`
4169 (Owen McGrath, #5702) [API change].
4171 * Text.Pandoc.Logging:
4173 + Add `CouldNotDeduceFormat` constructor to `LogMessage` [API change].
4174 Issue this warning when we're falling back to markdown or
4175 html because we don't recognize the extension of the input or
4177 + Clarify warning for missing title (#5760).
4178 + Add `UnusualConversion` constructor to `LogMessage` [API change]
4179 (Mauro Bieg, #5736). Emit warning on `-f latex -o out.pdf`.
4183 + Improve function documentation (Albert Krewkinkel).
4184 + Traverse nested blocks and inlines in correct order (Albert
4185 Krewinkel, #5667). Traversal methods are updated to use the new
4186 Walk module so that sequences with nested Inline (or Block) elements
4187 are traversed in the order in which they appear in the linearized
4189 + New unexported module `Text.Pandoc.Lua.Walk` (Albert Krewinkel).
4190 Lua filters must be able to traverse sequences of AST
4191 elements and to replace elements by splicing sequences back
4192 in their place. Special `Walkable` instances can be used for
4193 this; those are provided in a new module
4194 `Text.Pandoc.Lua.Walk`.
4195 + `Attr` values can now be given as normal Lua tables (Albert
4196 Krewinkel, #5744). This can be used as a convenient alternative
4197 to constructing `Attr` values with `pandoc.Attr`. Identifiers
4198 are taken from the `id` field, classes must be given as
4199 space separated words in the `class` field. All remaining fields
4200 are included as attributes. With this change, the following lines
4201 now create equal elements:
4203 pandoc.Span('test', {id = 'test', class = 'a b', check = 1})
4204 pandoc.Span('test', pandoc.Attr('test', {'a','b'}, {check = 1}))
4206 This also works when using the *attr* setter:
4208 local span = pandoc.Span 'text'
4209 span.attr = {id = 'test', class = 'a b', check = 1}
4211 Furthermore, the *attributes* field of AST elements can now be a
4212 plain key-value table even when using the `attributes` accessor:
4214 local span = pandoc.Span 'test'
4215 span.attributes = {check = 1} -- works as expected now
4217 + Export `make_sections`, remove `hierarchicalize`. Lua filters that
4218 use `hierarchicalize` will need to be rewritten to use
4220 + Add a `clone()` method to all AST elements (Albert Krewinkel, #5568).
4221 + Fix Lua function names in pandoc.system (niszet). Change
4222 `get_current_directory` to `get_working_directory` and
4223 `with_temp_directory` to `with_temporary_directory`, to
4224 conform to the manual.
4226 * Text.Pandoc.Error:
4228 + Add constructors `PandocUnknownReaderError`,
4229 `PandocUnknownWriterError`, `PandocUnsupportedExtensionError`.
4231 + Better message for `PandocShouldNeverHappenError`.
4232 + Better message for `PandocTemplateError`.
4234 * Text.Pandoc.Emoji:
4236 + Update emoji list (#5666). Done using new `tools/emojis.hs`,
4237 which uses the list from the gem GitHub uses. Future updates
4238 can be done with this tool.
4242 + Pass value of `--dpi` to `rsvg-convert` when converting SVG to PDF
4243 in the process of creating a PDF (#5721).
4245 * Text.Pandoc.Shared:
4247 + Replace `Element` and `makeHierarchical` with `makeSections`.
4248 Now that we have Divs, we can use them to represent the
4249 structure of sections, and we don't need a special Element type.
4250 `makeSections` reorganizes a block list, adding Divs with class
4251 `section` around sections, and adding numbering if needed.
4252 This change also fixes some longstanding issues recognizing section
4253 structure when the document contains Divs (#3057, see also #997).
4254 + Remove `Element` type [API change]
4255 + Remove `makeHierarchicalize` [API change]
4256 + Add `makeSections` [API change]
4257 + Export `deLink` [API change]
4258 + Make `filterIpynbOutput` strip ANSI escapes from code in output
4259 for non-ipynb formats, when the default "best" option is used with
4260 `--ipynb-output` (#5633).
4261 + Fix `camelCaseToHyphenated` so it handles `ABCDef` better.
4262 + Improve `isTight` (#5857). If a list has an empty item,
4263 this should not count against its being a tight list.
4264 + Export `htmlSpanLikeElements` [API change] (Daniele D'Orazio, #5796).
4265 This is a mapping of HTML span-like elements that are internally
4266 represented as a Span with a single class.
4267 + Change the implementation of `htmlSpanLikeElements` to retain
4268 classes and attributes (#5882, Florian Beeres).
4270 * Text.Pandoc.Slides: recognize content in Divs when determining
4273 * Text.Pandoc.SelfContained:
4275 + Omit content-type on type attribute for `<style>` (#5725).
4276 It doesn't seem to be valid for HTML5, and as a result Chrome
4277 ignores the style element.
4279 * Text.Pandoc.Pretty has been removed [API change].
4280 We now use the new external doclayout module instead.
4282 * Text.Pandoc.Writers.Shared:
4284 + Remove `metaToJSON`, `metaToJSON'` [API change].
4285 + Modify `addVariablesToContext`, `defField`, `setField`, `getField`,
4286 `resetField` to work with Context rather than JSON values. [API change]
4287 + Export new function `endsWithPlain` [API change].
4288 + Change `gridTables` so it does better at keeping the widths of
4289 columns (#4320) and does better at figuring out column widths
4290 when no widths are given (#5899).
4292 * Text.Pandoc.Options
4294 + Change type of `writerTemplate` to `Maybe Template` instead
4296 + Change To/FromJSON instances for `HTMLMathMethod`, `CiteMethod`,
4297 `ObfuscationMethod`, `TrackChanges`, `WrapOption`,
4298 `TopLevelDivision`, `ReferenceLocation`, `HTMLSlideVariant` (#5790).
4299 In each case we use lowercase (or hyphenated lowercase) for
4300 constructors to line up more closely with command-line option
4301 values. This is a breaking change for those who manually decode or
4302 encode JSON for these data types (e.g. for `ReaderOptions` or
4305 * Text.Pandoc.Filters:
4307 + Add `FromYAML` instance for `Filter`.
4308 + `applyFilters`: Add and apply filters in order (not reversed)
4309 This changes `applyFilters` from Text.Pandoc.Filter so
4310 that it does a left fold rather than a right fold, applying
4311 the filters in the order listed.
4315 + Change `toEntities` to emit numerical hex character references
4318 * Text.Pandoc.Highlighting:
4320 + Add additional listings languages (Wandmalfarbe).
4322 * Text.Pandoc.MediaBag:
4324 + Some of the types using Strings were switched to use FilePath instead
4325 (Christian Despres, #5884).
4327 * Text.Pandoc.Templates:
4329 + Don't import/export `varListToJSON` [API change]. It is removed in
4330 doctemplates >= 0.3.
4331 + Change type of `renderTemplate'` [API change]. Return value is
4332 now Text rather than being polymorphic. This makes room for
4333 upcoming removal of the `TemplateTarget` class from doctemplates.
4335 * Text.Pandoc.App.Opt [API changes]:
4337 + More convenient To/FromJSON instances. Make the field names
4338 like `strip-empty-paragraphs` rather than `optStripEmptyParagraphs`.
4339 Anyone who is using JSON serialization of Opt will need to adjust
4341 + Change `optHighlightStyle` to a `Maybe String` instead of
4342 `Maybe Style`. Do the parsing/loading of themes later, after
4344 + Remove `optBaseHeaderLevel` from `Opt`. We now just use
4345 `optShiftHeadingLevelBy`, to avoid redundancy.
4346 + Change `optShiftHeadingLevel` to `optShiftHeadingLevelBy` to
4348 + Custom FromJSON instance for `LineEnding`, so either `CRLF`
4349 or `crlf` will work.
4350 + Change `optVariables` from `[(String, String)]` to `Context Text`.
4351 + Change `optMetadata` to `Meta`, to allow structured values.
4352 The current behavior of the `--metadata` option stays the same.
4353 + Rename `optReader`, `optWriter` as `optFrom`, `optTo`.
4354 + Add `FromYAML` instances to `Opt` and to all subsidiary types.
4355 + Rename `optMetadataFile` to `optMetadataFiles`.
4356 + Rename `optPDFEngineArgs` to `optPDFEngineOpts`.
4357 + Rename `optWrapText` to `optWrap`.
4358 + Add `IpynbOutput` enumerated type: use this instead of
4359 a string for `optIpynbOutput`.
4360 + Change optInputFiles to a `Maybe [FilePath]` (#5888) [API change].
4361 `Nothing` means: nothing specified.
4362 `Just []` means: an empty list specified (e.g. in defaults).
4363 + List fields in Opt so they aren't reversed (#5881) [API change].
4364 Previously `optIncludeInHeader`, etc. were in reverse order.
4365 + The `sourcefile` variable is now always a list. It used to be
4366 sometimes a string, sometimes a list (when there was more than one).
4370 + default.latex: added code for `cslreferences` environment,
4371 to be used for pandoc-citeproc references. A `csl-hanging-indent`
4372 variable (set automatically if there is a `hanging-ident`
4373 class on the references Div) controls whether contents of this
4374 environment receive a hanging indent.
4375 + default.latex: Add `space` as default option for xeCJK, so that
4376 spaces between words are preserved (#5855, jeongminkim-islab).
4377 This is necessary for Korean.
4378 + default.latex: Remove include of `grffile` (#5848).
4379 This package used to be needed for proper handling of image filenames
4380 containing periods (in addition to the period before the extension).
4381 It no longer works with the latest LaTeX kernel and graphicx,
4382 so we have removed it. Future versions of graphicx will handle
4383 these filenames without the need for `grffile`.
4384 + default.context: add a saner default for page numbers.
4385 Previously they appeared centered at the top of the page;
4386 now we put them centered at the bottom, unless the `pagenumbering`
4388 + default.context: define a start-stop-pair `cslreferences` to
4389 allow for hanging indents in the bibliography (#5875, Denis Maier).
4390 + default.ms: update defaults. Use Palatino font, use slightly
4391 wider interparagraph space, don't indent paragraphs,
4392 and put page numbers on the bottom. This brings ms output
4393 closer to default LaTeX output.
4394 + default.revealjs: add navigationMode (Mauro Bieg, #5657).
4395 + default.muse: handle multiple authors better.
4396 + docbook4, docbook5 templates: add indentation to body.
4397 + HTML-based templates: use `styles.html` partial to avoid
4399 + HTML-based templates: change indentation of styles in template.
4401 * reference.docx (#5820):
4403 + Change Block Text (block quote) style so that the same font
4404 is used as in the body text, and the block text is indented
4406 + All headings now have a uniform color.
4407 + Level-1 headings no longer set `w:themeShade="B5"`.
4408 + Level-2 headings are now 14 point rather than 16 point.
4409 + Level-3 headings are now 12 point rather than 14 point.
4410 + Level-4 headings are italic rather than bold.
4412 * epub.css: Add CSS for hanging-indent div to support pandoc-citeproc's
4413 new hanging indents.
4417 + Repeat ghc-options in all stanzas.
4418 + Remove conditionals for ghc < 8 (Albert Krewinkel, #5693).
4419 + Compile with `-Wcpp-undef` and `-fhide-source-paths` when possible
4421 + Add cabal.project to extra-source-files (Albert Krewinkel).
4422 + Add dependency on skylighting-core (#5729). Even though it shouldn't
4423 be needed, some tools require it.
4424 + Require latest pandoc-types, texmath, skylighting, haddock-library.
4425 + Ensure TemplateHaskell is added to other-extensions when it is
4426 used (Vanessa McHale, #5728).
4427 + Remove `derive_json_via_th` flag; always use TH. This cuts down
4428 on code duplication and reduces the chance for errors. See #4083.
4434 + Remove references to obsolete flag (#5694).
4436 * Benchmarks: fix failure on ipynb.
4438 * Use MathJax 3 (zorkow).
4440 * KaTeX math: respect `classoption=fleqn` variable,
4441 bump KaTeX version to 0.11.1 (#5815, Mauro Bieg).
4443 * Fix redundant constraint compiler warnings (Pete Ryland, #5625).
4445 * Use throwError instead of fail when appropriate.
4447 * Use Prelude.fail to avoid ambiguity with fail from GHC.Base.
4449 * Add `diff-zip.sh` to tools (John MacFarlane, Agustín Martín Barbero).
4450 This is intended to make it easier to test differences in zip
4451 containers, like epub, docx, or odt.
4453 * Add `.gitattributes` (#5747). This ensures that the golden files
4454 in `test/fb2/reader/` don't have newlines converted. This should fix
4455 a test failure on GitHub CI with Windows.
4457 * Reorder options in `--help`.
4459 * Revise code for HsYAML-0.2.0.0 (@vijayphoenix, #5704).
4461 * Remove blank line in code example in Haddocks (Leif Metcalf, #5679).
4463 * Fix trypandoc with `getReader`/`getWriter` changes.
4465 * Allow building pandoc with GHC 8.8.
4467 * linux tarball: add architecture `-amd64` to filename.
4468 Now it will be: `pandoc-VERSION-linux-ARCH.tar.gz`.
4472 + Add section for exit codes.
4473 + Document some pptx limitations in slide show section:
4474 No incremental display (#5689). No pause with `. . .` (#5701).
4475 + reveal.js flags (Mauro Bieg, #5653).
4476 + Document addition of `data-` prefix to unknown attributes in HTML5.
4477 + Link to YAML spec (Mauro Bieg, #5687).
4478 + Fix capitalization of "Linux" (#5859, Marcus Stollsteimer).
4479 + Use a table for exit codes.
4480 + Put all template variable docs into one section.
4481 + Use ATX headers consistently.
4482 + Add fuller documentation of templates (#5779), including
4483 new template syntax, partials, etc.
4484 + Add documentation for the variable `hyperrefoptions` (Wandmalfarbe).
4485 + Clarify when macro definitions are passed as raw latex.
4486 In Markdown input, they are always passed through. In LaTeX, only if
4487 `latex_macros` is disabled.
4488 + Clarify that `--dpi` provides a default and doesn't override
4489 dpi values specified in the images themselves (#5721).
4490 + Document how to use custom writers with `--standalone` (#5866).
4491 + Clarify `--preserve-tabs` default.
4495 + Fix instructions for libicu.
4496 + Add Void Linux instructions (Volodymyr Kozachnyskyi).
4500 + Add information on tests (Agustín Martín Barbero, #5652).
4501 + Add information about command test naming to CONTRIBUTING (Florian B).
4503 * Fix typos in changelog and comments (#5896, Brian Wignall).
4505 * doc/lua-filters.md:
4507 + Fix mistakes in mediabag module docs (#5851, Albert Krewinkel).
4508 + Improve metadata replacement example in lua-filters doc (#5851).
4509 + Mention which Lua version is shipped with pandoc (Albert Krewinkel,
4512## pandoc 2.7.3 (2019-06-11)
4514 * Add `jira` (Atlassian's Jira wiki markup) as output format (#2497,
4517 * Add `tex_math_dollars` to `multimarkdownExtensions` (#5512).
4518 This form is now supported in multimarkdown,
4519 in addition to `tex_math_double_backslash`.
4521 * Fix `--self-contained` so it works when output format has extensions.
4522 Previously if you used `--self-contained` with `html-smart` or
4523 `html+smart`, it wouldn't work.
4525 * Add template variable `curdir` with working directory
4526 from which pandoc is run (#5464).
4528 * Markdown reader: don't create implicit reference for empty header
4531 * Muse reader: allow images inside link descriptions (Alexander Krotov).
4533 * HTML reader: epub related fixes.
4535 + With epub extensions, check for `epub:type` in addition to `type`.
4536 + Fix problem with noteref parsing which caused block-level
4537 content to be eaten with the noteref.
4538 + Rename `pAnyTag` to `pAny`.
4539 + Refactor note resolution.
4540 + Trim definition list terms (Alexander Krotov).
4544 + Add braces when resolving `\DeclareMathOperator`
4545 (#5441). These seem to be needed for xelatex but not pdflatex.
4546 + Allow newlines in `\mintinline`.
4547 + Pass through unknown listings language as class (#5540).
4548 Previously if the language was not in the list of languages supported
4549 by listings, it would not be added as a class, so highlighting
4550 would not be triggered.
4551 + `rawLaTeXInline`: Include trailing `{}`s in raw latex commands (#5439).
4552 This change affects the markdown reader and other readers that allow raw
4553 LaTeX. Previously, trailing `{}` would be included for unknown
4554 commands, but not for known commands. However, they are sometimes used
4555 to avoid a trailing space after the command. The chances that a `{}`
4556 after a LaTeX command is not part of the command are very small.
4558 * MediaWiki reader: handle multiple attributes in table row (#5471,
4561 * Docx reader: Add support for `w:rtl` (#5545). Elements with this
4562 property are put into Span inlines with `dir="rtl"`.
4564 * DocBook reader: Issue `IgnoredElement` warnings.
4566 * Org reader (Albert Krewinkel):
4568 + Fix planning elements in headers level 3 and higher
4569 (#5494). Planning info is now always placed before
4570 the subtree contents. Previously, the planning info was placed after
4571 the content if the header's subtree was converted to a list, which
4572 happens with headers of level 3 and higher per default.
4573 + Omit, but warn about unknown export options. Unknown export
4574 options are properly ignored and omitted from the output.
4575 + Prefer plain symbols over math symbols (#5483).
4576 Symbols like `\alpha` are output plain and unemphasized, not as math.
4577 + Recognize emphasis after TODO/DONE keyword (#5484).
4581 + Skip unknown elements rather than throwing errors (#5560).
4582 Sometimes custom elements are used (e.g. `id` element
4583 inside `author`); previously the reader would halt with an error.
4584 Now it skips the element and issues an `IgnoredElement` warning.
4585 + Parse notes (#5493, Alexander Krotov).
4586 + Internal improvements (Alexander Krotov).
4588 * OpenDocument writer: Roll back automatic figure/table numbering
4589 (#5474). This was added in pandoc 2.7.2, but it makes it impossible
4590 to use pandoc-crossref. So this has been rolled back for now,
4591 until we find a good solution to make this behavior optional
4592 (or a creative way to let pandoc-crossref and this feature
4595 * New module Text.Pandoc.Writers.Jira, exporting `writeJira` [API
4596 change] (Albert Krewinkel).
4600 + Don't include 'landmarks' if there aren't any.
4601 Previously we could get an empty ol element, which caused
4602 validation errors with epubcheck.
4603 + Ensure unique ids for styleesheets in content.opf (#5463).
4604 + Make stylesheet link compatible with kindlegen (#5466,
4605 Eric Schrijver). Pandoc omitted `type="text/css"` from both
4606 `<style>` and `<rel="stylesheet">` elements in all templates, which
4607 is valid according to the spec. However, Amazon’s kindlegen software
4608 relies on this attribute on `<link>` elements when detecting
4609 stylesheets to include.
4613 + Output video and audio elements depending on file
4614 extension of the image path (Mauro Bieg).
4615 + Emit empty alt tag in figures (#5518, Mauro Bieg).
4616 The same text is already in the <figcaption> and
4617 screen-readers would read it twice, see #4737.
4618 + Don't add variation selector if it's already there.
4619 This fixes round-trip failures.
4620 + Prevent gratuitous emojification on iOS (#5469).
4621 iOS chooses to render a number of Unicode entities, including '↩', as
4622 big colorful emoji. This can be defeated by appending Unicode
4623 VARIATION SELECTOR-15'/'VARIATION SELECTOR-16'. So we now append this
4624 character when escaping strings, for both '↩' and '↔'. If other
4625 characters prove problematic, they can simply be added to
4626 `needsVariationSelector`. + Add `class="heading"` to level 7+ Headers
4627 rendered as `<p>` elements (#5457).
4629 * RST writer: treat Span with no attributes as transparent (#5446).
4630 Previously an Emph inside a Span was being treated as
4631 nested markup and ignored. With this patch, the Span
4636 + Include inline code attributes with `--listings` (#5420).
4637 + Don't produce columns environment unless beamer (#5485).
4638 + Fix footnote in image caption. Regression: the fix for #4683 broke
4640 + Don't highlight code in headings (#5574). This causes
4642 + Use `\mbox` to get proper behavior inside `\sout` (#5529).
4644 * EPUB writer: Fix document section assignments (#5546).
4645 For example, introduction should go in bodymatter, not frontmatter, and
4646 epigraph, conclusion, and afterward should go in bodymatter, not
4647 backmatter. For the full list of assignments, see the manual.
4651 + Add backslashes to avoid unwanted interpretation of
4652 definition list terms as other kinds of block (#554).
4653 + Ensure the code fence is long enough (#5519).
4654 Previously too few backticks were used when the code block
4655 contained an indented line of backticks. (Ditto tildes.)
4656 + Handle labels with integer names (Jesse Rosenthal, #5495).
4657 Previously if labels had integer names, it could produce a conflict
4658 with auto-labeled reference links. Now we test for a conflict and
4659 find the next available integer. This involves adding a new state
4660 variable `stPrevRefs` to keep track of refs used in other document
4661 parts when using `--reference-location=block|section`
4663 * Textile writer: fix closing tag for math output (Albert Krewinkel).
4664 Opening and closing tag for math output match now.
4666 * Org writer: always indent src blocks content by 2 spaces (#5440, Albert
4667 Krewinkel). Emacs always uses two spaces when indenting the content of
4668 src blocks, e.g., when exiting a `C-c '` edit-buffer. Pandoc used to
4669 indent contents by the space-equivalent of one tab, but now always uses
4674 + Use `` `+...+` `` form for inline code.
4675 The old `` `a__b__c` `` yields emphasis inside code in asciidoc.
4676 To get a pure literal code span, use `` `+a__b__c+` ``.
4677 + Use proper smart quotes with asciidoctor (#5487).
4678 Asciidoctor has a different format for smart quotes.
4679 + Use doubled ## when necessary for spans (#5566).
4680 + Ensure correct nesting of strong/emph (#5565): strong
4681 must be the outer element.
4685 + Wrap elements with p when needed (#5570). The JATS spec restricts
4686 what elements can go inside `fn` and `list-item`. So we wrap other
4687 elements inside `<p specific-use="wrapper">` when needed.
4688 + Properly handle footnotes (#5511) according to "best practice."
4689 (Group them at the end in `<fn-group>` and use `<xref>` elements
4691 + Fix citations with PMID so they validate (#5481). This includes
4692 an update to data/jats.csl.
4693 + Ensure validity of `<pub-date>` by parsing the date and
4694 extracting year, month, and day, as expected. Also add an
4695 iso-8601-date attribute automatically.
4696 + Don't use `<break>` element for LineBreak. It is only
4697 allowed in a few special contexts, and not in `<p>` elements.
4698 + Don't make `<string-name>` a child of `<string>`, which is illegal.
4702 + Do not wrap note references into `<sup>` and brackets
4703 (Alexander Krotov). Existing FB2 readers, such as FBReader, already
4704 display links with type="note" as a superscript.
4705 + Use genre metadata field (#5478).
4707 * Muse writer: do not escape empty line after `<br>` (Alexander Krotov).
4709 * Add unicode code point in "Missing character" warning (#5538).
4710 If the character isn't in the console font, the message is pretty useless,
4711 so we show the code point for anything non-ASCII.
4713 * Lua: add Version type to simplify comparisons (Albert Krewinkel).
4714 Version specifiers like `PANDOC_VERSION` and `PANDOC_API_VERSION` are
4715 turned into `Version` objects. The objects simplify version-appropriate
4716 comparisons while maintaining backward-compatibility.
4717 A function `pandoc.types.Version` is added as part of the newly
4718 introduced module `pandoc.types`, allowing users to create version
4721 * pandoc lua module (Albert Krewinkel):
4723 - Fix deletion of nonexistent attributes (#5569).
4724 - Better tests for Attr and AttributeList.
4726 * pandoc.mediabag lua module (Albert Krewinkel):
4728 + Add function `delete` for deleting a single item.
4729 + Add function `empty` for removing all entries.
4730 + Add function `items` for iterating over mediabag.
4732 * Text.Pandoc.Class: Fix handling of `file:` URL scheme in
4733 `downloadOrRead` (#5517, Mauro Bieg). Previously `file:/`
4734 URLs were handled wrongly and pandoc attempted to make HTTP
4735 requests, which failed.
4737 * Text.Pandoc.MIME: add `mediaCategory` [API change] (Mauro Bieg).
4739 * Text.Pandoc.Shared:
4741 + Add `onlySimpleTableCells` [API change]
4742 (Mauro Bieg) and use this to consolidate simple-table detection
4743 (#5524). This fixes an inconsistency in the HTML reader, which did not
4744 treat tables with `<p>` inside cells as simple.
4745 + `metaToJSON`: treat digits starting with 0 as a string, not a number
4746 (#5479). This fixes a regression in YAML metadata in pandoc 2.7.2.
4748 * Text.Pandoc.Logging: Add `IgnoredElement` constructor for
4749 `LogMessage`. `SkippedConetnt` doesn't work for some XML-based
4750 readers which don't have access to parsec source positions.
4752 * Text.Pandoc.Asciify: Add Turkish undotted-i (#5433, Mauro Bieg).
4754 * Improve output of Lua tests (#5499, Albert Krewinkel).
4755 This makes use of tasty-lua, a package to write tests in Lua
4756 and integrate the results into Tasty output. Test output becomes
4757 more informative: individual tests and test groups become visible
4758 in test output. Failures are reported with helpful error messages.
4760 * Lua: add `pandoc.system` module (#5468, Albert Krewinkel).
4761 The `system` Lua module provides utility functions to interact with the
4762 operating- and file system. E.g.
4763 `print(pandoc.system.get_current_directory())`
4766 pandoc.system.with_temporary_directory('tikz', function (dir)
4767 -- write and compile a TikZ file with pdflatex
4771 * LaTeX template: Add pdflang to hypersetup if lang is set (#5443).
4773 * beamer template: Fix using Beamer with geometry (#5505, Daniel Maslowski).
4774 Beamer already loads geometry, so we need to use the `\geometry`
4775 command to set geometry options.
4777 * EPUB2/3 templates: Move inline styles to default epub.css (#5466).
4778 NOTE: Those who use a custom CSS stylesheet with EPUB should
4781 code{ white-space: pre-wrap; }
4782 span.smallcaps{ font-variant: small-caps; }
4783 span.underline{ text-decoration: underline; }
4784 q { quotes: "“" "”" "‘" "’"; }
4785 div.column{ display: inline-block; vertical-align: top; width: 50%; }
4787 * reveal.js template:
4789 + Updates for revealjs 3.8.0 (#5435, ebiim).
4790 + Remove reference to head.min.js (#5448, Winnie Hellmann).
4791 NOTE: users will need to update reveal.js to at least 3.8.0
4792 for their presentations generated with this version of pandoc
4797 + Replace `</>` with literal `/` (#5451).
4798 We use forward-slash for a directory separator in tmpDir,
4799 even on Windows (because that's what tex likes). So we
4800 should not put a backslash between the tmpDir and the
4801 filename on Windows. This is harmless enough in normal
4802 Windows setups, but it breaks on Cygwin.
4803 Thanks to @cc2x for noticing and diagnosing the problem.
4804 + Allow use of `-output-directory` in `--pdf-engine-opt` (#5462).
4805 This is currently possible with `mklatex` and `-outdir`, but
4806 was not yet possible with xelatex and `-output-directory`.
4807 + For PDF via ms/pdfroff, make TOC appear at beginning and in
4808 PDF bookmarks (#5553). Previously the TOC appeared at the end
4809 of the document, and was not bookmarked. To keep it at the end,
4810 add `--pdf-engine-opt=--no-toc-relocation` to your command line.
4812 * Fix broken links in documents (#5473, Shim Myeongseob).
4813 Also, use absolute links to pandoc.org when possible, so that
4814 the links can be followed by people viewing these documents
4817 * Improved sample lua tikz filter in lua-filters docs (#5445,
4818 Matthew Doty). There are three changes:
4820 + It only processes elements which begin with `\begin{tikzpicture}`
4821 + It uses pdf2svg instead of imagemagick to preserve fidelity
4822 + The images produced have transparent backgrounds
4826 + Add note about `title-meta`, `author-meta`, `date-meta` (#5486).
4827 + Fix typo (#5489, Christian Krause).
4829 * add test/tables.xwiki to git and pandoc.cabal (#5498, Mauro Bieg).
4831 * Disable missing-home-modules warning in `stack.yaml`.
4832 Otherwise `stack ghci` fails.
4835## pandoc 2.7.2 (2019-04-05)
4837 * Add XWiki writer (#1800, Derek Chen-Becker).
4838 Add `Text.Pandoc.Writers.XWiki`, exporting `writeXWiki` [API change].
4840 * Dokuwiki Reader: parse single curly brace (#5416, Mauro Bieg).
4842 * Vimwiki reader: improve handling of internal links (#5414).
4843 We no longer append `.html` to link targets, and we add a title
4844 `wikilink`. This mirrors behavior of other wiki readers. Generally
4845 the `.html` extension is not wanted. It may be important for output
4846 to HTML in certain circumstances, but it can always be added using a
4847 filter that matches on links with title `wikilink`.
4849 If your workflow requires the current behavior, here is a lua filter
4850 that will add the `.html` extension:
4854 if el.title == 'wikilink' then
4855 el.target = el.target .. ".html"
4862 + Use format `ipynb` for raw cell where no format given.
4863 + Avoid introducing spurious `.0` on integers in metadata.
4865 * Markdown reader: fenced div takes priority over setext header.
4867 * HTML reader: read `data-foo` attribute into `foo` (#5392).
4868 The HTML writer adds the `data-` prefix for HTML5 for nonstandard
4869 attributes. But the attributes are represented in the AST without
4870 the `data-` prefix, so we should strip this when reading HTML.
4872 * LaTeX reader: Improve autolink detection (#5340).
4874 * PowerPoint writer (Jesse Rosenthal):
4876 + Expand builtin reference doc to model all layouts.
4877 The previous built-in reference doc had only title and content
4878 layouts. Add in a section-header slide and a two-content slide, so
4879 users can more easily modify it to build their own templates.
4880 + Always open up in slide view. When editing a
4881 template/reference-doc, the user might be in Master view, but when
4882 producing a slide show, it is assumed that slide view will be
4884 + Remove `handoutsMasterList` from template presentation.xml
4885 + Fix numerous errors in templating (#5402). Previously, some templates
4886 produced by Office 365 (MacOS) would not render with `--reference-doc`
4887 correctly. We now apply correct shapes for content, and build
4888 shape trees correctly.
4889 + Make default placeholder type for template lookup.
4890 + Apply speaker notes to metadata slide if applicable.
4891 + Test for speaker notes after breaking header.
4892 + Correctly handle notes after section-title header.
4893 Previously, if notes came after a section-title header (ie, a level-1
4894 header in a slide-level=2 presentation), they would go on the next
4895 slide. This keeps them on the slide with the header.
4896 + Internal improvements.
4900 + Use format `ipynb` for raw cell where no format given.
4901 According to nbformat docs, this is supposed to render in every
4902 format. We don't do that, but we at least preserve it as a raw
4903 block in markdown, so you can round-trip.
4904 + Consolidate adjacent raw blocks. Sometimes pandoc creates two
4905 HTML blocks, e.g. one for the open tag and one for a close tag.
4906 If these aren't consolidated, only one will show up in output cell.
4907 + Fixed carry-over of nbformat from metadata.
4908 + Preserve `nbformat_minor` if it's given. This helps with round-tripping.
4912 + Avoid inadvertently creating ?` or !` ligatures (#5407).
4913 These are upside down ? and !, resp.
4914 + Fix footnotes in table caption and cells (#5367). This fixes a
4915 bug wherein footnotes appeared in the wrong order, and with
4916 duplicate numbers, when in table captions and cells.
4917 We now use regular `\footnote` commands, even in the table
4918 caption and the minipages containing cells. Apparently
4919 longtable knows how to handle this.
4921 * HTML writer: Don't add data- prefix to RDFa attributes (#5403).
4923 * JATS writer: Ensure that plain strings go inside `<pub-id>` tag (#5397).
4927 + Better rendering of numbers (#5398). If the number is integral,
4928 we render it as an integral not a float.
4929 + Proper rendering of empty map in YAML metadata (#5398). Should
4930 be `{}`, not empty string.
4931 + Properly escape attributes in Markdown writer (#5369).
4932 + Be sure implicit figures work in list contexts (#5368).
4933 Previously they would sometimes not work: e.g., when they
4934 occurred in final paragraphs in lists that were originally
4935 parsed as Plain and converted later using PlainToPara.
4937 * Docx writer: Use `w:br` without attributes for line breaks (#5377).
4938 We previously added the attribute `type="textWrapping"`, but
4939 this causes problems on Word Online.
4941 * LaTeX template (Andrew Dunning):
4943 + Ensure correct heading/table order (#5365). Improve workaround
4944 (#1658) for tables following headings. The new solution works whether
4945 or not the `indent` variable is enabled.
4946 + Remove `subparagraph` variable. The default is now to use run-in
4947 style for level 4 and 5 headings (`\paragraph` and `\subparagraph`).
4948 To get the previous default behavior (where these were formatted as
4949 blocks, like `\subsubsection`), set the `block-headings` variable.
4950 + Add pandoc to PDF metadata (#5388).
4951 + Group graphics-related code (#5389).
4952 + Move `\setstretch` after front matter (#5179). Ensures that
4953 `\maketitle`, `\tableofcontents`, and so forth are not affected by
4954 changes to line spacing.
4956 * Update data/jats.csl to avoid commas between name-part elements
4959 * Add support for golang (`go`) with `--listings` (#5427).
4961 * Text.Pandoc.Shared - improve `metaToJSON` behavior with numbers.
4962 We now do a better job marshalling numbers from MetaString
4963 or MetaInlines into JSON Number.
4965 * Text.Pandoc.Writers.Shared: `metaValueToJSON`: use Number Values for
4966 integers. Pandoc's MetaValue doesn't have a distinguished number type,
4967 so numbers are put in MetaStrings. If the MetaString consists
4968 entirely of digits, we convert it to a Number. We should probably
4969 consider adding a MetaNumber constructor to MetaValue, for better
4970 round-tripping with JSON etc. This change aids round-tripping in
4971 ipynb metadata fields, like `toc_depth`.
4973 * Text.Pandoc.Class: `fetchItem`: don't treat UNC paths as
4974 protocol-relative URLs (#5127). These are paths beginning `//?/UNC/...`.
4976 * Text.Pandoc.ImageSize: Improve `pdfSize` so it handles
4977 a wider range of PDFs (#4322, with help from Richard Davis).
4979 * Text.Pandoc.Pretty: avoid stack overflow by using strict sum (#5401).
4981 * Fix harmless error in file-scope code (#5422).
4985 + Improve 'header' and 'heading' usage (#5423, Andrew
4986 Dunning). The term 'header' was being used where 'heading'
4987 is more appropriate.
4988 + Add paragraph on options affecting markdown in ipynb.
4990 * stack.yaml - remove -Wmissing-home-modules
4991 This seems to cause problems with stack ghci. Remove RTS options.
4993 * Add ghc-options to cabal.project.
4995 * appveyor.yml - use ghc 8.6.4. Fixes segfault issues on Windows (#5037).
4997 * linux build process: Remove clone of pandoc-citeproc (#5366).
4998 It wasn't being used; cabal.project specifies the version to use.
5000## pandoc 2.7.1 (2019-03-14)
5002 * Add tectonic as an option for --pdf-engine (#5345, Cormac Relf).
5003 Runs tectonic on STDIN instead of a temporary .tex file, so that it
5004 looks in the working directory for `\include` and `\input` like the rest
5005 of the engines. Allows overriding the output directory
5006 args with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`.
5008 * Allow `-o/--output` to be used with `--print-default-data-file`,
5009 `--print-highlighting-style`, `--print-default-template`.
5010 Note that `-o` must occur BEFORE the `--print*` command on the command
5011 line (this is documented, #5357).
5015 + Support `\underline`, `\ul`, `\uline` (#5359, Paul
5016 Tilley). These are parsed as a Span with class `underline`, as
5018 + Ensure that `\Footcite` and `\Footcites` get put in a note.
5022 + Remove sensitivity to `raw_html`, `raw_tex` extensions.
5023 We now include every output format. Pruning is handled by
5025 + Better handling of cell metadata. We now include even complex cell
5026 metadata in the Div's attributes (as JSON, in complex cases, or
5027 as plain strings in simple cases).
5031 + Recurse into native divs for output cell data (#5354).
5032 + Render cell metadata fields from div attributes.
5034 * Docx writer: avoid extra copy of abstractNum and num elements
5035 in numbering.xml. This caused pandoc-produced docx files to
5036 be uneditable using Word Online (#5358).
5038 * Markdown writer: improve handling of raw blocks/inline.
5039 We now emit raw content using `raw_attribute` when no more
5040 direct method is available. Use of `raw_attribute` can be
5041 forced by disabling `raw_html` and `raw_tex`.
5043 * LaTeX writer: Add classes for frontmatter support (#5353, Andrew Dunning)
5044 and remove frontmatter from `scrreprt`.
5048 + Improve readability (#5363, Andrew Dunning).
5049 + Robust section numbering removal (#5351, Andrew Dunning).
5050 Ensures that section numbering does not reappear with custom
5051 section levels. See <https://tex.stackexchange.com/questions/473653/>.
5052 + Better handling of front/main/backmatter (#5348).
5053 In pandoc 2.7 we assumed that every class with chapters would accept
5054 `\frontmatter`, `\mainmatter`, and `\backmatter`. This is not so (e.g.
5055 report does not). So pandoc 2.7 breaks on report class by including an
5056 unsupported command. Instead of the `book-class` variable, we use two
5057 variables, `has-chapters` and `has-frontmatter`, and set these
5058 intelligently in the writer.
5060 * Text.Pandoc.Shared: Improve `filterIpynbOutput`. Ensure that
5061 images are prioritized over text. `best` should include everything
5064 * Tests.Old: specify `--data-dir=../data` to ensure tests can find
5065 data files even if they haven't been installed. Remove old
5066 `pandoc_datadir` environment variable, which hasn't done anything for a
5069 * MANUAL.txt: Add recommendation to use `raw_attribute` with ipynb (#5354).
5071 * Use cmark-gfm-hs 0.1.8 (note that 0.1.7 is buggy).
5073 * Use latest pandoc-citeproc, texmath.
5076## pandoc 2.7 (2019-03-03)
5078 * Use XDG data directory for user data directory (#3582). Instead of
5079 `$HOME/.pandoc`, the default user data directory is now
5080 `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
5081 `$HOME/.local/share` but can be overridden by setting the
5082 environment variable. If this directory is missing, then
5083 `$HOME/.pandoc` is searched instead, for backwards compatibility.
5084 However, we recommend moving local pandoc data files from
5085 `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the
5086 default user data directory remains the same.
5088 * Slide show formats behavior change: content under headers
5089 less than slide level is no longer ignored, but included in
5090 the title slide (for HTML slide shows) or in a slide after
5091 the title slide (for beamer). This change makes possible
5092 2D reveal.js slideshows with content in the top slide on
5093 each stack (#4317, #5237).
5095 * Add command line option `--ipynb-output=all|none|best` (#5339).
5096 Output cells in ipynb notebooks often contain several different
5097 versions of an output, with different MIME types, e.g. an HTML
5098 table and a plain-text fallback. Specifying `--ipynb-output=best`
5099 (the default) ensures that the best version for the output format
5100 is used. `all` includes all versions, and `none` suppresses them
5101 all, leaving output cells empty.
5103 * `asciidoctor` is now an output format separate from `asciidoc`,
5104 to accommodate some minor implementation-specific differences
5105 (currently just in the treatment of display math).
5107 * Add `latexmk` as an option for `--pdf-engine` (#3195).
5108 Note that you can use `--pdf-engine-opt=-outdir=bar` to specify
5109 a persistent temp directory.
5113 + Improve tight/loose list handling (#5285). Previously the
5114 algorithm allowed list items with a mix of Para and Plain, which
5116 + Add newline when parsing blocks in YAML (#5271). Otherwise last
5117 block gets parsed as a Plain rather than a Para. This is a
5118 regression in pandoc 2.x. This patch restores pandoc 1.19
5120 + Make `yamlToMeta` respect extensions (#5272, Mauro Bieg).
5121 This adds a `ReaderOptions` parameter to `yamlToMeta` [API change].
5122 + Fix bug parsing fenced code blocks (#5304). Previously parsing
5123 would break if the code block contained a string of backticks of
5124 sufficient length followed by something other than end of line.
5126 * LaTeX reader: don't let `\egroup` match `{`. `braced` now actually
5127 requires nested braces. Otherwise some legitimate command and
5128 environment definitions can break.
5130 * Docx reader (Jesse Rosenthal):
5132 + Rename `getDocumentPath` as `getDocumentXmlPath`.
5133 + Use field notation for setting `ReaderEnv`.
5134 + Figure out `document.xml` path once at the beginning of parsing, and
5135 add it to the environment, so we can avoid repeated lookups.
5136 + Dynamically determine main document xml path (#5277).
5137 The desktop Word program places the main document file in
5138 `word/document.xml`, but the online word places it in
5139 `word/document2.xml`. This file path is actually stated in the root
5140 `_rels/.rels` file, in the `Relationship` element with an
5141 `http://../officedocument` type.
5142 + Fix paths in archive to prevent Windows failure (#5277).
5143 Some paths in archives are absolute (have an opening slash) which, for
5144 reasons unknown, produces a failure in the test suite on MS
5145 Windows. This fixes that by removing the leading slash if it exists.
5146 + Add comments to aid code readability.
5147 + Trim space inside the last inline (#5273).
5148 + Unwrap sdt elements in footnotes and comments (#5302).
5150 * Muse reader (Alexander Krotov):
5152 + Test that block level markup does not break `<verbatim>`.
5153 + Add secondary note support.
5155 * ipynb reader: handle images referring to attachments. Previously
5156 we didn't strip off the attachment: prefix, so even though the
5157 attachment was available in the mediabag, pandoc couldn't find it.
5161 + Fix parsing of figures (#5321). This ensures that a figure
5162 containing a single image is parsed as a pandoc "implicit
5163 figure" (i.e., a Para with a single Image whose title attribute
5164 begins with `fig:`). More complex figures will still be parsed
5166 + Support `fig-group` block element (#5317).
5167 + Handle citations with multiple references (#5310). The `rid`
5168 attribute can have a space-separated list of ids.
5170 * AsciiDoc Writer: Add `writeAsciiDoctor` [API change, Tarik Graba].
5171 Handle display math appropriately for Asciidoctor.
5173 * JATS writer: wrap figure caption in `<p>` to fix validation (#5290,
5178 + Implement WAI-ARIA roles for (end)notes, citations, and
5179 bibliography (#4213). Note that doc-biblioref is only used when
5180 link-citations produces links, since it belongs on links.
5181 + Include content (including speaker notes) in title slides
5186 + Ensure final newline.
5187 + Only include metadata under `jupyter` field.
5188 + Don't create attachments for images with absolute URIs,
5189 including data: URIs (#5303).
5190 + Keep plain text fallbacks in output even if a richer format is
5191 included (#5293). We don't know what output format will be needed.
5192 See the `--ipynb-output` command line option for a way to control
5193 what formats are included in the output.
5195 * Markdown writer: use `markdown="1"` when appropriate for Divs:
5196 when `native_divs` and `markdown_in_html_blocks` are disabled
5197 but `raw_html` and `markdown_attribute` are enabled.
5201 + Use right fold for `escapeString`. This is more elegant than
5202 the explicit recursive code we were using.
5203 + Avoid `{}` after control sequences when escaping.
5204 `\ldots{}.` doesn't behave as well as `\ldots.` with the latex
5205 ellipsis package. This patch causes pandoc to avoid emitting
5206 the `{}` when it is not necessary. Now `\ldots` and other
5207 control sequences used in escaping will be followed by either
5208 a `{}`, a space, or nothing, depending on context.
5209 + For beamer, include contents under headers superordinate to
5210 slidelevel (#4317). Currently we keep the fancy title slide, and
5211 add a new slide with the same title and whatever content was
5214 * Powerpoint writer (Jesse Rosenthal): support underlines.
5215 Use span with single class "underline" as in docx writer.
5217 * Muse writer: escape secondary notes (Alexander Krotov).
5219 * FB2 writer: add section identifiers support (#5229, John KetzerX).
5221 * Make `--fail-if-warnings` work for PDF output (#5343).
5223 * Lua filters (Albert Krewinkel):
5225 + Load module `pandoc` before calling `init.lua` (#5287). The file
5226 `init.lua` in pandoc's data directory is run as part of pandoc's
5227 Lua initialization process. Previously, the `pandoc` module was
5228 loaded in `init.lua`, and the structure for marshaling was
5229 set up after. This allowed simple patching of element
5230 marshaling, but made using `init.lua` more difficult. Now, all
5231 required modules are now loaded before calling `init.lua`. The
5232 file can be used entirely for user customization. Patching
5233 marshaling functions, while discouraged, is still possible via
5235 + All Lua modules bundled with pandoc, i.e., `pandoc.List`,
5236 `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the
5237 `pandoc` module. They are assigned to the fields `List`, `mediabag`,
5238 `utils`, and `text`, respectively.
5240 * Text.Pandoc.Lua (Albert Krewinkel):
5242 + Split `StackInstances` into smaller Marshaling modules.
5243 + Get `CommonState` from Lua global. This allows more control over
5244 the common state from within Lua scripts.
5248 + Support the `subject` metadata variable (#5289, Pascal Wagler).
5249 + Add `\frontmatter`, `\mainmatter`, `\backmatter`
5250 for book classes (#5306).
5252 * epub3 template: Add titlepage class to section (#5269).
5254 * HTML5 template: Add ARIA role `doc-toc` for table of contents (#4213).
5256 * Make `--metadata-file` use selected extensions (#5279, #5272, Mauro Bieg).
5258 * Text.Pandoc.Shared:
5260 + Remove `withTempDir` [API change].
5261 + Add new exported function `defaultUserDataDirs` [API change].
5262 + Add `filterIpynbOutput` [API change].
5263 + `compactify`: Avoid lists with a mix of Plain and Para elements
5266 * Text.Pandoc.Translations: reorder alphabetically and remove `Author`
5267 (#5334, Mauro Bieg).
5269 * Text.Pandoc.Extensions:
5271 + More carefully groom ipynb default extensions.
5272 + Add `all_symbols_escapable` to `githubMarkdownExtensions`.
5276 + Use system temp directory when possible (#1192). Previously we
5277 created temp dirs in the working directory, partly (a) because
5278 there were problems using the system temp directory on Windows,
5279 when their pathnames included tildes, and partly (b) because
5280 programs like `epstopdf.pl` would not be allowed to write to
5281 directories outside the working directory in restricted mode. We
5282 now (a) use the system temp dir except when the path includes
5283 tildes, and (b) set `TEXMFOUTPUT` when creating the PDF, so that
5284 subsidiary programs can use the system temp directory. This
5285 addresses problems that occurred when pandoc was used in a
5286 synced directory (such as Dropbox).
5287 + Change types of subsidiary functions to PandocIO, to allow
5288 warnings to be threaded through (#5343).
5290 * Text.Pandoc.MIME: add WebP (#5267, Mauro Bieg).
5292 * Tests: avoid calling `findPandoc` multiple times.
5294 * Old tests: remove need for temp files by using `pipeProcess`.
5296 * Added simple ipynb reader/writer tests (#5274).
5298 * Rearrange `--help` output in a more rational way, with common
5299 options at the beginning and options grouped by function (#5336).
5301 * trypandoc: Add JATS and other missing formats (Arfon Smith, #5291).
5303 * Add missing copyright notices and remove license boilerplate (#4592,
5306 * Use latest basement/foundation on 32bit windows.
5308 * Use latest skylighting (#5328). Custom syntax definitions no
5309 longer try to load `language.dtd`.
5311 * Require texmath 0.11.2.1
5313 * Use latest pandoc-citeproc (0.16.1.1).
5317 + Clarify variable substitution indentation in templates (#5338,
5318 Agustín Martín Barbero).
5319 + Reorder custom-styles section (#5324, Mauro Bieg).
5321## pandoc 2.6 (2019-01-30)
5323 * Support ipynb (Jupyter notebook) as input and output format.
5325 + Add `ipynb` as input and output format (extension `.ipynb`).
5326 + Added Text.Pandoc.Readers.Ipynb [API change].
5327 + Added Text.Pandoc.Writers.Ipynb [API change].
5328 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
5330 + Depend on ipynb library.
5331 + Note: there is no template for ipynb.
5333 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
5334 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
5337 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
5338 extension. Task lists are supported from markdown and gfm input.
5339 They should work, to some degree, in all output formats, though in
5340 most formats you'll get a bullet list with a unicode character for
5341 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
5342 box is used as the list marker. API changes:
5344 + Added constructor `Ext_task_lists` to `Extension`.
5345 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
5348 * Allow some command line options to take URL in addition to FILE.
5349 `--include-in-header`, `--include-before-body`, `--include-after-body`.
5353 + Handle empty `start` attribute (see #5162).
5354 + Treat `textarea` as a verbatim environment (#5241) and preserve
5359 + Change treatment of `number-lines` directive (Brian Leung,
5360 #5207). Directives of this type without numeric inputs should
5361 not have a `startFrom` attribute; with a blank value, the
5362 writers can produce extra whitespace.
5363 + Removed superfluous `sourceCode` class on code blocks (#5047).
5364 + Handle `sourcecode` directive as synonynm for `code` (#5204).
5368 + Remove `sourceCode` class for literate Haskell code blocks
5369 (#5047). Reverse order of `literate` and `haskell` classes on
5370 code blocks when parsing literate Haskell, so `haskell` is
5372 + Treat `<textarea>` as a verbatim environment (#5241).
5376 + Handle `minlevel` option differently (#5190, Brian Leung).
5377 When `minlevel` exceeds the original minimum level observed in
5378 the file to be included, every heading should be shifted
5380 + Allow for case of `:minlevel == 0` (#5190).
5381 + Fix treatment of links to images (#5191, Albert Krewinkel).
5382 Links with descriptions which are pointing to images are no
5383 longer parsed as inline images, but as links.
5384 + Add support for #+SELECT_TAGS (Brian Leung).
5385 + Separate filtering logic from conversion function (Brian Leung).
5387 * TWiki reader: Fix performance issue with underscores (#3921).
5389 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
5390 We may not still be exactly matching mediawiki's algorithm.
5394 + Remove `sourceCode` class for literate Haskell code blocks
5395 (#5047). Reverse order of `literate` and `haskell` classes on
5396 code blocks when parsing literate Haskell, so `haskell` is
5398 + Support `\DeclareMathOperator` (#5149).
5399 + Support `\inputminted` (#5103).
5400 + Support `\endinput` (#5233).
5401 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
5402 was interpreted as a file extension, leading pandoc not to add
5403 `.tex` (and thus not to find the file). The new behavior matches
5408 + Use `mapLeft` from Shared instead of defining own.
5410 * Docx reader (Jesse Rosenthal):
5412 + Handle level overrides (#5134).
5416 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
5417 Also supports additional core properties: `subject`, `lang`,
5418 `category`, `description`.
5419 + Make Level into a real type, instead of an alias for a tuple
5422 * ICML writer (Mauro Bieg):
5424 + Support custom-styles (#5137, see #2106).
5425 + Support unnumbered headers (#5140).
5427 * Texinfo writer: Use header identifier for anchor if present (#4731).
5428 Previously we were overwriting an existing identifier with a new one.
5430 * Org writer: Preserve line-numbering for example and code blocks
5433 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
5434 in HTML and PDF as a unicode minus sign.
5436 * Ms writer: Ensure we have a newline after .EN in display math (#5251).
5438 * RST writer: Don't wrap simple table header lines (#5128).
5440 * Asciidoc writer: Shorter delimiters for tables, blockquotes
5441 (#4364). This matches asciidoctor reference docs.
5443 * Dokuwiki writer: Remove automatic `:` prefix before internal image
5444 links (#5183, Damien Clochard). This prevented users from making
5445 relative image links.
5447 * Zimwiki writer: remove automatic colon prefix before internal
5448 images (#5183, Damien Clochard).
5450 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
5451 (#5105). Captions used to have the word 'caption' prepended; this
5452 has been removed. Also, 'thumb' is used instead of 'frame' to
5453 allow images to be resized.
5457 + Ensure that we don't get > 2 levels of section nesting,
5458 even with slide level > 2 (#5168).
5459 + If slide level == N but there is no N-level header, make
5460 sure the next header with level > N gets treated as a slide
5461 and put in a section, rather than remaining loose (#5168).
5465 + Make `plain` RawBlocks pass through in `plain` output.
5466 + Include needed whitespace after HTML figure (#5121).
5467 We use HTML for a figure in markdown dialects that can't
5468 represent it natively.
5470 * Commonmark writer:
5472 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
5473 + Implement `--toc` (`writerTableOfContents`)
5474 in commonmark/gfm writers (#5172).
5478 + Ensure that picture transforms are done on metadata too.
5479 + Small fixes to `nav.xhtml`:
5480 Add 'landmarks' id attribute to the landmarks nav.
5481 Replace old default CSS removing numbers from ol.toc li
5482 with new rules that match `nav#toc ol, nav#landmarks ol`.
5483 We keep the `toc` class on `ol` for backwards compatibility.
5487 + Make raw content marked `beamer` pass through in `beamer`
5488 output (pandoc/lua-filters#40).
5489 + Beamer: avoid duplicated `fragile` property in some cases
5491 + Add `#` special characters for listings (#4939).
5492 This character needs special handling in `\lstinline`.
5494 * RTF writer: use `toTableOfContents` from Shared to replace
5495 old duplicated code.
5499 + Support custom properties. Also supports additional core
5500 properties: `subject`, `category`, `description` (#5252,
5501 Agustín Martín Barbero).
5502 + Use `toTableOfContents` from Shared to replace old duplicated code.
5504 * ODT writer (Augustín Martín Barbero):
5506 + Fix typo in custom properties (#2839).
5507 + Improve standard properties, including the following core
5508 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
5509 `keywords`, `initial-creator` (from authors), `creation-date`
5510 (actual creation date) (#5252).
5514 + Allow '-' in filenames for custom lua writers (#5187).
5515 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
5516 + sample.lua: Add a missing `>` (MichaWiedenmann).
5518 * reveal.js template: Add `zoomKey` config (#4249).
5520 * HTML5 template: Remove unnecessary type="text/css" on style and
5521 link for HTML5 (#5146).
5523 * LaTeX template (Andrew Dunning, except where noted):
5525 + Prevent fontspec from scaling `mainfont` to match the default
5526 font, Latin Modern. A main font set to 12pt could
5527 previously appear between 11pt to 13pt depending on its design.
5528 To return to the earlier rendering, use `-V
5529 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
5530 + Display monospaced fonts without TeX ligatures when using
5531 `--pdf-engine=lualatex`. It now matches the behaviour of other
5532 engines (#5212, #5218).
5533 + Remove the deprecated `romanfont` variable. The functionality of
5534 `mainfont` is identical (#5218).
5535 + Render `\subtitle` with the standard document classes.
5536 Previously, `subtitle` only appeared when using the KOMA-Script
5537 classes or Beamer (#5213, #5244).
5538 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
5539 several language selection problems, notably with retaining
5540 French spacing conventions when switching to a verbatim
5541 environment or another language; and in printing Greek text
5542 without hyphenation (#5193).
5543 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
5544 available, improving the appearance of URLs by allowing them to
5545 break at additional points (#5193).
5546 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
5547 to correct heading levels in PDF bookmarks: see the [KOMA-Script
5548 3.26 release notes](https://komascript.de/release3.26) (#5193).
5549 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
5550 avoid a possible error when using additional packages alongside
5551 footnotes in tables (#5193, closes #4861).
5552 + Remove obsolete `fixltx2e` package, which has no functionality
5553 with TeX Live 2015 or later (#5193).
5554 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
5555 + Restrict `institute` variable to Beamer (#5219).
5556 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
5557 package if available to make footnotes in tables compatible
5558 with `hyperref` (#5234).
5559 + Number parts and chapters in book classes only if the
5560 `numbersections` variable is set, for consistency with other
5561 output formats. To return to the previous behaviour, use
5562 `-V numbersections -V secnumdepth=0` (#5235).
5563 + Reindent file (#5193).
5564 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
5565 + Set default listings language for lua, assembler (#5227, John
5566 MacFarlane). Otherwise we get an error when trying to compile code
5567 with lua or assembler code. To change the default dialect
5568 (currently 5.3 for lua and x86masm for assembler), you can use
5569 `--include-in-header` to inject something like
5570 `\lstset{defaultdialect=[5.2]Lua}`.
5572 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
5573 in an instance of PandocMonad, like the other readers and
5574 writers. [API change]
5576 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
5577 in an instance of PandocMonad, like the other readers and
5578 writers. [API change]
5580 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
5581 for `PandocError`. [API change]
5583 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
5584 This is refactored out from the Markdown writer.
5585 It can be used in other writers to create a table of contents.
5587 * Improve error messages for UTF-8 decoding errors. Now we give
5588 the filename and byte offset (#4765).
5590 * Text.Pandoc.XML: Strip out illegal XML characters in
5591 `escapeXMLString` (#5119).
5593 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
5594 The implementation of `pipeProcess` was rewritten to fix sporadic
5595 failures caused by prematurely closed pipes.
5597 * Use `safeRead` instead of `read` everywhere in the code
5598 (John MacFarlane, Mauro Bieg, #5162, #5180).
5600 * Text.Pandoc.SelfContained: Decompress `.svgz` when
5601 converting to `data:` URI (#5163, Alexander Krotov).
5603 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
5604 (#5175, Alexander Krotov). [API change]
5606 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
5607 When pandoc is compiled with ghc 8.6, Windows paths are treated
5608 differently, and paths beginning `\\server` no longer work.
5609 This commit rewrites such patsh to `\\?\UNC\server` which works.
5610 The change operates at the level of argument parsing, so it
5611 only affects the command line program.
5613 * Simplify/fix reading of `--metadata` values on command line
5614 to avoid problems relating to hvr/HsYAML#7 (#5177).
5616 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
5617 Krewinkel). Incorrect types to pandoc element constructors are
5618 automatically converted to the correct types when possible. This was
5619 already done for most constructors, but conversions are now also done
5620 for nested types (like lists of lists).
5622 * Removed custom Setup.hs, use build-type: simple. The only thing we
5623 gained from the custom build was automatic installation of the man
5624 page when using 'cabal install'. But custom builds cause problems,
5625 e.g., with cross-compilation. Installation of the man page is
5626 better handled by packagers. Note to packagers (e.g. Debian): it
5627 may be necessary to add a step installing the man page with the
5630 * Allow latest http-client, tasty, zip-archive, Glob.
5632 * Require skylighting >= 0.7.5, adding support for sml, J,
5635 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
5636 works well with cabal v2.
5640 + Use button for installer links (John MacFarlane, Mauro Bieg,
5642 + Fix links and bump required stack version (max).
5643 + Improve installation notes on associated software (Andrew
5644 Dunning). Includes explanation of how to install related tools
5645 with package managers (since the method of installing
5646 `rsvg-convert` is not obvious).
5648 * doc/org.md: improve documentation of org features (Albert
5651 * doc/lua-filters.md: use 3rd level headers for module fields.
5655 + Clarify automatic identifiers (#5201). We remove
5656 non-alphanumerics. This includes, e.g., emojis.
5657 + Fix example for Div with id (Geoffrey Ely).
5658 + Update list of LaTeX packages used.
5659 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
5660 + Mention `raw_attribute` in documentation for `raw_html` and
5661 `raw_tex` (#5240, thanks to @eiro).
5662 + Clarify that `$sep$` must come right before `$endfor$` in templates
5664 + Document metadata support for docx, odt, pptx writers (Agustín
5666 + Reorganize template variables (#5249, Andrew Dunning).
5667 Add additional headings to categorize variables, and
5668 alphabetize when there is large number; add more examples.
5669 + Document `date-meta` template variable (#5260, Tristan Stenner).
5671 * trypandoc: Fix CSS and viewport.
5673## pandoc 2.5 (2018-11-27)
5675 * Text.Pandoc.App: split into several unexported submodules (Albert
5676 Krewinkel): Text.Pandoc.App.FormatHeuristics,
5677 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
5678 Text.Pandoc.App.OutputSettings. This is motivated partly by the
5679 desire to reduce recompilations when something is modified,
5680 since App previously depended on virtually every other module.
5682 * Text.Pandoc.Extensions
5684 + Semantically, `gfm_auto_identifiers` is now a modifier of
5685 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
5686 be turned on, and then the type of identifier produced depends on
5687 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
5688 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
5689 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
5690 GitHub doesn't seem to strip non-ascii characters any more.
5692 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
5694 + Test AST object equality via Haskell (#5092). Equality of Lua
5695 objects representing pandoc AST elements is tested by unmarshalling
5696 the objects and comparing the result in Haskell.
5697 A new function `equals` which performs this test has been added to the
5698 `pandoc.utils` module.
5699 + Improve stringify. Meta value strings (MetaString)
5700 and booleans (MetaBool) are now converted to the literal string and the
5701 lowercase boolean name, respectively. Previously, all values of these
5702 types were converted to the empty string.
5704 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
5705 already exists (Alexander Krotov).
5707 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
5708 or beginning of line (#5050).
5710 * Text.Pandoc.Readers.Markdown
5712 + Fix parsing of citations, quotes, and underline emphasis
5713 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
5714 and underline emphasis were no longer recognized after certain
5715 symbols, like parentheses (#5099, #5053).
5716 + In pandoc 2.4, a soft break after an abbreviation would be
5717 relocated before it to allow for insertion of a nonbreaking
5718 space after the abbreviation. This behavior is here reverted.
5719 A soft break after an abbreviation will remain, and no nonbreaking
5720 space will be added. Those who care about this issue should take care not
5721 to end lines with an abbreviation, or to insert nonbreaking spaces
5724 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
5725 `<body>` (Alexander Krotov). Some libraries include custom elements
5728 * Text.Pandoc.Readers.HTML
5730 + Allow `tfoot` before body rows (#5079).
5731 + Parse `<small>` as a Span with class "small" (#5080).
5732 + Allow thead containing a row with `td` rather than `th` (#5014).
5734 * Text.Pandoc.Readers.LaTeX
5736 + Cleaned up handling of dimension arguments. Allow decimal points,
5738 + Don't allow arguments for verbatim, etc.
5739 + Allow space before bracketed options.
5740 + Allow optional arguments after `\\` in tables.
5741 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
5742 but know that these font changing commands take no arguments.
5744 * Text.Pandoc.Readers.Muse
5746 + Trim whitespace before parsing grid table cells (Alexander Krotov).
5747 + Add grid tables support (Alexander Krotov).
5749 * Text.Pandoc.Shared
5751 + For bibliography match Div with id `refs`, not class `references`.
5752 This was a mismatch between pandoc's docx, epub, latex, and markdown
5753 writers and the behavior of pandoc-citeproc, which actually looks for a
5754 div with id `refs` rather than one with class `references`.
5755 + Exactly match GitHub's identifier generating algorithm (#5057).
5756 + Add parameter for `Extensions` to `uniqueIdent` and
5757 `inlineListToIdentifier` (#5057). [API change]
5758 This allows these functions to be sensitive to the settings of
5759 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
5760 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
5761 also means that `gfm_auto_identifiers` can now be used in all formats.
5763 * Text.Pandoc.Writers.AsciiDoc
5765 + Use `.`+ as list markers to support nested ordered lists (#5087).
5766 + Support list number styles (#5089).
5767 + Render Spans using `[#id .class]#contents#` (#5080).
5769 * Text.Pandoc.Writers.CommonMark
5771 + Respect `--ascii` (#5043, quasicomputational).
5772 + Make sure `--ascii` affects quotes, super/subscript.
5774 * Text.Pandoc.Writers.Docx
5776 + Fix bookmarks to headers with long titles (#5091).
5777 Word has a 40 character limit for bookmark names. In addition, bookmarks
5778 must begin with a letter. Since pandoc's auto-generated identifiers may
5779 not respect these constraints, some internal links did not work. With
5780 this change, pandoc uses a bookmark name based on the SHA1 hash of the
5781 identifier when the identifier isn't a legal bookmark name.
5782 + Add bookmarks to code blocks (Nikolay Yakimov).
5783 + Add bookmarks to images (Nikolay Yakimov).
5784 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
5786 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
5789 <meta name="calibre:series" content="Classics on War and Politics"/>
5791 are now included from an epub XML metadata file. You can also include
5792 this information in your YAML metadata, like so:
5795 series: Classics on War and Policitics
5797 In addition, ibooks-specific metadata can now be included via an XML
5798 file. (Previously, it could only be included via YAML metadata, see
5801 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `"` outside of
5804 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
5805 This avoids splitting up the output unnecessarily into separate elements.
5807 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
5808 if `writerIncremental` is True (#5072).
5810 * Text.Pandoc.Writers.Muse (Alexander Krotov).
5812 + Output tables as grid tables if they have multi-line cells.
5813 + Indent simple tables only on the top level.
5814 + Output tables with one column as grid tables.
5815 + Add support for `--reference-location`.
5816 + Internal improvements.
5818 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
5819 #5095). This was a regression in pandoc 2.4.
5821 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
5823 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
5825 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
5826 when there are several choices for a particular character.
5828 * data/abbreviations
5830 + Add additional abbreviations (Andrew Dunning)
5831 Many of these borrowed from the Chicago Manual of Style 10.42,
5832 'Scholarly abbreviations'.
5836 + Asciidoc template: add :lang: to title header is lang is set in
5839 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
5840 Disabling the flag will cause derivation of ToJSON and FromJSON
5841 instances via GHC Generics instead of Template Haskell. The flag is
5842 enabled by default, as deriving via Generics can be slow (see #4083).
5846 + Tweaked drop-down lists.
5847 + Put link to site in footer.
5848 + Preselect output format.
5849 + Update on change of in or out format.
5850 + Add man input format.
5854 + Fix outdated description of latex_macros extension.
5855 + Clarified placement of bibliography.
5856 + Added "A note on security."
5857 + Fix note on curly brace syntx for locators.
5858 + Document new explicit syntax for citeproc locators.
5859 + Remove confusing cross-links for some extensions.
5860 + Don't put pandoc in code ticks in heading.
5861 + Document that `--ascii` works for gfm and commonmark too.
5862 + Add `man` to `--from` options.
5864 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
5867## pandoc 2.4 (2018-11-03)
5871 * New input format `man` (Yan Pashkovsky, John MacFarlane).
5875 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
5876 via the new `writerPreferAscii` field in `WriterOptions`.
5877 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
5878 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
5879 Previously the to-ascii translation was done in Text.Pandoc.App,
5880 and thus not available to those using the writer functions
5883 * `--ascii` now works with Markdown output. HTML5 character reference
5886 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
5887 guaranteed, but the writer will use commands like `\"{a}` and `\l`
5888 whenever possible, to avoid emitting a non-ASCII character.
5890 * For HTML5 output, `--ascii` now uses HTML5 character reference
5891 entities rather than numerical entities.
5893 * Improved detection of format based on extension (in Text.Pandoc.App).
5894 We now ensure that if someone tries to convert a file for a
5895 format that has a pandoc writer but not a reader, it won't just
5896 default to markdown.
5898 * Add viz. to abbreviations file (#5007, Nick Fleisher).
5900 * AsciiDoc writer: always use single-line section headers,
5901 instead of the old underline style (#5038). Previously the single-line
5902 style would be used if `--atx-headers` was specified, but
5903 now it is always used.
5905 * RST writer: Use simple tables when possible (#4750).
5907 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
5908 quasicomputational). Previously, the writer would unconditionally
5909 emit HTML output for subscripts, superscripts, strikeouts (if the
5910 strikeout extension is disabled) and small caps, even with
5911 `raw_html` disabled. Now there are plain-text (and, where
5912 possible, fancy Unicode) fallbacks for all of these corresponding
5913 (mostly) to the Markdown fallbacks, and the HTML output is only
5914 used when `raw_html` is enabled.
5916 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
5917 This allows raw openxml blocks and inlines to be used in the pptx
5918 writer. Caveats: (1) It's up to the user to write
5919 well-formed openxml. The chances for corruption, especially with
5920 such a brittle format as pptx, is high. (2) Because of
5921 the tricky way that blocks map onto shapes, if you are using
5922 a raw block, it should be the only block on a slide
5923 (otherwise other text might end up overlapping it). (3) The
5924 pptx ooxml namespace abbreviations are different from the
5925 docx ooxml namespaces. Again, it's up to the user to get it
5926 right. Unzipped document and ooxml specification should be
5929 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
5930 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
5931 we tell katex to convert the contents of span elements with
5932 class "math". Since math has already been identified, this
5933 avoids wasted time parsing for LaTeX delimiters. Note, however,
5934 that this may yield unexpected results if you have span elements
5935 with class "math" that don't contain LaTeX math.
5936 Also, use latest version of KaTeX by default (0.9.0).
5938 * The man writer now produces ASCII-only output, using groff escapes,
5943 + Add title, author and date to metadata; any remaining
5944 metadata fields are added as `meta:user-defined` tags.
5945 + Implement table caption numbering (#4949, Nils Carlson).
5946 Captioned tables are numbered and labeled with format "Table 1:
5947 caption", where "Table" is replaced by a translation, depending
5948 on the value of `lang` in metadata. Uncaptioned tables are not
5950 + OpenDocument writer: Implement figure numbering in captions (#4944,
5951 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
5952 The format in the caption is "Figure 1: caption" and so on
5953 (where "Figure" is replaced by a translation, depending on the
5954 value of `lang` in the metadata). Captioned figures are numbered
5955 consecutively and uncaptioned figures are not enumerated. This
5956 is necessary in order for LibreOffice to generate an
5957 Illustration Index (Table of Figures) for included figures.
5959 * RST reader: Pass through fields in unknown directives as div attributes
5960 (#4715). Support `class` and `name` attributes for all directives.
5962 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
5963 Brian Leung). Headers with the corresponding tags should not
5964 appear in the output.
5966 * Log warnings about missing title attributes now include a
5967 suggestion about how to fix the problem (#4909).
5969 * Lua filter changes (Albert Krewinkel):
5971 + Report traceback when an error occurs. A proper Lua traceback is
5972 added if either loading of a file or execution of a filter
5973 function fails. This should be of help to authors of Lua filters
5974 who need to debug their code.
5976 + Allow access to pandoc state (#5015). Lua filters and custom
5977 writers now have read-only access to most fields of pandoc's
5978 internal state via the global variable `PANDOC_STATE`.
5980 + Push ListAttributes via constructor (Albert Krewinkel).
5981 This ensures that ListAttributes, as present in OrderedList elements,
5982 have additional accessors (viz. `start`, `style`, and `delimiter`).
5984 + Rename ReaderOptions fields, use snake_case. Snake case is used
5985 in most variable names, using camelCase for these fields was an
5986 oversight. A metatable is added to ensure that the old field
5987 names remain functional.
5989 + Iterate over AST element fields when using `pairs`. This makes
5990 it possible to iterate over all ield names of an AST element by
5991 using a generic `for` loop with pairs`:
5993 for field_name, field_content in pairs(element) do
5997 Raw table fields of AST elements should be considered an
5998 implementation detail and might change in the future. Accessing
5999 element properties should always happen through the fields
6000 listed in the Lua filter docs.
6002 Note that the iterator currently excludes the `t`/`tag` field.
6004 + Ensure that MetaList elements behave like Lists. Methods usable
6005 on Lists can also be used on MetaList objects.
6007 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
6008 object to the constructor `pandoc.MetaList` now returns the
6009 passed list as a MetaList. This is consistent with the
6010 constructor behavior when passed an (untagged) list.
6012 * Custom writers: Custom writers have access to the global variable
6013 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
6014 a userdata wrapper around the full pandoc AST and exposes two
6015 fields, `meta` and `blocks`. The field content is only
6016 marshaled on-demand, performance of scripts not accessing the
6017 fields remains unaffected.
6021 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
6023 * Text.Pandoc.Shared:
6025 + Export `splitSentences`. This was previously duplicated in the Man and
6027 + Add `ToString` typeclass (Alexander Krotov).
6029 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
6031 * Text.Pandoc.Parsing
6033 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
6034 + Generalize `readWithM` from `[Char]` to any `Char` Stream
6035 that is a `ToString` instance (Alexander Krotov).
6037 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
6039 * Text.Pandoc.XML: add `toHtml5Entities`.
6041 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
6044 * Text.Pandoc.Writers.Shared
6046 + Add exported functions `toSuperscript` and
6047 `toSubscript` (quasicomputational, #4528).
6048 + Remove exported functions `metaValueToInlines`,
6049 `metaValueToString`. Add new exported functions
6050 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
6051 `lookupMetaString`. Use these whenever possible for uniformity
6052 in writers (Mauro Bieg, #4907). (Note that
6053 removed function `metaValueToInlines` was in previous
6055 + Add `metaValueToString`.
6059 + Expose more useful internals (Albert Krewinkel):
6061 - `runFilterFile` to run a Lua filter from file;
6062 - data type `Global` and its constructors; and
6063 - `setGlobals` to add globals to a Lua environment.
6065 This module also contains `Pushable` and `Peekable` instances
6066 required to get pandoc's data types to and from Lua. Low-level
6067 Lua operation remain hidden in Text.Pandoc.Lua.
6069 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
6071 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
6072 `apply` (Albert Krewinkel).
6074### Bug fixes and under-the-hood improvements
6076 * Text.Pandoc.Parsing
6078 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
6079 + Rewrite `uri` without `withRaw` (Alexander Krotov).
6080 + Generalize `parseFromString` and `parseFromString'` to any
6081 streams with Char token (Alexander Krotov)
6082 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
6084 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
6087 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
6092 + Work around HXT limitation for --syntax-definition with windows
6094 + Always preserve tabs for man format. We need it for tables.
6095 + Split command line parsing code into a separate unexported
6096 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
6098 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
6101 * New unexported module Text.Pandoc.RoffChar, provided character
6102 escape tables for roff formats.
6104 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
6105 accept processing instructions (#3123, regression since 2.0).
6107 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
6108 account for empty lists (Alexander Krotov).
6110 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
6111 headerless table (#4382).
6113 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
6114 blocks (Brian Leung).
6116 * Text.Pandoc.Readers.Vimwiki:
6118 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
6120 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
6122 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
6123 `[Char]` (Alexander Krotov).
6125 * Text.Pandoc.Readers.LaTeX
6127 + Allow space at end of math after `\` (#5010).
6128 + Add support for `nolinkurl` command (#4992, Brian Leung).
6129 + Simplified type on `doMacros'`.
6130 + Tokenize before pulling tokens, rather than after (#4408). This
6131 has some performance penalty but is more reliable.
6132 + Make macroDef polymorphic and allow in inline context.
6133 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
6134 I have actually seen tex like this in the wild.
6135 + Improved parsing of `\def`, `\let`. We now correctly parse:
6145 + Improve parsing of `\def` argspec.
6146 + Skip `\PackageError` commands (see #4408).
6147 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
6148 so no raw tex should result unless we explicitly say `+raw_tex`.
6149 Previously some raw commands did make it through.
6150 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
6151 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
6152 Text.Pandoc.Readers.LaTeX.Lang (unexported).
6153 + Simplified accent code using unicode-transforms.
6154 New dependency on unicode-transforms package for normalization.
6155 + Allow verbatim blocks ending with blank lines (#4624).
6156 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
6157 This collects some of the general-purpose code from the LaTeX reader,
6158 with the aim of making the module smaller.
6160 * Text.Pandoc.Readers.Markdown
6162 + Fix awkward soft break movements before abbreviations (#4635).
6163 + Add updateStrPos in a couple places where needed.
6165 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
6166 (#4947). These are variants for "complex scripts" like Arabic
6167 and are now treated just like b, i (bold, italic).
6169 * Text.Pandoc.Readers.Muse (Alexander Krotov)
6171 + Try to parse lists before trying to parse table.
6172 This ensures that tables inside lists are parsed correctly.
6173 + Forbid whitespace after opening and before closing markup
6175 + Parse page breaks.
6176 + Simplify `museToPandocTable` to get rid of partial functions.
6177 + Allow footnotes to start with empty line.
6178 + Make sure that the whole text is parsed.
6179 + Allow empty headers. Previously empty headers caused parser to
6180 terminate without parsing the rest of the document.
6181 + Allow examples to be indented with tabs.
6182 + Remove indentation from examples indicated by `{{{` and `}}}`.
6183 + Fix parsing of empty cells.
6184 + Various changes to internals.
6185 + Rewrite some parsers in applicative style.
6186 + Avoid tagsoup dependency.
6187 + Allow table caption to contain `+`.
6189 * Text.Pandoc.Writers.LaTeX
6191 + Add newline if math ends in a comment (#4880). This prevents the
6192 closing delimiter from being swalled up in the comment.
6193 + With `--listings`, don't pass through org-babel attributes (#4889).
6194 + With `--biblatex`, use `\autocite` when possible (#4960).
6195 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
6196 we don't have prefixes and suffixes, we use instead
6197 `\autocite{a1,a2,a3}`.
6198 + Fix description lists contining highlighted code (#4662).
6200 * Text.Pandoc.Writers.Man
6202 + Don't wrap `.SH` and `.SS` lines (#5019).
6203 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
6204 one paragraph definitions.
6205 + Moved common groff functions to Text.Pandoc.Writers.Groff.
6206 * Fix strong/code combination on man (should be `\f[CB]` not
6207 `\f[BC]`, see #4973).
6208 + Man writer: use `\f[R]` instead of `\f[]` to reset font
6209 (Alexander Krotov, #4973).
6210 + Move `splitSentences` to Text.Pandoc.Shared.
6212 * Text.Pandoc.Writers.Docx
6214 + Add framework for custom properties (#3034). So far, we don't
6215 actually write any custom properties, but we have the
6216 infrastructure to add this.
6218 + Handle tables in table cells (#4953). Although this is not
6219 documented in the spec, some versions of Word require a `w:p`
6220 element inside every table cell. Thus, we add one when the
6221 contents of a cell do not already include one (e.g. when a table
6222 cell contains a table).
6224 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
6225 Adjust header levels so that n+1 level headers are only
6226 found under n level headers, and the top level is 1.
6228 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
6229 alignment (#4385). This change eliminates the large gap we used
6230 to have between bullet and text, and also ensures that numbers
6231 in numbered lists will be right-aligned.
6233 * Text.Pandoc.Writers.ZimWiki
6235 + Number ordered list items sequentially, rather than always
6237 + Remove extra indentation on lists (#4963).
6239 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
6240 `stylesheet` (Mauro Bieg, #4990).
6242 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
6243 normal content (#4629). Otherwise a raw block can prevent a
6244 paragraph from being recognized as such.
6246 * Text.Pandoc.Writers.Ms
6248 + Removed old `escapeBar`. We don't need this now that we use
6250 + Moved common code to Text.Pandoc.Writers.Roff and to
6251 Text.Pandoc.RoffChar.
6252 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
6253 with the man writer).
6255 * Text.Pandoc.Writers.Muse (Alexander Krotov).
6257 + Add support for grid tables.
6258 + Fix Muse writer style.
6259 + Use `length` instead of `realLength` to calculate definition
6260 indentation. Muse parsers don't take character width into
6261 account when calculating indentation.
6262 + Do not insert newline before lists.
6263 + Use lightweight markup after `</em>` tag.
6265 * New unexported module Text.Pandoc.Writers.Roff, providing functions
6266 useful for all roff format writers (man, ms).
6270 + Move globals handling to separate module Text.Pandoc.Lua.Global
6273 + Lua filter internals: push Shared.Element as userdata (Albert
6274 Krewinkel). Hierarchical Elements were pushed to Lua as plain
6275 tables. This is simple, but has the disadvantage that marshaling
6276 is eager: all child elements will be marshaled as part of the
6277 object. Using a Lua userdata object instead allows lazy access
6278 to fields, causing content marshaling just (but also each time)
6279 when a field is accessed. Filters which do not traverse the full
6280 element contents tree become faster as a result.
6282### Default template changes
6286 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
6287 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
6289 * AsciiDoc template: use single-line style for title.
6291 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
6294 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
6297 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
6299 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
6302### Documentation improvements
6306 + Add chromeos install instructions (#4958) (Evan Pratten).
6307 + Add note about TinyTeX.
6311 + Change `groff` -> `roff`.
6312 + Implement `--ascii` for Markdown writer.
6313 + Clarify LaTeX image dimensions output (Mauro Bieg).
6315 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
6317 * doc/getting-started.md: Added title to test1.md to avoid warning.
6319 * doc/lua-filters.md: merge type references into main document,
6320 fix description of Code.text (Albert Krewinkel).
6322### Build infrastructure improvements
6326 + Makefile: added quick-cabal, full-cabal targets.
6327 + Make .msi download targets insensitive to order of appveyor builds.
6329 * Update benchmarks for ghc 8.6.1.
6333 + Enable more compiler warnings (Albert Krewinkel).
6334 + Make base lower bound 4.8.
6335 + Bump upper bound for QuickCheck.
6336 + Bump upper bound for binary.
6337 + Updated version bounds for containers and haddock-library (#4974).
6338 + Added docx/docPropos/custom.xml to cabal data-files.
6339 + Require skylighting 0.7.4 (#4920).
6340 + New dependency on unicode-transforms package for normalization.
6342 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
6344 * Added `tools/changelog-helper.sh`.
6346 * Added test/grofftest.sh for testing the man reader on real man pages.
6348## pandoc 2.3.1 (2018-09-28)
6352 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
6353 This eliminates a regression introduced after pandoc 2.1.1, which
6354 caused inline constructions containing newlines not to be recognized.
6355 + Fix bug with internal link targets (#4919). They were gobbling up
6356 indented content underneath.
6358 * Markdown reader: distinguish autolinks in the AST. With this change,
6359 autolinks are parsed as Links with the `uri` class. (The same is true
6360 for bare links, if the `autolink_bare_uris` extension is enabled.)
6361 Email autolinks are parsed as Links with the `email` class. This
6362 allows the distinction to be represented in the AST.
6366 + Force inline code blocks to honor export options (Brian Leung).
6367 + Parse empty argument array in inline src blocks (Brian Leung).
6369 * Muse reader (Alexander Krotov):
6371 + Added additional tests.
6372 + Do not allow code markup to be followed by digit.
6373 + Remove heading level limit.
6374 + Simplify `<literal>` tag parsers
6375 + Parse Text instead of String. Benchmark shows 7% improvement.
6376 + Get rid of HTML parser dependency.
6377 + Various code improvements.
6379 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
6380 We do this in the LaTeX writer, and it avoids problems.
6381 Note that `/` works as a LaTeX path separator on Windows.
6385 + Add support for multiprenote and multipostnote arguments
6386 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
6387 the first prefix of a multicite, and the multipostnotes follow the
6389 + Fix a use of `last` that might take empty list. If you ran with
6390 `--biblatex` and have an empty document (metadata but no blocks),
6391 pandoc would previously raise an error because of the use of
6392 `last` on an empty list.
6394 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
6395 MonadFail instance (Jonas Scholl).
6397 * ODT Writer: Improve table header row style handling (Nils Carlson).
6398 This changes the way styles for cells in the header row
6399 and normal rows are handled in ODT tables.
6400 Previously a new (but identical) style was generated for
6401 every table, specifying the style of the cells within the table.
6402 After this change there are two style definitions for table cells,
6403 one for the cells in the header row, one for all other cells.
6404 This doesn't change the actual styles, but makes post-processing
6405 changes to the table styles much simpler as it is no longer
6406 necessary to introduce new styles for header rows and there are
6407 now only two styles where there was previously one per table.
6411 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
6412 class was added to autolinks by the HTML writer, but it had to
6413 guess what was an autolink and could not distinguish
6414 `[http://example.com](http://example.com)` from
6415 `<http://example.com>`. It also incorrectly recognized
6416 `[pandoc](pandoc)` as an autolink. Now the HTML writer
6417 simply passes through the `uri` attribute if it is present,
6418 but does not add anything.
6419 + Avoid adding extra section nestings for revealjs.
6420 Previously revealjs title slides at level (slidelevel - 1)
6421 were nested under an extra section element, even when
6422 the section contained no additional (vertical) content.
6423 That caused problems for some transition effects.
6424 + Omit unknown attributes in EPUB2 output. For example,
6425 `epub:type` attributes should not be passed through,
6426 or the epub produced will not validate.
6428 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
6429 The JATS spec does not allow these.
6431 * Textile writer: don't represent `uri` class explicitly
6432 for autolinks (#4913).
6434 * Lua filters (Albert Krewinkel):
6436 + Cleanup filter execution code.
6437 + Better error on test failure.
6439 * HTML, Muse reader tests: reduce time taken by round-trip test.
6441 * Added cabal.project.
6443 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
6445 * Use hslua v1.0.0 (Albert Krewinkel).
6447 * Fix `translations/ru` to use modern Russian orthography
6450 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
6451 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
6453## pandoc 2.3 (2018-09-16)
6455 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
6456 users to specify metadata in a YAML file, regardless of the
6457 input format (#1960).
6459 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
6461 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
6464 * Text.Pandoc.Readers.LaTeX.Types:
6466 + New type `ArgSpec` (API change).
6467 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
6472 + Use `tex` instead of `latex` for raw tex-ish content. We can't
6473 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
6474 use `tex` always. Note that if `context` or `latex` specifically
6475 is desired, you can still force that in a markdown document by
6476 using the raw attribute. Note that this change may affect some
6477 filters, if they assume that raw tex parsed by the Markdown reader
6478 will be RawBlock (Format `latex`). In most cases it should be
6479 trivial to modify the filters to accept `tex` as well.
6480 + Refactor and reorganize YAML code (Mauro Bieg).
6481 + Make `example_lists` work for interrupted lists
6482 without `startnum` (#4908).
6486 + Parse `<script type="math/tex` tags as math (#4877).
6487 These are used by MathJax in some configurations.
6488 + Extract spaces inside links instead of trimming them
6489 (Alexander Krotov, #4845).
6490 + Added round-trip tests (Alexander Krotov).
6491 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
6492 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
6493 (which is helpful for translation HTML documents using MathJaX).
6495 * Org reader (Albert Krewinkel):
6497 + Respect export option `p` for planning info. Inclusion of planning info
6498 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
6499 `p` export option: setting the option to `t` will add all planning
6500 information in a *Plain* block below the respective headline.
6501 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
6503 + Strip planning info from output. Planning info is parsed, but not
6504 included in the output (as is the default with Emacs Org-mode, #4867).
6508 + Handle parameter patterns for `\def` (#4768, #4771).
6509 For example: `\def\foo#1[#2]{#1 and #2}`.
6510 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
6511 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
6512 argument as the content.
6513 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
6514 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
6515 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
6516 will be parsed as a regular Quoted inline (not using the quotes
6517 appropriate to the foreign language).
6518 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
6519 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
6520 `\textcircled`. Also fall back to combining characters when composed
6521 characters are not available.
6522 + Resolve `\ref` for figure numbers.
6523 + Support `mintinline` (#4365, Marc Schreiber).
6524 + Fix siunitx unit commands so they are only recognized in
6525 siunitx contexts (#4842). For example, `\l` outside of an
6526 siunitx context should be l-slash, not l (for liter).
6527 + Fix double `unnumbered` class (#4838). The `unnumbered` class
6528 was being included twice for starred sections.
6530 * RST reader: Don't skip link definitions after comments (#4860).
6532 * Muse reader (Alexander Krotov):
6534 + Close the `</quote>` in indented tag test.
6535 There is already a separate test for unclosed `</quote>`.
6536 + Autonumber sections in the correct order. Parsing now stops
6537 at each section header to ensure the header is registered before
6538 parsing of the next section starts.
6539 + Move duplicate code into `headingStart` function.
6540 + Allow newline after opening `*` or `**`.
6541 + Don't allow digits after closing marker in lightweight markup
6542 This change makes reader more compatible with Emacs Muse.
6543 + Parse `<verse>` tag in one pass instead of using
6544 `parseFromString`. This change makes it possible to have
6545 verbatim `</verse>` tag inside verse.
6547 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
6548 (#4336). This allows pandoc to parse ODT document produced by KDE's
6551 * Muse writer (Alexander Krotov):
6553 + Output headers without asterisks if not on the top level.
6554 + Never wrap definition list terms.
6555 + Set `envInsideBlock = True` when rendering notes.
6556 + Use `""` instead of `[]` for empty String.
6557 + Check for whitespace in the beginning and end of Str's.
6558 + Escape `-`, `;` and `>` in the beginning of strings.
6559 + Escape list markers in the beginning of notes.
6560 + Normalize inline list before testing if tags should be used.
6561 + Use tags instead of lightweight markup for empty strings.
6562 + Use lightweight markup when possible.
6563 + Escape empty strings. This guarantees that `conditionalEscapeString`
6564 never returns empty string.
6565 + Wrap conditionalEscapeString result into `Muse` type.
6566 This removes the need to pass `envInsideLinkDescription` to it.
6567 + Separate `shouldEscapeString` function.
6568 + Simplify inline list rendering.
6569 + Replace newlines in strings with spaces.
6573 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
6574 + Properly handle display math in spans (#4826). This isn't a
6575 complete solution, since other nestings of display math may still
6576 cause problems, but it should work for what is by far the most
6581 + Always output `<dt>` element, even if it is empty (#4883,
6583 + Don't prefix `epub:` attributes with `data-`.
6585 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
6586 recognize these escapes.
6588 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
6589 Image scaling was broken when a width was set to a percentage.
6591 * EPUB writer: set `epub:type` on body element in each chapter,
6592 depending on the `epub:type` of the first section (#4823). This
6593 only affects epub3. See
6594 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
6596 * FB2 writer: put `coverpage` element between title and date rather than in
6597 `document-info` element (#4854).
6599 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
6601 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
6602 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
6603 tex is now used. Previously we'd "fake it with unicode" and fall
6604 back to tex when that didn't work. But newer haddock versions
6609 + Ensure that title element is always present, even if empty (#4839).
6610 + Put author tags in the template, rather than adding them in
6613 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
6614 `linkcolor` only affects internal links, and `urlcolor` only
6615 affects linked URLs. For external links, the option to use is
6618 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
6622 + Use `.. raw:: latex` for `tex` content.
6623 + Use `.. container` for generic Divs, instead of raw HTML.
6624 + Render Divs with admonition classes as admonitions (#4833).
6625 Also omit Div with class `admonition-title`. These are generated
6626 by the RST reader and should be omitted on round-trip.
6628 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
6629 (#4855, Antonio Terceiro).
6631 * HTML5 template: add the `title-block-header` identifier to the
6632 `header` element, to make it easier to style precisely (#4767,
6635 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
6636 José de Mattos Neto).
6638 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
6639 (#4853, Wandmalfarbe).
6641 * TEI template: improve `publicationStmt`. Add support for
6642 `publisher`, `address`, `pubPlace`, and `date` variables.
6644 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
6646 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
6648 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
6652 + Clarify that `--biblatex/--natbib` don't work directly for PDF
6654 + Document `epub:type` attribute (Mauro Bieg, #4901)
6655 + Clarify when `--resource-path` has an effect.
6656 + More detail on customization in syntax highlighting section.
6657 + Document encoding issue with `--listings` (#4871, Damien Clochard).
6658 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
6659 + Use https for context wiki links (#4910).
6663 + Link to lua-filters repository (#4874).
6664 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
6666 * lua-filters.md: add links to filters, and to lua-filters repository
6671 + Indicate that cabal >= 2.0 is needed.
6672 + Added chocolatey installation method (#4844, Miodrag Milić).
6674 * Travis: exclude round-trip tests, except for nightly test which can fail.
6676 * Use latest texmath, pandoc-citeproc.
6678 * Use a patched version of foundation until
6679 https://github.com/haskell-foundation/foundation/pull/503
6682 * Clean up appveyor build and Windows package creation.
6683 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
6684 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
6686 * Remove obsolete RELEASE-CHECKLIST.md.
6688 * Added additional compiler warnings in Makefile and CI builds.
6690## pandoc 2.2.3.2 (2018-08-07)
6692 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
6693 This fixes a regression in 2.2.3, which cause boolean values to
6694 be parsed as MetaInlines instead of MetaBool.
6696 We here record another undocumented (but desirable) change in 2.2.3:
6697 numerical metadata fields are now parsed as MetaInlines rather than
6700## pandoc 2.2.3.1 (2018-08-06)
6702 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
6703 (#4817). This fixes a regression in 2.2.3 which caused embedded
6704 mappings (e.g. mappings in sequences) not to work in YAML metadata.
6706## pandoc 2.2.3 (2018-08-05)
6708 * RST reader: improve parsing of inline interpreted text roles (#4811).
6710 + Use a Span with class "title-reference" for the default
6711 title-reference role.
6712 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
6713 and `Str`s for `title-reference`.
6714 + Use Code with class "interpreted-text" instead of Span and Str for
6715 unknown roles. (The RST writer has also been modified to round-trip
6717 + Disallow blank lines in interpreted text.
6718 + Backslash-escape now works in interpreted text.
6719 + Backticks followed by alphanumerics no longer end interpreted text.
6720 + Remove support for nested inlines (Francesco Occhipinti).
6721 RST does not allow nested emphasis, links, or other inline
6722 constructs. This fixes several bugs (#4581, #4561, #4792).
6724 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
6725 Krewinkel). Emphasis was not parsed when it followed directly after
6726 some block types (e.g., lists).
6728 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
6729 keys. Previously in 2.2.2 you could not do
6741 With this change, both forms work.
6743 * DocBook reader: metadata handling improvements.
6744 Now we properly parse title and subtitle elements that are direct
6745 children of book and article (as well as children of bookinfo,
6746 articleinfo, or info). We also now use the `subtitle` metadata
6747 field for subtitles, rather than tacking the subtitle on to the
6752 + Allow images to be directly nested within links (#4810, Francesco
6754 + Use `titleblock` instead of `title` variable for title block (#4803,
6755 Francesco Occhipinti). `titleblock` contains a properly formatted
6756 title and subtitle (using top-level headers). `title` and
6757 `subtitle` variables are still available and just contain the
6758 title and subtitle text. Note that this change will require an
6759 update to custom rst templates.
6760 + Render Code with class "interpreted-text" as interpreted text role.
6762 * MediaWiki writer: Avoid extra blank line in tables with empty cells
6763 (#4794). Note that the old output is semantically identical, but the
6764 new output looks better.
6766 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
6767 Krewinkel). Exposes a function converting which flattenes a list of
6768 blocks into a list of inlines. An example use case would be the
6769 conversion of Note elements into other inlines.
6771 * RST template: use `titleblock` instead of `title`. Users of
6772 custom RST templates will want to update this.
6774 * LaTeX template: Moved some beamer code in default.latex template.
6775 This change allows beamer themes to change the template and font (as
6776 Metropolis does) (#4450).
6778 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
6780 * Added test case for #4669 to repository.
6782 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
6786 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
6787 + Clarify when `csquotes` is used in LaTeX writer (#4514).
6788 + Add `commonmark` to list of output formats where `raw_tex` has an
6792## pandoc 2.2.2.1 (2018-07-19)
6794 * Fix regression finding templates in user data directory (#4777).
6795 Under version 2.2.1 and prior pandoc found latex templates in the
6796 templates directory under the data directory, but this broke in 2.2.2.
6798 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
6799 `rawLaTeXInline` (#4781). (This primarily affects the markdown
6800 reader, and other readers that accept raw tex.)
6801 Starting in 2.2.2, everything after an `\input` (or `\include`)
6802 in a markdown file would be parsed as raw LaTeX.
6806 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
6807 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
6808 Unlike `tags`, `keywords` is used in some of the writers
6809 and default templates.
6811 * Add missing `rollingLinks` option to revealjs template (#4778,
6814## pandoc 2.2.2 (2018-07-16)
6816 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
6817 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
6819 Note: HsYAML implements YAML 1.2, in which the valid true
6820 values are `true`, `True`, `TRUE`. This means a change in
6821 the semantics of YAML metadata that could affect users:
6822 `y`, `yes`, and `on` no longer count as true values.
6824 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
6827 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
6828 Anders Waldenborg). Non-ascii characters were not stripped from
6829 identifiers even if the `ascii_identifiers` extension was
6830 enabled (which is is by default for gfm).
6832 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
6833 Remove trailing Space from list items. Parse lists that have no space
6838 + Treat `lilypond` as a verbatim environment (#4725).
6839 + Parse figure label into Image id (#4700, Mauro Bieg).
6840 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
6841 + Allow spaces around `\graphicspath` arguments (#4698).
6842 + Handle includes without surrounding blanklines (#4553).
6843 In addition, `\input` can now be used in an inline context,
6844 e.g. to provide part of a paragraph, as it can in LaTeX.
6845 + In `rawLaTeXBlock`, handle macros that resolve to a
6846 `\begin` or `\end` (#4667).
6847 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
6848 Note that this only affected LaTeX in markdown.
6849 + Tighten up reading of beamer overlay specifications (#4669).
6850 Ideally we'd turn these on only when reading beamer, but currently
6851 beamer is not distinguished from latex as an input format.
6852 This commit also activates parsing of overlay specifications
6853 after commands in general (e.g. `\item`), since they can occur
6854 in many contexts in beamer.
6855 + Parse more siunitx unit commands (#4296, #4773).
6856 + Be more forgiving in key/value option parsing (#4761).
6860 + Allow empty code spans, e.g. `` ` ` ``.
6861 + Emojis are now wrapped in Spans with class `emoji` and
6862 attribute `data-emoji` (Anders Waldenborg, #4743).
6863 This allows the writer to handle them in a special way
6864 (e.g. using a special font, or just rendering the
6867 * Muse reader (Alexander Krotov, except where indicated):
6869 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
6870 + Add support for floating images.
6871 + Add support for images with specified width.
6872 + Parse image URLs without "guard" and "takeExtension".
6873 + Split link and image parsing into separate functions.
6874 + Parse links starting with "URL:" explicitly instead of trying to strip
6875 "URL:" prefix after parsing.
6877 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
6880 * Markdown writer: Preserve `implicit_figures` with attributes, even if
6881 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
6883 * Markdown and commonmark/github writers now respect the `emoji`
6884 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
6885 `:smile:` as `:smile:` rather than converting it to a smile
6888 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
6890 * ODT/OpenDocument writer: Make internal links work (#4358).
6891 This adds proper bookmarks to the headers with non-null IDs.
6893 * EPUB writer: Properly escape pagetitle. Previously we weren't
6894 escaping `&` and other XML characters in the pagetitle, so a title
6895 containing a `&` would be invalid.
6897 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
6902 + Don't treat 'example' as a syntax name (#4748).
6903 This fixes conversions from org with example blocks.
6904 + Support `--number-sections` via the `section-numbering`
6905 directive in standalone output.
6907 * reveal.js writer and template: reuse mathjax URL
6908 provided by the argument to `--mathjax` or the normal pandoc default,
6909 rather than a hard-coded one in the template (#4701).
6913 + Properly handle footnotes in table captions (#4683).
6914 Refactored code from figure captions to use in both places.
6915 + In beamer output, fix single digit column percentage (#4690, Mauro
6918 * FB2 writer (Alexander Krotov):
6920 + Convert Plain to Para in annotation (#2424).
6921 + Fix order of items in title-info (#2424).
6923 * Custom writer: fix error message on script failure (Albert Krewinkel).
6924 Error messages produced by Lua were not displayed by Pandoc.
6926 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
6927 inline containing the emoji character and some attributes with metadata
6928 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
6929 Anders Waldenborg, #4743).
6933 + Revert fix for #4484 (only compress images on last run, #4755).
6934 This will mean some increase in the time it takes to
6935 produce an image-heavy PDF with xelatex, but it will
6936 make tables of contents correct, which is more important.
6937 + Fix logic error in `runTeXProgram`. We were running the tex program
6938 one more time than requested. This should speed up PDF production.
6940 * Allow `--template` to take a URL as argument.
6942 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
6943 highlighting style (#4687, Adrian Sieber, API change).
6945 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
6946 installer the recommended method, and note that on some older versions of
6947 macOS, homebrew installs from source and takes a lot of disk space
6952 + Clarify EPUB linked media (#4756, Mauro Bieg)
6953 + Update manual for "true" YAML values. Now that we're using HsYAML and
6954 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
6955 `y`, `yes`, `on` no longer count as true values.
6956 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
6957 + Update manual on how math is rendered in LaTeX.
6958 + Add proxy description (#4131, Mauro Bieg).
6959 + Clarify that `--toc` requires `--standalone` (#4703).
6960 + Update citation styles link (#4699, wiefling).
6962 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
6963 (kaizshang91). Note that it will not take effect when readers/writers
6964 are called as libraries (#4674).
6966 * Improved translations/fr (#4766, lux-lth).
6968 * Removed inadvertently added `.orig` files from repository (#4648).
6970 * Remove `network-uri` flag and use 'Network.Socket'.
6971 This removes a compiler warning. There is no need for the old
6972 `network-uri` flag, since network 2.6 was released in 2014.
6974 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
6976 * Bump upper bounds for dependent packages.
6978 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
6979 confused because of the way ghc 7.10 is excluded in foundation's
6980 cabal file. This can be removed when haskell-foundation/foundation#500
6983 * Require cabal-version >= 2.0. This is needed for haddock-library.
6988## pandoc 2.2.1 (2018-05-10)
6990 * Restored and undeprecated gladtex for HTML math (#4607).
6992 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
6993 [API change, reverts removal in v2.2]
6994 + Restored and undeprecated `--gladtex` option, removed in v2.2.
6996 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
6998 * Org reader: Fix image filename recognition (Albert Krewinkel).
6999 Use a function from the filepath library to check whether a string is a
7000 valid file name. The custom validity checker that was used before gave
7001 wrong results (e.g. for absolute file paths on Windows,
7002 kawabata/ox-pandoc#52).
7004 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
7008 + Strip links from headers when creating TOC (#4340).
7009 Otherwise the TOC entries will not link to the sections.
7010 + Fix regression with tex math environments in HTML + MathJax (#4639).
7012 * Muse writer (Alexander Krotov): Add support for left-align and
7013 right-align classes (#4542).
7015 * Docx writer: Support underline (#4633).
7017 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
7018 `singleQuoteStart` and `doubleQuoteStart` (#4637).
7020 * `test-pandoc-utils.lua`: more robust testing on both windows
7021 and \*nix. Previously the pipe tests were only run if
7022 `\bin/false` and `/bin/sed` were present, which they aren't
7023 in default MacOS and Windows systems. Fixed by using `tr`
7024 and `false`, which should always be in the path on a \*nix
7025 system, and `find` and `echo` for Windows.
7027 * Text.Pandoc.Shared: add `uriPathToPath`.
7028 This adjusts the path from a file: URI in a way that is sensitive
7029 to Windows/Linux differences. Thus, on Windows,
7030 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
7031 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
7033 * Use `uriPathToPath` with file: URIs (#4613).
7035 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
7038 * Text.Pandoc.Class: Catch IO errors when writing media files
7039 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
7041 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
7043 * MANUAL (Mauro Bieg):
7045 + Clarify truthiness in template variables (#2281).
7046 + Clarify pipe table width calculation (#4520).
7048 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
7049 CMU Serif gives better typographic results than the previous
7050 Greek fallback DejaVu Serif.
7052 * Make HTML template polyglot (#4606, OvidiusCicero), by making
7053 `<link rel="stylesheet" href="$css$">` self-closing.
7055 * Use texmath 0.11, allowing better translation of non-ASCII
7056 characters in math (#4642).
7059## pandoc 2.2 (2018-04-27)
7061 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
7063 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
7064 and for `ms` and `man`.
7066 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
7067 `--asciimathml` options.
7069 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
7070 Krotov, API change).
7074 + Allow empty key-value attributes, like `title=""` (#2944).
7075 + Handle table w/o following blank line in fenced div (#4560).
7076 + Remove "fallback" for `doubleQuote` parser. Previously the
7077 parser tried to be efficient -- if no end double quote was found,
7078 it would just return the contents. But this could backfire in a
7079 case `**this should "be bold**`, since the fallback would return
7080 the content `"be bold**` and the closing boldface delimiter
7081 would never be encountered.
7082 + Improve computation of the relative width of the last column in a
7083 multiline table, so we can round-trip tables without constantly
7084 shrinking the last column.
7088 + Fix images with space in file path (#4344).
7092 + Properly resolve section numbers with `\ref` and chapters (#4529).
7093 + Parse sloppypar environment (#4517, Marc Schreiber).
7094 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
7095 Previously there were some bugs in how macros were handled.
7096 + Support `\MakeUppercase`, `\MakeLowercase`, `\uppercase`,
7097 `\lowercase`, and also `\MakeTextUppercase` and
7098 `\MakeTextLowercase` from textcase (#4959).
7102 + Fixed tables with no body rows (#4513).
7103 Previously these raised an exception.
7107 + Improve table parsing (#4508). This fixes detection of table
7108 attributes and also handles `!` characters in cells.
7112 + Properly handle title in `section` element (#4526).
7113 Previously we just got `section_title` for `section` (though `sect1`,
7114 `sect2`, etc. were handled properly).
7115 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
7119 + Combine adjacent CodeBlocks with the same attributes into
7120 a single CodeBlock. This prevents a multiline codeblock in
7121 Word from being read as different paragraphs.
7125 + Allow < 3 spaces indent under directives (#4579).
7126 + Fix anonymous redirects with backticks (#4598).
7128 * Muse reader (Alexander Krotov):
7130 + Add support for Text::Amuse multiline headings.
7131 + Add `<math>` tag support.
7132 + Add support for `<biblio>` and `<play>` tags.
7133 + Allow links to have empty descriptions.
7134 + Require block `<literal>` tags to be on separate lines.
7135 + Allow `-` in anchors.
7136 + Allow verse to be indented.
7137 + Allow nested footnotes.
7138 + Internal improvements.
7140 * Muse writer (Alexander Krotov):
7142 + Escape `>` only at the beginning of a line.
7143 + Escape `]` in image title.
7144 + Escape `]` brackets in URLs as `%5D`.
7145 + Only escape brackets when necessary.
7146 + Escape ordered list markers.
7147 + Do not escape list markers unless preceded by space.
7148 + Escape strings starting with space.
7149 + Escape semicolons and markers after line break.
7150 + Escape `;` to avoid accidental comments.
7151 + Don't break headers, line blocks and tables with line breaks.
7152 + Correctly output empty headings.
7153 + Escape horizontal rule only if at the beginning of the line.
7154 + Escape definition list terms starting with list markers.
7155 + Place header IDs before header.
7156 + Improve span writing.
7157 + Do not join Spans in normalization.
7158 + Don't align ordered list items.
7159 + Remove key-value pairs from attributes before normalization.
7160 + Enable `--wrap=preserve` for all tests by default.
7161 + Reduced `<verbatim>` tags in output.
7166 + Use more consistent indentation (#4563). Previously we
7167 used an odd mix of 3- and 4-space indentation. Now we use 3-space
7168 indentation, except for ordered lists, where indentation must
7169 depend on the width of the list marker.
7170 + Flatten nested inlines (#4368, Francesco Occhipinti).
7171 Nested inlines are not valid RST syntax, so we flatten them following
7172 some readability criteria discussed in #4368.
7176 + Ensure that `pagetitle` is always set, even when structured titles
7177 are used. This prevents spurious warnings about empty title
7180 * FB2 writer (Alexander Krotov):
7182 + Output links inline instead of producing notes. Previously all links
7183 were turned into footnotes with unclickable URLs inside.
7184 + Allow emphasis and notes in titles.
7185 + Don't intersperse paragraph with empty lines.
7186 + Convert metadata value `abstract` to book annotation.
7187 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
7188 FB2 does not have a way to represent line breaks inside paragraphs;
7189 previously we used `<empty-line />` elements, but these are not allowed
7192 * Powerpoint writer (Jesse Rosenthal):
7194 + Handle Quoted Inlines (#4532).
7195 + Simplify code with `ParseXml`.
7196 + Allow fallback options when looking for placeholder type.
7197 + Check reference-doc for all layouts.
7198 + Simplify speaker notes logic.
7199 + Change notes state to a simpler per-slide value.
7200 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
7201 means no speaker notes.
7202 + Add tests for improved speaker notes.
7203 + Handle speaker notes earlier in the conversion process.
7204 + Keep notes with related blocks (#4477). Some blocks automatically
7205 split slides (imgs, tables, `column` divs). We assume that any
7206 speaker notes immediately following these are connected to these
7207 elements, and keep them with the related blocks, splitting after them.
7208 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
7209 It contained a nonfree ICC color calibration profile and is not needed
7210 for production of a powerpoint document.
7214 + Include a blank line at the end of the row in a single-row multiline
7215 table, to prevent it from being interpreted as a simple table (#4578).
7217 * CommonMark writer:
7219 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
7220 enabled (#4527, quasicomputational).
7224 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
7228 + In beamer, don't use format specifier for default ordered lists
7229 (#4556). This gives better results for styles that put ordered list
7230 markers in boxes or circles.
7231 + Update `\lstinline` delimiters (#4369, Tim Parenti).
7235 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
7236 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
7237 since the header font is automatically bold (#4552).
7238 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
7239 + Create pdf anchor for a Div with an identifier (#4515).
7240 + Escape `/` character in anchor ids (#4515).
7241 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
7246 + Don't escape U+2019 as `'` (#4550).
7248 * Text.Pandoc.Options:
7250 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
7251 `Text.Pandoc.Options.HTMLMathMethod` [API change].
7253 * Text.Pandoc.Class:
7255 + `writeMedia`: unescape URI-escaping in file path. This avoids
7256 writing things like `file%20one.png` to the file system.
7258 * Text.Pandoc.Parsing:
7260 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
7262 + `uri`: don't treat `*` characters at end as part of URI (#4561).
7266 + Use the alias `application/eps` for EPS (#2067).
7267 This will ensure that we retain the eps extension after reading the
7268 image into a mediabag and writing it again.
7272 + Use `withTempDir` in `html2pdf`.
7273 + With `xelatex`, don't compress images til the last run (#4484).
7274 This saves time for image-heavy documents.
7275 + Don't try to convert EPS files (#2067). `pdflatex` converts them
7276 itself, and JuicyPixels can't do it.
7277 + For `pdflatex`, use a temp directory in the working directory.
7278 Otherwise we can have problems with the EPS conversion pdflatex
7279 tries to do, which can't operate on a file above the working
7280 directory without `--shell-escape`.
7282 * Changes to tests to accommodate changes in pandoc-types.
7283 In <https://github.com/jgm/pandoc-types/pull/36> we changed
7284 the table builder to pad cells. This commit changes tests
7285 (and two readers) to accord with this behavior.
7287 * Set default extensions for `beamer` same as `latex`.
7291 + Add `beameroption` variable (#4359, Étienne Bersac).
7292 + Use `pgfpages` package; this is needed for notes on second
7293 screen in beamer (Étienne Bersac).
7294 + Add `background-image` variable (#4601, John Muccigrosso).
7296 * reveal.js template: Add `background-image` variable (#4600,
7299 * ms template: Fix date. Previously `.ND` was used, but this only
7300 works if you have a title page, which we don't. Thanks to @teoric.
7302 * Removed pragmas for unused extensions (#4506, Anabra).
7304 * Fix bash completion for `--print-default-data-file` (#4549).
7305 Previously this looked in the filesystem, even if pandoc
7306 was compiled with `embed_data_files` (and sometimes it looked
7307 in a nonexistent build directory). Now the bash completion
7308 script just includes a hard-coded list of data file names.
7312 + Clarify template vs metadata variables (#4501, Mauro Bieg).
7313 + Fix raw content example (#4479, Mauro Bieg).
7314 + Specify that you use html for raw output in epub.
7315 + Add examples for raw docx blocks (#4472, Tristan Stenner).
7316 The documentation states that the target format name should match
7317 the output format, which isn't the case for `docx`/`openxml` and
7319 + Don't say that `empty_paragraphs` affects markdown output (#4540).
7320 + Consolidate input/output format documentation (#4577, Mauro Bieg).
7322 * New README template. Take in/out formats from manual.
7324 * Fix example in lua-filters docs (#4459, HeirOfNorton).
7326 * Use the `-threaded` GHC flag when building benchmarks (#4587,
7327 Francesco Occhipinti).
7329 * Bump temporary upper bound to 1.4.
7331 * Use pandoc-citeproc 0.14.3.1.
7333 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
7335 * Removed old lib directory. This was used for something long ago,
7336 but plays no role now.
7338 * Removed unneeded data file `LaTeXMathML.js`.
7340 * Create 64- and 32-bit versions of Windows binary packages.
7342## pandoc 2.1.3 (2018-03-18)
7344 * Docx reader (Jesse Rosenthal):
7346 + Add tests for nested smart tags.
7347 + Parse nested smart tags.
7348 + Make unwrapSDT into a general `unwrap` function that can unwrap both
7349 nested SDT tags and smartTags. This makes the SmartTags constructor in
7350 the Docx type unnecessary, so we remove it (#4446).
7351 + Remove unused `docxWarnings` (Alexander Krotov).
7353 * RST reader: Allow unicode bullet characters (#4454).
7355 * Haddock reader: Better table handling, using haddock-library's
7356 new table support, if compiled against a version that
7357 includes it. Note that tables with col/rowspans will not
7358 translate well into Pandoc.
7360 * Muse reader (Alexander Krotov):
7362 + Various internal improvements.
7363 + Require closing tag to have the same indentation as opening.
7364 + Do not reparse blocks inside unclosed block tag (#4425).
7365 + Parse `<class>` tag (supported by Emacs Muse).
7366 + Do not produce empty Str element for unindented verse lines.
7370 + Add support to parse unit string of `\SI` command (closes #4296,
7373 * Haddock writer: In the writer, we now render tables always as
7374 grid tables, since Haddock supports these.
7376 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
7378 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
7379 docx writer. We want decimal for the top level, not lower roman.
7383 + Strip whitespace at beginning and ending of inline containers
7384 (#4327, Francesco Occhipinti).
7385 + Filter out empty inline containers (#4434). There is nothing in
7386 RST that corresponds to e.g. `Emph []`, so we just ignore elements
7387 like this (Francesco Occhipinti).
7389 * Muse writer (Alexander Krotov):
7391 + Support spans with anchors.
7392 + Replace smallcaps with emphasis before normalization.
7393 + Output smallcaps as emphasis.
7394 + Expand Cite before list normalization.
7395 + Write empty inline lists as `<verbatim></verbatim>`.
7396 + Remove empty Str from the beginning of inline lists during normalization.
7397 + Escape "-" to avoid creating bullet lists.
7398 + Fix math expansion for more than one expression per paragraph.
7399 + Expand math before inline list normalization.
7401 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
7405 + Asciify pdf anchors, since unicode anchors don't work (#4436).
7406 Internal links should be converted automatically, so this shouldn't
7407 affect users directly.
7408 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
7410 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
7411 (#4307). If it's in the title, then we get a titlebar on slides with
7412 the `plain` attribute, when the id is non-null. This fixes a regression
7415 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
7417 * JATS writer: Remove extraneous, significant whitespace (#4335,
7420 * html2pdf: inject base tag with current working directory (#4413, Mauro
7421 Bieg). This helps ensure that linked resources are included.
7423 * Add Semigroup instances for everything for which we defined a
7424 Monoid instance previously (API change):
7426 + Text.Pandoc.Class.FileTree.
7427 + Text.Pandoc.Translations.Translations.
7428 + Text.Pandoc.Extensions.Extensions.
7429 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
7430 + Text.Pandoc.Pretty.Doc.
7431 + Text.Pandoc.MediaBag.MediaBag.
7433 * Add custom Prelude to give clean code for Monoid and Semigroup
7434 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
7435 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
7436 in all source files, and Prelude is explicitly imported
7437 (this is necessary for ghci to work properly with the custom prelude).
7439 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
7441 + Export `stripLeadingTrailingSpace`.
7442 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
7443 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
7444 expand cells, even if it results in cells that don't respect relative
7445 widths or surpass page column width. This change affects RST,
7446 Markdown, and Haddock writers.
7448 * Raise error if someone tries to print docx, odt, etc. template (#4441).
7450 * LaTeX template: Provide `bidi` package's option using
7451 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
7452 clash when `polyglossia` loads it first and then it is loaded again
7455 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
7456 Menke). Instructions on how to install the ICC profiles on ConTeXt
7457 standalone can be found in the wiki:
7458 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
7459 If the ICC profiles are not available the log will contain error
7462 * Use latest pandoc-types, skylighting
7464 * Use latest pandoc-citeproc in binary package.
7466 * Bump upper bound for time, criterion, haddock-library, exceptions,
7467 http-types, aeson, haddock-library.
7469 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
7471 * pandoc.cabal: fix up other-extensions and language fields.
7472 Language is now consistently `Haskell2010`, and other-extensions
7473 is consistently `NoImplicitPrelude`. Everything else to be specified
7474 in the module header as needed.
7476 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
7477 This is no longer necessary since we no longer support ghc 7.8.
7479 * Make `weigh-pandoc` into a benchmark program.
7480 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
7481 automatically when you build (and run) benchmarks.
7483 * MANUAL: add instructions for background images reveal.js (#4325, John
7486 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
7488## pandoc 2.1.2 (2018-03-02)
7492 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
7493 "nonindent spaces" before the opening and closing `:::`, but this
7494 interfered with list parsing, so now we require the fences to be flush with
7495 the margin of the containing block.
7497 * Commonmark reader:
7499 + `raw_html` is now on by default. It can be disabled explicitly
7500 using `-f commonmark-raw_html`.
7502 * Org reader (Albert Krewinkel):
7504 + Move citation tests to separate module.
7505 + Allow changing emphasis syntax (#4378). The characters allowed before
7506 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
7507 `#+pandoc-emphasis-post`, respectively. This allows to change which
7508 strings are recognized as emphasized text on a per-document or even
7509 per-paragraph basis. Example:
7511 #+pandoc-emphasis-pre: "-\t ('\"{"
7512 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
7516 + Fixed comments inside citations (#4374).
7517 + Fix regression in package options including underscore (#4424).
7518 + Make `--trace` work.
7519 + Fixed parsing of `tabular*` environment (#4279).
7523 + Fix regression in parsing of headers with trailing space (#4280).
7525 * Muse reader (Alexander Krotov):
7527 + Enable `<literal>` tags even if amuse extension is enabled.
7528 Amusewiki disables <literal> tags for security reasons.
7529 If user wants similar behavior in pandoc, RawBlocks and RawInlines
7530 can be removed or replaced with filters.
7531 + Remove space prefix from `<literal>` tag contents.
7532 + Do not consume whitespace while looking for closing end tag.
7533 + Convert alphabetical list markers to decimal in round-trip test.
7534 Alphabetical lists are an addition of Text::Amuse.
7535 They are not present in Emacs Muse and can be ambiguous
7536 when list starts with "i.", "c." etc.
7537 + Allow `<quote>` and other tags to be indented.
7538 + Allow single colon in definition list term.
7539 + Fix parsing of verse in lists.
7540 + Improved parsing efficiency. Avoid `parseFromString`.
7541 Lists are parsed in linear instead of exponential time now.
7542 + Replace ParserState with MuseState.
7543 + Prioritize lists with roman numerals over alphabetical lists.
7544 This is to make sure "i." starts a roman numbered list,
7545 instead of a list with letter "i" (followed by "j", "k", ...").
7546 + Fix directive parsing.
7547 + Parse definition lists with multiple descriptions.
7548 + Parse next list item before parsing more item contents.
7549 + Fixed a bug: headers did not terminate lists.
7550 + Move indentation parsing from `definitionListItem` to `definitionList`.
7551 + Paragraph indentation does not indicate nested quote.
7552 Muse allows indentation to indicate quotation or alignment,
7553 but only on the top level, not within a <quote> or list.
7554 + Require that block tags are on separate lines.
7555 Text::Amuse already explicitly requires it anyway.
7556 + Fix matching of closing inline tags.
7557 + Various internal changes.
7558 + Fix parsing of nested definition lists.
7559 + Require only one space for nested definition list indentation.
7560 + Do not remove trailing whitespace from `<code>`.
7561 + Fix parsing of trailing whitespace. Newline after whitespace now
7562 results in softbreak instead of space.
7564 * Docx reader (Jesse Rosenthal, except where noted):
7566 + Handle nested sdt tags (#4415).
7567 + Don't look up dependant run styles if `+styles` is enabled.
7568 + Move pandoc inline styling inside custom-style span.
7569 + Read custom styles (#1843). This will read all paragraph and
7570 character classes as divs and spans, respectively. Dependent styles
7571 will still be resolved, but will be wrapped with appropriate style
7572 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
7573 This can be used in conjunction with the `custom-style` feature in the
7574 docx writer for a pandoc-docx editing workflow. Users can convert from
7575 an input docx, reading the custom-styles, and then use that same input
7576 docx file as a reference-doc for producing an output docx file. Styles
7577 will be maintained across the conversion, even if pandoc doesn't
7579 + Small change to Fields hyperlink parser. Previously, unquoted string
7580 required a space at the end of the line (and consumed it). Now we
7581 either take a space (and don't consume it), or end of input.
7582 + Pick table width from the longest row or header (Francesco Occhipinti,
7585 * Muse writer (Alexander Krotov):
7587 + Change verse markup: `> ` instead of `<verse>` tag.
7588 + Remove empty strings during inline normalization.
7589 + Don't indent nested definition lists.
7590 + Use unicode quotes for quoted text.
7591 + Write image width specified in percent in Text::Amuse mode.
7592 + Don't wrap displayMath into `<verse>`.
7593 + Escape nonbreaking space (`~~`).
7594 + Join code with different attributes during normalization.
7595 + Indent lists inside Div.
7596 + Support definitions with multiple descriptions.
7598 * Powerpoint writer (Jesse Rosenthal):
7600 + Use table styles This will use the default table style in the
7601 reference-doc file. As a result they will be easier when using
7602 in a template, and match the color scheme.
7603 + Remove empty slides. Because of the way that slides were split, these
7604 could be accidentally produced by comments after images. When animations
7605 are added, there will be a way to add an empty slide with either
7606 incremental lists or pauses.
7607 + Implement syntax highlighting. Note that background colors can't
7608 be implemented in PowerPoint, so highlighting styles that require
7609 these will be incomplete.
7610 + New test framework for pptx. We now compare the output of the
7611 Powerpoint writer with files that we know to (a) not be corrupt,
7612 and (b) to show the desired output behavior (details below).
7613 + Add `notesMaster` to `presentation.xml` if necessary.
7614 + Ignore links and (end)notes in speaker notes.
7615 + Output speaker notes.
7616 + Read speaker note templates conditionally. If there are speaker
7617 notes in the presentation, we read in the notesMasters templates
7618 from the reference pptx file.
7619 + Fix deletion track changes (#4303, Jesse Rosenthal).
7621 * Markdown writer: properly escape @ to avoid capture as citation
7626 + Put hypertarget inside figure environment (#4388).
7627 This works around a problem with the endfloat package and
7628 makes pandoc's output compatible with it.
7629 + Fix image height with percentage (#4389). This previously caused
7630 the image to be resized to a percentage of textwidth, rather than
7633 * ConTeXt writer (Henri Menke):
7635 + New section syntax and support `--section-divs` (#2609).
7636 `\section[my-header]{My Header}` ->
7637 `\section[title={My Header},reference={my-header}]`.
7638 The ConTeXt writer now supports the `--section-divs` option to
7639 write sections in the fenced style, with `\startsection` and
7641 + xtables: correct wrong usage of caption (Henri Menke).
7645 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
7646 + Use new golden framework (Jesse Rosenthal).
7647 + Make more deterministic to facilitate testing (Jesse Rosenthal).
7648 - `getUniqueId` now calls to the state to get an incremented digit,
7649 instead of calling to P.uniqueHash.
7650 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
7651 seed (1848), so our randoms should be the same each time.
7652 + Fix ids in comment writing (Jesse Rosenthal). Comments from
7653 `--track-changes=all` were producing corrupt docx, because the
7654 writer was trying to get id from the `(ID,_,_)` field of
7655 the attributes, and ignoring the "id" entry in the key-value pairs. We
7658 * Ms writer: Added papersize variable.
7662 + Use `height` instead of `depth` for images (#4331).
7663 + Ensure that id prefix is always used.
7664 + Don't emit `role` attribute; that was a leftover from the
7666 + Use 'xml:id', not 'id' attribute (#4371).
7670 + Do not output implicit heading IDs (#4363, Alexander
7671 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
7675 + Remove `blockToRST'` moving its logic into `fixBlocks`
7676 (Francesco Occhipinti).
7677 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
7679 * RST template: remove definition of 'math' role as raw.
7680 This used to be needed prior to v 0.8 of docutils, but
7681 now math support is built-in.
7683 * Slides: Use divs to set incremental/non-incremental (#4381,
7684 Jesse Rosenthal). The old method (list inside blockquote) still
7685 works, but we are encouraging the use of divs with class
7686 `incremental` or `nonincremental`.
7688 * Text.Pandoc.ImageSize:
7690 + Make image size detection for PDFs more robust (#4322).
7691 + Determine image size for PDFs (#4322).
7692 + EMF Image size support (#4375, Andrew Pritchard).
7694 * Text.Pandoc.Extensions:
7696 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
7697 the docx reader (defaulting to off) to read pargraph and character
7698 styles not understood by pandoc (as divs and spans, respectively).
7699 + Made `Ext_raw_html` default for `commonmark` format.
7701 * Text.Pandoc.Parsing:
7703 + Export `manyUntil` (Alexander Krotov, API change).
7704 + Export improved `sepBy1` (Alexander Krotov).
7705 + Export list marker parsers: `upperRoman`, `lowerRoman`,
7706 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
7708 * Tests/Lua: fix tests on windows (Albert Krewinkel).
7710 * Lua: register script name in global variable (#4393). The name of the Lua
7711 script which is executed is made available in the global Lua variable
7712 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
7714 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
7715 There is very little pptx-specific in these tests, so we abstract out
7716 the basic testing function so it can be used for docx as well. This
7717 should allow us to catch some errors in the docx writer that slipped
7718 by the roundtrip testing.
7720 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
7721 functions used to construct AST element values are stored in the Lua
7722 registry for quicker access. Getting a value from the registry is much
7723 faster than getting a global value (partly to idiosyncrasies of hslua);
7724 this change results in a considerable performance boost.
7728 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
7729 + `doc/lua-filters.md`: document global vars set for filters
7731 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
7732 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
7733 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
7734 Rosenthal). Blockquoted lists are still described, but fenced divs are
7735 presented in preference.
7736 + MANUAL.txt: document header and footer variables (newmana).
7737 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
7738 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
7740 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
7742 * Use latest texmath.
7744 * Use latest pandoc-citeproc.
7746 * Allow exceptions 0.9.
7748 * Require aeson-pretty 0.8.5 (#4394).
7750 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
7752 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
7754 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
7756 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
7759## pandoc 2.1.1 (2018-01-18)
7763 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
7764 blank line. See lierdakil/pandoc-crossref#160.
7765 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
7766 The change both improves performance and fixes a regression whereby
7767 normal citations inside inline notes and figure captions were not
7772 + Better handling for headers with an anchor (#4240). Instead of creating a
7773 Div containing the header, we put the id directly on the header.
7774 This way header promotion will work properly.
7775 + Add aligned environment when needed in math (#4254). `rst2latex.py`
7776 uses an `align*` environment for math in `.. math::` blocks, so this
7777 math may contain line breaks. If it does, we put the math in an
7778 `aligned` environment to simulate `rst2latex.py`'s behavior.
7782 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
7786 + Advance source position at end of stream.
7787 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
7788 extension is set (#4246). This reverts to earlier behavior and is
7789 probably safer on the whole, since some macros only modify things in
7790 included packages, which pandoc's macro expansion can't modify.
7791 + Fixed pos calculation in tokenizing escaped space.
7792 + Allow macro definitions inside macros (#4253). Previously we went into
7793 an infinite loop with
7795 \newcommand{\noop}[1]{#1}
7796 \noop{\newcommand{\foo}[1]{#1}}
7799 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
7800 widths for the body were different from widths for the header in some
7803 * Docx reader (Jesse Rosenthal):
7805 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
7806 hyperlink found in older versions of word. The changes introduced for
7807 this, though, create a framework for parsing further fields in MS Word
7808 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
7809 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
7810 contains a simple parsec parser. At the moment, only simple hyperlink
7811 fields are accepted, but that can be extended in the future.
7813 * Muse reader (Alexander Krotov):
7815 + Parse `~~` as non-breaking space in Text::Amuse mode.
7816 + Refactor list parsing.
7818 * Powerpoint writer (Jesse Rosenthal):
7820 + Change reference to `notesSlide` to `endNotesSlide`.
7821 + Move image sizing into `picProps`.
7822 + Improve table placement.
7823 + Make our own `_rels/.rels` file.
7824 + Import reference-doc images properly.
7825 + Move `Presentation.hs` out of `PandocMonad`.
7826 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
7827 defines the Presentation datatype and goes Pandoc->Presentation;
7828 T.P.W.Pandoc.Output goes Presentation->Archive.
7829 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
7830 + Avoid overlapping blocks in column output.
7831 + Position images correctly in two-column layout.
7832 + Make content shape retrieval environment-aware.
7833 + Improve image handling. We now determine image and caption placement
7834 by getting the dimensions of the content box in a given layout.
7835 This allows for images to be correctly sized and positioned in a
7836 different template. Note that images without captions and headers are
7837 no longer full-screened. We can't do this dependably in different
7838 layouts, because we don't know where the header is (it could be to
7839 the side of the content, for example).
7840 + Read presentation size from reference file. Our presentation size is
7841 now dependent on the reference/template file we use.
7842 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
7843 subheaders will be printed in bold and given a bit of extra space
7844 before them. Note that at the moment, no distinction is made between
7845 levels of headers above the slide header, though that can be changed.
7846 + Check for required files. Since we now import from reference/dist
7847 file by glob, we need to make sure that we're getting the files we
7848 need to make a non-corrupt Powerpoint. This performs that check.
7849 + Improve templating using `--reference-doc`. Templating should work
7850 much more reliably now.
7851 + Include Notes slide in TOC.
7852 + Set notes slide header to slide-level.
7853 + Add table of contents. This is triggered by the `--toc` flag. Note
7854 that in a long slide deck this risks overrunning the text box. The user
7855 can address this by setting `--toc-depth=1`.
7856 + Set notes slide number correctly.
7857 + Clean up adding metadata slide. We want to count the slide numbers
7858 correctly if it's in there.
7859 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
7860 an anchor link. In powerpoint these are links to slides, so we keep
7861 track of a map relating anchors to the slides they occur on.
7862 + Make the slide number available to the blocks. For anchors,
7863 block-processing functions need to know what slide number
7864 they're in. We make the `envCurSlideId` available to blocks.
7865 + Move `curSlideId` to environment.
7866 + Allow setting `toc-title` in metadata.
7867 + Link notes to endnotes slide.
7871 + Fix cell width calculation (#4265). Previously we could get
7872 ever-lengthening cell widths when a table was run repeatedly through
7873 `pandoc -f markdown -t markdown`.
7877 + Escape `&` in lstinline (Robert Schütz).
7881 + Use xtables instead of Tables (#4223, Henri Menke).
7882 Default to xtables for context output. Natural Tables are used
7883 if the new `ntb` extension is set.
7887 + Fixed footnote backlinks with `--id-prefix` (#4235).
7889 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
7892 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
7893 (Jesse Rosenthal, API change).
7895 * Lua filters (Albert Krewinkel):
7897 + Make `PANDOC_READER_OPTIONS` available.
7898 The options which were used to read the document are made available to
7899 Lua filters via the `PANDOC_READER_OPTIONS` global.
7900 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
7901 on a Pandoc document.
7902 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
7903 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
7904 + Improve error messages. Provide more context about the task
7905 which caused an error.
7907 * data/pandoc.lua (Albert Krewinkel):
7909 + Accept singleton inline as a list. Every constructor which accepts a
7910 list of inlines now also accepts a single inline element for
7912 + Accept single block as singleton list. Every constructor which accepts
7913 a list of blocks now also accepts a single block element for
7914 convenience. Furthermore, strings are accepted as shorthand for
7915 `{pandoc.Str "text"}` in constructors.
7916 + Add attr, listAttributes accessors. Elements with
7917 attributes got an additional `attr` accessor. Attributes were
7918 accessible only via the `identifier`, `classes`, and `attributes`,
7919 which was in conflict with the documentation, which indirectly states
7920 that such elements have the an `attr` property.
7921 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
7922 module is closely tied to the pandoc version, which is available via
7924 + Fix access to Attr components. Accessing an Attr value (e.g.,
7925 ` Attr().classes`) was broken; the more common case of accessing it via
7926 an Inline or Block element was unaffected by this.
7928 * Move `metaValueToInlines` to from Docx writer to
7929 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
7934 + Clarify otherlangs in LaTeX (#4072).
7935 + Clarify `latex_macros` extension.
7936 + Recommend use of `raw_attribute` extension in header includes (#4253).
7938 * Allow latest QuickCheck, tasty, criterion.
7940 * Remove custom prelude and ghc 7.8 support.
7942 * Reduce compiler noise (exact paths for compiled modules).
7944## pandoc 2.1 (2018-01-07)
7946 * Allow filters and lua filters to be interspersed (#4196). Previously
7947 we ran all lua filters before JSON filters. Now we run filters in
7948 the order they are presented on the command line, whether lua or JSON.
7949 There are two incompatible API changes: The type of `applyFilters`
7950 has changed, and `applyLuaFilters` has been removed. `Filter` is
7953 * Use latest skylighting and omit the `missingIncludes` check, fixing
7954 a major performance regression in earlier releases of the 2.x series
7955 (#4226). Behavior change: If you use a custom syntax definition that
7956 refers to a syntax you haven't loaded, pandoc will now complain when
7957 it is highlighting the text, rather than doing a check at the start.
7958 This change dramatically speeds up invocations of pandoc on short
7961 * Text.Pandoc.Class: make `FileTree` opaque (don't export
7962 `FileTree` constructor). This forces users to interact with it using
7963 `insertInFileTree` and `getFileInfo`, which normalize file names.
7967 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
7968 direct, avoiding `parseFromString`. And it performs significantly
7969 better; unfortunately, parsing time still increases exponentially
7971 + Avoid parsing raw tex unless `\` + letter seen. This seems to
7972 help with the performance problem, #4216.
7974 * LaTeX reader: Simplified a check for raw tex command.
7976 * Muse reader (Alexander Krotov):
7978 + Enable round trip test (#4107).
7979 + Automatically translate `#cover` into `#cover-image`.
7980 Amusewiki uses #cover directive to specify cover image.
7982 * Docx reader (Jesse Rosenthal):
7984 + Allow for insertion/deletion of paragraphs (#3927).
7985 If the paragraph has a deleted or inserted paragraph break (depending
7986 on the track-changes setting) we hold onto it until the next
7987 paragraph. This takes care of accept and reject. For this we introduce
7988 a new state which holds the ils from the previous para if necessary.
7989 For `--track-changes=all`, we add an empty span with class
7990 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
7991 prior to the break to be inserted or deleted.
7992 + Remove unused anchors (#3679). Docx produces a lot of anchors with
7993 nothing pointing to them---we now remove these to produce cleaner
7994 output. Note that this has to occur at the end of the process
7995 because it has to follow link/anchor rewriting.
7996 + Read multiple children of `w:sdtContents`.
7997 + Combine adjacent anchors. There isn't any reason to have numerous
7998 anchors in the same place, since we can't maintain docx's
7999 non-nesting overlapping. So we reduce to a single anchor.
8002 * Muse writer (Alexander Krotov): don't escape URIs from AST
8006 + Removed redundant subtitle in title (Sebastian Talmon).
8007 + `firstRow` table definition compatibility for Word 2016 (Sebastian
8008 Talmon). Word 2016 seems to use a default value of "1" for table
8009 headers, if there is no firstRow definition (although a default
8010 value of 0 is documented), so all tables get the first Row formatted
8011 as header. Setting the parameter to 0 if the table has no header
8012 row fixes this for Word 2016
8013 + Fix custom styles with spaces in the name (#3290).
8015 * Powerpoint writer (Jesse Rosenthal):
8017 + Ignore Notes div for parity with other slide outputs.
8018 + Set default slidelevel correctly. We had previously defaulted to
8019 slideLevel 2. Now we use the correct behavior of defaulting to the
8020 highest level header followed by content. We change an expected test
8021 result to match this behavior.
8022 + Split blocks correctly for linked images.
8023 + Combine adjacent runs.
8024 + Make inline code inherit code size. Previously (a) the code size
8025 wasn't set when we force size, and (b) the properties was set from
8026 the default, instead of inheriting.
8027 + Simplify `replaceNamedChildren` function.
8028 + Allow linked images. The following markdown:
8029 `[](http://www.example.com)`
8030 will now produce a linked image in the resulting PowerPoint file.
8031 + Fix error with empty table cell. We require an empty `<a:p>` tag,
8032 even if the cell contains no paragraphs---otherwise PowerPoint
8033 complains of corruption.
8034 + Implement two-column slides. This uses the columns/column div
8035 format described in the pandoc manual. At the moment, only two
8036 columns (half the screen each) are allowed. Custom widths are not
8040 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
8042 * Lua filters (Albert Krewinkel):
8044 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
8045 + The current pandoc-types version is made available to Lua programs in
8046 the global `PANDOC_API_VERSION`. It contains the version as a list of
8048 + The pandoc version available as a global `PANDOC_VERSION` (a list
8050 + `data/pandoc.lua`: make `Attr` an `AstElement`.
8051 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
8052 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
8053 not set a metatable on the returned value, which made it difficult
8054 to amend objects of these types with new behavior. They are now
8055 subtypes of AstElement, meaning that all their objects can gain
8056 new features when a method is added to the behavior object
8057 (e.g., `pandoc.Pandoc.behavior`).
8058 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
8059 between a type and the behavioral properties of an instance of that
8060 type. The behavior of a type (and all its subtypes) can now be
8061 amended by adding methods to that types `behavior` object, without
8062 exposing the type objects internals. E.g.:
8064 pandoc.Inline.behavior.frob = function () print'42' end
8065 local str = pandoc.Str'hello'
8066 str.frob() -- outputs '42'
8068 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
8069 of a given type (e.g., all inline elements) was difficult, as the
8070 table used to lookup unknown methods would be reset every time a
8071 new element of that type was created, preventing recursive property
8072 lookup. This is was changed in that all methods and attributes of
8073 supertypes are now available to their subtypes.
8074 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
8075 fields were named like the Haskell fields, not like the documented,
8076 shorter version. The names are changed to match the documentation
8077 and Citations are given a shared metatable to enable simple
8079 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
8080 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
8081 difficult to handle failures while getting lists or a Map from Lua.
8082 A bug in pandoc, which made it necessary to always pass a tag when
8083 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
8084 module's constructor functions for these values is now optional
8085 (if still recommended).
8086 + Stop exporting `pushPandocModule` (API change). The introduction
8087 of `runPandocLua` renders direct use of this function obsolete.
8088 + Update generation of module docs for lua filters.
8089 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
8090 MacFarlane). I'm sure this was intended in the first place,
8091 but currently only `Meta` is supported.
8093 * Improve benchmarks.
8095 + Set the default extensions properly.
8096 + Improve benchmark argument parsing. You can now say
8097 `make bench BENCHARGS="markdown latex reader"` and both the
8098 markdown and latex readers will be benchmarked.
8100 * MANUAL.txt simplify and add more structure (Mauro Bieg).
8102 * Generate README.md from template and MANUAL.txt.
8103 `make README.md` will generate the README.md after changes
8104 to MANUAL.txt have been made.
8106 * Update copyright notices to include 2018 (Albert Krewinkel).
8108## pandoc 2.0.6 (2017-12-28)
8110 * Added `jats` as an input format.
8112 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
8113 change) (Hamish Mackenzie).
8114 + Improved citation handling in JATS reader. JATS citations
8115 are now converted to pandoc citations, and JATS ref-lists
8116 are converted into a `references` field in metadata, suitable
8117 for use with pandoc-citeproc. Thus a JATS article with embedded
8118 bibliographic information can be processed with pandoc and
8119 pandoc-citeproc to produce a formatted bibliography.
8121 * Allow `--list-extensions` to take an optional FORMAT argument.
8122 This lists the extensions set by default for the selected FORMAT.
8123 The extensions are now alphabetized, and the `+` or `-`
8124 indicating the default setting comes before, rather than after,
8129 + Preserve original whitespace between blocks.
8130 + Recognize `\placeformula` as context.
8131 + Be pickier about table captions. A caption starts with a `:` which
8132 can't be followed by punctuation. Otherwise we can falsely interpret
8133 the start of a fenced div, or even a table header line like
8134 `:--:|:--:`, as a caption.
8135 + Always use four space rule for example lists. It would be awkward
8136 to indent example list contents to the first non-space character after
8137 the label, since example list labels are often long. Thanks to
8138 Bernhard Fisseni for the suggestion.
8139 + Improve raw tex parsing. Note that the Markdown reader is also
8140 affected by the `latex_macros` extension changes described below
8141 under the LaTeX reader.
8145 + `latex_macros` extension changes (#4179). Don't pass through macro
8146 definitions themselves when `latex_macros` is set. The macros
8147 have already been applied. If `latex_macros` is enabled, then
8148 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
8149 a macro definition, and will update pandoc's internal macro map
8150 accordingly, but the empty string will be returned.
8151 + Export `tokenize`, `untokenize` (API change).
8152 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
8153 + Refactored `inlineCommand`.
8154 + Fix bug in tokenizer. Material following `^^` was
8155 dropped if it wasn't a character escape. This only affected
8156 invalid LaTeX, so we didn't see it in the wild, but it appeared
8157 in a QuickCheck test failure.
8158 + Fix regression in LateX tokenization (#4159). This mainly affects the
8159 Markdown reader when parsing raw LaTeX with escaped spaces.
8160 + Add tests of LaTeX tokenizer.
8161 + Support `\foreignlanguage` from babel.
8162 + Be more tolerant of `&` character (#4208). This allows us to parse
8163 unknown tabular environments as raw LaTeX.
8165 * Muse reader (Alexander Krotov):
8167 + Parse anchors immediately after headings as IDs.
8168 + Require that note references does not start with 0.
8169 + Parse empty comments correctly.
8171 * Org reader (Albert Krewinkel):
8173 + Fix asterisks-related parsing error (#4180).
8174 + Support minlevel option for includes (#4154). The level of headers
8175 in included files can be shifted to a higher level by specifying a
8176 minimum header level via the `:minlevel` parameter. E.g.
8177 `#+include: "tour.org" :minlevel 1` will shift the headers in
8178 tour.org such that the topmost headers become level 1 headers.
8179 + Break-up org reader test file into multiple modules.
8183 + Enable raw HTML and other extensions by default for notes
8184 (#4164). This fixes a regression in 2.0. Note that extensions can
8185 now be individually disabled, e.g. `-f opml-smart-raw_html`.
8189 + Allow empty list items (#4193).
8190 + More accurate parsing of references (#4156). Previously we erroneously
8191 included the enclosing backticks in a reference ID (#4156). This
8192 change also disables interpretation of syntax inside references, as
8193 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
8197 + Continue lists after interruption (#4025, Jesse Rosenthal).
8198 Docx expects that lists will continue where they left off after an
8199 interruption and introduces a new id if a list is starting again. So
8200 we keep track of the state of lists and use them to define a "start"
8201 attribute, if necessary.
8202 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
8203 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
8208 + Don't linkify table of contents.
8212 + Fix anchors for headers (#4188). We were missing an `_`.
8214 * PowerPoint writer (Jesse Rosenthal):
8216 + Treat lists inside BlockQuotes as lists. We don't yet produce
8217 incremental lists in PowerPoint, but we should at least treat lists
8218 inside BlockQuotes as lists, for compatibility with other slide formats.
8219 + Add ability to force size. This replaces the more specific
8220 `blockQuote runProp`, which only affected the size of blockquotes. We
8221 can use this for notes, etc.
8222 + Implement notes. This currently prints all notes on a final slide.
8223 Note that at the moment, there is a danger of text overflowing the
8224 note slide, since there is no logic for adding further slides.
8225 + Implement basic definition list functionality to PowerPoint writer.
8226 + Don't look for default template file for Powerpoint (#4181).
8227 + Add pptx to isTextFormat list. This is used to check standalone
8228 and not writing to the terminal.
8229 + Obey slide level option (Jesse Rosenthal).
8234 + Ensure that `distArchive` is the one that comes with pandoc
8235 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
8236 dir) would be used instead, and this could cause problems because a
8237 user-modified docx sometimes lacks vital sections that we count
8238 on the `distArchive` to supply.
8242 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
8243 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
8244 Alexander Krotov). Otherwise they can be interpreted as footnote
8247 * Muse writer (Alexander Krotov):
8249 + Don't wrap note references to the next line (#4172).
8253 + Use br elements in line blocks instead of relying on CSS
8254 (#4162). HTML-based templates have had the custom CSS for
8255 `div.line-block` removed. Those maintaining custom templates will want
8256 to remove this too. We still enclose line blocks in a div with class
8261 + Use `\renewcommand` for `\textlatin` with babel (#4161).
8262 This avoids a clash with a deprecated `\textlatin` command defined
8264 + Allow fragile=singleslide attribute in beamer slides (#4169).
8265 + Use `\endhead` after `\toprule` in headerless tables (#4207).
8269 + Add cover image specified by `cover-image` meta (Alexander Krotov,
8272 * JATS writer (Hamish Mackenzie):
8274 + Support writing `<fig>` and `<table-wrap>` elements
8275 with `<title>` and `<caption>` inside them by using Divs with class set
8276 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
8277 title is included as a Heading so the constraint on where Heading can
8278 occur is also relaxed.
8279 + Leave out empty alt attributes on links.
8280 + Deduplicate image mime type code.
8281 + Make `<p>` optional in `<td>` and `<th>` (#4178).
8282 + Self closing tags for empty xref (#4187).
8283 + Improve support for code language.
8287 + Use init file to setup Lua interpreter (Albert Krewinkel).
8288 The same init file (`data/init`) that is used to setup the Lua
8289 interpreter for Lua filters is also used to setup the interpreter of
8291 + Define instances for newtype wrapper (Albert Krewinkel). The custom
8292 writer used its own `ToLuaStack` instance definitions, which made
8293 it difficult to share code with Lua filters, as this could result
8294 in conflicting instances. A `Stringify` wrapper is introduced to
8296 + Added tests for custom writer.
8297 + Fixed definition lists and tables in `data/sample.lua`.
8299 * Fixed regression: when target is PDF, writer extensions were being
8300 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
8301 did not work properly.
8303 * Lua modules (Albert Krewinkel):
8305 + Add `pandoc.utils` module, to hold utility functions.
8306 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
8307 define the `pandoc` lua module.
8308 + Make a Haskell module for each Lua module. Move definitions for the
8309 `pandoc.mediabag` modules to a separate Haskell module.
8310 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
8311 + Add function `pandoc.utils.hierarchicalize` (convert list of
8312 Pandoc blocks into (hierarchical) list of Elements).
8313 + Add function `pandoc.utils.normalize_date` (parses a date and
8314 converts it (if possible) to "YYYY-MM-DD" format).
8315 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
8316 of numbers below 4000 into roman numerals).
8317 + Add function `pandoc.utils.stringify` (converts any AST element
8318 to a string with formatting removed).
8319 + `data/init.lua`: load `pandoc.utils` by default
8320 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
8321 utility functions are converted from hybrid lua/haskell functions
8322 into full Haskell functions. This avoids the need for intermediate
8323 `_pipe`/`_read` helper functions, which have dropped.
8324 + pandoc.lua: re-add missing MetaMap function. This was a bug
8325 introduced in version 2.0.4.
8327 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
8328 a pure way to insert an ersatz file into a `FileTree`. In addition, we
8329 normalize paths both on insertion and on lookup.
8331 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
8333 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
8335 * Text.Pandoc.Extensions: Alphabetical order constructors for
8336 `Extension`. This makes them appear in order in `--list-extensions`.
8338 * Allow lenient decoding of latex error logs, which are not always
8339 properly UTF8-encoded (#4200).
8341 * Update latex template to work with recent versions of beamer.
8342 The old template produced numbered sections with some recent
8343 versions of beamer. Thanks to Thomas Hodgson.
8345 * Updated reference.docx (#4175). Instead of just "Hello, world", the
8346 document now contains exemplars of most of the styles that have an
8347 effect on pandoc documents. This makes it easier to see the effect
8350 * Removed `default.theme` data file (#4096). It is no longer needed now
8351 that we have `--print-highlight-style`.
8353 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
8354 We still need this for the alpine static linux build, since
8355 we don't have ghc 8.2.2 for that yet.
8357 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
8358 can put flag settings for pandoc-citeproc there.
8360 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
8361 make releases easier.
8365 + Add note on what formats have `+smart` by default.
8366 + Use native syntax for custom-style (#4174, Mauro Bieg).
8367 + Introduce dedicated Extensions section, since some extensions
8368 affect formats other than markdown (Mauro Bieg, #4204).
8369 + Clarify default html output for `--section-divs` (Richard Edwards).
8371 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
8372 Closes jgm/pandoc-website#16.
8374 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
8376## pandoc 2.0.5 (2017-12-12)
8378 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
8379 generated with `--print-highlight-style` (#4133). Improve JSON
8380 serialization of styles.
8382 * Fix CSS issues involving line numbers (#4128).
8383 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
8384 Highlighting CSS no longer sets a generic color for pre and code; we only
8385 set these for class `sourceCode`.
8387 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
8389 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
8390 It works following the standard Pandoc conventions for making other
8391 sorts of slides. Caveats:
8393 + Syntax highlighting is not yet implemented. (This is difficult
8394 because there are no character classes in Powerpoint.)
8395 + Footnotes and Definition lists are not yet implemented. (Notes will
8396 usually take the form of a final slide.
8397 + Image placement and auto-resizing has a few glitches.
8398 + Reference powerpoint files don't work dependably from the command
8399 line. This will be implemented, but at the moment users are advised
8400 to change themes from within Powerpoint.
8402 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
8403 This is for functions used by both Powerpoint and Docx writers.
8405 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
8407 * Add `empty_paragraphs` extension.
8409 + Deprecate `--strip-empty-paragraphs` option. Instead we now
8410 use an `empty_paragraphs` extension that can be enabled on
8411 the reader or writer. By default, disabled.
8412 + Add `Ext_empty_paragraphs` constructor to `Extension`.
8413 + Revert "Docx reader: don't strip out empty paragraphs."
8414 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
8415 + Implement `empty_paragraphs` extension in docx reader and writer,
8416 opendocument writer, html reader and writer.
8417 + Add tests for `empty_paragraphs` extension.
8421 + Don't parse native div as table caption (#4119).
8422 + Improved computation of column widths in pipe tables.
8423 Pipe tables with lines longer than the text width (as set
8424 by `--columns`) are now scaled to text width, with the relative
8425 widths of columns determined by the ratios between the
8426 header lines. Previously we computed column widths using
8427 the ratio of header line lengths to column width, so that
8428 tables with narrow header lines were extremely thin, which
8429 was very rarely the desired result.
8431 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
8432 as long as it's not followed by a blank line. This has been fixed at the
8435 * Muse reader (Alexander Krotov):
8437 + Add test for `#disable-tables` directive in Emacs mode.
8438 + Don't allow emphasis to be preceded by letter.
8439 + Add underline support in Emacs Muse mode..
8440 + Support multiline directives in Amusewiki mode
8442 * Man writer: omit internal links (#4136). That is, just print the link
8443 text without the URL.
8445 * Markdown reader: accept processing instructions as raw HTML (#4125).
8447 * Lua filters (Albert Krewinkel):
8449 + Use script to initialize the interpreter. The file `init.lua` is
8450 used to initialize the Lua interpreter which is used in Lua filters.
8451 This gives users the option to require libraries which they want to
8452 use in all of their filters, and to extend default modules.
8453 + Fix package loading for Lua 5.1. The list of package searchers is
8454 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
8455 in Lua 5.2 and later.
8456 + Refactor lua module handling. The integration with Lua's package/module
8457 system is improved: A pandoc-specific package searcher is prepended to
8458 the searchers in `package.searchers`. The modules `pandoc` and
8459 `pandoc.mediabag` can now be loaded via `require`.
8460 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
8461 function which makes using Haskell functions as package loaders much
8464 * reveal.js template: add title-slide identifier to title slide (#4120).
8465 This allows it to be styled more easily.
8467 * LaTeX template: Added support for `pagestyle` variable (#4135,
8470 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
8474## pandoc 2.0.4 (2017-12-03)
8476 * Add `--print-highlight-style` option. This generates a JSON version
8477 of a highlighting style, which can be saved as a `.theme` file, modified,
8478 and used with `--highlight-style` (#4106, #4096).
8480 * Add `--strip-empty-paragraphs` option. This works for any input format.
8481 It is primarily intended for use with docx and odt documents where
8482 empty paragraphs have been used for inter-paragraph spaces.
8484 * Support `--webtex` for `gfm` output.
8486 * Recognize `.muse` file extension.
8488 * Support beamer `\alert` in LaTeX reader. Closes #4091.
8490 * Docx reader: don't strip out empty paragraphs (#2252).
8491 Users who have a conversion pipeline from docx may want to consider adding
8492 `--strip-empty-paragraphs` to the command line.
8494 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
8496 * Muse reader (Alexander Krotov):
8498 + Parse markup in definition list terms.
8499 + Allow definition to end with EOF.
8500 + Make code blocks round trip.
8501 + Drop common space prefix from list items.
8502 + Add partial round trip test.
8503 + Don't interpret XML entities.
8505 + Parse `~~` as non-breaking space in Emacs mode.
8506 + Correctly remove indentation from notes. Exactly one space is
8507 required and considered to be part of the marker.
8508 + Allow list items to be empty.
8509 + Add ordered list test.
8510 + Add more multiline definition tests.
8511 + Don't allow blockquotes within lists.
8512 + Fix reading of multiline definitions.
8513 + Add inline `<literal>` support.
8514 + Concatenate inlines of the same type
8516 * Docx writer: allow empty paragraphs (#2252).
8518 * CommonMark/gfm writer:
8520 + Use raw html for native divs/spans (#4113). This allows a pandoc
8521 markdown native div or span to be rendered in gfm using raw html tags.
8522 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
8523 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
8525 * Muse writer (Alexander Krotov):
8527 + Test that inline math conversion result is normalized.
8528 Without normalization this test produced
8529 `<em>a</em><em>b</em><em>c</em>`.
8530 + Improve inline list normalization and move to writer.
8531 + Escape hash symbol.
8532 + Escape `----` to avoid accidental horizontal rules.
8533 + Escape only `</code>` inside code tag.
8534 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
8538 + Allow specifying just width or height for image size.
8539 Previously both needed to be specified (unless the image was
8540 being resized to be smaller than its original size).
8541 If height but not width is specified, we now set width to
8542 textwidth. If width but not height is specified, we now set
8543 height to textheight. Since we have `keepaspectratio`, this
8544 yields the desired result.
8545 + Escape `~` and `_` in code with `--listings` (#4111).
8547 * HTML writer: export `tagWithAttributes`. This is a helper allowing
8548 other writers to create single HTML tags.
8550 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
8551 converting the case as needed in LaTeX and ConTeXt writers.
8553 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
8554 so that it no longer produces empty `Para`'s as an artifact.
8556 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
8557 This gives us automatic normalization, so we don't get
8558 for example two consecutive Spaces.
8560 * Include default CSS for 'underline' class in HTML-based templates.
8562 * revealjs template: add `tex2jax` configuration for the
8563 math plugin. With the next release of reveal.js, this will
8564 fix the problem of `$`s outside of math contexts being
8565 interpreted as math delimiters (#4027).
8567 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
8569 + Add basic lua List module (#4099, #4081). The List module is
8570 automatically loaded, but not assigned to a global variable. It can be
8571 included in filters by calling `List = require 'List'`. Lists of blocks,
8572 lists of inlines, and lists of classes are now given `List` as a metatable,
8573 making working with them more convenient. E.g., it is now possible to
8574 concatenate lists of inlines using Lua's concatenation operator `..`
8575 (requires at least one of the operants to have `List` as a metatable):
8577 function Emph (emph)
8578 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
8579 return pandoc.Span(emph.content .. s)
8582 The `List` metatable is assigned to the tables which get passed to
8583 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
8584 enables the use of the resulting objects as lists.
8585 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
8586 Pandoc and Meta elements are now pushed by calling the respective
8587 constructor functions of the pandoc Lua module. This makes serialization
8588 consistent with the way blocks and inlines are pushed to lua and allows
8589 to use List methods with the `blocks` value.
8590 + Add documentation for pandoc.List in `lua-filters.md`.
8592 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
8593 `&` (but not a valid entity) following them (#4094, #4088).
8595 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
8596 when `numberLines` is used (#4103).
8598 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
8599 requiring a leading 0 on single-digit days.
8601 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
8604 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
8605 Previously we only mentioned `--latexmathml`, even if `-m` was
8608 * Changelog: fix description of lua filters in 2.0 release
8609 (Albert Krewinkel). Lua filters were initially run *after* conventional
8610 (JSON) filters. However, this was changed later to make it easier to deal
8611 with files in the mediabag. The changelog is updated to describe that
8612 feature of the 2.0 release correctly.
8614 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
8615 #4085). This reduces compile time and memory usage significantly.
8617 * `lua-filters.md`: Added tikz filter example.
8619 * Create alternative zip file for macOS binaries.
8621 * Create alternative zip file for Windows binaries.
8623 * Update INSTALL.md since we now provide zips for binaries.
8625 * Relax `http-types` dependency (Justus Sagemüller, #4084).
8627 * Add `epub.md`, `getting-started.md` to docs. These used to live in
8630 * Add `packages` target to Makefile.
8632 * Bump bounds for binary, http-types, tasty-hunit
8634## pandoc 2.0.3 (2017-11-20)
8636 * Lua filters: preload text module (Albert Krewinkel, #4077).
8637 The `text` module is preloaded in lua. The module contains some UTF-8
8638 aware string functions, implemented in Haskell. The module is loaded on
8641 text = require 'text'
8643 s.text = text.upper(s.text)
8647 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
8648 #4071). Attribute lists are represented as associative lists in Lua. Pure
8649 associative lists are awkward to work with. A metatable is attached to
8650 attribute lists, allowing to access and use the associative list as if
8651 the attributes were stored in as normal key-value pair in table.
8652 Note that this changes the way `pairs` works on attribute lists. Instead
8653 of producing integer keys and two-element tables, the resulting iterator
8654 function now returns the key and value of those pairs. Use `ipairs` to
8655 get the old behavior. Warning: the new iteration mechanism only works if
8656 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
8658 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
8659 This fixes a bug where pandoc would stop parsing a URI with an
8660 empty attribute: for example, `&a=&b=` wolud stop at `a`.
8661 (The uri parser tries to guess which punctuation characters
8662 are part of the URI and which might be punctuation after it.)
8664 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
8666 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
8668 + Reimplemented `isEnabled` function from `Options.hs` to accept both
8669 `ReaderOptions` and `WriterOptions`.
8670 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
8672 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
8673 behavior for `muse`. New `Ext_amuse` constructor for
8674 `Extension`. Note: this is switched on by default; for
8675 Emacs behavior, use `muse-amuse`.
8677 * Muse reader (Alexander Krotov):
8679 + Count only one space as part of list item marker.
8680 + Produce SoftBreaks on newlines. Now wrapping can be preserved
8681 with `--wrap=preserve`.
8682 + Add Text::Amuse footnote extensions. Footnote end is indicated by
8683 indentation, so footnotes can be placed anywhere in the text,
8684 not just at the end of it.
8685 + Accept Emacs Muse definition lists when `-amuse`.
8686 Emacs Muse does not require indentation.
8690 + Ensure we don't produce level 0 headers (#4076), even for chapter
8691 sections in epubs. This causes problems because writers aren't set
8693 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
8694 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
8695 `markdown` or `html` `+tex_math_single_backslash`.
8697 * MANUAL: clarify that math extensions work with HTML.
8698 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
8699 will work with HTML as well as Markdown.
8701 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
8704 * RST reader: better support for 'container' directive (#4066).
8705 Create a div, incorporate name attribute and classes.
8709 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
8710 `rr`. We now expand it like a macro.
8711 + Allow optional args for parbox (#4056).
8712 + Allow optional arguments on `\footnote` (#4062).
8714 * EPUB writer: Fixed path for cover image (#4069). It was previously
8715 `media/media/imagename`, and should have been `media/imagename`.
8717 * Markdown writer: fix bug with doubled footnotes in grid tables
8720 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
8721 Otherwise we seem to get an error; biblatex wants polyglossia
8722 language to be defined.
8724 * Added examples to lua filters documentation.
8727## pandoc 2.0.2 (2017-11-12)
8729 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
8730 `--mimetex`, `--jsmath`.
8732 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
8733 leading to invalid XML in default JATS output with pandoc-citeproc.
8735 * `lua-filters.md`: use real-world man page filter as example.
8737 * Add lua filter functions `walk_inline` and `walk_block`
8738 in the pandoc module, to apply filters inside particular
8739 inline and block elements.
8741 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
8742 into new internal module `Text.Pandoc.Lua.Filter`.
8746 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
8747 This brings our handling of them into alignment with CommonMark's.
8748 + Fix YAML metadata with "chomp" (`|-`). Previously if a
8749 YAML block under `|-` contained a blank line, pandoc would
8750 not parse it as metadata.
8752 * Removed `etc.` from abbreviations file. Often `etc.` ends a
8753 sentence, and we want the period to be treated as a
8754 sentence-ending period.
8756 * Fix regression with `--metadata` (#4054). Values specified with
8757 `--metadata` should replace a metadata value set in the document
8758 itself, rather than creating a list including a new value.
8762 + Fix EPUB OCF structure. #3720 had been improperly implemented.
8763 + Fix modified paths for raw HTML tags (src, poster, etc.)
8764 (#4050, #4055). This had not been updated for the new EPUB
8765 container layout, with a separate text/ subdirectory.
8766 + Fix image paths with empty `--epub-subdirectory`.
8768 * Miscellaneous code cleanup (Alexander Krotov).
8770 * Use pandoc-types 1.17.3, which adds `Walkable` instances
8771 for `[Block] Block` and `[Inline] Inline`.
8773 * Remove obsolete `stack.full.yaml` (#4052).
8775 * Change to using pandoc-citeproc 0.12.1 in binary packages.
8777 * Consolidate math output method documentation (#4049, Mauro Bieg).
8779 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
8781 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
8782 Haskell filters. This is easier and faster.
8784 * Improved `INSTALL.md`.
8786 * Update commands to extract deb archive on Linux (#4043, Salim B).
8789## pandoc 2.0.1.1 (2017-11-04)
8791 * Improved fix to #3989 (parsing of HTML tags containing
8792 `>` in an attribute or comment). The previous fix (in 2.0.1) only
8793 worked in certain cases.
8795 * FB2 writer (Alexander Krotov):
8797 + Add `unrecognised` genre to `<title-info>`
8798 (Alexander Krotov). XML schema requires at least one genre.
8799 + Remove `<annotation>` from `<body>`.
8801 * CommonMark writer: fix strikethrough for `gfm` (#4038).
8803 * Use texmath 0.10, which adds support for a wider range of
8804 symbols and fixes default column alignments in MathML
8807 * Highlighting fixes, using skylighting 0.4.3.2:
8810 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
8811 + Ensure that code lines don't get duplicate identifiers (#4031).
8812 The line identifiers are built using the code block's identifier
8813 as a prefix. If the code block has null identifier, we use
8816 * Added a few abbreviations to `data/abbreviations`,
8817 and sorted the list (#3984, Wandmalfarbe).
8819 * Improved support for columns in HTML writer (#4028).
8821 + Remove `width` attribute from the `div`.
8822 + Remove space between `<div class="column">` elements,
8823 since this prevents columns whose widths sum to 100%
8824 (the space takes up space).
8825 + Move as much as possible of the CSS to the template.
8826 + Ensure that all the HTML-based templates (including epub)
8827 contain the CSS for columns.
8828 + Columns default to 50% width unless they are given a width
8829 attribute. So if you want two equal-width columns, you
8830 can use a div with class `column` and no `width` attribute.
8832 * SelfContained: use `base64` for css links with media attribute (#4026).
8833 This fixes `--self-contained` with S5.
8835 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
8837 * INSTALL.md: MacOS instructions needed xar -f (adam234).
8841 + Clarify that --setext-headers doesn't affect gfm output (#4035).
8842 + Clarify what is needed to open and close a div in `fenced_divs`
8843 (#4039, Tristano Ajmone).
8844 + Removed reference to `default.beamer` in docs (#4024).
8845 Also added mention of other templates affecting PDF output
8846 with different settings.
8849## pandoc 2.0.1 (2017-10-31)
8851 * Fixed regression in parsing of HTML comments in markdown and other
8852 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
8853 The parser stopped at the first `>` character, even if it wasn't
8854 the end of the comment.
8856 * Creole reader (Sascha Wilde):
8858 + Fix some minor typos and formatting.
8859 + Add additional test on nowiki-block after para.
8860 + Fix lists with trailing white space.
8862 * LaTeX reader: handle `%` comment right after command.
8863 For example, `\emph%`.
8865 * Markdown reader: make sure fenced div closers work in lists.
8866 Previously the following failed:
8873 and you needed a blank line before the closing `:::`.
8875 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
8876 enabled, Divs will be rendered as fenced divs.
8878 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
8881 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
8882 Note: this change may require some changes in CSS rules.
8883 `footnoteRef` has become `footnote-ref`, `titleslide` has
8884 become `title-slide`, and `footnoteBack` has become `footnote-back`.
8886 * JATS writer: Properly pass through author metadata (#4020).
8888 * FB2 writer (Alexander Krotov):
8890 + Write blocks outside of `<p>` in definitions.
8891 + Make bullet lists consistent with ordered lists, repeating
8892 the marker for the outer list rather than indenting sublists,
8893 since indentation does not work in readers.
8894 + Add new style FB2 tests.
8896 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
8897 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
8900 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
8902 * Fix broken reference links in manual (Andrew Dunning, #4014)
8904 * Fixed example of slide columns structure in changelog (#4015).
8905 Also documented this feature in MANUAL.txt.
8908## pandoc 2.0.0.1 (2017-10-30)
8912 + Fixed filepaths for nonstandard epub-subdirectory values.
8913 + Ensure that epub2 is recognized as a non-text format,
8914 so that a template is used.
8915 + Don't include "prefix" attribute for ibooks for epub2.
8916 It doesn't validate.
8917 + Fix stylesheet paths; previously we had an incorrect
8918 stylesheet path for the cover page and nav page.
8922 + Insert space when needed in macro expansion (#4007).
8923 Sometimes we need to insert a space after a control sequence
8924 to prevent it merging with a following letter.
8925 + Allow unbraced arguments for macros (#4007).
8926 + Allow body of macro definition to be unbraced (#4007).
8928 * Linux package build: ensure that pandoc-citeproc is statically linked.
8930 * trypandoc: add native, ms.
8933## pandoc 2.0 (2017-10-29)
8937 * New output format `ms` (groff ms). Complete support, including
8938 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
8939 texmath's new eqn writer to convert math to eqn format, so a ms file
8940 produced with this writer should be processed with `groff -ms -e` if
8943 * New output format `jats` (Journal Article Tag Suite). This is an XML
8944 format used in archiving and publishing articles. Note that a
8945 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
8946 unless a stylesheet is specified using `--css`.
8948 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
8949 This uses bindings to GitHub's fork of cmark, so it should parse
8950 gfm exactly as GitHub does (excepting certain postprocessing
8951 steps, involving notifications, emojis, etc.). `markdown_github`
8952 has been deprecated in favor of `gfm`.
8954 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
8956 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
8957 This uses bindings to GitHub's fork of cmark. `markdown_github`
8958 has been deprecated in favor of `gfm`.
8960 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
8962 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
8964 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
8965 Note that there is a new data file, `data/vimwiki.css`, which can
8966 be used to display the HTML produced by this reader and
8967 pandoc's HTML writer in the style of vimwiki's own HTML
8970 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
8972 * New syntax for Divs, with `fenced_divs` extension enabled by
8973 default (#168). This gives an attractive, plain-text way to create
8974 containers for block-level content.
8976 * Added new syntax for including raw content in any output format,
8977 enabled by the `raw_attribute` extension (which is on by default
8978 for `markdown` and `multimarkdown`). The syntax is the same as
8979 for fenced code blocks or code inlines, only with `{=FORMAT}` for
8980 attributes, where `FORMAT` is the name of the output format
8981 (e.g., `ms`, `html`).
8983 * Implement multicolumn support for slide formats (#1710).
8984 The structure expected is:
8986 :::::::::::::: {.columns}
8987 ::: {.column width="40%"}
8990 ::: {.column width="60%"}
8995 Support has been added for beamer and all HTML slide formats.
8997 * Allows line comments in templates, beginning with `$--` (#3806).
8998 (Requires doctemplates 0.2.1.)
9000 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
9001 (Stefan Dresselhaus, #3663, #2097).
9003 * Add `--log` option to save log messages in JSON format to a file (#3392).
9005 * Add `--request-header` option, to set request headers when pandoc
9006 makes HTTP requests to fetch external resources. For example:
9007 `--request-header User-Agent:blah`.
9009 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
9010 option works like `--filter` but takes pathnames of special lua filters
9011 and uses the lua interpreter baked into pandoc, so that no external
9012 interpreter is needed. Note that lua filters are all applied after
9013 regular filters, regardless of their position on the command line.
9014 For documentation of lua filters, see `doc/lua-filters.md`.
9016 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
9017 This contains a JSON representation of `ReaderOptions`, so filters
9020 * Support creation of pdf via groff `ms` and pdfroff.
9021 `pandoc -t ms -o output.pdf input.txt`.
9023 * Support for PDF generation via HTML and `weasyprint` or `prince`
9024 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
9026 * Added `--epub-subdirectory` option (#3720). This specifies the
9027 subdirectory in the OCF container that holds the EPUB specific content.
9028 We now put all EPUB related content in an `EPUB/` subdirectory by default
9029 (later this will be configurable).
9034 com.apple.ibooks.display-options.xml
9036 EPUB/ <<--configurable-->>
9037 fonts/ <<--static-->>
9039 media/ <<--static-->>
9042 styles/ <<--static-->>
9046 text/ <<--static-->>
9050 * Added `--resource-path=SEARCHPATH` command line option (#852).
9051 SEARCHPATH is separated by the usual character, depending on OS
9052 (: on unix, ; on windows). Default resource path is just working
9053 directory. However, the working directory must be explicitly
9054 specified if the `--resource-path` option is used.
9056 * Added --abbreviations=FILE option for custom abbreviations file
9057 (#256). Dfault abbreviations file (`data/abbreviations`) contains
9058 a list of strings that will be recognized by pandoc's
9059 Markdown parser as abbreviations. (A nonbreaking space will
9060 be inserted after the period, preventing a sentence space in
9061 formats like LaTeX.) Users can override the default by putting a file
9062 abbreviations in their user data directory (`~/.pandoc` on *nix).
9064 * Allow a theme file as argument to `--highlight-style`.
9065 Also include a sample, `default.theme`, in `data/`.
9067 * Allow `--syntax-definition` option for dynamic loading of syntax
9068 highlighting definitions (#3334).
9070 * Lists in `markdown` by default now use the CommonMark variable
9071 nesting rules (#3511). The indentation required for a block-level
9072 item to be included in a list item is no longer fixed, but is
9073 determined by the first line of the list item. To be included in
9074 the list item, a block must be indented to the level of the first
9075 non-space content after the list marker. Exception: if are 5 or more
9076 spaces after the list marker, then the content is interpreted as an
9077 indented code block, and continuation paragraphs must be indented
9078 two spaces beyond the end of the list marker. See the CommonMark
9079 spec for more details and examples.
9081 Documents that adhere to the four-space rule should, in most cases,
9082 be parsed the same way by the new rules. Here are some examples
9083 of texts that will be parsed differently:
9088 will be parsed as a list item with a sublist; under the four-space
9089 rule, it would be a list with two items.
9095 Here we have an indented code block under the list item, even though it
9096 is only indented six spaces from the margin, because it is four spaces
9097 past the point where a continuation paragraph could begin. With the
9098 four-space rule, this would be a regular paragraph rather than a code
9105 Here the code block will start with two spaces, whereas under
9106 the four-space rule, it would start with `code`. With the four-space
9107 rule, indented code under a list item always must be indented eight
9108 spaces from the margin, while the new rules require only that it
9109 be indented four spaces from the beginning of the first non-space
9110 text after the list marker (here, `a`).
9112 This change was motivated by a slew of bug reports from people
9113 who expected lists to work differently (#3125, #2367, #2575, #2210,
9114 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
9115 of CommonMark (now used by GitHub, for example). Those who
9116 prefer the old behavior can use `-f markdown+four_space_rule`.
9118 * Added `four_space_rule` extension. This triggers the old pandoc
9119 parsing rule for content nested under list items (the "four space
9122 * Added `spaced_reference_links` extension (#2602). It allows whitespace
9123 between the two parts of a reference link: e.g.
9129 This was previously enabled by default; now it is forbidden by default.
9131 * Add `space_in_atx_header` extension (#3512). This is enabled by default
9132 in pandoc and GitHub markdown but not the other flavors.
9133 This requirse a space between the opening #'s and the header
9134 text in ATX headers (as CommonMark does but many other implementations
9135 do not). This is desirable to avoid falsely capturing things ilke
9143 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
9146 * Allow ibooks-specific metadata in epubs (#2693). You can now have
9147 the following fields in your YAML metadata, and it will be treated
9148 appropriately in the generated EPUB:
9153 specified-fonts: false
9154 ipad-orientation-lock: portrait-only
9155 iphone-orientation-lock: landscape-only
9157 scroll-axis: vertical
9163 * Reader functions no longer presuppose that CRs have been
9164 stripped from the input. (They strip CRs themselves, before
9165 parsing, to simplify the parsers.)
9167 * Added support for translations (localization) (#3559).
9168 Currently this only affects the LaTeX reader, for things
9169 like `\figurename`. Translation data files for 46 languages
9170 can be found in `data/translations`.
9172 * Make `--ascii` work with DocBook output too.
9174 * Rename `--latex-engine` to `--pdf-engine`,
9175 and `--latex-engine-opt` to `--pdf-engine-opt`.
9177 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
9178 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
9179 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
9180 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
9182 * With `--filter` R filters are now recognized, even if they are
9183 not executable (#3940, #3941, Andrie de Vries).
9185 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
9187 * Make epub an alias for epub3, not epub2.
9189 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
9190 Multiple stylesheets may be used. Stylesheets will be taken both from
9191 `--css` and from the `stylesheet` metadata field (which can contain
9192 either a file path or a list of them).
9194 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
9195 The argument was for a bridge JavaScript that used to be necessary
9196 in 2004. We have removed the script already.
9198 * `--katex` improvements. The latest version is used, and the
9199 autoload script is loaded by default.
9201 * Change MathJax CDN default since old one is shutting down (#3544).
9202 Note: The new URL requires a version number, which we'll have
9203 to update manually in subsequent pandoc releases in order to
9204 take advantage of mathjax improvements.
9206 * `--self-contained`: don't incorporate elements with `data-external="1"`
9207 (#2656). You can leave an external link as it is by adding the attribute
9208 data-external="1" to the element. Pandoc will then not try to
9209 incorporate its content when `--self-contained` is used. This is
9210 similar to a feature already supported by the EPUB writer.
9212 * Allow `--extract-media` to work with non-binary input formats
9213 (#1583, #2289). If `--extract-media` is supplied with a non-binary
9214 input format, pandoc will attempt to extract the contents of all
9215 linked images, whether in local files, data: uris, or external uris.
9216 They will be named based on the sha1 hash of the contents.
9218 * Make `papersize: a4` work regardless of the case of `a4`.
9219 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
9221 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
9223 * Underlined elements are now treated consistently by readers
9224 (#2270, hftf); they are always put in a Span with class `underline`.
9225 This allows the user to treat them differently from other emphasis,
9226 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
9229 * Improved behavior of `auto_identifiers` when there are explicit ids
9230 (#1745). Previously only autogenerated ids were added to the list
9231 of header identifiers in state, so explicit ids weren't taken
9232 into account when generating unique identifiers. Duplicated
9233 identifiers could result. This simple fix ensures that explicitly given
9234 identifiers are also taken into account.
9236 * Use `table-of-contents` for contents of toc, make `toc` a boolean
9237 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
9238 This allows you to set `toc: true` in the metadata; this
9239 previously produced strange results in some output formats.
9240 For backwards compatibility, `toc` is still set to the
9241 toc contents. But it is recommended that you update templates
9242 to use `table-of-contents` for the toc contents and `toc`
9245 * Change behavior with binary format output to stdout.
9246 Previously, for binary formats, output to stdout was disabled
9247 unless we could detect that the output was being piped (and not
9248 sent to the terminal). Unfortunately, such detection is not
9249 possible on Windows, leaving windows users no way to pipe binary
9250 output. So we have changed the behavior in the following way:
9252 + Output to stdout is allowed when it can be determined that
9253 the output is being piped (on non-Windows platforms).
9254 + If the `-o` option is not used, binary output is never sent
9255 to stdout by default; instead, an error is raised.
9256 + If `-o -` is used, binary output is sent to stdout, regardless
9257 of whether it is being piped. This works on Windows too.
9259 * Better error behavior: uses of `error` have been replaced by
9260 raising of `PandocError`, which can be trapped and handled by the
9263 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
9264 GitHub has two Markdown modes, one for long-form documents like READMEs
9265 and one for short things like issue comments. In issue comments, a line
9266 break is treated as a hard line break. In README, wikis, etc., it is
9267 treated as a space as in regular Markdown. Since pandoc is more likely to
9268 be used to convert long-form documents from GitHub Markdown,
9269 `-hard_line_breaks` is a better default.
9271 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
9273 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
9274 Previously they would be transmitted to the template without any
9275 escaping. Note that `--M title='*foo*'` yields a different result from
9281 In the latter case, we have emphasis; in the former case, just
9282 a string with literal asterisks (which will be escaped
9283 in formats, like Markdown, that require it).
9285 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
9287 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
9288 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
9289 it is valid HTML5. HTML4 is not affected. This will allow us to use
9290 custom attributes in pandoc without producing invalid HTML. (With help
9291 from Wandmalfarbe, #3817.)
9293 * Plain writer: improved super/subscript rendering. We now
9294 handle more non-digit characters for which there are
9295 sub/superscripted unicode characters. When unicode
9296 sub/superscripted characters are not available, we use
9297 `_(..)` or `^(..)` (#3518).
9299 * Docbook, JATS, TEI writers: print INFO message when omitting interior
9300 header (#3750). This only applies to section headers inside list items,
9301 e.g., which were otherwise silently omitted.
9303 * Change to `--reference-links` in Markdown writer (#3701). With
9304 `--reference-location` of `section` or `block`, pandoc will now repeat
9305 references that have been used in earlier sections. The Markdown
9306 reader has also been modified, so that *exactly* repeated references
9307 do not generate a warning, only references with the same label but
9308 different targets. The idea is that, with references after every block,
9309 one might want to repeat references sometimes.
9311 * ODT/OpenDocument writer:
9313 + Support `lang` attribute (#1667).
9314 + Added support for `--toc` (#2836). Thanks to @anayrat.
9318 + `lang` meta, see #1667 (Mauro Bieg, #3515).
9319 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
9320 + Use `Table` rather than `Table Normal` for table style (#3275).
9321 `Table Normal` is the default table style and can't be modified.
9322 + Pass through comments (#2994). We assume that comments are defined as
9323 parsed by the docx reader:
9325 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
9326 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
9327 have a comment <span class="comment-end" id="0"></span>on it.
9329 We assume also that the id attributes are unique and properly
9330 matched between comment-start and comment-end.
9331 + Bookmark improvements. Bookmark start/end now surrounds content rather
9332 than preceding it. Bookmarks generated for Div with id
9333 (jgm/pandoc-citeproc#205).
9334 + Add `keywords` metadata to docx document properties (Ian).
9336 * RST writer: support unknown interpreted text roles by
9337 parsing them as `Span` with `role` attributes (#3407). This
9338 way they can be manipulated in the AST.
9342 + Line block: Use class instead of style attribute (#1623). We now
9343 issue `<div class="line-block">` and include a default definition
9344 for `line-block` in the default templates, instead of hard-coding a
9346 + Add class `footnoteBack` to footnote back references (Timm Albers).
9347 This allows for easier CSS styling.
9348 + Render SmallCaps as span with smallcaps class (#1592), rather than
9349 using a style attribute directly. This gives the user more flexibility
9350 in styling small caps in CSS.
9351 + With reveal.js we use `data-src` instead of `src` for images for
9353 + Special-case `.stretch` class for images in reveal.js (#1291).
9354 Now in reveal.js, an image with class `stretch` in a paragraph
9355 by itself will stretch to fill the whole screen, with no
9356 caption or figure environment.
9358 * Added warnings for non-rendered blocks to writers.
9360 * Writers now raise an error on template failure.
9362 * When creating a PDF via LaTeX, warn if the font is missing some
9365 * Remove initial check for PDF-creating program (#3819).
9366 Instead, just try running it and raise the exception if it
9367 isn't found at that point. This improves things for users of Cygwin
9368 on Windows, where the executable won't be found by `findExecutable`
9369 unless `.exe` is added. The same exception is raised as before, but
9372 * Readers issue warning for duplicate header identifiers (#1745).
9373 Autogenerated header identifiers are given suffixes so as not to clash
9374 with previously used header identifiers. But they may still coincide with
9375 an explicit identifier that is given for a header later in the document,
9376 or with an identifier on a div, span, link, or image. We now issue
9377 a warning in this case, so users can supply an explicit identifier.
9379 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
9380 and `raw_html` extensions.
9384 + Don't allow backslash + newline to affect block structure (#3730).
9385 Note that as a result of this change, the following, which formerly
9386 produced a header with two lines separated by a line break, will
9387 now produce a header followed by a paragraph:
9392 This may affect some existing documents that relied on
9393 this undocumented and unintended behavior. This change makes pandoc
9394 more consistent with other Markdown implementations, and with itself
9395 (since the two-space version of a line break doesn't work inside ATX
9396 headers, and neither version works inside Setext headers).
9399 * Org reader (Albert Krewinkel, unless noted):
9401 + Support `table.el` tables (#3314).
9402 + Support macros (#3401).
9403 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
9404 Recognized include types are `example`, `export`, `src`, and
9405 normal org file inclusion. Advanced features like line numbers
9406 and level selection are not implemented yet.
9407 + Interpret more meta value as inlines. The values of the following
9408 meta variables are now interpreted using org-markup instead of
9409 treating them as pure strings: `keywords` (comma-separated list of
9410 inlines), `subtitle` (inline values), `nocite` (inline values, can
9412 + Support `\n` export option (#3940). This turns all newlines in the
9413 text into hard linebreaks.
9417 + Improved admonition support (#223). We no longer add an
9418 `admonition` class, we just use the class for the type of admonition,
9419 `note` for example. We put the word corresponding to the label in
9420 a paragraph inside a `Div` at the beginning of the admonition with
9421 class `admonition-title`. This is about as close as we can get to
9423 + Initial support of `.. table` directive. This allows adding captions
9425 + Support `.. line-block` directive. This is deprecated but may still
9426 be in older documents.
9427 + Support scale and align attributes of images (#2662).
9428 + Implemented implicit internal header links (#3475).
9429 + Support RST-style citations (#853). The citations appear at the end
9430 of the document as a definition list in a special div with id
9431 `citations`. Citations link to the definitions.
9432 + Recurse into bodies of unknown directives (#3432).
9433 In most cases it's better to preserve the content than
9434 to emit it. This isn't guaranteed to have good results;
9435 it will fail spectacularly for unknown raw or verbatim directives.
9436 + Handle chained link definitions (#262). For example,
9439 .. _goodbye: example.com
9441 Here both `hello` and `goodbye` should link to `example.com`.
9442 + Support anchors (#262). E.g.
9450 This is supported by putting "paragraph" in a `Div` with id `hello`.
9451 + Support `:widths:` attribute for table directive.
9452 + Implement csv-table directive (#3533). Most attributes are supported,
9453 including `:file:` and `:url:`.
9454 + Support unknown interpreted text roles by parsing them as Span
9455 with "role" attributes (#3407). This way they can be manipulated in
9458 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
9462 + Implemented `\graphicspath` (#736).
9463 + Properly handle column prefixes/suffixes. For example, in
9464 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
9465 each cell will be interpreted as if it has a `$`
9466 before its content and a `$` after (math mode).
9467 + Handle komascript `\dedication` (#1845). It now adds a
9468 `dedication` field to metadata. It is up to the user to supply
9469 a template that uses this variable.
9470 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
9471 `sf`, `bf` (#3488). Spans with a class are used when there is
9473 + Expand `\newenvironment` macros (#987).
9474 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
9475 + Better support for subfigure package (#3577).
9476 A figure with two subfigures turns into two pandoc
9477 figures; the subcaptions are used and the main caption
9478 ignored, unless there are no subcaptions.
9479 + Add support for `\vdots` (Marc Schreiber, #3607).
9480 + Add basic support for hyphenat package (Marc Schreiber, #3603).
9481 + Add basic `\textcolor` support (Marc Schreiber).
9482 + Add support for `tabularx` environment (Marc Schreiber, #3632).
9483 + Better handling of comments inside math environments (#3113).
9484 This solves a problem with commented out `\end{eqnarray}` inside
9485 an eqnarray (among other things).
9486 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
9487 is selected (#3692). Otherwise skip with a warning. This is better
9488 than trying to parse it as text!
9489 + Add `\colorbox` support (Marc Schreiber).
9490 + Set identifiers on Spans used for `\label`.
9491 + Have `\setmainlanguage` set `lang` in metadata.
9492 + Support etoolbox's `\ifstrequal`.
9493 + Support `plainbreak`, `fancybreak` et al from the memoir class
9494 (bucklereed, #3833).
9495 + Support `\let`. Also, fix regular macros so they're expanded at the
9496 point of use, and NOT also the point of definition. `\let` macros,
9497 by contrast, are expanded at the point of definition. Added an
9498 `ExpansionPoint` field to `Macro` to track this difference.
9499 + Support simple `\def` macros. Note that we still don't support
9500 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
9501 + Support `\chaptername`, `\partname`, `\abstractname`, etc. (#3559,
9503 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
9504 attributes, so they can be handled in filters (Marc Schreiber, #3639)
9505 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
9506 #3589). Acronyms are not resolved by the reader, but acronym and
9507 glossary information is put into attributes on Spans so that they
9508 can be processed in filters.
9509 + Use `Link` instead of `Span` for `\ref`. This makes more sense
9510 semantically and avoids unnecessary `Span [Link]` nestings when
9511 references are resolved.
9512 + Rudimentary support for `\hyperlink`.
9513 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
9514 + Support `\lq`, `\rq`.
9515 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
9517 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
9518 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
9519 + Support `\k` ogonek accent.
9520 + Improve handling of accents. Handle ogonek, and fall back correctly
9521 with forms like `\"{}`.
9522 + Better support for ogonek accents.
9523 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
9524 + Support for `xspace` (Marc Schreiber, #3797).
9525 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
9527 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
9528 level 0 headers, and parts as level -1 headers. After parsing, we
9529 check for the lowest header level, and if it's less than 1 we bump
9530 everything up so that 1 is the lowest header level. So `\part` will
9531 always produce a header; no command-line options are needed.
9532 + Add block version of `\textcolor` (Marc Schreiber).
9533 + `\textcolor` works as inline and block command (Marc Schreiber).
9534 + `\textcolor` will be parse as span at the beginning of a paragraph
9536 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
9537 + Improved handling of include files in LaTeX reader (#3971).
9538 Previously `\include` wouldn't work if the included file
9539 contained, e.g., a begin without a matching end.
9540 + Support `\expandafter` (#3983).
9541 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
9542 as a synonym for `\newcommand`.
9543 + Handle `\lettrine` (Mauro Bieg).
9545 * Math improvements due to updates in texmath:
9547 + Improved handling of accents and upper/lower delimiters.
9548 + Support for output in GNU eqn format (used with *roff).
9549 + Allow `\boldsymbol` + a token without braces, and similarly
9550 with other styling commands.
9551 + Improve parsing of `\mathop` to allow multi-character operator names.
9552 + Add thin space after math operators when "faking it with
9555 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
9556 instance for `a -> [a]` (pandoc-types). Note that behavior
9557 will be slightly different, since `bottomUp`'s treatment of
9558 a function `[a] -> [a]` is to apply it to each sublist of a
9559 list, while walk applies it only to maximal sublists.
9560 Usually the latter behavior is what is wanted, and the
9561 former can be simulated when needed. But there may be
9562 existing filters that need to be rewritten in light of the
9563 new behavior. Performance should be improved.
9565 * There are some changes to syntax highlighting due to revisions
9566 in the `skylighting` library:
9568 + Support for `powershell` has been added, and many syntax
9569 definitions have been updated.
9570 + Background colors have been added to the `kate` style.
9571 + The way highlighted code blocks are formatted in HTML has
9572 been changed (David Baynard), in ways that may require
9573 changes in hard-coded CSS affecting highlighting.
9574 (If you haven't included hard-coded highlighting CSS in
9575 your template, you needn't change anything.)
9580 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
9581 This contains definitions of the `PandocMonad` typeclass, the
9582 `PandocIO` and `PandocPure` monads, and associated functions.
9584 * Changed types of all writers and readers.
9586 + We now use `Text` instead of `String` in the interface (#3731).
9587 (We have not yet changed the internals of most readers to work
9588 with `Text`, but making this change in the API now opens up a
9589 path to doing that.)
9590 + The result is now of form `m a` with constraint `PandocMonad m`.
9591 Readers and writers can be combined to form monadic values which
9592 can be run using either `runIO` or `runPure`. If `runIO` is used,
9593 then both readers and writers will be able to do IO when needed
9594 (for include files, for example); if `runPure` is used,
9595 then the functions are pure and will not touch IO.
9596 + Where previously you used
9597 `writeRST def (readMarkdown def "[foo](url)")`, now you
9599 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
9601 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
9602 contains reader helper functions formerly defined in the
9603 top-level `Text.Pandoc` module.
9605 + Changed `StringReader` -> `TextReader`.
9606 + `getReader` now returns a pair of a reader and
9607 `Extensions`, instead of building the extensions into the
9608 reader (#3659). The calling code must explicitly set
9609 `readerExtensions` using the `Extensions` returned. The
9610 point of the change is to make it possible for the calling
9611 code to determine what extensions are being used.
9613 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
9614 This contains writer helper functions formerly defined in the
9615 top-level `Text.Pandoc` module.
9617 + Changed `StringWriter` -> `TextWriter`.
9618 + `getWriter` now returns a pair of a reader and
9619 `Extensions`, instead of building the extensions into the
9620 reader (#3659). The calling code must explicitly set
9621 `readerExtensions` using the `Extensions` returned. The
9622 point of the change is to make it possible for the calling
9623 code to determine what extensions are being used.
9625 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
9628 * New module `Text.Pandoc.App`. This abstracts out the functionality
9629 of the command line program (`convertWithOpts`), so it can be reproduced
9630 e.g. in a desktop or web application. Instead of exiting, we throw errors
9631 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
9632 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
9633 The module also exports some utility functions for parsing options
9634 and running filters.
9636 * New module `Text.Pandoc.Logging` (exported module) (#3392).
9637 This now contains the `Verbosity` definition previously in
9638 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
9639 eventually be used instead of raw strings for warnings. This will enable
9640 us, among other things, to provide machine-readable warnings if desired.
9641 Include ToJSON instance and showLogMessage. This gives us the possibility
9642 of both machine-readable and human-readable output for log messages.
9644 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
9646 * New module `Text.Pandoc.Translations`, exporting `Term`,
9647 `Translations`, `readTranslations`.
9649 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
9650 `TokType`, `Line`, `Column`.
9652 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
9654 * Expose some previously private modules (#3260). These are often
9655 helpful to people writing their own reader or writer modules:
9657 + `Text.Pandoc.Writers.Shared`
9658 + `Text.Pandoc.Parsing`
9659 + `Text.Pandoc.Asciify`
9660 + `Text.Pandoc.Emoji`
9661 + `Text.Pandoc.ImageSize`
9662 + `Text.Pandoc.Highlighting`
9664 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
9665 Extension parsing and processing functions were defined in the top-level
9666 `Text.Pandoc` module. These functions are moved to the Extensions
9667 submodule as to enable reuse in other submodules.
9669 * Add `Ext_raw_attribute` constructor for `Extension`.
9671 * Add `Ext_fenced_divs` constructor for `Extension'.
9673 * Add `Ext_four_space_rule` constructor in `Extension`.
9675 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
9677 * Add `Monoid` instance for `Extensions`.
9679 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
9681 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
9683 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
9685 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
9687 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
9689 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
9691 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
9693 * Export `setVerbosity` from `Text.Pandoc`.
9695 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
9697 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
9699 * `Text.Pandoc.UTF8`:
9701 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
9702 Define `toString`, `toStringLazy` in terms of them.
9703 + Add new functions parameterized on `Newline`: `writeFileWith`,
9704 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
9706 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
9708 * `Text.Pandoc.Highlighting`:
9710 + `highlighting` now returns an Either rather than Maybe.
9711 This allows us to display error information returned by the skylighting
9712 library. Display a warning if the highlighting library throws an error.
9713 + Add parameter for `SyntaxMap` to `highlight`.
9715 * `Text.Pandoc.Writers.Math`:
9717 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
9718 we only need to update these in one place.
9720 * `Text.Pandoc.SelfContained`:
9722 + Removed `WriterOptions` parameter from `makeSelfContained`.
9723 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
9724 the need to pass MediaBag around and improves exceptions. It also
9725 opens up the possibility of using makeSelfContained purely.
9726 + Export `makeDataURI`.
9728 * `Text.Pandoc.ImageSize`:
9730 + Export `lengthToDim`, new function `scaleDimension`.
9731 + Export `inEm` from ImageSize (#3450).
9732 + Change `showFl` and `show` instance for `Dimension` so
9733 extra decimal places are omitted.
9734 + Added `Em` as a constructor of `Dimension`.
9735 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
9737 * `Text.Pandoc.Templates`:
9739 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
9740 and raises a proper `PandocTemplateError` if there are problems, rather
9741 than failing with uncatchable `error`.
9742 + Change signature of `getDefaultTemplate`. Now it runs in any instance
9743 of `PandocMonad`, and returns a `String` rather than an `Either` value.
9744 And it no longer takes a `datadir` parameter, since this can be
9745 retrieved from `CommonState`.
9747 * `Text.Pandoc.Options`:
9749 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
9750 The EPUB writer now takes its EPUB subdirectory from this option.
9751 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
9752 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
9753 + Add `writerSyntaxMap` to `WriterOptions`.
9754 + Removed `writerEpubStylesheet` from `WriterOptions`.
9755 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
9756 in `CommonState` in `PandocMonad` instances. (And thus it can be used
9758 + Changed `writerEpubMetadata` to a `Maybe String`.
9759 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
9760 the `latex_macros` reader extension.
9761 + FromJSON/ToJSON instances for `ReaderOptions`.
9762 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
9763 one string (for the KaTeX base URL), rather than two.
9764 + Removed `writerSourceURL` from `WriterOptions`. We now use
9765 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
9767 * `Text.Pandoc.Shared`:
9769 + `tabFilter` now takes a `Text`, not `String`.
9770 + `openURL`: Changed type from an Either. Now it will just raise
9771 an exception to be trapped later.
9772 + Remove `normalizeSpaces` (#1530).
9773 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
9774 + Export a new function `crFilter`.
9775 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
9776 + Provide custom `isURI` that rejects unknown schemes.
9777 (Albert Krewinkel, #2713). We also export the set of known
9778 `schemes`. The new function replaces the function of the same name
9779 from `Network.URI`, as the latter did not check whether a scheme is
9780 well-known. All official IANA schemes (as of 2017-05-22) are
9781 included in the set of known schemes. The four non-official schemes
9782 `doi`, `isbn`, `javascript`, and `pmid` are kept.
9784 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
9785 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
9786 where they are defined in terms of `PandocMonad`
9787 primitives and have different signatures.
9788 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
9789 + Add `underlineSpan`.
9791 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
9793 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
9794 With the new API one can simply use `getLog` after running
9797 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
9798 and `rawLaTeXBlock`. (Both now return a `String`, and they are
9799 polymorphic in state.)
9802### Bug fixes and under-the-hood improvements
9804 * TEI writer: Added identifiers on `<div>` elements.
9806 * DokuWiki reader: Better handling for code block in list item (#3824).
9808 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
9810 * ZimWiki writer: Removed internal formatting from note and table cells,
9811 because ZimWiki does not support it (Alex Ivkin, #3446).
9815 + Updated list of syntax highlighting languages (#3461).
9816 Now `r` gets you `<source>` rather than `<code>` (among others).
9817 + Add display attribute on `<math>` tags (#3452). This allows display
9818 math to be rendered properly.
9819 + Remove newline before `</ref>` (#2652).
9820 + Don't softbreak lines inside list items (#3531).
9824 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
9825 + Add unit tests (Alexander Krotov).
9826 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
9827 + Do not strip `#` from Org anchor links (Alexander Krotov).
9829 * CommonMark writer:
9831 + Avoid excess blank lines at end of output.
9832 + Prefer pipe tables to HTML tables even if it means losing relative
9833 column width information (#3734).
9834 + Support table, strikethrough extensions, when enabled (as with gfm).
9835 Note that we bypass the commonmark writer from cmark and construct our
9836 own pipe tables, with better results.
9837 + Properly support `--wrap=none`.
9838 + Use smallcaps class for `SmallCaps` (#1592).
9839 + Omit "fig:" prefix in image titles. This is used internally to
9840 indicate internal figures.
9844 + Properly handle table captions.
9845 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
9846 + Implemented `+/-smart` and improved escaping with `+smart`.
9847 + Add empty comments when needed to avoid including a blockquote
9848 in the indented content of a preceding block (#3675).
9849 + Improve grid table output, fix bug with empty rows (#3516).
9850 Uses the new `gridTable` in Writers.Shared, which is here
9851 improved to better handle 0-width cells.
9852 + Remove space at beginning/end of RST code span (#3496). Otherwise
9853 we get invalid RST. There seems to be no way to escape the space.
9854 + Add header anchors when header has non-standard id (#3937).
9855 + Correctly handle inline code containing backticks, using a `:literal:`
9857 + Don't backslash-escape word-internal punctuation (#3978).
9861 + Don't include variables in metadata blocks. Previously variables set
9862 on the command line were included in e.g. YAML metadata, contrary to
9863 documentation and intentions.
9864 + Improved escaping with `+smart`.
9865 + Fixed grid tables embedded in grid tables (#2834).
9866 + Use span with class 'smallcaps' for SmallCaps, instead of a style
9867 attribute as before (#1592).
9868 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
9869 extension is enabled (#3454). Otherwise in a document starting with
9870 a literal `%` the first line is wrongly interpreted as a title.
9871 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
9872 properly escape things that would otherwise start ordered lists,
9878 + Better handling of tables with empty columns (#3337). We now
9879 calculate the number of columns based on the longest row (or the
9880 length of aligns or widths).
9881 + Escape unordered list markers at beginning of paragraph (#3497), to
9882 avoid false interpretation as a list.
9883 + Escape `|` appropriately.
9884 + Ensure space before list at top level (#3487).
9885 + Avoid spurious blanklines at end of document after tables and list,
9887 + Fixed bugs in simple/multiline list output (#3384).
9888 Previously we got overlong lists with `--wrap=none`. This is fixed.
9889 Previously a multiline list could become a simple list (and would
9890 always become one with `--wrap=none`).
9891 + Don't emit a simple table if `simple_tables` disabled (#3529).
9892 + Case-insensitive reference links (David A Roberts, #3616).
9893 Ensure that we do not generate reference links whose labels differ only
9894 by case. Also allow implicit reference links when the link
9895 text and label are identical up to case.
9896 + Put space before reference link definitions (Mauro Bieg, #3630).
9897 + Better escaping for links (David A. Roberts, #3619). Previously the
9898 Markdown writer would sometimes create links where there were none
9899 in the source. This is now avoided by selectively escaping bracket
9900 characters when they occur in a place where a link might be created.
9901 + Added missing `\n` (David A. Roberts, #3647).
9902 + Fixed duplicated reference links with `--reference-links`
9903 and `--reference-location=section` (#3674). Also ensure that there
9904 are no empty link references `[]`.
9905 + Avoid inline surround-marking with empty content (#3715).
9906 E.g. we don't want `<strong></strong>` to become `****`.
9907 Similarly for emphasis, super/subscript, strikeout.
9908 + Don't allow soft break in header (#3736).
9909 + Make sure `plain`, `markdown_github`, etc. work for raw.
9910 Previously only `markdown` worked. Note: currently a raw block labeled
9911 `markdown_github` will be printed for any `markdown` format.
9912 + Ensure that `+` and `-` are escaped properly so they don't cause
9913 spurious lists (#3773). Previously they were only
9914 if succeeded by a space, not if they were at end of line.
9915 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
9916 even if the table has relative width information (#3734).
9917 + Markdown writer: don't crash on `Str ""`.
9918 + Make `Span` with null attribute transparent. That is, we don't use
9919 brackets or `<span>` tags to mark spans when there are no attributes;
9920 we simply output the contents.
9921 + Escape pipe characters when `pipe_tables` enabled (#3887).
9922 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
9923 we backslash escape these. Otherwise we use entities as before.
9924 + When writing plain, don't use ` ` to separate list and indented
9925 code. There's no need for it in this context, since this isn't to be
9926 interpreted using Markdown rules.
9927 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
9928 HTML links containing classes originally now preserve them when using
9929 javascript email obfuscation.
9930 + Render `SmallCaps` as a native span when `native_spans` are enabled.
9931 + Always write attributes with `bracketed_spans` (d-dorazio).
9935 + Fix handling of nested font commands (#3568). Previously pandoc emitted
9936 incorrect markup for bold + italic, for example, or bold + code.
9937 + Avoid error for definition lists with no definitions (#3832).
9941 + Fix internal links with `writerIdentifierPrefix opt`
9942 (#3397, Mauro Bieg).
9946 + Don't include bookmarks on headers unless non-null id (#3476).
9947 + Support 9 levels of headers (#1642).
9948 + Allow 9 list levels (#3519).
9949 + Don't take `distArchive` from datadir (#3322). The docx writer takes
9950 components from the distribution's version of `reference.docx` when it
9951 can't find them in a user's custom `reference.docx`. Previously, we
9952 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
9953 to be used as the distribution's reference.docx. This led to a
9954 bizarre situation where pandoc would produce a good docx using
9955 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
9956 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
9957 + Fixed handling of soft hyphen (0173) (#3691).
9958 + Better handling of keywords (#3719).
9959 + Cleaner code for handling dir and style attributes for `Div`.
9960 + Use `Set` for dynamic styles to avoid duplicates.
9961 + Removed redundant element from data/docx/word/numbering.xml.
9962 The elements we need are generated when the document is
9963 compiled; this didn't do anything.
9964 + Activate `evenAndOddHeaders` from reference docx (#3901,
9965 Augustín Martín Barbero).
9967 * ODT/OpenDocument writer:
9969 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
9970 + Use more widely available bullet characters (#1400). The old
9971 characters weren't available in some font sets. These seem to work
9972 well on Windows and Linux versions of LibreOffice.
9973 + Wider labels for lists (#2421). This avoids overly narrow labels for
9974 ordered lists with `()` delimiters. However, arguably it creates
9975 overly wide labels for bullets. Also, lists now start flush with
9976 the margin, rather than indented.
9977 + Fixed dropped elements in some ordered lists (#2434).
9981 + Don't render `RawBlock` as code.
9982 + Don't fail with an error on interior headers (e.g. in list) (#3750).
9983 Instead, omit them with an INFO message.
9984 + Add support for "lang" metadata (Alexander Krotov, #3625).
9985 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
9986 produced one paragraph with `<empty-line/>` elements, which are not
9987 allowed inside `<p>` according to FB2 schema.
9988 + Replace `concatMap` with `cMap` (Alexander Krotov).
9989 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
9994 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
9995 + Render raw inline environments when `--mathjax` used (#3816).
9996 We previously did this only with raw blocks, on the assumption
9997 that math environments would always be raw blocks. This has changed
9998 since we now parse them as inline environments.
9999 + Ensure we don't get two style attributes for width and height.
10000 + Report when not rendering raw inline/block.
10001 + Issue warning if no title specified and template used (#3473).
10002 + Info message if `lang` is unspecified (#3486).
10003 + Removed unused parameter in `dimensionsToAttributeList`.
10004 + Avoid two class attributes when adding `uri` class (#3716).
10005 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
10007 + Use revealjs's math plugin for mathjax (#3743). This is a thin
10008 wrapper around mathjax that makes math look better on revealjs.
10009 + Slidy: use h1 for all slides, even if they were originally
10010 level 2 headers (#3566). Otherwise the built-in table of contents
10015 + Don't render LaTeX images with data: URIs (#3636). Note that
10016 `--extract-media` can be used when the input contains data: URIs.
10017 + Make highlighted code blocks work in footnotes (Timm Albers).
10018 + Don't use figure inside table cell (#3836).
10019 + Use proper code for list enumerators (#3891). This should fix problems
10020 with lists that don't use arabic numerals.
10021 + Always add hypertarget when there's a non-empty identifier (#2719).
10022 Previously the hypertargets were only added when there was actually
10023 a link to that identifier.
10024 + Use `%` after hypertarget before code block.
10025 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
10026 fixes formatting problems in beamer citations).
10027 + Don't use `lstinline` in `\item[..]` (#645). If you do, the contents
10028 of item disappear or are misplaced. Use `\texttt` instead.
10029 + Fix problem with escaping in `lstinline` (#1629). Previously the
10030 LaTeX writer created invalid LaTeX when `--listings` was specified and
10031 a code span occurred inside emphasis or another construction.
10032 + Fix error with line breaks after empty content (#2874). LaTeX
10033 requires something before a line break, so we insert a `~` if no
10034 printable content has yet been emitted.
10035 + Use BCP47 parser.
10036 + Fixed detection of otherlangs (#3770). We weren't recursing into
10038 + Handle language in inline code with `--listings` (#3422).
10039 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
10040 The textcomp package allows pdfLaTeX to parse `€` directly, making the
10041 `\euro` command unneeded.
10042 + Fixed footnotes in table captions (#2378). Note that if the table has
10043 a first page header and a continuation page header, the notes will
10044 appear only on the first occurrence of the header.
10045 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
10046 Previously you could link to a header above or below slide level but
10047 not *to* slide level. This commit changes that. Hypertargets are
10048 inserted inside frame titles; technically the reference is to just
10049 after the title, but in normal use (where slides are viewed full
10050 screen in a slide show), this does not matter.
10051 + Remove `\strut` at beginning of table cells (#3436). This fixes a
10052 problem with alignment of lists in table cells. The `\strut` at the
10053 end seems to be enough to avoid the too-close spacing that motivated
10054 addition of the strut in #1573.
10055 + Add partial siunitx Support (Marc Schreiber, #3588).
10059 + Refactored to use BCP47 module.
10060 + Remove unnecessary `$` (Alexander Krotov, #3482).
10061 + Use header identifiers for chapters (#3968).
10065 + `title_page.xhtml` is now put in `text/`.
10066 + Don't strip formatting in TOC (#1611).
10070 + Fix bug for certain links in table cells (#3667).
10071 + Allow 'pre' code in list item (#3916).
10075 + Added warnings for ignored material (#3392).
10076 + Better sanity checks to avoid parsing unintended things as
10077 raw HTML in the Markdown reader (#3257).
10078 + Revise treatment of `li` with `id` attribute (#3596). Previously we
10079 always added an empty div before the list item, but this created
10080 problems with spacing in tight lists. Now we do this: If the list
10081 item contents begin with a `Plain` block, we modify the `Plain`
10082 block by adding a `Span` around its contents. Otherwise, we add a
10083 `Div` around the contents of the list item (instead of adding an
10084 empty `Div` to the beginning, as before).
10085 + Add `details` tag to list of block tags (#3694).
10086 + Removed `button` from block tag list (#3717). It is already in the
10087 `eitherBlockOrInlineTag` list, and should be both places.
10088 + Use `Set`s instead of lists for block tag lookup.
10089 + Rewrote to use `Text` throughout. Effect on memory usage is modest
10091 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
10093 + Ensure that paragraphs are closed properly when the parent block
10094 element closes, even without `</p>` (#3794).
10095 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
10096 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
10097 `<main>` closes `<p>` and behaves like a block element generally
10098 + Support column alignments (#1881). These can be set either
10099 with a `width` attribute or with `text-width` in a `style` attribute.
10100 + Modified state type to be an instance of `HasLogMessages`, so
10101 `registerHeader` can issue warnings.
10102 + `</td>` or `</th>` should close any open block tag (#3991).
10103 + `<td>` should close an open `<th>` or `<td>`.
10104 + `htmlTag` improvements (#3989). We previously failed on cases
10105 where an attribute contained a `>` character. This patch fixes the
10106 bug, which especially affects raw HTML in Markdown.
10110 + Newline is not indentation (Alexander Krotov).
10112 * MediaWiki reader:
10114 + Allow extra hyphens after `|-` in tables (#2649).
10115 + Allow blank line after table start (#2649).
10116 + Fixed more table issues (#2649).
10117 + Ensure that list starts begin at left margin (#2606). Including when
10118 they're in tables or other list items.
10119 + Make smart double quotes depend on `smart` extension (#3585).
10120 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
10121 + Modified state type to be an instance of `HasLogMessages`, so
10122 `registerHeader` can issue warnings.
10124 * TWiki reader (Alexander Krotov):
10126 + Remove unnecessary `$` (#3597).
10127 + Simplify `linkText` (#3605).
10131 + Minor refactoring, avoiding explicit MediaBag handling.
10132 This all works behind the scenes in CommonState plumbing.
10136 + Don't drop smartTag contents (#2242).
10137 + Handle local namespace declarations (#3365). Previously we didn't
10138 recognize math, for example, when the xmlns declaration occurred on
10139 the element and not the root.
10140 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
10141 does the work of `normalizeSpaces` as well, so we avoid the need for
10142 that function here.
10143 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
10144 paragraphs styled with "HeadingN" as "nth-level header." But if a
10145 document has a custom style named "Heading0", this will produce a
10146 0-level header, which shouldn't exist. We only parse this style
10147 if N>0. Otherwise we treat it as a normal style name, and
10148 follow its dependencies, if any.
10149 + Add tests for avoiding zero-level header (Jesse Rosenthal).
10153 + Replaced `collectRights` with Rights from `Data.Either`.
10154 + Remove dead code (Albert Krewinkel).
10156 * Org reader (Albert Krewinkel, unless noted).
10158 + Don't allow tables inside list items (John MacFarlane, #3499).
10159 + Disallow tables on list marker lines (#3499).
10160 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
10161 + Allow emphasized text to be followed by `[` (#3577).
10162 + Handle line numbering switch for src blocks.
10163 The line-numbering switch that can be given to source blocks (`-n` with
10164 an start number as an optional parameter) is parsed and translated to a
10165 class/key-value combination used by highlighting and other readers and
10167 + Stop adding rundoc prefix to src params. Source block parameter names
10168 are no longer prefixed with `rundoc`. This was intended to simplify
10169 working with the rundoc project, a babel runner. However, the rundoc
10170 project is unmaintained, and adding those markers is not the reader's
10171 job anyway. The original language that is specified for a source
10172 element is now retained as the `data-org-language` attribute and only
10173 added if it differs from the translated language.
10174 + Allow multi-word arguments to src block params (#3477). The reader now
10175 correctly parses src block parameter list even if parameter arguments
10176 contain multiple words.
10177 + Avoid creating `nullMeta` by applying `setMeta` directly
10178 (Alexander Krotov).
10179 + Replace `sequence . map` with `mapM`.
10180 + Fix smart parsing behavior. Parsing of smart quotes and special
10181 characters can either be enabled via the `smart` language extension or
10182 the `'` and `-` export options. Smart parsing is active if either the
10183 extension or export option is enabled. Only smart parsing of special
10184 characters (like ellipses and en and em dashes) is enabled by default,
10185 while smart quotes are disabled. Previously, all smart parsing was
10186 disabled unless the language extension was enabled.
10187 + Subject full doc tree to headline transformations (Albert Krewinkel,
10188 #3695). Emacs parses org documents into a tree structure, which is
10189 then post-processed during exporting. The reader is changed to do the
10190 same, turning the document into a single tree of headlines starting
10192 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
10193 cite keys included special characters also at the end. This caused
10194 problems when citations occur right before colons or at the end of
10195 a sentence. With this change, all non alphanumeric characters at
10196 the end of a cite key are ignored. This also adds `,` to the list
10197 of special characters that are legal in cite keys to better mirror
10198 the behaviour of org-export.
10199 + Fix module names in haddock comments. Copy-pasting had lead to
10200 haddock module descriptions containing the wrong module names.
10201 + Recognize babel result blocks with attributes (#3706). Babel
10202 result blocks can have block attributes like captions and names.
10203 Result blocks with attributes were not recognized and were parsed
10204 as normal blocks without attributes.
10205 + Include tags in headlines. The Emacs default is to include tags in the
10206 headline when exporting. Instead of just empty spans, which contain the
10207 tag name as attribute, tags are rendered as small caps and wrapped in
10208 those spans. Non-breaking spaces serve as separators for multiple tags.
10209 + Respect export option for tags (#3713). Tags are appended to
10210 headlines by default, but will be omitted when the `tags` export option
10212 + Use `tag-name` attribute instead of `data-tag-name`.
10213 + Use `org-language` attribute rather than `data-org-language`.
10214 + Modified state type to be an instance of `HasLogMessages`, so
10215 `registerHeader` can issue warnings.
10216 + End footnotes after two blank lines. Footnotes can not only be
10217 terminated by the start of a new footnote or a header, but also by two
10218 consecutive blank lines.
10219 + Update emphasis border chars (#3933). The org reader was updated to
10220 match current org-mode behavior: the set of characters which are
10221 acceptable to occur as the first or last character in an org emphasis
10222 have been changed and now allows all non-whitespace chars at the
10223 inner border of emphasized text (see `org-emphasis-regexp-components`).
10227 + Fixed small bug in list parsing (#3432). Previously the parser didn't
10228 handle properly this case:
10234 + Handle multiline cells in simple tables (#1166).
10235 + Parse list table directive (Keiichiro Shikano, #3432).
10236 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
10237 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
10238 + Reorganize block parsers for ~20% faster parsing.
10239 + Fixed `..include::` directive (#3880).
10240 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
10241 Previously pandoc would sometimes combine two line blocks separated
10242 by blanks, and ignore trailing blank lines within the line block.
10243 + Fix indirect hyperlink targets (#512).
10247 + Allow attributes in reference links to start on next line (#3674).
10248 + Parse YAML metadata in a context that sees footnotes defined in
10249 the body of the document (#1279).
10250 + When splitting pipe table cells, skip tex math (#3481).
10251 You might have a `|` character inside math. (Or for that matter
10252 something that the parser might mistake for raw HTML.)
10253 + Treat span with class `smallcaps` as SmallCaps.
10254 This allows users to specify small caps in Markdown this way:
10255 `[my text]{.smallcaps}` (#1592).
10256 + Fixed internal header links (#2397).
10257 This patch also adds `shortcut_reference_links` to the list
10259 + Treat certain environments as inline
10260 when they occur without space surrounding them (#3309, #2171).
10261 E.g. equation, math. This avoids incorrect vertical space
10263 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
10264 + Allow latex macro definitions indented 1-3 spaces.
10265 Previously they only worked if nonindented.
10266 + Improved parsing of indented raw HTML blocks (#1841).
10267 Previously we inadvertently interpreted indented HTML as
10268 code blocks. This was a regression. We now seek to determine the
10269 indentation level of the contents of an HTML block, and (optionally)
10270 skip that much indentation. As a side effect, indentation may be
10271 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
10272 used. This is better than having things interpreted as indented
10274 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
10275 + Warn for notes defined but not used (#1718).
10276 + Use `anyLineNewline` (Alexander Krotov).
10277 + Interpret YAML metadata as Inlines when possible (#3755). If
10278 the metadata field is all on one line, we try to interpret it as
10279 Inlines, and only try parsing as Blocks if that fails. If it
10280 extends over one line (including possibly the `|` or `>` character
10281 signaling an indented block), then we parse as Blocks. This was
10282 motivated by some German users finding that `date: '22. Juin 2017'`
10283 got parsed as an ordered list.
10284 + Fixed spurious parsing as citation as reference def (#3840).
10285 We now disallow reference keys starting with `@` if the
10286 `citations` extension is enabled.
10287 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
10288 Previously only `[-@roe]` (with brackets) was recognized as
10289 suppress-author, and `-@roe` was treated the same as `@roe`.
10290 + Fixed parsing of fenced code after list when there is no intervening
10291 blank line (#3733).
10292 + Allow raw latex commands starting with `\start` (#3558). Previously
10293 these weren't allowed because they were interpreted as starting
10294 ConTeXt environments, even without a corresponding `\stop`...
10295 + Added `inlines`, `inlines1`.
10296 + Require nonempty alt text for `implicit_figures` (#2844).
10297 A figure with an empty caption doesn't make sense.
10298 + Removed texmath macro material; now all this is handled
10299 in the LaTeX reader functions.
10300 + Fixed bug with indented code following raw LaTeX (#3947).
10304 + Rewrote LaTeX reader with proper tokenization (#1390,
10305 #2118, #3236, #3779, #934, #982). This rewrite is primarily
10306 motivated by the need to get macros working properly. A side benefit
10307 is that the reader is significantly faster. We now tokenize the
10308 input text, then parse the token stream. Macros modify the token
10309 stream, so they should now be effective in any context, including
10310 math. Thus, we no longer need the clunky macro processing
10311 capacities of texmath.
10312 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
10313 + Allow `\newcommand\foo{blah}` without braces.
10314 + Support `\lstinputlisting` (#2116).
10315 + Issue warnings when skipping unknown latex commands (#3392).
10316 + Include contents of `\parbox`.
10317 + Allow `\hspace` and `\vspace` to count as raw block or inline.
10318 Previously we would refuse to parse anything as raw inline if
10319 it was in the `blockCommands` list. Now we allow exceptions
10320 if they're listed under ignoreInlines in inlineCommands.
10321 This should make it easier e.g. to include an `\hspace`
10322 between two side-by-side raw LaTeX tables.
10323 + Don't drop contents of `\hypertarget`.
10324 + Handle spaces before `\cite` arguments.
10325 + Allow newpage, clearpage, pagebreak in inline contexts as well as
10326 block contexts (#3494).
10327 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
10328 + Use `pMacroDefinition` in macro (for more direct parsing).
10329 Note that this means that `macro` will now parse one
10330 macro at a time, rather than parsing a whole group together.
10331 + Fixed failures on `\ref{}`, `\label{}` with `+raw_tex`. Now these
10332 commands are parsed as raw if `+raw_tex`; otherwise, their argument
10333 is parsed as a bracketed string.
10334 + Don't crash on empty `enumerate` environment (#3707).
10335 + Handle escaped `&` inside table cell (#3708).
10336 + Handle block structure inside table cells (#3709). `minipage` is no
10338 + Handle some width specifiers on table columns (#3709). Currently
10339 we only handle the form `0.9\linewidth`. Anything else would have
10340 to be converted to a percentage, using some kind arbitrary assumptions
10342 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
10343 LaTeX reader's treatment of raw commands, but it also affects the
10345 + Fixed regression with starred environment names (#3803).
10346 + Handle optional args in raw `\titleformat` (#3804).
10347 + Improved heuristic for raw block/inline. An unknown command at the
10348 beginning of the line that could be either block or inline is
10349 treated as block if we have a sequence of block commands followed by
10350 a newline or a `\startXXX` command (which might start a raw ConTeXt
10352 + Don't remove macro definitions from the output, even if
10353 `Ext_latex_macros` is set, so that macros will be applied.
10354 Since they're only applied to math in Markdown, removing the macros
10355 can have bad effects. Even for math macros, keeping them should be
10357 + Removed `macro`. It is no longer necessary, since the
10358 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
10359 the need for a separate `latexMacro` parser in the Markdown reader.
10360 + Use `label` instead of `data-label` for label in caption (#3639).
10361 + Fixed space after `\figurename` etc.
10362 + Resolve references to section numbers.
10363 + Fix `\let\a=0` case, with single character token.
10364 + Allow `@` as a letter in control sequences. `@` is commonly used
10365 in macros using `\makeatletter`. Ideally we'd make the tokenizer
10366 sensitive to `\makeatletter` and `\makeatother`, but until then this
10367 seems a good change.
10368 + Track header numbers and correlate with labels.
10369 + Allow `]` inside group in option brackets (#3857).
10370 + lstinline with braces can be used (verb cannot be used with braces)
10371 (Marc Schreiber, #3535).
10372 + Fix keyval function: pandoc did not parse options in braces correctly
10373 (Marc Schreiber, #3642).
10374 + When parsing raw LaTeX commands, include trailing space (#1773).
10375 Otherwise things like `\noindent foo` break and turn into
10376 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
10377 formats that allow `raw_tex`).
10378 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
10379 `\texttt` contexts.
10380 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
10381 + Allow space before `=` in bracketd options (Ben Firshman).
10382 + Be more forgiving in parsing command options. This was needed, for
10383 example, to make some minted options work.
10384 + Strip off quotes in `\include` filenames.
10386 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
10388 * `Text.Pandoc.PDF`:
10390 + Got `--resource-path` working with PDF output (#852).
10391 + Fetch images when generating PDF via context (#3380).
10392 To do this, we create the temp directory as a subdirectory
10393 of the working directory. Since context mk IV by default looks
10394 for images in the parent directory, this works.
10395 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
10396 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
10397 This reduces code duplication.
10398 + `html2pdf`: use stdin instead of intermediate HTML file
10399 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
10400 doesn't use `TEXINPUTS`.
10402 * `Text.Pandoc.Pretty`:
10404 + Simplified definition of `realLength`.
10405 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
10407 * `Text.Pandoc.MIME`:
10409 + Use `application/javascript` (not `application/x-javascript`).
10410 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
10412 * `Text.Pandoc.ImageSize`:
10414 + Improve SVG image size code (Marc Schreiber, #3580).
10415 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
10417 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
10418 and reduction of memory usage in most of the writers.
10420 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
10422 * `Text.Pandoc.SelfContained`:
10424 + Fixed problem with embedded fonts (#3629).
10425 + Refactored getData from `getDataURI` in `SelfContained`.
10426 + Don't use data URIs for script or style (#3423). Instead, just use
10427 script or style tags with the content inside. The old method with
10428 data URIs prevents certain optimizations outside pandoc. Exception:
10429 data URIs are still used when a script contains `</script>` or a
10430 style contains `</`.
10431 + SelfContained: Handle URL inside material retrieved from a URL
10432 (#3629). This can happen e.g. with an @import of a google web font.
10433 (What is imported is some CSS which contains an url reference
10434 to the font itself.) Also, allow unescaped pipe (|) in URL.
10435 + Load resources from `data-src` (needed for lazy loading in
10436 reveal.js slide shows).
10437 + Handle `data-background-image` attribute on section (#3979).
10439 * `Text.Pandoc.Parsing`:
10441 + Added `indentWith` (Alexander Krotov, #3687).
10442 + Added `stateCitations` to `ParserState`.
10443 + Removed `stateChapters` from `ParserState`.
10444 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
10445 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
10446 + Adjusted type of `insertIncludedFile` so it can be used with token
10448 + Replace old texmath macro stuff from Parsing. Use Macro from
10449 Text.Pandoc.Readers.LaTeX.Types instead.
10450 + Export `insertIncludedFile`.
10451 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
10452 + Replace partial with total function (Albert Krewinkel).
10453 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
10454 `insertIncludeFile` function is generalized to work with all parser
10455 states which are instances of that class.
10456 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
10457 The `insertIncludeFiles` function was generalized and renamed
10458 to `insertIncludedFiles'`; the specialized versions are based on that.
10459 + `many1Till`: Check for the end condition before parsing (Herwig
10460 Stuetz). By not checking for the end condition before the first
10461 parse, the parser was applied too often, consuming too much of the
10462 input. This only affects `many1Till p end` where `p` matches on a
10464 + Provide `parseFromString` (#3690). This is a version of
10465 `parseFromString` specialied to ParserState, which resets
10466 `stateLastStrPos` at the end. This is almost always what we want.
10467 This fixes a bug where `_hi_` wasn't treated as emphasis in the
10468 following, because pandoc got confused about the position of the
10469 last word: `- [o] _hi_`.
10470 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
10471 + Fix `blanklines` documentation (Alexander Krotov, #3843).
10472 + Give less misleading line information with `parseWithString`.
10473 Previously positions would be reported past the end of the chunk.
10474 We now reset the source position within the chunk and report
10475 positions "in chunk."
10476 + Add `anyLineNewline` (Alexander Krotov).
10477 + Provide shared F monad functions for Markdown and Org readers
10478 (Albert Krewinkel). The `F` monads used for delayed evaluation
10479 of certain values in the Markdown and Org readers are based on a
10480 shared data type capturing the common pattern of both `F` types.
10481 + Add `returnF` (Alexander Krotov).
10482 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
10483 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
10484 + Added `readerAbbreviations` to `ParserState`. Markdown reader
10485 now consults this to determine what is an abbreviation.
10486 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
10487 parsers for markdown and rst was combined into one single
10488 parser `gridTable`, slightly changing parsing behavior of both
10489 parsers: (1) The markdown parser now compactifies block content
10490 cell-wise: pure text blocks in cells are now treated as paragraphs
10491 only if the cell contains multiple paragraphs, and as plain blocks
10492 otherwise. Before, this was true only for single-column tables. (2)
10493 The rst parser now accepts newlines and multiple blocks in header
10495 + Generalize tableWith, gridTableWith (Albert Krewinkel).
10496 The parsing functions `tableWith` and `gridTableWith` are generalized
10497 to work with more parsers. The parser state only has to be an
10498 instance of the `HasOptions` class instead of requiring a concrete
10499 type. Block parsers are required to return blocks wrapped into a
10500 monad, as this makes it possible to use parsers returning results
10501 wrapped in `Future`s.
10503 * `Text.Pandoc.Shared`:
10505 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
10506 + `stringify`: handle Quoted better (#3958). Previously we were losing
10507 the quotation marks in Quoted elements.
10509 * `Text.Pandoc.Writers.Shared`:
10511 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
10512 This allows us to add the variables AFTER using the metadata
10513 to generate a YAML header (in the Markdown writer).
10514 + Added `unsmartify` (previously in RST writer).
10515 Undo literal double curly quotes. Previously we left these.
10516 + Generalize type of `metaToJSON` so it can take a Text. Previously a
10517 String was needed as argument; now any ToJSON instance will do.
10518 + Added `gridTable` (previously in Markdown writer).
10519 + `gridTable`: Refactored to use widths in chars.
10520 + `gridTable`: remove unnecessary extra space in cells.
10521 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
10522 values to become lists.
10523 + Pipe tables: impose minimum cell size (see #3526).
10526### Default template changes
10528 * HTML templates (including EPUB and HTML slide show templates):
10530 + Make default.html5 polyglot markup conformant (John Luke Bentley,
10531 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
10532 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
10533 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
10534 + Regularized CSS in html/epub/html slide templates (#3485).
10535 All templates now include `code{white-space: pre-wrap}`
10536 and CSS for `q` if `--html-q-tags` is used. Previously some templates
10537 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
10539 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
10540 + `default.revealjs`: make `history` default to true.
10541 + `default.revealjs`: use lazy loading (#2283).
10542 + `default.revealjs`: add `mathjax` variable and some conditional code
10543 to use the MathJaX plugin.
10544 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
10545 + `default.dzslides`: Load Google Font using HTTPS by default
10548 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
10551 * LaTeX/Beamer template:
10553 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
10554 `default.beamer` has been removed; beamer now uses the
10555 `default.latex` template. Beamer-specific parts are conditional
10556 on the `beamer` variable set by the writer. Note that
10557 `pandoc -D beamer` will return this (combined) template.
10558 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
10559 Beamer loads `xcolor` rather than `color`, and thus the
10560 `dvipsnames` option doesn't take effect. This also provides a wider
10561 range of colour selections with the `svgnames` option.
10562 + Use starred versions of `xcolor` names (Andrew Dunning).
10563 Prevents changes to documents defined using the `dvipsnames` list (e.g.
10564 `Blue` gives a different result with svgnames enabled).
10565 + Load `polyglossia` after header-includes (#3898). It needs to be
10566 loaded as late as possible.
10567 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
10568 XeLaTeX on request.
10569 + Don't load `fontspec` before `unicode-math` (over there).
10570 The `unicode-math` package loads `fontspec` so explicit loading of
10571 `fontspec` before `unicode-math` is not necessary.
10572 + Use `unicode-math` by default in default.latex template. mathspec will
10573 be used in xelatex if the `mathspec` variable is set; otherwise
10574 unicode-math will be used (Václav Haisman).
10575 + Use `dvipsnames` options when `colorlinks` specified (otherwise
10576 we get an error for `maroon`) (Thomas Hodgson).
10577 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
10578 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
10579 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
10580 clash when loading a package (e.g. `tufte-latex`) that uses
10581 `hyperref` settings different from those in the template.
10582 + Add `natbiboptions` variable (#3768).
10583 + Fix links inside captions in LaTeX output with links-as-notes
10584 (Václav Haisman, #3651). Declare our redefined `\href` robust.
10585 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
10586 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
10587 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
10588 packages. Use existing `CJKmainfont` and `CJKoptions` template
10589 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
10590 and `luatexjapresetoptions` for `luatexja-preset`.
10591 + Added `aspectratio` variable to beamer template (Václav Haisman,
10593 + Modified template.latex to fix XeLaTex being used with tables
10594 (lwolfsonkin, #3661). Reordered `lang` variable handling to
10595 immediately before `bidi`.
10597 * ConTeXt template: Improved font handling: `simplefonts` is now
10598 obsolete in ConTeXt (Pablo Rodríguez).
10601### Documentation improvements
10605 + Add URL for Prince HTML > PDF engine (Ian, #3919).
10606 + Document that content above slide-level will be omitted in
10607 slide shows. See #3460, #2265.
10608 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
10609 + Small clarification in YAML metadata section.
10610 + Document that html4 is technically XHTML 1.0 transitional.
10611 + Remove refs to highlighting-kate (#3672).
10612 + Document ibooks specific epub metadata.
10613 + Clarify that mathml is used for ODT math.
10614 + Mention limitations of Literate Haskell Support (#3410,
10616 + Add documentation of limitations of grid tables (Stephen
10618 + Clarify that meta-json contains transformed values (Jakob Voß,
10619 #3491) Make clear that template variable `meta-json` does not
10620 contain plain text values or JSON output format but field values
10621 transformed to the selected output format.
10625 + Clarify that templates are dual-licensed.
10626 + Clarify that pandoc-types is BSD3 licensed.
10627 + List new files not written by jgm (Albert Krewinkel).
10628 + Update dates in copyright notices (Albert Krewinkel). This follows
10629 the suggestions given by the FSF for GPL licensed software.
10630 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
10634 + Improved instructions for tests with patterns.
10635 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
10639 + Fixed typos (Wandmalfarbe, #3479).
10640 + Add "ask on pandoc-discuss" (Mauro Bieg).
10642 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
10643 end of this document is autogenerated from `data/pandoc.lua`
10644 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
10645 (Albert Krewinkel).
10647 * Add `doc/filters.md`. This is the old scripting tutorial from
10650 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
10651 to using pandoc as a Haskell library.
10654### Build infrastructure improvements
10656 * Removed `data/templates` submodule. Templates are now a subtree
10657 in `data/templates`. This removes the need to do `git submodule
10660 * Renamed `tests` -> `test`.
10662 * Remove `https` flag. Always build with HTTPS support.
10664 * Use `file-embed` instead of `hsb2hs` to embed data files when
10665 `embed_data_files` flag is set. `file-embed` gives us better dependency
10666 tracking: if a data file changes, ghc/stack/cabal know to recompile
10667 the Data module. This also removes `hsb2hs` as a build dependency.
10669 * Add `custom-setup` stanza to pandoc, lowercase field names.
10671 * Add `static` Cabal flag.
10673 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
10674 than -OSX. Changed local names from osx to macos.
10676 * make_macos_package.sh - Use strip to reduce executable size.
10678 * Revised binary linux package. Now a completely static executable
10679 is created, using Docker and alpine. We create both a deb and a
10680 tarball. The old `deb` directory has been replaced with a `linux`
10681 directory. Running `make` in the `linux` directory should
10682 perform the build, putting the binary packages in `artifacts/`.
10684 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
10685 pandoc-data packages will be uninstalled; this package provides
10686 both (#3822). Add latex packages as 'suggested', update
10689 * Remove cpphs build requirement -- it is no longer needed.
10691 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
10693 * Name change OSX -> macOS (ickc, #3869).
10695 * Fix casing of Linux, UNIX, and Windows (ickc).
10697 * `.travis.yml`: create a source dist and do cabal build and test there.
10698 That way we catch errors due to files missing from the data
10699 section of pandoc.cabal.
10703 + Split `make haddock` from `make full`.
10704 + Add BRANCH variable for winpkg.
10705 + Add `lint` target.
10706 + Improve `make full`. Disable optimizations.
10707 Build everything, inc. trypandoc and benchmarks. Use parallel build.
10708 + Allow `make test` to take `TESTARGS`.
10710 * Added new command tests (`Tests.Command`), using small text files
10711 in `test/command/`. Any files added in this directory will be treated
10712 as shell tests (see smart.md for an example). This makes it very easy
10713 to add regression tests etc.
10715 * Test fixes so we can find data files. In old tests & command tests,
10716 we now set the environment variable `pandoc_datadir`. In lua tests,
10717 we set the datadir explicitly.
10719 * Refactored `compareOutput` in docx writer test.
10721 * Consolidated some common functions in `Tests.Helper`.
10723 * Small change to unbalanced bracket test to speed up test suite.
10725 * Speed up Native writer quickcheck tests.
10727 * Use tasty for tests rather than test-framework.
10729 * Add simple Emacs mode to help with Pandoc templates editing.
10730 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
10733## pandoc 1.19.2.4 (2017-09-10)
10735 * Add dependencies on texmath and skylighting to the executable.
10736 This is needed for dependency version numbers to be available,
10739## pandoc 1.19.2.3 (2017-09-09)
10741 * Add CPP to Setup.hs so it works with Cabal >= 2 and < 2.
10743## pandoc 1.19.2.2 (2017-09-08)
10745 * Fix build with GHC 8.2.1 (#3876, Peter Simons). Setup.hs does not
10746 compile with Cabal 2.x, so we require an earlier version via
10747 setup-depends. The following packages need newer versions with
10748 GHC 8.2.1 and had their constraints relaxed accordingly:
10749 executable-path, process, syb, and time.
10751## pandoc 1.19.2.1 (2017-01-31)
10753 * Require skylighting >= 0.1.1.4.
10754 * Adjust test output for skylighting version.
10755 * Relax upper bounds on blaze-html and blaze-markup.
10757## pandoc 1.19.2 (2017-01-29)
10759 * Use skylighting library instead of highlighting-kate for syntax
10760 highlighting. Skylighting is faster and more accurate (#3363).
10761 Later we'll be able to add features like warning messages, dynamic
10762 loading of xml syntax definitions, and dynamic loading of themes.
10764 * Added a new highlight style, `breezeDark`.
10766 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
10767 This allows more languages to be used when using the `--listings`
10770 * OpenDocument writer:
10772 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
10773 + Don't profilerate text styles unnecessarily (#3371).
10774 This change makes the writer create only as many temporary
10775 text styles as are absolutely necessary. It also consolidates
10776 adjacent nodes with the same style.
10778 * Org reader (Albert Krewinkel):
10780 + Allow short hand for single-line raw blocks (Albert Krewinkel,
10781 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
10782 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
10783 + Accept org-ref citations followed by commas (Albert Krewinkel).
10784 Bugfix for an issue which, whenever the citation was immediately
10785 followed by a comma, prevented correct parsing of org-ref citations.
10786 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
10787 `/*strong and emphasized*/`) was interpreted incorrectly in that the
10788 inner markup was not recognized.
10789 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
10791 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
10792 In the past, the docx reader wrote an empty header as an empty list. It
10793 should have the same width as a row (and be filled with empty cells).
10795 * MediaWiki reader:
10797 + Improved handling of display math (#3362). Sometimes display math is
10798 indented with more than one colon. Previously we handled these cases
10799 badly, generating definition lists and missing the math.
10800 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
10801 behavior when the smart option is parsed to match other readers'
10806 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
10807 (#3341). Previously this did not properly enable escaped line breaks.
10808 + Disallow space between inline code and attributes (#3326, #3323,
10811 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
10813 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
10815 * LaTeX writer: allow tables with empty cells to count as "plain."
10816 This addresses a problem of too-wide tables when empty cells
10817 are used. Thanks to Joost Kremers for reporting the issue.
10819 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
10820 Unprefixed numbers where used by older org-mode versions, but are no
10823 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
10826 * Markdown writer: Fix display math with `--webtex` (#3298).
10828 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
10833 + default.latex: Moved geometry after hyperref (Václav Haisman).
10834 Otherwise PDF sizes can be wrong in some circumstances.
10835 + Copied a few changes from default.latex to default.beamer
10837 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
10838 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
10839 that contain verbatim in notes (#3361). (Note: the beamer template
10840 was updated to match the LaTeX template, but at this point verbatim
10841 in notes seems not to work in beamer.)
10842 + default.latex: Allow passing `microtypeoptions` to microtype
10844 + default.latex: Add hyphen option to url package.
10845 + default.docbook5: Fix namespace declarations (Mauro Bieg).
10847 * Moved `make_osx_package.sh` to `osx/` directory.
10849 * Travis continuous integration:
10851 + Fix false positives with dist build.
10852 + Speed improvements (Kolen Cheung, #3304, #3357).
10856 + Clarify that blank space is needed around footnotes (#3352).
10857 + Fixed typo (#3351, Alexey Rogechev).
10858 + Note that `--wrap=auto` does not work in HTML output.
10859 + Default `--columns` width is 72, not 80.
10860 + Fixed broken links (#3316, Kolen Cheung).
10861 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
10865 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
10866 + Added instructions for extracting binary from OSX, Windows packages.
10868 * CONTRIBUTING.md: Describe labels currently used in issue tracker
10869 (Albert Krewinkel). The labels have changed over time, the list of
10870 labels is updated to reflect the current set of labels used in the
10873 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
10875 * Bumped version bounds for dependencies.
10878## pandoc 1.19.1 (2016-12-10)
10880 * Set `PANDOC_VERSION` environment variable for filters (#2640).
10881 This allows filters to check the pandoc version that produced
10882 the JSON they are receiving.
10884 * Docx reader: Ensure one-row tables don't have header (#3285,
10885 Jesse Rosenthal). Tables in MS Word are set by default to have
10886 special first-row formatting, which pandoc uses to determine whether
10887 or not they have a header. This means that one-row tables will, by
10888 default, have only a header -- which we imagine is not what people
10889 want. This change ensures that a one-row table is not understood to
10890 be a header only. Note that this means that it is impossible to
10891 produce a header-only table from docx, even though it is legal
10892 pandoc. But we believe that in nearly all cases, it will be an
10893 accidental (and unwelcome) result
10897 + Fixed some bad regressions in HTML table parser (#3280).
10898 This regression leads to the introduction of empty rows
10899 in some circumstances.
10900 + Understand `style=width:` as well as `width` in `col` (#3286).
10904 + Print warnings when keys, substitition, notes not found.
10905 Previously the parsers failed and we got raw text. Now we get a
10906 link with an empty URL, or empty inlines in the case of a note or
10909 + Fix hyperlink aliases (#3283).
10911 * Man writer: Ensure that periods are escaped at beginning of line
10914 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
10915 (#3272, Albert Krewinkel). Fix interaction of top-level
10916 divisions `part` or `chapter` with unnumbered headers when
10917 emitting LaTeX. Headers are ensured to be written using
10918 stared commands (like `\subsection*{}`).
10920 * LaTeX template: use comma not semicolon to separate keywords for
10921 `pdfkeywords`. Thanks to Wandmalfarbe.
10923 * Markdown writer: Fixed incorrect word wrapping (#3277).
10924 Previously pandoc would sometimes wrap lines too early due to
10927 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
10928 possible to insert escape codes for content that needs escaping at the
10929 beginning of a line.
10931 * Removed old MathMLInHTML.js from 2004, which should no longer
10932 be needed for MathML with modern browsers.
10934 * Fixed tests with dynamic linking (#2709).
10936 * Makefile: Use stack instead of cabal for targets. This is just
10937 a convenience for developers.
10939 * Fixed bash completion of filenames with space (#2749).
10941 * MANUAL: improved documentation on how to create a custom
10944 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
10946## pandoc 1.19 (2016-12-01)
10948 * Changed resolution of filter paths.
10950 + We now first treat the argument of `--filter` as a full (absolute
10951 or relative) path, looking for a program there. If it's found, we
10953 + If not, and if it is a simple program name or a relative path, we
10954 try resolving it relative to `$DATADIR/filters`.
10955 + If this fails, then we treat it as a program name and look in the
10957 + Removed a hardcoded '/' that may have caused problems with
10960 Previously if you did `--filter foo` and you had `foo` in your path and
10961 also an executable `foo` in your working directory, the one in the path
10962 would be used. Now the one in the working directory is used.
10964 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
10965 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
10966 `foo/bar.hs` relative to the working directory.
10968 * Allow `file://` URIs as arguments (#3196). Also improved default reader
10969 format detection. Previously with a URI ending in .md or .markdown,
10970 pandoc would assume HTML input. Now it treats these as markdown.
10972 * Allow to overwrite top-level division type heuristics (#3258,
10973 Albert Krewinkel). Pandoc uses heuristics to determine the most
10974 reasonable top-level division type when emitting LaTeX or
10975 Docbook markup. It is now possible to overwrite this implicitly set
10976 top-level division via the `top-level-division` command line parameter.
10978 * Text.Pandoc.Options \[API changes\]:
10980 + Removed `writerStandalone` field in `WriterOptions`, made
10981 `writerTemplate` a `Maybe` value. Previously setting
10982 `writerStandalone = True` did nothing unless a template was provided
10983 in writerTemplate. Now a fragment will be generated if
10984 `writerTemplate` is `Nothing`; otherwise, the specified template
10985 will be used and standalone output generated.
10986 + `Division` has been renamed `TopLevelDivision` (#3197). The
10987 `Section`, `Chapter`, and `Part` constructors were renamed to
10988 `TopLevelSection`, `TopLevelChapter`, and
10989 `TopLevelPart`, respectively. An additional `TopLevelDefault`
10990 constructor was added, which is now also the new default value of
10991 the `writerTopLevelDivision` field in `WriterOptions`.
10993 * Improved error if they give wrong arg to `--top-level-division`.
10995 * Use new module from texmath to lookup MS font codepoints in Docx reader.
10996 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
10997 lives in texmath (0.9).
10999 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
11000 when the qnames lacked the docbook namespace URI.
11004 + Improved table parsing (#3027). We now check explicitly for non-1
11005 rowspan or colspan attributes, and fail when we encounter them.
11006 Previously we checked that each row had the same number of cells,
11007 but that could be true even with rowspans/colspans. And there are
11008 cases where it isn't true in tables that we can handle fine -- e.g.
11009 when a tr element is empty. So now we just pad rows with empty cells
11011 + Treat `<math>` as MathML by default unless something else is
11012 explicitly specified in xmlns. Provided it parses as MathML,
11013 of course. Also fixed default which should be to inline math if no
11014 display attribute is used.
11015 + Only treat "a" element as link if it has href (#3226). Otherwise
11018 * Docx reader (Jesse Rosenthal):
11020 + Add a placeholder value for CHART. We wrap `[CHART]` in a
11021 `<span class="chart">`. Note that it maps to inlines because, in
11022 docx, anything in a drawing tag can be part of a larger paragraph.
11023 + Be more specific in parsing images We not only want `w:drawing`,
11024 because that could also include charts. Now we specify
11025 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
11026 a first step toward allowing other sorts of drawing data as well.
11027 + Abstract out function to avoid code repetition.
11028 + Update tests for img title and alt (#3204).
11029 + Handle Alt text and titles in images. We use the "description" field
11030 as alt text and the "title" field as title. These can be accessed
11031 through the "Format Picture" dialog in Word.
11032 + Docx reader utils: handle empty namespace in `elemName`. Previously,
11033 if given an empty namespace `(elemName ns "" "foo")` `elemName`
11034 would output a QName with a `Just ""` namespace. This is never what
11035 we want. Now we output a `Nothing`. If someone *does* want a
11036 `Just ""` in the namespace, they can enter the QName
11039 * ODT reader/writer:
11041 + Inline code when text has a special style (Hubert Plociniczak). When
11042 a piece of text has a text `Source_Text` then we assume that this is
11043 a piece of the document that represents a code that needs to
11044 be inlined. Adapted the writer to also reflect that change.
11045 Previously it was just writing a 'preformatted' text using a
11046 non-distinguishable font style. Code blocks are still not recognized
11047 by the ODT reader. That's a separate issue.
11048 + Infer table's caption from the paragraph (#3224,
11049 Hubert Plociniczak). ODT's reader always put empty captions for the
11050 parsed tables. This commit
11052 1. checks paragraphs that follow the table definition
11053 2. treats specially a paragraph with a style named 'Table'
11054 3. does some postprocessing of the paragraphs that combines tables
11055 followed immediately by captions
11057 The ODT writer used the `TableCaption` style for the caption
11058 paragraph. This commit follows the OpenOffice approach which allows
11059 for appending captions to table but uses a built-in style named
11060 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
11061 should change the style's name from `TableCaption` to `Table`.
11063 * ODT reader: Infer tables' header props from rows (#3199,
11064 Hubert Plociniczak). ODT reader simply provided an empty header list
11065 which meant that the contents of the whole table, even if not empty, was
11066 simply ignored. While we still do not infer headers we at least have to
11067 provide default properties of columns.
11071 + Allow reference link labels starting with `@...` if `citations`
11072 extension disabled (#3209). Example: in
11074 \[link text\]\[@a\]
11076 `link text` isn't hyperlinked because `[@a]` is parsed as
11077 a citation. Previously this happened whether or not the `citations`
11078 extension was enabled. Now it happens only if the `citations`
11079 extension is enabled.
11080 + Allow alignments to be specified in Markdown grid tables. For
11083 +-------+---------------+--------------------+
11084 | Right | Left | Centered |
11085 +=========:+:=================+:=============:+
11086 | Bananas | $1.34 | built-in wrapper |
11087 +-------+---------------+--------------------+
11089 + Allow Small Caps elements to be created using bracketed spans (as
11090 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
11094 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
11095 Fixed an error which came up, for example, with `\vspace` inside
11096 a caption. (Captions expect inlines.)
11097 + Improved table handling. We can now parse all of the tables emitted
11098 by pandoc in our tests. The only thing we don't get yet are
11099 alignments and column widths in more complex tables. See #2669.
11100 + Limited support for minipage.
11101 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
11102 + Handle BVerbatim from fancyvrb (#3203).
11103 + Handle hungarumlaut (#3201).
11104 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
11105 (#3184). This allows use of things like `\only<2,3>{my content}` in
11106 Markdown that is going to be converted to beamer.
11108 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
11109 overly long code will appear on every slide.
11111 * Org reader (Albert Krewinkel):
11113 + Respect column width settings (#3246). Table column properties can
11114 optionally specify a column's width with which it is displayed in
11115 the buffer. Some exporters, notably the ODT exporter in org-mode
11116 v9.0, use these values to calculate relative column widths. The org
11117 reader now implements the same behavior. Note that the org-mode
11118 LaTeX and HTML exporters in Emacs don't support this feature yet,
11119 which should be kept in mind by users who use the column
11121 + Allow HTML attribs on non-figure images (#3222). Images which are
11122 the only element in a paragraph can still be given HTML attributes,
11123 even if the image does not have a caption and is hence not a figure.
11124 The following will add set the `width` attribute of the image to
11127 +ATTR\_HTML: :width 50%
11128 =======================
11130 \[\[file:image.jpg\]\]
11132 + Support `ATTR_HTML` for special blocks (#3182). Special
11133 blocks (i.e. blocks with unrecognized names) can be prefixed with an
11134 `ATTR_HTML` block attribute. The attributes defined in that
11135 meta-directive are added to the `Div` which is used to represent the
11137 + Support the `todo` export option. The `todo` export option allows to
11138 toggle the inclusion of TODO keywords in the output. Setting this to
11139 `nil` causes TODO keywords to be dropped from headlines. The default
11140 is to include the keywords.
11141 + Add support for todo-markers. Headlines can have optional
11142 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
11143 or `#+TYP_TODO` meta directive. Multiple such directives can be
11144 given, each adding a new set of recognized todo-markers. If no
11145 custom todo-markers are defined, the default `TODO` and `DONE`
11146 markers are used. Todo-markers are conceptually separate from
11147 headline text and are hence excluded when autogenerating
11148 headline IDs. The markers are rendered as spans and labelled with
11149 two classes: One class is the markers name, the other signals the
11150 todo-state of the marker (either `todo` or `done`).
11154 + Use `\autocites*` when "suppress-author" citation used.
11155 + Ensure that simple tables have simple cells (#2666). If cells
11156 contain more than a single Plain or Para, then we need to set
11157 nonzero widths and put contents into minipages.
11158 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
11162 + Fix calculation of column widths for aligned multiline tables
11163 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
11164 usage for tables when `--columns` is set in such a way that cells
11165 must be very tiny. Now cells are guaranteed to be big enough so that
11166 single words don't need to line break, even if this pushes the line
11167 length above the column width.
11168 + Use bracketed form for native spans when `bracketed_spans`
11170 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
11171 sublist got rendered with a blank line after, while a tight ordered
11172 sublist did not. Now we don't get the blank line in either case.
11173 + Fix escaping of spaces in super/subscript (#3225). Previously two
11174 backslashes were inserted, which gave a literal backslash.
11175 + Adjust widths in Markdown grid tables so that they match
11180 + Give full detail when there are errors converting tex math.
11181 + Handle title text in images (Jesse Rosenthal). We already handled
11182 alt text. This just puts the image "title" into the docx
11184 + Fixed XML markup for empty cells (#3238). Previously the Compact
11185 style wasn't being applied properly to empty cells.
11189 + Updated `renderHtml` import from blaze-html.
11191 * Text.Pandoc.Pretty:
11193 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
11194 caused spurious blank lines in grid tables when we had things like
11195 `blankline $$ blankline`.
11196 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
11197 + Added error message for illegal call to `block` (Björn Peemöller).
11199 * Text.Pandoc.Shared:
11201 + Put `warn` in MonadIO.
11202 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
11203 URL starts with `//` and there is no "base URL" (as there would be
11204 if a URL were used on the command line), then default to http:.
11206 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
11208 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
11209 fixes a crash with `pandoc --version` on unusual systems with no real
11210 user (e.g. SQL Server 2016).
11212 * Added weigh-pandoc for memory usage diagnostics (#3169).
11214 * Use correct mime types for woff and woff2 (#3228).
11216 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
11218 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
11219 1.18 section where it belongs.
11221 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
11224 * Further revisions to manual for `--version` changes (#3244).
11228## pandoc 1.18 (2016-10-26)
11230 * Added `--list-input-formats`, `--list-output-formats`,
11231 `--list-extensions`, `--list-highlight-languages`, and
11232 `--list-highlight-styles` (#3173). Removed list of highlighting
11233 languages from `--version` output. Removed list of input and output
11234 formats from default `--help` output.
11236 * Added `--reference-location=block|section|document` option
11237 (Jesse Rosenthal). This determines whether Markdown link references
11238 and footnotes are placed at the end of the document, the end of the
11239 section, or the end of the top-level block.
11241 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
11242 This determines what a level-1 header corresponds to in LaTeX,
11243 ConTeXt, DocBook, and TEI output. The default is `section`.
11244 The `--chapters` option has been deprecated in favor of
11245 `--top-level-division=chapter`.
11247 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
11248 is now used in parsing RST and Markdown line blocks, DocBook
11249 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
11250 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
11251 are handled specially in the following output formats: AsciiDoc
11252 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
11253 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
11254 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
11255 other output formats, a paragraph with hard linebreaks is emitted.
11257 * Allow binary formats to be written to stdout (but not to tty) (#2677).
11258 Only works on posix, since we use the unix library to check whether
11259 output is to tty. On Windows, pandoc works as before and always requires
11260 an output file parameter for binary formats.
11262 * Changed JSON output format (Jesse Rosenthal). Previously we used
11263 generically generated JSON, but this was subject to change depending
11264 on the version of aeson pandoc was compiled with. To ensure stability,
11265 we switched to using manually written ToJSON and FromJSON
11266 instances, and encoding the API version. **Note:** pandoc filter
11267 libraries will need to be revised to handle the format change.
11268 Here is a summary of the essential changes:
11270 + The toplevel JSON format is now `{"pandoc-api-version" :
11271 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
11272 instead of `[{"unMeta": META}, [BLOCKS]]`.
11273 Decoding fails if the major and minor version numbers don't
11275 + Leaf nodes no longer have an empty array for their "c" value.
11276 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
11277 rather than `{"t":"Space","c":[]}` as before.
11279 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
11280 module to pandoc-types (Jesse Rosenthal). This makes it easier
11281 to use QuickCheck with pandoc types outside of pandoc itself.
11283 * Add `bracketed_spans` Markdown extension, enabled by default
11284 in pandoc `markdown`. This allows you to create a native span
11285 using this syntax: `[Here is my span]{#id .class key="val"}`.
11287 * Added `angle_brackets_escapable` Markdown extension (#2846).
11288 This is needed because github flavored Markdown has a slightly
11289 different set of escapable symbols than original Markdown;
11290 it includes angle brackets.
11292 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
11294 * Print highlighting-kate version in `--version`.
11296 * `Text.Pandoc.Options`:
11298 + `Extension` has new constructors `Ext_brackted_spans` and
11299 `Ext_angle_brackets_escapable` [API change].
11300 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
11301 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
11304 * `--filter`: we now check `$DATADIR/filters` for filters before
11305 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
11306 Voß for the idea). Filters placed in this directory need not
11307 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
11308 or `.rb`, pandoc will run the right interpreter.
11310 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
11311 default (Kolen Cheung).
11313 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
11315 * Execute .js filters with node (Jakob Voß).
11319 + Support `bc..` extended code blocks (#3037). Also, remove trailing
11320 newline in code blocks (consistently with Markdown reader).
11321 + Improve table parsing. We now handle cell and row attributes, mostly
11322 by skipping them. However, alignments are now handled properly.
11323 Since in pandoc alignment is per-column, not per-cell, we
11324 try to devine column alignments from cell alignments.
11325 Table captions are also now parsed, and textile indicators
11326 for thead and tfoot no longer cause parse failure. (However,
11327 a row designated as tfoot will just be a regular row in pandoc.)
11328 + Improve definition list parsing. We now allow multiple terms
11329 (which we concatenate with linebreaks). An exponential parsing
11330 bug (#3020) is also fixed.
11331 + Disallow empty URL in explicit link (#3036).
11335 + Use Div instead of BlockQuote for admonitions (#3031).
11336 The Div has class `admonition` and (if relevant) one of the
11337 following: `attention`, `caution`, `danger`, `error`, `hint`,
11338 `important`, `note`, `tip`, `warning`. **Note:** This will change
11339 the rendering of some RST documents! The word ("Warning", "Attention",
11340 etc.) is no longer added; that must be done with CSS or a filter.
11341 + A Div is now used for `sidebar` as well.
11342 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
11343 space before a footnote marker. We discard those spaces so that footnotes
11344 will be adjacent to the text that comes before it. This is in line with
11345 what rst2latex does.
11346 + Allow empty lines when parsing line blocks (Albert Krewinkel).
11350 + Allow empty lines when parsing line blocks (Albert Krewinkel).
11351 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
11355 + More robust parsing of unknown environments (#3026).
11356 We no longer fail on things like `^` inside options for tikz.
11357 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
11358 Some custom environments give these a meaning, so we should try not to
11359 fall over when we encounter them.
11360 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
11362 * MediaWiki reader:
11364 + Fix for unquoted attribute values in mediawiki tables (#3053).
11365 Previously an unquoted attribute value in a table row
11366 could cause parsing problems.
11367 + Improved treatment of verbatim constructions (#3055).
11368 Previously these yielded strings of alternating Code and Space
11369 elements; we now incorporate the spaces into the Code. Emphasis
11370 etc. is still possible inside these.
11371 + Properly interpret XML tags in pre environments (#3042). They are meant
11372 to be interpreted as literal text.
11374 * EPUB reader: don't add root path to data: URIs (#3150).
11375 Thanks to @lep for the bug report and patch.
11377 * Org reader (Albert Krewinkel):
11379 + Preserve indentation of verse lines (#3064). Leading spaces in verse
11380 lines are converted to non-breaking spaces, so indentation is preserved.
11381 + Ensure image sources are proper links. Image sources as those in plain
11382 images, image links, or figures, must be proper URIs or relative file
11383 paths to be recognized as images. This restriction is now enforced
11384 for all image sources. This also fixes the reader's usage of uncleaned
11385 image sources, leading to `file:` prefixes not being deleted from
11386 figure images. Thanks to @bsag for noticing this bug.
11387 + Trim verse lines properly (Albert Krewinkel).
11388 + Extract meta parsing code to module. Parsing of meta-data is well
11389 separable from other block parsing tasks. Moving into new module to
11390 get small files and clearly arranged code.
11391 + Read markup only for special meta keys. Most meta-keys should be read
11392 as normal string values, only a few are interpreted as marked-up text.
11393 + Allow multiple, comma-separated authors. Multiple authors can be
11394 specified in the `#+AUTHOR` meta line if they are given as a
11395 comma-separated list.
11396 + Give precedence to later meta lines. The last meta-line of any given
11397 type is the significant line. Previously the value of the first line
11398 was kept, even if more lines of the same type were encountered.
11399 + Read LaTeX_header as header-includes. LaTeX-specific header commands
11400 can be defined in `#+LaTeX_header` lines. They are parsed as
11401 format-specific inlines to ensure that they will only show up in LaTeX
11403 + Set documentclass meta from LaTeX_class.
11404 + Set classoption meta from LaTeX_class_options.
11405 + Read HTML_head as header-includes. HTML-specific head content can be
11406 defined in `#+HTML_head` lines. They are parsed as format-specific
11407 inlines to ensure that they will only show up in HTML output.
11408 + Respect `author` export option. The `author` option controls whether
11409 the author should be included in the final markup. Setting
11410 `#+OPTIONS: author:nil` will drop the author from the final meta-data
11412 + Respect `email` export option. The `email` option controls whether the
11413 email meta-field should be included in the final markup. Setting
11414 `#+OPTIONS: email:nil` will drop the email field from the final
11416 + Respect `creator` export option. The `creator` option controls whether
11417 the creator meta-field should be included in the final markup. Setting
11418 `#+OPTIONS: creator:nil` will drop the creator field from the final
11419 meta-data output. Org-mode recognizes the special value `comment` for
11420 this field, causing the creator to be included in a comment. This is
11421 difficult to translate to Pandoc internals and is hence interpreted the
11422 same as other truish values (i.e. the meta field is kept if it's
11424 + Respect unnumbered header property (#3095). Sections the `unnumbered`
11425 property should, as the name implies, be excluded from the automatic
11426 numbering of section provided by some output formats. The Pandoc
11427 convention for this is to add an "unnumbered" class to the header. The
11428 reader treats properties as key-value pairs per default, so a special
11429 case is added to translate the above property to a class instead.
11430 + Allow figure with empty caption (Albert Krewinkel, #3161).
11431 A `#+CAPTION` attribute before an image is enough to turn an image into
11432 a figure. This wasn't the case because the `parseFromString` function,
11433 which processes the caption value, would fail on empty values. Adding
11434 a newline character to the caption value fixes this.
11438 + Use XML convenience functions (Jesse Rosenthal).
11439 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
11440 the code a lot cleaner than the original XML.Light functions, but they
11441 had been used inconsistently. This puts them in wherever applicable.
11442 + Handle anchor spans with content in headers. Previously, we would only
11443 be able to figure out internal links to a header in a docx if the
11444 anchor span was empty. We change that to read the inlines out of the
11445 first anchor span in a header.
11446 + Let headers use existing id. Previously we always generated an id for
11447 headers (since they wouldn't bring one from Docx). Now we let it use an
11448 existing one if possible. This should allow us to recurs through anchor
11450 + Use all anchor spans for header ids. Previously we only used the first
11451 anchor span to affect header ids. This allows us to use all the anchor
11452 spans in a header, whether they're nested or not (#3088).
11453 + Test for nested anchor spans in header. This ensures that anchor spans
11454 in header with content (or with other anchor spans inside) will resolve
11455 to links to a header id properly.
11457 * ODT reader (Hubert Plociniczak)
11459 + Include list's starting value. Previously the starting value of
11460 the lists' items has been hardcoded to 1. In reality ODT's list
11461 style definition can provide a new starting value in one of its
11463 + Infer caption from the text following the image.
11464 Frame can contain other frames with the text boxes.
11465 + Add `fig:` to title for Image with a caption (as expected
11466 by pandoc's writers).
11467 + Basic support for images in ODT documents.
11468 + Don't duplicate text for anchors (#3143). When creating an anchor
11469 element we were adding its representation as well as the original
11470 content, leading to text duplication.
11474 + Include an anchor element when a div or span has an id (#3102).
11475 Note that DocBook does not have a class attribute, but at least this
11476 provides an anchor for internal links.
11480 + Don't use * for unnumbered paragraph, subparagraph. The starred
11481 variants don't exist. This helps with part of #3058...it gets rid of
11482 the spurious `*`s. But we still have numbers on the 4th and 5th level
11484 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
11485 Otherwise they can cause unintended ligatures like `` ?` ``.
11486 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
11487 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
11488 This allows figure placement defaults to be changed by the user
11491 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
11492 TEI doesn't have `<book>` elements but only generic `<divN>` division
11493 elements. Checking the template for a trailing `</book>` is nonsensical.
11495 * MediaWiki writer: transform filename with underscores in images (#3052).
11496 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
11497 for internal links, but it also needs to happen for images.
11499 * ICML writer: replace partial function (!!) in table handling (#3175,
11502 * Man writer: allow section numbers that are not a single digit (#3089).
11504 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
11505 (#3068). In AsciiDoc, you must use a special form of emphasis
11506 (double `__`) for intraword emphasis. Pandoc was previously using
11507 this more than necessary.
11509 * EPUB writer: use stringify instead of plain writer for metadata
11510 (#3066). This means that underscores won't be used for emphasis,
11511 or CAPS for bold. The metadata fields will just have unadorned
11516 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
11517 with a `custom-style` key in the attributes will apply the corresponding
11518 key to the contained blocks or inlines.
11519 + Add ReaderT env to the docx writer (Jesse Rosenthal).
11520 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
11521 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
11522 on the command line. For finer-grained control, you can set
11523 the `dir` attribute in Div or Span elements.
11525 * Org writer (Albert Krewinkel):
11527 + Remove blank line after figure caption. Org-mode only treats an image
11528 as a figure if it is directly preceded by a caption.
11529 + Ensure blank line after figure. An Org-mode figure should be surrounded
11530 by blank lines. The figure would be recognized regardless, but images
11531 in the following line would unintentionally be treated as figures as
11533 + Ensure link targets are paths or URLs. Org-mode treats links as
11534 document internal searches unless the link target looks like a URL or
11535 file path, either relative or absolute. This change ensures that this
11536 is always the case.
11537 + Translate language identifiers. Pandoc and Org-mode use different
11538 programming language identifiers. An additional translation between
11539 those identifiers is added to avoid unexpected behavior. This fixes a
11540 problem where language specific source code would sometimes be output
11542 + Drop space before footnote markers (Albert Krewinkel, #3162).
11543 The writer no longer adds an extra space before footnote markers.
11547 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
11548 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
11550 + Check for the `raw_html` extension before emitting a raw HTML block.
11551 + Abstract out note/ref function (Jesse Rosenthal).
11552 + Add ReaderT monad for environment variables (Jesse Rosenthal).
11554 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
11555 subtitle, author, date (#3119). Note that, as a result of this change,
11556 authors may need to update CSS.
11558 * revealjs template: Added `notes-server` option
11559 (jgm/pandoc-templates#212, Yoan Blanc).
11563 + Restore whitespace between paragraphs. This was
11564 a regression in the last release (jgm/pandoc-templates#207).
11565 + Added `themeoptions` variable (Carsten Gips).
11566 + Added `beamerarticle` variable. This causes the `beamerarticle`
11567 package to be loaded in beamer, to produce an article from beamer
11568 slides. (Carsten Gips)
11569 + Added support for `fontfamilies` structured variable
11571 + Added hypersetup options (Jake Zimmerman).
11575 + Added dummy definition for `\institute`.
11576 This isn't a standard command, and we want to avoid a crash when
11577 `institute` is used with the default template.
11578 + Define default figure placement (Václav Haisman), since pandoc
11579 no longer includes `[htbp]` for figures. Users with custom templates
11580 will want to add this. See #3103.
11581 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
11584 * Moved template compiling/rendering code to a separate library.
11585 `doctemplates`. This allows the pandoc templating system to be
11586 used independently.
11588 * Text.Pandoc.Error: Fix out of index error in `handleError`
11589 (Matthew Pickering). The fix is to not try to show the exact line when
11590 it would cause an out-of-bounds error as a result of included files.
11592 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
11594 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
11595 addresses. Technically `**@user` is a valid email address, but if we
11596 allow things like this, we get bad results in markdown flavors
11597 that autolink raw email addresses (see #2940). So we exclude a few
11598 valid email addresses in order to avoid these more common bad cases.
11600 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
11601 emit the alt text, emphasized. This accords with what the ODT writer
11602 currently does. The user will still get a warning about a nonexistent
11605 * Fix example in API documentation (#3176, Thomas Weißschuh).
11607 * Tell where to get tarball in INSTALL (#3062).
11609 * Rename README to MANUAL.txt and add GitHub-friendly README.md
11610 (Albert Krewinkel, Kolen Cheung).
11612 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
11616 + Put note on structured vars in separate paragraph (#2148, Albert
11617 Krewinkel). Make it clearer that structured author variables require a
11619 + Note that `--katex` works best with `html5` (#3077).
11620 + Fix the LaTeX and EPUB links in manual (Morton Fox).
11621 + Document `biblio-title` variable.
11623 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
11625 * Update KaTeX to v0.6.0 (Kolen Cheung).
11627 * Allow latest dependencies.
11629 * Use texmath 0.8.6.6 (#3040).
11631 * Allow http-client 0.4.30, which is the version in stackage lts.
11632 Previously we required 0.5.
11633 Remove CPP conditionals for earlier versions.
11635 * Remove support for GHC < 7.8 (Jesse Rosenthal).
11637 + Remove Compat.Monoid.
11638 + Remove an inline monad compatibility macro.
11639 + Remove Text.Pandoc.Compat.Except.
11640 + Remove directory compat.
11641 + Change constraint on mtl.
11642 + Remove unnecessary CPP condition in UTF8.
11643 + Bump base lower bound to 4.7.
11644 + Remove 7.6 build from .travis.yaml.
11645 + Bump supported ghc version in CONTRIBUTING.md.
11646 + Add note about GHC version support to INSTALL.
11647 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
11648 + Remove TagSoup compat.
11649 + Add EOL note to time compat module. Because time 1.4 is a boot library
11650 for GHC 7.8, we will support the compatibility module as long as we
11651 support 7.8. But we should be clear about when we will no longer need
11653 + Remove blaze-html CPP conditional.
11654 + Remove unnecessary CPP in custom Prelude.
11656## pandoc 1.17.2 (2016-07-17)
11658 * Added Zim Wiki writer, template and tests. `zimwiki` is now
11659 a valid output format. (Alex Ivkin)
11661 * Changed email-obfuscation default to no obfuscation (#2988).
11662 + `writerEmailObfuscation` in `defaultWriterOptions` is now
11664 + the default for the command-line `--email-obfuscation` option is
11667 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
11671 + Support arbitrary raw inlines (Albert Krewinkel).
11672 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
11673 parlance) to be included as `@@format:raw foreign format text@@`.
11674 + Improve Div handling (Albert Krewinkel). Div blocks handling is
11675 changed to make the output look more like idiomatic org mode:
11676 - Div-wrapped content is output as-is if the div's attribute is the
11678 - Div containers with an id but neither classes nor key-value pairs
11679 are unwrapped and the id is added as an anchor.
11680 - Divs with classes associated with greater block elements are
11681 wrapped in a `#+BEGIN`...`#+END` block.
11682 - The old behavior for Divs with more complex attributes is kept.
11684 * HTML writer: Better support for raw LaTeX environments (#2758).
11685 Previously we just passed all raw TeX through when MathJax
11686 was used for HTML math. This passed through too much.
11687 With this patch, only raw LaTeX environments that MathJax
11688 can handle get passed through.
11689 This patch also causes raw LaTeX environments to be treated
11690 as math, when possible, with MathML and WebTeX output.
11692 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
11693 (#2993). Markdown line breaks involve a newline, and simple and pipe
11694 tables can't contain one.
11696 * Make --webtex work with the Markdown writer (#1177).
11697 This is a convenient option for people using
11698 websites whose Markdown flavors don't provide for math.
11702 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
11703 We treat display math like block quotes, and apply FirstParagraph style
11704 to paragraphs that follow them. These can be styled as the user
11705 wishes. (But, when the user is using indentation, this allows for
11706 paragraphs to continue after display math without indentation.)
11707 + Use actual creation time as doc prop (Jesse Rosenthal).
11708 Previously, we had used the user-supplied date, if available, for Word's
11709 document creation metadata. This could lead to weird results, as in
11710 cases where the user post-dates a document (so the modification might be
11711 prior to the creation). Here we use the actual computer time to set the
11716 + Don't URI-escape image source (#2825). Usually this is a local file,
11717 and replacing spaces with `%20` ruins things.
11718 + Allow 'standout' as a beamer frame option (#3007).
11719 `## Slide title {.standout}`.
11721 * RST reader: Fixed links with no explicit link text. The link
11722 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
11723 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
11724 Closes Debian #828167 -- reported by Christian Heller.
11728 + Fixed attributes (#2984). Attributes can't be followed by
11729 a space. So, `_(class)emph_` but `_(noclass) emph_`.
11730 + Fixed exponential parsing bug (#3020).
11731 + Fix overly aggressive interpretation as images (#2998).
11732 Spaces are not allowed in the image URL in textile.
11736 + Fix `\cite` so it is a NormalCitation not AuthorInText.
11737 + Strip off double quotes around image source if present (#2825).
11738 Avoids interpreting these as part of the literal filename.
11742 + Add semicolon to list of special chars (Albert Krewinkel)
11743 Semicolons are used as special characters in citations syntax. This
11744 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
11745 suffix]`. Previously, parsing would have failed unless there was a space
11746 or other special character as the last <prefix> character.
11747 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
11748 A specification for an official Org-mode citation syntax was drafted by
11749 Richard Lawrence and enhanced with the help of others on the orgmode
11750 mailing list. Basic support for this citation style is added to the
11752 + Support arbitrary raw inlines (Albert Krewinkel).
11753 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
11754 parlance) to be included as `@@format:raw foreign format text@@`.
11755 + Remove partial functions (Albert Krewinkel, #2991).
11756 Partial functions like `head` lead to avoidable errors and should be
11757 avoided. They are replaced with total functions.
11758 + Support figure labels (Albert Krewinkel, #2496, #2999).
11759 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
11760 respective image. This allows e.g. the LaTeX to add proper `\label`
11762 + Improve tag and properties type safety (Albert Krewinkel).
11763 Specific newtype definitions are used to replace stringly typing of tags
11764 and properties. Type safety is increased while readability is improved.
11765 + Parse as headlines, convert to blocks (Albert Krewinkel).
11766 Emacs org-mode is based on outline-mode, which treats documents as trees
11767 with headlines are nodes. The reader is refactored to parse into a
11768 similar tree structure. This simplifies transformations acting on
11769 document (sub-)trees.
11770 * Refactor comment tree handling (Albert Krewinkel).
11771 Comment trees were handled after parsing, as pattern matching on lists
11772 is easier than matching on sequences. The new method of reading
11773 documents as trees allows for more elegant subtree removal.
11774 * Support archived trees export options (Albert Krewinkel).
11775 Handling of archived trees can be modified using the `arch` option.
11776 Archived trees are either dropped, exported completely, or collapsed to
11777 include just the header when the `arch` option is nil, non-nil, or
11778 `headline`, respectively.
11779 * Put export setting parser into module (Albert Krewinkel).
11780 Export option parsing is distinct enough from general block parsing to
11781 justify putting it into a separate module.
11782 * Support headline levels export setting (Albert Krewinkel).
11783 The depths of headlines can be modified using the `H` option. Deeper
11784 headlines will be converted to lists.
11785 * Replace ugly code with view pattern (Albert Krewinkel).
11786 Some less-than-smart code required a pragma switching of overlapping
11787 pattern warnings in order to compile seamlessly. Using view patterns
11788 makes the code easier to read and also doesn't require overlapping
11789 pattern checks to be disabled.
11790 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
11791 Org rules for allowed characters before or after markup chars were not
11792 checked for verbatim text. This resultet in wrong parsing outcomes of
11793 if the verbatim text contained e.g. space enclosed markup characters as
11794 part of the text (`=is_substr = True=`). Forcing the parser to update
11795 the positions of allowed/forbidden markup border characters fixes this.
11797 * LaTeX template: fix for obscure hyperref/xelatex issue.
11798 Here's a minimal case:
11800 \documentclass[]{article}
11801 \usepackage{hyperref}
11806 Without this change, this fails on the second invocation of xelatex.
11807 This affects inputs this like `# %á` with pdf output via xelatex.
11809 * trypandoc: call results 'html' instead of 'result'.
11810 This is for better compatibility with babelmark2.
11812 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
11813 MultiMarkdown was only mentioned as a supported Markdown dialect but not
11814 as a possible input or output format. A brief mention is added
11815 everywhere the other supported markdown dialects are mentioned.
11817 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
11818 Raw HTML is kept when the output format is Emacs Org mode.
11820 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
11822 * Text.Pandoc.Shared:
11824 + Introduce blocksToInlines function (Jesse Rosenthal).
11825 This is a lossy function for converting `[Block] -> [Inline]`. Its main
11826 use, at the moment, is for docx comments, which can contain arbitrary
11827 blocks (except for footnotes), but which will be converted to spans.
11828 This is, at the moment, pretty useless for everything but the basic
11829 `Para` and `Plain` comments. It can be improved, but the docx reader
11830 should probably emit a warning if the comment contains more than this.
11831 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
11832 + Add further formats for `normalizeDate` (Jesse Rosenthal).
11833 We want to avoid illegal dates -- in particular years with greater than
11834 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
11835 `%Y%m`, and finally `%Y`.
11836 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
11837 We only allow years between 1601 and 9999, inclusive. The ISO 8601
11838 actually says that years are supposed to start with 1583, but MS Word
11839 only allows 1601-9999. This should stop corrupted word files if the date
11840 is out of that range, or is parsed incorrectly.
11841 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
11842 Previously we parsed a list of dates, took the first one, and then
11843 tested its year range. That meant that if the first one failed, we
11844 returned nothing, regardless of what the others did. Now we test for
11845 sanity before running `msum` over the list of Maybe values. Anything
11846 failing the test will be Nothing, so will not be a candidate.
11850 + Add simple comment functionality. (Jesse Rosenthal).
11851 This adds simple track-changes comment parsing to the docx reader. It is
11852 turned on with `--track-changes=all`. All comments are converted to
11853 inlines, which can list some information. In the future a warning will be
11854 added for comments with formatting that seems like it will be excessively
11855 denatured. Note that comments can extend across blocks. For that reason
11856 there are two spans: `comment-start` and `comment-end`. `comment-start`
11857 will contain the comment. `comment-end` will always be empty. The two
11858 will be associated by a numeric id.
11859 + Enable warnings in top-level reader (Jesse Rosenthal).
11860 Previously we had only allowed for warnings in the parser. Now we allow
11861 for them in the `Docx.hs` as well. The warnings are simply concatenated.
11862 + Add warning for advanced comment formatting. (Jesse Rosenthal).
11863 We can't guarantee we'll convert every comment correctly, though we'll
11864 do the best we can. This warns if the comment includes something other
11865 than Para or Plain.
11866 + Add tests for warnings. (Jesse Rosenthal).
11867 + Add tests for comments (Jesse Rosenthal).
11868 We test for comments, using all track-changes options. Note that we
11869 should only output comments if `--track-changes=all`. We also test for
11870 emitting warnings if there is complicated formatting.
11872 * README: update to include track-changes comments. (Jesse Rosenthal)
11874 * Improved Windows installer - don't ignore properties set on command-line.
11875 See #2708. Needs testing to see if this resolves the issue.
11878 * Process markdown extensions on command line in L->R order (#2995).
11879 Previously they were processed, very unintuitively, in R->L
11880 order, so that `markdown-tex_math_dollars+tex_math_dollars`
11881 had `tex_math_dollars` disabled.
11883 * Added `secnumdepth` variable to LaTeX template (#2920).
11885 * Include table of contents in README.html in Windows package.
11887 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
11888 In Writers.Shared, we strip leading and trailing spaces for display
11889 math. Since SoftBreak's are treated as spaces, we should strip those
11892 * beamer, latex templates: pass biblatexoptions directly in package load.
11893 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
11895 * CPP workaround for deprecation of `parseUrl` in http-client.
11897 * Removed some redundant class constraints.
11899 * make_oxs_package.sh - use OSX env variable.
11901 * Added `winpkg` target to Makefile. This downloads the windows package
11902 from appveyor and signs it using the key.
11904 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
11905 Raw TeX is kept verbatim when the output format is Emacs Org mode.
11907 * Support math with haddock-library >= 1.4.
11909 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
11910 wouldn't accept the package.
11912 * Update library dependency versions.
11914## pandoc 1.17.1 (2016-06-04)
11916 * New output format: `docbook5` (Ivo Clarysse).
11918 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
11923 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
11924 This allows header attributes to be added to org documents in the form
11925 of `:PROPERTIES:` drawers. All available attributes are stored as
11926 key/value pairs. This reflects the way the org reader handles
11927 `:PROPERTIES:` blocks.
11928 + Add drawer capability (Carlos Sosa). For the implementation of the
11929 Drawer element in the Org Writer, we make use of a generic Block
11930 container with attributes. The presence of a `drawer` class defines
11931 that the `Div` constructor is a drawer. The first class defines the
11932 drawer name to use. The key-value list in the attributes defines
11933 the keys to add inside the Drawer. Lastly, the list of Block elements
11934 contains miscellaneous blocks elements to add inside of the Drawer.
11935 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
11936 reserved for internal use by Org-mode and should not be used.
11937 The `CUSTOM_ID` property is to be used instead, it is converted to the
11938 `ID` property for certain export format.
11942 + Ignore `--incremental` unless output format is beamer (#2843).
11943 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
11944 Allow for optional argument in square brackets.
11945 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
11946 This allows one to access the hyphenation patterns in CTAN's
11948 + Add missing languages from hyph-utf8 (Andrew Dunning).
11949 + Improve use of `\strut` with `\minipage` inside tables
11950 (Jose Luis Duran). This improves spacing in multiline
11952 + Use `{}` around options containing special chars (#2892).
11953 + Avoid lazy `foldl`.
11954 + Don't escape underscore in labels (#2921). Previously they were
11956 + brazilian -> brazil for polyglossia (#2953).
11958 * HTML writer: Ensure mathjax link is added when math appears in footnote
11959 (#2881). Previously if a document only had math in a footnote, the
11960 MathJax link would not be added.
11962 * EPUB writer: set `navpage` variable on nav page.
11963 This allows templates to treat it differently.
11967 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
11968 + Properly handle `ulink`/`link` (Ivo Clarysse).
11972 + Unescape URIs in spine (#2924).
11973 + EPUB reader: normalise link id (Mauro Bieg).
11977 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
11978 `moveTo` and `moveFrom` are track-changes tags that are used when a
11979 block of text is moved in the document. We now recognize these tags and
11980 treat them the same as `insert` and `delete`, respectively. So,
11981 `--track-changes=accept` will show the moved version, while
11982 `--track-changes=reject` will show the original version.
11983 + Tests for track-changes moving (Jesse Rosenthal).
11985 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
11986 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
11987 would error out if zip-archive failed. We change the archive extraction
11988 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
11990 * Markdown, HTML readers: be more forgiving about unescaped `&` in
11991 HTML (#2410). We are now more forgiving about parsing invalid HTML with
11992 unescaped `&` as raw HTML. (Previously any unescaped `&`
11993 would cause pandoc not to recognize the string as raw HTML.)
11997 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
11998 + Added `-s` to markdown-reader-more test.
12000 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
12001 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
12003 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
12006 * RST reader: Support `:class:` option for code block in RST reader
12009 * Org reader (all Albert Krewinkel, except where noted otherwise):
12011 + Stop padding short table rows.
12012 Emacs Org-mode doesn't add any padding to table rows. The first
12013 row (header or first body row) is used to determine the column count,
12014 no other magic is performed.
12015 + Refactor rows-to-table conversion. This refactors
12016 the codes conversing a list table lines to an org table ADT.
12017 The old code was simplified and is now slightly less ugly.
12018 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
12019 This fixes Org mode parsing of some corner cases regarding empty cells
12020 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
12021 two empty cells, but would be parsed as a single cell containing a pipe
12022 character. Empty rows where parsed as alignment rows and dropped from
12024 + Fix spacing after LaTeX-style symbols.
12025 The org-reader was dropping space after unescaped LaTeX-style symbol
12026 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
12027 instead. This seems to be because the LaTeX-reader treats the
12028 command-terminating space as part of the command. Dropping the trailing
12029 space from the symbol-command fixes this issue.
12030 + Print empty table rows. Empty table rows should not
12031 be dropped from the output, so row-height is always set to be at least 1.
12032 + Move parser state into separate module.
12033 The org reader code has become large and confusing. Extracting smaller
12034 parts into submodules should help to clean things up.
12035 + Add support for sub/superscript export options.
12036 Org-mode allows to specify export settings via `#+OPTIONS` lines.
12037 Disabling simple sub- and superscripts is one of these export options,
12038 this options is now supported.
12039 + Support special strings export option Parsing of special strings
12040 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
12042 + Support emphasized text export option. Parsing of emphasized text can
12043 be toggled using the `*` option. This influences parsing of text marked
12044 as emphasized, strong, strikeout, and underline. Parsing of inline math,
12045 code, and verbatim text is not affected by this option.
12046 + Support smart quotes export option. Reading of smart quotes can be
12047 toggled using the `'` option.
12048 + Parse but ignore export options. All known export options are parsed
12050 + Refactor block attribute handling. A parser state attribute was used
12051 to keep track of block attributes defined in meta-lines. Global state
12052 is undesirable, so block attributes are no longer saved as part of the
12053 parser state. Old functions and the respective part of the parser state
12055 + Use custom `anyLine`. Additional state changes need to be made after
12056 a newline is parsed, otherwise markup may not be recognized correctly.
12057 This fixes a bug where markup after certain block-types would not be
12059 + Add support for `ATTR_HTML` attributes (#1906).
12060 Arbitrary key-value pairs can be added to some block types using a
12061 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
12062 when exporting to HTML, but since we cannot make this distinction here,
12063 the attributes are always added. The functionality is now supported
12065 + Add `:PROPERTIES:` drawer support (#1877).
12066 Headers can have optional `:PROPERTIES:` drawers associated with them.
12067 These drawers contain key/value pairs like the header's `id`. The
12068 reader adds all listed pairs to the header's attributes; `id` and
12069 `class` attributes are handled specially to match the way `Attr` are
12070 defined. This also changes behavior of how drawers of unknown type
12071 are handled. Instead of including all unknown drawers, those are not
12072 read/exported, thereby matching current Emacs behavior.
12073 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
12074 + Respect drawer export setting. The `d` export option can be used
12075 to control which drawers are exported and which are discarded.
12076 Basic support for this option is added here.
12077 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
12078 Also fix up tab handling for leading whitespace in code blocks.
12079 + Support new syntax for export blocks. Org-mode version 9
12080 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
12081 where `<FORMAT>` is the format of the block's content, the new
12082 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
12084 + Refactor `BEGIN...END` block parsing.
12085 + Fix handling of whitespace in blocks, allowing content to be indented
12086 less then the block header.
12087 + Support org-ref style citations. The *org-ref* package is an
12088 org-mode extension commonly used to manage citations in org
12089 documents. Basic support for the `cite:citeKey` and
12090 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
12091 + Split code into separate modules, making for cleaner code and
12094 * Added `docbook5` template.
12096 * `--mathjax` improvements:
12098 + Use new CommonHTML output for MathJax (updated default MathJax URL,
12100 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
12101 This is designed for cases where the input is always TeX and maximal
12102 conformity with TeX is desired. It seems to be smaller and load faster
12103 than what we used before. See #2858.
12104 + Load the full MathJax config to maximize loading speed (KolenCheung).
12106 * Bumped upper version bounds to allow use of latest packages
12107 and compilation with ghc 8.
12109 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
12110 #2310, #2310, #2824). This fixes behavior of roots, e.g.
12111 `\sqrt[3]{x}`, and issues with sub/superscript positioning
12112 and matrix column alignment in docx.
12116 + Clarified documentation of `implicit_header_references` (#2904).
12117 + Improved documentation of `--columns` option.
12119 * Added appveyor setup, with artefacts (Jan Schulz).
12121 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
12123 * LaTeX template: support for custom font families (vladipus).
12124 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
12125 can find some other usages. Example usage in YAML metadata:
12128 - name: \cyrillicfont
12129 font: Liberation Serif
12130 - name: \cyrillicfonttt
12131 options: Scale=MatchLowercase
12134 * Create unsigned msi as build artifact in appveyor build.
12136 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
12140## pandoc 1.17.0.3 (2016-03-24)
12142 * LaTeX writer: Fixed position of label in figures (#2813).
12143 Previously the label wasn't in the right place, and `\ref`
12144 wouldn't work properly.
12145 * Added .tei test files to pandoc.cabal so they'll be included
12146 in tarball (#2811).
12147 * Updated copyright dates.
12149## pandoc 1.17.0.2 (2016-03-23)
12151 * Fixed serious regression in `htmlInBalanced`, which caused
12152 newlines to be omitted in some raw HTML blocks in Markdown
12155## pandoc 1.17.0.1 (2016-03-21)
12157 * File scope is no longer used when there are no input files (i.e.,
12158 when input comes from stdin). Previously file scope was triggered
12159 when the `json` reader was specified and input came from `stdin`,
12160 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
12161 thanks to Fedor Sheremetyev for calling the bug to our attention.)
12162 * Improved documentation of templates (#2797).
12164## pandoc 1.17 (2016-03-20)
12166 * Added `--file-scope` option (Jesse Rosenthal).
12167 By default pandoc operates on multiple files by first concatenating
12168 them (around extra line breaks) and then processing the joined file. So
12169 it only parses a multi-file document at the document scope. This has the
12170 benefit that footnotes and links can be in different files, but for
12171 some purposes it is useful to parse the individual files first
12172 and then combine their outputs (e.g. when the files use footnotes
12173 or links with the same labels). The `--file-scope` option causes
12174 pandoc to parse the files first, and then combine the parsed output,
12175 instead of combining before parsing. `--file-scope` is selected
12176 automatically for binary input files (which cannot be concatenated)
12177 and for pandoc json.
12179 * Add TEI Writer (Chris Forster) and `tei` output format.
12181 * Added a general `ByteStringReader` with warnings, used by the docx
12182 reader (API change, Jesse Rosenthal).
12184 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
12186 * Changed type of `Shared.uniqueIdent` argument from
12187 `[String]` to `Set String`. This avoids performance problems in documents
12188 with many identically named headers (API change, #2671).
12190 * Removed `tex_math_single_backslash` from `markdown_github` options
12193 * Make language extensions as well as full language names
12194 trigger syntax highlighting. For example, `py` will now work as
12195 well as `python` (jgm/highlighting-kate#83).
12197 * Added `institute` variable to latex, beamer templates (Fraser
12198 Tweedale, Josef Svenningsson).
12200 * Docx reader (Jesse Rosenthal):
12202 + Handle alternate content. Some word functions (especially graphics)
12203 give various choices for content so there can be backwards compatibility.
12204 + Don't turn numbered headers into lists.
12205 + Docx Reader: Add state to the parser, for warnings
12206 + Update feature checklist in source code.
12207 + Get rid of `Modifiable` typeclass.
12208 + Add tests for adjacent hyperlinks.
12209 + Add a "Link" modifier to `Reducible`. We want to make sure that
12210 links have their spaces removed, and are appropriately smushed
12215 + Fixed behavior of base tag (#2777).
12216 If the base path does not end with slash, the last component
12217 will be replaced. E.g. base = `http://example.com/foo`
12218 combines with `bar.html` to give `http://example.com/bar.html`.
12219 If the href begins with a slash, the whole path of the base
12220 is replaced. E.g. base = `http://example.com/foo/` combines
12221 with `/bar.html` to give `http://example.com/bar.html`.
12222 + Rewrote `htmlInBalanced`. This version avoids an exponential
12223 performance problem with `<script>` tags, and it should be faster
12224 in general (#2730).
12225 + Properly handle an empty cell in a simple table (#2718).
12226 + Handle multiple `<meta>` tags with same name. Put them in a list
12227 in the metadata so they are all preserved, rather than (as before)
12228 throwing out all but one..
12232 + Improved pipe table parsing (#2765).
12233 + Allow `+` separators in pipe table cells. We already allowed
12234 them in the header, but not in the body rows, for some reason.
12235 This gives compatibility with org-mode tables.
12236 + Don't cross line boundary parsing pipe table row.
12237 Previously an Emph element could be parsed across the newline
12238 at the end of the pipe table row.
12239 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
12240 performance (#2730).
12241 + Fixed bug with smart quotes around tex math.
12245 + Handle interior `$` characters in math (#2743). For example,
12247 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
12248 This gives better results when people write e.g. `\TeX{}` in Markdown.
12249 + Properly handle LaTeX "math" environment as inline math (#2171).
12251 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
12254 * Org reader (Albert Krewinkel):
12256 + Prefix even empty figure names with "fig:" (#2643). The
12257 convention used by pandoc for figures is to mark them by prefixing
12258 the name with `fig:`. The org reader failed to do this if a figure
12260 + Refactor link-target processing (#2684).
12262 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
12263 Thanks to @c-foster.
12265 * HTML writer: Don't include alignment attribute for default table columns.
12266 Previously these were given "left" alignment. Better to leave off
12267 alignment attributes altogether (#2694).
12269 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
12270 better compatibility with other Markdown flavors (Henrik Tramberend).
12274 + Use image identifier to create a label and hypertarget for
12275 figures (Mauro Bieg).
12276 + Avoid double toprule in headerless table with caption (#2742).
12277 + Clean up options parser (Jesse Rosenthal).
12278 + Treat `memoir` template with `article` option as article, instead
12279 of treating all `memoir` templates as books.
12280 + Allow more flexible table alignment (Henrik Tramberend, #2665).
12281 New default is not to include `[c]` option (which is the default
12282 anyway if no positioning is specified). Now LaTeX emplates can
12283 control the overall table alignment in a document by setting the
12284 longtable length variables `LTleft` and `LTright`. For example,
12285 `\setlength\LTleft\parindent\setlength\LTright\fill`
12286 will create left-aligned tables that respect paragraph indentation.
12288 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
12290 * Org writer - pass through RawInline with format "org".
12292 * DokuWiki writer: use `$$` for display math.
12294 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
12296 * Make protocol-relative URIs work again (#2737).
12298 * make_osx_package.sh: Use env variable for developer id certs.
12300 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
12303 * Allow `zip-archive` 0.3.
12305 * Allow `aeson` 0.11.
12307## pandoc 1.16.0.2 (2016-01-12)
12309 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
12311 * Fixed regression in latex smart quote parsing (#2645).
12312 In cases where a match was not found for a quote, everything
12313 from the open quote to the end of the paragraph was being dropped.
12315## pandoc 1.16.0.1 (2016-01-10)
12317 * Fixed regression with `--latex-engine` (#2618). In 1.16
12318 `--latex-engine` raises an error if a full path is given.
12320 * Org reader: Fix function dropping subtrees tagged `:noexport`
12321 (Albert Krewinkel, #2628):
12323 * Markdown reader: renormalize table column widths if they exceed 100%
12326 * Textile reader: don't allow block HTML tags in inline contexts.
12327 The reader previously did allow this, following redcloth,
12328 which happily parses
12330 Html blocks can be <div>inlined</div> as well.
12334 <p>Html blocks can be <div>inlined</div> as well.</p>
12336 This is invalid HTML. The above sample now produces;
12338 <p>Html blocks can be</p>
12344 * Improved default template lookup for custom lua scripts (#2625).
12345 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
12346 pandoc would look for the template in
12347 `~/.pandoc/templates/default./path/to/lua/script.lua`.
12348 With this change it will look in the more reasonable
12349 `~/.pandoc/templates/default.script.lua`. This makes it possible to
12350 store default templates for custom writers.
12352 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
12355 * LaTeX writer: restore old treatment of Span (#2624). A Span is
12356 now rendered with surrounding `{}`, as it was before 1.16.
12358 * Entity handling fixes: improved handling of entities like
12359 `⟨` that require a trailing semicolon. Allow uppercase
12360 `x` in numerical hexadecimal character references, working
12361 around a tagsoup bug.
12363 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
12364 memory use on compile. With aeson 0.10 we were getting an out of
12365 memory error on a 2GB Ubuntu 64-bit VM.
12367 * Improved deb package creation script. Made `DPKGVER` work.
12368 Renamed `COMMIT` to `TREE`. You should now be able to do
12369 `TREE=1.16.0.1 DPKGVER=2 make deb`.
12372## pandoc 1.16 (2016-01-02)
12374 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
12376 + Added syntax for link and image attributes to pandoc's Markdown.
12377 + Updated readers and writers to use link and image attributes
12379 + Support image attributes in Docx, Textile, RST readers.
12381 * Renamed link attribute extensions. The old `link_attributes` is
12382 now `mmd_link_attributes`, and `link_attributes` now enables the
12383 new pandoc-style link and image attributes (API change).
12384 Note: this change could break some existing workflows.
12386 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
12387 Added threefold wrapping option.
12389 + Command line option: deprecated `--no-wrap`, added
12390 `--wrap=[auto|none|preserve]`
12391 + Added `WrapOption`, exported from `Text.Pandoc.Options`
12392 + Changed type of `writerWrapText` in `WriterOptions` from
12393 `Bool` to `WrapOption`.
12394 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
12395 + Supported `SoftBreak` in readers and writers.
12397 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
12398 change, Mauro Bieg).
12400 * Added `--dpi` command-line option (Mauro Bieg).
12402 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
12403 This change makes `--no-tex-ligatures` affect the LaTeX reader
12404 as well as the LaTeX and ConTeXt writers. If it is used,
12405 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
12406 literally, rather than parsing ligatures for quotation marks
12407 and dashes. And the LaTeX writer will print unicode quotation
12408 mark and dash characters literally, rather than converting
12409 them to the standard ASCII ligatures. Note that `--smart` has
12410 no effect on the LaTeX reader. `--smart` is still the default
12411 for all input formats when LaTeX or ConTeXt is the output format,
12412 *unless* `--no-tex-ligatures` is used.
12414 Some examples to illustrate the logic:
12417 % echo "'hi'" | pandoc -t latex
12419 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
12421 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
12423 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
12425 % echo "'hi'" | pandoc -f latex
12429 * Removed deprecated options `--offline` and `--html5`.
12431 * Fixed language code for Czech (`cs` not `cz`) (#2597).
12433 * Implemented `east_asian_line_breaks` extension (#2586).
12434 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
12435 to `Extension` (API change). This extension is like
12436 `ignore_line_breaks`, but smarter -- it only ignores line breaks
12437 between two East Asian wide characters. This makes it better suited
12438 for writing with a mix of East Asian and non-East Asian scripts.
12440 * Added support for PDF creation via `wkhtmltopdf`.
12441 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
12442 if you have math.) Margins can be set using the variables
12443 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
12444 Other styling can be done through CSS.
12446 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
12447 We were capturing final colons as in `[@foo: bar]`; the citation id
12448 was being parsed as `@foo:`.
12452 + Fixed image syntax for local files (#2589).
12453 + Changed type of `writeICML` (Mauro Bieg).
12454 API change: It is now `WriterOptions -> Pandoc -> IO String`.
12455 Also handle new image attributes.
12456 + Intersperse line breaks instead of appending them to
12457 every `ParagraphStyleRange` (Mauro Bieg, #2501).
12458 + Add `Cite` style to citations (Mauro Bieg).
12459 + Added figure handling (#2590, Mauro Bieg).
12460 + Better handling of math. Instead of just printing the raw tex,
12461 we now try to fake it with unicode characters.
12463 * HTML writer: Include `example` class for example lists (#2524).
12465 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
12467 + Support for percentage widths/heights
12468 + Use `Attr` instead of title to get dimensions from ODT walker
12469 to `writeOpenDocument`.
12473 + Support anchors in spans and divs with id elements
12474 (jgm/pandoc-citeproc#143).
12475 + Fixed code blocks (#1861).
12477 * Haddock writer: omit formatting inside links, which isn't supported
12478 by Haddock (#2515).
12480 * MediaWiki writer: Fixed spacing issues in table cells.
12482 + Start cell on new line unless it's a single Para or Plain
12484 + For single Para or Plain, insert a space after the `|` to
12485 avoid problems when the text begins with a character like
12488 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
12492 + Add support for GAP highlighting using listings (Raniere Silva).
12493 + Consider `header-includes` content as well as templates
12494 when determining whether to use csquotes (Andreas Lööw).
12495 + Create defaults for geometry using `margin-left` etc.
12496 If `geometry` has no value, but `margin-left`, `margin-right`,
12497 `margin-top`, and/or `-margin-bottom` are given, a default value
12498 for `geometry` is created from these. Note that these variables
12499 already affect PDF production via HTML5 with `wkhtmltopdf`.
12501 * ConTeXt writer: set default layout based on `margin-left`, etc.
12502 This sets up `\setuplayout` based on the variables `margin-left`,
12503 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
12506 * Docx writer: better handling of PDF images. Previously we tried
12507 to get the image size from the image even if an explicit size was
12508 specified. Since we still can't get image size for PDFs, this made
12509 it impossible to use PDF images in docx. Now we don't try to get
12510 the image size when a size is already explicitly specified.
12512 * Markdown writer: use raw HTML for link/image attributes when
12513 the `link_attributes` extension is unset and `raw_html` is set (#2554).
12515 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
12519 + Improved smart quote parsing (#2555). This fixes redering of
12521 + Use curly quotes for unmatched ` (#2555).
12522 + Allow blank space between braced arguments of commands (#2592).
12526 + Improved pipe table relative widths. Previously pipe table
12527 columns got relative widths (based on the header underscore lines)
12528 when the source of one of the rows was greater in width than the
12529 column width. This gave bad results in some cases where much of
12530 the width of the row was due to nonprinting material (e.g. link
12531 URLs). Now pandoc only looks at printable width (the width of a
12532 plain string version of the source), which should give better results.
12533 Thanks to John Muccigrosso for bringing up the issue.
12534 + Fixed parsing bug with macros. Previously macro definitions in
12535 indented code blocks were being parsed as macro definitions, not code.
12537 * Textile reader: skip over attribute in image source (#2515).
12538 We don't have a place yet for styles or sizes on images, but
12539 we can skip the attributes rather than incorrectly taking them
12540 to be part of the filename.
12542 * Docx reader: Handle dummy list items (Jesse Rosenthal).
12543 These come up when people create a list item and then delete the
12544 bullet. It doesn't refer to any real list item, and we used to ignore
12547 * CommonMark reader/writer rewritten to use latest `cmark`.
12549 * Fixed Emoji character definitions (#2523). There were many bugs in the
12552 * `Text.Pandoc.CSS`:
12554 + Added `pickStylesToKVs` function to extract multiple properties at
12555 once (API change, Mauro Bieg).
12556 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
12558 * `trypandoc`: sort drop-down lists.
12562 + Made `\euro` conditional on presence of character.
12563 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
12564 + Moved `header-includes` before setting of title (Thomas Hodgson),
12565 to match the LaTeX template (jgm/pandoc-templates#168).
12566 + Added `section-titles` variable (defaults to true)
12567 to enable/suppress section title pages in beamer
12568 slide shows (Thomas Hodgson).
12569 + Moved beamer themes after fonts, so that themes can
12570 change fonts. (Previously the fonts set were being
12571 clobbered by lmodern.sty.) (Thomas Hodgson).
12573 * Beamer/LaTeX template changes (Thomas Hodgson):
12574 + Added `thanks` variable
12575 + Use `parskip.sty` when `indent` isn't set (fall back to using
12576 `setlength` as before if `parskip.sty` isn't available).
12577 + Use `biblio-style` with biblatex.
12578 + Added `biblatexoptions` variable.
12580 * LaTeX template changes:
12582 + Added `paper` after `$papersize$` variable in latex template.
12583 Thus you can say `papersize: a4` and the latex will contain
12584 `a4paper`. This change may break some existing workflows; if
12585 you currently specify `a4paper`, you'll get `a4paperpaper` which
12586 is meaningless. However, the change seems worth it, as it will
12587 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
12588 and html->pdf via wkhtmltopdf.
12589 + Only pass options to color package if `colorlinks` is set
12591 + Make definition of `\euro` conditional in xelatex/lualatex,
12592 as it is already for pdflatex (Andrew Dunning).
12593 + Removed setting of `subject` in PDF metadata.
12594 This used to be set to the subtitle, but really the subtitle
12595 need not give the subject. Also, `subtitle` can contain formatting,
12596 so we'd need, at least, a plain text version for this.
12597 + Moved `header-includes` before setting of `\title`, `\author`,
12598 etc. This allows these macros to be redefined.
12599 + Use `\subtitle` command for `subtitle`, instead of tacking it
12600 on to the title as before. We give a no-op fallback definition if it
12601 is not defined. This change should produce much better results
12602 in classes that support `\subtitle`. With the default article
12603 class, which does not define `\subtitle`, subtitles will no
12604 longer be printed unless the user defines `\subtitle` and
12605 redefines `\maketitle`.
12606 + Moved redefinitions of `\paragraph` and `\subparagraph` to
12607 before header-includes.
12609 * Context template:
12611 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
12612 needed for things to work on ConTeXt stable from TeXLive 2015.
12613 + Revert use of `\setuphead` in title block (Andrew Dunning,
12616 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
12618 * Fixed man template so disabling hyphenation actually works.
12619 The command needs to come after .TH.
12621 * Added 'navigation' variable to beamer template (#2543).
12622 Valid values are `empty` (the default), `horizontal`, `vertical`,
12623 and `frame`. Note that this changes the default behavior from
12624 `horizontal` to `empty`. Closes #2543.
12626 * Added `toc` to HTML slide format templates (Andrew Dunning),
12627 so that `--toc` creates a contents slide.
12629 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
12631 * Allow pipe tables with no body rows (#2556).
12632 Previously this raised a runtime error.
12634 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
12635 as URL. The Haskell URI parsing routines will accept "C:" as a
12636 scheme, so we rule that out manually. This helps with
12637 `--self-contained` and absolute Windows paths.
12639 * Define a `meta-json` variable for all writers (#2019). This contains
12640 a JSON version of all the metadata, in the format selected for the
12641 writer. So, for example, to get just the YAML metadata, you can run
12642 pandoc with the following custom template: `$meta-json$`. The intent
12643 is to make it easier for static site generators and other tools to get
12646 * Document limitations of --self-contained (#2553).
12648 * Improved Citations section of README (#2551). Added information
12649 about `link-citations` and a link to the pandoc-citeproc man page.
12651 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
12654 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
12656 * Improved implicit pandoc-citeproc inclusion.
12657 The filter pandoc-citeproc is automatically used when
12658 `--bibliography` is specified on the command line, unless
12659 `--natbib` or `--biblatex` is used. However, previously this
12660 only worked if `--bibliography` was spelled out in full, and not
12661 if `--biblio` was used.
12663 * reveal.js: Interpret pauses correctly for all headers (#2530).
12664 Previously, when using headers below the slide level, pauses are left
12665 uninterpreted into pauses. In my opinion, unexpected behavior but
12666 intentional looking at the code.
12668 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
12670 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
12673 * ImageSize: Added functions for converting between image dimensions
12676 * Use lts-3.18 in stack.yaml. This avoids Windows build
12677 issues with the HTTP library.
12679 * Bump version bounds for dependencies.
12681## pandoc 1.15.2.1 (2015-11-16)
12683 * Added two missing test files, and `stack.yaml`, to
12684 `extra-source-files` so they're included in the source tarball.
12686 * reveal.js template: Fixed parallaxBackground options.
12687 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
12688 need integer values, not strings. (Vaughn Iverson)
12690## pandoc 1.15.2 (2015-11-15)
12692 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
12693 ConTeXt rather than LaTeX (#2463).
12695 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
12697 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
12698 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
12701 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
12702 parsing (#2469). Tightened up the inline HTML parser so it disallows
12705 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
12709 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
12710 Paragraphs can be followed by lists, even if there is no blank line
12711 between the two blocks. However, this should only be true if the
12712 paragraph is not within a list, were the preceding block should be
12713 parsed as a plain instead of paragraph (to allow for compact lists).
12714 Thanks to @rgaiacs for bringing this up.
12715 + Allow toggling header args (Albert Krewinkel, #2269).
12716 Org-mode allows to skip the argument of a code block header argument if
12717 it's toggling a value. Argument-less headers are now recognized,
12718 avoiding weird parsing errors.
12719 + Fix markup parsing in headers (Albert Krewinkel, #2504).
12720 Markup as the very first item in a header wasn't recognized. This was
12721 caused by an incorrect parser state: positions at which inline markup
12722 can start need to be marked explicitly by changing the parser state.
12723 This wasn't done for headers. The proper function to update the state
12724 is now called at the beginning of the header parser, fixing this issue.
12725 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
12726 Smart quotes, ellipses, and dashes should behave like normal quotes,
12727 single dashes, and dots with respect to text markup parsing.
12728 + Require whitespace around definition list markers (#2518).
12729 This rule was not checked before, resulting in bugs with footnotes
12730 and some link types.
12734 + Pipe tables with long lines now get relative cell widths (#2471).
12735 If a pipe table contains a line longer than the column width (as set by
12736 `--columns` or 80 by default), relative widths are computed based on the
12737 widths of the separator lines relative to the column width. This should
12738 solve persistent problems with long pipe tables in LaTeX/PDF output, and
12739 give more flexibility for determining relative column widths in other
12740 formats, too. For narrower pipe tables, column widths of 0 are used,
12741 telling pandoc not to specify widths explicitly in output formats that
12743 + Improved parser for `mmd_title_block`. We now allow blank metadata
12744 fields. These were explicitly disallowed before.
12745 + Citation keys can now contain `://`, so URLs and DOIs can be used
12746 as citation keys (jgm/pandoc-citeproc#166).
12748 * Beamer template: fix incompatibility of section slides with natbib.
12749 Natbib (and presumably biblatex) bibliography commands create
12750 their own section. Since these are in frame environments,
12751 we have an incompatibility with the `\AtBeginSection` macro
12752 which creates a special frame when a new section occurs.
12753 (We can't have a frame inside another frame.) This change disables
12754 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
12755 bringing the problem to my attention. This supersedes #145. See
12758 * Textile reader: don't do smart punctuation unless explicitly asked
12759 (#2480). Note that although smart punctuation is part of the textile
12760 spec, it's not always wanted when converting from textile
12761 to, say, Markdown. So it seems better to make this an option.
12763 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
12764 The `comment` environment is handled in a similar way to the
12765 `verbatim` environment, except that its content is discarded.
12767 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
12768 Jesse Rosenthal). This fixes a problem with links in notes.
12770 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
12771 (mb21). For LaTeX, also collect `lang` and `dir` attributes on spans and
12772 divs to set the `lang`, `otherlangs` and `dir` variables if they aren’t set
12777 + Use proper command for `\textarabic` (mb21).
12778 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
12779 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
12780 to link to Div or Span elements. We now don't bother defining `\label`
12781 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
12782 + Avoid footnotes in list of figures (#1506).
12783 + Properly handle footnotes in captions (#1506).
12784 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
12785 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
12786 `toccolor` is set (#2508).
12788 * Textile writer: support start number in ordered lists (#2465).
12790 * OpenDocument writer: Allow customization of opendocument
12791 automatic styles. Automatic styles can now be inserted in the
12792 template, which now provides the enclosing `<office:automatic-styles>`
12795 * Docx writer: insert space between footnote reference and note (#2527).
12796 This matches Word's default behavior.
12798 * EPUB writer: don't download linked media when `data-external` attribute
12799 set (#2473). By default pandoc downloads all linked media and includes it
12800 in the EPUB container. This can be disabled by setting `data-external` on
12801 the tags linking to media that should not be downloaded. Example:
12803 <audio controls="1">
12804 <source src="http://www.sixbarsjail.it/tmp/bach_toccata.mp3"
12805 type="audio/mpeg"></source>
12808 * HTML writer: use width on whole table if col widths sum to < 100%.
12809 Otherwise some browsers display the table with the columns
12810 separated far apart.
12812 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
12813 `abstract` (Andrew Dunning).
12815 * HTML-based templates (Andrew Dunning):
12817 + Use en dash instead of hyphen between title prefix and title.
12818 + Add `keywords` to metadata.
12819 + Add `lang`, `dir`, `quotes` where missing.
12820 + Always make author and date display conditional.
12821 + Updated dzslides template from source.
12823 * Man template: make "generated by" comment conditional.
12825 * LaTeX, Beamer templates:
12827 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
12828 filled by commands that make babel understand the polyglossia-style
12829 language directives (mb21, #137).
12830 + Improved formatting of conditionals; `$for$` is always provided to allow
12831 multiple options (Andrew Dunning, #141).
12832 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
12833 to improve support for LuaTeX (Andrew Dunning, #135).
12834 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
12835 - use same options for all LaTeX engines;
12836 - add `subtitle` and `keywords` to PDF metadata;
12837 - do not override `hyperref` link coloring without user input, effectively making
12838 the `hidelinks` option the default (removed as a separate variable);
12839 - link colors can be enabled (using a slightly darker version of the old
12840 defaults) using a new `colorlinks` variable, automatically used by
12841 the LaTeX writer when custom colors are specified;
12842 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
12843 `colorlinks`, and is only applied if `colorlinks` is disabled.
12845 * ConTeXt template (Andrew Dunning):
12847 + New variables for controlling styles: `linkstyle`, `linkcolor`,
12848 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
12849 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
12850 `monofont`, `mathfont`, `fontsize`.
12851 + Default template no longer supports MkII.
12852 + Improve writing of title block (suppressing numbering of first page).
12853 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
12854 + Support `subtitle`, `abstract`.
12855 + Support list of figures (`lof`), list of tables (`lot`).
12856 + Disable link styling by default.
12857 + Define styles for all section types.
12858 + Enable microtype.
12859 + Improved formatting of conditionals.
12861 * Beamer template: added code to prevent slide breaks inside paragraphs
12862 (#2422, thanks to Nick Bart). This will matter, in practice, only when
12863 `allowframebreaks` is used. It is especially helpful for bibliography
12866 * OpenDocument template: Add `<office:automatic-styles>` tag around
12867 automatic styles. The writer now longer provides this (see #2520).
12869 * Restored Text.Pandoc.Compat.Monoid.
12871 * Do not export (<>) from custom Prelude. The Prelude now matches
12872 base 4.8 Prelude's API.
12874 * Don't use custom prelude with ghc 7.10. Use the custom prelude
12875 only for earlier versions. This change makes `stack ghci` and
12876 `cabal repl` work (#2503), at least with ghc 7.10.
12878 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
12879 This prevents problems building haddocks with "C" locale.
12881 * Change default for old-locale flag to False.
12883 * Use stack in deb, osx, and Windows package generators.
12885 * Added Vagrantfile for building deb in vm.
12886 This should help in automating binary package creation. 'make package'
12887 will make the package. 'make package COMMIT=blah' will make the package
12892 + Consistent capitalization for pandoc and Markdown.
12893 + Fixed `auto_identifiers` examples (Benoit Schweblin).
12894 + Improved documentation of template variables (Andrew Dunning).
12896## pandoc 1.15.1 (2015-10-15)
12898 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
12899 and reexported from `Text.Pandoc` (Alex Vong). This allows
12900 writers to access it. (Alex Vong) (API change)
12902 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
12903 `subscripts` (#2401).
12905 * Added `odt` as input format (MarLinn). Added new module
12906 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
12907 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
12908 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
12909 Partly implemented features: Citations, Tables.
12913 + Add basic tests for each header style (Ophir Lifshitz).
12914 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
12915 + Skip spaces in headers (Ophir Lifshitz).
12916 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
12917 `# Header {id="myid" class="foo bar"}`
12918 is now equivalent to `# Header {#myid .foo .bar}`.
12919 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
12920 (Kristof Bastiaensen)
12921 + Pipe tables: allow indented columns. Previously the left-hand column
12922 could not start with 4 or more spaces indent. This was inconvenient
12923 for right-aligned left columns. Note that the first (header column)
12924 must still have 3 or fewer spaces indentation, or the table will be
12925 treated as an indented code block.
12926 + Fix regression: allow HTML comments containing `--`.
12927 Technically this isn't allowed in an HTML comment, but
12928 we've always allowed it, and so do most other implementations.
12929 It is handy if e.g. you want to put command line arguments
12934 + Don't eat excess whitespace after macros with only optional
12936 + Support longtable (#2411).
12937 + Implement `\Cite` (#2335).
12938 + Support abstract environment. The abstract populates an
12939 `abstract` metadata field.
12940 + Properly handle booktabs lines. Lines aren't part of the
12941 pandoc table model, so we just ignore them (#2307).
12945 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
12946 + Updated for new automatic header attributes.
12947 + Add auto identifiers if not present on headers. This makes
12948 TOC linking work properly.
12949 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
12950 + Test `<ol>` type, class, and inline list-style(-type) CSS
12952 + Better handling of "section" elements (#2438). Previously
12953 `<section>` tags were just parsed as raw HTML blocks. With
12954 this change, section elements are parsed as Div elements with
12955 the class "section".
12957 * MediaWiki reader: handle unquoted table attributes (#2355).
12961 + Added proper support for DocBook `xref` elements (Frerich Raabe).
12962 Added `dbContent` field to reader state, so we can lookup
12964 + Handle `informalexample` (#2319).
12968 + Create special punctuation test (Ophir Lifshitz).
12969 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
12970 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
12971 in `headers.docx` with pandoc's current `styles.xml`, which
12972 contains styles for Heading 1 through 6. Added Heading 4
12973 through 7 to the test document. Note that Heading 7 is not
12974 parsed as a Heading because there is no Heading 7 style.
12976 * RST reader: better handling of indirect roles.
12977 Previously the parser failed on this kind of case
12979 .. role:: indirect(code)
12981 .. role:: py(indirect)
12986 Now it correctly recognizes `:py:` as a code role.
12990 + Add auto identifiers if not present on headers
12991 (#2354, Juliusz Gonera).
12992 + Allow verse blocks to contain empty lines (#2402,
12995 * EPUB reader: stop mangling external URLs (#2284).
12999 + Don't insert `\ ` when complex expression in matched pairs.
13000 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
13001 + Ensure that `\ ` is inserted when needed before Cite and Span
13002 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
13003 + Normalize headers only in "standalone" mode (#2394).
13005 * Haddock writer: escape `*` and `^` (G. Bataille).
13009 + In TOC, add links to headers (#829).
13010 + Use unicode super/subscripts for digits in plain output
13011 (when the `superscripts` and `subscripts` extensions are
13016 + Moved invalid character stripping to `formattedString`.
13017 This avoids an inefficient generic traversal (#2356).
13018 + Use user data directory for `reference.docx` archive.
13019 This allows the test suite to work without installing pandoc first.
13020 It also brings the docx writer in line with the odt writer.
13021 + Tests: docx writer tests now use `../data` for data directory.
13022 This allows tests to be run without installing first.
13023 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
13027 + Fixed detection of 'chapters' from template.
13028 If a documentclass isn't specified in metadata, but the
13029 template has a hardwired bookish documentclass, act as if
13030 `--chapters` was used. This was the default in earlier
13031 versions, but it has been broken for a little while.
13032 + Correctly recognize book documentclass in metadata (#2395).
13033 + Set language-related variables automatically, depending
13034 on the value of the `lang` field, which is now always
13035 assumed to be in BCP47 format (mb21, #1614, #2437).
13036 + Add `\protect` to `\hyperdef` in inline context. This way we
13037 don't get an error when this is used as a moveable argument (#2136).
13038 + Support all frame attributes in Beamer.
13039 + Percent-encode more special characters in URLs (#1640, #2377).
13040 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
13044 + Update KaTeX JS and CSS versions (Emily Eisenberg).
13045 + For dzslides, add `role="note"` for speaker notes (#1693).
13046 + Percent-encode more special characters in URLs (#1640, #2377).
13047 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
13048 + Render Div with class `section` as `<section>` in HTML5.
13052 + In TOC, replace literal `<br/>` with space (#2105).
13053 + With `--webtex`, include image file rather than `data:` URI (#2363).
13055 * Native writer: format Div properly, with blocks separated.
13057 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
13062 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
13063 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
13067 + Beamer: Add `innertheme`, `outertheme` variables
13068 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
13069 Integrate recent font and language updates from LaTeX template;
13070 allow use of `mainfont` variable for changing the slide text
13071 in XeTeX and LuaTeX (Andrew Dunning, #131).
13072 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
13073 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
13074 (Andrew Dunning, #122). Support handling of bidirectional
13075 text (mb21, #120). Improve reliability of superscripts/subscripts
13076 under XeTeX and prevent letters and numbers from appearing on a
13077 different baseline by removing use of the `realscripts` package
13078 (via `xltxtra`). To restore use of OpenType characters for these
13079 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
13080 `header-includes` (Andrew Dunning, #130). Remove redundant
13081 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
13082 `indent`, `subparagraph` variables (Andrew Dunning).
13083 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
13084 #113). Prevent package clash with `tufte-latex` and other classes that
13085 include `hyperref` or `color` (Xavier Olive, #115).
13086 + ConTeXt: Support handling of bidirectional text (mb21, #120).
13087 + LaTeX and ConTeXt: Use more specific language variables.
13088 Instead of directly using `lang`, we now use `babel-lang` and
13089 `polyglossia-lang` and `context-lang`. These variables are set by
13090 the writers to the necessary values, based on the `lang` variable
13091 (which now always takes a value in BCP47 format). (mb21, #114, #129).
13092 + HTML: Support handling of bidirectional text (mb21, #120).
13093 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
13094 Add dir attribute in html5 (Andrew Dunning).
13095 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
13096 Add `width`, `height` variables (Anrew Dunning). Update template
13097 from 3.1 source (Andrew Dunning). All configuration options are now
13098 available as variables, but are only be included if set (reveal.js
13099 uses defaults otherwise).
13100 + man: Added comment stating that the page is autogenerated by pandoc,
13101 giving version. Added `adjusting` and `hyphenate` variables
13104 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
13106 * MediaBag: ensure that `/` is always used as path separator.
13108 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
13110 * Added `--bash-completion` option. This generates a bash completion
13111 script. To use: `eval "$(pandoc --bash-completion)"`.
13113 * Text.Pandoc.Error: Define Typeable and Exception instances
13114 for PandocError (#2386).
13116 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
13117 This makes keys with extra space at the beginning and end
13124 will now be a link to bar (it wasn't before).
13126 * Text.Pandoc: disable `auto_identifiers` for epub.
13127 The epub writer inserts its own auto identifiers;
13128 this is more complex due to splitting into "chapter" files.
13130 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
13131 It now reexports Data.Time.
13133 * Use custom Prelude to avoid compiler warnings.
13135 + The (non-exported) prelude is in prelude/Prelude.hs.
13136 + It exports Monoid and Applicative, like base 4.8 prelude,
13137 but works with older base versions.
13138 + It exports (<>) for mappend.
13139 + It hides 'catch' on older base versions.
13141 * Added a `stack.ymal` and stack install instructions to INSTALL.
13143 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
13145 * Added note to CONTRIBUTING.md about ghc versions and travis.
13147 * Clarify docs on block quotes. The space after `>` is optional (#2346).
13149 * Removed obsolete reference to default.csl (#2372).
13151 * List all styles in manual for `--reference-docx` (Chris Black)
13153 * Don't capitalize header links in man page.
13155 * Added section on repl to CONTRIBUTING.md.
13157 * README: Added space after backslash in image example (#2329).
13159 * Document details of citation locator terms (Nick Bart).
13161 * Fixed some internal links in README (#2309).
13163 * Improve CSL documentation, variables documentations,
13164 links, and cross-references in README. (Andrew Dunning)
13166 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
13168 * Use `newManager` instead of `withManager` in recent `http-client`.
13169 This avoids a deprecation warning.
13171 * Allow building with latest versions of http-types,
13172 HUnit, criterion, syb, aeson.
13174 * Updated benchmark program for new criterion API.
13176 * Setup.hs: rewrite so as not to use process, directory, filepath.
13177 Using anything outside base is dangerous, since older
13178 versions of ghc may link against two different versions.
13180 * Added appveyor (Windows continuous integration) builds.
13182 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
13183 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
13184 `make .travis.yml` regenerates it based on the tested-with
13185 field of the cabal file.
13187## pandoc 1.15.0.6 (2015-07-15)
13189 * `--self-contained`: Fixed overaggressive CSS minimization
13190 (#2301, 2286). Previously `--self-contained` wiped out all
13191 spaces in CSS, including semantically significant spaces.
13192 This was a regression from 1.14.x.
13194 * Markdown reader: don't allow bare URI links or autolinks in link
13195 label (#2300). Added test cases.
13197 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
13198 Previously we disallowed `-` at the end of an autolink,
13199 and disallowed the combination `=-`. This commit liberalizes the
13200 rules for allowing punctuation in a bare URI, and adds test cases.
13201 One potential drawback is that you can no longer put a bare
13202 URI in em dashes like this:
13203 `this uri---http://example.com---is an example.`
13204 But in this respect we now match github's treatment of bare URIs.
13206 * HTML writer: support speaker notes in dzslides.
13207 With this change `<div class="notes">` and also `<div class="notes"
13208 role="note">` will be output if `-t dzslides` is used. So we can
13209 have speaker notes in dzslides too. Thanks to maybegeek.
13211 * Updated dzslides template.
13213 * Improved documentation of options to print system default files (#2298).
13214 `--print-default-data-file` and `--print-default-template`.
13216 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
13217 (Tiziano Müller). MathJax seems currently to be the only maintained
13218 math rendering extension for DokuWiki.
13220 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
13221 div as top-level header (#2294). This fixes a bug with `--section-divs`,
13222 where the final references section added by pandoc-citeproc, enclosed in
13223 its own div, got nested in the div for the section previous to it.
13225 * Allow vector 0.11.
13227 * Require cmark > 0.4.
13229## pandoc 1.15.0.5 (2015-07-10)
13231 * HTML writer: Fixed email javascript obfuscation with `mailto:`
13232 URLs (#2280). This fixes a potential security issue. Because
13233 single quotes weren't being escaped in the link portion, a
13234 specially crafted email address could allow javascript code injection.
13236 * RST reader: allow inline formatting in definition list field
13237 names (Lars-Dominik Braun).
13239 * PDF: Make sure `--latex-engine-opt` goes before the filename
13240 on the command line. LaTeX needs the argument to come after
13241 the options (#1779).
13243 * CommonMark writer: fixed tags used for super/subscript.
13245 * ConTeXt template: activate hanging indent for definition lists
13248 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
13249 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
13250 to include `hsb2hs` in Build-Tools in cabal.
13252 * Improved Windows installer (thanks to nkalvi).
13254 + When per-machine installation is chosen, the system path
13255 is updated instead of the user's.
13256 + An appropriate default is used for per-machine installation
13258 + Admin privileges are no longer required for a per-user install
13260 * Travis: unpack sdist for build to catch packaging bugs.
13262 * Improved documentation on where user templates go (#2272).
13264## pandoc 1.15.0.4 (2015-07-03)
13266 * Added pandoc.1 man page to the repository. It is no longer
13267 built as part of the cabal build process. (This proved too
13268 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
13269 when `README` is changed.
13271 * Copying of the man page now respects `--destdir` (#2262).
13273 * Improved error messages for filters. User is now informed if
13274 the filter requires an interpreter that isn't found in the path,
13275 or if the filter returns an error status.
13277## pandoc 1.15.0.3 (2015-07-02)
13279 * Ensure target directory is created when installing man page.
13281## pandoc 1.15.0.2 (2015-07-02)
13283 * Added files needed for building man page to Extra-Source-Files.
13285## pandoc 1.15.0.1 (2015-07-01)
13287 * Man page is now built and installed as part of the cabal build
13288 process. Removed Makefile target for man page.
13290## pandoc 1.15 (2015-07-01)
13292 * Man page changes:
13294 + Removed `--man1`, `--man5` options (breaking change).
13295 + Removed `Text.Pandoc.ManPages` module (breaking API change).
13296 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
13297 create the man page from README using a custom template and filters.
13298 + Added `man/` directory with template and filters needed to build
13300 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
13301 Now there is just pandoc.1, which has all the content from README.
13302 This change was needed because of the extensive cross-references
13303 between parts of the README.
13304 + Removed old `data/pandoc.1.template` and
13305 `data/pandoc_markdown.5.template`.
13307 * OpenDocument writer: Do not add a carriage return after a hard
13308 line break (Michael Chladek).
13312 + use `\goto` for internal links.
13313 + Added a `%` at end for `\reference` to avoid spurious space.
13315 * Ignore sandbox on 'make quick'
13317## pandoc 1.14.1 (2015-06-30)
13319 * Added `--man1` and `--man5` options to pandoc, allowing
13320 pandoc to generate its own man pages. Man pages are no longer
13321 automatically generated in the build process (the process for
13322 this was too complex and prone to failure, #2190). The
13323 `make-pandoc-man-pages` executable has been removed. The
13324 `man/` directory has been removed, and man page templates
13325 have been moved to `data/`. NOTE TO PACKAGERS: You will no
13326 longer find pandoc's man pages in `man/`, but you can
13327 generate them using `pandoc --man1 > pandoc.1` and `pandoc
13328 --man5 > pandoc_markdown.5`.
13330 * Added new unexported module: `Text.Pandoc.ManPages`.
13332 * `README` now acts like a data file (even though it isn't in
13333 `data/`). So, for example, `pandoc --print-default-data-file README`
13334 will produce the README.) This change was required for the `--man1`
13335 and `--man5` options, since the man pages are produced from the
13336 README, but it may be useful for other purposes as well.
13338 * Allow `reference.docx` and `reference.odt` to be used with
13339 `--print-default-data-file` and to shadow defaults if placed in
13340 the user data directory. Note that as of 1.14, we no longer
13341 include these files as data files; instead, we include their
13342 components. This change causes pandoc to behave as if it has
13343 these data files; they are constructed on demand when needed
13344 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
13346 * Fixed regression in CSS parsing with `--self-contained` (#2224).
13347 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
13348 silently drops big sections of CSS. This commit replaces the
13349 use of css-text with a small but principled CSS preprocessor,
13350 which removes whitespace and comments and replaces `url()` with
13351 base 64 data when possible.
13353 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
13354 This will allow math to work when pages are being viewed locally.
13356 * `Text.Pandoc.Options`: Export `plainExtensions`.
13357 These are the extensions used in `plain` output.
13359 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
13360 math mode; treat them as regular inline text. Normally these will
13361 cause an error in LaTeX, but there are contexts (e.g. `alltt`
13362 environments) where they are allowed.
13364 * HTML reader: allow `<body>` to close `<head>`.
13366 * DocBook reader: support `mediaobject`s and `figures` (#2184, mb21).
13368 * RST reader: Fix reference names with special characters
13369 (Lars-Dominik Braun).
13371 * Textile writer: escape `+` and `-` as entities (#2225).
13373 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
13375 * Plain writer: don't use symbols for super/subscript (#2237).
13376 Simplified code by using `plainExtensions`.
13378 * InDesign writer: Properly escape URLs containing more than one
13379 colon character (gohai).
13381 * Docx writer: Make sure we use dist version of `reference.docx`
13382 (and not the user's version) for certain settings. Taking some
13383 settings values from a user-supplied reference.docx can lead to
13384 corruption. This fixes a regression from the last release (#2249).
13386 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
13387 `getDefaultReferenceODT` (API change). These functions have been
13388 removed from the Docx and ODT writers.
13390 * LaTeX template (Xavier Olive):
13391 + Added `CJKmainfont` and `CJKoptions` variables.
13392 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
13394 * Epub templates: use `author.role`, not `author.type`.
13396 * Bump cmark version to >= 0.3.4.
13398 * Improved Windows installer (#2205, thanks to nkalvi).
13399 Users can now select a per-user or systemwide install, and can set
13400 the installation path. At the end of installation, the install location
13401 is given. The install location is also now given in the list of
13402 installed programs in Control Panel. Cleaner WiX syntax is used for
13405 * Added `download_stats` target to Makefile.
13407## pandoc 1.14.0.4 (2015-06-02)
13409 * Added missing commonmark template.
13411 * Improved try pandoc (moved button, show raw command).
13413## pandoc 1.14.0.3 (2015-06-01)
13415 * Allow compilation with syb 0.5.*.
13417 * Custom writer: fixed some compiler warnings for ghc < 7.10.
13419## pandoc 1.14.0.2 (2015-05-31)
13421 * Allow building with hslua 0.4.
13423## pandoc 1.14.0.1 (2015-05-28)
13425 * Fixed problem with building of `reference.docx` and `reference.odt`
13426 when the `embed_data_files` flag is used. Instead of having a phase
13427 of the build where `reference.docx` and `reference.odt` are created
13428 from their constituent data files, we now construct these archives
13429 from their constituents when a `docx` or `odt` is built. The
13430 constituent files have been moved from `extra-source-files` to
13431 `data-files`, and `reference.docx` and `reference.odt` have been
13432 removed. Users can create their own `reference.docx` or
13433 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
13434 `make-reference-files.hs` has been removed, simplifying the build
13437 * Don't include generated man pages in extra-source-files (#2189).
13439 * Bumped upper bound for aeson.
13441 * ConTeXt writer: create internal link anchors for Div elements with
13442 identifiers. (This is needed for linked citations to work.)
13444## pandoc 1.14 (2015-05-27)
13448 * Added `commonmark` as input and output format.
13450 * Added `--verbose` flag for debugging output in PDF production (#1840,
13453 * Allow wildcards in `--epub-embed-font` arguments (#1939).
13455 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
13457 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
13458 This is enabled by default for those markdown flavors that
13459 support reading shortcut reference links, namely: `markdown`,
13460 `markdown_strict`, `markdown_github`, `markdown_php`.
13461 If the extension is enabled, the reader parses shortcut reference
13462 links like `[foo]`, and the writer creates such links unless doing
13463 so would cause problems. Users of markdown flavors that support
13464 shortcut reference links should not notice a difference in reading
13465 markdown, but the markdown pandoc produces may differ.
13466 If shortcut links are not desired, the extension can be disabled
13469### Behavior changes
13471 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
13472 A "dirty" TOC is created at the beginning of document.
13473 It can be regenerated after the document has been opened.
13475 * An implicit `--filter pandoc-citeproc` is now triggered only when the
13476 `--bibliography` option is used, and not when the `bibliography`
13477 field in metadata is specified (#1849).
13481 + Reference links with `implicit_header_references` are no longer
13482 case-sensitive (#1606).
13483 + Definition lists no longer require indentation for first line (#2087).
13484 Previously the body of the definition (after the `:` or `~` marker)
13485 needed to be in column 4. This commit relaxes that requirement,
13486 to better match the behavior of PHP Markdown Extra. So, now
13487 this is a valid definition list:
13491 + Resolve a potentially ambiguity with table captions:
13501 Is "bar" a definition, or the caption for the table? We'll count
13502 it as a caption for the table.
13503 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
13504 Markdown Extra. Note: If you have been using headerless pipe tables,
13505 this change may cause existing tables to break.
13506 + Allow pipe tables with header but no body (#2017).
13507 + Allow a digit as first character of a citation key (Matthias Troffaes).
13508 See https://github.com/jgm/pandoc-citeproc/issues/97
13512 + Don't limit includes to `.tex` extension (#1882).
13513 If the extension is not `.tex`, it must be given explicitly in
13514 the `\input` or `\include`.
13518 + Allow numbering in the style file. This allows inherited styles
13519 with numbering (lists) (Jesse Rosenthal).
13523 + Support smart punctuation (Craig Bosma).
13524 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
13525 `:noexport:` tag set are not exported. This mirrors org-mode.
13526 + Put header tags into empty spans (Albert Krewinkel, #2160).
13527 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
13528 Instead of being interpreted as part of the headline, the tags are now
13529 put into the attributes of empty spans. Spans without textual content
13530 won't be visible by default, but they are detectable by filters. They
13531 can also be styled using CSS when written as HTML.
13532 + Generalize code block result parsing (Albert Krewinkel).
13533 Previously, only code blocks were recognized as result blocks;
13534 now, any kind of block can be the result.
13536 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
13537 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
13541 + Add "inline" or "display" class to math spans (#1914).
13542 This allows inline and display math to be styled differently.
13543 + Include raw latex blocks if `--mathjax` specified (#1938).
13544 + Require highlighting-kate >= 0.5.14 (#1903).
13545 This ensures that all code blocks will be wrapped in a `div`
13546 with class `sourceCode`. Also, the default highlighting CSS
13547 now adds `div.sourceCode { x-overflow: auto; }`, which means
13548 that code blocks (even with line numbers) will acquire a scroll
13549 bar on screens too small to display them (e.g. mobile phones).
13550 See also jgm/highlighting-kate#65.
13554 + Use a declaration for tight lists (Jose Luis Duran, Joseph
13555 Harriott). Previously, pandoc hard-coded some commands to make
13556 tight lists in LaTeX. Now we use a custom command instead,
13557 allowing the styling to be changed in a macro in the header.
13558 (Note: existing templates may need to be modified to include
13559 the definition of this macro. See the current template.)
13560 + Beamer output: if the header introducing a slide has the
13561 class `fragile`, add the `[fragile]` option to the slide (#2119).
13563 * MediaWiki writer:
13565 + Use `File:` instead of the deprecated `Image:` for images and
13566 other media files (Greg Rundlett).
13570 + Render a `Div (id,_,_) [Para _]` element as a `para` element
13571 with an `id` attribute. This makes links to citations work in
13572 DocBook with pandoc-citeproc.
13576 + Normalize headings to sequential levels (Nikolay Yakimov).
13577 This is pretty much required by docutils.
13578 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
13579 + Better handling of raw latex inline (#1961). We use
13580 `` :raw-latex:`...` `` and add a definition for this role to
13585 + Remove `linear=no` from cover `itemref` (#1609).
13586 + Don't use `sup` element for epub footnotes (#1995).
13587 Instead, just use an a element with class `footnoteRef`.
13588 This allows more styling options, and provides better results
13589 in some readers (e.g. iBooks, where anything inside the a
13590 tag breaks popup footnotes).
13591 + Take TOC title from `toc-title` metadata field.
13595 + Implemented `FirstParagraph` style (Jesse Rosenthal).
13596 Following the ODT writer, we add the `FirstParagraph` style to the
13597 first text paragraph following an image, blockquote, table, heading,
13598 or beginning of document. This allows it to be styled differently.
13599 The default is for it to be the same as `Normal`.
13600 + Added `BodyText` style (Jesse Rosenthal).
13601 We apply a `BodyText` style to all unstyled paragraphs. This is,
13602 essentially, the same as `Normal`, except that since not everything
13603 inherits from `BodyText` (the metadata won't, for example, or
13604 the headers or footnote numbers), we can change the text in the body
13605 without having to make exceptions for everything. If we do want to
13606 change *everything*, we can still do it through `Normal`.
13607 + Altered `Blockquote` style slightly (Jesse Rosenthal).
13608 Since `BlockQuote` derives from `BodyText`, we just want to specify
13609 by default that it won't indent, regardless of what `BodyText` does.
13610 Note that this will not produce any visible difference in the default
13612 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
13613 + Added a style to figure images (Nikolay Yakimov).
13614 Figures with empty captions use style `Figure`.
13615 Figures with nonempty captions use style `Figure with Caption`, which
13616 is based on `Figure`, and additionally has `keepNext` set.
13620 + Added figure captions (Nikolay Yakimov). The following styles are
13622 `Figure` -- for figure with empty caption),
13623 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
13624 `FigureCaption` (based on `Caption`) -- for figure captions.
13625 Also, `TableCaption` (based on `Caption`) is used for table captions.
13629 * New `Text.Pandoc.Error` module with `PandocError` type
13630 (Matthew Pickering).
13632 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
13633 (Matthew Pickering). This allows better handling of errors.
13635 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
13637 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
13639 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
13640 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
13641 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
13644 * New `Ext_shortcut_reference_links` constructor for `Extension`
13645 (Konstantin Zudov).
13651 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
13652 + Check for tex macros after indented code (#1973).
13653 + Rewrote `charsInBalancedBrackets` for efficiency.
13654 + Make sure a closing `</div>` doesn't get included in a
13655 definition list item (#2127).
13656 + Don't parse bracketed text as citation if it might be a link,
13657 image, or footnote (Nikolay Yakimov).
13658 + Require space after key in mmd title block (#2026, Nikolay
13659 Yakimov). Require space after key-value delimiter colon in mmd title
13661 + Require nonempty value in mmd title block (Nikolay Yakimov).
13662 + Disable all metadata block extensions when parsing
13663 metadata field values (#2026, Nikolay Yakimov). Otherwise we
13664 could get a mmd title block inside YAML metadata, for example.
13668 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
13669 + Handle tables with `<th>` in body rows (#1859, mb21).
13670 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
13671 to see if the input starts with `<!--`. If not, it's bogus comment
13672 mode and we fail `htmlTag`.
13673 + Handle `base` tag; if it has an `href` value, this is added to
13674 all relative URLs in links and images.
13678 + Look inside "info" elements for section titles (#1931).
13682 + Parse images in deprecated vml format (Jesse Rosenthal).
13683 + Allow sub/superscript verbatims (Jesse Rosenthal).
13684 Verbatim usually shuts off all other run styles, but we don't want it
13685 to shut off sub/superscript.
13689 + Handle `tabular*` environment (#1850).
13690 Note that the table width is not actually parsed or taken into
13691 account, but pandoc no longer chokes on it.
13692 + Ignore options in `\lstinline` rather than raising error (#1997).
13693 + Add some test cases for simple tables (Mathias Schenner).
13694 + Handle valign argument in tables (Mathias Schenner) (currently
13695 we just ignore this).
13696 + Allow non-empty colsep in tables (Mathias Schenner).
13697 The `tabular` environment allows non-empty column separators
13698 with the "@{...}" syntax. Previously, pandoc would fail to
13699 parse tables if a non-empty colsep was present. With this
13700 commit, these separators are still ignored, but the table gets
13701 parsed. A test case is included.
13702 + Recognize `\newpage` as a block command.
13703 + Allow block content in `\title{}` (#2001).
13704 + Check for block-level newcommand aliases in blockCommand (Nikolay
13706 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
13707 + Properly gobble spaces after `\\` (#2007).
13711 + Handle newlines in table cells, and empty cells (#1919).
13715 + Allow image links with non-image targets (Hans-Peter Deifel).
13716 This matches behavior of Org-Mode for links like
13717 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
13721 + Don't print empty id attributes (thanks to Steve Horne).
13725 + Fixed list-style-type for numbered example lists.
13726 Should be "decimal," not "example" (#1902).
13727 + Do not omit missing `alt` attribute on `img` tag (#1131,
13729 + Allow multiple colgroups in table (#2122).
13730 + In revealjs, ensure that lists in speaker notes don't add "fragment"
13731 classes, which can cause additional keypresses to be needed to
13732 advance a slide (#1394).
13736 + Don't escape `$` in URL (#1913).
13737 + Don't use listings in headers (Matthew Pickering, #1963).
13738 + Recognize book documentclass if set in metadata (#1971).
13739 This sets `--chapters` implicitly if the documentclass in metadata
13740 is a book documentclass. Previously this was done only if a book
13741 documentclass was set in a variable.
13742 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
13743 + Make `mainlang` work when `lang` is in metadata (#2174).
13747 + Fix wrapping by using breakable spaces (Tim Lin).
13751 + Fixed toc depth in RST writer. Previously the depth was being
13752 rendered as a floating point number with a decimal point.
13756 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
13757 compatibility with original Markdown. We now escape `<` and `>`
13758 with entities. Also, we now backslash-escape square brackets.
13759 + Avoid introducing spurious list items through wrapping (#1946).
13760 + Don't emit span tags if plain or raw HTML disabled.
13762 * MediaWiki writer:
13764 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
13768 + Insert some needed blank lines (#1860).
13769 + Avoid wrapping after list marker (#1858).
13773 + Properly handle internal links to IDs in spans, divs (#1884).
13774 + Use plain writer for metadata dc: fields (#2121).
13775 This gives better results when we have, e.g. multiple paragraphs.
13776 Note that tags aren't allowed in these fields.
13777 + Properly handle image links without an extension (#1855).
13778 + Improved chapter splitting and internal link rewriting (#1887,
13779 #2162, #2163). This will ensure that internal links work and
13780 that the references section produced by pandoc-citeproc is
13781 in its own chapter.
13782 + Fixed handling of svg images (#2183).
13786 + Better handling of raw blocks and inlines (#1951).
13787 Previously these were always escaped and printed verbatim.
13788 Now they are ignored unless the format is `icml`, in which
13789 case they are passed through unescaped.
13790 + Fixed image URIs in ICML output (gohai).
13794 + Raise error if loadstring returns an error status.
13795 + Raise `PandocLuaException` instead of using 'error'.
13796 Eventually we'll change the return type so that no exception
13797 is involved, but at least this can be trapped.
13798 + Use UTF-8 aware bytestring conversion.
13799 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
13800 Also factored out ByteString, since it's only used as an intermediate
13805 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
13806 + Filter out illegal XML characters (#1992, Matthew Pickering).
13807 + Added `noProof` to docx syntax highlighting `SourceCode` style.
13808 + Added footnotes id -1 and 0 (Jesse Rosenthal).
13809 Word uses, by default, footnotes with id -1 and 0 for separators. If a
13810 user modifies `reference.docx`, they will end up with a `settings.xml`
13811 file that references these footnotes, but no such footnotes in the
13812 document. This will produce a corruption error. Here we add these to the
13813 document and `settings.xml` file, so future modifications won't break
13815 + Handle lists correctly inside table cells (Jesse Rosenthal).
13816 Previously we didn't transform lists inside table cells.
13817 + Set firstRow information in tables (Nikolay Yakimov).
13818 + Don't replace `SourceCode` style in `reference.docx` if it is defined
13819 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
13820 any `SourceCode` and `*Tok` styles in `reference.docx`.
13821 + Attempt to match international style names (#1607, Nikolay Yakimov).
13822 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
13823 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
13824 `Definition`, `First Paragraph`.
13825 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
13826 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
13827 `Footnote Ref -> Footnote Reference`.
13828 + Added `Caption` style (Nikolay Yakimov).
13829 + Changed these styles' inheritance (Nikolay Yakimov):
13830 `Image Caption <- Caption`, `Table Caption <- Caption`.
13831 + Remove `SourceCode` style from `reference.docx` (#1872).
13832 This is added automatically by the docx writer.
13833 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
13835 * `Text.Pandoc.PDF`
13837 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
13838 + More comprehensible errors on image conversion (#2067).
13839 EPS can't be supported without shelling out to something like
13840 ImageMagick, but at least we can avoid mysterious error messages.
13842 * `Text.Pandoc.Shared`:
13844 + Make safeRead safe (#1801, Matthew Pickering).
13845 + Added `mapLeft`, `hush` (Matthew Pickering).
13847 * `Text.Pandoc.Pretty`:
13849 + Remove partial function (Matthew Pickering).
13851 * `Text.Pandoc.SelfContained`:
13853 + Add `;charset=utf-8` to script mime type if missing (#1842).
13854 + Improved building of data URIs (#1940). Now base64 is used except
13855 for `text/*` mime types.
13856 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
13857 + Properly handle data URIs in css urls (#2129).
13858 Use a proper CSS parser (adds dependency on `text-css`).
13860 * `Text.Pandoc.UTF8`:
13862 + Better handling of bare CRs in input files (#2132).
13863 Previously we just stripped them out; now we convert
13864 other line ending styles to LF line endings.
13866 * `Text.Pandoc.ImageSize`:
13868 + Fixed some exif header parsing bugs (#1834).
13869 + Make imageSize return an Either, not a Maybe (#1834).
13870 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
13871 parse failure (rather than `error`).
13872 + Improved warnings when image size can't be determined.
13873 + Removed error landmines (Matthew Pickering).
13875 * Added woff2 to MIME types (Alfred Wechselberger).
13877 * pandoc: When a binary input format is used, warn that file
13878 arguments past the first one are being ignored (Matthew Pickering).
13880### Template changes
13884 + Degrade gracefully if `\paragraph` not defined.
13885 + Include `grffile` together with `graphicx` (#2074).
13886 This properly handles filenames containing spaces and dots.
13887 + Redefine `\paragraph`, `\subparagraph`... to behave more
13888 like section headers (#1658).
13889 + Import hyperref before polyglossia to avoid an error with xelatex,
13890 "please load package hyperref before bidi package" (Nick Bart).
13891 + Added `toccolor` variable to control link color in toc (Kaixhin).
13893 * LaTeX, Beamer templates:
13895 + Provide `\tightlist`, which is now used by the LaTeX writer.
13896 + Use polyglossia in beamer (#85).
13897 + Use `bibliography` instead of `biblio-files`
13898 (#1661). Also use `\addbibresource` instead of `\bibliography` for
13900 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
13901 variable that is derived from a comma-separated list in `lang`;
13902 the last language is `mainlang` and the others are `otherlang`.
13906 + Use `div`, not `p`, for "rights" on title page.
13907 + Added header-includes, include-before, include-after (#1987).
13909 * OpenDocument template:
13911 + Use `text:p` instead of `text:h` for title.
13912 Using `text:h` causes problems with numbering. Closes #2059.
13913 Thanks to @nkalvi for diagnosing this.
13915 * reveal.js template:
13917 + Link to non-minified css, js. The minified versions no longer
13918 ship with the library.
13919 + Correctly include style CSS (#1949).
13920 + New configurable options options: `center`, `maxScale`, `slideNuber`
13921 (Dmitry Smirnov, pandoc-templates#89).
13922 + Moved custom CSS after theme. This allows custom CSS to modify
13923 themes, instead of being replaced by them.
13924 + Allow `center` to be set to false.
13926### Under the hood improvements
13928 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
13929 Yakimov). Instead the repository now includes the component text files,
13930 and the zipped binaries are built from these using a helper
13931 program, `make-reference-files`. This should make maintenance of
13932 these components easier going forward.
13934 * `Text.Pandoc.Parsing`:
13936 + Added new `<+?>` combinator (Nikolay Yakimov).
13937 + Added `stateHeaderKeys` to `ParserState`.
13939 * `make_deb.sh` fixes:
13941 + Detect architecture.
13942 + Add Installed-Size to debian package control file (#1900).
13943 + Use `fakeroot` to get permissions right.
13944 + Use `mkdir` and `cp` instead of `install`.
13945 + Set permissions of directories to 755.
13946 + Install in `/usr` rather than `/usr/local`.
13947 + Compress man pages.
13948 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
13950 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
13951 to assist with transition to `time` 1.5.
13953 * Updated CONTRIBUTING.md with information about issue tags (Matthew
13956 * Updated travis installs to the new sudo-less syntax (Tim Lin).
13958 * Updated dependency version bounds.
13960 * EPUB tests: don't use `joinPath`, which varies across platforms.
13961 Instead, use a forward-slash to join paths, regardless of the
13962 platform. This matches the way `MediaBag` now works.
13964 * Clarify JSON input and output in usage message (Caleb McDaniel).
13966 * Improved INSTALL instructions.
13968 * Always build man pages. Removed make-pandoc-man-pages flag.
13970 * Makefile: removed man target, now that we generate man pages by default.
13974 + Fixed typos (J. Lewis Muir).
13975 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
13976 + Added note on in-field markup in biblio databases (Nick Bart).
13977 + Fixed misleading example of raw HTML block.
13978 + Various minor formatting and consistency fixes for the program
13979 options (Andreas Lööw).
13980 + Made definition lists for options all "loose" for consistency.
13981 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
13982 `--bib2json` and `--bib2yaml` options (Nick Bart).
13983 + Removed obsolete reference to `mods2yaml` (Nick Bart).
13984 + Added section on syntax highlighting.
13985 + Documented `toccolor` variable.
13987## pandoc 1.13.2.1 (2015-04-15)
13989 * Updated to build with ghc 7.10.1.
13991 * Bumped package upper bounds for filepath, blaze-html, blaze-markup.
13993## pandoc 1.13.2 (2014-12-20)
13995 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
13999 + Better handling of paragraph in div (#1591).
14000 Previously text that ended a div would be parsed as Plain
14001 unless there was a blank line before the closing div tag.
14002 + Don't treat a citation as a reference link label (#1763).
14003 + Fix autolinks with following punctuation (#1811).
14004 The price of this is that autolinked bare URIs can no longer
14005 contain `>` characters, but this is not a big issue.
14006 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
14007 + Allow `startnum` to work without `fancy_lists`. Formerly
14008 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
14010 * RST reader (all Daniel Bergey):
14012 + Parse quoted literal blocks (#65). RST quoted literal blocks are
14013 the same as indented literal blocks (which pandoc already supports)
14014 except that the quote character is preserved in each line.
14015 + Parse RST class directives. The class directive accepts one or more
14016 class names, and creates a Div value with those classes. If the
14017 directive has an indented body, the body is parsed as the children of
14018 the Div. If not, the first block following the directive is made a
14019 child of the Div. This differs from the behavior of rst2xml, which
14020 does not create a Div element. Instead, the specified classes are
14021 applied to each child of the directive. However, most Pandoc Block
14022 constructors to not take an Attr argument, so we can't duplicate this
14024 + Warn about skipped directives.
14025 + Literal role now produces Code. Code role should have "code" class.
14026 + Improved support for custom roles
14028 - Added `sourceCode` to classes for `:code:` role, and anything
14029 inheriting from it.
14030 - Add the name of the custom role to classes if the Inline
14031 constructor supports Attr.
14032 - If the custom role directive does not specify a parent role,
14033 inherit from the `:span:` role.
14035 This differs somewhat from the `rst2xml.py` behavior. If a custom
14036 role inherits from another custom role, Pandoc will attach both
14037 roles' names as classes. `rst2xml.py` will only use the class of
14038 the directly invoked role (though in the case of inheriting from a
14039 `:code:` role with a `:language:` defined, it will also provide the
14040 inherited language as a class).
14041 + Warn about ignored fields in role directives.
14045 + Parse label after caption into a span instead of
14046 inserting an additional paragraph of bracketed text (#1747).
14047 + Parse math environments as inline when possible (#1821).
14048 + Better handling of `\noindent` and `\greektext` (#1783).
14049 + Handle `\texorpdfstring` more gracefully.
14050 + Handle `\cref` and `\sep` (Wikiwide).
14051 + Support `\smartcite` and `\Smartcite` from biblatex.
14055 + Retain display type of MathML output (#1719, Matthew Pickering).
14056 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
14057 + Make `embed` tag either block or inline (#1756).
14061 + Handle `keycombo`, `keycap` (#1815).
14062 + Get string content in inner tags for literal elements (#1816).
14063 + Handle `menuchoice` elements better, with a `>` between (#1817).
14064 + Include `id` on section headers (#1818).
14065 + Document/test "type" as implemented (Brian O'Sullivan).
14066 + Add support for calloutlist and callout (Brian O'Sullivan).
14067 We treat a calloutlist as a bulleted list. This works well in practice.
14068 + Add support for `classname` (Bryan O'Sullivan).
14072 + Fix window path for image lookup (Jesse Rosenthal).
14073 Don't use os-sensitive "combine", since we always want the paths in our
14074 zip-archive to use forward-slashes.
14075 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
14076 When users number their headers, Word understands that as a single item
14077 enumerated list. We make the assumption that such a list is, in fact,
14079 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
14080 There could be new top-level headers after making lists, so we have to
14081 rewrite links after that.
14082 + Use polyglot header list (Jesse Rosenthal).
14083 We're just keeping a list of header formats that different languages
14084 use as their default styles. At the moment, we have English, German,
14085 Danish, and French. We can continue to add to this.
14086 This is simpler than parsing the styles file, and perhaps less
14087 error-prone, since there seems to be some variations, even within a
14088 language, of how a style file will define headers.
14089 + Remove header class properly in other langs (Jesse Rosenthal).
14090 When we encounter one of the polyglot header styles, we want to remove
14091 that from the par styles after we convert to a header. To do that, we
14092 have to keep track of the style name, and remove it appropriately.
14093 + Account for external link URLs with anchors. Previously, if a URL
14094 had an anchor, the reader would incorrectly identify it as an
14095 internal link and return only the anchor as URL. (Caleb McDaniel)
14096 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
14100 + Added state changing blanklines (Jesse Rosenthal).
14101 This allows us to emphasize at the beginning of a new paragraph (or, in
14102 general, after blank lines).
14103 + Fixed bug with bulleted lists:
14109 was being parsed as a list, even though an unindented `*`
14110 should make a heading. See
14111 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
14112 + Org reader: absolute, relative paths in link (#1741, Albert
14113 Krewinkel). The org reader was too restrictive when parsing links;
14114 some relative links and links to files given as absolute paths
14115 were not recognized correctly.
14116 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
14117 This is important for use in gitit, which uses empty links
14119 + Respect indent when parsing Org bullet lists (#1650, Timothy
14120 Humphries). Fixes issue with top-level bullet list parsing.
14121 + Fix indent issue for definition lists (Timothy Humphries,
14122 see #1650, #1698, #1680).
14123 + Parse multi-inline terms correctly in definition list (#1649,
14124 Matthew Pickering).
14125 + Fix rules for emphasis recognition (Albert Krewinkel).
14126 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
14127 strings. This is wrong, as `,` and `'` are forbidden border chars and
14128 may not occur on the inner border of emphasized text.
14129 + Drop COMMENT document trees (Albert Krewinkel).
14130 Document trees under a header starting with the word `COMMENT` are
14131 comment trees and should not be exported. Those trees are dropped
14133 + Properly handle links to `file:target` (Albert Krewinkel).
14134 Org links like `[[file:target][title]]` were not handled correctly,
14135 parsing the link target verbatim. The org reader is changed such that
14136 the leading `file:` is dropped from the link target (see #756, #1812).
14137 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
14138 Org supports special symbols which can be included using LaTeX syntax,
14139 but are actually MathML entities. Examples for this are
14140 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
14141 or `\copy` (the copyright sign ©)
14145 + URI handling improvements. Now we outsource most of the work to
14146 `fetchItem'`. Also, do not include queries in file extensions (#1671).
14150 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
14151 + Handle consecutive linebreaks (#1733).
14152 + Protect graphics in headers (Jesse Rosenthal).
14153 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
14154 + Put `~` before header in list item text (Jesse Rosenthal).
14155 Because of the built-in line skip, LaTeX can't handle a section header
14156 as the first element in a list item.
14157 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
14158 + Better handling of display math in simple tables (#1754).
14159 We convert display math to inline math in simple tables,
14160 since LaTeX can't deal with display math in simple tables.
14161 + Escape spaces in code (#1694, Bjorn Buckwalter).
14163 * MediaWiki writer:
14165 + Fixed links with URL = text. Previously these were rendered as bare
14166 words, even if the URL was not an absolute URL (#1825).
14170 + Don't force all citations into footnotes.
14174 + Add blankline at end of output (#1732, Matthew Pickering).
14178 + Ensure blank line after figure.
14179 + Avoid excess whitespace after last list item (#1777).
14180 + Wrap line blocks with spaces before continuations (#1656).
14181 + Fixed double-rendering of footnotes in RST tables (#1769).
14185 + Better handling of block quotes. This change ensures that
14186 multiple paragraph blockquotes are rendered using native `>`
14187 rather than as HTML (#1738).
14188 + Fix external images (#1739). Preface relative links with ":",
14189 absolute URIs without. (Timothy Humphries)
14193 + Use protocol-relative URL for mathjax.
14194 + Put newline btw img and caption paragraph.
14195 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
14196 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
14197 This adds `KaTeX` to `HTMLMathMethod` (API change).
14198 + Don't double render when `email-obfuscation=none` (#1625, Matthew
14200 + Make header attributes work outside top level (#1711).
14201 Previously they only appeared on top level header elements.
14202 Now they work e.g. in blockquotes.
14206 + Correctly handle images without extensions (#1729).
14207 + Strip querystring in ODT write (#1682, Todd Sifleet).
14211 + Add newline to output.
14215 + Don't add `sourceURL` to absolute URIs (#1669).
14216 + Don't use unsupported `opf:title-type` for epub2.
14217 + Include "landmarks" section in nav document for epub3 (#1757).
14218 + Removed playOrder from navpoint elements in ncx file (#1760).
14219 These aren't required, and they make manual modification of epubs
14221 + Extract title even from structured title.
14222 + Don't include nav node in spine unless `--toc` was requested.
14223 Previously we included it in the spine with `linear="no"`, leading
14224 to odd results in some readers (#1593).
14225 + Fixed absolute URI detection (#1672).
14226 + Correctly resolve relative URIs (#1671).
14227 + Use regular page template for `nav.xhtml`, including doctype (#1759).
14231 + Put docx table captions above tables (#1641, Nikolay Yakimov).
14232 + Get the page width from the reference docx file, and use
14233 it to scale images that are too large to fit (Grégory Bataille).
14234 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
14235 are inferred based on `<w:name val="heading #">` fallback, if there
14236 are no en-US "Heading#" styles
14237 + Look in user data dir for archive `reference.docx`.
14238 + Renumber header and footer relationships to avoid collisions (Jesse
14239 Rosenthal). We previously took the old relationship names of the
14240 headers and footer in secptr. That led to collisions. We now make
14241 a map of available names in the relationships file, and then rename
14246 + Add function toLabel (Mark Szepieniec).
14247 This function can be used to sanitize reference labels so that
14248 they do not contain any of the illegal characters \#[]",{}%()|= .
14249 Currently only Links have their labels sanitized, because they
14250 are the only Elements that use passed labels.
14252 * `Text.Pandoc.Shared`:
14254 + Moved import of `toChunks` outside of CPP conditional (#1590).
14255 + Fix `inDirectory` to reset to the original directory in case
14256 an exception occurs (Freiric Barral).
14260 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
14261 Thanks to bluebirch.
14262 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
14264 + LaTeX template: Add shorthands=off to babel options (#1648).
14265 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
14266 This aids styling, making it possible for example to set 0 margins
14267 on the title page (#1758).
14268 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
14269 Previously we just expected 'title', 'subtitle', 'author', 'date'.
14270 Now we still support those, but also support the format recommended
14271 for epub metadata in the pandoc README:
14278 text: An investigation of metadata
14286 text: doi:10.234234.234/33
14287 publisher: My Press
14288 rights: (c) 2007 John Smith, CC BY-NC
14291 * `Text.Pandoc.Templates.getDefaultTemplate`:
14292 don't fail when called with "fb2" (#1660).
14294 * `Text.Pandoc.Parsing`:
14296 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
14297 For example: `$x = \text{the $n$th root of $y$}` (#1677).
14298 + Change `parseFromString` to fail if not all input is consumed.
14299 (Matthew Pickering)
14300 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
14301 used by more readers (API change, Daniel Bergey).
14303 * `Text.Pandoc.Pretty`:
14305 + Improve performance of `realLength` (Matthew Pickering).
14306 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
14307 were getting at the end of markdown fragments (as well as rst, org,
14310 * `Text.Pandoc.MIME`:
14312 + Add mime type for WebVTT (Jason Ronallo).
14313 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
14314 This is needed for epub3 validation.
14316 * `Text.Pandoc.MediaBag`:
14318 + Fix Windows specific path problems (#1597).
14320 * `Text.Pandoc.Shared`:
14322 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
14324 * Link the test suite using `-threaded`.
14325 This allows the test suite to be run using `+RTS -N`.
14327 * Added `network` dependency under `network-uri` flag in test section.
14329 * Give better error messages when someone tries to convert from
14330 pdf, doc, odt (#1683).
14332 * Added `track` to list of tags treated by `--self-contained` (#1664).
14335## pandoc 1.13.1 (2014-08-30)
14337 * Fixed `--self-contained` with Windows paths (#1558).
14338 Previously `C:\foo.js` was being wrongly interpreted as a URI.
14340 * HTML reader: improved handling of tags that can be block or inline.
14341 Previously a section like this would be enclosed in a paragraph,
14342 with RawInline for the video tags (since video is a tag that can
14343 be either block or inline):
14345 <video controls="controls">
14346 <source src="../videos/test.mp4" type="video/mp4" />
14347 <source src="../videos/test.webm" type="video/webm" />
14349 The videos can not be played back on your system.<br/>
14350 Try viewing on Youtube (requires Internet connection):
14351 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
14356 This change will cause the video and source tags to be parsed
14357 as RawBlock instead, giving better output.
14358 The general change is this: when we're parsing a "plain" sequence
14359 of inlines, we don't parse anything that COULD be a block-level tag.
14363 + Be sensitive to user styles. Note that "Hyperlink" is
14364 "blacklisted," as we don't want the default underline styling to be
14365 inherited by all links by default (Jesse Rosenthal).
14366 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
14367 This makes to docx reader's native output fit with the way the markdown
14368 reader understands its markdown output.
14372 + Header is now parsed only if standalone flag is set (Matthew Pickering).
14373 + The header is now parsed as meta information. The first line is the
14374 `title`, the second is the `author` and third line is the `date`
14375 (Matthew Pickering).
14376 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
14377 + Fixed crash when reading from stdin.
14379 * Textile writer: Extended the range of cases where native textile
14380 tables will be used (as opposed to raw HTML): we now handle any
14381 alignment type, but only for simple tables with no captions.
14383 * EPUB writer: Don't use page-progression-direction in EPUB2, which
14384 doesn't support it. Also, if page-progression-direction not specified
14385 in metadata, don't include the attribute even in EPUB3; not including it
14386 is the same as including it with the value "default", as we did before.
14389 * Org writer: Accept example lines with indentation at the beginning
14394 + Refactor to use Reader monad (Matthew Pickering).
14395 + Avoid using raw HTML in table cells; instead, use `\\`
14396 instead of newlines (Jesse Rosenthal).
14397 + Properly handle HTML table cell alignments, and use spacing
14398 to make the tables look prettier (#1566).
14402 + Bibliography entries get `Bibliography` style (#1559).
14403 + Implement change tracking (Jesse Rosenthal).
14407 + Fixed a bug that caused a table caption to repeat across all pages
14409 + Improved vertical spacing in tables and made it customizable using
14410 standard lengths set by booktab. See
14411 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
14413 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
14414 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
14415 + Made horizontal rules more flexible (Jose Luis Duran).
14417 * Text.Pandoc.MIME:
14419 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
14420 Code cleanups (Artyom Kazak).
14424 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
14427 * Improved OSX build procedure.
14429 * Added `network-uri` flag, to deal with split of `network-uri` from
14432 * Fix build dependencies for the `trypandoc` flag, so that they are
14433 ignored if `trypandoc` flag is set to False (Gabor Pali).
14435 * Updated README to remove outdated claim that `--self-contained`
14436 looks in the user data directory for missing files.
14438## pandoc 1.13.0.1 (2014-08-17)
14442 + Fixed regression which bungled list numbering (#1544), causing
14443 all lists to appear as basic ordered lists.
14444 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
14445 Added a property to all table rows where the sum of column widths
14446 is specified in pct (fraction of 5000). This helps persuade Word
14447 to lay out the table with the widths we specify.
14449 * Fixed a bug in Windows 8 which caused pandoc not to find the
14450 `pandoc-citeproc` filter (#1542).
14452 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
14453 Most significantly, the reader now uses Builder, leading to some
14454 performance improvements.
14456 * HTML reader: Parse appropriately styled span as SmallCaps.
14458 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
14459 `superscript`, and `subscript` extensions, respectively, are
14460 deactivated (#1127).
14462 * Added `trypandoc` flag to build CGI executable used in the online
14465 * Makefile: Added 'quick', 'osxpkg' targets.
14467 * Updated README in templates to indicate templates license.
14468 The templates are dual-licensed, BSD3 and GPL2+.
14470## pandoc 1.13 (15 August 2014)
14474 * Added `docx` as an input format (Jesse Rosenthal). The docx
14475 reader includes conversion of native Word equations to pandoc
14476 LaTeX `Math` elements. Metadata is taken from paragraphs at the
14477 beginning of the document with styles `Author`, `Title`, `Subtitle`,
14478 `Date`, and `Abstract`.
14480 * Added `epub` as an input format (Matthew Pickering). The epub
14481 reader includes conversion of MathML to pandoc LaTeX `Math`
14484 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
14485 Txt2tags is a lightweight markup format described at
14486 <http://txt2tags.org/>.
14488 * Added `dokuwiki` as an output format (Clare Macrae).
14490 * Added `haddock` as an output format.
14492 * Added `--extract-media` option to extract media contained in a zip
14493 container (docx or epub) while adjusting image paths to point to the
14496 * Added a new markdown extension, `compact_definition_lists`, that
14497 restores the syntax for definition lists of pandoc 1.12.x, allowing
14498 tight definition lists with no blank space between items, and
14499 disallowing lazy wrapping. (See below under behavior changes.)
14501 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
14503 * Added extensions `native_spans` and `native_divs` to activate
14504 parsing of material in HTML span or div tags as Pandoc Span
14505 inlines or Div blocks.
14507 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
14508 Textile, and MediaWiki readers. This is an option intended
14509 for debugging parsing problems; ordinary users should not need
14512### Behavior changes
14514 * Changed behavior of the `markdown_attribute` extension, to bring
14515 it in line with PHP markdown extra and multimarkdown. Setting
14516 `markdown="1"` on an outer tag affects all contained tags,
14517 recursively, until it is reversed with `markdown="0"` (#1378).
14519 * Revised markdown definition list syntax (#1429). Both the reader
14520 and writer are affected. This change brings pandoc's definition list
14521 syntax into alignment with that used in PHP markdown extra and
14522 multimarkdown (with the exception that pandoc is more flexible about
14523 the definition markers, allowing tildes as well as colons). Lazily
14524 wrapped definitions are now allowed. Blank space is required
14525 between list items. The space before a definition is used to determine
14526 whether it is a paragraph or a "plain" element. **WARNING: This change
14527 may break existing documents!** Either check your documents for
14528 definition lists without blank space between items, or use
14529 `markdown+compact_definition_lists` for the old behavior.
14531 * `.numberLines` now works in fenced code blocks even if no language
14532 is given (#1287, jgm/highlighting-kate#40).
14534 * Improvements to `--filter`:
14536 + Don't search PATH for a filter with an explicit path.
14537 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
14538 the system path, even if there was a `caps.py` in the working directory.
14539 + Respect shebang if filter is executable (#1389).
14540 + Don't print misleading error message.
14541 Previously pandoc would say that a filter was not found,
14542 even in a case where the filter had a syntax error.
14546 + Parse `div` and `span` elements even without `--parse-raw`,
14547 provided `native_divs` and `native_spans` extensions are set.
14548 Motivation: these now generate native pandoc Div and Span
14549 elements, not raw HTML.
14550 + Parse EPUB-specific elements if the `epub_html_exts`
14551 extension is enabled. These include `switch`, `footnote`,
14552 `rearnote`, `noteref`.
14556 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
14557 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
14558 `\cite{Coffee}`), can be used without any further escaping (Albert
14561 * Textile reader and writer:
14563 + The `raw_tex` extension is no longer set by default. You can
14564 enable it with `textile+raw_tex`.
14568 + Support `equation`, `informalequation`, `inlineequation` elements with
14569 `mml:math` content. This is converted into LaTeX and put into a Pandoc
14572 * Revised `plain` output, largely following the style of Project
14575 + Emphasis is rendered with `_underscores_`, strong emphasis
14577 + Headings are rendered differently, with space to set them off,
14578 not with setext style underlines. Level 1 headers are ALL CAPS.
14579 + Math is rendered using unicode when possible, but without the
14580 distracting emphasis markers around variables.
14581 + Footnotes use a regular `[n]` style.
14585 + Horizontal rules are now a line across the whole page.
14586 + Prettier pipe tables. Columns are now aligned (#1323).
14587 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
14588 no longer emits any raw HTML, including span and div tags
14589 generated by Span and Div elements.
14590 + Use span with style for `SmallCaps` (#1360).
14594 + Autolinks now have class `uri`, and email autolinks have class
14595 `email`, so they can be styled.
14599 + Document formatting is carried over from `reference.docx`.
14600 This includes margins, page size, page orientation, header,
14601 and footer, including images in headers and footers.
14602 + Include abstract (if present) with `Abstract` style (#1451).
14603 + Include subtitle (if present) with `Subtitle` style, rather
14604 than tacking it on to the title (#1451).
14608 + Write empty span elements with an id attribute as org anchors.
14609 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
14613 + Put table captions above tables, to match the conventional
14614 standard. (Previously they appeared below tables.)
14615 + Use `\(..\)` instead of `$..$` for inline math (#1464).
14616 + Use `\nolinkurl` in email autolinks. This allows them to be styled
14617 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
14618 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
14619 curly quotes in the PDF output (#1364).
14620 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
14621 do not appear before the overlays in which their markers appear
14623 + Don't produce a `\label{..}` for a Div or Span element. Do produce
14624 a `\hyperdef{..}` (#1519).
14628 + If the metadata includes `page-progression-direction` (which can be
14629 `ltr` or `rtl`, the `page-progression-direction` attribute will
14630 be set in the EPUB spine (#1455).
14632 * Custom lua writers:
14634 + Custom writers now work with `--template`.
14635 + Removed HTML header scaffolding from `sample.lua`.
14636 + Made citation information available in lua writers.
14638 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
14639 adjacent `RawBlock`s when possible.
14643 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
14645 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
14648 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
14651 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
14654 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
14656 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
14657 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
14658 readers return a pair of a `Pandoc` document and a `MediaBag` with
14659 the media resources they contain. This can be extracted using
14660 `--extract-media`. Writers that incorporate media (PDF, Docx,
14661 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
14662 for resources in the `MediaBag` generated by the reader, in addition to
14663 the file system or web.
14665 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
14666 Renamed `readTeXMath'` to `texMathToInlines`.
14668 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
14669 `readers` now associates names of readers with `Reader`
14670 structures. This allows inclusion of readers, like the docx
14671 reader, that take binary rather than textual input.
14673 * `Text.Pandoc.Shared`:
14675 + Added `capitalize` (Artyom Kazak), and replaced uses of
14676 `map toUpper` (which give bad results for many languages).
14677 + Added `collapseFilePath`, which removes intermediate `.` and
14678 `..` from a path (Matthew Pickering).
14679 + Added `fetchItem'`, which works like `fetchItem` but searches
14680 a `MediaBag` before looking on the net or file system.
14681 + Added `withTempDir`.
14682 + Added `removeFormatting`.
14683 + Added `extractSpaces` (from HTML reader) and generalized its type
14684 so that it can be used by the docx reader (Matthew Pickering).
14686 + Added `normalizeInlines`, `normalizeBlocks`.
14687 + `normalize` is now `Pandoc -> Pandoc` instead of
14688 `Data a :: a -> a`. Some users may need to change their uses of
14689 `normalize` to the newly exported `normalizeInlines` or
14692 * `Text.Pandoc.Options`:
14694 + Added `writerMediaBag` to `WriterOptions`.
14695 + Removed deprecated and no longer used `readerStrict` in
14696 `ReaderOptions`. This is handled by `readerExtensions` now.
14697 + Added `Ext_compact_definition_lists`.
14698 + Added `Ext_epub_html_exts`.
14699 + Added `Ext_native_divs` and `Ext_native_spans`.
14700 This allows users to turn off the default pandoc behavior of
14701 parsing contents of div and span tags in markdown and HTML
14702 as native pandoc Div blocks and Span inlines.
14704 * `Text.Pandoc.Parsing`:
14706 + Generalized `readWith` to `readWithM` (Matthew Pickering).
14707 + Export `runParserT` and `Stream` (Matthew Pickering).
14708 + Added `HasQuoteContext` type class (Matthew Pickering).
14709 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
14710 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
14711 `applyMacros` (Matthew Pickering).
14712 + Added custom `token` (Matthew Pickering).
14713 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
14714 track of the ending tag we're waiting for when we're parsing inside
14716 + Added `stateMarkdownAttribute` to `ParserState`. This is used
14717 to keep track of whether the markdown attribute has been set in
14719 + Generalized type of `registerHeader`, using new type classes
14720 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
14721 Pickering). These allow certain common functions to be reused
14722 even in parsers that use custom state (instead of `ParserState`),
14723 such as the MediaWiki reader.
14724 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
14725 and generalized their types (Matthew Pickering).
14727 * `Text.Pandoc.Pretty`:
14730 + Added `blanklines`, which guarantees a certain number of blank lines
14737 + Fixed parsing of indented code in list items. Indented code
14738 at the beginning of a list item must be indented eight spaces
14739 from the margin (or edge of the container), or four spaces
14740 from the list marker, whichever is greater.
14741 + Fixed small bug in HTML parsing with `markdown_attribute`, which
14742 caused incorrect tag nesting for input like
14743 `<aside markdown="1">*hi*</aside>`.
14744 + Fixed regression with intraword underscores (#1121).
14745 + Improved parsing of inline links containing quote characters (#1534).
14746 + Slight rewrite of `enclosure`/`emphOrStrong` code.
14747 + Revamped raw HTML block parsing in markdown (#1330).
14748 We no longer include trailing spaces and newlines in the
14749 raw blocks. We look for closing tags for elements (but without
14750 backtracking). Each block-level tag is its own `RawBlock`;
14751 we no longer try to consolidate them (though `--normalize` will do so).
14752 + Combine consecutive latex environments. This helps when you have
14753 two minipages which can't have blank lines between them (#690, #1196).
14754 + Support smallcaps through span.
14755 `<span style="font-variant:small-caps;">foo</span>` will be
14756 parsed as a `SmallCaps` inline, and will work in all output
14757 formats that support small caps (#1360).
14758 + Prevent spurious line breaks after list items (#1137). When the
14759 `hard_line_breaks` option was specified, pandoc would formerly
14760 produce a spurious line break after a tight list item.
14761 + Fixed table parsing bug (#1333).
14762 + Handle `c++` and `objective-c` as language identifiers in
14763 github-style fenced blocks (#1318).
14764 + Inline math must have nonspace before final `$` (#1313).
14768 + Handle comments at the end of tables. This resolves the issue
14769 illustrated in <http://stackoverflow.com/questions/24009489>.
14770 + Correctly handle table rows with too few cells. LaTeX seems to
14771 treat them as if they have empty cells at the end (#241).
14772 + Handle leading/trailing spaces in `\emph` better.
14773 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
14774 so that we don't get things like `* hi *` in markdown output.
14775 Also applies to `textbf` and some other constructions (#1146).
14776 + Don't assume preamble doesn't contain environments (#1338).
14777 + Allow (and discard) optional argument for `\caption` (James Aspnes).
14781 + Fixed major parsing problem with HTML tables. Table cells were
14782 being combined into one cell (#1341).
14783 + Fixed performance issue with malformed HTML tables.
14784 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
14785 + Allow space between `<col>` and `</col>`.
14786 + Added `audio` and `source` in `eitherBlockOrInline`.
14787 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
14788 `blockTags` to `eitherBlockOrInline`.
14789 + `map` and `object` were mistakenly in both lists; they have been removed
14791 + Ignore `DOCTYPE` and `xml` declarations.
14793 * MediaWiki reader:
14795 + Don't parse backslash escapes inside `<source>` (#1445).
14796 + Tightened up template parsing.
14797 The opening `{{` must be followed by an alphanumeric or `:`.
14798 This prevents the exponential slowdown in #1033.
14799 + Support "Bild" for images.
14803 + Better handle elements inside code environments. Pandoc's document
14804 model does not allow structure inside code blocks, but at least this way
14805 we preserve the text (#1449).
14806 + Support `<?asciidoc-br?>` (#1236).
14810 + Fixed list parsing. Lists can now start without an intervening
14811 blank line (#1513).
14812 + HTML block-level tags that do not start a line are parsed as
14813 inline HTML and do not interrupt paragraphs (as in RedCloth).
14817 + Make tildes create inline code (#1345). Also relabeled `code` and
14818 `verbatim` parsers to accord with the org-mode manual.
14819 + Respect `:exports` header argument in code blocks (Craig Bosma).
14820 + Fixed tight lists with sublists (#1437).
14824 + Avoid excess whitespace in `nav.xhtml`. This should improve
14825 TOC view in iBooks (#1392).
14826 + Fixed regression on cover image.
14827 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
14828 because the metadata id was not correct. Now we derive the id from the
14829 actual cover image filename, which we preserve rather than using
14831 + Keep newlines between block elements. This allows
14832 easier diff-ability (#1424).
14833 + Use `stringify` instead of custom `plainify`.
14834 + Use `renderTags'` for all tag rendering. This properly handles tags
14835 that should be self-closing. Previously `<hr/>` would appear in EPUB
14836 output as `<hr></hr>` (#1420).
14837 + Better handle HTML media tags.
14838 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
14839 can have only one dc:date, so only the first one is used.
14843 + Correctly handle figures in notes. Notes can't contain figures in
14844 LaTeX, so we fake it to avoid an error (#1053).
14845 + Fixed strikeout + highlighted code (#1294).
14846 Previously strikeout highlighted code caused an error.
14850 + Improved detection of autolinks with URLs containing escapes.
14854 + Improved image embedding: `fetchItem'` is now used to get the
14855 images, and calculated image sizes are indicated in the RTF.
14856 + Avoid extra paragraph tags in metadata (#1421).
14860 + Deactivate "incremental" inside slide speaker notes (#1394).
14861 + Don't include empty items in the table of contents for
14862 slide shows. (These would result from creating a slide
14863 using a horizontal rule.)
14865 * MediaWiki writer:
14867 + Minor renaming of `st` prefixed names.
14871 + Double up emphasis and strong emphasis markers in intraword
14872 contexts, as required by asciidoc (#1441).
14876 + Avoid wrapping that might start a list, blockquote, or header (#1013).
14877 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
14878 + Don't use braced attributes for fenced code (#1416).
14879 If `Ext_fenced_code_attributes` is not set, the first class
14880 attribute will be printed after the opening fence as a bare word.
14881 + Separate adjacent lists of the same kind with an HTML comment (#1458).
14885 + Fixed treatment of data uris for images (#1062).
14889 + Use Compact style for empty table cells (#1353).
14890 Otherwise we get overly tall lines when there are empty
14891 table cells and the other cells are compact.
14892 + Create overrides per-image for `media/` in reference docx.
14893 This should be somewhat more robust and cover more types of images.
14894 + Improved `entryFromArchive` to avoid an unneeded parse.
14895 + Section numbering carries over from reference.docx (#1305).
14896 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
14897 we assign numbers based on the list marker styles.
14899 * `Text.Pandoc.Options`:
14901 + Removed `Ext_fenced_code_attributes` from `markdown_github`
14904 * `Text.Pandoc.ImageSize`:
14906 + Use default instead of failing if image size not found
14907 in exif header (#1358).
14908 + ignore unknown exif header tag rather than crashing.
14909 Some images seem to have tag type of 256, which was causing
14912 * `Text.Pandoc.Shared`:
14914 + `fetchItem`: unescape URI encoding before reading local file (#1427).
14915 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
14916 doing mime lookup, to improve mime type guessing.
14917 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
14918 other things are treated as relative URIs if `sourceURL` is `Just _`,
14919 otherwise as file paths on the local file system.
14920 + `fetchItem` now properly handles links without a protocol (#1477).
14921 + `fetchItem` now escapes characters not allowed in URIs before trying
14923 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
14925 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
14926 needed to resolve relative URLs when we fetch resources (#750).
14928 * `Text.Pandoc.Parsing`
14930 + Simplified `dash` and `ellipsis` (#1419).
14931 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
14932 + Generalized functions to use `ParsecT` (Matthew Pickering).
14933 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
14936### Template changes
14938 * Added haddock template.
14939 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
14940 be "advisory" in HTML5, but kindlegen seems to require them.
14941 * EPUB3: Put title page in section with `epub:type="titlepage"`.
14942 * LaTeX: Made `\subtitle` work properly (#1327).
14943 * LaTeX/Beamer: remove conditional around date (#1321).
14944 * LaTeX: Added `lot` and `lof` variables, which can be set to
14945 get `\listoftables` and `\listoffigures` (#1407). Note that
14946 these variables can be set at the command line with `-Vlot -Vlof`
14947 or in YAML metadata.
14949### Under the hood improvements
14951 * Rewrote normalize for efficiency (#1385).
14953 * Rewrote Haddock reader to use `haddock-library` (#1346).
14955 + This brings pandoc's rendering of haddock markup in line
14956 with the new haddock.
14957 + Fixed line breaks in `@` code blocks.
14958 + alex and happy are no longer build-depends.
14960 * Added `Text.Pandoc.Compat.Directory` to allow building against
14961 different versions of the `directory` library.
14963 + Added `Text.Pandoc.Compat.Except` to allow building against
14964 different versions of `mtl`.
14966 * Code cleanup in some writers, using Reader monad to avoid
14967 passing options parameter around (Matej Kollar).
14969 * Improved readability in `pandoc.hs`.
14971 * Miscellaneous code cleanups (Artyom Kazak).
14973 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
14976 * Changed `http-conduit` flag to `https`. Depend on `http-client`
14977 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
14978 depends on `conduit` via `yaml`.)
14980 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
14981 This change to highlighting-kate means that PHP fragments no longer need
14982 to start with `<?php`. It also fixes a serious bug causing failures with
14985 * Require latest `texmath`. This fixes `\tilde{E}` and allows
14986 `\left` to be used with `]`, `)` etc. (#1319), among many other
14989 * Require latest `zip-archive`. This has fixes for unicode path names.
14991 * Added tests for plain writer.
14993 * `Text.Pandoc.Templates`:
14995 + Fail informatively on template syntax errors.
14996 With the move from parsec to attoparsec, we lost good error
14997 reporting. In fact, since we weren't testing for end of input,
14998 malformed templates would fail silently. Here we revert back to
14999 Parsec for better error messages.
15000 + Use `ordNub` (#1022).
15004 + Made benchmarks compile again (Artyom Kazak).
15005 + Fixed so that the failure of one benchmark does not prevent others
15006 from running (Artyom Kazak).
15007 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
15008 + Changed benchmark to use only the test suite, so that benchmarks
15011 * Windows build script:
15013 + Add `-windows` to file name.
15014 + Use one install command for pandoc, pandoc-citeproc.
15015 + Force install of pandoc-citeproc.
15017 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
15018 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
15019 will extract it into a folder named `SOMETHING.pkg`, which it
15020 will interpret as a defective package (#1308).
15024 + Made headers for all extensions so they have IDs and can be
15025 linked to (Beni Cherniavsky-Paskin).
15026 + Fixed typos (Phillip Alday).
15027 + Fixed documentation of attributes (#1315).
15028 + Clarified documentation on small caps (#1360).
15029 + Better documentation for `fenced_code_attributes` extension
15031 + Documented fact that you can put YAML metadata in a separate file
15035## pandoc 1.12.4.2 (2014-05-14)
15037 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
15039 * Shared: `addMetaValue` now behaves slightly differently:
15040 if both the new and old values are lists, it concatenates their
15041 contents to form a new list.
15045 + Set `bibliography` in metadata from `\bibliography` or
15046 `\addbibresource` command.
15047 + Don't error on `%foo` with no trailing newline.
15051 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
15052 + Fix parsing of blank lines within blocks (Albert Krewinkel).
15053 + Support pandoc citation extension (Albert Krewinkel). This can
15054 be turned off by specifying `org-citation` as the input format.
15058 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
15059 other readers (Albert Krewinkel).
15061 * `Text.Pandoc.Parsing`:
15063 + Added `citeKey` (see above).
15064 + Added `HasLastStrPosition` type class and `updateLastStrPos`
15065 and `notAfterString` functions.
15067 * Updated copyright notices (Albert Krewinkel).
15069 * Added default.icml to data files so it installs with the package.
15073 + The binary is now built with options to ensure that it can be
15074 used with OSX 10.6+.
15075 + Moved OSX package materials to osx directory.
15076 + Added OSX package uninstall script, included in the zip container
15077 (thanks to Daniel T. Staal).
15079## pandoc 1.12.4 (2014-05-07)
15081 * Made it possible to run filters that aren't executable
15082 (#1096). Pandoc first tries to find the executable (searching
15083 the path if path isn't given). If it fails, but the file
15084 exists and has a `.py`, `.pl`, `.rb`, `.hs`, or `.php`
15085 extension, pandoc runs the filter using the appropriate
15086 interpreter. This should make it easier to use filters on
15087 Windows, and make it more convenient for everyone.
15089 * Added Emacs org-mode reader (Albert Krewinkel).
15091 * Added InDesign ICML Writer (mb21).
15093 * MediaWiki reader:
15095 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
15096 + Fixed bug in certain nested lists (#1213). If a level 2 list was
15097 followed by a level 1 list, the first item of the level 1 list
15099 + Handle table rows containing just an HTML comment (#1230).
15103 + Give better location information on errors, pointing to line
15104 numbers within included files (#1274).
15105 + LaTeX reader: Better handling of `table` environment (#1204).
15106 Positioning options no longer rendered verbatim.
15107 + Better handling of figure and table with caption (#1204).
15108 + Handle `@{}` and `p{length}` in tabular. The length is not actually
15109 recorded, but at least we get a table (#1180).
15110 + Properly handle `\nocite`. It now adds a `nocite` metadata
15111 field. Citations there will appear in the bibliography but not
15112 in the text (unless you explicitly put a `$nocite$` variable
15117 + Ensure that whole numbers in YAML metadata are rendered without
15118 decimal points. (This became necessary with changes to aeson
15119 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
15120 + Fixed regression on line breaks in strict mode (#1203).
15121 + Small efficiency improvements.
15122 + Improved parsing of nested `div`s. Formerly a closing `div` tag
15123 would be missed if it came right after other block-level tags.
15124 + Avoid backtracking when closing `</div>` not found.
15125 + Fixed bug in reference link parsing in `markdown_mmd`.
15126 + Fixed a bug in list parsing (#1154). When reading a raw list
15127 item, we now strip off up to 4 spaces.
15128 + Fixed parsing of empty reference link definitions (#1186).
15129 + Made one-column pipe tables work (#1218).
15133 + Better support for attributes. Instead of being ignored, attributes
15134 are now parsed and included in Span inlines. The output will be a bit
15135 different from stock textile: e.g. for `*(foo)hi*`, we'll get
15136 `<em><span class="foo">hi</span></em>` instead of
15137 `<em class="foo">hi</em>`. But at least the data is not lost.
15138 + Improved treatment of HTML spans (%) (#1115).
15139 + Improved link parsing. In particular we now pick up on attributes.
15140 Since pandoc links can't have attributes, we enclose the whole link in
15141 a span if there are attributes (#1008).
15142 + Implemented correct parsing rules for inline markup (#1175, Matthew
15144 + Use Builder (Matthew Pickering).
15148 + Better treatment of `formalpara`. We now emit the title (if present)
15149 as a separate paragraph with boldface text (#1215).
15150 + Set metadata `author` not `authors`.
15151 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
15152 Matthew Pickering).
15153 + Converted current meta information parsing in DocBook to a more
15154 extensible version which is aware of the more recent meta
15155 representation (Matthew Pickering).
15159 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
15161 + Treat processing instructions & declarations as block. Previously
15162 these were treated as inline, and included in paragraph tags in HTML
15163 or DocBook output, which is generally not what is wanted (#1233).
15164 + Updated `closes` with rules from HTML5 spec.
15165 + Use Builder (Matthew Pickering, #1162).
15169 + Remove duplicate `http` in PEP links (Albert Krewinkel).
15170 + Make rst figures true figures (#1168, CasperVector)
15171 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
15172 rST parser now supports: all built-in rST roles, new role definition,
15173 role inheritance, though with some limitations.
15174 + Use `author` rather than `authors` in metadata.
15175 + Better handling of directives. We now correctly handle field
15176 lists that are indented more than three spaces. We treat an
15177 `aafig` directive as a code block with attributes, so it can be
15178 processed in a filter (#1212).
15182 + Mark span contents with label if span has an ID (Albert Krewinkel).
15183 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
15184 + Handle line breaks in simple table cells (#1217).
15185 + Workaround for level 4-5 headers in quotes. These previously produced
15186 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
15187 This adds an `mbox{}` in these contexts to work around the problem.
15188 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
15189 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
15190 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
15191 ligature with LuaLaTeX but `\/` does.
15192 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
15194 * ConTeXt writer: Improved autolinks (#1270).
15198 + Improve handling of hard line breaks in Docbook writer
15199 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
15200 just for the newline character.
15201 + Don't let line breaks inside footnotes influence the enclosing
15202 paragraph (Neil Mayhew).
15203 + Distinguish tight and loose lists in DocBook output, using
15204 `spacing="compact"` (Neil Mayhew, #1250).
15206 * Docx writer: When needed files are not present in the user's
15207 `reference.docx`, fall back on the versions in the `reference.docx`
15208 in pandoc's data files. This fixes a bug that occurs when a
15209 `reference.docx` saved by LibreOffice is used. (#1185)
15213 + Include extension in epub ids. This fixes a problem with duplicate
15214 extensions for fonts and images with the same base name but different
15215 extensions (#1254).
15216 + Handle files linked in raw `img` tags (#1170).
15217 + Handle media in `audio` source tags (#1170).
15218 Note that we now use a `media` directory rather than `images`.
15219 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
15220 will both be incorporated into `content.opf` and the epub container.
15224 + Add colgroup around col tags (#877). Also affects EPUB writer.
15225 + Fixed bug with unnumbered section headings. Unnumbered section
15226 headings (with class `unnumbered`) were getting numbers.
15227 + Improved detection of image links. Previously image links with
15228 queries were not recognized, causing `<embed>` to be used instead
15231 * Man writer: Ensure that terms in definition lists aren't line wrapped
15236 + Use proper escapes to avoid unwanted lists (#980). Previously we used
15237 0-width spaces, an ugly hack.
15238 + Use longer backtick fences if needed (#1206). If the content contains a
15239 backtick fence and there are attributes, make sure longer fences are
15240 used to delimit the code. Note: This works well in pandoc, but github
15241 markdown is more limited, and will interpret the first string of three
15242 or more backticks as ending the code block.
15244 * RST writer: Avoid stack overflow with certain tables (#1197).
15246 * RTF writer: Fixed table cells containing paragraphs.
15250 + Correctly handle UTF-8 in custom lua scripts (#1189).
15251 + Fix bugs with lua scripts with mixed-case filenames and
15252 paths containing `+` or `-` (#1267). Note that `getWriter`
15253 in `Text.Pandoc` no longer returns a custom writer on input
15256 * AsciiDoc writer: Handle multiblock and empty table cells
15257 (#1245, #1246). Added tests.
15259 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
15261 * `Text.Pandoc.Shared`:
15263 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
15264 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
15265 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
15267 + `openURL`: set proxy with value of http_proxy env variable (#1211).
15268 Note: proxies with non-root paths are not supported, due to
15269 limitations in `http-conduit`.
15271 * `Text.Pandoc.PDF`:
15273 + Ensure that temp directories deleted on Windows (#1192). The PDF is
15274 now read as a strict bytestring, ensuring that process ownership will
15275 be terminated, so the temp directory can be deleted.
15276 + Use `/` as path separators in a few places, even on Windows.
15277 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
15278 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
15279 + Changes to error reporting, to handle non-UTF8 error output.
15281 * `Text.Pandoc.Templates`:
15283 + Removed unneeded datatype context (Merijn Verstraaten).
15285 + YAML objects resolve to "true" in conditionals (#1133).
15286 Note: If `address` is a YAML object and you just have `$address$`
15287 in your template, the word `true` will appear, which may be
15288 unexpected. (Previously nothing would appear.)
15290 * `Text.Pandoc.SelfContained`: Handle `poster` attribute in `video`
15293 * `Text.Pandoc.Parsing`:
15295 + Made `F` an instance of Applicative (#1138).
15296 + Added `stateCaption`.
15297 + Added `HasMacros`, simplified other typeclasses.
15298 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
15299 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
15300 + Changed the smart punctuation parser to return `Inlines`
15301 rather than `Inline` (Matthew Pickering).
15302 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
15303 from typeclasses of monads to typeclasses of states. This simplifies
15304 the instance definitions and provides more flexibility. Generalized
15305 type of `getOption` and added a default definition. Removed
15306 `askReaderOption`. Added `extractReaderOption`. Added
15307 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
15308 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
15309 `modifyHeaderMap`. Added `extractIdentifierList` and
15310 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
15311 for `getIdentifierList`, `putIdentifierList`, and
15312 `modifyIdentifierList`. The ultimate goal here is to allow different
15313 parsers to use their own, tailored parser states (instead of
15314 `ParserState`) while still using shared functions.
15316 * Template changes:
15318 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
15319 + LaTeX template: Add `linestretch` and `fontfamily` variables.
15320 + LaTeX template: Conditionalize author and date commands.
15321 + Beamer template: Consistent styles for figure and table captions
15323 + LaTeX and beamer template: Adjust widths correctly for oversized
15324 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
15325 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
15326 `upquote` only after `fontenc` (Yihui Xie).
15327 + Beamer template: Added caption package (#1200).
15328 + Beamer template: changes for better unicode handling (KarolS).
15329 + DocBook template: use `authorgroup` if there are authors.
15330 + revealjs template: Move `include-after` to end (certainlyakey).
15331 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
15333 * Bumped version bounds of dependencies.
15335 * Added a `--trace` command line option, for debugging backtracking
15336 bugs. So far this only works with the markdown reader.
15338 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
15340 * Updated travis script to test with multiple GHC versions.
15342 * Force failure of a Travis build if GHC produces warnings (Albert
15345 * Add `.editorconfig` (Albert Krewinkel).
15346 See <http://editorconfig.org/> for details.
15348 * Give more useful error message if '-t pdf' is specified (#1155).
15350 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
15352 * Allow `html4` as a synonym of `html` as a reader (it already works
15357 + Added an explanation of how to use YAML metadata to
15358 force items to appear in the bibliography without citations in
15359 the text (like LaTeX `\nocite`).
15360 + Added note to `--bibtex/--natbib`: not for use in making PDF
15361 (#1194, thanks to nahoj).
15362 + Added explanatory notes about `--natbib` and `--biblatex`.
15363 + Added specification of legal syntax for citation keys.
15364 + Fixed variable defaults documentation (Albert Krewinkel).
15366 * Removed copyright statements for files that have been removed
15367 (Albert Krewinkel).
15369 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
15370 They aren't needed at runtime. We keep README and COPYRIGHT in data
15371 to ensure that they'll be available on all systems on which pandoc
15374 * Use cabal sandboxes in Windows build script.
15376## pandoc 1.12.3.3 (2014-02-03)
15378 * To changes to source; recompiled tarball with latest alex and
15379 happy, so they will work with GHC 7.8.
15381## pandoc 1.12.3.2 (2014-02-03)
15383 * Bumped version bounds for blaze-html, blaze-markup.
15385 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
15388 * Fixed mediawiki ordered list parsing (#1122).
15390 * HTML reader: Fixed bug reading inline math with `$$` (#225).
15392 * Added support for LaTeX style literate Haskell code blocks in rST
15393 (Merijn Verstraaten).
15395## pandoc 1.12.3.1 (2014-01-14)
15397 * Relaxed version constraint on binary, allowing the use of binary 0.5.
15400## pandoc 1.12.3 (2014-01-10)
15402 * The `--bibliography` option now sets the `biblio-files` variable.
15403 So, if you're using `--natbib` or `--biblatex`, you can just use
15404 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
15406 * Don't run pandoc-citeproc filter if `--bibliography` is
15407 used together with `--natbib` or `--biblatex` (Florian Eitel).
15409 * Template changes:
15411 + Updated beamer template to include booktabs.
15412 + Added `abstract` variable to LaTeX template.
15413 + Put `header-includes` after `title` in LaTeX template (#908).
15414 + Allow use of `\includegraphics[size]` in beamer.
15415 This just required porting a macro definition from the default
15416 LaTeX template to the default beamer template.
15418 * `reference.docx`: Include `FootnoteText` style.
15419 Otherwise Word ignores the style, even when specified in the `pPr`.
15422 * `reference.odt`: Tidied `styles.xml`.
15424 * Relaxed version bounds for dependencies.
15426 * Added `withSocketsDo` around http conduit code in `openURL`,
15427 so it works on Windows (#1080).
15429 * Added `Cite` function to `sample.lua`.
15433 + Fixed regression in title blocks (#1089).
15434 If author field was empty, date was being ignored.
15435 + Allow backslash-newline hard line breaks in grid and
15436 multiline table cells.
15437 + Citation keys may now start with underscores, and may contain
15438 underscores adjacent to internal punctuation.
15442 + Add support for `Verb` macro (jrnold) (#1090).
15443 + Support babel-style quoting: `` "`..."' ``.
15445 * Properly handle script blocks in strict mode. (That is,
15446 `markdown-markdown_in_html_blocks`.) Previously a spurious
15447 `<p>` tag was being added (#1093).
15449 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
15454 + Factored out function for table cell creation.
15455 + Better treatment of footnotes in tables.
15456 Notes now appear in the regular sequence, rather than in the
15457 table cell. (This was a regression in 1.10.)
15459 * HTML reader: Parse name/content pairs from meta tags as metadata.
15462 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
15464 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
15466 * ODT writer: Use mathml for proper rendering of formulas.
15467 Note: LibreOffice's support for this seems a bit buggy. But
15468 it should be better than what we had before.
15470 * RST writer: Ensure no blank line after def in definition list (#992).
15472 * Markdown writer: Don't use tilde code blocks with braced attributes in
15473 `markdown_github` output. A consequence of this change is that the
15474 backtick form will be preferred in general if both are enabled. That
15475 is good, as it is much more widespread than the tilde form. (#1084)
15477 * Docx writer: Fixed problem with some modified reference docx files.
15478 Include `word/_rels/settings.xml.rels` if it exists, as well as other
15479 `rels` files besides the ones pandoc generates explicitly.
15483 + With `--toc`, headers no longer link to themselves (#1081).
15484 + Omit footnotes from TOC entries. Otherwise we get doubled
15485 footnotes when headers have notes!
15489 + Avoid duplicate notes when headings contain notes.
15490 This arose because the headings are copied into the metadata
15491 "title" field, and the note gets rendered twice. We strip the
15492 note now before putting the heading in "title".
15493 + Strip out footnotes from toc entries.
15494 + Fixed bug with `--epub-stylesheet`. Now the contents of
15495 `writerEpubStylesheet` (set by `--epub-stylesheet`)
15496 should again work, and take precedence over a stylesheet specified
15499 * `Text.Pandoc.Pretty`: Added `nestle`. API change.
15501 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
15503 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
15506 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
15507 we could only get size information for JFIF format, which led
15508 to squished images in Word documents. Closes #976.
15510 * Removed old `MarkdownTest_1.0.3` directory (#1104).
15513## pandoc 1.12.2.1 (2013-12-08)
15515 * Markdown reader: Fixed regression in list parser, involving
15516 continuation lines containing raw HTML (or even verbatim raw HTML).
15518## pandoc 1.12.2 (2013-12-07)
15520 * Metadata may now be included in YAML blocks in a markdown document.
15528 text: An investigation of metadata
15536 text: doi:10.234234.234/33
15537 publisher: My Press
15538 rights: (c) 2007 John Smith, CC BY-NC
15539 cover-image: img/mypic.jpg
15540 stylesheet: style.css
15543 Metadata may still be provided using `--epub-metadata`; it will
15544 be merged with the metadata in YAML blocks.
15548 + `meta` tags are now used instead of `opf` attributes for EPUB3.
15549 + Insert "svg" property as needed in opf (EPUB 3).
15550 + Simplify `imageTypeOf` using `getMimeType`.
15551 + Add properties attribute to `cover-image` item for EPUB 3.
15552 + Don't include node for `cover.xhtml` if no cover!
15553 + Ensure that same identifier is used throughout (#1044).
15554 If an identifier is given in metadata, we use that; otherwise
15555 we generate a random uuid.
15556 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
15557 Fixes an issue with Calibre putting the cover at the end of the book
15558 if the spine has `linear="no"`. Apparently this is best practice
15559 for other converters as well:
15560 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
15561 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
15562 + Allow partial dates: `YYYY`, `YYYY-MM`.
15564 * Markdown writer: Fix rendering of tight sublists (#1050).
15565 Previously a spurious blank line was included after a tight sublist.
15567 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
15568 This is reported to be necessary to avoid an error from recent
15569 versions of Libre Office when files contain more than one image
15570 Thanks to wmanley for reporting and diagnosing the problem.
15572 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
15573 Instead, let this be set in the template, using `\setupfloat`.
15574 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
15576 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
15578 * Fixed bug with markdown intraword emphasis. Closes #1066.
15580 * Docbook writer: Hierarchicalize block content in metadata.
15581 Previously headers just disappeared from block-level metadata
15582 when it was used in templates. Now we apply the 'hierarchicalize'
15583 transformation. Note that a block headed by a level-2 header will
15584 turn into a `<sect1>` element.
15586 * OpenDocument writer: Skip raw HTML (#1035).
15587 Previously it was erroneously included as verbatim text.
15589 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
15590 This allows better control of formatting, since the `<a>`
15591 tags have a distinguishing class (#1049).
15595 + Use mime type info returned by fetchItem.
15596 + Fixed core metadata (#1046).
15597 Don't create empty date nodes if no date given.
15598 Don't create multiple `dc:creator` nodes; instead separate by
15600 + Fix URL for core-properties in `_rels/.rels` (#1046).
15602 * Plain writer: don't print `<span>` tags.
15606 + Fix definition lists with internal links in terms (#1032).
15607 This fix puts braces around a term that contains an internal
15608 link, to avoid problems with square brackets.
15609 + Properly escape pdftitle, pdfauthor (#1059).
15610 + Use booktabs package for tables (thanks to Jose Luis Duran).
15612 * Updated beamer template. Now references should work properly
15613 (in a slide) when `--biblatex` or `--natbib` is used.
15617 + Parse contents of curly quotes or matched `"` as quotes.
15618 + Support `\textnormal` as span with class `nodecor`.
15619 This is needed for pandoc-citeproc.
15620 + Improved citation parsing. This fixes a run-time error that occurred
15621 with `\citet{}` (empty list of keys). It also ensures that empty keys
15622 don't get produced.
15624 * MediaWiki reader: Add automatic header identifiers.
15628 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
15630 + Recognize `svg` tags as block level content (thanks to MinRK).
15631 + Parse LaTeX math if appropriate options are set.
15635 + Yaml block must start immediately after `---`. If there's a blank
15636 line after `---`, we interpreted it as a horizontal rule.
15637 + Correctly handle empty bullet list items.
15638 + Stop parsing "list lines" when we hit a block tag.
15639 This fixes exponential slowdown in certain input, e.g.
15640 a series of lists followed by `</div>`.
15642 * Slides: Preserve `<div class="references">` in references slide.
15644 * `Text.Pandoc.Writer.Shared`:
15646 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
15647 attributes, leading to invalid HTML.
15648 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
15649 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
15650 encoded bytestring was returned. We now decode it so it's a proper
15653 * DocBook reader: Handle numerical attributes starting with decimal.
15654 Also use `safeRead` instead of `read`.
15656 * `Text.Pandoc.Parsing`:
15658 + Generalized type of `registerHeader`, using new type classes
15659 `HasReadeOptions`, `HasIdentifierList`, `HasHeaderMap`.
15660 These allow certain common functions to be reused
15661 even in parsers that use custom state (instead of `ParserState`),
15662 such as the MediaWiki reader.
15663 + Moved inlineMath, displayMath from Markdown reader to Parsing.
15664 Generalize their types and export them from Parsing. (API change.)
15666 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
15667 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
15668 in all the writers. Require `texmath >= 0.6.5.2`.
15670 * `Text.Pandoc.MIME`:
15672 + Add entry for `jfif`.
15673 + In looking up extensions, drop the encoding info.
15674 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
15676 * Templates: Changed how array variables are resolved. Previously if
15677 `foo` is an array (which might be because multiple values were set on
15678 the command line), `$foo$` would resolve to the concatenation of the
15679 elements of foo. This is rarely useful behavior. It has been changed
15680 so that the first value is rendered. Of course, you can still iterate
15681 over the values using `$for(foo)$`. This has the result that you can
15682 override earlier settings using `-V` by putting new values later on the
15683 command line, which is useful for many purposes.
15685 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
15687 * Allow "epub2" as synonym for "epub", "html4" for "html".
15689 * Don't look for slidy files in data files with `--self-contained`.
15691 * Allow `https:` command line arguments to be downloaded.
15693 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
15695## pandoc 1.12.1 (2013-10-20)
15697 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
15698 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
15699 "c": "foo"}`. This new format is easier to work with outside of Haskell.
15700 Incidentally, "t" stands for "tag", "c" for "contents".
15702 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
15703 when converting to markdown (#1027).
15707 + Ensure that preamble doesn't contribute to the text of
15709 + Fixed character escaping in `\url{}`. Previously `\~` wasn't handled
15710 properly, among others.
15711 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
15712 bibtex titles, since we need to know what was protected from
15713 titlecase conversions.
15717 + Specially escape non-ascii characters in labels.
15718 Otherwise we can get compile errors and other bugs when
15719 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
15720 + Add link anchors for code blocks with identifiers (#1025).
15722 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
15723 It allows fragments identifiers.
15727 + A Div element with class "notes" is treated as speaker
15728 notes. Currently beamer goes to `\note{}`, revealjs to
15729 `<aside class="notes">`, and the notes are simply suppressed in
15730 other formats (#925).
15731 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
15732 The old version caused a pause to be inserted before the first
15733 material on a slide. This has been fixed.
15734 + Removed data files for s5, slideous, slidy.
15735 Users of s5 and slideous will have to download the needed
15736 files, as has been documented for some time in the README.
15737 By default, slidy code will be sought on the web, as before.
15739 * HTML writer: Insert command to typeset mathjax only in slideous output
15742 * RST writer: Skip spaces after display math. Otherwise we get indentation
15743 problems, and part of the next paragraph may be rendered as part of the
15746 * OpenDocument writer: Fix formatting of strikeout code (#995),
15747 thanks to wilx. don't use `font-face-decls` variable.
15749 * Fixed test suite so it works with cabal sandboxes.
15751## pandoc 1.12.0.2 (2013-09-20)
15753 * Removed an unused dependency (`stringable`) from pandoc.cabal.
15754 This will help packagers, but users should not need to upgrade.
15756## pandoc 1.12.0.1 (2013-09-20)
15758 * Allow `--metadata` to be repeated for the same key to form a list.
15759 This also has the effect that `--bibliography` can be repeated,
15762 * Handle boolean values in `--metadata`. Note that anything not parseable
15763 as a YAML boolean or string is treated as a literal string.
15764 You can get a string value with "yes", or any of the strings interpretable
15765 as booleans, by quoting it:
15767 -M boolvalue=yes -M stringvalue='"yes"'
15769 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
15772 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
15773 in which docx files could not be read by some versions of Word
15774 and LibreOffice (#990).
15776 * Fixed a regression involving slide shows with bibliographies.
15777 The Div container around references messed up the procedure for carving
15778 a document into slides. So we now remove the surrounding Div in
15781 * More informative error message when a filter is not found in path.
15783 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
15784 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
15786 * Don't use unicode_collation in building OSX package:
15787 it adds something like 50MB of dependencies to the package.
15789 * Declare alex and happy as build-tools (#986).
15791## pandoc 1.12 (2013-09-15)
15795 * Much more flexible metadata, including arbitrary fields and structured
15796 values. Metadata can be specified flexibly in pandoc markdown using
15797 YAML metadata blocks, which may occur anywhere in the document:
15800 title: Here is my title.
15802 This is the abstract.
15806 and *inline markup*
15808 tags: [cat, dog, animal]
15811 Metadata fields automatically populate template variables.
15813 * Added `opml` (OPML) as input and output format. The `_note` attribute,
15814 used in OmniOutliner and supported by multimarkdown, is supported.
15815 We treat the contents as markdown blocks under a section header.
15817 * Added `haddock` (Haddock markup) as input format (David Lazar).
15819 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
15820 (Thanks to Jamie F. Olson for the initial patch.)
15821 Nested vertical stacks are used for hierarchical structure.
15822 Results for more than one level of nesting may be odd.
15824 * Custom writers can now be written in lua.
15826 pandoc -t data/sample.lua
15828 will load the script sample.lua and use it as a custom writer.
15829 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
15830 Note that pandoc embeds a lua interpreter, so lua need not be
15831 installed separately.
15833 * New `--filter/-F` option to make it easier to run "filters"
15834 (Pandoc AST transformations that operate on JSON serializations).
15835 Filters are always passed the name of the output format, so their
15836 behavior can be tailored to it. The repository
15837 <https://github.com/jgm/pandocfilters> contains
15838 a python module for writing pandoc filters in python, with
15839 a number of examples.
15841 * Added `--metadata/-M` option.
15842 This is like `--variable/-V`, but actually adds to metadata, not
15845 * Added `--print-default-data-file` option, which allows printing
15846 of any of pandoc's data files. (For example,
15847 `pandoc --print-default-data-file reference.odt` will print
15850 * Added syntax for "pauses" in slide shows:
15858 * New markdown extensions:
15860 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
15861 rather than being treated as hard line breaks or spaces. This is useful
15862 for some East Asian languages, where spaces aren't used between words,
15863 but text is separated into lines for readability.
15864 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
15865 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
15866 only. (Default for `markdown_github`.) (#807)
15867 + `lists_without_preceding_blankline`: Allow lists to start without
15868 preceding blank space. (Default for `markdown_github`.) (#972)
15870### Behavior changes
15872 * `--toc-level` no longer implies `--toc`.
15873 Reason: EPUB users who don't want a visible TOC may still want
15874 to set the TOC level for in the book navigation.
15876 * `--help` now prints in and out formats in alphabetical order, and
15877 says something about PDF output (#720).
15879 * `--self-contained` now returns less verbose output (telling you
15880 which URLs it is fetching, but not giving the full header). In
15881 addition, there are better error messages when fetching a URL fails.
15883 * Citation support is no longer baked in to core pandoc. Users who
15884 need citations will need to install and use a separate filter
15885 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
15886 `csl`, and `citation-abbreviations` from the metadata, though it
15887 may still be specified on the command line as before.
15889 * A `Cite` element is now created in parsing markdown whether or not
15890 there is a matching reference.
15892 * The `pandoc-citeproc` script will put the bibliography at the
15893 end of the document, as before. However, it will be put inside a `Div`
15894 element with class "references", allowing users some control
15895 over the styling of references. A final header, if any, will
15896 be included in the `Div`.
15898 * The markdown writer will not print a bibliography if the
15899 `citations` extension is enabled. (If the citations are formatted
15900 as markdown citations, it is redundant to have a bibliography,
15901 since one will be generated automatically.)
15903 * Previously we used to store the directory of the first input file,
15904 even if it was local, and used this as a base directory for finding
15905 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
15906 users. So we now look for images relative to the current
15907 working directory, even if the first file argument is in another
15908 directory. Note that this change may break some existing workflows.
15909 If you have been assuming that relative links will be interpreted
15910 relative to the directory of the first file argument, you'll need
15911 to make that the current directory before running pandoc. (#942)
15913 * Better error reporting in some readers, due to changes in `readWith`:
15914 the line in which the error occurred is printed, with a caret pointing
15917 * All slide formats now support incremental slide view for definition lists.
15919 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
15920 Parse `:<math>...</math>` as display math. These notations are used with
15921 the MathJax MediaWiki extension.
15923 * All writers: template variables are set automatically from metadata
15924 fields. However, variables specified on the command line with
15925 `--variable` will completely shadow metadata fields.
15927 * If `--variable` is used to set many variables with the same name,
15930 * Man writer: The `title`, `section`, `header`, and `footer` can now
15931 all be set individually in metadata. The `description` variable has been
15932 removed. Quotes have been added so that spaces are allowed in the
15933 title. If you have a title that begins
15935 COMMAND(1) footer here | header here
15937 pandoc will still parse it into a title, section, header, and
15938 footer. But you can also specify these elements explicitly (#885).
15942 + Added support for YAML metadata blocks, which can come anywhere
15943 in the document (not just at the beginning). A document can contain
15944 multiple YAML metadata blocks.
15945 + HTML span and div tags are parsed as pandoc Span and Div elements.
15949 + Allow simple tables to be printed as grid tables,
15950 if other table options are disabled. This means you can do
15951 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
15952 and all tables will render as grid tables.
15953 + Support YAML title block (render fields in alphabetical order
15954 to make output predictable).
15958 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
15959 structured metadata. (Note: existing code that pattern-matches
15960 on `Meta` will have to be revised.) Metadata can now contain
15961 indefinitely many fields, with content that can be a string,
15962 a Boolean, a list of `Inline` elements, a list of `Block`
15963 elements, or a map or list of these.
15965 * A new generic block container (`Div`) has been added to `Block`,
15966 and a generic inline container (`Span`) has been added to `Inline`.
15967 These can take attributes. They will render in HTML, Textile,
15968 MediaWiki, Org, RST and Markdown (with `markdown_in_html`
15969 extension) as HTML `<div>` and `<span>` elements; in other formats
15970 they will simply pass through their contents. But they can be
15971 targeted by scripts.
15973 * `Format` is now a newtype, not an alias for String.
15974 Equality comparisons are case-insensitive.
15976 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
15977 functions that are much faster than the SYB functions from
15978 `Text.Pandoc.Generic`. These functions are now used where possible
15979 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
15980 match the generic traversals `bottomUp` and `queryWith`.)
15982 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
15983 instances for the basic pandoc types. They use GHC generics and
15984 should be faster than the old JSON serialization using
15985 `Data.Aeson.Generic`.
15987 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
15988 This is a souped-up version of `readProcessWithErrorcode` that
15989 uses lazy bytestrings instead of strings and allows setting
15990 environment variables. (Used in `Text.Pandoc.PDF`.)
15992 * New module `Text.Pandoc.Readers.OPML`.
15994 * New module `Text.Pandoc.Writers.OPML`.
15996 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
15997 This is based on Haddock's own lexer/parser.
15999 * New module `Text.Pandoc.Writers.Custom`.
16001 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
16002 Either, for better error handling.
16004 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
16006 * Removed `stripTags` from `Text.Pandoc.XML`.
16008 * `Text.Pandoc.Templates`:
16010 + Simplified `Template` type to a newtype.
16012 + Changed type of `renderTemplate`: it now takes a JSON context
16013 and a compiled template.
16014 + Export `compileTemplate`.
16015 + Export `renderTemplate'` that takes a string instead of a compiled
16017 + Export `varListToJSON`.
16019 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
16023 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
16024 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
16025 `Text.Pandoc.JSON` should be used instead. (Compiling against
16026 pandoc-types instead of pandoc will also produce smaller executables.)
16027 * Removed the deprecated `jsonFilter` function.
16028 + Added `readJSON`, `writeJSON` to the API (#817).
16030 * `Text.Pandoc.Options`:
16032 + Added `Ext_lists_without_preceding_blankline`,
16033 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
16034 `Ext_yaml_metadataBlock` to `Extension`.
16035 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
16036 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
16037 first command-line argument is an absolute URL. (So, relative links
16038 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
16039 + All bibliography-related fields have been removed from
16040 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
16041 `readerReferences`, `readerCitationStyle`.
16043 * The `Text.Pandoc.Biblio` module has been removed. Users of the
16044 pandoc library who want citation support will need to use
16045 `Text.CSL.Pandoc` from `pandoc-citeproc`.
16049 * In markdown, don't autolink a bare URI that is followed by `</a>`
16052 * `Text.Pandoc.Shared`
16054 + `openURL` now follows redirects (#701), properly handles `data:`
16055 URIs, and prints diagnostic output to stderr rather than stdout.
16056 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
16057 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
16058 + Fixed `readDefaultDataFile` so it works on Windows.
16059 + Better error messages for `readDefaultDataFile`. Instead of
16060 listing the last path tried, which can confuse people who are
16061 using `--self-contained`, so now we just list the data file name.
16062 + URL-escape pipe characters. Even though these are legal, `Network.URI`
16063 doesn't regard them as legal in URLs. So we escape them first (#535).
16065 * Mathjax in HTML slide shows: include explicit "Typeset" call.
16066 This seems to be needed for some formats (e.g. slideous) and won't
16067 hurt in others (#966).
16069 * `Text.Pandoc.PDF`
16071 + On Windows, create temdir in working directory, since the system
16072 temp directory path may contain tildes, which can cause
16073 problems in LaTeX (#777).
16074 + Put temporary output directory in `TEXINPUTS` (see #917).
16075 + `makePDF` tries to download images that are not found locally,
16076 if the first argument is a URL (#917).
16077 + If compiling with `pdflatex` yields an encoding error, offer
16078 the suggestion to use `--latex-engine=xelatex`.
16080 * Produce automatic header identifiers in parsing textile, RST,
16081 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
16083 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
16084 before treating as a filename. This fixes `--self-contained` when used
16085 with CSS files that include web fonts using the method described here:
16086 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
16087 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
16089 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
16090 percent-encoding, or a `+` character, as final punctuation.
16092 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
16093 EPS images properly sized on conversion to Word.
16095 * Slidy: Use slidy.js rather than slidy.js.gz.
16096 Reason: some browsers have trouble with the gzipped js file,
16097 at least on the local file system (#795).
16101 + Properly handle blank line at beginning of input (#882).
16102 + Fixed bug in unmatched reference links. The input
16103 `[*infile*] [*outfile*]` was getting improperly parsed:
16104 "infile" was emphasized, but "*outfile*" was literal (#883).
16105 + Allow internal `+` in citation identifiers (#856).
16106 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
16107 + Do not generate blank title, author, or date metadata elements.
16108 Leave these out entirely if they aren't present.
16109 + Allow backtick code blocks not to be preceded by blank line (#975).
16113 + Correctly handle entities.
16114 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
16115 in code blocks, rather than printing them verbatim. Parse attributes
16116 on `<pre>` tag for code blocks.
16118 * HTML reader: Handle non-simple tables (#893). Column widths are read from
16119 `col` tags if present, otherwise divided equally.
16123 + Support alltt environment (#892).
16124 + Support `\textasciitilde`, `\textasciicircum` (#810).
16125 + Treat `\textsl` as emphasized text reader (#850).
16126 + Skip positional options after `\begin{figure}`.
16127 + Support `\v{}` for hacek (#926).
16128 + Don't add spurious ", " to citation suffixes.
16129 This is added when needed in pandoc-citeproc.
16130 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
16131 + Improved support for accented characters (thanks to Scott Morrison).
16132 + Parse label after section command and set id (#951).
16136 + Don't insert paragraphs where docutils doesn't.
16137 `rst2html` doesn't add `<p>` tags to list items (even when they are
16138 separated by blank lines) unless there are multiple paragraphs in the
16139 list. This commit changes the RST reader to conform more closely to
16140 what docutils does (#880).
16141 + Improved metadata. Treat initial field list as metadata when
16142 standalone specified. Previously ALL fields "title", "author",
16143 "date" in field lists were treated as metadata, even if not at
16144 the beginning. Use `subtitle` metadata field for subtitle.
16145 + Fixed 'authors' metadata parsing in reST. Semicolons separate
16150 + Allow space before table rows.
16151 + Fixed regression for `<ref>URL</ref>`.
16152 `<` is no longer allowed in URLs, according to the uri parser
16153 in `Text.Pandoc.Parsing`. Added a test case.
16154 + Correctly handle indented preformatted text without preceding
16155 or following blank line.
16156 + Fixed `|` links inside table cells. Improved attribute parsing.
16157 + Skip attributes on table rows. Previously we just crashed if
16158 rows had attributes, now we ignore them.
16159 + Ignore attributes on headers.
16160 + Allow `Image:` for images (#971).
16161 + Parse an image with caption in a paragraph by itself as a figure.
16165 + Don't use ligatures in escaping inline code.
16166 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
16167 wherein notes were numbered incorrectly in tables (#827).
16168 + Always create labels for sections. Previously the labels were only
16169 created when there were links to the section in the document (#871).
16170 + Stop escaping `|` in LaTeX math.
16171 This caused problems with array environments (#891).
16172 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
16173 `\` will cause major problems if unescaped.
16174 + Write id for code block to label attribute in LaTeX when listings
16175 is used (thanks to Florian Eitel).
16176 + Scale LaTeX tables so they don't exceed columnwidth.
16177 + Avoid problem with footnotes in unnumbered headers (#940).
16179 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
16180 to the slide if it is one of the header classes. It is recommended
16181 that your bibliography slide have this attribute:
16183 # References {.allowframebreaks}
16185 This causes multiple slides to be created if necessary, depending
16186 on the length of the bibliography.
16188 * ConTeXt writer: Properly handle tables without captions. The old output
16189 only worked in MkII. This should work in MkIV as well (#837).
16191 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
16195 + Fixed `--no-highlight` (Alexander Kondratskiy).
16196 + Don't convert to lowercase in email obfuscation (#839).
16197 + Ensure proper escaping in `<title>` and `<meta>` fields.
16201 + Support `--atx-headers` (Max Rydahl Andersen).
16202 + Don't print empty identifier blocks `([[]])` on headers (Max
16207 + Fixing wrong numbered-list indentation in open document format
16208 (Alexander Kondratskiy) (#369).
16209 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
16210 + Minor changes for ODF 1.2 conformance (#939). We leave the
16211 nonconforming `contextual-spacing` attribute, which is provided by
16212 LibreOffice itself and seems well supported.
16216 + Fixed rendering of display math in lists.
16217 In 1.11 and 1.11.1, display math in lists rendered as a new list
16218 item. Now it always appears centered, just as outside of lists,
16219 and in proper display math style, no matter how far indented the
16220 containing list item is (#784).
16221 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
16222 Previously we used `w:cr` (#873).
16223 + Use Compact style for Plain block elements, to
16224 differentiate between tight and loose lists (#775).
16225 + Ignore most components of `reference.docx`.
16226 We take the `word/styles.xml`, `docProps/app.xml`,
16227 `word/theme/theme1.xml`, and `word/fontTable.xml` from
16228 `reference.docx`, ignoring everything else. This should help
16229 with the corruption problems caused when different versions of
16230 Word resave the reference.docx and reorganize things.
16231 + Made `--no-highlight` work properly.
16235 + Don't add `dc:creator` tags if present in EPUB metadata.
16236 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
16237 + Don't put blank title page in reading sequence.
16238 Set `linear="no"` if no title block. Addresses #797.
16239 + Download webtex images and include as data URLs.
16240 This allows you to use `--webtex` in creating EPUBs.
16241 Math with `--webtex` is automatically made self-contained.
16242 + In `data/epub.css`, removed highlighting styles (which
16243 are no longer needed, since styles are added by the HTML
16244 writer according to `--highlighting-style`). Simplified
16246 + If resource not found, skip it, as in Docx writer (#916).
16250 + Properly handle characters above the 0000-FFFF range.
16251 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
16252 + Fixed regression with RTF table of contents.
16253 + Only autolink absolute URIs. This fixes a regression, #830.
16257 + Only autolink absolute URIs. This fixes a regression, #830.
16258 + Don't wrap attributes in fenced code blocks.
16259 + Write full metadata in MMD style title blocks.
16260 + Put multiple authors on separate lines in pandoc titleblock.
16261 Also, don't wrap long author entries, as new lines get treated
16264 * `Text.Pandoc.Templates`:
16266 + Fixed bug retrieving default template for markdown variants.
16267 + Templates can now contain "record lookups" in variables;
16268 for example, `author.institution` will retrieve the `institution`
16269 field of the `author` variable.
16270 + More consistent behavior of `$for$`. When `foo` is not a list,
16271 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
16272 So if `foo` resolves to "", no output should be produced.
16273 See pandoc-templates#39.
16275 * Citation processing improvements (now part of pandoc-citeproc):
16277 + Fixed `endWithPunct` The new version correctly sees a sentence
16278 ending in '.)' as ending with punctuation. This fixes a bug which
16279 led such sentences to receive an extra period at the end: '.).'.
16280 Thanks to Steve Petersen for reporting.
16281 + Don't interfere with Notes that aren't citation notes.
16282 This fixes a bug in which notes not generated from citations were
16283 being altered (e.g. first letter capitalized) (#898).
16284 + Only capitalize footnote citations when they have a prefix.
16285 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
16286 inserted before it before passing to citeproc-hs, so that bare numbers
16287 are treated as page numbers by default. A suffix not beginning with
16288 punctuation has a space added at the beginning (rather than a comma and
16289 space, as was done before for not-author-in-text citations).
16290 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
16291 properly, with '23' treated as a locator of type 'page'.
16292 + Many improvements to citation rendering, due to fixes in citeproc-hs
16293 (thanks to Andrea Rossato).
16294 + Warnings are issued for undefined citations, which are rendered
16296 + Fixed hanging behavior when locale files cannot be found.
16298### Template changes
16300 * DocBook: Use DocBook 4.5 doctype.
16302 * Org: '#+TITLE:' is inserted before the title.
16303 Previously the writer did this.
16305 * LaTeX: Changes to make mathfont work with xelatex.
16306 We need the mathspec library, not just fontspec, for this.
16307 We also need to set options for setmathfont (#734).
16309 * LaTeX: Use `tex-ansi` mapping for `monofont`.
16310 This ensures that straight quotes appear as straight, rather than
16311 being treated as curly. See #889.
16313 * Made `\includegraphics` more flexible in LaTeX template.
16314 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
16316 * LaTeX/Beamer: Added `classoption` variable.
16317 This is intended for class options like `oneside`; it may
16318 be repeated with different options. (Thanks to Oliver Matthews.)
16320 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
16322 * LaTeX: Added `biblio-style` variable (#920).
16324 * DZSlides: title attribute on title section.
16326 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
16328### Under-the-hood improvements
16330 * Markdown reader:Improved strong/emph parsing, using the strategy of
16331 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
16332 no backtracking, and no keeping track of nesting levels. It will give
16333 different results in some edge cases, but these should not affect normal
16336 * Added `Text.Pandoc.Compat.Monoid`.
16337 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
16338 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
16340 * Added `Text.Pandoc.Compat.TagSoupEntity`.
16341 This allows pandoc to compile with `tagsoup` 0.13.x.
16342 Thanks to Dirk Ullrich for the patch.
16344 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
16345 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
16346 handle simple math in bibliography fields.)
16348 * Added `Text.Pandoc.Writers.Shared` for shared functions used
16349 only in writers. `metaToJSON` is used in writers to create a
16350 JSON object for use in the templates from the pandoc metadata
16351 and variables. `getField`, `setField`, and `defField` are
16352 for working with JSON template contexts.
16354 * Added `Text.Pandoc.Asciify` utility module.
16355 This exports functions to create ASCII-only versions of identifiers.
16357 * `Text.Pandoc.Parsing`
16359 + Generalized state type on `readWith` (API change).
16360 + Specialize readWith to `String` input. (API change).
16361 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
16362 with `stateMeta` and `stateMeta'`.
16364 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
16365 bytestrings seemed to cause problems using pandoc on 64-bit Windows
16368 * Factored out `registerHeader` from markdown reader, added to
16369 `Text.Pandoc.Parsing`.
16371 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
16372 Reason: < 0.5 does not provide a monoid instance for Attribute,
16373 which is now needed by the HTML writer (#803).
16375 * Added `http-conduit` flag, which allows fetching https resources.
16376 It also brings in a large number of dependencies (`http-conduit`
16377 and its dependencies), which is why for now it is an optional flag
16380 * Added CONTRIBUTING.md.
16382 * Improved INSTALL instructions.
16384 * `make-windows-installer.bat`: Removed explicit paths for executables.
16386 * `aeson` is now used instead of `json` for JSON.
16388 * Set default stack size to 16M. This is needed for some large
16389 conversions, esp. if pandoc is compiled with 64-bit ghc.
16391 * Various small documentation improvements.
16392 Thanks to achalddave and drothlis for patches.
16394 * Removed comment that chokes recent versions of CPP (#933).
16396 * Removed support for GHC version < 7.2, since pandoc-types now
16397 requires at least GHC 7.2 for GHC generics.
16400## pandoc 1.11.1 (2013-03-17)
16404 + Fixed regression in which parentheses were lost in link URLs.
16405 Added tests. Closes #786.
16406 + Better handling of unmatched double quotes in `--smart` mode.
16407 These occur frequently in fiction, since it is customary not to
16408 close quotes in dialogue if the speaker does not change between
16409 paragraphs. The unmatched quotes now get turned into literal
16410 left double quotes. (No `Quoted` inline is generated, however.)
16411 Closes #99 (again).
16413 * HTML writer: Fixed numbering mismatch between TOC and sections.
16414 `--number-offset` now affects TOC numbering as well
16415 as section numbering, as it should have all along. Closes #789.
16417 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
16418 as markdown citations, even if `--bibliography` was specified, unless
16419 `citation` extension is disabled. Now, formatted citations are always
16420 printed if `--bibliography` was specified. If you want to reformat
16421 markdown keeping pandoc markdown citations intact, don't use
16422 `--bibliography`. Note that citations parsed from LaTeX documents will
16423 be rendered as pandoc markdown citations when `--bibliography` is not
16426 * ODT writer: Fixed regression leading to corrupt ODTs.
16427 This was due to a change in the `Show` instance for
16428 `Text.Pandoc.Pretty.Doc`. Closes #780.
16430 * Fixed spacing bugs involving code block attributes in
16431 RST reader and Markdown writer. Closes #763.
16433 * Windows package: Various improvements due to Fyodor Sheremetyev.
16435 + Automatically set installation path (Program Files or Local App Data).
16436 + Set system PATH environment variable when installing for all users.
16437 + Pandoc can installed for all users using the following command.
16438 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
16440 * Bumped QuickCheck version bound.
16442## pandoc 1.11 (2013-03-09)
16444 * Added `--number-offset` option. (See README for description.)
16446 * Added `--default-image-extension` option. (See README for description.)
16448 * `--number-sections` behavior change: headers with class `unnumbered`
16449 will not be numbered.
16451 * `--version` now reports the default data directory.
16453 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
16455 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
16457 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
16458 a field for `Attr` rather than just `String`. (API change.)
16460 * Added `markdown_github` as input format. This was an accidental
16463 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
16466 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
16470 + Fixed captions with longtable. Thanks to Joost Kremers.
16471 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
16475 + Load microtype after fonts. Microtype needs to know
16476 what fonts are being used. Thanks to dfc for the patch.
16477 + Set `secnumdepth` to 5 if `--number-sections` specified.
16478 This yields behavior equivalent to the other writers, numbering
16479 level 4 and 5 headers too. Closes #753.
16483 + Handle `<colgroup>` tag.
16484 + Preserve all header attributes.
16488 + Parse `\hrule` as `HorizontalRule`. Closes #746.
16489 + Parse starred variants of `\section` etc. as headers with
16490 attribute `unnumbered`.
16491 + Read optional attributes in `lstlisting` and `Verbatim` environments.
16492 We convert these to pandoc standard names, e.g. `numberLines`
16493 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
16494 + Handle language attribute for lstlistings.
16495 + Better support for Verbatim and minted environments. Closes #763.
16499 + `-` in an attribute context = `.unnumbered`. The point of this
16500 is to provide a way to specify unnumbered headers in non-English
16502 + Fixed bug parsing key/value attributes. Parsing failed if you
16503 had an unquoted attribute immediately before the final '}'.
16504 + Make backslash escape work in attributes.
16505 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
16506 pandoc will parse a MMD title block if it sees one, even if
16507 `pandoc_title_blocks` is enabled.
16508 + Refactoring: `litChar` now includes entities, so we don't need
16509 to use `fromEntities` e.g. on titles.
16510 + Allow spaces around borders in pipe tables. Closes #772.
16511 + Allow all punctuation in angle-bracket autolinks. Previously
16512 things like `----` were disallowed, because the uri parser
16513 treated them as trailing punctuation. Closes #768.
16514 + Make `implicit_header_references` work properly when
16515 headers are given explicit identifiers.
16516 + Check for tables before line blocks. Otherwise some pipe
16517 tables get treated as line blocks.
16518 + Allow `&` in emails (for entities).
16519 + Properly handle entities in titles and links. A markdown link
16520 `<http://göogle.com>` should be a link to `http://göogle.com`.
16525 + Handle attributes on headers.
16529 + Add `fig:` as title for images with captions.
16530 This is needed for them to be rendered as figures. Closes #766.
16531 + Never emit an empty paragraph. See #761.
16532 + Handle `\caption` for images in figures. Closes #766.
16533 + Parse `\section*`, etc. as unnumbered sections.
16537 + Support header attributes. The attributes go on
16538 the enclosing `section` or `div` tag if `--section-divs` is specified.
16539 + Fixed a regression (only now noticed) in html+lhs output.
16540 Previously the bird tracks were being omitted.
16544 + Omit lists with no items to avoid LaTeX errors.
16545 + Support line numbering with `--listings`.
16546 If `numberLines` class is present, we add `numbers=left`;
16547 if `startFrom` is present, we add `firstnumber=`. (#763)
16551 + Removed `\placecontent`. This produced a duplicate toc,
16552 in conjunction with `\placelist`.
16553 + Use `\title`, `\subject` etc. for headers with
16554 `unnumbered` class.
16558 + Support header attributes.
16562 + Use grid tables when needed, and if enabled. Closes #740.
16563 + Render citations as pandoc-markdown citations.
16564 Previously citations were rendered as citeproc-formatted citations
16565 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
16566 unless the `citations` extension is disabled.
16567 If you still want formatted citations in your markdown output,
16568 use `pandoc -t markdown-citations`.
16572 + Support `:number-lines:` in code blocks.
16576 + Better treatment of display math. Display math inside a
16577 paragraph is now put in a separate paragraph, so it will render
16578 properly (centered and without extra blank lines around it).
16579 Partially addresses #742.
16580 + Content types and document rels xml files are now created from
16581 scratch, rather than being taken over from `reference.docx`.
16582 This fixes problems that arise when you edit the `reference.docx`
16584 + We also now encode mime types for each individual image rather
16585 than using defaults. This should allow us to handle a wider
16586 range of image types (including PDF). Closes #414.
16587 + Changed style names in `reference docx`.
16588 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
16589 The old names got changed by Word when the `reference.docx` was
16590 edited. Closes #414.
16594 + Fix section numbering. Previously the numbering restarted from 1
16595 in each chapter (with `--number-sections`), though the numbers in
16596 the table of contents were correct.
16597 + Headers with "unnumbered" attribute are not numbered. (Nor do they
16598 cause an increment in running numbering.) Section numbers now work
16599 properly, even when there is material before the first numbered section.
16600 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
16601 but `linear` is set to `no` unless the `--toc` option is specified.
16602 Include `<guide>` element in OPF. This should allow the TOC to
16603 be usable in Kindles when converted with kindlegen. Closes #773.
16605 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
16606 This dramatically reduces the speed penalty that comes from enabling the
16607 `autolink_bare_uris` extension. The penalty is still substantial (in one
16608 test, from 0.33s to 0.44s), but nowhere near what it used to be.
16609 The RST reader is also much faster now, as it autodetects URIs.
16611 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
16612 with class "unnumbered". Unnumbered sections get `[]` for their
16615 * `Text.Pandoc.Pretty`:
16617 + Fixed `chomp` so it works inside `Prefixed` elements.
16618 + Changed `Show` instance so it is better for debugging.
16620 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
16622 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
16624 * Windows installer improvements:
16626 + The installer is now signed with a certificate (thanks to
16627 Fyodor Sheremetyev).
16628 + WiX is used instead of InnoSetup. The installer is now a
16630 + The version number is now auto-detected, and need not be
16631 updated separately.
16633 * OSX installer improvements:
16635 + The package and pandoc executable are now signed with a
16636 certificate (thanks to Fyodor Sheremetyev).
16637 + RTF version of license is used.
16638 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
16641 * Converted COPYING to markdown.
16643 * pandoc.cabal: Require latest versions of highlighting-kate,
16644 texmath, citeproc-hs, zip-archive.
16646## pandoc 1.10.1 (2013-01-23)
16648 * Markdown reader: various optimizations, leading to a
16649 significant performance boost.
16651 * RST reader: Allow anonymous form of inline links:
16652 `` `hello <url>`__ `` Closes #724.
16654 * Mediawiki reader: Don't require newlines after tables.
16655 Thanks to jrunningen for the patch. Closes #733.
16657 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
16658 when output is LaTeX, and applied when it is another format.
16659 Partially addresses #730.
16661 * Markdown and RST readers: Added parser to `block` that skips blank
16662 lines. This fixes a subtle regression involving grid tables with
16663 empty cells. Also added test for grid table with empty cells.
16666 * RST writer: Use `.. code:: language` for code blocks with language.
16669 * DocBook writer: Fixed output for hard line breaks, adding a newline
16670 between `<literallayout>` tags.
16672 * Markdown writer: Use an autolink when link text matches url.
16673 Previously we also checked for a null title, but this
16674 test fails for links produced by citeproc-hs in bibliographies.
16675 So, if the link has a title, it will be lost on conversion
16676 to an autolink, but that seems okay.
16678 * Markdown writer: Set title, author, date variables as before.
16679 These are no longer used in the default template, since we use
16680 titleblock, but we set them anyway for those who use custom templates.
16682 * LaTeX writer: Avoid extra space at start/end of table cell.
16683 Thanks to Nick Bart for the suggestion of using @{}.
16685 * `Text.Pandoc.Parsing`:
16687 + More efficient version of `anyLine`.
16688 + Type of `macro` has changed; the parser now returns `Blocks`
16689 instead of `Block`.
16691 * Relaxed old-time version bound, allowing 1.0.*.
16693 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
16694 should create a symlink as described in the README.
16696## pandoc 1.10.0.5 (2013-01-23)
16698 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
16699 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
16700 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
16702 * Markdown reader: Fixed bug with headerless grid tables.
16703 The 1.10 code assumed that each table header cell contains exactly one
16704 block. That failed for headerless tables (0) and also for tables with
16705 multiple blocks in a header cell. The code is fixed and tests provided.
16706 Thanks to Andrew Lee for pointing out the bug.
16708 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
16710 + Tilde code fences can again take a bare language string
16711 (`~~~ haskell`), not just curly-bracketed attributes
16712 (`~~~ {.haskell}`).
16713 + Backtick code blocks can take the curly-bracketed attributes.
16714 + Backtick code blocks don't *require* a language.
16715 + Consolidated code for the two kinds of fenced code blocks.
16717 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
16719 * Markdown writer: Use proportional font for email autolinks with
16720 obfuscation. Closes #714.
16722 * Corrected name of `blank_before_blockquote` in README. Closes #718.
16724 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
16725 The bug prevented an autolink at the end of a string (e.g.
16726 at the end of a line block line) from counting as a link. Closes #711.
16728 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
16729 This should work on Windows, unlike the TH solution with
16732 * Eliminated use of TH in test suite.
16734 * Added `Text.Pandoc.Data` (non-exported) to hold the association
16735 list of embedded data files, if the `embed_data_files` flag is selected.
16736 This isolates the code that needs special treatment with file-embed or
16739 * Changes to `make-windows-installer.bat`.
16741 + Exit batch file if any of the cabal-dev installs fail.
16742 + There's no longer any need to reinstall `highlighting-kate`.
16743 + Don't start with a `cabal update`; leave that to the user.
16744 + Force reinstall of pandoc.
16746 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
16749## pandoc 1.10.0.4 (2013-01-20)
16751 * Fixed bug with escaped % in LaTeX reader. Closes #710.
16753## pandoc 1.10.0.3 (2013-01-20)
16755 * Added further missing fb2 tests to cabal file.
16757## pandoc 1.10.0.2 (2013-01-20)
16759 * Added fb2 tests to cabal file's extra-source-files.
16761## pandoc 1.10.0.1 (2013-01-20)
16763 * Bump version bounds on test-framework packages.
16765## pandoc 1.10 (2013-01-19)
16769 * New input formats: `mediawiki` (MediaWiki markup).
16771 * New output formats: `epub3` (EPUB v3 with MathML),
16772 `fb2` (FictionBook2 ebooks).
16774 * New `--toc-depth` option, specifying how many levels of
16775 headers to include in a table of contents.
16777 * New `--epub-chapter-level` option, specifying the header
16778 level at which to divide EPUBs into separate files.
16779 Note that this normally affects only performance, not the
16780 visual presentation of the EPUB in a reader.
16782 * Removed the `--strict` option. Instead of using `--strict`,
16783 one can now use the format name `markdown_strict` for either input
16784 or output. This gives more fine-grained control that `--strict`
16785 did, allowing one to convert from pandoc's markdown to strict
16786 markdown or vice versa.
16788 * It is now possible to enable or disable specific syntax
16789 extensions by appending them (with `+` or `-`) to the writer
16790 or reader name. For example,
16792 pandoc -f markdown-footnotes+hard_line_breaks
16794 disables footnotes and enables treating newlines as hard
16795 line breaks. The literate Haskell extensions are now implemented
16796 this way as well, using either `+lhs` or `+literate_haskell`.
16797 For a list of extension names, see the README under
16798 "Pandoc's Markdown."
16800 * The following aliases have been introduced for specific
16801 combinations of markdown extensions: `markdown_phpextra`,
16802 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
16803 work just like regular reader and writer names, and can be modified
16804 with extension modifiers as described above. (Note that conversion
16805 from one markdown dialect to another does not work perfectly,
16806 because there are differences in markdown parsers besides
16807 just the extensions, and because pandoc's internal document model is
16808 not rich enough to capture all of the extensions.)
16810 * New `--html-q-tags` option. The previous default was to use `<q>`
16811 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
16812 Moreover, they are not a robust way of typesetting quotes, since
16813 some user agents don't support them, and some CSS resets (e.g.
16814 bootstrap) prevent pandoc's quotes CSS from working properly.
16815 We now just insert literal quote characters by default in both
16816 `html` and `html5` output, but this option is provided for
16817 those who still want `<q>` tags.
16819 * The markdown reader now prints warnings (to stderr) about
16820 duplicate link and note references. Closes #375.
16822 * Markdown syntax extensions:
16824 + Added pipe tables. Thanks to François Gannaz for the initial patch.
16825 These conform to PHP Markdown Extra's pipe table syntax. A subset
16826 of org-mode table syntax is also supported, which means that you can
16827 use org-mode's nice table editor to create tables.
16829 + Added support for RST-style line blocks. These are
16830 useful for verse and addresses.
16832 + Attributes can now be specified for headers, using the same
16833 syntax as in code blocks. (However, currently only the
16834 identifier has any effect in most writers.) For example,
16838 See [the header above](#foo).
16840 + Pandoc will now act as if link references have been defined
16841 for all headers without explicit identifiers.
16842 So, you can do this:
16846 Link to [My header].
16847 Another link to [it][My header].
16853 + Command macros now work everywhere, including non-math.
16854 Environment macros still not supported.
16855 + `\input` now works, as well as `\include`. TEXINPUTS is used.
16856 Pandoc looks recursively into included files for more included files.
16858### Behavior changes
16860 * The Markdown reader no longer puts the text of autolinks in a
16861 `Code` inline. This means that autolinks will no longer appear
16862 in a monospace font.
16864 * The character `/` can now appear in markdown citation keys.
16866 * HTML blocks in strict_markdown are no longer required to begin
16867 at the left margin. Technically this is required, according to
16868 the markdown syntax document, but `Markdown.pl` and other markdown
16869 processors are more liberal.
16871 * The `-V` option has been changed so that if there are duplicate
16872 variables, those specified later on the command line take precedence.
16874 * Tight lists now work in LaTeX and ConTeXt output.
16876 * The LaTeX writer no longer relien on the `enumerate` package.
16877 Instead, it uses standard LaTeX commands to change the list numbering
16880 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
16881 tables to be split over page boundaries.
16883 * The RST writer now uses a line block to render paragraphs containing
16884 linebreaks (which previously weren't supported at all).
16886 * The markdown writer now applies the `--id-prefix` to footnote IDs.
16889 * The plain writer no longer uses backslash-escaped line breaks
16890 (which are not very "plain").
16892 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
16893 Read bytestring and use `Text`'s decodeUtf8 instead of using
16894 `System.IO.hGetContents`. This way you get a message saying
16895 "invalid UTF-8 stream" instead of "invalid byte sequence."
16896 You are also told which byte caused the problem.
16898 * Docx, ODT, and EPUB writers now download images specified by a URL
16899 instead of skipping them or raising an error.
16903 + The default CSS now left-aligns headers by default, instead of
16904 centering. This is more consistent with the rest of the writers.
16905 + A proper multi-level table of contents is now used in `toc.ncx`.
16906 There is no longer a subsidiary table of contents at the beginning
16908 + Code highlighting now works by default.
16909 + Section divs are used by default for better semantic markup.
16910 + The title is used instead of "Title Page" in the table of contents.
16911 Otherwise we have a hard-coded English string, which looks
16912 strange in ebooks written in other languages. Closes #572.
16916 + Put mathjax in span with class "math". Closes #562.
16917 + Put citations in a span with class "citation." In HTML5, also include
16918 a `data-cite` attribute with a space-separated list of citation
16921 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
16922 This treats both `\r\n` and `\n` as `\n` on input, no matter
16923 what platform we're running on.
16925 * Citation processing is now done in the Markdown and LaTeX
16926 readers, not in `pandoc.hs`. This makes it easier for library users
16929### Template changes
16931 * HTML: Added css to template to preserve spaces in `<code>` tags.
16932 Thanks to Dirk Laurie.
16934 * Beamer: Remove English-centric strings in section pages.
16935 Section pages used to have "Section" and a number as well as the
16936 section title. Now they just have the title. Similarly for part
16937 and subsection. Closes #566.
16939 * LaTeX, ConTeXt: Added papersize variable.
16941 * LaTeX, Beamer templates: Use longtable instead of ctable.
16943 * LaTeX, Beamer templates: Don't require 'float' package for tables.
16944 We don't actually seem to use the '[H]' option.
16946 * Markdown, plain: Fixed titleblock so it is just a single string.
16947 Previously separate title, author, and date variables were used,
16948 but this didn't allow different kinds of title blocks.
16952 + Rationalized templates. Previously there were three different
16953 templates involved in epub production. There is now just one
16954 template, `default.epub` or `default.epub3`. It can now be
16955 overridden using `--template`, just like other templates.
16956 The titlepage is now folded into the default template.
16957 A `titlepage` variable selects it.
16958 + UTF-8, lang tag, meta tags, title element.
16960 * Added scale-to-width feature to beamer template
16964 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
16965 Previously header identifiers were autogenerated by the writers.
16966 Now they are added in the readers (either automatically or explicitly).
16968 * `Text.Pandoc.Builder`:
16970 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
16971 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
16972 custom Monoid instances for `Many Inline` and `Many Block. This
16973 allows `Many` to be made an instance of `Foldable` and `Traversable`.
16974 + The old `Listable` class has been removed.
16975 + The module now exports `isNull`, `toList`, `fromList`.
16976 + The old `Read` and `Show` instances have been removed; derived
16977 instances are now used.
16978 + Added `headerWith`.
16980 * The readers now take a `ReaderOptions` rather than a `ParserState`
16981 as a parameter. Indeed, not all parsers use the `ParserState` type;
16982 some have a custom state. The motivation for this change was to separate
16983 user-specifiable options from the accounting functions of parser state.
16985 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
16986 formerly in `Text.Pandoc.Shared`, and its associated
16987 data types. It also includes a new type `ReaderOptions`, which
16988 contains many options formerly in `ParserState`, and its associated
16991 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
16992 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
16993 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
16994 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
16995 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
16996 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
16997 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
16998 + `ParserState.stateIndentedCodeClasses` ->
16999 `ReaderOptions.readerIndentedCodeClasses`.
17000 + Added `ReaderOptions.readerCitationStyle`.
17002 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
17003 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
17004 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
17005 been renamed `writerEpubMetadata` for consistency.
17007 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
17008 longer stylesheet, fonts, reference files as separate parameters.
17010 * Removed `writerLiterateHaskell` from `WriterOptions`, and
17011 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
17012 by an extension (`Ext_literate_haskell`).
17014 * Removed deprecated `writerXeTeX`.
17016 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
17017 Strict is now handled through extensions.
17019 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
17020 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
17021 and `multimarkdownExtensions`, as well as the `Extensions` type.
17023 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
17026 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
17027 (thanks to Sergey Astanin).
17031 + Added `getReader`, `getWriter` to `Text.Pandoc`.
17032 + `writers` is now an association list `(String, Writer)`.
17033 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
17034 an `IOByteStringWriter`. ALL writers are now in the 'writers'
17035 list, including the binary writers and FB2 writer. This allows
17036 code in `pandoc.hs` to be simplified.
17037 + Changed type of `readers`, so all readers are in IO.
17038 Users who want pure readers can still get them form the reader
17039 modules; this just affects the function `getReader` that looks up
17040 a reader based on the format name. The point of this change is to
17041 make it possible to print warnings from the parser.
17043 * `Text.Pandoc.Parsing`:
17045 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
17046 No other module directly imports Parsec. This will make it easier
17047 to change the parsing backend in the future, if we want to.
17048 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
17049 + Export the type synonym `Parser`.
17050 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
17051 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
17052 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
17053 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
17054 + `ParserState` is no longer an instance of `Show`.
17055 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
17056 + Generalized type of `withQuoteContext`.
17057 + Added `guardEnabled`, `guardDisabled`, `getOption`.
17058 + Removed `failIfStrict`.
17059 + `lookupKeySrc` and `fromKey` are no longer exported.
17061 * `Data.Default` instances are now provided for `ReaderOptions`,
17062 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
17063 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
17064 of `defaultWriterOptions` (which is still defined). Closes #546.
17066 * `Text.Pandoc.Shared`:
17068 + Added `safeRead`.
17069 + Renamed `removedLeadingTrailingSpace` to `trim`,
17070 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
17071 + Count `\r` as space in `trim` functions.
17072 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
17074 + Removed `failUnlessLHS`.
17075 + Export `compactify'`, formerly in Markdown reader.
17076 + Export `isTightList`.
17077 + Do not export `findDataFile`.
17078 + `readDataFile` now returns a strict ByteString.
17079 + Export `readDataFileUTF8` which returns a String, like the
17080 old `readDataFile`.
17081 + Export `fetchItem` and `openURL`.
17083 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
17084 Removed `readImageSize`.
17086 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
17087 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
17090 * `Text.Pandoc.UTF8` is now an exposed module.
17092 * `Text.Pandoc.Biblio`:
17094 + csl parameter now a `String` rather than a `FilePath`.
17095 + Changed type of `processBiblio`. It is no longer in the IO monad.
17096 It now takes a `Maybe Style` argument rather than parameters for CSL
17097 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
17098 the style file and add abbreviations.)
17100 * Markdown reader now exports `readMarkdownWithWarnings`.
17102 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
17107 * Make `--ascii` work properly with `--self-contained`. Closes #568.
17111 + Fixed link parser to avoid exponential slowdowns. Closes #620.
17112 Previously the parser would hang on input like this:
17114 [[[[[[[[[[[[[[[[[[hi
17116 We fixed this by making the link parser parser characters
17117 between balanced brackets (skipping brackets in inline code spans),
17118 then parsing the result as an inline list. One change is that
17120 [hi *there]* bud](/url)
17122 is now no longer parsed as a link. But in this respect pandoc behaved
17123 differently from most other implementations anyway, so that seems okay.
17125 + Look for raw html/latex blocks before tables.
17126 Otherwise the following gets parsed as a table:
17137 + Added support for `:target:` on `.. image::` blocks
17139 + Field list fixes:
17141 - Fixed field lists items with body beginning after a new line
17143 - Allow any char but ':' in names of field lists in RST reader
17145 - Don't allow line breaks in field names.
17146 - Require whitespace after field list field names.
17147 - Don't create empty definition list for metadata field lists.
17148 Previously a field list consisting only of metadata fields (author,
17149 title, date) would be parsed as an empty DefinitionList, which is
17150 not legal in LaTeX and not needed in any format.
17152 + Don't recognize inline-markup starts inside words.
17153 For example, `2*2 = 4*1` should not contain an emphasized
17154 section. Added test case for "Literal symbols". Closes #569.
17155 + Allow dashes as separator in simple tables. Closes #555.
17156 + Added support for `container`, `compound`, `epigraph`,
17157 `rubric`, `highlights`, `pull-quote`.
17158 + Added support for `.. code::`.
17159 + Made directive labels case-insensitive.
17160 + Removed requirement that directives begin at left margin.
17161 This was (correctly) not in earlier releases; docutils doesn't
17162 make the requirement.
17163 + Added support for `replace::` and `unicode::` substitutions.
17164 + Ignore unknown interpreted roles.
17165 + Renamed image parser to `subst`, since it now handles all
17166 substitution references.
17170 + Allow newlines before pipes in table. Closes #654.
17171 + Fixed bug with list items containing line breaks.
17172 Now pandoc correctly handles hard line breaks inside list items.
17173 Previously they broke list parsing.
17174 + Implemented comment blocks.
17175 + Fixed bug affected words ending in hyphen.
17176 + Properly handle links with surrounding brackets.
17177 Square brackets need to be used when the link isn't surrounded by
17178 spaces or punctuation, or when the URL ending may be ambiguous.
17180 + Removed nullBlock. Better to know about parsing problems than
17181 to skip stuff when we get stuck.
17182 + Allow ID attributes on headers.
17183 + Textile reader: Avoid parsing dashes as strikeout.
17184 Previously the input
17191 would be parsed with strikeouts rather than dashes. This fixes
17192 the problem by requiring that a strikeout delimiting - not be
17193 followed by a -. Closes #631.
17194 + Expanded list of `stringBreakers`.
17195 This fixes a bug on input like "(_hello_)" which should
17196 be a parenthesized emphasized "hello".
17197 The new list is taken from the PHP source of textile 2.4.
17198 + Fixed autolinks. Previously the textile reader and writer
17199 incorrectly implemented RST-style autolinks for URLs and email
17200 addresses. This has been fixed. Now an autolink is done this way:
17201 `"$":http://myurl.com`.
17202 + Fixed footnotes bug in textile. This affected notes occurring
17203 before punctuation, e.g. `foo[1].`. Closes #518.
17207 + Better handling of citation commands.
17208 + Better handling of `\noindent`.
17209 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
17211 + Made `rawLaTeXInline` try to parse block commands as well. This
17212 is usually what we want, given how `rawLaTeXInline` is used in
17213 the markdown and textile readers. If a block-level LaTeX command
17214 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
17215 we can treat it as raw inline LaTeX.
17216 + Handle `\slash` command. Closes #605.
17217 + Basic `\enquote` support.
17218 + Fixed parsing of paragraphs beginning with a group. Closes #606.
17219 + Use curly quotes for bare straight quotes.
17220 + Support obeylines environment. Closes #604.
17221 + Guard against "begin", "end" in inlineCommand and
17223 + Better error messages for environments. Now it should tell you that
17224 it was looking for \end{env}, instead of giving "unknown parse error."
17228 + Added HTML 5 tags to list of block-level tags.
17229 + HTML reader: Fixed bug in `htmlBalanced`, which
17230 caused hangs in parsing certain markdown input using
17232 + Parse `<q>` as `Quoted DoubleQuote`.
17233 + Handle nested `<q>` tags properly.
17234 + Modified `htmlTag` for fewer false positives.
17235 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
17236 This makes it more useful in the wikimedia and markdown parsers.
17238 * DocBook reader: Support title in "figure" element. Closes #650.
17240 * MediaWiki writer:
17242 + Remove newline after `<br/>` in translation of `LineBreak`
17243 There's no particular need for a newline (other than making the
17244 generated MediaWiki source look nice to a human), and in fact
17245 sometimes it is incorrect: in particular, inside an enumeration, list
17246 items cannot have embedded newline characters. (Brent Yorgey)
17247 + Use `<code>` not `<tt>` for Code.
17249 * Man writer: Escape `-` as `\-`.
17250 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
17251 signs. That is preferable for use with command-line options. See
17252 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
17253 to Andrea Bolognani for bringing the issue to our attention.
17257 + Improved line block output. Use nonbreaking spaces for
17258 initial indent (otherwise lost in HTML and LaTeX).
17259 Allow multiple paragraphs in a single line block.
17260 Allow soft breaks w continuations in line blocks.
17261 + Properly handle images with no alt text. Closes #678.
17262 + Fixed bug with links with duplicate text. We now (a) use anonymous
17263 links for links with inline URLs, and (b) use an inline link instead
17264 of a reference link if the reference link would require a label that
17265 has already been used for a different link. Closes #511.
17266 + Fixed hyperlinked images. Closes #611. Use `:target:`
17267 field when you have a simple linked image.
17268 + Don't add `:align: center` to figures.
17270 * Texinfo writer: Fixed internal cross-references.
17271 Now we insert anchors after each header, and use `@ref` instead of `@uref`
17272 for links. Commas are now escaped as `@comma{}` only when needed;
17273 previously all commas were escaped. (This change is needed, in part,
17274 because `@ref` commands must be followed by a real comma or period.) Also
17275 insert a blank line in from of `@verbatim` environments.
17279 + Made --id-prefix work in DocBook as well as HTML.
17281 + Don't include empty captions in figures. Closes #581.
17285 + Use `\hspace*` for nonbreaking space after line break,
17286 since `~` spaces after a line break are just ignored.
17288 + Don't escape `_` in URLs or hyperref identifiers.
17289 + Properly escape strings inside `\url{}`. Closes #576.
17290 + Use `[fragile]` only for slides containing code rendered
17291 using listings. Closes #649.
17292 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
17293 highlighting-kate's macros, which redefine `|` as a short verbatim
17294 delimiter. Thanks to Björn Peemöller for raising this issue.
17295 + Use minipage rather than parbox for block containers in tables.
17296 This allows verbatim code to be included in grid tables.
17298 + Prevent paragraphs containing only linebreaks or spaces.
17302 + Included `highlighting-css` for code spans, too.
17303 Previously it was only included if used in a code block. Closes #653.
17304 + Improved line breaks with `<dd>` tags. We now put a newline between
17305 `</dd>` and `<dd>` when there are multiple definitions.
17306 + Changed mathjax cdn url so it doesn't use https. (This caused
17307 problems when used with `--self-contained`.) See #609.
17311 + `--number-sections` now works properly.
17312 + Don't strip meta and link elements in epub metadata.
17313 Patch from aberrancy. Closes #589.
17314 + Fixed a couple validation bugs.
17315 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
17316 of chapters in some readers, which apparently sort ch2 after ch10.
17319 * ODT writer: properly set title property (Arlo O'Keeffe).
17323 + Fixed bug with nested lists. Previously a list like
17330 would come out with a bullet instead of "2."
17331 Thanks to Russell Allen for reporting the bug.
17332 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
17333 This seems to fix a problem viewing pandoc-generated
17334 docx files in LibreOffice.
17335 + Use integer ids for bookmarks. Closes #626.
17336 + Added nsid to abstractNum elements. This helps when merging
17337 word documents with numbered or bulleted lists. Closes #627.
17338 + Use separate footnotes.xml for notes.
17339 This seems to help LibreOffice convert the file, even though
17340 it was valid docx before. Closes #637.
17341 + Use rIdNN identifiers for r:embed in images.
17342 + Avoid reading image files again when we've already processed them.
17343 + Fixed typo in `referenc.docx` that prevented image captions from
17344 working. Thanks to Huashan Chen.
17346 * `Text.Pandoc.Parsing`:
17348 + Fixed bug in `withRaw`, which didn't correctly handle the case
17349 where nothing is parsed.
17350 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
17351 though it still doesn't implement quoted strings in email addresses.
17352 + Revised URI parser. It now allows many more schemes, allows
17353 uppercase URIs, and better handles trailing punctuation and
17354 trailing slashes in bare URIs. Added many tests.
17355 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
17356 etc. parse properly. Formerly we had some English-centric heuristics,
17357 but they are no longer needed. Closes #698.
17359 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
17360 This fixes bug with Chinese commas in markdown and reST tables, and
17361 a bug that caused combining characters to be dropped.
17363 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
17365 * `Text.Pandoc.Biblio`:
17367 + Run `mvPunc` and `deNote` on metadata too.
17368 This fixed a bug with notes on titles using footnote styles.
17369 + Fixed bug in fetching CSL files from CSL data directory.
17371 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
17372 is provided. It should be the URL up to the path.
17374 * Fixed/simplified diff output for tests.
17375 Biblio: Make sure mvPunc and deNote run on metadata too.
17376 This fixed a bug with notes on titles using footnote styles.
17378### Under the hood improvements
17380 * We no longer depend on `utf8-string`. Instead we use functions
17381 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
17383 * Use `safeRead` instead of using `reads` directly (various modules).
17385 * "Implicit figures" (images alone in a paragraph) are now handled
17386 differently. The markdown reader gives their titles the prefix `fig:`; the
17387 writers look for this before treating the image as a figure. Though this
17388 is a bit of a hack, it has two advantages: (i) implicit figures can be
17389 limited to the markdown reader, and (ii) they can be deactivated by turning
17390 off the `implicit_figures` extension.
17392 * `catch` from `Control.Exception` is now used instead of the
17393 old Preface `catch`.
17395 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
17396 and `oneOfStrings` (which is now non-backtracking).
17398 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
17399 Now citeproc-hs is fixed upstream, so this is no longer needed.
17402 * Textile reader: Improved speed of `hyphenedWords`.
17403 This speeds up the textile reader by about a factor of 4.
17405 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
17406 better performance, and automatic normalization.
17408 * Major rewrite of markdown reader:
17410 + Use `Text.Pandoc.Builder` instead of lists. This also
17411 means that everything is normalized automatically.
17412 + Move to a one-pass parsing strategy, returning values in the reader
17413 monad, which are then run (at the end of parsing) against the final
17416 * In HTML writer, we now use `toHtml` instead of pre-escaping.
17417 We work around the problem that blaze-html unnecessarily escapes `'`
17418 by pre-escaping just the `'` characters, instead of the whole string.
17419 If blaze-html later stops escaping `'` characters, we can simplify
17420 `strToHtml` to `toHtml`. Closes #629.
17422 * Moved code for embedding images in RTFs from `pandoc.hs` to the
17423 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
17425 * Moved citation processing from `pandoc.hs` into the readers.
17426 This makes things more convenient for library users.
17428 * The man pages are now built by an executable `make-pandoc-man-pages`,
17429 which has its own stanza in the cabal file so that dependencies can be
17430 handled by Cabal. Special treatment in `Setup.hs` ensures that this
17431 executable never gets installed; it is only used to create the man pages.
17433 * The cabal file has been modified so that the pandoc library is used
17434 in building the pandoc executable. (This required moving `pandoc.hs`
17435 from `src` to `.`.) This cuts compile time in half.
17437 * The `executable` and `library` flags have been removed.
17439 * `-threaded` has been removed from ghc-options.
17441 * Version bounds of dependencies have been raised, and the
17442 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
17445 * We now require base >= 4.2.
17447 * Integrated the benchmark program into cabal. One can now do:
17449 cabal configure --enable-benchmarks && cabal build
17450 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
17452 The benchmark now uses README + testsuite, so benchmark results
17453 from older versions aren't comparable.
17455 * Integrated test suite with cabal.
17456 To run tests, configure with `--enable-tests`, then `cabal test`.
17457 You can specify particular tests using `--test-options='-t markdown'`.
17458 No output is shown unless tests fail. The Haskell test modules
17459 have been moved from `src/` to `tests/`.
17461 * Moved all data files and templates to the `data/` subdirectory.
17463 * Added an `embed_data_files` cabal flag. This causes all
17464 data files to be embedded in the binary, so that the binary
17465 is self-sufficient and can be relocated anywhere, copied on
17466 a USB key, etc. The Windows installer now uses this.
17467 (Since we no longer have the option to build the executable
17468 without the library, this is the only way to get a relocatable
17469 binary on Windows.)
17471 * Removed pcre3.dll from windows package.
17472 It isn't needed unless highlighting-kate is compiled with the
17473 `pcre-light` flag. By default, regex-prce-builtin is used.
17476## pandoc 1.9.4.5 (2012-10-21)
17478 * Raised version bounds on network, base64-bytestring, json,
17479 and template-haskell.
17481## pandoc 1.9.4.4 (2012-10-20)
17483 * Removed `tests` flag and made test suite into a proper cabal
17484 test suite, which can now be enabled using `--enable-tests`
17485 and run with `cabal test`.
17487 * Moved man page creation out of `Setup.hs` and into an
17488 executable built by Cabal, but never installed. This
17489 allows dependencies to be specified, and solves a problem
17490 with 1.9.4.3, which could only be installed if `data-default`
17491 had already been installed.
17493 * Updated `lhs-latex.tex` test for latest highlighting-kate
17494 representation of backticks.
17496## pandoc 1.9.4.3 (2012-10-20)
17498 * Removed `-threaded` from default compile flags.
17500 * Modified modules to compile with GHC 7.6 and latest version of time
17503## pandoc 1.9.4.2 (2012-06-29)
17505 * Don't encode/decode file paths if base >= 4.4.
17506 Prior to base 4.4, filepaths and command line arguments were treated
17507 as unencoded lists of bytes, not unicode strings, so we had to work
17508 around that by encoding and decoding them. This commit adds CPP
17509 checks for the base version that intelligibly enable encoding/decoding
17510 when needed. Fixes a bug with multilingual filenames when pandoc was
17511 compiled with ghc 7.4 (#540).
17513 * Don't generate an empty H1 after hrule slide breaks.
17514 We now use a slide-level header with contents `[Str "\0"]` to mark
17515 an hrule break. This avoids creation of an empty H1 in these
17516 contexts. Closes #484.
17518 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
17520 * In make_osx_package.sh, ensure citeproc-hs is built with the
17521 embed_data_files flag.
17523 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
17525 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
17526 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
17528 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
17531 * Added webm to mime types. Closes #543.
17533 * Added some missing exports and tests to the cabal file
17534 (Alexander V Vershilov).
17536 * Compile with `-rtsopts` and `-threaded` by default.
17538## pandoc 1.9.4.1 (2012-06-08)
17540 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
17542 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
17543 variables. Make TOC links black.
17545 * LaTeX template improvements.
17547 + Don't print date unless one is given explicitly in the document.
17548 + Simplified templates.
17549 + Use fontenc [T1] by default, and lmodern.
17550 + Use microtype if available.
17554 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
17555 Motivation: `@item1 [50]` should be as close as possible to
17557 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
17558 beginning with a citation to be empty. Closes #531.
17560 * Fixed documentation on mixed lists. Closes #533.
17562## pandoc 1.9.4 (2012-06-03)
17564 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
17565 footnotes and captions. We now handle note citations by inserting
17566 footnotes during initial citation processing, and doing a separate
17567 pass later to remove notes inside notes.
17569 * Added 'zenburn' highlight style from highlighting-kate.
17571 * Added Slideous writer. Slideous is an HTML + javascript slide show
17572 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
17576 + Ensure we don't have extra blank lines at ends of cells.
17577 This can cause LaTeX errors, as they are interpreted as new paragraphs.
17578 + More consistent interblock spacing.
17579 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
17580 code in LaTeX. Closes #527.
17581 + Ensure that a Verbatim at the end of a footnote is followed by
17582 a newline. (Fixes a regression in the previous version.)
17583 + In default template, use black for internal links and TOC.
17584 Added commented-out code to use footnotes for links, as would
17585 be suitable in print output.
17587 * Beamer writer: When `--incremental` is used, lists inside
17588 a block quote should appear all at once. (This makes Beamer
17589 output consistent with the HTML slide show formats.)
17593 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
17594 to avoid gobbling spaces after the `%` sign.
17595 + Ensure space after `\stopformula`.
17599 + Use `:` form instead of `~` in definition lists, for better
17600 compatibility with other markdown implementations.
17601 + Don't wrap the term, because it breaks definition lists.
17602 + Use a nonzero space to prevent false recognition
17603 of list marker in ordered lists. Closes #516.
17605 * Org writer: Add space before language name. Closes #523.
17607 * Docx writer: Simplified bullet characters so they work properly
17608 with Word 2007. Closes #520.
17610 * LaTeX reader: Support `\centerline`.
17612 * RST reader: handle figures. Closes #522.
17614 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
17617## pandoc 1.9.3 (2012-05-12)
17619 * Added docbook reader (with contributions from Mauro Bieg).
17621 * Fixed bug in `fromEntities`. The previous version would turn
17622 `hi & low you know;` into `hi &`.
17626 + Don't skip nonbreaking spaces.
17627 Previously a paragraph containing just ` ` would be rendered
17628 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
17629 + Support `<col>` and `<caption>` in tables. Closes #486.
17633 + Don't recognize references inside delimited code blocks.
17634 + Allow list items to begin with lists.
17638 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
17639 + Control sequences can't be followed by a letter.
17640 This fixes a bug where `\begingroup` was parsed as `\begin`
17641 followed by `group`.
17642 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
17643 + Make `\label` and `\ref` sensitive to `--parse-raw`.
17644 If `--parse-raw` is selected, these will be parsed as raw latex
17645 inlines, rather than bracketed text.
17646 + Don't crash on unknown block commands (like `\vspace{10pt}`)
17647 inside `\author`; just skip them. Closes #505.
17651 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
17652 + Added support for LaTeX blocks and inlines (Paul Rivier).
17653 + Better conformance to RedCloth inline parsing (Paul Rivier).
17654 + Parse '+text+' as emphasized (should be underlined, but this
17655 is better than leaving literal plus characters in the output.
17657 * Docx writer: Fixed multi-paragraph list items. Previously they each
17658 got a list marker. Closes #457.
17662 + Added `--no-tex-ligatures` option to avoid replacing
17663 quotation marks and dashes with TeX ligatures.
17664 + Use `fixltx2e` package to provide `\textsubscript`.
17665 + Improve spacing around LaTeX block environments:
17666 quote, verbatim, itemize, description, enumerate.
17668 + Use blue instead of pink for URL links in latex/pdf output.
17670 * ConTeXt writer: Fixed escaping of `%`.
17671 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
17672 Inside URLs, `%` needs to be escaped as `\%`
17673 Thanks to jmarca and adityam for the fix. Closes #492.
17675 * Texinfo writer: Escape special characters in node titles.
17676 This fixes a problem pointed out by Joost Kremers. Pandoc used
17677 to escape an '@' in a chapter title, but not in the corresponding
17678 node title, leading to invalid texinfo.
17680 * Fixed document encoding in texinfo template.
17681 Resolves Debian Bug #667816.
17685 + Don't force delimited code blocks to be flush left.
17686 Fixes bug with delimited code blocks inside lists etc.
17687 + Escape `<` and `$`.
17689 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
17690 Previously we used `\href{\#ident}{text}`, which didn't work on
17691 all systems. Thanks to Dirk Laurie.
17693 * RST writer: Don't wrap link references. Closes #487.
17695 * Updated to use latest versions of blaze-html, mtl.
17698## pandoc 1.9.2 (2012-04-05)
17702 + Made `lstlisting` work as a proper verbatim environment.
17703 + Fixed bug parsing LaTeX tables with one column.
17707 + Use `{}` around `ctable` caption, so that formatting can be used.
17708 + Don't require eurosym package unless document has a €.
17710 * LaTeX template: Added variables for `geometry`, `romanfont`,
17711 `sansfont`, `mathfont`, `mainfont` so users can more easily
17716 + Run latex engine at least two times, to ensure
17717 that PDFs will have hyperlinked bookmarks.
17718 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
17720 * Texinfo writer: retain directories in image paths. (Peter Wang)
17722 * RST writer: Better handling of inline formatting, in accord
17723 with docutils' "inline markup recognition rules" (though we don't
17724 implement the unicode rules fully). Now `hi*there*hi` gets
17725 rendered properly as `hi\ *there*\ hi`, and unnecessary
17726 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
17730 + Parse `\ ` as null, not escaped space.
17731 + Allow `` :math:`...` `` even when not followed by blank
17732 or `\`. This does not implement the complex rule docutils follows,
17733 but it should be good enough for most purposes.
17734 + Add support for the rST default-role directive. (Greg Maslov)
17736 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
17739 * Markdown reader: Properly handle citations nested in other inline
17742 * Markdown writer: don't replace empty alt in image with "image".
17744 * DZSlides: Updated template.html and styles in default template.
17745 Removed bizarre CSS for `q` in dzslides template.
17747 * Avoid repeated `id` attribute in section and header in HTML slides.
17749 * README improvements: new instructions on internal links,
17750 removed misleading note on reST math.
17754 + Fixed Windows installer so that dzslides works.
17755 + Removed stripansi.sh.
17756 + Added .travis.yml for Travis continuous integration support..
17757 + Fixed upper bound for zlib (Sergei Trofimovich).
17758 + Fixed upper bound for test-framework.
17759 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
17762## pandoc 1.9.1.2 (2012-03-09)
17764 * Added `beamer+lhs` as output format.
17766 * Don't escape `<` in `<style>` tags with `--self-contained`.
17767 This fixes a bug which prevented highlighting from working
17768 when using `--self-contained`.
17770 * PDF: run latex engine three times if `--toc` specified.
17771 This fixes page numbers in the table of contents.
17773 * Docx writer: Added TableNormal style to tables.
17775 * LaTeX math environment fixes. `aligned` is now used instead of
17776 the nonexistent `aligned*`. `multline` instead of the nonexistent
17779 * LaTeX writer: Use `\textasciitilde` for literal `~`.
17781 * HTML writer: Don't escape contents of EQ tags with --gladtex.
17782 This fixes a regression from 1.8.
17784 * Use `<q>` tags for Quoted items for HTML5 output.
17785 The quote style can be changed by modifying the template
17786 or including a css file. A default quote style is included.
17788 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
17789 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
17791 * Updated LaTeX template for better language support.
17792 Use `polyglossia` instead of `babel` with xetex.
17793 Set `lang` as documentclass option.
17794 `\setmainlanguage` will use the last of a comma-separated
17795 list of languages. Thanks to François Gannaz.
17797 * Fixed default LaTeX template so `\euro` and `€` work. The
17798 `eurosym` package is needed if you are using pdflatex.
17800 * Fixed escaping of period in man writer (thanks to Michael Thompson).
17802 * Fixed list label positions in beamer.
17804 * Set `mainlang` variable in context writer.
17805 This parallels behavior of latex writer. `mainlang` is the last
17806 of a comma-separated list of languages in lang.
17808 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
17810 * Changed `-V` so that you can specify a key without a value.
17811 Such keys get the value `true`.
17813 * Fixed permissions on installed man pages - thanks Magnus Therning.
17815 * Windows installer: require XP or higher. The installer is
17816 now compiled on a Windows 7 machine, which fixes a problem
17817 using citation functions on Windows 7.
17819 * OSX package: Check for 64-bit Intel CPU before installing.
17822## pandoc 1.9.1.1 (2012-02-11)
17824 * Better handling of raw latex environments in markdown. Now
17830 turns into a raw latex block as expected.
17832 * Improvements to LaTeX reader:
17834 + Skip options after block commands.
17835 + Correctly handle `{\\}` in braced.
17836 + Added a needed 'try'.
17837 + Citations: add `, ` to suffix if it doesn't start with space or
17838 punctuation. Otherwise we get no space between the year and the
17839 suffix in author-date styles.
17841 * Added two needed data files for S5. This fixes a problem with
17842 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
17843 which was no longer being used.
17845 * Fixed some minor problems in `reference.docx`:
17846 name on "Date" style, `xCs` instead of `xIs`.
17848 * Fixed a problem creating docx files using a reference docx
17849 modified using Word. The problem seems to be that Word
17850 modifies `_rels/.rels`, changing the Type of the Relationship to
17851 `docProps/core.xml`. Pandoc now changes this back to the correct
17852 value if it has been altered, fixing the problem.
17854 * Fixed html5 template so it works properly with highlighting.
17856## pandoc 1.9.1 (2012-02-09)
17860 + Fixed regression in 1.9; properly handle escaped $ in latex math.
17861 + Put LaTeX verse environments in blockquotes.
17865 + Limit nesting of strong/emph. This avoids exponential lookahead
17866 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
17867 + Improved attributes syntax (in code blocks/spans): (1)
17868 Attributes can contain line breaks. (2) Values in key-value
17869 attributes can be surrounded by either double or single quotes, or
17870 left unquoted if they contain no spaces.
17872 * Headers no longer wrap in markdown or RST writers.
17874 * Added `stateMaxNestingLevel` to `ParserState`.
17875 We set this to 6, so you can still have `Emph` inside `Emph`,
17876 just not indefinitely.
17878 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
17880 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
17883 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
17885## pandoc 1.9.0.5 (2012-02-06)
17887 * Changed cabal file so that build-depends for the test program
17888 are not required unless the tests flag is used.
17890 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
17891 form ligatures (dashes) in code spans.
17893## pandoc 1.9.0.4 (2012-02-06)
17895 * Raised version bound on test-framework to avoid problems
17896 compiling tests on GHC 7.4.1.
17898 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
17899 so citations don't just disappear unless you process with
17900 citeproc. Ignore `\bibliographystyle`, `\nocite`.
17902 * Simplified tex2pdf; it will always run latex twice to
17903 resolve table of contents and hyperrefs.
17905## pandoc 1.9.0.3 (2012-02-06)
17907 * Require Cabal >= 1.10.
17909 * Tweaked cabal file to meet Cabal 1.10 requirements.
17911## pandoc 1.9.0.2 (2012-02-05)
17913 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
17916## pandoc 1.9 (2012-02-05)
17920 * Added a Microsoft Word `docx` writer. The writer includes support
17921 for highlighted code and for math (which is converted from TeX to OMML,
17922 Office's native math markup language, using texmath's new OMML module).
17923 A new option `--reference-docx` allows the user to customize the
17926 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
17928 * Better support for slide shows:
17930 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
17931 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
17933 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
17934 slide presentations.
17936 + New, flexible rules for dividing documents into sections and slides
17937 (see the "Structuring the slide show" in the User's Guide). These
17938 are backward-compatible with the old rules, but they allow slide
17939 shows to be organized into sections and subsections containing
17942 + A new `--slide-level` option allows users to override defaults
17943 and select a slide level below the first header level with content.
17945 * A new `--self-contained` option produces HTML output that does not
17946 depend on an internet connection or the presence of any external
17947 files. Linked images, CSS, and javascript is downloaded (or fetched
17948 locally) and encoded in `data:` URIs. This is useful for making portable
17949 `HTML slide shows. The --offline` option has been deprecated and is now
17950 `treated as a synonym or --self-contained`.
17952 * Support for PDF output:
17954 + Removed the old `markdown2pdf`.
17955 + `pandoc` can now create PDFs (assuming you have latex and a set of
17956 appropriate packages installed): just specify an output file with the
17958 + A new option `--latex-engine` allows you to specify `pdflatex`,
17959 `xelatex`, or `lualatex` as the processor.
17961 * Highlighting changes:
17963 + Syntax highlighting is now a standard feature; the `highlighting`
17964 flag is no longer needed when compiling.
17965 + A new `--no-highlight` option allows highlighting to be disabled.
17966 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
17967 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
17968 + A new `--highlight-style` option selects between various highlighting
17971 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
17973 * LaTeX `\include` and `\usepackage` commands are now processed,
17974 provided the files are in the working directory.
17976 * EPUB improvements:
17978 + Internal and external links now work in EPUB.
17979 + Raw HTML is allowed.
17980 + New `--epub-embed-font` option.
17981 + Customizable templates for EPUB pages offer more control over
17982 formatting: `epub-page.html`, `epub-coverimage.html`,
17983 `epub-titlepage.html`.
17985 * `--mathml` now works with DocBook.
17987 * Added support for math in RST reader and writer. Inline math uses the
17988 `` :math:`...` `` construct. Display math uses
17992 or if the math is multiline,
17998 These constructions are now supported now by `rst2latex.py`.
18000 * Github syntax for fenced code blocks is supported in pandoc's
18001 markdown. You can now write
18013 * Easier scripting: a new `toJsonFilter` function makes it easier to
18014 write Haskell scripts to manipulate the Pandoc AST.
18015 See [Scripting with pandoc](scripting.html#pandoc-1.9-changes).
18017### Behavior changes
18019 * Fixed parsing of consecutive lists in markdown.
18020 Pandoc previously behaved like Markdown.pl for consecutive
18021 lists of different styles. Thus, the following would be parsed
18022 as a single ordered list, rather than an ordered list followed
18023 by an unordered list:
18031 This change makes pandoc behave more sensibly, parsing this as
18032 two lists. Any change in list type (ordered/unordered) or in
18033 list number style will trigger a new list. Thus, the following
18034 will also be parsed as two lists:
18042 Since we regard this as a bug in Markdown.pl, and not something
18043 anyone would ever rely on, we do not preserve the old behavior
18044 even when `--strict` is selected.
18046 * Dashes work differently with `--smart`: `---` is always em-dash,
18047 and `--` is always en-dash. Pandoc no longer tries to guess when
18048 `-` should be en-dash. *Note:* This may change how existing documents
18049 look when processed with pandoc. A new option, `--old-dashes`,
18050 is provided for legacy documents.
18052 * The markdown writer now uses setext headers for levels 1-2.
18053 The old behavior (ATX headers for all levels) can be restored
18054 using the new `--atx-headers` option.
18056 * Links are now allowed in markdown image captions. They are also
18057 allowed in links, but will appear there as regular text. So,
18059 [link with [link](/url)](/url)
18063 <p><a href="/url">link with link</a></p>
18065 * Improved handling of citations using `citeproc-hs-0.3.4`.
18066 Added `--citation-abbreviations` option.
18068 * Citation keys can no longer end with a punctuation character.
18069 This means that `@item1.` will be parsed as a citation with key
18070 'item1', followed by a period, instead of a citation with key
18071 'item1.', as was the case previously.
18073 * In HTML output, citations are now put in a span with class `citation`.
18075 * The markdown reader now recognizes DocBook block and inline tags.
18076 It was always possible to include raw DocBook tags in a markdown
18077 document, but now pandoc will be able to distinguish block from
18078 inline tags and behave accordingly. Thus, for example,
18084 will not be wrapped in `<para>` tags.
18086 * The LaTeX parser has been completely rewritten; it is now much more
18087 accurate, robust, and extensible. However, there are two important
18088 changes in how it treats unknown LaTeX. (1) Previously, unknown
18089 environments became BlockQuote elements; now, they are treated
18090 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
18091 same as `xyz`. (2) Previously, arguments of unknown commands
18092 were passed through with their braces; now the braces are stripped
18095 * `--smart` is no longer selected automatically with `man` output.
18097 * The deprecated `--xetex` option has been removed.
18099 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
18100 instead. `html5` and `html5+lhs` are now separate output formats.
18102 * Single quotes are no longer escaped in HTML output. They do not
18103 need to be escaped outside of attributes.
18105 * Pandoc will no longer transform leading newlines in code
18106 blocks to `<br/>` tags.
18108 * The ODT writer now sizes images appropriately, using the image
18109 size and DPI information embedded in the image.
18111 * `--standalone` is once again implicitly for a non-text output format
18112 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
18113 and get a standalone ODT file.
18115 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
18118 * The HTML writer now uses `<del>` for strikeout.
18120 * In HTML output with `--section-divs`, the classes `section` and
18121 `level[1,2,..6]` are put on the `div` tags so they can be styled.
18122 In HTML 5 output with `--section-divs`, the classes
18123 `level[1,2,...6]` are put on `section` tags.
18125 * EPUB writer changes:
18127 + The `lang` variable now sets the language
18128 in the metadata (if it is not set, we default to the locale).
18129 + EPUB: UTF-8 is used rather than decimal entities.
18131 * Added `titleslide` class to title slide in S5 template.
18133 * In HTML, EPUB, and docx metadata, the date is normalized into
18134 YYYY-MM-DD format if possible. (This is required for validation.)
18136 * Attributes in highlighted code blocks are now preserved in HTML.
18137 The container element will have the classes, id, and key-value attributes
18138 you specified in the delimited code block. Previously these were stripped
18141 * The reference backlink in the HTML writer no longer has a special
18142 `footnoteBacklink` class.
18144 * The HTML template has been split into `html` and `html5` templates.
18146 * Author and date are treated more consistently in HTML templates.
18147 Authors are now `<h2>`, date `<h3>`.
18149 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
18151 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
18155 * Better support for combining characters and East Asian wide characters
18156 in markdown and reST.
18158 * Better handling of single quotes with `--smart`.
18159 Previously `D'oh l'*aide*` would be parsed with left and right single
18160 quotes instead of apostrophes. This kind of error is now fixed.
18162 * Highlighting: Use `reads` instead of `read` for better error handling.
18163 Fixes crash on `startNum="abc"`.
18165 * Added blank comment after directives in rst template.
18167 * Unescape entities in citation `refId`. The `refId`s coming
18168 from citeproc contain XML numeric entities, and these don't match with the
18169 citation keys parsed by pandoc. Solution is to unescape them.
18171 * HTML reader: Fixed bug parsing tables with both thead and tbody.
18175 + Better handling of escapes in link URLs and titles.
18176 + Fixed backslash escapes in reference links.
18177 + Fixed bug in table/hrule parsing, by checking that the top
18178 line of a table is not followed by a blank line. This bug caused
18179 slowdowns on some files with hrules and tables, as pandoc tried to
18180 interpret the hrules as the tops of multiline tables.
18181 + Fixed bug in code block attribute parser. Previously the ID attribute
18182 got lost if it didn't come first. Now attributes can come in any order.
18184 * RST reader: allow footnotes followed by newline without space characters.
18188 + Ignore empty groups {}, { }.
18189 + LaTeX reader: Handle `\@`.
18190 + LaTeX reader: Don't crash on commands like `\itemsep`.
18191 + LaTeX reader: Better handling of letter environments.
18193 * RST writer: Fixed bug involving empty table cells. isSimple was being
18194 calculated in a way that assumed there were no non-empty cells.
18198 + Made `--toc` work even without `--number-sections`.
18199 + Escape # in link URLs.
18200 + Use buffering for footnotes containing code blocks.
18201 + Changed 'descr' to 'description', fixed alignment.
18205 + Escape euro character.
18206 + Don't escape `~` inside `\href{...}`.
18207 + Escape `#` in href URLs.
18208 + Improved detection of book classes. We now check the
18209 `documentclass` variable, and if that is not set, we look through
18210 the template itself. Also, we have added the KOMA classes scrreprt
18211 and scrbook. You can now make a book using
18212 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
18213 + LHS files now set the "listings" variable, so that the definition
18214 of the `code` environment will be included in the template.
18215 + Links are colored blue by default (this can be changed by
18216 modifying `hyperref` settings in the template).
18217 + Added `lang` variable to LaTeX template.
18221 + Fixed bug in HTML template with html5 and mathml.
18222 + Don't use self-closing img, br, hr tags for HTML5.
18223 + Use `<section>` for footnotes if HTML5.
18224 + Update HTML templates to use Content-Style-Type meta tag.
18225 + Use separate variables for meta-date, meta-author.
18226 This makes footnotes work in author and date fields.
18227 + Use 'vertical-align:middle' in WebTeX math for better alignment.
18229 * S5/slidy writer: Make footnotes appear on separate slide at end.
18231 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
18232 META-INF/manifest.xml for ODT files will have everything it needs, so
18233 that ODT files modified by LibreOffice can be used as `--reference-odt`.
18235 * `Text.Pandoc.Templates`: Return empty string for json template.
18237 * `Text.Pandoc.Biblio`:
18239 + Expand citations recursively inside nested inlines.
18240 + Treat `\160` as space when parsing locator and suffix.
18241 This fixes a bug with "p. 33" when `--smart` is used. Previously
18242 the whole "p. 33" would be included in the suffix, with no locator.
18243 + Put whole author-in-text citation in a Cite. Previously just the
18244 date and other info went in the Cite.
18245 + Don't add comma+space to prefix if it ends in punctuation.
18247 * Updated chicago-author-date.csl. The old version did not work
18248 properly for edited volumes with no author.
18252 + Add date to EPUB titlepage and metadata.
18253 + Added TOC identifier in EPUB page template.
18254 + Don't generate superfluous file `cover-image.jpg`.
18256### Under the hood improvements
18258 * Modified `make_osx_package.sh` to use cabal-dev.
18259 Items are no longer installed as root.
18260 Man pages are zipped and given proper permissions.
18262 * Modified windows installer generator to use cabal-dev.
18264 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
18265 Setup.hs we now invoke 'runghc' in a way that points it to the correct
18266 package databases, instead of always falling back to the default user
18269 * Updated to work with GHC 7.4.1.
18271 * Removed dependency on old-time.
18273 * Removed dependency on dlist.
18275 * New slidy directory for "self-contained."
18277 * TeXMath writer: Use unicode thin spaces for thin spaces.
18279 * Markdown citations: don't strip off initial space in locator.
18283 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
18284 from the native `Inline` type in pandoc-types. Now we use `Str`
18285 elements with unicode.
18287 * Improvements to `Text.Pandoc.Builder`:
18289 + `Inlines` and `Blocks` are now newtypes (not synonyms for
18291 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
18292 and a new `Listable` class, which allows these to be manipulated
18293 to some extent like lists. Monoid append includes automatic
18295 + `+++` has been replaced by `<>` (mappend).
18297 * Use blaze-html instead of xhtml for HTML generation.
18298 This changes the type of `writeHtml`.
18300 * `Text.Pandoc.Shared`:
18302 + Added `warn` and `err`.
18303 + Removed `unescapeURI`, modified `escapeURI`.
18304 (See under [behavior changes], above.)
18306 * Changes in URI escaping: Previously the readers escaped URIs by
18307 converting unicode characters to octets and then percent encoding.
18308 Now unicode characters are left as they are, and `escapeURI` only
18309 percent-encodes space characters. This gives more readable
18310 URIs, and works well with modern user agents. URIs are no longer unescaped
18311 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
18313 * New module `Text.Pandoc.SelfContained`.
18315 * New module `Text.Pandoc.Docx`.
18317 * New module `Text.Pandoc.PDF`.
18319 * Added `writerBeamer` to `WriterOptions`.
18321 * Added `normalizeDate` to `Text.Pandoc.Shared`.
18323 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
18324 This is like `splitWithIndices`, but it is sensitive to distinctions
18325 between wide, combining, and regular characters.
18327 * `Text.Pandoc.Pretty`:
18329 + Added `chomp` combinator.
18330 + Added `beforeNonBreak` combinator. This allows you to include
18331 something conditionally on it being before a nonblank.
18332 Used for RST inline math.
18333 + Added `charWidth` function. All characters marked W or F in the unicode
18334 spec EastAsianWidth.txt get width 2.
18335 + Added `realLength`, based on `charWidth`. `realLength` is now
18336 used in calculating offsets.
18338 * New module `Text.Pandoc.Slides`, for common functions for breaking
18339 a document into slides.
18341 * Removed `Text.Pandoc.S5`, which is no longer needed.
18343 * Removed `Text.Pandoc.CharacterReferences`. Moved
18344 `characterReference` to `Text.Pandoc.Parsing`.
18345 `decodeCharacterReferences` is replaced by `fromEntities`
18346 in `Text.Pandoc.XML`.
18348 * Added `Text.Pandoc.ImageSize`. This is intened for use
18349 in `docx` and `odt` writers, so the size and dpi of images
18352 * Removed `writerAscii` in `WriterOptions`.
18354 * Added `writerHighlight` to `WriterOptions`.
18356 * Added `DZSlides` to `HTMLSlideVariant`.
18358 * `writeEPUB` has a new argument for font files to embed.
18360 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
18361 of whether we're parsing the position immediately after a regular
18362 (non-space, non-symbol) string, which is useful for distinguishing
18363 apostrophes from single quote starts.
18365 * `Text.Pandoc.Parsing`:
18367 + `escaped` now returns a `Char`.
18368 + Removed `charsInBalanced'`, added a character parser as
18369 a parameter of `charsInBalanced`. This is needed for
18370 proper handling of escapes, etc.
18373 * Added `toEntities` to `Text.Pandoc.XML`.
18375 * `Text.Pandoc.Readers.LaTeX`:
18377 + Export `handleIncludes`.
18378 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
18380 * Added `ToJsonFilter` class and `toJsonFilter` function to
18381 `Text.Pandoc`, deprecating the old `jsonFilter` function.
18383 * `Text.Pandoc.Highlighting`:
18385 + Removed `highlightHtml`, `defaultHighlightingCss`.
18386 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
18387 key functions from highlighting-kate.
18388 + Changed types of highlighting function. `highlight` returns a
18389 `Maybe`, not an `Either`.
18392## pandoc 1.8.2.1 (2011-08-01)
18394 * Adjusted Arbitrary instance to help avoid timeouts in tests.
18396 * Added `Tests.Writers.Markdown` to cabal file.
18398 * Relaxed version bounds on pandoc-types, test-framework.
18400## pandoc 1.8.2 (2011-07-30)
18402 * Added script to produce OS X package.
18404 * Made `templates` directory a git submodule. This should make it
18405 easier for people to revise their custom templates when the default
18408 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
18409 **Note:** If you have existing templates in `~/.pandoc/templates`, you
18410 must rename them to conform to the new scheme!
18412 * Default template improvements:
18414 + HTML: Display author and date after title.
18415 + HTML: Made table of contents more customizable. The container
18416 for the TOC is now in the template, so users can insert a header
18417 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
18418 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
18419 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
18420 hard-coding. If you want to put your slidy files in the slidy
18421 subdirectory, for example, you can do
18422 `pandoc -t slidy -V slidy-url=slidy -s`.
18423 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
18424 & writer). Closes #279.
18425 + LaTeX: Set `\emergencystretch` to prevent overfull lines.
18426 + LaTeX: Use different `hyperref` options for `xetex`, fixing
18427 problems with unicode bookmarks (thanks to CircleCode).
18428 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
18429 with `inputenc`. This covers fewer characters but is more
18430 robust with other packages, and `ucs` is unmaintained. Users
18431 who need better unicode support should use xelatex or lualatex.
18433 * If a template specified with `--template` is not found, look for it
18434 in `datadir`. Also, if no extension is provided, supply one based
18435 on the writer. So now you can put your `special.latex` template in
18436 `~/.pandoc/templates`, and use it from any directory via
18437 `pandoc -t latex --template special`.
18439 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
18441 * Fixed smart quotes bug, now handling `'...hi'` properly.
18445 + Partial support for labeled footnotes.
18446 + Improved accuracy of `simpleReferenceName` parser.
18450 + Substitute correct unicode characters for
18451 characters in the 128..159 range, which are often found even in
18452 HTML that purports to be UTF-8.
18454 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
18455 to the title, after a colon and linebreak). Closes #280.
18457 * Leaner `reference.odt`.
18459 * Added unexported module `Text.Pandoc.MIME` for use in
18462 * ODT writer: Construct `manifest.xml` based on archive contents.
18463 This fixes a bug in ODTs containing images. Recent versions of
18464 LibreOffice would reject these as corrupt, because `manifest.xml`
18465 did not contain a reference to the image files.
18469 + Make verbatim environments flush to avoid spurious
18470 blank lines. Closes #277.
18471 + Use `\texttt` and escapes insntead of `\verb!...!`, which
18472 is too fragile (doesn't work in command arguments).
18473 + Use `\enquote{}` for quotes if the template includes
18474 the `csquotes` package. This provides better support for
18475 local quoting styles. (Thanks to Andreas Wagner for the idea.)
18477 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
18478 margin, preventing spurious blank lines.
18482 + Use non-minimized version of `slidy.css` with `--offline`
18483 option, so users can more easily edit it.
18484 + Also fixed a bug in the CSS that prevented proper centering
18485 of title (now reported and fixed upstream).
18489 + Replaced `s5/default/slides.js.{comment,packed}` with
18490 new compressed `s5/default/slides.min.js`.
18491 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
18492 when `--offline` is specified. Using inline CSS didn't
18493 work with Chrome or Safari. This fixes offline
18494 S5 on those browsers.
18496 * HTML writer: Removed English title on footnote backlinks.
18497 This is incongrous in non-English documents.
18501 + Use CALS tables. (Some older docbook software does not work
18502 well with XHTML tables.) Closes #77.
18503 + Use `programlisting` tags (instead of `screen`) for code blocks.
18507 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
18508 of `-interaction=batchmode`, which essentially just ignored errors,
18509 leading to bad results. Better to know when something is wrong.
18510 + Fixed issues with non-UTF-8 output of `pdflatex`.
18511 + Better error reporting.
18513 * `--mathjax` now takes an optional URL argument. If it is not
18514 provided, pandoc links directly to the (secure) mathjax CDN,
18515 as now recommended (thanks to dsanson).
18517 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
18518 since the LaTeX writer now produces a file that can be processed by
18519 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
18521 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
18522 to be used to create the PDF.
18525## pandoc 1.8.1.2 (2011-07-16)
18527 * Added `--epub-cover-image` option.
18529 * Documented `--biblatex` and `--natbib` options.
18531 * Allow `--section-divs` with slidy output. Resolves Issue #296.
18533 * Disallow notes within notes in reST and markdown.
18534 These previously caused infinite looping and stack overflows.
18541 Note references are allowed in reST notes, so this isn't a full
18542 implementation of reST. That can come later. For now we need to
18543 prevent the stack overflows. Partially resolves Issue #297.
18545 * EPUB writer: Allow non-plain math methods.
18547 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
18548 `(@item1; @item2)` because the final paren was being parsed as part of
18551 * Changed URI parser so it doesn't include trailing punctuation.
18552 So, in RST, `http://google.com.` should be parsed as a link followed by a
18553 period. The parser is smart enough to recognize balanced parentheses, as
18554 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
18556 * Markdown+lhs reader: Require space after inverse bird tracks, so that
18557 HTML tags can be used freely at the left margin of a markdown+lhs document.
18558 Thanks to Conal Elliot for the suggestion.
18560 * Markdown reader: Fixed bug in footnote order (reported by CircleCode).
18563 + Fixed bug in in field lists with multi-line items at the
18565 + Added parentheses to RST `specialChars`, so
18566 `(http://google.com)` will be parsed as a link in parens.
18567 Resolves Issue #291.
18568 + Allow `|` followed by newline in RST line block.
18572 + Gobble option & space after linebreak `\\[10pt]`.
18575 + Make it possible to have colons after links. (qerub)
18576 + Make it possible to have colons after links. (Christoffer Sawicki)
18579 + Skip spaces after `<b>`, `<emph>`, etc.
18580 + Handle tbody, thead in simple tables. Closes #274.
18581 + Implicit `Para`s instead of `Plains` in some contexts.
18583 * OpenDocument writer: Use special `First paragraph` style for
18584 first paragraph after most non-paragraph blocks. This allows users to
18585 specify e.g. that only paragraphs after the first paragraph of a block are
18586 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
18588 * LaTeX writer: use `deVerb` on table and picture captions.
18589 Otherwise LaTeX complains about `\verb` inside command argument.
18590 Thanks to bbanier for reporting the bug.
18592 * Markdown writer: Insert HTML comment btw list and indented code block.
18593 This prevents the code block from being interpreted as part of the list.
18595 * EPUB writer: Add a meta element specify the cover.
18596 Some EPUB e-readers, such as the Nook, require a meta element inside the
18597 OPF metadata block to ensure the cover image is properly displayed.
18600 * HTML writer: Use embed tag for images with non-image extensions.
18601 (e.g. PDFs). Closes #264.
18603 * LaTeX writer: Improved tables.
18605 + More space between lines, top-align cells.
18606 + Use ctable package, which allows footnotes and
18607 provides additional options.
18608 + Made cell alignments work in multiline tables.
18609 + Closes #271, #272.
18611 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
18612 Also do this when copying image files into EPUBs and ODTs.
18615 * Changed to github issue tracker.
18617 * Added failing emph/strong markdown test case due to Perry Wagle.
18619 * Slidy improvements:
18620 + Updated to use Slidy2.
18621 + Fixed bug, unclosed div tag.
18622 + Added `duration` variable in template.
18623 Setting this activates the timer.
18624 + Use 'titlepage' instead of 'cover' for title div.
18627## pandoc 1.8.1.1 (2011-02-13)
18629 * `markdown2pdf`: Removed some debugging lines accidentally included
18630 in the 1.8.1 release. With those lines, the temp directory is created
18631 in the working directory, and it is not deleted. This fix restores
18632 the original behavior.
18634## pandoc 1.8.1 (2011-02-13)
18636 * Added `--ascii` option. Currently supported only in HTML writer,
18637 which it causes to use numerical entities instead of UTF-8.
18639 * EPUB writer: `--toc` now works to provide a table of contents
18640 at the beginning of each chapter.
18642 * LaTeX writer: Change figure defaults to `htbp`.
18643 This prevents "too many unprocessed floats." Resolves
18646 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
18649 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
18650 Tanimoto. Resolves Issue #286.
18652 * HTML writer: Put line breaks in section divs.
18654 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
18656## pandoc 1.8.0.3 (2011-02-05)
18658 * Fixed Source-repository stanza in cabal file.
18660## pandoc 1.8.0.2 (2011-02-05)
18664 + Stringify alt text instead of converting to HTML.
18665 + Break lines after block elements, not inside tags.
18666 HTML output now closely resembles that of tidy. Resolves Issue #134.
18668 * Markdown reader: Fixed bug in footnote block parser (pointed out
18669 by Jesse Rosenthal). The problem arose when the blank line
18670 at the end of a footnote block contained indenting spaces.
18672 * Shared: Improved 'normalize' function so it normalizes Spaces too.
18673 In normal form, Space elements only occur to separate two non-Space
18674 elements. So, we never have [Space], or [, ..., Space].
18678 + Improved Arbitrary instance.
18679 + Added timeout for test instances.
18683 + Added section on four-space rule for lists. Resolves Issue #283.
18684 + Clarified optional arguments on math options.
18686 * markdown2pdf: Fixed bug with output file extensions.
18687 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
18688 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
18690## pandoc 1.8.0.1 (2011-01-31)
18692 * Revised Interact.hs so that it works with the CPP macros
18693 in the UTF8 module.
18695 * Revised Setup.hs so that we don't call MakeManPage.hs unless
18696 the man pages are out of date.
18698## pandoc 1.8 (2011-01-30)
18702 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
18703 You can now write, for example,
18705 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
18707 and, when you process your document using `pandoc`, specifying
18708 a citation style using `--csl` and a bibliography using `--bibliography`,
18709 the citation will be replaced by an appropriately formatted
18710 citation, and a list of works cited will be added to the end
18713 This means that you can switch effortlessly between different citation
18714 and bibliography styles, including footnote, numerical, and author-date
18715 formats. The bibliography can be in any of the following formats: MODS,
18716 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
18717 See the README for further details.
18719 Citations are supported in the markdown reader, using a special
18720 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
18721 (Thanks to Nathan Gass for the natbib and biblatex support.)
18723 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
18724 the `textile` reader, an almost complete implementation of the textile
18725 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
18726 Resolves Issue #51.
18728 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
18730 * New `json` reader and writer, for reading and writing a JSON
18731 representation of the native Pandoc AST. These are much faster
18732 than the `native` reader and writer, and should be used for
18733 serializing Pandoc to text. To convert between the JSON representation
18734 and native Pandoc, use `encodeJSON` and `decodeJSON` from
18735 `Text.JSON.Generic`.
18737 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
18738 to write scripts that transform a JSON-encoded pandoc document.
18741 -- removelinks.hs - removes links from document
18743 main = interact $ jsonFilter $ bottomUp removeLink
18744 where removeLink (Link xs _) = Emph xs
18747 To use this to remove links while translating markdown to LaTeX:
18749 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
18751 * Attributes are now allowed in inline `Code` elements, for example:
18753 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
18755 The attribute syntax is the same as for delimited code blocks.
18756 `Code` inline has an extra argument place for attributes, just like
18757 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
18758 is compiled with highlighting support. Resolves Issue #119.
18760 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
18761 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
18762 scripts to transform Pandoc documents. Scripts can now change
18763 how each element is rendered in each output format.
18765 * You can now define LaTeX macros in markdown documents, and pandoc
18766 will apply them to TeX math. For example,
18768 \newcommand{\plus}[2]{#1 + #2}
18771 yields `3+4`. Since the macros are applied in the reader, they
18772 will work in every output format, not just LaTeX.
18774 * LaTeX macros can also be used in LaTeX documents (both in math
18775 and in non-math contexts).
18777 * A new `--mathjax` option has been added for displaying
18778 math in HTML using MathJax. Resolves issue #259.
18780 * Footnotes are now supported in the RST reader. (Note, however,
18781 that unlike docutils, pandoc ignores the numeral or symbol used in
18782 the note; footnotes are put in an auto-numbered ordered list.)
18783 Resolves Issue #258.
18785 * A new `--normalize` option causes pandoc to normalize the AST
18786 before writing the document. This means that, for example,
18787 `*hi**there*` will be rendered as `<em>hithere</em>`
18788 instead of `<em>hi</em><em>there</em>`. This is not the default,
18789 because there is a significant performance penalty.
18791 * A new `--chapters` command-line option causes headers
18792 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
18793 Resolves Issue #265.
18795 * In DocBook output, `<chapter>` is now used for top-level
18796 headers if the template contains `<book>`. Resolves Issue #265.
18798 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
18799 the LaTeX writer to use the listings package for code blocks.
18800 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
18801 Millon for the markdown2pdf patch.)
18803 * `markdown2pdf` now supports `--data-dir`.
18805 * URLs in autolinks now have class "url" so they can be styled.
18807 * Improved prettyprinting in most formats. Lines will be wrapped
18808 more evenly and duplicate blank lines avoided.
18810 * New `--columns` command-line option sets the column width for
18811 line wrapping and relative width calculations for tables.
18813 * Made `--smart` work in HTML, RST, and Textile readers, as well
18816 * Added `--html5` option for HTML5 output.
18818 * Added support for listings package in LaTeX reader
18819 (Puneeth Chaganti).
18821 * Added support for simple tables in the LaTeX reader.
18823 * Added support for simple tables in the HTML reader.
18825 * Significant performance improvements in many readers and writers.
18827### API and program changes
18829 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
18830 auxiliary package, `pandoc-types`. This will make it possible for other
18831 programs to supply output in Pandoc format, without depending on the whole
18834 * Added `Attr` field to `Code`.
18836 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
18837 `RawBlock` and `RawInline`.
18839 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
18840 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
18841 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
18843 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
18845 * `Text.Pandoc` now exports association lists `readers` and `writers`.
18847 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
18848 `readNative` can now read full pandoc documents, block lists, blocks,
18849 inline lists, or inlines. It will interpret `Str "hi"`
18850 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
18851 This should make testing easier.
18853 * Removed deprecated `-C/--custom-header` option.
18854 Use `--template` instead.
18856 * `--biblio-file` has been replaced by `--bibliography`.
18857 `--biblio-format` has been removed; pandoc now guesses the format
18858 from the file extension (see README).
18860 * pandoc will treat an argument as a URI only if it has an
18861 `http(s)` scheme. Previously pandoc would treat some
18862 Windows pathnames beginning with `C:/` as URIs.
18864 * The `--sanitize-html` option and the `stateSanitize` field in
18865 `ParserState` have been removed. Sanitization is better done in the
18866 resulting HTML using `xss-sanitize`, which is based on pandoc's
18867 sanitization, but improved.
18869 * pandoc now adds a newline to the end of its output in fragment
18870 mode (= not `--standalone`).
18872 * Added support for `lang` in `html` tag in the HTML template,
18873 so you can do `pandoc -s -V lang=es`, for example.
18875 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
18876 a boolean argument that selects between "inline" and
18879 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
18880 Images are embedded in RTF output when possible (png, jpeg).
18881 Resolves Issue #275.
18883 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
18884 `pretty` package. Changed all writers that used
18885 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
18887 * Rewrote `writeNative` using the new prettyprinting module. It is
18888 now much faster. The output has been made more consistent and compressed.
18889 `writeNative` is also now sensitive to writerStandalone`, and will simply
18890 `print a block list if writerStandalone` is False.
18892 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
18893 blocks and concatenate them, so a separate module is no longer needed.
18895 * `Text.Pandoc.Shared`:
18897 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
18899 + Added `normalize`.
18900 + Removed unneeded prettyprinting functions:
18901 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
18902 `BlockWrapper`, `wrappedBlocksToDoc`.
18903 + Made `splitBy` take a test instead of an element.
18904 + Added `findDataFile`, refactored `readDataFile`.
18905 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
18906 + Fixed `inlineListToIdentifier` to treat `\160` as ' '.
18908 * `Text.Pandoc.Readers.HTML`:
18910 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
18911 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
18912 `htmlBlockElement`, `htmlComment`
18913 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
18916 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
18917 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
18920 * Ellipses are no longer allowed to contain spaces.
18921 Previously we allowed '. . .', ' . . . ', etc. This caused
18922 too many complications, and removed author's flexibility in
18923 combining ellipses with spaces and periods.
18925 * Allow linebreaks in URLs (treat as spaces). Also, a string of
18926 consecutive spaces or tabs is now parsed as a single space. If you have
18927 multiple spaces in your URL, use `%20%20`.
18929 * `Text.Pandoc.Parsing`:
18931 + Removed `refsMatch`.
18932 + Hid `Key` constructor.
18933 + Removed custom `Ord` and `Eq` instances for `Key`.
18934 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
18935 + Generalized type on `readWith`.
18937 * Small change in calculation of relative widths of table columns.
18938 If the size of the header > the specified column width, use
18939 the header size as 100% for purposes of calculating
18940 relative widths of columns.
18942 * Markdown writer now uses some pandoc-specific features when `--strict`
18943 is not specified: `\` newline is used for a hard linebreak instead of
18944 two spaces then a newline. And delimited code blocks are used when
18945 there are attributes.
18947 * HTML writer: improved gladTeX output by setting ENV appropriately
18948 for display or inline math (Jonathan Daugherty).
18950 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
18954 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
18955 + `\index{}` commands are skipped.
18957 * Added `fontsize` variable to default LaTeX template.
18958 This makes it easy to set the font size using `markdown2pdf`:
18959 `markdown2pdf -V fontsize=12pt input.txt`.
18961 * Fixed problem with strikeout in LaTeX headers when using
18962 hyperref, by adding a command to the default LaTeX template
18963 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
18966 * The `COLUMNS` environment variable no longer has any effect.
18968### Under-the-hood improvements
18970 * Pandoc now compiles with GHC 7. (This alone leads to a
18971 significant performance improvement, 15-20%.)
18973 * Completely rewrote HTML reader using tagsoup as a lexer. The
18974 new reader is faster and more accurate. Unlike the
18975 old reader, it does not get bogged down on some input
18976 (Issues #277, 255). And it handles namespaces in tags
18979 * Replaced `escapeStringAsXML` with a faster version.
18981 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
18982 for a significant performance boost.
18984 * Improved performance of all readers by rewriting parsers.
18986 * Simplified Text.Pandoc.CharacterReferences by using
18987 entity lookup functions from TagSoup.
18989 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
18990 from `System.IO` if base >= 4.2. This gives support for
18991 windows line endings on windows.
18993 * Remove duplications in documentation by generating the
18994 pandoc man page from README, using `MakeManPage.hs`.
18996 * README now includes a full description of markdown syntax,
18997 including non-pandoc-specific parts. A new `pandoc_markdown`
18998 man page is extracted from this, so you can look up markdown
18999 syntax by doing `man pandoc_markdown`.
19001 * Completely revised test framework (with help from Nathan Gass).
19002 The new test framework is built when the `tests` Cabal flag is set. It
19003 includes the old integration tests, but also some new unit and quickcheck
19004 tests. Test output has been much improved, and you can now specify a glob
19005 pattern after `cabal test` to indicate which tests should be run;
19006 for example `cabal test citations` will run all the citation tests.
19008 * Added a shell script, `stripansi.sh`, for filtering ANSI control
19009 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
19011 * Added `Interact.hs` to make it easier to use ghci while developing.
19012 `Interact.hs` loads `ghci` from the `src` directory, specifying
19013 all the options needed to load pandoc modules (including
19014 specific package dependencies, which it gets by parsing
19015 dist/setup-config).
19017 * Added `Benchmark.hs`, testing all readers + writers using criterion.
19019 * Added `stats.sh`, to make it easier to collect and archive
19020 benchmark and lines-of-code stats.
19022 * Added upper bounds to all cabal dependencies.
19024 * Include man pages in extra-source-files. This allows users to
19025 install pandoc from the tarball without needing to build the man
19030 * Filenames are encoded as UTF8. Resolves Issue #252.
19032 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
19033 were just parsed literally, leading to problems in some output formats.
19034 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
19035 Resolves Issue #270.
19037 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
19038 Spaces at end of line were not being stripped properly,
19039 resulting in unintended LineBreaks.
19043 + Allow HTML comments as inline elements in markdown.
19044 So, `aaa <!-- comment --> bbb` can be a single paragraph.
19045 + Fixed superscripts with links: `^[link](/foo)^` gets
19046 recognized as a superscripted link, not an inline note followed by
19048 + Fixed regression, making markdown reference keys case-insensitive again.
19049 Resolves Issue #272.
19050 + Properly handle abbreviations (like `Mr.`) at the end of a line.
19051 + Better handling of intraword underscores, avoiding exponential
19052 slowdowns in some cases. Resolves Issue #182.
19053 + Fixed bug in alignments in tables with blank rows in the header.
19057 + Field lists now allow spaces in field names, and
19058 block content in field values. (Thanks to Lachlan Musicman
19059 for pointing out the bug.)
19060 + Definition list items are now always `Para` instead of
19061 `Plain`, matching behavior of `rst2xml.py`.
19062 + In image blocks, the description is parsed properly and
19063 used for the alt attribute, not also the title.
19064 + Skip blank lines at beginning of file. Resolves
19069 + Improved parsing of preamble.
19070 Previously you'd get unexpected behavior on a document that
19071 contained `\begin{document}` in, say, a verbatim block.
19072 + Allow spaces between `\begin` or `\end` and `{`.
19073 + Support `\L` and `\l`.
19074 + Skip comments inside paragraphs.
19078 + Escape strings in `\href{..}`.
19079 + In nonsimple tables, put cells in `\parbox`.
19081 * OpenDocument writer: don't print raw TeX.
19085 + Fixed bug in `Image`. URI was getting unescaped twice!
19086 + Avoid printing extra blank lines at the end if there are
19087 no notes or references.
19089 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
19090 This avoids unwanted interpretation as an optional argument.
19092 * ConTeXt writer: Fixed problem with inline code. Previously
19093 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
19094 If it contains neither, use `\type{}`; otherwise use `\mono{}`
19095 with an escaped version of the string.
19097 * `:` now allowed in HTML tags. Resolves Issue #274.
19101## pandoc 1.6 (2010-07-24)
19103+ New EPUB and HTML Slidy writers. (Issue #122)
19105 - [EPUB] is a standard ebook format, used in Apple's iBooks for
19106 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
19107 reader, and many other devices, and by online ebook readers like
19108 [bookworm]. (Amazon's Kindle uses a different format, MobiPocket,
19109 but EPUB books can easily be converted to Kindle format.) Now you
19110 can write your book in markdown and produce an ebook with a single
19111 command! I've put up a short [tutorial here].
19112 - [Slidy], like S5, is a system for producing HTML+javascript slide shows.
19114+ All input is assumed to be UTF-8, no matter what the locale and ghc
19115 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
19116 Also, a BOM, if present, is stripped from the input.
19118+ Markdown now supports grid tables, whose cells can contain
19119 arbitrary block elements. (Issue #43)
19121+ Sequentially numbered example lists in markdown with `@` marker.
19123+ Markdown table captions can begin with a bare colon and no longer need
19124 to include the English word "table." Also, a caption can now occur
19125 either before or after the table. (Issue #227)
19127+ New command-line options:
19129 - `--epub-stylesheet` allows you to specify a CSS file that will
19130 be used to style your ebook.
19131 - `--epub-metadata` allows you to specify metadata for the ebook.
19132 - `--offline` causes the generated HTML slideshow to include all
19133 needed scripts and stylesheets.
19134 - `--webtex` causes TeX math to be converted to images using the
19135 Google Charts API (unless a different URL is specified).
19136 - `--section-divs` causes div tags to be added around each section
19137 in an HTML document. (Issue #230, 239)
19139+ Default behavior of S5 writer in standalone mode has changed:
19140 previously, it would include all needed scripts and stylesheets
19141 in the generated HTML; now, only links are included unless
19142 the `--offline` option is used.
19144+ Default behavior of HTML writer has changed. Between 1.2 and 1.5,
19145 pandoc would enclose sections in div tags with identifiers on the
19146 div tags, so that the sections can be manipulated in javascript.
19147 This caused undesirable interactions with raw HTML div tags. So,
19148 starting with 1.6, the default is to put the identifiers directly
19149 on the header tags, and not to include the divs. The `--section-divs`
19150 option selects the 1.2-1.5 behavior.
19154 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
19155 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
19156 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
19157 `writerIncludeAfter`.
19158 - Added `headerShift` to `Text.Pandoc.Shared`.
19159 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
19160 to a new module, `Text.Pandoc.Parsing`.
19161 - Added `stateHasChapters` to `ParserState`.
19162 - Added `HTMLSlideVariant`.
19163 - Made `KeyTable` a map instead of an association list.
19164 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`, `docDate`).
19165 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord` instances.
19166 - Reference keys now have a type of their own (`Key`), with its
19167 own `Ord` instance for case-insensitive comparison.
19168 - Added `Text.Pandoc.Writers.EPUB`.
19169 - Added `Text.Pandoc.UUID`.
19170 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
19171 Removed `saveOpenDocumentAsODT`, added `writeODT`.
19172 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
19173 Removed `prettyPandoc`.
19174 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
19175 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
19176 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
19177 To write S5, you now use `writeHtml` with `writerSlideVariant`
19178 set to `S5Slides` or `SlidySlides`.
19180+ Template changes. If you use custom templates, please update them,
19181 particularly if you use syntax highlighting with pandoc. The old HTML
19182 templates hardcoded highlighting CSS that will no longer work with
19183 the most recent version of highlighting-kate.
19185 - HTML template: avoid empty meta tag if no date.
19186 - HTML template: Use default highlighting CSS from highlighting-kate
19187 instead of hard-coding the CSS into the template.
19188 - HTML template: insert-before text goes before the title, and
19189 immediately after the `<body>` tag, as documented. (Issue #241)
19190 - Added slidy and s5 templates.
19191 - Added amssymb to preamble of latex template. (github Issue 1)
19193+ Removed excess newlines at the end of output. Note: because output
19194 will not contain an extra newline, you may need to make adjustments
19195 if you are inserting pandoc's output into a template.
19197+ In S5 and slidy, horizontal rules now cause a new slide, so you
19198 are no longer limited to one slide per section.
19200+ Improved handling of code in man writer. Inline code is now monospace,
19201 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
19203+ HTML reader parses `<tt>` as Code. (Issue #247)
19205+ html+lhs output now contains bird tracks, even when compiled without
19206 highlighting support. (Issue #242)
19208+ Colons are now no longer allowed in autogenerated XML/HTML identifiers,
19209 since they have a special meaning in XML.
19211+ Code improvements in ODT writer. Remote images are now replaced with
19212 their alt text rather than a broken link.
19214+ LaTeX reader improvements:
19216 - Made latex `\section`, `\chapter` parsers more forgiving of whitespace.
19217 - Parse `\chapter{}` in latex.
19218 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
19219 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
19220 for use in markdown reader.
19221 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
19222 in markdown document.
19224+ LaTeX writer: images are automatically shrunk if they would extend
19225 beyond the page margin.
19227+ Plain, markdown, RST writers now use unicode for smart punctuation.
19229+ Man writer converts math to unicode when possible, as in other writers.
19231+ `markdown2pdf` can now recognize citeproc options.
19233+ Command-line arguments are converted to UTF-8. (Issue #234)
19235+ `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
19236 This allows it to handle a wider range of formulas. Also, if a formula
19237 cannot be converted, it is left in raw TeX; formulas are no longer
19238 partially converted.
19240+ Unicode curly quotes are left alone when parsing smart quotes. (Issue #143)
19242+ Cabal file changes:
19244 - Removed parsec < 3 restriction.
19245 - Added 'threaded' flag for architectures where GHC lacks a threaded
19247 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
19248 - Require highlighting-kate 0.2.7.
19250+ Use explicit imports from `Data.Generics`. Otherwise we have a
19251 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
19253+ New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
19255[EPUB]: http://en.wikipedia.org/wiki/EPUB
19256[Slidy]: http://www.w3.org/Talks/Tools/Slidy
19257[bookworm]: http://bookworm.oreilly.com/
19258[tutorial here]: http://johnmacfarlane.net/pandoc/epub.html
19260## pandoc 1.5.1.1 (2010-03-29)
19262+ Fixed header identifiers (uniqueIdent in Shared) so they
19263 work as advertized in README and are guaranteed to be
19264 valid XHTML names. Thanks to Xyne for reporting the bug.
19266## pandoc 1.5.1 (2010-03-23)
19268+ Fixed treatment of unicode characters in URIs.
19269+ Revised Setup.hs so it works with debian's build process.
19270+ Fixed bug in OpenDocument writer that led to invalid
19271 XML for some input.
19273## pandoc 1.5.0.1 (2010-03-21)
19275+ HTML writer: Fixed error in math writer (with MathML option)
19276 that caused an infinite loop for unparsable MathML.
19278## pandoc 1.5 (2010-03-20)
19280+ Moved repository to [github](http://github.com/jgm/pandoc).
19281+ New `--mathml` option, for display of TeX math as MathML.
19282+ New `--data-dir` option, allowing users to specify a data
19283 directory other than `~/.pandoc`. Files placed in this directory
19284 will be used instead of system defaults.
19285+ New `--base-header-level` option. For example, `--base-header-level=2`
19286 changes level 1 headers to level 2, level 2 to level 3, etc.
19287+ New 'plain' output format: plain text without pictures, hyperlinks,
19288 inline formatting, or anything else that looks even vaguely
19290+ Titles and authors in title blocks can now span multiple lines,
19291 as long as the continuation lines begin with a space character.
19292+ When given an absolute URI as a parameter, pandoc will fetch
19293 the content via HTTP.
19294+ The HTML reader has been made much more forgiving. It no
19295 longer requires well-formed xhtml as input.
19296+ `html2markdown` has been removed; it is no longer necessary, given
19297 the last two changes. `pandoc` can be used by itself to convert
19298 web pages to markdown or other formats.
19299+ `hsmarkdown` has also been removed. Use `pandoc --strict` instead.
19300 Or symlink pandoc's executable to `hsmarkdown`; `pandoc` will then
19301 behave like `hsmarkdown` used to.
19302+ An image in a paragraph by itself is now rendered as a figure
19303 in most writers, with the alt text as the caption.
19304+ Incomplete support for reST tables (simple and grid). Thanks to
19305 Eric Kow. Colspans and rowspans not yet supported.
19306+ In mediawiki, links with relative URLs are now formatted as wikilinks.
19307 Also, headers have been promoted: `= head =` is now level 1 instead of
19309+ The markdown reader now handles "inverse bird tracks" when parsing
19310 literate haskell. These are used for haskell example code that
19311 is not part of the literate program.
19312+ The `-B` and `-A` options now imply `-s` and no longer work in
19314+ Headerless tables are now printed properly in all writers.
19315 In addition, tbody, thead, and cols are used in HTML and Docbook
19317+ Improved build system; removed obsolete Makefile.
19318+ In LaTeX writer, `\chapter` is now used instead of `\section`.
19319 when the documentclass is book, report, or memoir.
19320+ Many small bug fixes. See [changelog] for details.
19322## pandoc 1.4 (2010-01-02)
19324+ New template system replaces old headers, giving users much
19325 more control over pandoc's output in `--standalone` mode.
19326 Added `--template` and `--variable` options. The `--print-default-header`
19327 option is now `--print-default-template`. See README under
19328 "Templates" for details.
19329+ The old `--custom-header` option should still work, but it has
19331+ New `--reference-odt` option allows users to customize styles
19333+ Users may now put custom templates, s5 styles, and a reference
19334 ODT in the `~/.pandoc` directory, where they will override system
19335 defaults. See README for details.
19336+ Unicode is now used whenever possible in HTML and XML output. Entities
19337 are used only where necessary (`>`, `<`, `"`, `&`).
19338+ Authors and dates may now include formatting and notes.
19339+ Added `--xetex` option for `pandoc` and `markdown2pdf`.
19340+ Windows installer now includes highlighting support and
19341 `markdown2pdf` and `hsmarkdown` wrappers.
19342+ Pandoc no longer requires Template Haskell, which should make
19344+ Pandoc can now be built on GHC 6.12, as well as earlier versions.
19345+ See README for other small improvements and bug fixes.
19347## pandoc 1.3 (2009-12-10)
19349+ Added `--id-prefix` option to help prevent duplicate
19350 identifiers when you're generating HTML fragments.
19351+ Added `--indented-code-classes` option, which specifies
19352 default highlighting syntax for indented code blocks.
19353+ `--number-sections` now affects HTML output.
19354+ Improved syntax for markdown definition lists.
19355+ Better looking simple tables.
19356+ Markdown tables without headers are now possible.
19357+ New hard line break syntax: backslash followed by newline.
19358+ Improved performance of markdown reader by ~10% by eliminating the
19359 need for a separate parsing pass for notes.
19360+ Improved syntax highlighting for literate Haskell.
19361+ Support for "..code-block" directive in RST reader.
19362+ Windows binary now includes highlighting support.
19363+ Many bug fixes and small improvements. See [changelog]
19366## pandoc 1.2.1 (2009-07-18)
19368+ Improved the efficiency of the markdown reader's
19369 abbreviation parsing (should give a big performance
19370 boost with `--smart`).
19371+ HTML writer now wraps sections in divs with unique
19372 identifiers, for easier manipulation.
19373+ Improved LaTeX reader's coverage of math modes.
19374+ Added a portable Haskell version of markdown2pdf (thanks
19375 to Paolo Tanimoto).
19376+ Made `--strict` compatible with `--standalone` and `--toc.`
19377+ Many other small improvements and bug fixes.
19378 See [changelog] for details.
19380## pandoc 1.2 (2009-03-01)
19382+ Added support for literate Haskell. lhs support is triggered by
19383 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
19384 Haskell LaTeX. '.lhs' files are treated by default as literate
19386+ Added `--email-obfuscation` option.
19387+ Brought citeproc support up to date for citeproc-hs-0.2.
19388+ Many bugs fixed. See [changelog] for details.
19390## pandoc 1.1 (2008-11-06)
19392+ New `--jsmath` option supporting use of pandoc with [jsMath].
19393+ Classes on HTML table output for better CSS styling.
19394+ Windows installer no longer requires admin privileges.
19395+ Many bugs fixed. See [changelog] for details.
19397## pandoc 1.0 (2008-09-13)
19399+ New writers for MediaWiki, GNU Texinfo (thanks to Peter Wang),
19400 OpenDocument XML (thanks to Andrea Rossato), and ODT (OpenOffice
19402+ New [delimited code blocks](README.html#delimited-code-blocks),
19403 with optional syntax highlighting.
19404+ Reorganized build system: pandoc can now be built using standard
19405 Cabal tools. It can be compiled on Windows without Cygwin.
19406 The tests can also be run without perl or unix tools.
19407+ LaTeXMathML replaces ASCIIMathML for rendering math in HTML.
19408+ Support for "displayed" math.
19409+ Common abbreviations are now handled more intelligently, with
19410 a non-breaking space (and not a sentence-ending space) after
19412+ Code is -Wall clean.
19413+ Many bug fixes and small improvements. See [changelog] for
19416## pandoc 0.46 (2008-01-08)
19418+ Added a `--sanitize-html` option (and a corresponding parameter
19419 in `ParserState` for those using the pandoc libraries in programs).
19420 This option causes pandoc to sanitize HTML (in HTML or Markdown
19421 input) using a whitelist method. Possibly harmful HTML elements
19422 are replaced with HTML comments. This should be useful in the
19423 context of web applications, where pandoc may be used to convert
19424 user input into HTML.
19425+ Made -H, -A, and -B options cumulative: if they are specified
19426 multiple times, multiple files will be included.
19427+ Many bug fixes and small improvements. See [changelog] for full
19430## pandoc 0.45 (2007-12-09)
19432+ Many bug fixes and structural improvements. See [changelog] for
19434+ Improved treatment of math. Math is now rendered using unicode
19435 by default in HTML, RTF, and DocBook output. For more accurate
19436 display of math in HTML, `--gladtex`, `--mimetex`, and `--asciimathml`
19437 options are provided. See the [User's Guide](README.html#math) for
19439+ Removed support for box-style block quotes in markdown.
19440+ More idiomatic ConTeXt output.
19441+ Text wrapping in ConTeXt and LaTeX output.
19442+ Pandoc now correctly handles all standard line endings
19444+ New `--no-wrap` option that disables line wrapping and minimizes
19445 whitespace in HTML output.
19446+ Build process is now compatible with both GHC 6.8 and GHC 6.6.
19447 GHC and GHC_PKG environment variables may be used to specify
19448 which version of the compiler to use, when multiple versions are
19451## pandoc 0.44 (2007-09-03)
19453 [ John MacFarlane ]
19455 * Fixed bug in HTML writer: when --toc was used, anchors were put around
19456 headers, which is invalid XHTML (block content within inline element).
19457 Now the anchors are put inside the header tags. Resolves Issue #23.
19459 * Added xmlns attribute to html element in html writer tests.
19460 This attribute is added by more recent versions of the
19461 xhtml library (>= 3000), and is required for valid XHTML.
19465 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
19466 command instead of 'runhaskell', which, on some platforms (such as s390,
19467 alpha, m68k), throws the following error:
19469 runhaskell Setup.hs configure --prefix=/usr
19470 ghc-6.6.1: not built for interactive use
19472 This causes a serious FTBFS bug. Closes: #440668.
19474## pandoc 0.43 (2007-09-02)
19476 [ John MacFarlane ]
19478 * The focus of this release is performance. The markdown parser
19479 is about five times faster than in 0.42, based on benchmarks
19480 with the TextMate manual.
19482 * Main.hs: Replaced CRFilter and tabFilter with single function
19483 tabFilter, which operates on the whole string rather than breaking
19484 it into lines, and handles dos-style line-endings as well as tabs.
19486 * Added separate LaTeX reader and native reader tests; removed
19489 * Text.Pandoc.Shared:
19491 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
19492 + General code cleanup (to elimante warnings when compiling with -Wall.)
19493 + Added 'wrapped' function, which helps wrap text into paragraphs,
19494 using the prettyprinting library.
19495 + Rewrote charsInBalanced and charsInBalanced'.
19496 - Documented restriction: open and close must be distinct characters.
19497 - Rearranged options for greater efficiency.
19498 - Bug fix: Changed inner call to charsInBalanced inside
19499 charsInBalanced' to charsInBalanced'.
19500 + anyLine now requires that the line end with a newline (not eof).
19501 This is a harmless assumption, since we always add newlines to the
19502 end of a block before parsing with anyLine, and it yields a 10% speed
19504 + Removed unnecessary 'try' in anyLine.
19505 + Removed unneeded 'try' from romanNumeral parser.
19506 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
19507 + Removed unneeded 'try' in parseFromString.
19508 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
19510 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
19511 'try' is not automatically applied to the 'end' parser. Added
19512 'try' in calls to 'enclosed' where needed. Slight speed increase.
19516 + Replaced individual wrapping routines in RST, Man, and Markdown
19517 writers with 'wrapped' from Text.Pandoc.Shared.
19518 + Rewrote LaTeX writer to use the prettyprinting library,
19519 so we get word wrapping, etc.
19520 + Modified latex writer tests for new latex writer using prettyprinter.
19521 + Fixed bug in LaTeX writer: autolinks would not cause
19522 `\usepackage{url}` to be put in the document header. Also, changes
19523 to state in enumerated list items would be overwritten.
19524 + In Markdown writer, escape paragraphs that begin with ordered list
19525 markers, so they don't get interpreted as ordered lists.
19527 * Text.Pandoc.Reades.LaTeX:
19529 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
19530 numeral after "enum" in "setcounter" would consist entirely of
19531 "i"s. 'enumiv' is legitimate.
19532 + LaTeX command and environment names can't contain numbers.
19533 + Rearranged order of parsers in inline for slight speed improvement.
19534 + Added '`' to special characters and 'unescapedChar'.
19536 * Text.Pandoc.Readers.RST:
19538 + Removed unneeded try's in RST reader; also minor code cleanup.
19540 + Rearranged parsers in inline (doubled speed).
19542 * Text.Pandoc.Readers.Markdown:
19544 + Skip notes parsing if running in strict mode. (This yields a nice
19545 speed improvement in strict mode.)
19546 + Simplify autolink parsing code, using Network.URI to test for
19547 URIs. Added dependency on network library to debian/control and
19549 + More perspicuous definition of nonindentSpaces.
19550 + Removed unneeded 'try' in 'rawLine'.
19551 + Combined linebreak and whitespace into a new whitespace parser, to
19552 avoid unnecessary reparsing of space characters.
19553 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
19554 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
19555 + Use lookAhead in parsers for setext headers and definition lists
19556 to see if the next line begins appropriately; if not, don't waste
19557 any more time parsing.
19558 + Don't require blank lines after code block. (It's sufficient to
19559 end code block with a nonindented line.)
19560 + Changed definition of 'emph': italics with '_' must not
19561 be followed by an alphanumeric character. This is to help
19562 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
19563 `[LC<em>TYPE]:my</em>type`.
19564 + Improved Markdown.pl-compatibility in referenceLink: the two parts
19565 of a reference-style link may be separated by one space, but not
19566 more... [a] [link], [not] [a link].
19567 + Fixed markdown inline code parsing so it better accords with
19568 Markdown.pl: the marker for the end of the code section is a clump
19569 of the same number of `'s with which the section began, followed
19570 by a non-` character. So, for example,
19571 ` h ``` i ` -> `<code>h ``` i</code>`.
19572 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
19573 rules are slightly different.
19574 + Rewrote 'para' for greater efficiency.
19575 + Rewrote link parsers for greater efficiency.
19576 + Removed redundant 'referenceLink' in definition of inline (it's
19577 already in 'link').
19578 + Refactored escapeChar so it doesn't need 'try'.
19579 + Refactored hrule for performance in Markdown reader.
19580 + More intelligent rearranging of 'inline' so that most frequently
19581 used parsers are tried first.
19582 + Removed tabchar parser, as whitespace handles tabs anyway.
19584 * Text.Pandoc.CharacterReferences:
19587 + Removed unnecessary 'try's for a speed improvement.
19588 + Removed unnecessary '&' and ';' from the entity table.
19592 + Makefile: Get VERSION from cabal file, not Main.hs.
19593 + Modified MacPorts Portfile:
19594 - Depend on haddock
19595 - Build and install libraries and library documentation in
19596 addition to pandoc executable
19597 - Added template item for md5 sum in Portfile.in.
19598 - Incorporated changes from MacPorts repository (r28278).
19599 + FreeBSD port: Don't try to generate distinfo in Makefile.
19600 It can be made using 'make makesum' in FreeBSD.
19601 + Make both freebsd and macports targets depend on tarball.
19603 * Website and documentation:
19605 + Updated INSTALL instructions.
19606 + Added pandocwiki demo to website.
19607 + Removed local references to Portfile, since pandoc is now in the
19608 MacPorts repository.
19610## pandoc 0.42 (2007-08-26)
19612 [ John MacFarlane ]
19614 * Main.hs: Use utf8 conversion on the extra files loaded with
19615 the -H, -C, -B, and -A options. This fixes problems with unicode
19616 characters in these files.
19618 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
19619 Text.Pandoc.Readers.HTML and without it we get a linking error when
19624 + Added new rule for enhanced markdown ordered lists: if the list
19625 marker is a capital letter followed by a period (including a
19626 single-letter capital roman numeral), then it must be followed by
19627 at least two spaces. The point of this is to avoid accidentally
19628 treating people's initials as list markers: a paragraph might begin,
19629 "B. Russell was an English philosopher," and this shouldn't be
19630 treated as a list. Documented change in README.
19631 + Blocks that start with "p. " and a digit are no longer treated
19632 as ordered lists (it's a page number).
19633 + Added a needed 'try' to listItem.
19634 + Removed check for a following setext header in endline.
19635 A full test is too inefficient (doubles benchmark time), and the
19636 substitute we had before is not 100% accurate.
19637 + Don't use Code elements for autolinks if --strict specified.
19639 * LaTeX writer: When a footnote ends with a Verbatim environment, the
19640 close } of the footnote cannot occur on the same line or an error occurs.
19641 Fixed this by adding a newline before the closing } of every footnote.
19644 + Removed incorrect "{}" around style information in HTML tables.
19645 Column widths now work properly in HTML.
19646 + If --strict option is specified (and --toc is not), don't include
19647 identifiers in headers, for better Markdown compatibility.
19651 + Separated $(web_dest) and website targets.
19652 + In website, index.txt is now constructed from template index.txt.in.
19653 + Added freebsd target to Markefile. This creates the freebsd Makefile
19654 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
19655 from the repository.
19656 + Added macport target to Makefile. Portfile is built from template
19658 + Removed OSX package targets. (Too many difficulties involving
19659 dependencies on dynamic libraries.)
19660 + More complete INSTALL instructions for all architectures.
19663 + Added a programming demo, pandocwiki.
19667 * Do not forget to close pandoc's ITP. Closes: #391666
19669## pandoc 0.41 (2007-08-19)
19671 [ John MacFarlane ]
19673 * Fixed bugs in HTML reader:
19674 + Skip material at end *only if* `</html>` is present (previously,
19675 only part of the document would be parsed if an error was
19676 found; now a proper error message is given).
19677 + Added new constant eitherBlockOrInline with elements that may
19678 count either as block-level or as inline. Modified isInline and
19679 isBlock to take this into account.
19680 + Modified rawHtmlBlock to accept any tag (even an inline tag):
19681 this is innocuous, because rawHtmlBlock is tried only if a regular
19682 inline element can't be parsed.
19683 + Added a necessary 'try' in definition of 'para'.
19685 * Fixed bug in markdown ordered list parsing. The problem was that
19686 anyOrderedListStart did not check for a space following the
19687 ordered list marker. So in 'A.B. 2007' the parser would be
19688 expecting a list item, but would not find one, causing an error.
19689 Fixed a similar bug in the RST reader. Resolves Issue #22.
19691 * Refactored RST and Markdown readers using parseFromString.
19693 * LaTeX reader will now skip anything after \end{document}.
19695 * Fixed blockquote output in markdown writer: previously, block
19696 quotes in indented contexts would be indented only in the first
19699 * Added note to INSTALL about variations in versions of the xhtml
19700 library that can lead to failed tests (thanks to Leif LeBaron).
19702## pandoc 0.4 (2007-01-16)
19704 [ John MacFarlane ]
19706 * Added two new output formats: groff man pages and ConTeXt. By
19707 default, output files with extensions ".ctx" and ".context" are
19708 assumed to be ConTeXt, and output files with single-digit extensions
19709 are assumed to be man pages.
19711 * Enhanced ordered lists (documented in README, under Lists):
19712 + The OrderedList block element now stores information about
19713 list number style, list number delimiter, and starting number.
19714 + The readers parse this information when possible.
19715 + The writers use this information to style ordered lists.
19716 + The enhancement can be disabled using the --strict option.
19718 * Added support for tables (with a new Table block element). Two kinds
19719 of tables are supported: a simple table with one-line rows, and a
19720 more complex variety with multiline rows. All output formats are
19721 supported, but only markdown tables are parsed at the moment. The
19722 syntax is documented in README.
19724 * Added support for definition lists (with a new DefinitionList block
19725 element). All output and input formats are supported. The syntax is
19726 documented in README.
19728 * Added support for superscripts and subscripts (with new Superscript
19729 and Subscript inline elements). All input and output
19730 formats. The syntax is documented in README.
19732 * Added support for strikeout (with a new Strikeout inline element).
19733 All input and output formats are supported. Thanks to Bradley Kuhn,
19734 who contributed a patch. The syntax is documented in README. Resolves
19737 * Added a --toc|--table-of-contents option. This causes an automatically
19738 generated table of contents (or an instruction that creates one) to
19739 be inserted at the beginning of the document. Not supported in S5,
19740 DocBook, or man page writers.
19742 * Modified the -m|--asciimathml option:
19744 + If an optional URL argument is provided, a link is inserted
19745 instead of the contents of the ASCIIMathML.js script.
19746 + Nothing is inserted unless the document actually contains
19749 * Removed Blank block element as unnecessary.
19751 * Removed Key and Note blocks from the Pandoc data structure. All
19752 links are now stored as explicit links, and note contents are
19753 stored with the (inline) notes.
19755 + All link Targets are now explicit (URL, title) pairs; there
19756 is no longer a 'Ref' target.
19757 + Markdown and RST parsers now need to extract data from key and
19758 note blocks and insert them into the relevant inline elements.
19759 Other parsers have been simplified, since there is no longer any need
19760 to construct separate key and note blocks.
19761 + Markdown, RST, and HTML writers need to construct lists of
19762 notes; Markdown and RST writers need to construct lists of link
19763 references (when the --reference-links option is specified); and
19764 the RST writer needs to construct a list of image substitution
19765 references. All writers have been rewritten to use the State monad
19766 when state is required.
19767 + Several functions (generateReference, keyTable,
19768 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
19769 used by them) have been removed from Text.Pandoc.Shared, since
19770 they are no longer needed. New functions and data structures
19771 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
19772 added. The functions inTags, selfClosingTag, inTagsSimple, and
19773 inTagsIndented have been moved to the DocBook writer, since that
19774 is now the only module that uses them. NoteTable is now exported
19775 in Text.Pandoc.Shared.
19776 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
19777 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
19778 + Added writerNotes and writerReferenceLinks to WriterOptions.
19780 * Added Text.Pandoc module that exports basic readers, writers,
19781 definitions, and utility functions. This should export everything
19782 needed for most uses of Pandoc libraries. The haddock documentation
19783 includes a short example program.
19785 * Text.Pandoc.ASCIIMathML is no longer an exported module.
19787 * Added Text.Pandoc.Blocks module to help in printing markdown
19788 and RST tables. This module provides functions for working with
19789 fixed-width blocks of text--e.g., placing them side by side, as
19792 * Refactored to avoid reliance on Haskell's Text.Regex library, which
19793 (a) is slow, and (b) does not properly handle unicode. This fixed
19794 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
19796 + Replaced 'gsub' with a general list function 'substitute'
19797 that does not rely on Text.Regex.
19798 + Rewrote extractTagType in HTML reader so that it doesn't use
19800 + In Markdown reader, replaced email regex test with a custom email
19801 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
19802 with a custom function isSelfClosingTag.
19803 + Modified Docbook writer so that it doesn't rely on Text.Regex for
19804 detecting 'mailto' links.
19805 + Removed escapePreservingRegex and reamped entity-handling
19806 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
19807 avoid reliance on Text.Regex (see below on character reference
19810 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
19812 * Changed handling of XML entities. Entities are now parsed (and unicode
19813 characters returned) in the Markdown and HTML readers, rather than being
19814 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
19815 instead of entities for characters above 128. This makes the HTML and
19816 DocBook output much more readable and more easily editable.
19818 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
19819 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
19820 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
19821 Moved both functions to Text.Pandoc.Writers.Docbook.
19822 + Added characterReference parser to Text.Pandoc.CharacterReferences.
19823 This parses a string and return a unicode character.
19824 + Rewrote decodeCharacterReferences to use the new parser instead of
19826 + Added new charRef parser for Markdown and HTML, which replaces the
19827 old 'entity' parser. Added '&' as a special character in Markdown reader.
19828 + Modified HTML and Markdown readers to call decodeEntities on all raw
19829 strings (e.g. authors, dates, link titles), to ensure that no
19830 unprocessed entities are included in the native representation of
19831 the document. (In the HTML reader, most of this work is done by a
19832 change in extractAttributeName.)
19833 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
19834 since a unicode non-breaking space is impossible to distinguish visually
19835 from a regular space. (Resolves Issue #3.)
19836 + Removed encodeEntitiesNumerical.
19837 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
19838 slight performance boost over the old association list.
19839 + Removed unneeded decodeEntities from 'str' parser in HTML and
19842 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
19843 fromUTF8, for clarity.
19845 * Replaced old haskell98 module names replaced by hierarchical module
19846 names, e.g. List by Data.List. Removed haskell98 from dependencies
19847 in pandoc.cabal, and added mtl (needed for state monad). Substituted
19850 * Refactored and cleaned up character escaping in writers, using
19851 backslashEscapes and escapeStringUsing functions.
19853 * Instead of adding `\n\n` to the end of an input string in Main.hs,
19854 this is now done in the readers. This makes the libraries behave
19855 the way you'd expect from the pandoc program. Resolves Issue #10.
19857 * URLs and email addresses in autolinks are now typeset as Code.
19859 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
19860 doesn't display the whole output unless there's a line ending.
19862 * Major code cleanup in all modules, for greater consistency, concision,
19867 + Fixed several bugs (extractTagType, attribute parsing).
19868 + Remove Null blocks in lists of blocks when possible.
19869 + Allow HTML comments as raw HTML inline.
19873 + Ordered list items may no longer begin with uppercase letters, or
19874 letters greater than 'n'. (This prevents first initials and page
19875 reference, e.g. 'p. 400', from being parsed as beginning lists.)
19876 Also, numbers beginning list items may no longer end with ')',
19877 which is now allowed only after letters. Note: These changes
19878 may cause documents to be parsed differently. Users should take
19880 + Changed autoLink parsing to conform better to Markdown.pl's
19881 behavior. `<google.com>` is not treated as a link, but
19882 `<http://google.com>`, `<ftp://google.com>`, and
19883 `<mailto:google@google.com>` are.
19884 + Cleaned up handling of embedded quotes in link titles. Now these are
19885 stored as a '"' character, not as '"'.
19886 + Use lookAhead parser for the 'first pass' (looking for reference keys),
19887 instead of parsing normally, then using setInput to reset input. This
19888 yields a slight performance boost.
19889 + Fixed several bugs in smart quote recognition.
19890 + Fixed bug in indentSpaces (which didn't properly handle
19891 cases with mixed spaces and tabs).
19892 + Consolidated 'text', 'special', and 'inline' into 'inline'.
19893 + Fixed bug which allowed URL and title to be separated by multiple blank
19894 lines in links and reference keys. They can be on separate lines but
19895 can't have blank lines between them.
19896 + Correctly handle bracketed text inside inline footnotes and links,using
19897 new function inlinesInBalanced. Resolves Issue #14.
19898 + Fixed bug in footnotes: links in footnotes were not being
19899 processed. Solution: three-stage parse. First, get all the
19900 reference keys and add information to state. Next, get all the
19901 notes and add information to state. (Reference keys may be needed
19902 at this stage.) Finally, parse everything else.
19903 + Replaced named constants like 'emphStart' with literals.
19904 + Removed an extra occurrence of escapedChar in definition of inline.
19908 + Allow the URI in a RST hyperlink target to start on the line
19909 after the reference key.
19910 + Added 'try' in front of 'string', where needed, or used a different
19911 parser. This fixes a bug where ````` would not be correctly parsed as
19913 + Fixed slow performance in parsing inline literals in RST reader. The
19914 problem was that ``#`` was seen by 'inline' as a potential link or image.
19915 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
19917 + Use lookAhead instead of getInput/setInput in RST reader. Removed
19918 unneeded getState call, since lookAhead automatically saves and
19919 restores the parser state.
19920 + Allow hyperlink target URIs to be split over multiple lines, and
19921 to start on the line after the reference. Resolves Issue #7.
19922 + Fixed handling of autolinks.
19926 + Replaced `choice [(try (string ...), ...]` idiom with `oneOfStrings`,
19928 + Added clauses for tilde and caret. Tilde is `\ensuremath{\sim}`, and
19929 caret is `\^{}`, not `\^` as before.
19930 + Added parsing for `\url`.
19931 + Parse `\texttt{}` as code, provided there's nothing fancy inside.
19935 + Modified HTML writer to use the Text.XHtml library. This results
19936 in cleaner, faster code, and it makes it easier to use Pandoc in
19937 other projects, like wikis, which use Text.XHtml. Two functions are
19938 now provided, writeHtml and writeHtmlString: the former outputs an
19939 Html structure, the latter a rendered string. The S5 writer is also
19940 changed, in parallel ways (writeS5, writeS5String).
19941 + The Html header is now written programmatically, so it has been
19942 removed from the 'headers' directory. The S5 header is still
19943 needed, but the doctype and some of the meta declarations have
19944 been removed, since they are written programmatically. This change
19945 introduces a new dependency on the xhtml package.
19946 + Fixed two bugs in email obfuscation involving improper escaping
19947 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
19949 + Fixed another bug in email obfuscation: If the text to be obfuscated
19950 contains an entity, this needs to be decoded before obfuscation.
19951 Thanks to thsutton for the patch. Resolves Issue #15.
19952 + Changed the way the backlink is displayed in HTML footnotes.
19953 Instead of appearing on a line by itself, it now generally
19954 appears on the last line of the note. (Exception: when the
19955 note does not end with a Plain or Para block.) This saves space
19957 + Added automatic unique identifiers to headers:
19958 - The identifier is derived from the header via a scheme
19959 documented in README.
19960 - WriterState now includes a list of header identifiers and a table
19961 of contents in addition to notes.
19962 - The function uniqueIdentifiers creates a list of unique identifiers
19963 from a list of inline lists (e.g. headers).
19964 - This list is part of WriterState and gets consumed by blockToHtml
19965 each time a header is encountered.
19966 + Include CSS for .strikethrough class in header only if strikethrough
19967 text appears in the document.
19968 + If the 'strict' option is specified, elements that do not appear in
19969 standard markdown (like definition lists) are passed through as
19971 + Simplified treatment of autolinks, using pattern matching instead of
19976 + Links in markdown output are now printed as inline links by default,
19977 rather than reference links. A --reference-links option has been added
19978 that forces links to be printed as reference links. Resolves Issue #4.
19979 + Use autolinks when possible. Instead of `[site.com](site.com)`,
19984 + Rewrote to use the State monad. The preamble now includes only those
19985 packages that are actually required, given the document's content.
19986 Thus, for example, if strikeout is not used, ulem is not required.
19987 Modified LaTeXHeader accordingly.
19988 + Modified LaTeX writer to insert `\,` between consecutive quotes.
19989 + Removed unused function tableRowColumnWidths.
19990 + Simplified code for escaping special characters.
19991 + Leave extra blank line after `\maketitle`.
19992 + Include empty `\author{}` when no author specified to avoid LaTeX
19994 + Include fancyvrb code in header only if needed -- that is, only
19995 if there is actually code in a footnote.
19996 + Use `\url{}` for autolinks.
19997 + Include [mathletters] option in ucs package, so that basic unicode
19998 Greek letters will work correctly.
20000 * RST writer: Force blank line before lists, so that sublists will
20001 be handled correctly.
20003 * Docbook writer: Fixed a bug: email links with text, like
20004 [foo](me@bar.baz), were being incorrectly treated as autolinks.
20006 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
20007 Text.Pandoc.Shared.
20009 * Text.Pandoc.Shared:
20011 + Added defaultWriterOptions.
20012 + Added writerTableOfContents to WriterOptions.
20013 + Added writerIgnoreNotes option to WriterOptions. This is needed
20014 for processing header blocks for a table of contents, since notes on
20015 headers should not appear in the TOC.
20016 + Added prettyprinting for native Table format.
20017 + Removed some unneeded imports.
20018 + Moved escape and nullBlock parsers from
20019 Text.ParserCombinators.Pandoc, since the latter is for
20020 general-purpose parsers that don't depend on Text.Pandoc.Definition.
20021 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
20022 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
20023 writer, because HTML writer now uses these in constructing a table
20025 + Added clauses for new inline elements (Strikeout, Superscript,
20026 Subscript) to refsMatch.
20027 + Removed backslashEscape; added new functions escapeStringUsing and
20029 + Moved failIfStrict from markdown reader, since it is now used also
20030 by the HTML reader.
20031 + Added a 'try' to the definition of indentSpaces.
20032 + In definition of 'reference', added check to make sure it's not a note
20034 + Added functions: camelCaseToHyphenated, toRomanNumeral,
20035 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
20036 charsInBalanced', withHorizDisplacement, romanNumeral
20037 + Fixed a bug in the anyLine parser. Previously it would parse an empty
20038 string "", but it should fail on an empty string, or we get an error
20039 when it is used inside "many" combinators.
20040 + Removed followedBy' parser, replacing it with the lookAhead parser from
20042 + Added some needed 'try's before multicharacter parsers, especially in
20044 + Removed the 'try' from the 'end' parser in 'enclosed', so that
20045 'enclosed' behaves like 'option', 'manyTill', etc.
20046 + Added lineClump parser, which parses a raw line block up to and
20047 including any following blank lines.
20048 + Renamed parseFromStr to parseFromString.
20049 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
20050 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
20052 + Removed unneeded 'try' in blanklines.
20053 + Removed endsWith function and rewrote calling functions to use
20054 isSuffixOf instead.
20055 + Added >>~ combinator.
20056 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
20059 * Refactored runtests.pl; added separate tests for tables.
20063 + Added -asxhtml flag to tidy in html2markdown. This will
20064 perhaps help the parser, which expects closing tags.
20065 + Modified markdown2pdf to run pdflatex a second time if --toc or
20066 --table-of-contents was specified; otherwise the table of
20067 contents won't appear.
20068 + Modified markdown2pdf to print a helpful message if the 'ulem'
20069 LaTeX package is required and not found.
20071 * Changes to build process:
20073 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
20075 + Removed cabalize and Pandoc.cabal.in. The repository now contains
20076 pandoc.cabal itself.
20077 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
20078 likes the cabal file to have the same name as the tarball.
20079 + Expanded and revised the package description in pandoc.cabal.
20080 Revised the package synopsis.
20081 + The tarball built by 'make tarball' now contains files built from
20082 templates (including man pages and shell scripts), so pandoc can
20083 be built directly using Cabal tools, without preprocessing.
20084 + Executable binaries are now stripped before installing.
20085 + Man pages are now generated from markdown sources, using pandoc's
20087 + Use HTML version of README (instead of RTF) in Mac OS X installer.
20088 + Instead of testing for the existence of a pandoc symlink in build-exec,
20093 + Updated README and man pages with information on new features.
20094 + Updated INSTALL instructions with some useful clarifications and
20096 + Updated web content.
20098 * Added FreeBSD port.
20104 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
20105 libghc6-xhtml-dev. Removed libghc6-html-dev.
20106 + Suggest texlive-latex-recommended | tetex-extra instead of
20107 tetex-bin. This brings in fancyvrb and unicode support.
20110## pandoc 0.3 (2007-01-05)
20112 [ John MacFarlane ]
20114 * Changes in pandoc options:
20116 + Allow options to follow or precede arguments.
20117 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
20118 + Added '--strict' option.
20119 + Added '-o/--output' option.
20120 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
20121 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
20122 error conditions. This is helpful for writing wrappers.
20123 + Added copyright message to '-v' output, modeled after FSF messages.
20124 + Reformatted usage message so that it doesn't wrap illegibly.
20125 + Removed extra blanks after '-h' and '-D' output.
20127 * Added docbook writer.
20129 * Added implicit setting of default input and output format based
20130 on input and output filename extensions. These defaults are
20131 overridden if explicit input and output formats are specified using
20132 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
20135 * Allow ordered list items to begin with (single) letters, as well
20136 as numbers. The list item marker may now be terminated either by
20137 '.' or by ')'. This extension to standard markdown is documented
20140 * Revised footnote syntax. (See README for full details.) The
20141 '[^1]' format now standard in markdown extensions is supported,
20142 as are inline footnotes with this syntax: `^[My note.]`.
20143 The earlier footnote syntax `^(1)` is no longer supported.
20145 * Improved HTML representation of footnotes. All footnotes
20146 are now auto-numbered and appear in an ordered list at the
20147 end of the HTML document. Since the default appearance is now
20148 acceptable, the old footnote styles have been removed from the
20153 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
20154 These readers ran 'runParser' on processed chunks of text to handle
20155 embedded block lists in lists and quotation blocks. But then
20156 any changes made to the parser state in these chunks was lost,
20157 as the state is local to the parser. So, for example, footnotes
20158 didn't work in quotes or list items. The fix: instead of calling
20159 runParser on some raw text, use setInput to make it the input, then
20160 parse it, then use setInput to restore the input to what it was
20161 before. This is shorter and more elegant, and it fixes the problem.
20162 + Fixed bug in notFollowedBy' combinator (adding 'try' before
20163 'parser'). Adjusted code that uses this combinator accordingly.
20164 + Fixed bug in RTF writer that caused improper indentation on
20165 footnotes occurring in indented blocks like lists.
20166 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
20167 and date are parsed correctly. Everything else in the preamble
20169 + Modified escapedChar in LaTeX reader to allow a `\` at the end of a
20170 line to count as escaped whitespace.
20171 + Modified LaTeX reader to produce inline links rather than reference
20172 links. Otherwise, links in footnotes aren't handled properly.
20173 + Fixed handling of titles in links in Markdown reader, so that
20174 embedded quotation marks are now handled properly.
20175 + Fixed Markdown reader's handling of embedded brackets in links.
20176 + Fixed Markdown reader so that it only parses bracketed material
20177 as a reference link if there is actually a corresponding key.
20178 + Revised inline code parsing in Markdown reader to conform to
20179 markdown standard. Now any number of `s can begin inline code,
20180 which will end with the same number of `s. For example, to
20181 have two backticks as code, write ``` `` ```. Modified Markdown
20182 writer accordingly.
20183 + Fixed bug in text-wrapping routine in Markdown and RST writers.
20184 Now LineBreaks no longer cause wrapping problems.
20185 + Supported hexadecimal numerical entity references as well as
20187 + Fixed bug in Markdown reader's handling of underscores and other
20188 inline formatting markers inside reference labels: for example,
20189 in '[A_B]: /url/a_b', the material between underscores was being
20190 parsed as emphasized inlines.
20191 + Changed Markdown reader's handling of backslash escapes so that
20192 only non-alphanumeric characters can be escaped. Strict mode
20193 follows Markdown.pl in only allowing a select group of punctuation
20194 characters to be escaped.
20195 + Modified HTML reader to skip a newline following a `<br>` tag.
20196 Otherwise the newline will be treated as a space at the beginning
20199 * Made handling of code blocks more consistent. Previously, some
20200 readers allowed trailing newlines, while others stripped them.
20201 Now, all readers strip trailing newlines in code blocks. Writers
20202 insert a newline at the end of code blocks as needed.
20204 * Modified readers to make spacing at the end of output more consistent.
20206 * Minor improvements to LaTeX reader:
20208 + `\thanks` now treated like a footnote.
20209 + Simplified parsing of LaTeX command arguments and options.
20210 commandArgs now returns a list of arguments OR options (in
20211 whatever order they appear). The brackets are included, and
20212 a new stripFirstAndLast function is provided to strip them off
20213 when needed. This fixes a problem in dealing with \newcommand
20214 and \newenvironment.
20216 * Revised RTF writer:
20218 + Default font is now Helvetica.
20219 + An `\f0` is added to each `\pard`, so that font resizing works
20222 * Moved handling of "smart typography" from the writers to the Markdown
20223 and LaTeX readers. This allows great simplification of the writers
20224 and more accurate smart quotes, dashes, and ellipses. DocBook can
20225 now use `<quote>`. The '--smart' option now toggles an option in
20226 the parser state rather than a writer option. Several new kinds
20227 of inline elements have been added: Quoted, Ellipses, Apostrophe,
20230 * Changes in HTML writer:
20232 + Include title block in header even when title is null.
20233 + Made javascript obfuscation of emails even more obfuscatory,
20234 by combining it with entity obfuscation.
20236 * Changed default ASCIIMathML text color to black.
20240 + Added --strip-trailing-cr option to diff in runtests.pl, for
20241 compatibility with Windows.
20242 + Added regression tests with footnotes in quote blocks and lists.
20244 * Makefile changes:
20246 + osx-pkg target creates a Mac OS X package (directory). New osx
20247 directory contains files needed for construction of the package.
20248 + osx-dmg target creates a compressed disk image containing the package.
20249 + win-pkg target creates Windows binary package.
20250 + tarball target creates distribution source tarball.
20251 + website target generates pandoc's website automatically, including
20252 demos. New 'web' directory contains files needed for construction
20253 of the website (which will be created as the 'pandoc' subdirectory
20255 + Makefile checks to see if we're running Windows/Cygwin; if so,
20256 a '.exe' extension is added to each executable in EXECS.
20258 * Removed all wrappers except markdown2pdf and html2markdown.
20260 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
20261 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
20262 option and disables other options.
20264 * Added code to html2markdown that tries to determine the character
20265 encoding of an HTML file, by parsing the "Content-type" meta tag.
20267 + If the encoding can't be determined, then if the content is local,
20268 the local encoding is used; if it comes from a URL, UTF-8 is used
20270 + If input is from STDIN, don't try to determine character encoding.
20271 + Encoding can be specified explicitly using '-e' option.
20273 * Improved warning messages in wrappers:
20275 + Print warning if iconv not available
20276 + More user-friendly error messages in markdown2pdf, when
20281 + Renamed 'Text/Pandoc/HtmlEntities' module to
20282 'Text/Pandoc/Entities'. Also changed function names so as
20283 not to be HTML-specific.
20284 + Refactored SGML string escaping functions from HTML and Docbook
20285 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
20286 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
20288 + Removed splitBySpace and replaced it with a general, polymorphic
20290 + Refactored LaTeX reader for clarity (added isArg function).
20291 + Converted some CR's to LF's in src/ui/default/print.css.
20292 + Added license text to top of source files.
20293 + Added module data for haddock to source files.
20294 + Reformatted code for consistency.
20296 * Rewrote documentation and man pages. Split README into INSTALL
20299 * Split LICENSE into COPYING and COPYRIGHT.
20301 * Removed TODO, since we now maintain ToDo on the wiki.
20303 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
20308 * Revamped build process to conform to debian standards and created
20309 a proper debian package. Closes: #391666.
20311 * Modified build process to support GHC 6.6.
20313 + The package can still be compiled using GHC 6.4.2, though because
20314 of dependencies the "make deb" target works only with GHC 6.6+.
20315 + The script 'cabalize' is used to create an appropriate
20316 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
20319 * Refactored template processing (fillTemplates.pl).
20321 * Modified wrapper scripts to make them more robust and portable.
20322 To avoid code duplication and ensure consistency, wrappers are
20323 generated via a templating system from templates in src/wrappers.
20325 + Wrappers now accept multiple filenames, when appropriate.
20326 + Spaces and tabs allowed in filenames.
20327 + getopts shell builtin is used for portable option parsing.
20328 + Improved html2markdown's web grabber code, making it more robust,
20329 configurable and verbose. Added '-e', '-g' options.
20332## pandoc 0.2 (2006-08-14)
20334 * Fixed unicode/utf-8 translation
20336## pandoc 0.1 (2006-08-14)
20338 * 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