1# Revision history for pandoc
3## pandoc 2.8 (2019-11-22)
5 * Improvements in templates system (from doctemplates):
7 + Pandoc templates now support a number of new features that
8 have been added in doctemplates: notably, `elseif`, `it`,
9 partials, filters, and syntax to control nesting and reflowing of
10 text. These changes make pandoc more suitable out of the
11 box for generating plain-text documents from data in YAML
12 metadata. It can create enumerated lists and even tabular
14 + We now used templates parameterized on doclayout Doc types.
15 The main impact of this change is better reflowing of
16 content interpolated into templates. Previously,
17 interpolated variables were rendered independently and
18 intepolated as strings, which could lead to overly long
19 lines. Now the templates interpolated as Doc values which
20 may include breaking spaces, and reflowing occurs after
21 template interpolation rather than before.
22 + Remove code from the LaTeX, Docbook, and JATS writers that
23 looked in the template for strings to determine whether it
24 is a book or an article, or whether csquotes is used. This
25 was always kludgy and unreliable.
26 + Change template code to use new API for doctemplates.
28 * Add `--defaults`/`-d` option. This adds the ability to specify
29 a collection of default values for options in a YAML file. For
30 example, one might define a set of defaults for letters,
31 and then do `pandoc -d letter myletter.md -o myletter.pdf`.
32 See the documentation of this feature in MANUAL.txt.
34 * Raise error on unsupported extensions (#4338).
36 * The `--list-extensions[=FORMAT]` option now lists only
37 extensions that affect the given FORMAT.
39 * Add `-L` option as shortcut for `--lua-filter`.
41 * Add `--shift-heading-level-by` option and deprecate
42 `--base-heading-level` (#5615). The new option does
43 everything the old one does, but also allows negative shifts.
44 It also promotes the document metadata (if not null) to a
45 level-1 heading with a +1 shift, and demotes an initial
46 level-1 heading to document metadata with a -1 shift. This
47 supports converting documents that use an initial level-1
48 heading for the document title.
50 * Allow `--metadata-file` to be used repeatedly to include
51 multiple metadata files (Owen McGrath, #5702). Values in
52 files specified first will be overridden by those in later
55 * `--ascii` now uses numerical hex character references (#5718).
57 * Allow PDF output to stdout (#5751). PDF output now behaves like other
58 binary formats: it will not be output to the terminal, but can be
59 sent to stdout using either `-o -` or a pipe. The intermediate format
60 will be determined based on the setting of `--pdf-engine`.
62 * Make some writers sensitive to 'unlisted' class on headings (#1762).
63 If this is present on a heading with the 'unnumbered' class,
64 the heading won't appear in the TOC. This class has no
65 effect if 'unnumbered' is not also specified. This affects HTML-based
66 writers (including slide shows and EPUB), LateX (including beamer), RTF,
67 and PowerPoint. Other writers do not yet support `unlisted`.
69 * Fix `gfm_auto_identifiers` behavior with emojis (#5813). Note that
70 we also now use emoji names for emojis when `ascii_identifiers`
73 * When `--ipynb-output` is used with the default "best" format, strip
74 ANSI escape codes for non-ipynb output (#5633). These cause problems
75 in many formats, including LaTeX.
77 * Don't look for template files remotely for remote input (#5579).
78 Previously pandoc would look for the template at a remote URL when a
79 URL was used for the input file, instead of taking it from the
82 * Allow combining `-Vheader-includes` and `--include-in-header` (#5904).
83 Previously `header-includes` set as a variable would be
84 clobbered by material included using `--include-in-header`.
86 * Change merge behavior for metadata. Previously, if a document
87 contained two YAML metadata blocks that set the same field, the
88 conflict would be resolved in favor of the first. Now it is resolved
89 in favor of the second (due to a change in pandoc-types).
90 This makes the behavior more uniform with other things in pandoc
91 (such as reference links and `--metadata-file`).
93 * Don't add a newline to fragment output if there's already one.
95 * Change exit codes and document in MANUAL.txt:
97 + `PandocAppError` was 1, is now 4
98 + `PandocOptionError` was 2, is now 6
99 + `PandocMakePDFError` was 65, is now 66
101 * Switch to new pandoc-types and use Text instead of String [API change].
102 (Christian Despres, #5884).
106 + Better handling of `<q>` with cite attribute (#5798, Ole Martin Ruud).
107 If a `<q>` tag has a `cite` attribute, we interpret it as a Quoted
108 element with an inner Span.
109 + Add support for HTML `<samp>` element (#5792, Amogh Rathore).
110 The `<samp>` element is parsed as Code with class `sample`.
111 + Add support for HTML `<var>` element (#5799, Amogh Rathore).
112 The `<var>` element is parsed as Code with class `variable`.
113 + Add support for `<mark>` elements (Florian B, #5797). Parse
114 `<mark>` elements from HTML as Spans with class `mark`.
115 + Add support for `<kbd>` elements, parsing them as Span with class
116 `kbd` (Daniele D'Orazio, #5796).
117 + Add support for `<dfn>`, parsing this as a Span with class `dfn`
118 (#5882, Florian Beeres).
123 + Keep `name` property in `imgAttr` (Brian Leung, #5619).
124 + Fixed parsing of indented blocks (#5753). We were requiring
125 consistent indentation, but this isn't required by RST.
126 + Use title, not admonition-title, for admonition title.
127 This puts RST reader into alignment with docbook reader.
128 + Don't strip final underscore from absolute URI (#5763).
129 + Avoid spurious warning when resolving links to internal anchors
130 ending with `_` (#5763).
134 + Accept `ATTR_LATEX` in block attributes (Albert Krewinkel, #5648).
135 Attributes for LaTeX output are accepted as valid block attributes;
136 however, their values are ignored.
137 + Modify handling of example blocks (Brian Leung, #5717).
138 + Allow the `-i` switch to ignore leading spaces (Brian Leung).
139 + Handle awkwardly-aligned code blocks within lists (Brian Leung).
140 Code blocks in Org lists must have their `#+BEGIN_` aligned in a
141 reasonable way, but their other components can be
142 positioned otherwise.
143 + Fix parsing of empty comment lines (#5856, Albert Krewinkel).
144 Comment lines in Org-mode can be completely empty.
146 * Muse reader (Alexander Krotov):
148 + Add RTL support (#5551).
149 + Do not allow closing asterisks to be followed by `*`.
150 + Do not split series of asterisks into symbols and emphasis (#5821).
151 + Do not terminate emphasis on `*` not followed by space.
155 + Parse markup inside monospace ('') (#5916, Alexander Krotov).
159 + Move style-parsing-specific code to a new unexported module,
160 Text.Pandoc.Readers.Docx.Parse.Styles (Nikolay Yakimov).
161 + Move StyleMap to docx writer (Nikolay Yakimov).
162 + Only use LTR when it is overriding BiDi setting (#5723, Jesse
163 Rosenthal). The left-to-right direction setting in docx is used
164 in the spec only for overriding an explicit right-to-left setting.
165 We only process it when it happens in a paragraph set with BiDi.
166 This is especially important for docs exported from Google Docs,
167 which explicitly (and unnecessarily) set `rtl=0` for every paragraph.
168 + Fix list number resumption for sublists (#4324).
169 The first list item of a sublist should not resume numbering
170 from the number of the last sublist item of the same level,
171 if that sublist was a sublist of a different list item.
175 + Richer parse for admonitions (Michael Peyton Jones, #1234).
176 Instead of parsing admonitions as blockquotes, we now parse
177 them as Divs with an appropriate class. We also handle titles
178 for admonitions as a nested Div with the "title" class.
179 + Fix nesting of chapters and sections (#5864, Florian Klink,
180 Félix Baylac-Jacqué).
181 + Fix bug with entities in mathphrase element (#5885).
185 + Skip optional `{{table}}` template (#5757).
189 + Fix dollar-math parsing to ensure that space is left between a
190 control sequence and a following letter (#5836).
191 + In `untokenize`, ensure space between control sequence
192 and following letter (#5836).
193 + Don't omit macro definitions defined in the preamble.
194 These were formerly omitted (though they still affected macro
195 resolution if `latex_macros` was set). Now they are included in
197 + Parse macro definitions as raw LaTeX when `latex_macros` is
198 disabled. (When `latex_macros` is enabled, we omit them, since
199 pandoc is applying the macros itself.)
200 + Fix a hang/memory leak in certain circumstances (#5845).
201 + Text.Pandoc.Readers.LaTeX.Parsing: add `[Tok]` parameter to
202 `rawLaTeXParser`. This allows us to repeat retokenizing
203 unnecessarily in e.g. `rawLaTeXBlock`.
204 + Add KOMA-Script metadata commands (#5910, Andrew Dunning).
205 Add all titling commands to existing definition for `\dedication`.
206 + Parse `\micro` siunitx unit command (#5921, Jose Luis Duran).
210 + Ensure proper nesting when we have long ordered list markers (#5705).
211 + Make `plain` output plainer (#5741). Previously we used the following
212 Project Gutenberg conventions for plain output: extra space before and
213 after level 1 and 2 headings, all-caps for strong emphasis,
214 underscores surrounding regular emphasis. Now these
215 conventions are used only when the `gutenberg` extension is
216 enabled. By default, Strong and Emph are rendered without
217 special formatting, and headings are rendered without
218 special formatting, and with only one blank line following.
219 To restore the former behavior, use `-t plain+gutenberg`.
220 + Prefer using raw_attribute when enabled (#4311).
221 The `raw_attribute` will be used to mark raw bits, even HTML
222 and LaTeX, and even when `raw_html` and `raw_tex` are
223 enabled, as they are by default. To get the old behavior,
224 disable `raw_attribute` in the writer.
225 + Prefer `pipe_tables` to raw HTML even when we must
226 lose width information (#2608, #4497).
227 + Improve escaping in list items (#5918).
231 + Don't include `+` in code blocks for regular asciidoc.
232 This is asciidoctor-specific.
233 + Handle admonitions (#5690).
237 + Add thin space when needed in LaTeX quote ligatures (#5684).
238 + Use `\hspace{0pt}` for 0-width space U+200B (#5756).
239 + Use `cslreferences` environment for csl bibliographies.
240 This allows bibliographies to receive special formatting.
241 The template now contains definition of this environment (enabled
242 only when CSL is used). It also defines a `\cslhangindent` length.
243 This is set to 2em by default when the bibliography style specifies
244 a hanging indent. To override the length, you can use e.g.
245 `\setlength{\cslhangindent}{7em}` in header-includes.
246 See jgm/pandoc-citeproc#410.
247 + Strip off `{}` around locator for biblatex/natbib output (#5722).
248 + Fix line breaks at start of paragraph (#3324).
249 Previously we just omitted these. Now we render them
250 using `\hfill\break` instead of `\\`. This is a revision
251 of a PR by @sabine (#5591) who should be credited with the idea.
252 + We no longer look in the template or header-includes to see if a
253 book or article documentclass is used, or to see whether the
254 `csquotes` package is used. To use `csquotes` for LaTeX, set
255 `csquotes` in your variables or metadata. To specify a book
256 style, use the `documentclass` variable or
257 `--top-level-division`.
258 + Fix horizontal rule (#5801). We change to use 0.5pt rather than
259 `\linethickness`, which apparently only ever worked "by accident"
260 and no longer works with recent updates to texlive.
264 + Add option to include source files in ConTeXt PDFs (Tristan
265 Stenner, #5578). The metadata field or variable
266 (`includesource`) can be set to attach the source documents
267 to the resulting PDF.
268 + Customizable type of PDF/A for the ConTeXt writer (Karl
269 Pettersson, #5608). The `pdfa` variable may now be set in metadata.
270 Also updated color profile settings in accordance with ConTeXt wiki,
271 and made ICC profile and output intent for PDF/A customizable
272 using `pdfaiccprofile` and `pdfaintent`.
273 + Unit tests: adjust code property to avoid an irrelevant
274 failure involving inline code with two consecutive newlines.
275 + Set `csl-hanging-indent` variable if needed.
276 + Use special environment for CSL references.
277 + Use braces, not start/stop, for inline language tags.
278 This prevents unwanted gobbling of spaces.
282 + Use numeric character references with `--ascii` (#5718).
283 Previously we used named character references with html5 output.
284 But these aren't valid XML, and we aim to produce html5 that is
285 also valid XHTML (polyglot markup). (This is also needed for epub3.)
286 + Ensure that line numbers in code blocks get id-prefix (#5650).
287 + Ensure TeX formulas are rendered correctly (Philip Pesca,
288 #5658). The web service passed in to `--webtex` may render
289 formulas using inline or display style by default.
290 Prefixing formulas with the appropriate command ensures
291 they are rendered correctly.
292 + Render inline formulas correctly with `--webtex` (Philip
293 Pesca, #5655). We add `\textstyle` to the beginning of the
294 formula to ensure it will be rendered in inline style.
295 + Pass through `aria-` attributes to HTML5 (#5642).
296 + Render a Quoted element with an inner Span with
297 `cite` attribute using a `<q>` tag (#5798, Ole Martin Ruud).
298 + Render a Span with class `mark` using the `<mark>` element
299 (Florian Beeres, #5797).
300 + Render Span with class `dfn` using `<dfn>` element
301 (Florian Beeres, #5882).
302 + Render Span with class `kbd` using `<kbd>` element (Daniele
304 + Render Code with class `variable` using `<var>` element
305 (Amogh Rathore, #5799).
306 + Render Code with class `sample` using `<samp>` element
307 (Amogh Rathore, #5799).
311 + Improve splitting into chapters (#5761), using `makeSection`.
312 + Avoid issuing warning multiple times when title not set (see #5760).
313 + Use svg tag wrapper for cover image (#5638). In addition, the
314 code generating the image has been moved to the template, to make it
315 more customizable. NOTE: Those who use custom EPUB
316 templates will need to adjust their templates, adding the
317 code to generate the cover image. (Previously this was just
318 inserted into 'body'.)
319 + Improve toChapters, making it work better if there are Divs
321 + Add support for EPUB2 covers (blmage, #3992).
322 + Do not override existing "fileN" medias when writing to EPUB format
324 + Ensure that `lang` variable is set on all chapters (so that it
325 will add an `xml:lang` attribute on the `html` element).
329 + Removed remnants of `admonition-title`.
330 + Fix handling of `:align:` on figures and images (#4420).
331 When the image has the `align-right` (etc.) class, we now use
332 an `:align:` attribute.
333 + Improve spacing for tables with no width information (#5899).
334 If a simple table would be too wide, we use a grid table.
335 + Fix backslash escaping after strings (Albert Krewinkel, #5906).
336 The check whether a complex inline element following a string must
337 be escaped, now depends on the last character of the string instead
339 + Ensure there's a blank line before tables (#5898).
343 + Handle mixed lists without HTML fallback (#5107).
347 + Fix multiline table (Zihang Chen, #5683).
351 + Add RTL support (Alexander Krotov, #5551).
355 + Suppress non-absolute link URLs (#5770). Absolute URLs are
356 still printed in parentheses following the link text, but relative
357 URLs are suppressed (just as internal links starting with '#'
359 + Improved definition list term output. Now we boldface code but
360 not other things. This matches the most common style in man pages
361 (particularly option lists).
365 + Use `.LP` instead of `.PP` for line block (#5588).
366 + Use boldface for definition terms in DefinitionLists.
370 + Do not emit empty `<fn-group>` (Mauro Bieg, #5595).
371 + Update template to v1.1dtd (#5632, Arfon Smith).
372 + Update `data/jats.csl` to avoid commas between editor
373 name-part elements. (#5629)
374 + Add `abstract` to template (Mauro Bieg).
378 + Don't strip hash from internal links (#5922).
382 + Remove escapeStringForJira for code blocks (Jan-Otto Kröpke).
383 + Remove extraneous newline after single-line block quotes
384 (#5858, Albert Krewinkel).
385 + Improve escaping of special characters, using backslash escapes
386 instead of HTML entities (#5858, Albert Krewinkel).
388 * OpenDocument writer:
390 + Avoid duplicate attributes (#4634). We use the innermost
391 attribute in nested cases.
392 + If `native_numbering` extension is set, use native OpenDocument
393 enumeration for figures and tables (Nils Carlson).
394 + Place caption before table (#5681, Dmitry Pogodin).
398 + Add a test for MathML formulas in ODT documents (blmage).
399 + Improve the parsing of frames in ODT documents (blmage).
403 + Make handling of styles more robust in localized versions
404 of Word (Nikolay Yakimov, #5523, #5052, #5074). We now use
405 style names, not ids, for assigning semantic meaning, since
406 the ids can change depending on the locale. Style name
407 comparisons are case-insensitive, since those are
408 case-insensitive in Word. Since docx style names can have
409 spaces in them, and pandoc-markdown classes can't, anywhere
410 when style name is used as a class name, spaces are
411 replaced with ASCII dashes `-`. Code styles, i.e. "Source
412 Code" and "Verbatim Char" now honor style inheritance. Docx
413 Reader now honours "Compact" style (used in
414 Pandoc-generated docx). The side-effect is that "Compact"
415 style no longer shows up in docx+styles output. Styles
416 inherited from "Compact" will still show up.
417 + Re-use Readers.Docx.Parse for StyleMap (#5766, Nikolay Yakimov).
418 + Internal improvements and code simplification (Nikolay Yakimov).
419 + Preserve built-in styles in DOCX with custom style (Ben Steinberg,
420 #5670). This change prevents custom styles on divs and spans
421 from overriding styles on certain elements inside them, like
422 headings, blockquotes, and links. On those elements, the
423 "native" style is required for the element to display correctly.
424 This change also allows nesting of custom styles; in order to do so,
425 it removes the default "Compact" style applied to Plain blocks,
426 except when inside a table.
427 + Add `proofState` to list of elements carried over from
428 settings.xml in the reference.docx (Krystof Beuermann, #5703).
429 + Change order of `ilvl` and `numId` in `document.xml` (Agustín
430 Martín Barbero, #5645). Also, make list para properties go first.
431 This reordering of properties shouldn't be necessary but
432 it seems Word Online does not understand the docx correctly otherwise.
436 + Code formatting is now context dependent (Jeroen de Haas, #5573).
437 This commit alters the way in which the Powerpoint writer treats
438 inline code and code blocks. Inline code is now formatted at
439 the same size as the surrounding text. Code blocks are now given
440 a margin and font size according to their level.
441 Furthermore this commit allows changing the font with which code is
442 formatted via the `monofont` option.
443 + Start numbering at appopriate numbers (Jesse Rosenthal, #5709).
444 Starting numbers for ordered lists were previously ignored. Now
445 we specify the number if it is something other than 1.
447 * Text.Pandoc.Parsing:
449 + Add `manyChar`, `many1Char`, `manyTillChar`, `many1TillChar`,
450 `many1Till`, `manyUntil`, `mantyUntilChar`: these are like their
451 unsuffixed counterparts but pack some or all of their output
452 (Christian Despres, #5884).
453 + Add `stateAllowLineBreaks` to `ParserState` [API change].
454 + Fix inline parsing in grid table cells (#5708).
455 + Change type of `setLastStrPos` so it takes a `Maybe SourcePos`
456 rather than a `SourcePos` [API change].
457 + Make `parseFromString'` and `gridTableWith` and
458 `gridTableWith'` polymorphic in the parser state,
459 constraining it with `HasLastStrPosition` [API change].
460 + `parseFromString'`: reset `stateLastStrPos` to `Nothing` before parse.
461 + Rename takeWhileP -> take1WhileP and clean it up.
462 (It doesn't match the empty sequence.)
466 + For PDFs via HTML, ensure temp file is deleted even if the pdf
467 program is not found (#5720).
468 + Better detection of a Cygwin environment (#5451).
469 + Don't assume tex log file is UTF8-encoded (#5872).
470 Fall back to latin1 if it can't be read as UTF-8.
472 * Text.Pandoc.Extensions:
474 + Export new function `getAllExtensions`, which returns the
475 extensions that affect a given format (whether enabled by default
476 or not) [API change].
477 + Change type of `parseFormatSpec` from
478 `Either ParseError (String, Extensions -> Extensions)`
479 to `Either ParseError (String, [Extension], [Extension])`
481 + Add `Ext_gutenberg` constructor to `Extension` [API change].
482 + Add `Ext_native_numbering` constructor to `Extension` [API change]
485 * Text.Pandoc.Readers, Text.Pandoc.Writers:
487 + Change type of `getReader` and `getWriter` so they return
488 a value in the PandocMonad instance rather than an Either
489 [API change]. Exceptions for unknown formats and unsupported
490 extensions are now raised by these functions.
494 + Change `optMetadataFile` type from `Maybe FilePath` to `[FilePath]`
495 (Owen McGrath, #5702) [API change].
497 * Text.Pandoc.Logging:
499 + Add `CouldNotDeduceFormat` constructor to `LogMessage` [API change].
500 Issue this warning when we're falling back to markdown or
501 html because we don't recognize the extension of the input or
503 + Clarify warning for missing title (#5760).
504 + Add `UnusualConversion` constructor to `LogMessage` [API change]
505 (Mauro Bieg, #5736). Emit warning on `-f latex -o out.pdf`.
509 + Improve function documentation (Albert Krewkinkel).
510 + Traverse nested blocks and inlines in correct order (Albert
511 Krewinkel, #5667). Traversal methods are updated to use the new
512 Walk module so that sequences with nested Inline (or Block) elements
513 are traversed in the order in which they appear in the linearized
515 + New unexported module `Text.Pandoc.Lua.Walk` (Albert Krewinkel).
516 Lua filters must be able to traverse sequences of AST
517 elements and to replace elements by splicing sequences back
518 in their place. Special `Walkable` instances can be used for
519 this; those are provided in a new module
520 `Text.Pandoc.Lua.Walk`.
521 + `Attr` values can now be given as normal Lua tables (Albert
522 Krewinkel, #5744). This can be used as a convenient alternative
523 to constructing `Attr` values with `pandoc.Attr`. Identifiers
524 are taken from the `id` field, classes must be given as
525 space separated words in the `class` field. All remaining fields
526 are included as attributes. With this change, the following lines
527 now create equal elements:
529 pandoc.Span('test', {id = 'test', class = 'a b', check = 1})
530 pandoc.Span('test', pandoc.Attr('test', {'a','b'}, {check = 1}))
532 This also works when using the *attr* setter:
534 local span = pandoc.Span 'text'
535 span.attr = {id = 'test', class = 'a b', check = 1}
537 Furthermore, the *attributes* field of AST elements can now be a
538 plain key-value table even when using the `attributes` accessor:
540 local span = pandoc.Span 'test'
541 span.attributes = {check = 1} -- works as expected now
543 + Export `make_sections`, remove `hierarchicalize`. Lua filters that
544 use `hierarchicalize` will need to be rewritten to use
546 + Add a `clone()` method to all AST elements (Albert Krewinkel, #5568).
547 + Fix Lua function names in pandoc.system (niszet). Change
548 `get_current_directory` to `get_working_directory` and
549 `with_temp_directory` to `with_temporary_directory`, to
550 conform to the manual.
554 + Add constructors `PandocUnknownReaderError`,
555 `PandocUnknownWriterError`, `PandocUnsupportedExtensionError`.
557 + Better message for `PandocShouldNeverHappenError`.
558 + Better message for `PandocTemplateError`.
562 + Update emoji list (#5666). Done using new `tools/emojis.hs`,
563 which uses the list from the gem GitHub uses. Future updates
564 can be done with this tool.
568 + Pass value of `--dpi` to `rsvg-convert` when converting SVG to PDF
569 in the process of creating a PDF (#5721).
573 + Headers: don't parse content over newline boundary (#5714).
574 + Handle inline code more eagerly within lists (Brian Leung, #5627).
575 + Removed some needless lookaheads.
576 + Don't parse footnote body unless extension enabled.
577 + Fix small super/subscript issue (#5878). Superscripts and subscripts
578 cannot contain spaces, but newlines were previously allowed
579 (unintentionally). This led to bad interactions in some cases
580 with footnotes. With this change newlines are also not allowed inside
582 + Use `take1WhileP` for `str`, table row. This yields a small but
583 measurable performance improvement.
588 + Fix parsing of optional arguments that contain braced text (#5740).
589 + Don't try to parse includes if `raw_tex` is set (#5673).
590 When the `raw_tex` extension is set, we just carry through
591 `\usepackage`, `\input`, etc. verbatim as raw LaTeX.
592 + Properly handle optional arguments for macros (#5682).
593 + Fix `\\` in `\parbox` inside a table cell (#5711).
594 + Improve `withRaw` so it can handle cases where the token string is
595 modified by a parser (e.g. accent when it only takes part of a Word
596 token) (#5686). This fixes a bug that caused the ends of
597 certain documents to be dropped.
598 + Handle `\passthrough` macro used by latex writer (#5659).
599 + Support tex `\tt` command (#5654).
600 + Search for image with list of extensions like latex does, if an
601 extension is not provided (#4933).
602 + Handle `\looseness` command values better (#4439).
603 + Add `mbox` and `hbox` handling (Vasily Alferov, #5586).
604 When `+raw_tex` is enabled, these are passed through literally.
605 Otherwise, they are handled in a way that emulates LaTeX's behavior.
606 + Properly handle `\providecommand` and `\provideenvironment` (#5635).
607 They are now ignored if the corresponding command or environment
609 + Support epigraph command in LaTeX Reader (oquechy, #3523).
610 + Ensure that expanded macros in raw LaTeX end with a space
611 if the original did (#4442).
612 + Treat `ly` environment from lilypond as verbatim (Urs Liska, #5671).
613 + Add `tikzcd` to list of special environments (Eigil Rischel).
614 This allows it to be processed by filters, in the same way that
615 one can do for `tikzpicture`.
619 + Better support for `while`.
620 + More improvements in parsing conditionals.
621 + Fix problem parsing comments before macro.
622 + Improve handling of groups.
623 + Better parsing of groups (#5410). We now allow groups
624 where the closing `\\}` isn't at the beginning of a line.
626 * Text.Pandoc.Shared:
628 + Replace `Element` and `makeHierarchical` with `makeSections`.
629 Now that we have Divs, we can use them to represent the
630 structure of sections, and we don't need a special Element type.
631 `makeSections` reorganizes a block list, adding Divs with class
632 `section` around sections, and adding numbering if needed.
633 This change also fixes some longstanding issues recognizing section
634 structure when the document contains Divs (#3057, see also #997).
635 + Remove `Element` type [API change]
636 + Remove `makeHierarchicalize` [API change]
637 + Add `makeSections` [API change]
638 + Export `deLink` [API change]
639 + Make `filterIpynbOutput` strip ANSI escapes from code in output
640 for non-ipynb formats, when the default "best" option is used with
641 `--ipynb-output` (#5633).
642 + Fix `camelCaseToHyphenated` so it handles `ABCDef` better.
643 + Improve `isTight` (#5857). If a list has an empty item,
644 this should not count against its being a tight list.
645 + Export `htmlSpanLikeElements` [API change] (Daniele D'Orazio, #5796).
646 This is a mapping of HTML span-like elements that are internally
647 represented as a Span with a single class.
648 + Change the implementation of `htmlSpanLikeElements` to retain
649 classes and attributes (#5882, Florian Beeres).
651 * Text.Pandoc.Slides: recognize content in Divs when determining
654 * Text.Pandoc.SelfContained:
656 + Omit content-type on type attribute for `<style>` (#5725).
657 It doesn't seem to be valid for HTML5, and as a result Chrome
658 ignores the style element.
660 * Text.Pandoc.Pretty has been removed [API change].
661 We now use the new external doclayout module instead.
663 * Text.Pandoc.Writers.Shared:
665 + Remove `metaToJSON`, `metaToJSON'` [API change].
666 + Modify `addVariablesToContext`, `defField`, `setField`, `getField`,
667 `resetField` to work with Context rather than JSON values. [API change]
668 + Export new function `endsWithPlain` [API change].
669 + Change `gridTables` so it does better at keeping the widths of
670 columns (#4320) and does better at figuring out column widths
671 when no widths are given (#5899).
673 * Text.Pandoc.Options
675 + Change type of `writerTemplate` to `Maybe Template` instead
677 + Change To/FromJSON instances for `HTMLMathMethod`, `CiteMethod`,
678 `ObfuscationMethod`, `TrackChanges`, `WrapOption`,
679 `TopLevelDivision`, `ReferenceLocation`, `HTMLSlideVariant` (#5790).
680 In each case we use lowercase (or hyphenated lowercase) for
681 constructors to line up more closely with command-line option
682 values. This is a breaking change for those who manually decode or
683 encode JSON for these data types (e.g. for `ReaderOptions` or
686 * Text.Pandoc.Filters:
688 + Add `FromYAML` instance for `Filter`.
689 + `applyFilters`: Add and apply filters in order (not reversed)
690 This changes `applyFilters` from Text.Pandoc.Filter so
691 that it does a left fold rather than a right fold, applying
692 the filters in the order listed.
696 + Change `toEntities` to emit numerical hex character references
699 * Text.Pandoc.Highlighting:
701 + Add additional listings languages (Wandmalfarbe).
703 * Text.Pandoc.MediaBag:
705 + Some of the types using Strings were switched to use FilePath instead
706 (Christian Despres, #5884).
708 * Text.Pandoc.Templates:
710 + Don't import/export `varListToJSON` [API change]. It is removed in
712 + Change type of `renderTemplate'` [API change]. Return value is
713 now Text rather than being polymorphic. This makes room for
714 upcoming removal of the `TemplateTarget` class from doctemplates.
716 * Text.Pandoc.App.Opt [API changes]:
718 + More convenient To/FromJSON instances. Make the field names
719 like `strip-empty-paragraphs` rather than `optStripEmptyParagraphs`.
720 Anyone who is using JSON serialization of Opt will need to adjust
722 + Change `optHighlightStyle` to a `Maybe String` instead of
723 `Maybe Style`. Do the parsing/loading of themes later, after
725 + Remove `optBaseHeaderLevel` from `Opt`. We now just use
726 `optShiftHeadingLevelBy`, to avoid redundancy.
727 + Change `optShiftHeadingLevel` to `optShiftHeadingLevelBy` to
729 + Custom FromJSON instance for `LineEnding`, so either `CRLF`
731 + Change `optVariables` from `[(String, String)]` to `Context Text`.
732 + Change `optMetadata` to `Meta`, to allow structured values.
733 The current behavior of the `--metadata` option stays the same.
734 + Rename `optReader`, `optWriter` as `optFrom`, `optTo`.
735 + Add `FromYAML` instances to `Opt` and to all subsidiary types.
736 + Rename `optMetadataFile` to `optMetadataFiles`.
737 + Rename `optPDFEngineArgs` to `optPDFEngineOpts`.
738 + Rename `optWrapText` to `optWrap`.
739 + Add `IpynbOutput` enumerated type: use this instead of
740 a string for `optIpynbOutput`.
741 + Change optInputFiles to a `Maybe [FilePath]` (#5888) [API change].
742 `Nothing` means: nothing specified.
743 `Just []` means: an empty list specified (e.g. in defaults).
744 + List fields in Opt so they aren't reversed (#5881) [API change].
745 Previously `optIncludeInHeader`, etc. were in reverse order.
746 + The `sourcefile` variable is now always a list. It used to be
747 sometimes a string, sometimes a list (when there was more than one).
751 + default.latex: added code for `cslreferences` environment,
752 to be used for pandoc-citeproc references. A `csl-hanging-indent`
753 variable (set automatically if there is a `hanging-ident`
754 class on the references Div) controls whether contents of this
755 environment receive a hanging indent.
756 + default.latex: Add `space` as default option for xeCJK, so that
757 spaces between words are preserved (#5855, jeongminkim-islab).
758 This is necessary for Korean.
759 + default.latex: Remove include of `grffile` (#5848).
760 This package used to be needed for proper handling of image filenames
761 containing periods (in addition to the period before the extension).
762 It no longer works with the latest LaTeX kernel and graphicx,
763 so we have removed it. Future versions of graphicx will handle
764 these filenames without the need for `grffile`.
765 + default.context: add a saner default for page numbers.
766 Previously they appeared centered at the top of the page;
767 now we put them centered at the bottom, unless the `pagenumbering`
769 + default.context: define a start-stop-pair `cslreferences` to
770 allow for hanging indents in the bibliography (#5875, Denis Maier).
771 + default.ms: update defaults. Use Palatino font, use slightly
772 wider interparagraph space, don't indent paragraphs,
773 and put page numbers on the bottom. This brings ms output
774 closer to default LaTeX output.
775 + default.revealjs: add navigationMode (Mauro Bieg, #5657).
776 + default.muse: handle multiple authors better.
777 + docbook4, docbook5 templates: add indentation to body.
778 + HTML-based templates: use `styles.html` partial to avoid
780 + HTML-based templates: change indentation of styles in template.
782 * reference.docx (#5820):
784 + Change Block Text (block quote) style so that the same font
785 is used as in the body text, and the block text is indented
787 + All headings now have a uniform color.
788 + Level-1 headings no longer set `w:themeShade="B5"`.
789 + Level-2 headings are now 14 point rather than 16 point.
790 + Level-3 headings are now 12 point rather than 14 point.
791 + Level-4 headings are italic rather than bold.
793 * epub.css: Add CSS for hanging-indent div to support pandoc-citeproc's
798 + Repeat ghc-options in all stanzas.
799 + Remove conditionals for ghc < 8 (Albert Krewinkel, #5693).
800 + Compile with `-Wcpp-undef` and `-fhide-source-paths` when possible
802 + Add cabal.project to extra-source-files (Albert Krewinkel).
803 + Add dependency on skylighting-core (#5729). Even though it shouldn't
804 be needed, some tools require it.
805 + Require latest pandoc-types, texmath, skylighting, haddock-library.
806 + Ensure TemplateHaskell is added to other-extensions when it is
807 used (Vanessa McHale, #5728).
808 + Remove `derive_json_via_th` flag; always use TH. This cuts down
809 on code duplication and reduces the chance for errors. See #4083.
815 + Remove references to obsolete flag (#5694).
817 * Benchmarks: fix failure on ipynb.
819 * Use MathJax 3 (zorkow).
821 * KaTeX math: respect `classoption=fleqn` variable,
822 bump KaTeX version to 0.11.1 (#5815, Mauro Bieg).
824 * Fix redundant constraint compiler warnings (Pete Ryland, #5625).
826 * Use throwError instead of fail when appropriate.
828 * Use Prelude.fail to avoid ambiguity with fail from GHC.Base.
830 * Add `diff-zip.sh` to tools (John MacFarlane, Agustín Martín Barbero).
831 This is intended to make it easier to test differences in zip
832 containers, like epub, docx, or odt.
834 * Add `.gitattributes` (#5747). This ensures that the golden files
835 in `test/fb2/reader/` don't have newlines converted. This should fix
836 a test failure on GitHub CI with Windows.
838 * Reorder options in `--help`.
840 * Revise code for HsYAML-0.2.0.0 (@vijayphoenix, #5704).
842 * Remove blank line in code example in Haddocks (Leif Metcalf, #5679).
844 * Fix trypandoc with `getReader`/`getWriter` changes.
846 * Allow building pandoc with GHC 8.8.
848 * linux tarball: add architecture `-amd64` to filename.
849 Now it will be: `pandoc-VERSION-linux-ARCH.tar.gz`.
853 + Add section for exit codes.
854 + Document some pptx limitations in slide show section:
855 No incremental display (#5689). No pause with `. . .` (#5701).
856 + reveal.js flags (Mauro Bieg, #5653).
857 + Document addition of `data-` prefix to unknown attributes in HTML5.
858 + Link to YAML spec (Mauro Bieg, #5687).
859 + Fix capitalization of "Linux" (#5859, Marcus Stollsteimer).
860 + Use a table for exit codes.
861 + Put all template variable docs into one section.
862 + Use ATX headers consistently.
863 + Add fuller documentation of templates (#5779), including
864 new template syntax, partials, etc.
865 + Add documentation for the variable `hyperrefoptions` (Wandmalfarbe).
866 + Clarify when macro definitions are passed as raw latex.
867 In Markdown input, they are always passed through. In LaTeX, only if
868 `latex_macros` is disabled.
869 + Clarify that `--dpi` provides a default and doesn't override
870 dpi values specified in the images themselves (#5721).
871 + Document how to use custom writers with `--standalone` (#5866).
872 + Clarify `--preserve-tabs` default.
876 + Fix instructions for libicu.
877 + Add Void Linux instructions (Volodymyr Kozachnyskyi).
881 + Add information on tests (Agustín Martín Barbero, #5652).
882 + Add information about command test naming to CONTRIBUTING (Florian B).
884 * Fix typos in changelog and comments (#5896, Brian Wignall).
886 * doc/lua-filters.md:
888 + Fix mistakes in mediabag module docs (#5851, Albert Krewinkel).
889 + Improve metadata replacement example in lua-filters doc (#5851).
890 + Mention which Lua version is shipped with pandoc (Albert Krewinkel,
893## pandoc 2.7.3 (2019-06-11)
895 * Add `jira` (Atlassian's Jira wiki markup) as output format (#2497,
898 * Add `tex_math_dollars` to `multimarkdownExtensions` (#5512).
899 This form is now supported in multimarkdown,
900 in addition to `tex_math_double_backslash`.
902 * Fix `--self-contained` so it works when output format has extensions.
903 Previously if you used `--self-contained` with `html-smart` or
904 `html+smart`, it wouldn't work.
906 * Add template variable `curdir` with working directory
907 from which pandoc is run (#5464).
909 * Markdown reader: don't create implicit reference for empty header
912 * Muse reader: allow images inside link descriptions (Alexander Krotov).
914 * HTML reader: epub related fixes.
916 + With epub extensions, check for `epub:type` in addition to `type`.
917 + Fix problem with noteref parsing which caused block-level
918 content to be eaten with the noteref.
919 + Rename `pAnyTag` to `pAny`.
920 + Refactor note resolution.
921 + Trim definition list terms (Alexander Krotov).
925 + Add braces when resolving `\DeclareMathOperator`
926 (#5441). These seem to be needed for xelatex but not pdflatex.
927 + Allow newlines in `\mintinline`.
928 + Pass through unknown listings language as class (#5540).
929 Previously if the language was not in the list of languages supported
930 by listings, it would not be added as a class, so highlighting
931 would not be triggered.
932 + `rawLaTeXInline`: Include trailing `{}`s in raw latex commands (#5439).
933 This change affects the markdown reader and other readers that allow raw
934 LaTeX. Previously, trailing `{}` would be included for unknown
935 commands, but not for known commands. However, they are sometimes used
936 to avoid a trailing space after the command. The chances that a `{}`
937 after a LaTeX command is not part of the command are very small.
939 * MediaWiki reader: handle multiple attributes in table row (#5471,
942 * Docx reader: Add support for `w:rtl` (#5545). Elements with this
943 property are put into Span inlines with `dir="rtl"`.
945 * DocBook reader: Issue `IgnoredElement` warnings.
947 * Org reader (Albert Krewinkel):
949 + Fix planning elements in headers level 3 and higher
950 (#5494). Planning info is now always placed before
951 the subtree contents. Previously, the planning info was placed after
952 the content if the header's subtree was converted to a list, which
953 happens with headers of level 3 and higher per default.
954 + Omit, but warn about unknown export options. Unknown export
955 options are properly ignored and omitted from the output.
956 + Prefer plain symbols over math symbols (#5483).
957 Symbols like `\alpha` are output plain and unemphasized, not as math.
958 + Recognize emphasis after TODO/DONE keyword (#5484).
962 + Skip unknown elements rather than throwing errors (#5560).
963 Sometimes custom elements are used (e.g. `id` element
964 inside `author`); previously the reader would halt with an error.
965 Now it skips the element and issues an `IgnoredElement` warning.
966 + Parse notes (#5493, Alexander Krotov).
967 + Internal improvements (Alexander Krotov).
969 * OpenDocument writer: Roll back automatic figure/table numbering
970 (#5474). This was added in pandoc 2.7.2, but it makes it impossible
971 to use pandoc-crossref. So this has been rolled back for now,
972 until we find a good solution to make this behavior optional
973 (or a creative way to let pandoc-crossref and this feature
976 * New module Text.Pandoc.Writers.Jira, exporting `writeJira` [API
977 change] (Albert Krewinkel).
981 + Don't include 'landmarks' if there aren't any.
982 Previously we could get an empty ol element, which caused
983 validation errors with epubcheck.
984 + Ensure unique ids for styleesheets in content.opf (#5463).
985 + Make stylesheet link compatible with kindlegen (#5466,
986 Eric Schrijver). Pandoc omitted `type="text/css"` from both
987 `<style>` and `<rel="stylesheet">` elements in all templates, which
988 is valid according to the spec. However, Amazon’s kindlegen software
989 relies on this attribute on `<link>` elements when detecting
990 stylesheets to include.
994 + Output video and audio elements depending on file
995 extension of the image path (Mauro Bieg).
996 + Emit empty alt tag in figures (#5518, Mauro Bieg).
997 The same text is already in the <figcaption> and
998 screen-readers would read it twice, see #4737.
999 + Don't add variation selector if it's already there.
1000 This fixes round-trip failures.
1001 + Prevent gratuitous emojification on iOS (#5469).
1002 iOS chooses to render a number of Unicode entities, including '↩', as
1003 big colorful emoji. This can be defeated by appending Unicode
1004 VARIATION SELECTOR-15'/'VARIATION SELECTOR-16'. So we now append this
1005 character when escaping strings, for both '↩' and '↔'. If other
1006 characters prove problematic, they can simply be added to
1007 `needsVariationSelector`. + Add `class="heading"` to level 7+ Headers
1008 rendered as `<p>` elements (#5457).
1010 * RST writer: treat Span with no attributes as transparent (#5446).
1011 Previously an Emph inside a Span was being treated as
1012 nested markup and ignored. With this patch, the Span
1017 + Include inline code attributes with `--listings` (#5420).
1018 + Don't produce columns environment unless beamer (#5485).
1019 + Fix footnote in image caption. Regression: the fix for #4683 broke
1021 + Don't highlight code in headings (#5574). This causes
1023 + Use `\mbox` to get proper behavior inside `\sout` (#5529).
1025 * EPUB writer: Fix document section assignments (#5546).
1026 For example, introduction should go in bodymatter, not frontmatter, and
1027 epigraph, conclusion, and afterward should go in bodymatter, not
1028 backmatter. For the full list of assignments, see the manual.
1032 + Add backslashes to avoid unwanted interpretation of
1033 definition list terms as other kinds of block (#554).
1034 + Ensure the code fence is long enough (#5519).
1035 Previously too few backticks were used when the code block
1036 contained an indented line of backticks. (Ditto tildes.)
1037 + Handle labels with integer names (Jesse Rosenthal, #5495).
1038 Previously if labels had integer names, it could produce a conflict
1039 with auto-labeled reference links. Now we test for a conflict and
1040 find the next available integer. This involves adding a new state
1041 variable `stPrevRefs` to keep track of refs used in other document
1042 parts when using `--reference-location=block|section`
1044 * Textile writer: fix closing tag for math output (Albert Krewinkel).
1045 Opening and closing tag for math output match now.
1047 * Org writer: always indent src blocks content by 2 spaces (#5440, Albert
1048 Krewinkel). Emacs always uses two spaces when indenting the content of
1049 src blocks, e.g., when exiting a `C-c '` edit-buffer. Pandoc used to
1050 indent contents by the space-equivalent of one tab, but now always uses
1055 + Use `` `+...+` `` form for inline code.
1056 The old `` `a__b__c` `` yields emphasis inside code in asciidoc.
1057 To get a pure literal code span, use `` `+a__b__c+` ``.
1058 + Use proper smart quotes with asciidoctor (#5487).
1059 Asciidoctor has a different format for smart quotes.
1060 + Use doubled ## when necessary for spans (#5566).
1061 + Ensure correct nesting of strong/emph (#5565): strong
1062 must be the outer element.
1066 + Wrap elements with p when needed (#5570). The JATS spec restricts
1067 what elements can go inside `fn` and `list-item`. So we wrap other
1068 elements inside `<p specific-use="wrapper">` when needed.
1069 + Properly handle footnotes (#5511) according to "best practice."
1070 (Group them at the end in `<fn-group>` and use `<xref>` elements
1072 + Fix citations with PMID so they validate (#5481). This includes
1073 an update to data/jats.csl.
1074 + Ensure validity of `<pub-date>` by parsing the date and
1075 extracting year, month, and day, as expected. Also add an
1076 iso-8601-date attribute automatically.
1077 + Don't use `<break>` element for LineBreak. It is only
1078 allowed in a few special contexts, and not in `<p>` elements.
1079 + Don't make `<string-name>` a child of `<string>`, which is illegal.
1083 + Do not wrap note references into `<sup>` and brackets
1084 (Alexander Krotov). Existing FB2 readers, such as FBReader, already
1085 display links with type="note" as a superscript.
1086 + Use genre metadata field (#5478).
1088 * Muse writer: do not escape empty line after `<br>` (Alexander Krotov).
1090 * Add unicode code point in "Missing character" warning (#5538).
1091 If the character isn't in the console font, the message is pretty useless,
1092 so we show the code point for anything non-ASCII.
1094 * Lua: add Version type to simplify comparisons (Albert Krewinkel).
1095 Version specifiers like `PANDOC_VERSION` and `PANDOC_API_VERSION` are
1096 turned into `Version` objects. The objects simplify version-appropriate
1097 comparisons while maintaining backward-compatibility.
1098 A function `pandoc.types.Version` is added as part of the newly
1099 introduced module `pandoc.types`, allowing users to create version
1102 * pandoc lua module (Albert Krewinkel):
1104 - Fix deletion of nonexistent attributes (#5569).
1105 - Better tests for Attr and AttributeList.
1107 * pandoc.mediabag lua module (Albert Krewinkel):
1109 + Add function `delete` for deleting a single item.
1110 + Add function `empty` for removing all entries.
1111 + Add function `items` for iterating over mediabag.
1113 * Text.Pandoc.Class: Fix handling of `file:` URL scheme in
1114 `downloadOrRead` (#5517, Mauro Bieg). Previously `file:/`
1115 URLs were handled wrongly and pandoc attempted to make HTTP
1116 requests, which failed.
1118 * Text.Pandoc.MIME: add `mediaCategory` [API change] (Mauro Bieg).
1120 * Text.Pandoc.Shared:
1122 + Add `onlySimpleTableCells` [API change]
1123 (Mauro Bieg) and use this to consolidate simple-table detection
1124 (#5524). This fixes an inconsistency in the HTML reader, which did not
1125 treat tables with `<p>` inside cells as simple.
1126 + `metaToJSON`: treat digits starting with 0 as a string, not a number
1127 (#5479). This fixes a regression in YAML metadata in pandoc 2.7.2.
1129 * Text.Pandoc.Logging: Add `IgnoredElement` constructor for
1130 `LogMessage`. `SkippedConetnt` doesn't work for some XML-based
1131 readers which don't have access to parsec source positions.
1133 * Text.Pandoc.Asciify: Add Turkish undotted-i (#5433, Mauro Bieg).
1135 * Improve output of Lua tests (#5499, Albert Krewinkel).
1136 This makes use of tasty-lua, a package to write tests in Lua
1137 and integrate the results into Tasty output. Test output becomes
1138 more informative: individual tests and test groups become visible
1139 in test output. Failures are reported with helpful error messages.
1141 * Lua: add `pandoc.system` module (#5468, Albert Krewinkel).
1142 The `system` Lua module provides utility functions to interact with the
1143 operating- and file system. E.g.
1144 `print(pandoc.system.get_current_directory())`
1147 pandoc.system.with_temporary_directory('tikz', function (dir)
1148 -- write and compile a TikZ file with pdflatex
1152 * LaTeX template: Add pdflang to hypersetup if lang is set (#5443).
1154 * beamer template: Fix using Beamer with geometry (#5505, Daniel Maslowski).
1155 Beamer already loads geometry, so we need to use the `\geometry`
1156 command to set geometry options.
1158 * EPUB2/3 templates: Move inline styles to default epub.css (#5466).
1159 NOTE: Those who use a custom CSS stylesheet with EPUB should
1162 code{ white-space: pre-wrap; }
1163 span.smallcaps{ font-variant: small-caps; }
1164 span.underline{ text-decoration: underline; }
1165 q { quotes: "“" "”" "‘" "’"; }
1166 div.column{ display: inline-block; vertical-align: top; width: 50%; }
1168 * reveal.js template:
1170 + Updates for revealjs 3.8.0 (#5435, ebiim).
1171 + Remove reference to head.min.js (#5448, Winnie Hellmann).
1172 NOTE: users will need to update reveal.js to at least 3.8.0
1173 for their presentations generated with this version of pandoc
1178 + Replace `</>` with literal `/` (#5451).
1179 We use forward-slash for a directory separator in tmpDir,
1180 even on Windows (because that's what tex likes). So we
1181 should not put a backslash between the tmpDir and the
1182 filename on Windows. This is harmless enough in normal
1183 Windows setups, but it breaks on Cygwin.
1184 Thanks to @cc2x for noticing and diagnosing the problem.
1185 + Allow use of `-output-directory` in `--pdf-engine-opt` (#5462).
1186 This is currently possible with `mklatex` and `-outdir`, but
1187 was not yet possible with xelatex and `-output-directory`.
1188 + For PDF via ms/pdfroff, make TOC appear at beginning and in
1189 PDF bookmarks (#5553). Previously the TOC appeared at the end
1190 of the document, and was not bookmarked. To keep it at the end,
1191 add `--pdf-engine-opt=--no-toc-relocation` to your command line.
1193 * Fix broken links in documents (#5473, Shim Myeongseob).
1194 Also, use absolute links to pandoc.org when possible, so that
1195 the links can be followed by people viewing these documents
1198 * Improved sample lua tikz filter in lua-filters docs (#5445,
1199 Matthew Doty). There are three changes:
1201 + It only processes elements which begin with `\begin{tikzpicture}`
1202 + It uses pdf2svg instead of imagemagick to preserve fidelity
1203 + The images produced have transparent backgrounds
1207 + Add note about `title-meta`, `author-meta`, `date-meta` (#5486).
1208 + Fix typo (#5489, Christian Krause).
1210 * add test/tables.xwiki to git and pandoc.cabal (#5498, Mauro Bieg).
1212 * Disable missing-home-modules warning in `stack.yaml`.
1213 Otherwise `stack ghci` fails.
1216## pandoc 2.7.2 (2019-04-05)
1218 * Add XWiki writer (#1800, Derek Chen-Becker).
1219 Add `Text.Pandoc.Writers.XWiki`, exporting `writeXWiki` [API change].
1221 * Dokuwiki Reader: parse single curly brace (#5416, Mauro Bieg).
1223 * Vimwiki reader: improve handling of internal links (#5414).
1224 We no longer append `.html` to link targets, and we add a title
1225 `wikilink`. This mirrors behavior of other wiki readers. Generally
1226 the `.html` extension is not wanted. It may be important for output
1227 to HTML in certain circumstances, but it can always be added using a
1228 filter that matches on links with title `wikilink`.
1230 If your workflow requires the current behavior, here is a lua filter
1231 that will add the `.html` extension:
1235 if el.title == 'wikilink' then
1236 el.target = el.target .. ".html"
1243 + Use format `ipynb` for raw cell where no format given.
1244 + Avoid introducing spurious `.0` on integers in metadata.
1246 * Markdown reader: fenced div takes priority over setext header.
1248 * HTML reader: read `data-foo` attribute into `foo` (#5392).
1249 The HTML writer adds the `data-` prefix for HTML5 for nonstandard
1250 attributes. But the attributes are represented in the AST without
1251 the `data-` prefix, so we should strip this when reading HTML.
1253 * LaTeX reader: Improve autolink detection (#5340).
1255 * PowerPoint writer (Jesse Rosenthal):
1257 + Expand builtin reference doc to model all layouts.
1258 The previous built-in reference doc had only title and content
1259 layouts. Add in a section-header slide and a two-content slide, so
1260 users can more easily modify it to build their own templates.
1261 + Always open up in slide view. When editing a
1262 template/reference-doc, the user might be in Master view, but when
1263 producing a slide show, it is assumed that slide view will be
1265 + Remove `handoutsMasterList` from template presentation.xml
1266 + Fix numerous errors in templating (#5402). Previously, some templates
1267 produced by Office 365 (MacOS) would not render with `--reference-doc`
1268 correctly. We now apply correct shapes for content, and build
1269 shape trees correctly.
1270 + Make default placeholder type for template lookup.
1271 + Apply speaker notes to metadata slide if applicable.
1272 + Test for speaker notes after breaking header.
1273 + Correctly handle notes after section-title header.
1274 Previously, if notes came after a section-title header (ie, a level-1
1275 header in a slide-level=2 presentation), they would go on the next
1276 slide. This keeps them on the slide with the header.
1277 + Internal improvements.
1281 + Use format `ipynb` for raw cell where no format given.
1282 According to nbformat docs, this is supposed to render in every
1283 format. We don't do that, but we at least preserve it as a raw
1284 block in markdown, so you can round-trip.
1285 + Consolidate adjacent raw blocks. Sometimes pandoc creates two
1286 HTML blocks, e.g. one for the open tag and one for a close tag.
1287 If these aren't consolidated, only one will show up in output cell.
1288 + Fixed carry-over of nbformat from metadata.
1289 + Preserve `nbformat_minor` if it's given. This helps with round-tripping.
1293 + Avoid inadvertently creating ?` or !` ligatures (#5407).
1294 These are upside down ? and !, resp.
1295 + Fix footnotes in table caption and cells (#5367). This fixes a
1296 bug wherein footnotes appeared in the wrong order, and with
1297 duplicate numbers, when in table captions and cells.
1298 We now use regular `\footnote` commands, even in the table
1299 caption and the minipages containing cells. Apparently
1300 longtable knows how to handle this.
1302 * HTML writer: Don't add data- prefix to RDFa attributes (#5403).
1304 * JATS writer: Ensure that plain strings go inside `<pub-id>` tag (#5397).
1308 + Better rendering of numbers (#5398). If the number is integral,
1309 we render it as an integral not a float.
1310 + Proper rendering of empty map in YAML metadata (#5398). Should
1311 be `{}`, not empty string.
1312 + Properly escape attributes in Markdown writer (#5369).
1313 + Be sure implicit figures work in list contexts (#5368).
1314 Previously they would sometimes not work: e.g., when they
1315 occurred in final paragraphs in lists that were originally
1316 parsed as Plain and converted later using PlainToPara.
1318 * Docx writer: Use `w:br` without attributes for line breaks (#5377).
1319 We previously added the attribute `type="textWrapping"`, but
1320 this causes problems on Word Online.
1322 * LaTeX template (Andrew Dunning):
1324 + Ensure correct heading/table order (#5365). Improve workaround
1325 (#1658) for tables following headings. The new solution works whether
1326 or not the `indent` variable is enabled.
1327 + Remove `subparagraph` variable. The default is now to use run-in
1328 style for level 4 and 5 headings (`\paragraph` and `\subparagraph`).
1329 To get the previous default behavior (where these were formatted as
1330 blocks, like `\subsubsection`), set the `block-headings` variable.
1331 + Add pandoc to PDF metadata (#5388).
1332 + Group graphics-related code (#5389).
1333 + Move `\setstretch` after front matter (#5179). Ensures that
1334 `\maketitle`, `\tableofcontents`, and so forth are not affected by
1335 changes to line spacing.
1337 * Update data/jats.csl to avoid commas between name-part elements
1340 * Add support for golang (`go`) with `--listings` (#5427).
1342 * Text.Pandoc.Shared - improve `metaToJSON` behavior with numbers.
1343 We now do a better job marshalling numbers from MetaString
1344 or MetaInlines into JSON Number.
1346 * Text.Pandoc.Writers.Shared: `metaValueToJSON`: use Number Values for
1347 integers. Pandoc's MetaValue doesn't have a distinguished number type,
1348 so numbers are put in MetaStrings. If the MetaString consists
1349 entirely of digits, we convert it to a Number. We should probably
1350 consider adding a MetaNumber constructor to MetaValue, for better
1351 round-tripping with JSON etc. This change aids round-tripping in
1352 ipynb metadata fields, like `toc_depth`.
1354 * Text.Pandoc.Class: `fetchItem`: don't treat UNC paths as
1355 protocol-relative URLs (#5127). These are paths beginning `//?/UNC/...`.
1357 * Text.Pandoc.ImageSize: Improve `pdfSize` so it handles
1358 a wider range of PDFs (#4322, with help from Richard Davis).
1360 * Text.Pandoc.Pretty: avoid stack overflow by using strict sum (#5401).
1362 * Fix harmless error in file-scope code (#5422).
1366 + Improve 'header' and 'heading' usage (#5423, Andrew
1367 Dunning). The term 'header' was being used where 'heading'
1368 is more appropriate.
1369 + Add paragraph on options affecting markdown in ipynb.
1371 * stack.yaml - remove -Wmissing-home-modules
1372 This seems to cause problems with stack ghci. Remove RTS options.
1374 * Add ghc-options to cabal.project.
1376 * appveyor.yml - use ghc 8.6.4. Fixes segfault issues on Windows (#5037).
1378 * linux build process: Remove clone of pandoc-citeproc (#5366).
1379 It wasn't being used; cabal.project specifies the version to use.
1381## pandoc 2.7.1 (2019-03-14)
1383 * Add tectonic as an option for --pdf-engine (#5345, Cormac Relf).
1384 Runs tectonic on STDIN instead of a temporary .tex file, so that it
1385 looks in the working directory for `\include` and `\input` like the rest
1386 of the engines. Allows overriding the output directory
1387 args with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`.
1389 * Allow `-o/--output` to be used with `--print-default-data-file`,
1390 `--print-highlighting-style`, `--print-default-template`.
1391 Note that `-o` must occur BEFORE the `--print*` command on the command
1392 line (this is documented, #5357).
1396 + Support `\underline`, `\ul`, `\uline` (#5359, Paul
1397 Tilley). These are parsed as a Span with class `underline`, as
1399 + Ensure that `\Footcite` and `\Footcites` get put in a note.
1403 + Remove sensitivity to `raw_html`, `raw_tex` extensions.
1404 We now include every output format. Pruning is handled by
1406 + Better handling of cell metadata. We now include even complex cell
1407 metadata in the Div's attributes (as JSON, in complex cases, or
1408 as plain strings in simple cases).
1412 + Recurse into native divs for output cell data (#5354).
1413 + Render cell metadata fields from div attributes.
1415 * Docx writer: avoid extra copy of abstractNum and num elements
1416 in numbering.xml. This caused pandoc-produced docx files to
1417 be uneditable using Word Online (#5358).
1419 * Markdown writer: improve handling of raw blocks/inline.
1420 We now emit raw content using `raw_attribute` when no more
1421 direct method is available. Use of `raw_attribute` can be
1422 forced by disabling `raw_html` and `raw_tex`.
1424 * LaTeX writer: Add classes for frontmatter support (#5353, Andrew Dunning)
1425 and remove frontmatter from `scrreprt`.
1429 + Improve readability (#5363, Andrew Dunning).
1430 + Robust section numbering removal (#5351, Andrew Dunning).
1431 Ensures that section numbering does not reappear with custom
1432 section levels. See <https://tex.stackexchange.com/questions/473653/>.
1433 + Better handling of front/main/backmatter (#5348).
1434 In pandoc 2.7 we assumed that every class with chapters would accept
1435 `\frontmatter`, `\mainmatter`, and `\backmatter`. This is not so (e.g.
1436 report does not). So pandoc 2.7 breaks on report class by including an
1437 unsupported command. Instead of the `book-class` variable, we use two
1438 variables, `has-chapters` and `has-frontmatter`, and set these
1439 intelligently in the writer.
1441 * Text.Pandoc.Shared: Improve `filterIpynbOutput`. Ensure that
1442 images are prioritized over text. `best` should include everything
1445 * Tests.Old: specify `--data-dir=../data` to ensure tests can find
1446 data files even if they haven't been installed. Remove old
1447 `pandoc_datadir` environment variable, which hasn't done anything for a
1450 * MANUAL.txt: Add recommendation to use `raw_attribute` with ipynb (#5354).
1452 * Use cmark-gfm-hs 0.1.8 (note that 0.1.7 is buggy).
1454 * Use latest pandoc-citeproc, texmath.
1457## pandoc 2.7 (2019-03-03)
1459 * Use XDG data directory for user data directory (#3582). Instead of
1460 `$HOME/.pandoc`, the default user data directory is now
1461 `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
1462 `$HOME/.local/share` but can be overridden by setting the
1463 environment variable. If this directory is missing, then
1464 `$HOME/.pandoc` is searched instead, for backwards compatibility.
1465 However, we recommend moving local pandoc data files from
1466 `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the
1467 default user data directory remains the same.
1469 * Slide show formats behavior change: content under headers
1470 less than slide level is no longer ignored, but included in
1471 the title slide (for HTML slide shows) or in a slide after
1472 the title slide (for beamer). This change makes possible
1473 2D reveal.js slideshows with content in the top slide on
1474 each stack (#4317, #5237).
1476 * Add command line option `--ipynb-output=all|none|best` (#5339).
1477 Output cells in ipynb notebooks often contain several different
1478 versions of an output, with different MIME types, e.g. an HTML
1479 table and a plain-text fallback. Specifying `--ipynb-output=best`
1480 (the default) ensures that the best version for the output format
1481 is used. `all` includes all versions, and `none` suppresses them
1482 all, leaving output cells empty.
1484 * `asciidoctor` is now an output format separate from `asciidoc`,
1485 to accommodate some minor implementation-specific differences
1486 (currently just in the treatment of display math).
1488 * Add `latexmk` as an option for `--pdf-engine` (#3195).
1489 Note that you can use `--pdf-engine-opt=-outdir=bar` to specify
1490 a persistent temp directory.
1494 + Improve tight/loose list handling (#5285). Previously the
1495 algorithm allowed list items with a mix of Para and Plain, which
1497 + Add newline when parsing blocks in YAML (#5271). Otherwise last
1498 block gets parsed as a Plain rather than a Para. This is a
1499 regression in pandoc 2.x. This patch restores pandoc 1.19
1501 + Make `yamlToMeta` respect extensions (#5272, Mauro Bieg).
1502 This adds a `ReaderOptions` parameter to `yamlToMeta` [API change].
1503 + Fix bug parsing fenced code blocks (#5304). Previously parsing
1504 would break if the code block contained a string of backticks of
1505 sufficient length followed by something other than end of line.
1507 * LaTeX reader: don't let `\egroup` match `{`. `braced` now actually
1508 requires nested braces. Otherwise some legitimate command and
1509 environment definitions can break.
1511 * Docx reader (Jesse Rosenthal):
1513 + Rename `getDocumentPath` as `getDocumentXmlPath`.
1514 + Use field notation for setting `ReaderEnv`.
1515 + Figure out `document.xml` path once at the beginning of parsing, and
1516 add it to the environment, so we can avoid repeated lookups.
1517 + Dynamically determine main document xml path (#5277).
1518 The desktop Word program places the main document file in
1519 `word/document.xml`, but the online word places it in
1520 `word/document2.xml`. This file path is actually stated in the root
1521 `_rels/.rels` file, in the `Relationship` element with an
1522 `http://../officedocument` type.
1523 + Fix paths in archive to prevent Windows failure (#5277).
1524 Some paths in archives are absolute (have an opening slash) which, for
1525 reasons unknown, produces a failure in the test suite on MS
1526 Windows. This fixes that by removing the leading slash if it exists.
1527 + Add comments to aid code readability.
1528 + Trim space inside the last inline (#5273).
1529 + Unwrap sdt elements in footnotes and comments (#5302).
1531 * Muse reader (Alexander Krotov):
1533 + Test that block level markup does not break `<verbatim>`.
1534 + Add secondary note support.
1536 * ipynb reader: handle images referring to attachments. Previously
1537 we didn't strip off the attachment: prefix, so even though the
1538 attachment was available in the mediabag, pandoc couldn't find it.
1542 + Fix parsing of figures (#5321). This ensures that a figure
1543 containing a single image is parsed as a pandoc "implicit
1544 figure" (i.e., a Para with a single Image whose title attribute
1545 begins with `fig:`). More complex figures will still be parsed
1547 + Support `fig-group` block element (#5317).
1548 + Handle citations with multiple references (#5310). The `rid`
1549 attribute can have a space-separated list of ids.
1551 * AsciiDoc Writer: Add `writeAsciiDoctor` [API change, Tarik Graba].
1552 Handle display math appropriately for Asciidoctor.
1554 * JATS writer: wrap figure caption in `<p>` to fix validation (#5290,
1559 + Implement WAI-ARIA roles for (end)notes, citations, and
1560 bibliography (#4213). Note that doc-biblioref is only used when
1561 link-citations produces links, since it belongs on links.
1562 + Include content (including speaker notes) in title slides
1567 + Ensure final newline.
1568 + Only include metadata under `jupyter` field.
1569 + Don't create attachments for images with absolute URIs,
1570 including data: URIs (#5303).
1571 + Keep plain text fallbacks in output even if a richer format is
1572 included (#5293). We don't know what output format will be needed.
1573 See the `--ipynb-output` command line option for a way to control
1574 what formats are included in the output.
1576 * Markdown writer: use `markdown="1"` when appropriate for Divs:
1577 when `native_divs` and `markdown_in_html_blocks` are disabled
1578 but `raw_html` and `markdown_attribute` are enabled.
1582 + Use right fold for `escapeString`. This is more elegant than
1583 the explicit recursive code we were using.
1584 + Avoid `{}` after control sequences when escaping.
1585 `\ldots{}.` doesn't behave as well as `\ldots.` with the latex
1586 ellipsis package. This patch causes pandoc to avoid emitting
1587 the `{}` when it is not necessary. Now `\ldots` and other
1588 control sequences used in escaping will be followed by either
1589 a `{}`, a space, or nothing, depending on context.
1590 + For beamer, include contents under headers superordinate to
1591 slidelevel (#4317). Currently we keep the fancy title slide, and
1592 add a new slide with the same title and whatever content was
1595 * Powerpoint writer (Jesse Rosenthal): support underlines.
1596 Use span with single class "underline" as in docx writer.
1598 * Muse writer: escape secondary notes (Alexander Krotov).
1600 * FB2 writer: add section identifiers support (#5229, John KetzerX).
1602 * Make `--fail-if-warnings` work for PDF output (#5343).
1604 * Lua filters (Albert Krewinkel):
1606 + Load module `pandoc` before calling `init.lua` (#5287). The file
1607 `init.lua` in pandoc's data directory is run as part of pandoc's
1608 Lua initialization process. Previously, the `pandoc` module was
1609 loaded in `init.lua`, and the structure for marshaling was
1610 set up after. This allowed simple patching of element
1611 marshaling, but made using `init.lua` more difficult. Now, all
1612 required modules are now loaded before calling `init.lua`. The
1613 file can be used entirely for user customization. Patching
1614 marshaling functions, while discouraged, is still possible via
1616 + All Lua modules bundled with pandoc, i.e., `pandoc.List`,
1617 `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the
1618 `pandoc` module. They are assigned to the fields `List`, `mediabag`,
1619 `utils`, and `text`, respectively.
1621 * Text.Pandoc.Lua (Albert Krewinkel):
1623 + Split `StackInstances` into smaller Marshaling modules.
1624 + Get `CommonState` from Lua global. This allows more control over
1625 the common state from within Lua scripts.
1629 + Support the `subject` metadata variable (#5289, Pascal Wagler).
1630 + Add `\frontmatter`, `\mainmatter`, `\backmatter`
1631 for book classes (#5306).
1633 * epub3 template: Add titlepage class to section (#5269).
1635 * HTML5 template: Add ARIA role `doc-toc` for table of contents (#4213).
1637 * Make `--metadata-file` use selected extensions (#5279, #5272, Mauro Bieg).
1639 * Text.Pandoc.Shared:
1641 + Remove `withTempDir` [API change].
1642 + Add new exported function `defaultUserDataDirs` [API change].
1643 + Add `filterIpynbOutput` [API change].
1644 + `compactify`: Avoid lists with a mix of Plain and Para elements
1647 * Text.Pandoc.Translations: reorder alphabetically and remove `Author`
1648 (#5334, Mauro Bieg).
1650 * Text.Pandoc.Extensions:
1652 + More carefully groom ipynb default extensions.
1653 + Add `all_symbols_escapable` to `githubMarkdownExtensions`.
1657 + Use system temp directory when possible (#1192). Previously we
1658 created temp dirs in the working directory, partly (a) because
1659 there were problems using the system temp directory on Windows,
1660 when their pathnames included tildes, and partly (b) because
1661 programs like `epstopdf.pl` would not be allowed to write to
1662 directories outside the working directory in restricted mode. We
1663 now (a) use the system temp dir except when the path includes
1664 tildes, and (b) set `TEXMFOUTPUT` when creating the PDF, so that
1665 subsidiary programs can use the system temp directory. This
1666 addresses problems that occurred when pandoc was used in a
1667 synced directory (such as Dropbox).
1668 + Change types of subsidiary functions to PandocIO, to allow
1669 warnings to be threaded through (#5343).
1671 * Text.Pandoc.MIME: add WebP (#5267, Mauro Bieg).
1673 * Tests: avoid calling `findPandoc` multiple times.
1675 * Old tests: remove need for temp files by using `pipeProcess`.
1677 * Added simple ipynb reader/writer tests (#5274).
1679 * Rearrange `--help` output in a more rational way, with common
1680 options at the beginning and options grouped by function (#5336).
1682 * trypandoc: Add JATS and other missing formats (Arfon Smith, #5291).
1684 * Add missing copyright notices and remove license boilerplate (#4592,
1687 * Use latest basement/foundation on 32bit windows.
1689 * Use latest skylighting (#5328). Custom syntax definitions no
1690 longer try to load `language.dtd`.
1692 * Require texmath 0.11.2.1
1694 * Use latest pandoc-citeproc (0.16.1.1).
1698 + Clarify variable substitution indentation in templates (#5338,
1699 Agustín Martín Barbero).
1700 + Reorder custom-styles section (#5324, Mauro Bieg).
1702## pandoc 2.6 (2019-01-30)
1704 * Support ipynb (Jupyter notebook) as input and output format.
1706 + Add `ipynb` as input and output format (extension `.ipynb`).
1707 + Added Text.Pandoc.Readers.Ipynb [API change].
1708 + Added Text.Pandoc.Writers.Ipynb [API change].
1709 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
1711 + Depend on ipynb library.
1712 + Note: there is no template for ipynb.
1714 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
1715 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
1718 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
1719 extension. Task lists are supported from markdown and gfm input.
1720 They should work, to some degree, in all output formats, though in
1721 most formats you'll get a bullet list with a unicode character for
1722 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
1723 box is used as the list marker. API changes:
1725 + Added constructor `Ext_task_lists` to `Extension`.
1726 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
1729 * Allow some command line options to take URL in addition to FILE.
1730 `--include-in-header`, `--include-before-body`, `--include-after-body`.
1734 + Handle empty `start` attribute (see #5162).
1735 + Treat `textarea` as a verbatim environment (#5241) and preserve
1740 + Change treatment of `number-lines` directive (Brian Leung,
1741 #5207). Directives of this type without numeric inputs should
1742 not have a `startFrom` attribute; with a blank value, the
1743 writers can produce extra whitespace.
1744 + Removed superfluous `sourceCode` class on code blocks (#5047).
1745 + Handle `sourcecode` directive as synonynm for `code` (#5204).
1749 + Remove `sourceCode` class for literate Haskell code blocks
1750 (#5047). Reverse order of `literate` and `haskell` classes on
1751 code blocks when parsing literate Haskell, so `haskell` is
1753 + Treat `<textarea>` as a verbatim environment (#5241).
1757 + Handle `minlevel` option differently (#5190, Brian Leung).
1758 When `minlevel` exceeds the original minimum level observed in
1759 the file to be included, every heading should be shifted
1761 + Allow for case of `:minlevel == 0` (#5190).
1762 + Fix treatment of links to images (#5191, Albert Krewinkel).
1763 Links with descriptions which are pointing to images are no
1764 longer parsed as inline images, but as links.
1765 + Add support for #+SELECT_TAGS (Brian Leung).
1766 + Separate filtering logic from conversion function (Brian Leung).
1768 * TWiki reader: Fix performance issue with underscores (#3921).
1770 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
1771 We may not still be exactly matching mediawiki's algorithm.
1775 + Remove `sourceCode` class for literate Haskell code blocks
1776 (#5047). Reverse order of `literate` and `haskell` classes on
1777 code blocks when parsing literate Haskell, so `haskell` is
1779 + Support `\DeclareMathOperator` (#5149).
1780 + Support `\inputminted` (#5103).
1781 + Support `\endinput` (#5233).
1782 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
1783 was interpreted as a file extension, leading pandoc not to add
1784 `.tex` (and thus not to find the file). The new behavior matches
1789 + Use `mapLeft` from Shared instead of defining own.
1791 * Docx reader (Jesse Rosenthal):
1793 + Handle level overrides (#5134).
1797 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
1798 Also supports additional core properties: `subject`, `lang`,
1799 `category`, `description`.
1800 + Make Level into a real type, instead of an alias for a tuple
1803 * ICML writer (Mauro Bieg):
1805 + Support custom-styles (#5137, see #2106).
1806 + Support unnumbered headers (#5140).
1808 * Texinfo writer: Use header identifier for anchor if present (#4731).
1809 Previously we were overwriting an existing identifier with a new one.
1811 * Org writer: Preserve line-numbering for example and code blocks
1814 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
1815 in HTML and PDF as a unicode minus sign.
1817 * Ms writer: Ensure we have a newline after .EN in disply math (#5251).
1819 * RST writer: Don't wrap simple table header lines (#5128).
1821 * Asciidoc writer: Shorter delimiters for tables, blockquotes
1822 (#4364). This matches asciidoctor reference docs.
1824 * Dokuwiki writer: Remove automatic `:` prefix before internal image
1825 links (#5183, Damien Clochard). This prevented users from making
1826 relative image links.
1828 * Zimwiki writer: remove automatic colon prefix before internal
1829 images (#5183, Damien Clochard).
1831 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
1832 (#5105). Captions used to have the word 'caption' prepended; this
1833 has been removed. Also, 'thumb' is used instead of 'frame' to
1834 allow images to be resized.
1838 + Ensure that we don't get > 2 levels of section nesting,
1839 even with slide level > 2 (#5168).
1840 + If slide level == N but there is no N-level header, make
1841 sure the next header with level > N gets treated as a slide
1842 and put in a section, rather than remaining loose (#5168).
1846 + Make `plain` RawBlocks pass through in `plain` output.
1847 + Include needed whitespace after HTML figure (#5121).
1848 We use HTML for a figure in markdown dialects that can't
1849 represent it natively.
1851 * Commonmark writer:
1853 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
1854 + Implement `--toc` (`writerTableOfContents`)
1855 in commonmark/gfm writers (#5172).
1859 + Ensure that picture transforms are done on metadata too.
1860 + Small fixes to `nav.xhtml`:
1861 Add 'landmarks' id attribute to the landmarks nav.
1862 Replace old default CSS removing numbers from ol.toc li
1863 with new rules that match `nav#toc ol, nav#landmarks ol`.
1864 We keep the `toc` class on `ol` for backwards compatibility.
1868 + Make raw content marked `beamer` pass through in `beamer`
1869 output (pandoc/lua-filters#40).
1870 + Beamer: avoid duplicated `fragile` property in some cases
1872 + Add `#` special characters for listings (#4939).
1873 This character needs special handling in `\lstinline`.
1875 * RTF writer: use `toTableOfContents` from Shared to replace
1876 old duplicated code.
1880 + Support custom properties. Also supports additional core
1881 properties: `subject`, `category`, `description` (#5252,
1882 Agustín Martín Barbero).
1883 + Use `toTableOfContents` from Shared to replace old duplicated code.
1885 * ODT writer (Augustín Martín Barbero):
1887 + Fix typo in custom properties (#2839).
1888 + Improve standard properties, including the following core
1889 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
1890 `keywords`, `initial-creator` (from authors), `creation-date`
1891 (actual creation date) (#5252).
1895 + Allow '-' in filenames for custom lua writers (#5187).
1896 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
1897 + sample.lua: Add a missing `>` (MichaWiedenmann).
1899 * reveal.js template: Add `zoomKey` config (#4249).
1901 * HTML5 template: Remove unnecessary type="text/css" on style and
1902 link for HTML5 (#5146).
1904 * LaTeX template (Andrew Dunning, except where noted):
1906 + Prevent fontspec from scaling `mainfont` to match the default
1907 font, Latin Modern. A main font set to 12pt could
1908 previously appear between 11pt to 13pt depending on its design.
1909 To return to the earlier rendering, use `-V
1910 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
1911 + Display monospaced fonts without TeX ligatures when using
1912 `--pdf-engine=lualatex`. It now matches the behaviour of other
1913 engines (#5212, #5218).
1914 + Remove the deprecated `romanfont` variable. The functionality of
1915 `mainfont` is identical (#5218).
1916 + Render `\subtitle` with the standard document classes.
1917 Previously, `subtitle` only appeared when using the KOMA-Script
1918 classes or Beamer (#5213, #5244).
1919 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
1920 several language selection problems, notably with retaining
1921 French spacing conventions when switching to a verbatim
1922 environment or another language; and in printing Greek text
1923 without hyphenation (#5193).
1924 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
1925 available, improving the appearance of URLs by allowing them to
1926 break at additional points (#5193).
1927 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
1928 to correct heading levels in PDF bookmarks: see the [KOMA-Script
1929 3.26 release notes](https://komascript.de/release3.26) (#5193).
1930 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
1931 avoid a possible error when using additional packages alongside
1932 footnotes in tables (#5193, closes #4861).
1933 + Remove obsolete `fixltx2e` package, which has no functionality
1934 with TeX Live 2015 or later (#5193).
1935 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
1936 + Restrict `institute` variable to Beamer (#5219).
1937 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
1938 package if available to make footnotes in tables compatible
1939 with `hyperref` (#5234).
1940 + Number parts and chapters in book classes only if the
1941 `numbersections` variable is set, for consistency with other
1942 output formats. To return to the previous behaviour, use
1943 `-V numbersections -V secnumdepth=0` (#5235).
1944 + Reindent file (#5193).
1945 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
1946 + Set default listings language for lua, assembler (#5227, John
1947 MacFarlane). Otherwise we get an error when trying to compile code
1948 with lua or assembler code. To change the default dialect
1949 (currenty 5.3 for lua and x86masm for assembler), you can use
1950 `--include-in-header` to inject something like
1951 `\lstset{defaultdialect=[5.2]Lua}`.
1953 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
1954 in an instance of PandocMonad, like the other readers and
1955 writers. [API change]
1957 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
1958 in an instance of PandocMonad, like the other readers and
1959 writers. [API change]
1961 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
1962 for `PandocError`. [API change]
1964 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
1965 This is refactored out from the Markdown writer.
1966 It can be used in other writers to create a table of contents.
1968 * Improve error messages for UTF-8 decoding errors. Now we give
1969 the filename and byte offset (#4765).
1971 * Text.Pandoc.XML: Strip out illegal XML characters in
1972 `escapeXMLString` (#5119).
1974 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
1975 The implementation of `pipeProcess` was rewritten to fix sporadic
1976 failures caused by prematurely closed pipes.
1978 * Use `safeRead` instead of `read` everywhere in the code
1979 (John MacFarlane, Mauro Bieg, #5162, #5180).
1981 * Text.Pandoc.SelfContained: Decompress `.svgz` when
1982 converting to `data:` URI (#5163, Alexander Krotov).
1984 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
1985 (#5175, Alexander Krotov). [API change]
1987 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
1988 When pandoc is compiled with ghc 8.6, Windows paths are treated
1989 differently, and paths beginning `\\server` no longer work.
1990 This commit rewrites such patsh to `\\?\UNC\server` which works.
1991 The change operates at the level of argument parsing, so it
1992 only affects the command line program.
1994 * Simplify/fix reading of `--metadata` values on command line
1995 to avoid problems relating to hvr/HsYAML#7 (#5177).
1997 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
1998 Krewinkel). Incorrect types to pandoc element constructors are
1999 automatically converted to the correct types when possible. This was
2000 already done for most constructors, but conversions are now also done
2001 for nested types (like lists of lists).
2003 * Removed custom Setup.hs, use build-type: simple. The only thing we
2004 gained from the custom build was automatic installation of the man
2005 page when using 'cabal install'. But custom builds cause problems,
2006 e.g., with cross-compilation. Installation of the man page is
2007 better handled by packagers. Note to packagers (e.g. Debian): it
2008 may be necessary to add a step installing the man page with the
2011 * Allow latest http-client, tasty, zip-archive, Glob.
2013 * Require skylighting >= 0.7.5, adding support for sml, J,
2016 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
2017 works well with cabal v2.
2021 + Use button for installer links (John MacFarlane, Mauro Bieg,
2023 + Fix links and bump required stack version (max).
2024 + Improve installation notes on associated software (Andrew
2025 Dunning). Includes explanation of how to install related tools
2026 with package managers (since the method of installing
2027 `rsvg-convert` is not obvious).
2029 * doc/org.md: improve documentation of org features (Albert
2032 * doc/lua-filters.md: use 3rd level headers for module fields.
2036 + Clarify automatic identifiers (#5201). We remove
2037 non-alphanumerics. This includes, e.g., emojis.
2038 + Fix example for Div with id (Geoffrey Ely).
2039 + Update list of LaTeX packages used.
2040 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
2041 + Mention `raw_attribute` in documentation for `raw_html` and
2042 `raw_tex` (#5240, thanks to @eiro).
2043 + Clarify that `$sep$` must come right before `$endfor$` in templates
2045 + Document metadata support for docx, odt, pptx writers (Agustín
2047 + Reorganize template variables (#5249, Andrew Dunning).
2048 Add additional headings to categorize variables, and
2049 alphabetize when there is large number; add more examples.
2050 + Document `date-meta` template variable (#5260, Tristan Stenner).
2052 * trypandoc: Fix CSS and viewport.
2054## pandoc 2.5 (2018-11-27)
2056 * Text.Pandoc.App: split into several unexported submodules (Albert
2057 Krewinkel): Text.Pandoc.App.FormatHeuristics,
2058 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
2059 Text.Pandoc.App.OutputSettings. This is motivated partly by the
2060 desire to reduce recompilations when something is modified,
2061 since App previously depended on virtually every other module.
2063 * Text.Pandoc.Extensions
2065 + Semantically, `gfm_auto_identifiers` is now a modifier of
2066 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
2067 be turned on, and then the type of identifier produced depends on
2068 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
2069 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
2070 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
2071 GitHub doesn't seem to strip non-ascii characters any more.
2073 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
2075 + Test AST object equality via Haskell (#5092). Equality of Lua
2076 objects representing pandoc AST elements is tested by unmarshalling
2077 the objects and comparing the result in Haskell.
2078 A new function `equals` which performs this test has been added to the
2079 `pandoc.utils` module.
2080 + Improve stringify. Meta value strings (MetaString)
2081 and booleans (MetaBool) are now converted to the literal string and the
2082 lowercase boolean name, respectively. Previously, all values of these
2083 types were converted to the empty string.
2085 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
2086 already exists (Alexander Krotov).
2088 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
2089 or beginning of line (#5050).
2091 * Text.Pandoc.Readers.Markdown
2093 + Fix parsing of citations, quotes, and underline emphasis
2094 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
2095 and underline emphasis were no longer recognized after certain
2096 symbols, like parentheses (#5099, #5053).
2097 + In pandoc 2.4, a soft break after an abbreviation would be
2098 relocated before it to allow for insertion of a nonbreaking
2099 space after the abbreviation. This behavior is here reverted.
2100 A soft break after an abbreviation will remain, and no nonbreaking
2101 space will be added. Those who care about this issue should take care not
2102 to end lines with an abbreviation, or to insert nonbreaking spaces
2105 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
2106 `<body>` (Alexander Krotov). Some libraries include custom elements
2109 * Text.Pandoc.Readers.HTML
2111 + Allow `tfoot` before body rows (#5079).
2112 + Parse `<small>` as a Span with class "small" (#5080).
2113 + Allow thead containing a row with `td` rather than `th` (#5014).
2115 * Text.Pandoc.Readers.LaTeX
2117 + Cleaned up handling of dimension arguments. Allow decimal points,
2119 + Don't allow arguments for verbatim, etc.
2120 + Allow space before bracketed options.
2121 + Allow optional arguments after `\\` in tables.
2122 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
2123 but know that these font changing commands take no arguments.
2125 * Text.Pandoc.Readers.Muse
2127 + Trim whitespace before parsing grid table cells (Alexander Krotov).
2128 + Add grid tables support (Alexander Krotov).
2130 * Text.Pandoc.Shared
2132 + For bibliography match Div with id `refs`, not class `references`.
2133 This was a mismatch between pandoc's docx, epub, latex, and markdown
2134 writers and the behavior of pandoc-citeproc, which actually looks for a
2135 div with id `refs` rather than one with class `references`.
2136 + Exactly match GitHub's identifier generating algorithm (#5057).
2137 + Add parameter for `Extensions` to `uniqueIdent` and
2138 `inlineListToIdentifier` (#5057). [API change]
2139 This allows these functions to be sensitive to the settings of
2140 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
2141 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
2142 also means that `gfm_auto_identifiers` can now be used in all formats.
2144 * Text.Pandoc.Writers.AsciiDoc
2146 + Use `.`+ as list markers to support nested ordered lists (#5087).
2147 + Support list number styles (#5089).
2148 + Render Spans using `[#id .class]#contents#` (#5080).
2150 * Text.Pandoc.Writers.CommonMark
2152 + Respect `--ascii` (#5043, quasicomputational).
2153 + Make sure `--ascii` affects quotes, super/subscript.
2155 * Text.Pandoc.Writers.Docx
2157 + Fix bookmarks to headers with long titles (#5091).
2158 Word has a 40 character limit for bookmark names. In addition, bookmarks
2159 must begin with a letter. Since pandoc's auto-generated identifiers may
2160 not respect these constraints, some internal links did not work. With
2161 this change, pandoc uses a bookmark name based on the SHA1 hash of the
2162 identifier when the identifier isn't a legal bookmark name.
2163 + Add bookmarks to code blocks (Nikolay Yakimov).
2164 + Add bookmarks to images (Nikolay Yakimov).
2165 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
2167 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
2170 <meta name="calibre:series" content="Classics on War and Politics"/>
2172 are now included from an epub XML metadata file. You can also include
2173 this information in your YAML metadata, like so:
2176 series: Classics on War and Policitics
2178 In addition, ibooks-specific metadata can now be included via an XML
2179 file. (Previously, it could only be included via YAML metadata, see
2182 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `"` outside of
2185 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
2186 This avoids splitting up the output unnecessarily into separate elements.
2188 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
2189 if `writerIncremental` is True (#5072).
2191 * Text.Pandoc.Writers.Muse (Alexander Krotov).
2193 + Output tables as grid tables if they have multi-line cells.
2194 + Indent simple tables only on the top level.
2195 + Output tables with one column as grid tables.
2196 + Add support for `--reference-location`.
2197 + Internal improvements.
2199 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
2200 #5095). This was a regression in pandoc 2.4.
2202 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
2204 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
2206 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
2207 when there are several choices for a particular character.
2209 * data/abbreviations
2211 + Add additional abbreviations (Andrew Dunning)
2212 Many of these borrowed from the Chicago Manual of Style 10.42,
2213 'Scholarly abbreviations'.
2217 + Asciidoc template: add :lang: to title header is lang is set in
2220 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
2221 Disabling the flag will cause derivation of ToJSON and FromJSON
2222 instances via GHC Generics instead of Template Haskell. The flag is
2223 enabled by default, as deriving via Generics can be slow (see #4083).
2227 + Tweaked drop-down lists.
2228 + Put link to site in footer.
2229 + Preselect output format.
2230 + Update on change of in or out format.
2231 + Add man input format.
2235 + Fix outdated description of latex_macros extension.
2236 + Clarified placement of bibliography.
2237 + Added "A note on security."
2238 + Fix note on curly brace syntx for locators.
2239 + Document new explicit syntax for citeproc locators.
2240 + Remove confusing cross-links for some extensions.
2241 + Don't put pandoc in code ticks in heading.
2242 + Document that `--ascii` works for gfm and commonmark too.
2243 + Add `man` to `--from` options.
2245 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
2248## pandoc 2.4 (2018-11-03)
2252 * New input format `man` (Yan Pashkovsky, John MacFarlane).
2256 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
2257 via the new `writerPreferAscii` field in `WriterOptions`.
2258 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
2259 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
2260 Previously the to-ascii translation was done in Text.Pandoc.App,
2261 and thus not available to those using the writer functions
2264 * `--ascii` now works with Markdown output. HTML5 character reference
2267 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
2268 guaranteed, but the writer will use commands like `\"{a}` and `\l`
2269 whenever possible, to avoid emitting a non-ASCII character.
2271 * For HTML5 output, `--ascii` now uses HTML5 character reference
2272 entities rather than numerical entities.
2274 * Improved detection of format based on extension (in Text.Pandoc.App).
2275 We now ensure that if someone tries to convert a file for a
2276 format that has a pandoc writer but not a reader, it won't just
2277 default to markdown.
2279 * Add viz. to abbreviations file (#5007, Nick Fleisher).
2281 * AsciiDoc writer: always use single-line section headers,
2282 instead of the old underline style (#5038). Previously the single-line
2283 style would be used if `--atx-headers` was specified, but
2284 now it is always used.
2286 * RST writer: Use simple tables when possible (#4750).
2288 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
2289 quasicomputational). Previously, the writer would unconditionally
2290 emit HTML output for subscripts, superscripts, strikeouts (if the
2291 strikeout extension is disabled) and small caps, even with
2292 `raw_html` disabled. Now there are plain-text (and, where
2293 possible, fancy Unicode) fallbacks for all of these corresponding
2294 (mostly) to the Markdown fallbacks, and the HTML output is only
2295 used when `raw_html` is enabled.
2297 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
2298 This allows raw openxml blocks and inlines to be used in the pptx
2299 writer. Caveats: (1) It's up to the user to write
2300 well-formed openxml. The chances for corruption, especially with
2301 such a brittle format as pptx, is high. (2) Because of
2302 the tricky way that blocks map onto shapes, if you are using
2303 a raw block, it should be the only block on a slide
2304 (otherwise other text might end up overlapping it). (3) The
2305 pptx ooxml namespace abbreviations are different from the
2306 docx ooxml namespaces. Again, it's up to the user to get it
2307 right. Unzipped document and ooxml specification should be
2310 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
2311 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
2312 we tell katex to convert the contents of span elements with
2313 class "math". Since math has already been identified, this
2314 avoids wasted time parsing for LaTeX delimiters. Note, however,
2315 that this may yield unexpected results if you have span elements
2316 with class "math" that don't contain LaTeX math.
2317 Also, use latest version of KaTeX by default (0.9.0).
2319 * The man writer now produces ASCII-only output, using groff escapes,
2324 + Add title, author and date to metadata; any remaining
2325 metadata fields are added as `meta:user-defined` tags.
2326 + Implement table caption numbering (#4949, Nils Carlson).
2327 Captioned tables are numbered and labeled with format "Table 1:
2328 caption", where "Table" is replaced by a translation, depending
2329 on the value of `lang` in metadata. Uncaptioned tables are not
2331 + OpenDocument writer: Implement figure numbering in captions (#4944,
2332 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
2333 The format in the caption is "Figure 1: caption" and so on
2334 (where "Figure" is replaced by a translation, depending on the
2335 value of `lang` in the metadata). Captioned figures are numbered
2336 consecutively and uncaptioned figures are not enumerated. This
2337 is necessary in order for LibreOffice to generate an
2338 Illustration Index (Table of Figures) for included figures.
2340 * RST reader: Pass through fields in unknown directives as div attributes
2341 (#4715). Support `class` and `name` attributes for all directives.
2343 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
2344 Brian Leung). Headers with the corresponding tags should not
2345 appear in the output.
2347 * Log warnings about missing title attributes now include a
2348 suggestion about how to fix the problem (#4909).
2350 * Lua filter changes (Albert Krewinkel):
2352 + Report traceback when an error occurs. A proper Lua traceback is
2353 added if either loading of a file or execution of a filter
2354 function fails. This should be of help to authors of Lua filters
2355 who need to debug their code.
2357 + Allow access to pandoc state (#5015). Lua filters and custom
2358 writers now have read-only access to most fields of pandoc's
2359 internal state via the global variable `PANDOC_STATE`.
2361 + Push ListAttributes via constructor (Albert Krewinkel).
2362 This ensures that ListAttributes, as present in OrderedList elements,
2363 have additional accessors (viz. `start`, `style`, and `delimiter`).
2365 + Rename ReaderOptions fields, use snake_case. Snake case is used
2366 in most variable names, using camelCase for these fields was an
2367 oversight. A metatable is added to ensure that the old field
2368 names remain functional.
2370 + Iterate over AST element fields when using `pairs`. This makes
2371 it possible to iterate over all ield names of an AST element by
2372 using a generic `for` loop with pairs`:
2374 for field_name, field_content in pairs(element) do
2378 Raw table fields of AST elements should be considered an
2379 implementation detail and might change in the future. Accessing
2380 element properties should always happen through the fields
2381 listed in the Lua filter docs.
2383 Note that the iterator currently excludes the `t`/`tag` field.
2385 + Ensure that MetaList elements behave like Lists. Methods usable
2386 on Lists can also be used on MetaList objects.
2388 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
2389 object to the constructor `pandoc.MetaList` now returns the
2390 passed list as a MetaList. This is consistent with the
2391 constructor behavior when passed an (untagged) list.
2393 * Custom writers: Custom writers have access to the global variable
2394 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
2395 a userdata wrapper around the full pandoc AST and exposes two
2396 fields, `meta` and `blocks`. The field content is only
2397 marshaled on-demand, performance of scripts not accessing the
2398 fields remains unaffected.
2402 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
2404 * Text.Pandoc.Shared:
2406 + Export `splitSentences`. This was previously duplicated in the Man and
2408 + Add `ToString` typeclass (Alexander Krotov).
2410 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
2412 * Text.Pandoc.Parsing
2414 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
2415 + Generalize `readWithM` from `[Char]` to any `Char` Stream
2416 that is a `ToString` instance (Alexander Krotov).
2418 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
2420 * Text.Pandoc.XML: add `toHtml5Entities`.
2422 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
2425 * Text.Pandoc.Writers.Shared
2427 + Add exported functions `toSuperscript` and
2428 `toSubscript` (quasicomputational, #4528).
2429 + Remove exported functions `metaValueToInlines`,
2430 `metaValueToString`. Add new exported functions
2431 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
2432 `lookupMetaString`. Use these whenever possible for uniformity
2433 in writers (Mauro Bieg, #4907). (Note that
2434 removed function `metaValueToInlines` was in previous
2436 + Add `metaValueToString`.
2440 + Expose more useful internals (Albert Krewinkel):
2442 - `runFilterFile` to run a Lua filter from file;
2443 - data type `Global` and its constructors; and
2444 - `setGlobals` to add globals to a Lua environment.
2446 This module also contains `Pushable` and `Peekable` instances
2447 required to get pandoc's data types to and from Lua. Low-level
2448 Lua operation remain hidden in Text.Pandoc.Lua.
2450 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
2452 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
2453 `apply` (Albert Krewinkel).
2455### Bug fixes and under-the-hood improvements
2457 * Text.Pandoc.Parsing
2459 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
2460 + Rewrite `uri` without `withRaw` (Alexander Krotov).
2461 + Generalize `parseFromString` and `parseFromString'` to any
2462 streams with Char token (Alexander Krotov)
2463 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
2465 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
2468 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
2473 + Work around HXT limitation for --syntax-definition with windows
2475 + Always preserve tabs for man format. We need it for tables.
2476 + Split command line parsing code into a separate unexported
2477 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
2479 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
2482 * New unexported module Text.Pandoc.RoffChar, provided character
2483 escape tables for roff formats.
2485 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
2486 accept processing instructions (#3123, regression since 2.0).
2488 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
2489 account for empty lists (Alexander Krotov).
2491 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
2492 headerless table (#4382).
2494 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
2495 blocks (Brian Leung).
2497 * Text.Pandoc.Readers.Vimwiki:
2499 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
2501 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
2503 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
2504 `[Char]` (Alexander Krotov).
2506 * Text.Pandoc.Readers.LaTeX
2508 + Allow space at end of math after `\` (#5010).
2509 + Add support for `nolinkurl` command (#4992, Brian Leung).
2510 + Simplified type on `doMacros'`.
2511 + Tokenize before pulling tokens, rather than after (#4408). This
2512 has some performance penalty but is more reliable.
2513 + Make macroDef polymorphic and allow in inline context.
2514 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
2515 I have actually seen tex like this in the wild.
2516 + Improved parsing of `\def`, `\let`. We now correctly parse:
2526 + Improve parsing of `\def` argspec.
2527 + Skip `\PackageError` commands (see #4408).
2528 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
2529 so no raw tex should result unless we explicitly say `+raw_tex`.
2530 Previously some raw commands did make it through.
2531 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
2532 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
2533 Text.Pandoc.Readers.LaTeX.Lang (unexported).
2534 + Simplified accent code using unicode-transforms.
2535 New dependency on unicode-transforms package for normalization.
2536 + Allow verbatim blocks ending with blank lines (#4624).
2537 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
2538 This collects some of the general-purpose code from the LaTeX reader,
2539 with the aim of making the module smaller.
2541 * Text.Pandoc.Readers.Markdown
2543 + Fix awkward soft break movements before abbreviations (#4635).
2544 + Add updateStrPos in a couple places where needed.
2546 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
2547 (#4947). These are variants for "complex scripts" like Arabic
2548 and are now treated just like b, i (bold, italic).
2550 * Text.Pandoc.Readers.Muse (Alexander Krotov)
2552 + Try to parse lists before trying to parse table.
2553 This ensures that tables inside lists are parsed correctly.
2554 + Forbid whitespace after opening and before closing markup
2556 + Parse page breaks.
2557 + Simplify `museToPandocTable` to get rid of partial functions.
2558 + Allow footnotes to start with empty line.
2559 + Make sure that the whole text is parsed.
2560 + Allow empty headers. Previously empty headers caused parser to
2561 terminate without parsing the rest of the document.
2562 + Allow examples to be indented with tabs.
2563 + Remove indentation from examples indicated by `{{{` and `}}}`.
2564 + Fix parsing of empty cells.
2565 + Various changes to internals.
2566 + Rewrite some parsers in applicative style.
2567 + Avoid tagsoup dependency.
2568 + Allow table caption to contain `+`.
2570 * Text.Pandoc.Writers.LaTeX
2572 + Add newline if math ends in a comment (#4880). This prevents the
2573 closing delimiter from being swalled up in the comment.
2574 + With `--listings`, don't pass through org-babel attributes (#4889).
2575 + With `--biblatex`, use `\autocite` when possible (#4960).
2576 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
2577 we don't have prefixes and suffixes, we use instead
2578 `\autocite{a1,a2,a3}`.
2579 + Fix description lists contining highlighted code (#4662).
2581 * Text.Pandoc.Writers.Man
2583 + Don't wrap `.SH` and `.SS` lines (#5019).
2584 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
2585 one paragraph definitions.
2586 + Moved common groff functions to Text.Pandoc.Writers.Groff.
2587 * Fix strong/code combination on man (should be `\f[CB]` not
2588 `\f[BC]`, see #4973).
2589 + Man writer: use `\f[R]` instead of `\f[]` to reset font
2590 (Alexander Krotov, #4973).
2591 + Move `splitSentences` to Text.Pandoc.Shared.
2593 * Text.Pandoc.Writers.Docx
2595 + Add framework for custom properties (#3034). So far, we don't
2596 actually write any custom properties, but we have the
2597 infrastructure to add this.
2599 + Handle tables in table cells (#4953). Although this is not
2600 documented in the spec, some versions of Word require a `w:p`
2601 element inside every table cell. Thus, we add one when the
2602 contents of a cell do not already include one (e.g. when a table
2603 cell contains a table).
2605 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
2606 Adjust header levels so that n+1 level headers are only
2607 found under n level headers, and the top level is 1.
2609 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
2610 alignment (#4385). This change eliminates the large gap we used
2611 to have between bullet and text, and also ensures that numbers
2612 in numbered lists will be right-aligned.
2614 * Text.Pandoc.Writers.ZimWiki
2616 + Number ordered list items sequentially, rather than always
2618 + Remove extra indentation on lists (#4963).
2620 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
2621 `stylesheet` (Mauro Bieg, #4990).
2623 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
2624 normal content (#4629). Otherwise a raw block can prevent a
2625 paragraph from being recognized as such.
2627 * Text.Pandoc.Writers.Ms
2629 + Removed old `escapeBar`. We don't need this now that we use
2631 + Moved common code to Text.Pandoc.Writers.Roff and to
2632 Text.Pandoc.RoffChar.
2633 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
2634 with the man writer).
2636 * Text.Pandoc.Writers.Muse (Alexander Krotov).
2638 + Add support for grid tables.
2639 + Fix Muse writer style.
2640 + Use `length` instead of `realLength` to calculate definition
2641 indentation. Muse parsers don't take character width into
2642 account when calculating indentation.
2643 + Do not insert newline before lists.
2644 + Use lightweight markup after `</em>` tag.
2646 * New unexported module Text.Pandoc.Writers.Roff, providing functions
2647 useful for all roff format writers (man, ms).
2651 + Move globals handling to separate module Text.Pandoc.Lua.Global
2654 + Lua filter internals: push Shared.Element as userdata (Albert
2655 Krewinkel). Hierarchical Elements were pushed to Lua as plain
2656 tables. This is simple, but has the disadvantage that marshaling
2657 is eager: all child elements will be marshaled as part of the
2658 object. Using a Lua userdata object instead allows lazy access
2659 to fields, causing content marshaling just (but also each time)
2660 when a field is accessed. Filters which do not traverse the full
2661 element contents tree become faster as a result.
2663### Default template changes
2667 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
2668 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
2670 * AsciiDoc template: use single-line style for title.
2672 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
2675 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
2678 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
2680 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
2683### Documentation improvements
2687 + Add chromeos install instructions (#4958) (Evan Pratten).
2688 + Add note about TinyTeX.
2692 + Change `groff` -> `roff`.
2693 + Implement `--ascii` for Markdown writer.
2694 + Clarify LaTeX image dimensions output (Mauro Bieg).
2696 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
2698 * doc/getting-started.md: Added title to test1.md to avoid warning.
2700 * doc/lua-filters.md: merge type references into main document,
2701 fix description of Code.text (Albert Krewinkel).
2703### Build infrastructure improvements
2707 + Makefile: added quick-cabal, full-cabal targets.
2708 + Make .msi download targets insensitive to order of appveyor builds.
2710 * Update benchmarks for ghc 8.6.1.
2714 + Enable more compiler warnings (Albert Krewinkel).
2715 + Make base lower bound 4.8.
2716 + Bump upper bound for QuickCheck.
2717 + Bump upper bound for binary.
2718 + Updated version bounds for containers and haddock-library (#4974).
2719 + Added docx/docPropos/custom.xml to cabal data-files.
2720 + Require skylighting 0.7.4 (#4920).
2721 + New dependency on unicode-transforms package for normalization.
2723 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
2725 * Added `tools/changelog-helper.sh`.
2727 * Added test/grofftest.sh for testing the man reader on real man pages.
2729## pandoc 2.3.1 (2018-09-28)
2733 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
2734 This eliminates a regression introduced after pandoc 2.1.1, which
2735 caused inline constructions containing newlines not to be recognized.
2736 + Fix bug with internal link targets (#4919). They were gobbling up
2737 indented content underneath.
2739 * Markdown reader: distinguish autolinks in the AST. With this change,
2740 autolinks are parsed as Links with the `uri` class. (The same is true
2741 for bare links, if the `autolink_bare_uris` extension is enabled.)
2742 Email autolinks are parsed as Links with the `email` class. This
2743 allows the distinction to be represented in the AST.
2747 + Force inline code blocks to honor export options (Brian Leung).
2748 + Parse empty argument array in inline src blocks (Brian Leung).
2750 * Muse reader (Alexander Krotov):
2752 + Added additional tests.
2753 + Do not allow code markup to be followed by digit.
2754 + Remove heading level limit.
2755 + Simplify `<literal>` tag parsers
2756 + Parse Text instead of String. Benchmark shows 7% improvement.
2757 + Get rid of HTML parser dependency.
2758 + Various code improvements.
2760 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
2761 We do this in the LaTeX writer, and it avoids problems.
2762 Note that `/` works as a LaTeX path separator on Windows.
2766 + Add support for multiprenote and multipostnote arguments
2767 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
2768 the first prefix of a multicite, and the multipostnotes follow the
2770 + Fix a use of `last` that might take empty list. If you ran with
2771 `--biblatex` and have an empty document (metadata but no blocks),
2772 pandoc would previously raise an error because of the use of
2773 `last` on an empty list.
2775 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
2776 MonadFail instance (Jonas Scholl).
2778 * ODT Writer: Improve table header row style handling (Nils Carlson).
2779 This changes the way styles for cells in the header row
2780 and normal rows are handled in ODT tables.
2781 Previously a new (but identical) style was generated for
2782 every table, specifying the style of the cells within the table.
2783 After this change there are two style definitions for table cells,
2784 one for the cells in the header row, one for all other cells.
2785 This doesn't change the actual styles, but makes post-processing
2786 changes to the table styles much simpler as it is no longer
2787 necessary to introduce new styles for header rows and there are
2788 now only two styles where there was previously one per table.
2792 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
2793 class was added to autolinks by the HTML writer, but it had to
2794 guess what was an autolink and could not distinguish
2795 `[http://example.com](http://example.com)` from
2796 `<http://example.com>`. It also incorrectly recognized
2797 `[pandoc](pandoc)` as an autolink. Now the HTML writer
2798 simply passes through the `uri` attribute if it is present,
2799 but does not add anything.
2800 + Avoid adding extra section nestings for revealjs.
2801 Previously revealjs title slides at level (slidelevel - 1)
2802 were nested under an extra section element, even when
2803 the section contained no additional (vertical) content.
2804 That caused problems for some transition effects.
2805 + Omit unknown attributes in EPUB2 output. For example,
2806 `epub:type` attributes should not be passed through,
2807 or the epub produced will not validate.
2809 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
2810 The JATS spec does not allow these.
2812 * Textile writer: don't represent `uri` class explicitly
2813 for autolinks (#4913).
2815 * Lua filters (Albert Krewinkel):
2817 + Cleanup filter execution code.
2818 + Better error on test failure.
2820 * HTML, Muse reader tests: reduce time taken by round-trip test.
2822 * Added cabal.project.
2824 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
2826 * Use hslua v1.0.0 (Albert Krewinkel).
2828 * Fix `translations/ru` to use modern Russian orthography
2831 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
2832 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
2834## pandoc 2.3 (2018-09-16)
2836 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
2837 users to specify metadata in a YAML file, regardless of the
2838 input format (#1960).
2840 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
2842 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
2845 * Text.Pandoc.Readers.LaTeX.Types:
2847 + New type `ArgSpec` (API change).
2848 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
2853 + Use `tex` instead of `latex` for raw tex-ish content. We can't
2854 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
2855 use `tex` always. Note that if `context` or `latex` specifically
2856 is desired, you can still force that in a markdown document by
2857 using the raw attribute. Note that this change may affect some
2858 filters, if they assume that raw tex parsed by the Markdown reader
2859 will be RawBlock (Format `latex`). In most cases it should be
2860 trivial to modify the filters to accept `tex` as well.
2861 + Refactor and reorganize YAML code (Mauro Bieg).
2862 + Make `example_lists` work for interrupted lists
2863 without `startnum` (#4908).
2867 + Parse `<script type="math/tex` tags as math (#4877).
2868 These are used by MathJax in some configurations.
2869 + Extract spaces inside links instead of trimming them
2870 (Alexander Krotov, #4845).
2871 + Added round-trip tests (Alexander Krotov).
2872 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
2873 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
2874 (which is helpful for translation HTML documents using MathJaX).
2876 * Org reader (Albert Krewinkel):
2878 + Respect export option `p` for planning info. Inclusion of planning info
2879 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
2880 `p` export option: setting the option to `t` will add all planning
2881 information in a *Plain* block below the respective headline.
2882 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
2884 + Strip planning info from output. Planning info is parsed, but not
2885 included in the output (as is the default with Emacs Org-mode, #4867).
2889 + Handle parameter patterns for `\def` (#4768, #4771).
2890 For example: `\def\foo#1[#2]{#1 and #2}`.
2891 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
2892 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
2893 argument as the content.
2894 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
2895 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
2896 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
2897 will be parsed as a regular Quoted inline (not using the quotes
2898 appropriate to the foreign language).
2899 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
2900 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
2901 `\textcircled`. Also fall back to combining characters when composed
2902 characters are not available.
2903 + Resolve `\ref` for figure numbers.
2904 + Support `mintinline` (#4365, Marc Schreiber).
2905 + Fix siunitx unit commands so they are only recognized in
2906 siunitx contexts (#4842). For example, `\l` outside of an
2907 siunitx context should be l-slash, not l (for liter).
2908 + Fix double `unnumbered` class (#4838). The `unnumbered` class
2909 was being included twice for starred sections.
2911 * RST reader: Don't skip link definitions after comments (#4860).
2913 * Muse reader (Alexander Krotov):
2915 + Close the `</quote>` in indented tag test.
2916 There is already a separate test for unclosed `</quote>`.
2917 + Autonumber sections in the correct order. Parsing now stops
2918 at each section header to ensure the header is registered before
2919 parsing of the next section starts.
2920 + Move duplicate code into `headingStart` function.
2921 + Allow newline after opening `*` or `**`.
2922 + Don't allow digits after closing marker in lightweight markup
2923 This change makes reader more compatible with Emacs Muse.
2924 + Parse `<verse>` tag in one pass instead of using
2925 `parseFromString`. This change makes it possible to have
2926 verbatim `</verse>` tag inside verse.
2928 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
2929 (#4336). This allows pandoc to parse ODT document produced by KDE's
2932 * Muse writer (Alexander Krotov):
2934 + Output headers without asterisks if not on the top level.
2935 + Never wrap definition list terms.
2936 + Set `envInsideBlock = True` when rendering notes.
2937 + Use `""` instead of `[]` for empty String.
2938 + Check for whitespace in the beginning and end of Str's.
2939 + Escape `-`, `;` and `>` in the beginning of strings.
2940 + Escape list markers in the beginning of notes.
2941 + Normalize inline list before testing if tags should be used.
2942 + Use tags instead of lightweight markup for empty strings.
2943 + Use lightweight markup when possible.
2944 + Escape empty strings. This guarantees that `conditionalEscapeString`
2945 never returns empty string.
2946 + Wrap conditionalEscapeString result into `Muse` type.
2947 This removes the need to pass `envInsideLinkDescription` to it.
2948 + Separate `shouldEscapeString` function.
2949 + Simplify inline list rendering.
2950 + Replace newlines in strings with spaces.
2954 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
2955 + Properly handle display math in spans (#4826). This isn't a
2956 complete solution, since other nestings of display math may still
2957 cause problems, but it should work for what is by far the most
2962 + Always output `<dt>` element, even if it is empty (#4883,
2964 + Don't prefix `epub:` attributes with `data-`.
2966 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
2967 recognize these escapes.
2969 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
2970 Image scaling was broken when a width was set to a percentage.
2972 * EPUB writer: set `epub:type` on body element in each chapter,
2973 depending on the `epub:type` of the first section (#4823). This
2974 only affects epub3. See
2975 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
2977 * FB2 writer: put `coverpage` element between title and date rather than in
2978 `document-info` element (#4854).
2980 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
2982 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
2983 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
2984 tex is now used. Previously we'd "fake it with unicode" and fall
2985 back to tex when that didn't work. But newer haddock versions
2990 + Ensure that title element is always present, even if empty (#4839).
2991 + Put author tags in the template, rather than adding them in
2994 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
2995 `linkcolor` only affects internal links, and `urlcolor` only
2996 affects linked URLs. For external links, the option to use is
2999 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
3003 + Use `.. raw:: latex` for `tex` content.
3004 + Use `.. container` for generic Divs, instead of raw HTML.
3005 + Render Divs with admonition classes as admonitions (#4833).
3006 Also omit Div with class `admonition-title`. These are generated
3007 by the RST reader and should be omitted on round-trip.
3009 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
3010 (#4855, Antonio Terceiro).
3012 * HTML5 template: add the `title-block-header` identifier to the
3013 `header` element, to make it easier to style precisely (#4767,
3016 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
3017 José de Mattos Neto).
3019 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
3020 (#4853, Wandmalfarbe).
3022 * TEI template: improve `publicationStmt`. Add support for
3023 `publisher`, `address`, `pubPlace`, and `date` variables.
3025 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
3027 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
3029 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
3033 + Clarify that `--biblatex/--natbib` don't work directly for PDF
3035 + Document `epub:type` attribute (Mauro Bieg, #4901)
3036 + Clarify when `--resource-path` has an effect.
3037 + More detail on customization in syntax highlighting section.
3038 + Document encoding issue with `--listings` (#4871, Damien Clochard).
3039 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
3040 + Use https for context wiki links (#4910).
3044 + Link to lua-filters repository (#4874).
3045 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
3047 * lua-filters.md: add links to filters, and to lua-filters repository
3052 + Indicate that cabal >= 2.0 is needed.
3053 + Added chocolatey installation method (#4844, Miodrag Milić).
3055 * Travis: exclude round-trip tests, except for nightly test which can fail.
3057 * Use latest texmath, pandoc-citeproc.
3059 * Use a patched version of foundation until
3060 https://github.com/haskell-foundation/foundation/pull/503
3063 * Clean up appveyor build and Windows package creation.
3064 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
3065 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
3067 * Remove obsolete RELEASE-CHECKLIST.md.
3069 * Added additional compiler warnings in Makefile and CI builds.
3071## pandoc 2.2.3.2 (2018-08-07)
3073 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
3074 This fixes a regression in 2.2.3, which cause boolean values to
3075 be parsed as MetaInlines instead of MetaBool.
3077 We here record another undocumented (but desirable) change in 2.2.3:
3078 numerical metadata fields are now parsed as MetaInlines rather than
3081## pandoc 2.2.3.1 (2018-08-06)
3083 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
3084 (#4817). This fixes a regression in 2.2.3 which caused embedded
3085 mappings (e.g. mappings in sequences) not to work in YAML metadata.
3087## pandoc 2.2.3 (2018-08-05)
3089 * RST reader: improve parsing of inline interpreted text roles (#4811).
3091 + Use a Span with class "title-reference" for the default
3092 title-reference role.
3093 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
3094 and `Str`s for `title-reference`.
3095 + Use Code with class "interpreted-text" instead of Span and Str for
3096 unknown roles. (The RST writer has also been modified to round-trip
3098 + Disallow blank lines in interpreted text.
3099 + Backslash-escape now works in interpreted text.
3100 + Backticks followed by alphanumerics no longer end interpreted text.
3101 + Remove support for nested inlines (Francesco Occhipinti).
3102 RST does not allow nested emphasis, links, or other inline
3103 constructs. This fixes several bugs (#4581, #4561, #4792).
3105 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
3106 Krewinkel). Emphasis was not parsed when it followed directly after
3107 some block types (e.g., lists).
3109 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
3110 keys. Previously in 2.2.2 you could not do
3122 With this change, both forms work.
3124 * DocBook reader: metadata handling improvements.
3125 Now we properly parse title and subtitle elements that are direct
3126 children of book and article (as well as children of bookinfo,
3127 articleinfo, or info). We also now use the `subtitle` metadata
3128 field for subtitles, rather than tacking the subtitle on to the
3133 + Allow images to be directly nested within links (#4810, Francesco
3135 + Use `titleblock` instead of `title` variable for title block (#4803,
3136 Francesco Occhipinti). `titleblock` contains a properly formatted
3137 title and subtitle (using top-level headers). `title` and
3138 `subtitle` variables are still available and just contain the
3139 title and subtitle text. Note that this change will require an
3140 update to custom rst templates.
3141 + Render Code with class "interpreted-text" as interpreted text role.
3143 * MediaWiki writer: Avoid extra blank line in tables with empty cells
3144 (#4794). Note that the old output is semantically identical, but the
3145 new output looks better.
3147 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
3148 Krewinkel). Exposes a function converting which flattenes a list of
3149 blocks into a list of inlines. An example use case would be the
3150 conversion of Note elements into other inlines.
3152 * RST template: use `titleblock` instead of `title`. Users of
3153 custom RST templates will want to update this.
3155 * LaTeX template: Moved some beamer code in default.latex template.
3156 This change allows beamer themes to change the template and font (as
3157 Metropolis does) (#4450).
3159 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
3161 * Added test case for #4669 to repository.
3163 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
3167 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
3168 + Clarify when `csquotes` is used in LaTeX writer (#4514).
3169 + Add `commonmark` to list of output formats where `raw_tex` has an
3173## pandoc 2.2.2.1 (2018-07-19)
3175 * Fix regression finding templates in user data directory (#4777).
3176 Under version 2.2.1 and prior pandoc found latex templates in the
3177 templates directory under the data directory, but this broke in 2.2.2.
3179 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
3180 `rawLaTeXInline` (#4781). (This primarily affects the markdown
3181 reader, and other readers that accept raw tex.)
3182 Starting in 2.2.2, everything after an `\input` (or `\include`)
3183 in a markdown file would be parsed as raw LaTeX.
3187 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
3188 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
3189 Unlike `tags`, `keywords` is used in some of the writers
3190 and default templates.
3192 * Add missing `rollingLinks` option to revealjs template (#4778,
3195## pandoc 2.2.2 (2018-07-16)
3197 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
3198 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
3200 Note: HsYAML implements YAML 1.2, in which the valid true
3201 values are `true`, `True`, `TRUE`. This means a change in
3202 the semantics of YAML metadata that could affect users:
3203 `y`, `yes`, and `on` no longer count as true values.
3205 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
3208 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
3209 Anders Waldenborg). Non-ascii characters were not stripped from
3210 identifiers even if the `ascii_identifiers` extension was
3211 enabled (which is is by default for gfm).
3213 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
3214 Remove trailing Space from list items. Parse lists that have no space
3219 + Treat `lilypond` as a verbatim environment (#4725).
3220 + Parse figure label into Image id (#4700, Mauro Bieg).
3221 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
3222 + Allow spaces around `\graphicspath` arguments (#4698).
3223 + Handle includes without surrounding blanklines (#4553).
3224 In addition, `\input` can now be used in an inline context,
3225 e.g. to provide part of a paragraph, as it can in LaTeX.
3226 + In `rawLaTeXBlock`, handle macros that resolve to a
3227 `\begin` or `\end` (#4667).
3228 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
3229 Note that this only affected LaTeX in markdown.
3230 + Tighten up reading of beamer overlay specifications (#4669).
3231 Ideally we'd turn these on only when reading beamer, but currently
3232 beamer is not distinguished from latex as an input format.
3233 This commit also activates parsing of overlay specifications
3234 after commands in general (e.g. `\item`), since they can occur
3235 in many contexts in beamer.
3236 + Parse more siunitx unit commands (#4296, #4773).
3237 + Be more forgiving in key/value option parsing (#4761).
3241 + Allow empty code spans, e.g. `` ` ` ``.
3242 + Emojis are now wrapped in Spans with class `emoji` and
3243 attribute `data-emoji` (Anders Waldenborg, #4743).
3244 This allows the writer to handle them in a special way
3245 (e.g. using a special font, or just rendering the
3248 * Muse reader (Alexander Krotov, except where indicated):
3250 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
3251 + Add support for floating images.
3252 + Add support for images with specified width.
3253 + Parse image URLs without "guard" and "takeExtension".
3254 + Split link and image parsing into separate functions.
3255 + Parse links starting with "URL:" explicitly instead of trying to strip
3256 "URL:" prefix after parsing.
3258 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
3261 * Markdown writer: Preserve `implicit_figures` with attributes, even if
3262 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
3264 * Markdown and commonmark/github writers now respect the `emoji`
3265 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
3266 `:smile:` as `:smile:` rather than converting it to a smile
3269 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
3271 * ODT/OpenDocument writer: Make internal links work (#4358).
3272 This adds proper bookmarks to the headers with non-null IDs.
3274 * EPUB writer: Properly escape pagetitle. Previously we weren't
3275 escaping `&` and other XML characters in the pagetitle, so a title
3276 containing a `&` would be invalid.
3278 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
3283 + Don't treat 'example' as a syntax name (#4748).
3284 This fixes conversions from org with example blocks.
3285 + Support `--number-sections` via the `section-numbering`
3286 directive in standalone output.
3288 * reveal.js writer and template: reuse mathjax URL
3289 provided by the argument to `--mathjax` or the normal pandoc default,
3290 rather than a hard-coded one in the template (#4701).
3294 + Properly handle footnotes in table captions (#4683).
3295 Refactored code from figure captions to use in both places.
3296 + In beamer output, fix single digit column percentage (#4690, Mauro
3299 * FB2 writer (Alexander Krotov):
3301 + Convert Plain to Para in annotation (#2424).
3302 + Fix order of items in title-info (#2424).
3304 * Custom writer: fix error message on script failure (Albert Krewinkel).
3305 Error messages produced by Lua were not displayed by Pandoc.
3307 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
3308 inline containing the emoji character and some attributes with metadata
3309 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
3310 Anders Waldenborg, #4743).
3314 + Revert fix for #4484 (only compress images on last run, #4755).
3315 This will mean some increase in the time it takes to
3316 produce an image-heavy PDF with xelatex, but it will
3317 make tables of contents correct, which is more important.
3318 + Fix logic error in `runTeXProgram`. We were running the tex program
3319 one more time than requested. This should speed up PDF production.
3321 * Allow `--template` to take a URL as argument.
3323 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
3324 highlighting style (#4687, Adrian Sieber, API change).
3326 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
3327 installer the recommended method, and note that on some older versions of
3328 macOS, homebrew installs from source and takes a lot of disk space
3333 + Clarify EPUB linked media (#4756, Mauro Bieg)
3334 + Update manual for "true" YAML values. Now that we're using HsYAML and
3335 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
3336 `y`, `yes`, `on` no longer count as true values.
3337 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
3338 + Update manual on how math is rendered in LaTeX.
3339 + Add proxy description (#4131, Mauro Bieg).
3340 + Clarify that `--toc` requires `--standalone` (#4703).
3341 + Update citation styles link (#4699, wiefling).
3343 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
3344 (kaizshang91). Note that it will not take effect when readers/writers
3345 are called as libraries (#4674).
3347 * Improved translations/fr (#4766, lux-lth).
3349 * Removed inadvertently added `.orig` files from repository (#4648).
3351 * Remove `network-uri` flag and use 'Network.Socket'.
3352 This removes a compiler warning. There is no need for the old
3353 `network-uri` flag, since network 2.6 was released in 2014.
3355 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
3357 * Bump upper bounds for dependent packages.
3359 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
3360 confused because of the way ghc 7.10 is excluded in foundation's
3361 cabal file. This can be removed when haskell-foundation/foundation#500
3364 * Require cabal-version >= 2.0. This is needed for haddock-library.
3369## pandoc 2.2.1 (2018-05-10)
3371 * Restored and undeprecated gladtex for HTML math (#4607).
3373 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
3374 [API change, reverts removal in v2.2]
3375 + Restored and undeprecated `--gladtex` option, removed in v2.2.
3377 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
3379 * Org reader: Fix image filename recognition (Albert Krewinkel).
3380 Use a function from the filepath library to check whether a string is a
3381 valid file name. The custom validity checker that was used before gave
3382 wrong results (e.g. for absolute file paths on Windows,
3383 kawabata/ox-pandoc#52).
3385 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
3389 + Strip links from headers when creating TOC (#4340).
3390 Otherwise the TOC entries will not link to the sections.
3391 + Fix regression with tex math environments in HTML + MathJax (#4639).
3393 * Muse writer (Alexander Krotov): Add support for left-align and
3394 right-align classes (#4542).
3396 * Docx writer: Support underline (#4633).
3398 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
3399 `singleQuoteStart` and `doubleQuoteStart` (#4637).
3401 * `test-pandoc-utils.lua`: more robust testing on both windows
3402 and \*nix. Previously the pipe tests were only run if
3403 `\bin/false` and `/bin/sed` were present, which they aren't
3404 in default MacOS and Windows systems. Fixed by using `tr`
3405 and `false`, which should always be in the path on a \*nix
3406 system, and `find` and `echo` for Windows.
3408 * Text.Pandoc.Shared: add `uriPathToPath`.
3409 This adjusts the path from a file: URI in a way that is sensitive
3410 to Windows/Linux differences. Thus, on Windows,
3411 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
3412 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
3414 * Use `uriPathToPath` with file: URIs (#4613).
3416 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
3419 * Text.Pandoc.Class: Catch IO errors when writing media files
3420 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
3422 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
3424 * MANUAL (Mauro Bieg):
3426 + Clarify truthiness in template variables (#2281).
3427 + Clarify pipe table width calculation (#4520).
3429 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
3430 CMU Serif gives better typographic results than the previous
3431 Greek fallback DejaVu Serif.
3433 * Make HTML template polyglot (#4606, OvidiusCicero), by making
3434 `<link rel="stylesheet" href="$css$">` self-closing.
3436 * Use texmath 0.11, allowing better translation of non-ASCII
3437 characters in math (#4642).
3440## pandoc 2.2 (2018-04-27)
3442 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
3444 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
3445 and for `ms` and `man`.
3447 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
3448 `--asciimathml` options.
3450 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
3451 Krotov, API change).
3455 + Allow empty key-value attributes, like `title=""` (#2944).
3456 + Handle table w/o following blank line in fenced div (#4560).
3457 + Remove "fallback" for `doubleQuote` parser. Previously the
3458 parser tried to be efficient -- if no end double quote was found,
3459 it would just return the contents. But this could backfire in a
3460 case `**this should "be bold**`, since the fallback would return
3461 the content `"be bold**` and the closing boldface delimiter
3462 would never be encountered.
3463 + Improve computation of the relative width of the last column in a
3464 multiline table, so we can round-trip tables without constantly
3465 shrinking the last column.
3469 + Fix images with space in file path (#4344).
3473 + Properly resolve section numbers with `\ref` and chapters (#4529).
3474 + Parse sloppypar environment (#4517, Marc Schreiber).
3475 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
3476 Previously there were some bugs in how macros were handled.
3477 + Support `\MakeUppercase`, `\MakeLowercase`, `\uppercase`,
3478 `\lowercase`, and also `\MakeTextUppercase` and
3479 `\MakeTextLowercase` from textcase (#4959).
3483 + Fixed tables with no body rows (#4513).
3484 Previously these raised an exception.
3488 + Improve table parsing (#4508). This fixes detection of table
3489 attributes and also handles `!` characters in cells.
3493 + Properly handle title in `section` element (#4526).
3494 Previously we just got `section_title` for `section` (though `sect1`,
3495 `sect2`, etc. were handled properly).
3496 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
3500 + Combine adjacent CodeBlocks with the same attributes into
3501 a single CodeBlock. This prevents a multiline codeblock in
3502 Word from being read as different paragraphs.
3506 + Allow < 3 spaces indent under directives (#4579).
3507 + Fix anonymous redirects with backticks (#4598).
3509 * Muse reader (Alexander Krotov):
3511 + Add support for Text::Amuse multiline headings.
3512 + Add `<math>` tag support.
3513 + Add support for `<biblio>` and `<play>` tags.
3514 + Allow links to have empty descriptions.
3515 + Require block `<literal>` tags to be on separate lines.
3516 + Allow `-` in anchors.
3517 + Allow verse to be indented.
3518 + Allow nested footnotes.
3519 + Internal improvements.
3521 * Muse writer (Alexander Krotov):
3523 + Escape `>` only at the beginning of a line.
3524 + Escape `]` in image title.
3525 + Escape `]` brackets in URLs as `%5D`.
3526 + Only escape brackets when necessary.
3527 + Escape ordered list markers.
3528 + Do not escape list markers unless preceded by space.
3529 + Escape strings starting with space.
3530 + Escape semicolons and markers after line break.
3531 + Escape `;` to avoid accidental comments.
3532 + Don't break headers, line blocks and tables with line breaks.
3533 + Correctly output empty headings.
3534 + Escape horizontal rule only if at the beginning of the line.
3535 + Escape definition list terms starting with list markers.
3536 + Place header IDs before header.
3537 + Improve span writing.
3538 + Do not join Spans in normalization.
3539 + Don't align ordered list items.
3540 + Remove key-value pairs from attributes before normalization.
3541 + Enable `--wrap=preserve` for all tests by default.
3542 + Reduced `<verbatim>` tags in output.
3547 + Use more consistent indentation (#4563). Previously we
3548 used an odd mix of 3- and 4-space indentation. Now we use 3-space
3549 indentation, except for ordered lists, where indentation must
3550 depend on the width of the list marker.
3551 + Flatten nested inlines (#4368, Francesco Occhipinti).
3552 Nested inlines are not valid RST syntax, so we flatten them following
3553 some readability criteria discussed in #4368.
3557 + Ensure that `pagetitle` is always set, even when structured titles
3558 are used. This prevents spurious warnings about empty title
3561 * FB2 writer (Alexander Krotov):
3563 + Output links inline instead of producing notes. Previously all links
3564 were turned into footnotes with unclickable URLs inside.
3565 + Allow emphasis and notes in titles.
3566 + Don't intersperse paragraph with empty lines.
3567 + Convert metadata value `abstract` to book annotation.
3568 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
3569 FB2 does not have a way to represent line breaks inside paragraphs;
3570 previously we used `<empty-line />` elements, but these are not allowed
3573 * Powerpoint writer (Jesse Rosenthal):
3575 + Handle Quoted Inlines (#4532).
3576 + Simplify code with `ParseXml`.
3577 + Allow fallback options when looking for placeholder type.
3578 + Check reference-doc for all layouts.
3579 + Simplify speaker notes logic.
3580 + Change notes state to a simpler per-slide value.
3581 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
3582 means no speaker notes.
3583 + Add tests for improved speaker notes.
3584 + Handle speaker notes earlier in the conversion process.
3585 + Keep notes with related blocks (#4477). Some blocks automatically
3586 split slides (imgs, tables, `column` divs). We assume that any
3587 speaker notes immediately following these are connected to these
3588 elements, and keep them with the related blocks, splitting after them.
3589 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
3590 It contained a nonfree ICC color calibration profile and is not needed
3591 for production of a powerpoint document.
3595 + Include a blank line at the end of the row in a single-row multiline
3596 table, to prevent it from being interpreted as a simple table (#4578).
3598 * CommonMark writer:
3600 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
3601 enabled (#4527, quasicomputational).
3605 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
3609 + In beamer, don't use format specifier for default ordered lists
3610 (#4556). This gives better results for styles that put ordered list
3611 markers in boxes or circles.
3612 + Update `\lstinline` delimiters (#4369, Tim Parenti).
3616 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
3617 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
3618 since the header font is automatically bold (#4552).
3619 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
3620 + Create pdf anchor for a Div with an identifier (#4515).
3621 + Escape `/` character in anchor ids (#4515).
3622 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
3627 + Don't escape U+2019 as `'` (#4550).
3629 * Text.Pandoc.Options:
3631 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
3632 `Text.Pandoc.Options.HTMLMathMethod` [API change].
3634 * Text.Pandoc.Class:
3636 + `writeMedia`: unescape URI-escaping in file path. This avoids
3637 writing things like `file%20one.png` to the file system.
3639 * Text.Pandoc.Parsing:
3641 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
3643 + `uri`: don't treat `*` characters at end as part of URI (#4561).
3647 + Use the alias `application/eps` for EPS (#2067).
3648 This will ensure that we retain the eps extension after reading the
3649 image into a mediabag and writing it again.
3653 + Use `withTempDir` in `html2pdf`.
3654 + With `xelatex`, don't compress images til the last run (#4484).
3655 This saves time for image-heavy documents.
3656 + Don't try to convert EPS files (#2067). `pdflatex` converts them
3657 itself, and JuicyPixels can't do it.
3658 + For `pdflatex`, use a temp directory in the working directory.
3659 Otherwise we can have problems with the EPS conversion pdflatex
3660 tries to do, which can't operate on a file above the working
3661 directory without `--shell-escape`.
3663 * Changes to tests to accommodate changes in pandoc-types.
3664 In <https://github.com/jgm/pandoc-types/pull/36> we changed
3665 the table builder to pad cells. This commit changes tests
3666 (and two readers) to accord with this behavior.
3668 * Set default extensions for `beamer` same as `latex`.
3672 + Add `beameroption` variable (#4359, Étienne Bersac).
3673 + Use `pgfpages` package; this is needed for notes on second
3674 screen in beamer (Étienne Bersac).
3675 + Add `background-image` variable (#4601, John Muccigrosso).
3677 * reveal.js template: Add `background-image` variable (#4600,
3680 * ms template: Fix date. Previously `.ND` was used, but this only
3681 works if you have a title page, which we don't. Thanks to @teoric.
3683 * Removed pragmas for unused extensions (#4506, Anabra).
3685 * Fix bash completion for `--print-default-data-file` (#4549).
3686 Previously this looked in the filesystem, even if pandoc
3687 was compiled with `embed_data_files` (and sometimes it looked
3688 in a nonexistent build directory). Now the bash completion
3689 script just includes a hard-coded list of data file names.
3693 + Clarify template vs metadata variables (#4501, Mauro Bieg).
3694 + Fix raw content example (#4479, Mauro Bieg).
3695 + Specify that you use html for raw output in epub.
3696 + Add examples for raw docx blocks (#4472, Tristan Stenner).
3697 The documentation states that the target format name should match
3698 the output format, which isn't the case for `docx`/`openxml` and
3700 + Don't say that `empty_paragraphs` affects markdown output (#4540).
3701 + Consolidate input/output format documentation (#4577, Mauro Bieg).
3703 * New README template. Take in/out formats from manual.
3705 * Fix example in lua-filters docs (#4459, HeirOfNorton).
3707 * Use the `-threaded` GHC flag when building benchmarks (#4587,
3708 Francesco Occhipinti).
3710 * Bump temporary upper bound to 1.4.
3712 * Use pandoc-citeproc 0.14.3.1.
3714 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
3716 * Removed old lib directory. This was used for something long ago,
3717 but plays no role now.
3719 * Removed unneeded data file `LaTeXMathML.js`.
3721 * Create 64- and 32-bit versions of Windows binary packages.
3723## pandoc 2.1.3 (2018-03-18)
3725 * Docx reader (Jesse Rosenthal):
3727 + Add tests for nested smart tags.
3728 + Parse nested smart tags.
3729 + Make unwrapSDT into a general `unwrap` function that can unwrap both
3730 nested SDT tags and smartTags. This makes the SmartTags constructor in
3731 the Docx type unnecessary, so we remove it (#4446).
3732 + Remove unused `docxWarnings` (Alexander Krotov).
3734 * RST reader: Allow unicode bullet characters (#4454).
3736 * Haddock reader: Better table handling, using haddock-library's
3737 new table support, if compiled against a version that
3738 includes it. Note that tables with col/rowspans will not
3739 translate well into Pandoc.
3741 * Muse reader (Alexander Krotov):
3743 + Various internal improvements.
3744 + Require closing tag to have the same indentation as opening.
3745 + Do not reparse blocks inside unclosed block tag (#4425).
3746 + Parse `<class>` tag (supported by Emacs Muse).
3747 + Do not produce empty Str element for unindented verse lines.
3751 + Add support to parse unit string of `\SI` command (closes #4296,
3754 * Haddock writer: In the writer, we now render tables always as
3755 grid tables, since Haddock supports these.
3757 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
3759 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
3760 docx writer. We want decimal for the top level, not lower roman.
3764 + Strip whitespace at beginning and ending of inline containers
3765 (#4327, Francesco Occhipinti).
3766 + Filter out empty inline containers (#4434). There is nothing in
3767 RST that corresponds to e.g. `Emph []`, so we just ignore elements
3768 like this (Francesco Occhipinti).
3770 * Muse writer (Alexander Krotov):
3772 + Support spans with anchors.
3773 + Replace smallcaps with emphasis before normalization.
3774 + Output smallcaps as emphasis.
3775 + Expand Cite before list normalization.
3776 + Write empty inline lists as `<verbatim></verbatim>`.
3777 + Remove empty Str from the beginning of inline lists during normalization.
3778 + Escape "-" to avoid creating bullet lists.
3779 + Fix math expansion for more than one expression per paragraph.
3780 + Expand math before inline list normalization.
3782 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
3786 + Asciify pdf anchors, since unicode anchors don't work (#4436).
3787 Internal links should be converted automatically, so this shouldn't
3788 affect users directly.
3789 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
3791 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
3792 (#4307). If it's in the title, then we get a titlebar on slides with
3793 the `plain` attribute, when the id is non-null. This fixes a regression
3796 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
3798 * JATS writer: Remove extraneous, significant whitespace (#4335,
3801 * html2pdf: inject base tag with current working directory (#4413, Mauro
3802 Bieg). This helps ensure that linked resources are included.
3804 * Add Semigroup instances for everything for which we defined a
3805 Monoid instance previously (API change):
3807 + Text.Pandoc.Class.FileTree.
3808 + Text.Pandoc.Translations.Translations.
3809 + Text.Pandoc.Extensions.Extensions.
3810 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
3811 + Text.Pandoc.Pretty.Doc.
3812 + Text.Pandoc.MediaBag.MediaBag.
3814 * Add custom Prelude to give clean code for Monoid and Semigroup
3815 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
3816 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
3817 in all source files, and Prelude is explicitly imported
3818 (this is necessary for ghci to work properly with the custom prelude).
3820 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
3822 + Export `stripLeadingTrailingSpace`.
3823 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
3824 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
3825 expand cells, even if it results in cells that don't respect relative
3826 widths or surpass page column width. This change affects RST,
3827 Markdown, and Haddock writers.
3829 * Raise error if someone tries to print docx, odt, etc. template (#4441).
3831 * LaTeX template: Provide `bidi` package's option using
3832 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
3833 clash when `polyglossia` loads it first and then it is loaded again
3836 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
3837 Menke). Instructions on how to install the ICC profiles on ConTeXt
3838 standalone can be found in the wiki:
3839 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
3840 If the ICC profiles are not available the log will contain error
3843 * Use latest pandoc-types, skylighting
3845 * Use latest pandoc-citeproc in binary package.
3847 * Bump upper bound for time, criterion, haddock-library, exceptions,
3848 http-types, aeson, haddock-library.
3850 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
3852 * pandoc.cabal: fix up other-extensions and language fields.
3853 Language is now consistently `Haskell2010`, and other-extensions
3854 is consistently `NoImplicitPrelude`. Everything else to be specified
3855 in the module header as needed.
3857 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
3858 This is no longer necessary since we no longer support ghc 7.8.
3860 * Make `weigh-pandoc` into a benchmark program.
3861 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
3862 automatically when you build (and run) benchmarks.
3864 * MANUAL: add instructions for background images reveal.js (#4325, John
3867 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
3869## pandoc 2.1.2 (2018-03-02)
3873 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
3874 "nonindent spaces" before the opening and closing `:::`, but this
3875 interfered with list parsing, so now we require the fences to be flush with
3876 the margin of the containing block.
3878 * Commonmark reader:
3880 + `raw_html` is now on by default. It can be disabled explicitly
3881 using `-f commonmark-raw_html`.
3883 * Org reader (Albert Krewinkel):
3885 + Move citation tests to separate module.
3886 + Allow changing emphasis syntax (#4378). The characters allowed before
3887 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
3888 `#+pandoc-emphasis-post`, respectively. This allows to change which
3889 strings are recognized as emphasized text on a per-document or even
3890 per-paragraph basis. Example:
3892 #+pandoc-emphasis-pre: "-\t ('\"{"
3893 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
3897 + Fixed comments inside citations (#4374).
3898 + Fix regression in package options including underscore (#4424).
3899 + Make `--trace` work.
3900 + Fixed parsing of `tabular*` environment (#4279).
3904 + Fix regression in parsing of headers with trailing space (#4280).
3906 * Muse reader (Alexander Krotov):
3908 + Enable `<literal>` tags even if amuse extension is enabled.
3909 Amusewiki disables <literal> tags for security reasons.
3910 If user wants similar behavior in pandoc, RawBlocks and RawInlines
3911 can be removed or replaced with filters.
3912 + Remove space prefix from `<literal>` tag contents.
3913 + Do not consume whitespace while looking for closing end tag.
3914 + Convert alphabetical list markers to decimal in round-trip test.
3915 Alphabetical lists are an addition of Text::Amuse.
3916 They are not present in Emacs Muse and can be ambiguous
3917 when list starts with "i.", "c." etc.
3918 + Allow `<quote>` and other tags to be indented.
3919 + Allow single colon in definition list term.
3920 + Fix parsing of verse in lists.
3921 + Improved parsing efficiency. Avoid `parseFromString`.
3922 Lists are parsed in linear instead of exponential time now.
3923 + Replace ParserState with MuseState.
3924 + Prioritize lists with roman numerals over alphabetical lists.
3925 This is to make sure "i." starts a roman numbered list,
3926 instead of a list with letter "i" (followed by "j", "k", ...").
3927 + Fix directive parsing.
3928 + Parse definition lists with multiple descriptions.
3929 + Parse next list item before parsing more item contents.
3930 + Fixed a bug: headers did not terminate lists.
3931 + Move indentation parsing from `definitionListItem` to `definitionList`.
3932 + Paragraph indentation does not indicate nested quote.
3933 Muse allows indentation to indicate quotation or alignment,
3934 but only on the top level, not within a <quote> or list.
3935 + Require that block tags are on separate lines.
3936 Text::Amuse already explicitly requires it anyway.
3937 + Fix matching of closing inline tags.
3938 + Various internal changes.
3939 + Fix parsing of nested definition lists.
3940 + Require only one space for nested definition list indentation.
3941 + Do not remove trailing whitespace from `<code>`.
3942 + Fix parsing of trailing whitespace. Newline after whitespace now
3943 results in softbreak instead of space.
3945 * Docx reader (Jesse Rosenthal, except where noted):
3947 + Handle nested sdt tags (#4415).
3948 + Don't look up dependant run styles if `+styles` is enabled.
3949 + Move pandoc inline styling inside custom-style span.
3950 + Read custom styles (#1843). This will read all paragraph and
3951 character classes as divs and spans, respectively. Dependent styles
3952 will still be resolved, but will be wrapped with appropriate style
3953 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
3954 This can be used in conjunction with the `custom-style` feature in the
3955 docx writer for a pandoc-docx editing workflow. Users can convert from
3956 an input docx, reading the custom-styles, and then use that same input
3957 docx file as a reference-doc for producing an output docx file. Styles
3958 will be maintained across the conversion, even if pandoc doesn't
3960 + Small change to Fields hyperlink parser. Previously, unquoted string
3961 required a space at the end of the line (and consumed it). Now we
3962 either take a space (and don't consume it), or end of input.
3963 + Pick table width from the longest row or header (Francesco Occhipinti,
3966 * Muse writer (Alexander Krotov):
3968 + Change verse markup: `> ` instead of `<verse>` tag.
3969 + Remove empty strings during inline normalization.
3970 + Don't indent nested definition lists.
3971 + Use unicode quotes for quoted text.
3972 + Write image width specified in percent in Text::Amuse mode.
3973 + Don't wrap displayMath into `<verse>`.
3974 + Escape nonbreaking space (`~~`).
3975 + Join code with different attributes during normalization.
3976 + Indent lists inside Div.
3977 + Support definitions with multiple descriptions.
3979 * Powerpoint writer (Jesse Rosenthal):
3981 + Use table styles This will use the default table style in the
3982 reference-doc file. As a result they will be easier when using
3983 in a template, and match the color scheme.
3984 + Remove empty slides. Because of the way that slides were split, these
3985 could be accidentally produced by comments after images. When animations
3986 are added, there will be a way to add an empty slide with either
3987 incremental lists or pauses.
3988 + Implement syntax highlighting. Note that background colors can't
3989 be implemented in PowerPoint, so highlighting styles that require
3990 these will be incomplete.
3991 + New test framework for pptx. We now compare the output of the
3992 Powerpoint writer with files that we know to (a) not be corrupt,
3993 and (b) to show the desired output behavior (details below).
3994 + Add `notesMaster` to `presentation.xml` if necessary.
3995 + Ignore links and (end)notes in speaker notes.
3996 + Output speaker notes.
3997 + Read speaker note templates conditionally. If there are speaker
3998 notes in the presentation, we read in the notesMasters templates
3999 from the reference pptx file.
4000 + Fix deletion track changes (#4303, Jesse Rosenthal).
4002 * Markdown writer: properly escape @ to avoid capture as citation
4007 + Put hypertarget inside figure environment (#4388).
4008 This works around a problem with the endfloat package and
4009 makes pandoc's output compatible with it.
4010 + Fix image height with percentage (#4389). This previously caused
4011 the image to be resized to a percentage of textwidth, rather than
4014 * ConTeXt writer (Henri Menke):
4016 + New section syntax and support `--section-divs` (#2609).
4017 `\section[my-header]{My Header}` ->
4018 `\section[title={My Header},reference={my-header}]`.
4019 The ConTeXt writer now supports the `--section-divs` option to
4020 write sections in the fenced style, with `\startsection` and
4022 + xtables: correct wrong usage of caption (Henri Menke).
4026 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
4027 + Use new golden framework (Jesse Rosenthal).
4028 + Make more deterministic to facilitate testing (Jesse Rosenthal).
4029 - `getUniqueId` now calls to the state to get an incremented digit,
4030 instead of calling to P.uniqueHash.
4031 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
4032 seed (1848), so our randoms should be the same each time.
4033 + Fix ids in comment writing (Jesse Rosenthal). Comments from
4034 `--track-changes=all` were producing corrupt docx, because the
4035 writer was trying to get id from the `(ID,_,_)` field of
4036 the attributes, and ignoring the "id" entry in the key-value pairs. We
4039 * Ms writer: Added papersize variable.
4043 + Use `height` instead of `depth` for images (#4331).
4044 + Ensure that id prefix is always used.
4045 + Don't emit `role` attribute; that was a leftover from the
4047 + Use 'xml:id', not 'id' attribute (#4371).
4051 + Do not output implicit heading IDs (#4363, Alexander
4052 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
4056 + Remove `blockToRST'` moving its logic into `fixBlocks`
4057 (Francesco Occhipinti).
4058 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
4060 * RST template: remove definition of 'math' role as raw.
4061 This used to be needed prior to v 0.8 of docutils, but
4062 now math support is built-in.
4064 * Slides: Use divs to set incremental/non-incremental (#4381,
4065 Jesse Rosenthal). The old method (list inside blockquote) still
4066 works, but we are encouraging the use of divs with class
4067 `incremental` or `nonincremental`.
4069 * Text.Pandoc.ImageSize:
4071 + Make image size detection for PDFs more robust (#4322).
4072 + Determine image size for PDFs (#4322).
4073 + EMF Image size support (#4375, Andrew Pritchard).
4075 * Text.Pandoc.Extensions:
4077 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
4078 the docx reader (defaulting to off) to read pargraph and character
4079 styles not understood by pandoc (as divs and spans, respectively).
4080 + Made `Ext_raw_html` default for `commonmark` format.
4082 * Text.Pandoc.Parsing:
4084 + Export `manyUntil` (Alexander Krotov, API change).
4085 + Export improved `sepBy1` (Alexander Krotov).
4086 + Export list marker parsers: `upperRoman`, `lowerRoman`,
4087 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
4089 * Tests/Lua: fix tests on windows (Albert Krewinkel).
4091 * Lua: register script name in global variable (#4393). The name of the Lua
4092 script which is executed is made available in the global Lua variable
4093 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
4095 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
4096 There is very little pptx-specific in these tests, so we abstract out
4097 the basic testing function so it can be used for docx as well. This
4098 should allow us to catch some errors in the docx writer that slipped
4099 by the roundtrip testing.
4101 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
4102 functions used to construct AST element values are stored in the Lua
4103 registry for quicker access. Getting a value from the registry is much
4104 faster than getting a global value (partly to idiosyncrasies of hslua);
4105 this change results in a considerable performance boost.
4109 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
4110 + `doc/lua-filters.md`: document global vars set for filters
4112 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
4113 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
4114 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
4115 Rosenthal). Blockquoted lists are still described, but fenced divs are
4116 presented in preference.
4117 + MANUAL.txt: document header and footer variables (newmana).
4118 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
4119 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
4121 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
4123 * Use latest texmath.
4125 * Use latest pandoc-citeproc.
4127 * Allow exceptions 0.9.
4129 * Require aeson-pretty 0.8.5 (#4394).
4131 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
4133 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
4135 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
4137 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
4140## pandoc 2.1.1 (2018-01-18)
4144 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
4145 blank line. See lierdakil/pandoc-crossref#160.
4146 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
4147 The change both improves performance and fixes a regression whereby
4148 normal citations inside inline notes and figure captions were not
4153 + Better handling for headers with an anchor (#4240). Instead of creating a
4154 Div containing the header, we put the id directly on the header.
4155 This way header promotion will work properly.
4156 + Add aligned environment when needed in math (#4254). `rst2latex.py`
4157 uses an `align*` environment for math in `.. math::` blocks, so this
4158 math may contain line breaks. If it does, we put the math in an
4159 `aligned` environment to simulate `rst2latex.py`'s behavior.
4163 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
4167 + Advance source position at end of stream.
4168 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
4169 extension is set (#4246). This reverts to earlier behavior and is
4170 probably safer on the whole, since some macros only modify things in
4171 included packages, which pandoc's macro expansion can't modify.
4172 + Fixed pos calculation in tokenizing escaped space.
4173 + Allow macro definitions inside macros (#4253). Previously we went into
4174 an infinite loop with
4176 \newcommand{\noop}[1]{#1}
4177 \noop{\newcommand{\foo}[1]{#1}}
4180 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
4181 widths for the body were different from widths for the header in some
4184 * Docx reader (Jesse Rosenthal):
4186 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
4187 hyperlink found in older versions of word. The changes introduced for
4188 this, though, create a framework for parsing further fields in MS Word
4189 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
4190 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
4191 contains a simple parsec parser. At the moment, only simple hyperlink
4192 fields are accepted, but that can be extended in the future.
4194 * Muse reader (Alexander Krotov):
4196 + Parse `~~` as non-breaking space in Text::Amuse mode.
4197 + Refactor list parsing.
4199 * Powerpoint writer (Jesse Rosenthal):
4201 + Change reference to `notesSlide` to `endNotesSlide`.
4202 + Move image sizing into `picProps`.
4203 + Improve table placement.
4204 + Make our own `_rels/.rels` file.
4205 + Import reference-doc images properly.
4206 + Move `Presentation.hs` out of `PandocMonad`.
4207 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
4208 defines the Presentation datatype and goes Pandoc->Presentation;
4209 T.P.W.Pandoc.Output goes Presentation->Archive.
4210 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
4211 + Avoid overlapping blocks in column output.
4212 + Position images correctly in two-column layout.
4213 + Make content shape retrieval environment-aware.
4214 + Improve image handling. We now determine image and caption placement
4215 by getting the dimensions of the content box in a given layout.
4216 This allows for images to be correctly sized and positioned in a
4217 different template. Note that images without captions and headers are
4218 no longer full-screened. We can't do this dependably in different
4219 layouts, because we don't know where the header is (it could be to
4220 the side of the content, for example).
4221 + Read presentation size from reference file. Our presentation size is
4222 now dependent on the reference/template file we use.
4223 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
4224 subheaders will be printed in bold and given a bit of extra space
4225 before them. Note that at the moment, no distinction is made between
4226 levels of headers above the slide header, though that can be changed.
4227 + Check for required files. Since we now import from reference/dist
4228 file by glob, we need to make sure that we're getting the files we
4229 need to make a non-corrupt Powerpoint. This performs that check.
4230 + Improve templating using `--reference-doc`. Templating should work
4231 much more reliably now.
4232 + Include Notes slide in TOC.
4233 + Set notes slide header to slide-level.
4234 + Add table of contents. This is triggered by the `--toc` flag. Note
4235 that in a long slide deck this risks overrunning the text box. The user
4236 can address this by setting `--toc-depth=1`.
4237 + Set notes slide number correctly.
4238 + Clean up adding metadata slide. We want to count the slide numbers
4239 correctly if it's in there.
4240 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
4241 an anchor link. In powerpoint these are links to slides, so we keep
4242 track of a map relating anchors to the slides they occur on.
4243 + Make the slide number available to the blocks. For anchors,
4244 block-processing functions need to know what slide number
4245 they're in. We make the `envCurSlideId` available to blocks.
4246 + Move `curSlideId` to environment.
4247 + Allow setting `toc-title` in metadata.
4248 + Link notes to endnotes slide.
4252 + Fix cell width calculation (#4265). Previously we could get
4253 ever-lengthening cell widths when a table was run repeatedly through
4254 `pandoc -f markdown -t markdown`.
4258 + Escape `&` in lstinline (Robert Schütz).
4262 + Use xtables instead of Tables (#4223, Henri Menke).
4263 Default to xtables for context output. Natural Tables are used
4264 if the new `ntb` extension is set.
4268 + Fixed footnote backlinks with `--id-prefix` (#4235).
4270 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
4273 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
4274 (Jesse Rosenthal, API change).
4276 * Lua filters (Albert Krewinkel):
4278 + Make `PANDOC_READER_OPTIONS` available.
4279 The options which were used to read the document are made available to
4280 Lua filters via the `PANDOC_READER_OPTIONS` global.
4281 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
4282 on a Pandoc document.
4283 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
4284 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
4285 + Improve error messages. Provide more context about the task
4286 which caused an error.
4288 * data/pandoc.lua (Albert Krewinkel):
4290 + Accept singleton inline as a list. Every constructor which accepts a
4291 list of inlines now also accepts a single inline element for
4293 + Accept single block as singleton list. Every constructor which accepts
4294 a list of blocks now also accepts a single block element for
4295 convenience. Furthermore, strings are accepted as shorthand for
4296 `{pandoc.Str "text"}` in constructors.
4297 + Add attr, listAttributes accessors. Elements with
4298 attributes got an additional `attr` accessor. Attributes were
4299 accessible only via the `identifier`, `classes`, and `attributes`,
4300 which was in conflict with the documentation, which indirectly states
4301 that such elements have the an `attr` property.
4302 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
4303 module is closely tied to the pandoc version, which is available via
4305 + Fix access to Attr components. Accessing an Attr value (e.g.,
4306 ` Attr().classes`) was broken; the more common case of accessing it via
4307 an Inline or Block element was unaffected by this.
4309 * Move `metaValueToInlines` to from Docx writer to
4310 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
4315 + Clarify otherlangs in LaTeX (#4072).
4316 + Clarify `latex_macros` extension.
4317 + Recommend use of `raw_attribute` extension in header includes (#4253).
4319 * Allow latest QuickCheck, tasty, criterion.
4321 * Remove custom prelude and ghc 7.8 support.
4323 * Reduce compiler noise (exact paths for compiled modules).
4325## pandoc 2.1 (2018-01-07)
4327 * Allow filters and lua filters to be interspersed (#4196). Previously
4328 we ran all lua filters before JSON filters. Now we run filters in
4329 the order they are presented on the command line, whether lua or JSON.
4330 There are two incompatible API changes: The type of `applyFilters`
4331 has changed, and `applyLuaFilters` has been removed. `Filter` is
4334 * Use latest skylighting and omit the `missingIncludes` check, fixing
4335 a major performance regression in earlier releases of the 2.x series
4336 (#4226). Behavior change: If you use a custom syntax definition that
4337 refers to a syntax you haven't loaded, pandoc will now complain when
4338 it is highlighting the text, rather than doing a check at the start.
4339 This change dramatically speeds up invocations of pandoc on short
4342 * Text.Pandoc.Class: make `FileTree` opaque (don't export
4343 `FileTree` constructor). This forces users to interact with it using
4344 `insertInFileTree` and `getFileInfo`, which normalize file names.
4348 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
4349 direct, avoiding `parseFromString`. And it performs significantly
4350 better; unfortunately, parsing time still increases exponentially
4352 + Avoid parsing raw tex unless `\` + letter seen. This seems to
4353 help with the performance problem, #4216.
4355 * LaTeX reader: Simplified a check for raw tex command.
4357 * Muse reader (Alexander Krotov):
4359 + Enable round trip test (#4107).
4360 + Automatically translate `#cover` into `#cover-image`.
4361 Amusewiki uses #cover directive to specify cover image.
4363 * Docx reader (Jesse Rosenthal):
4365 + Allow for insertion/deletion of paragraphs (#3927).
4366 If the paragraph has a deleted or inserted paragraph break (depending
4367 on the track-changes setting) we hold onto it until the next
4368 paragraph. This takes care of accept and reject. For this we introduce
4369 a new state which holds the ils from the previous para if necessary.
4370 For `--track-changes=all`, we add an empty span with class
4371 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
4372 prior to the break to be inserted or deleted.
4373 + Remove unused anchors (#3679). Docx produces a lot of anchors with
4374 nothing pointing to them---we now remove these to produce cleaner
4375 output. Note that this has to occur at the end of the process
4376 because it has to follow link/anchor rewriting.
4377 + Read multiple children of `w:sdtContents`.
4378 + Combine adjacent anchors. There isn't any reason to have numerous
4379 anchors in the same place, since we can't maintain docx's
4380 non-nesting overlapping. So we reduce to a single anchor.
4383 * Muse writer (Alexander Krotov): don't escape URIs from AST
4387 + Removed redundant subtitle in title (Sebastian Talmon).
4388 + `firstRow` table definition compatibility for Word 2016 (Sebastian
4389 Talmon). Word 2016 seems to use a default value of "1" for table
4390 headers, if there is no firstRow definition (although a default
4391 value of 0 is documented), so all tables get the first Row formatted
4392 as header. Setting the parameter to 0 if the table has no header
4393 row fixes this for Word 2016
4394 + Fix custom styles with spaces in the name (#3290).
4396 * Powerpoint writer (Jesse Rosenthal):
4398 + Ignore Notes div for parity with other slide outputs.
4399 + Set default slidelevel correctly. We had previously defaulted to
4400 slideLevel 2. Now we use the correct behavior of defaulting to the
4401 highest level header followed by content. We change an expected test
4402 result to match this behavior.
4403 + Split blocks correctly for linked images.
4404 + Combine adjacent runs.
4405 + Make inline code inherit code size. Previously (a) the code size
4406 wasn't set when we force size, and (b) the properties was set from
4407 the default, instead of inheriting.
4408 + Simplify `replaceNamedChildren` function.
4409 + Allow linked images. The following markdown:
4410 `[](http://www.example.com)`
4411 will now produce a linked image in the resulting PowerPoint file.
4412 + Fix error with empty table cell. We require an empty `<a:p>` tag,
4413 even if the cell contains no paragraphs---otherwise PowerPoint
4414 complains of corruption.
4415 + Implement two-column slides. This uses the columns/column div
4416 format described in the pandoc manual. At the moment, only two
4417 columns (half the screen each) are allowed. Custom widths are not
4421 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
4423 * Lua filters (Albert Krewinkel):
4425 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
4426 + The current pandoc-types version is made available to Lua programs in
4427 the global `PANDOC_API_VERSION`. It contains the version as a list of
4429 + The pandoc version available as a global `PANDOC_VERSION` (a list
4431 + `data/pandoc.lua`: make `Attr` an `AstElement`.
4432 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
4433 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
4434 not set a metatable on the returned value, which made it difficult
4435 to amend objects of these types with new behavior. They are now
4436 subtypes of AstElement, meaning that all their objects can gain
4437 new features when a method is added to the behavior object
4438 (e.g., `pandoc.Pandoc.behavior`).
4439 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
4440 between a type and the behavioral properties of an instance of that
4441 type. The behavior of a type (and all its subtypes) can now be
4442 amended by adding methods to that types `behavior` object, without
4443 exposing the type objects internals. E.g.:
4445 pandoc.Inline.behavior.frob = function () print'42' end
4446 local str = pandoc.Str'hello'
4447 str.frob() -- outputs '42'
4449 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
4450 of a given type (e.g., all inline elements) was difficult, as the
4451 table used to lookup unknown methods would be reset every time a
4452 new element of that type was created, preventing recursive property
4453 lookup. This is was changed in that all methods and attributes of
4454 supertypes are now available to their subtypes.
4455 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
4456 fields were named like the Haskell fields, not like the documented,
4457 shorter version. The names are changed to match the documentation
4458 and Citations are given a shared metatable to enable simple
4460 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
4461 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
4462 difficult to handle failures while getting lists or a Map from Lua.
4463 A bug in pandoc, which made it necessary to always pass a tag when
4464 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
4465 module's constructor functions for these values is now optional
4466 (if still recommended).
4467 + Stop exporting `pushPandocModule` (API change). The introduction
4468 of `runPandocLua` renders direct use of this function obsolete.
4469 + Update generation of module docs for lua filters.
4470 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
4471 MacFarlane). I'm sure this was intended in the first place,
4472 but currently only `Meta` is supported.
4474 * Improve benchmarks.
4476 + Set the default extensions properly.
4477 + Improve benchmark argument parsing. You can now say
4478 `make bench BENCHARGS="markdown latex reader"` and both the
4479 markdown and latex readers will be benchmarked.
4481 * MANUAL.txt simplify and add more structure (Mauro Bieg).
4483 * Generate README.md from template and MANUAL.txt.
4484 `make README.md` will generate the README.md after changes
4485 to MANUAL.txt have been made.
4487 * Update copyright notices to include 2018 (Albert Krewinkel).
4489## pandoc 2.0.6 (2017-12-28)
4491 * Added `jats` as an input format.
4493 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
4494 change) (Hamish Mackenzie).
4495 + Improved citation handling in JATS reader. JATS citations
4496 are now converted to pandoc citations, and JATS ref-lists
4497 are converted into a `references` field in metadata, suitable
4498 for use with pandoc-citeproc. Thus a JATS article with embedded
4499 bibliographic information can be processed with pandoc and
4500 pandoc-citeproc to produce a formatted bibliography.
4502 * Allow `--list-extensions` to take an optional FORMAT argument.
4503 This lists the extensions set by default for the selected FORMAT.
4504 The extensions are now alphabetized, and the `+` or `-`
4505 indicating the default setting comes before, rather than after,
4510 + Preserve original whitespace between blocks.
4511 + Recognize `\placeformula` as context.
4512 + Be pickier about table captions. A caption starts with a `:` which
4513 can't be followed by punctuation. Otherwise we can falsely interpret
4514 the start of a fenced div, or even a table header line like
4515 `:--:|:--:`, as a caption.
4516 + Always use four space rule for example lists. It would be awkward
4517 to indent example list contents to the first non-space character after
4518 the label, since example list labels are often long. Thanks to
4519 Bernhard Fisseni for the suggestion.
4520 + Improve raw tex parsing. Note that the Markdown reader is also
4521 affected by the `latex_macros` extension changes described below
4522 under the LaTeX reader.
4526 + `latex_macros` extension changes (#4179). Don't pass through macro
4527 definitions themselves when `latex_macros` is set. The macros
4528 have already been applied. If `latex_macros` is enabled, then
4529 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
4530 a macro definition, and will update pandoc's internal macro map
4531 accordingly, but the empty string will be returned.
4532 + Export `tokenize`, `untokenize` (API change).
4533 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
4534 + Refactored `inlineCommand`.
4535 + Fix bug in tokenizer. Material following `^^` was
4536 dropped if it wasn't a character escape. This only affected
4537 invalid LaTeX, so we didn't see it in the wild, but it appeared
4538 in a QuickCheck test failure.
4539 + Fix regression in LateX tokenization (#4159). This mainly affects the
4540 Markdown reader when parsing raw LaTeX with escaped spaces.
4541 + Add tests of LaTeX tokenizer.
4542 + Support `\foreignlanguage` from babel.
4543 + Be more tolerant of `&` character (#4208). This allows us to parse
4544 unknown tabular environments as raw LaTeX.
4546 * Muse reader (Alexander Krotov):
4548 + Parse anchors immediately after headings as IDs.
4549 + Require that note references does not start with 0.
4550 + Parse empty comments correctly.
4552 * Org reader (Albert Krewinkel):
4554 + Fix asterisks-related parsing error (#4180).
4555 + Support minlevel option for includes (#4154). The level of headers
4556 in included files can be shifted to a higher level by specifying a
4557 minimum header level via the `:minlevel` parameter. E.g.
4558 `#+include: "tour.org" :minlevel 1` will shift the headers in
4559 tour.org such that the topmost headers become level 1 headers.
4560 + Break-up org reader test file into multiple modules.
4564 + Enable raw HTML and other extensions by default for notes
4565 (#4164). This fixes a regression in 2.0. Note that extensions can
4566 now be individually disabled, e.g. `-f opml-smart-raw_html`.
4570 + Allow empty list items (#4193).
4571 + More accurate parsing of references (#4156). Previously we erroneously
4572 included the enclosing backticks in a reference ID (#4156). This
4573 change also disables interpretation of syntax inside references, as
4574 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
4578 + Continue lists after interruption (#4025, Jesse Rosenthal).
4579 Docx expects that lists will continue where they left off after an
4580 interruption and introduces a new id if a list is starting again. So
4581 we keep track of the state of lists and use them to define a "start"
4582 attribute, if necessary.
4583 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
4584 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
4589 + Don't linkify table of contents.
4593 + Fix anchors for headers (#4188). We were missing an `_`.
4595 * PowerPoint writer (Jesse Rosenthal):
4597 + Treat lists inside BlockQuotes as lists. We don't yet produce
4598 incremental lists in PowerPoint, but we should at least treat lists
4599 inside BlockQuotes as lists, for compatibility with other slide formats.
4600 + Add ability to force size. This replaces the more specific
4601 `blockQuote runProp`, which only affected the size of blockquotes. We
4602 can use this for notes, etc.
4603 + Implement notes. This currently prints all notes on a final slide.
4604 Note that at the moment, there is a danger of text overflowing the
4605 note slide, since there is no logic for adding further slides.
4606 + Implement basic definition list functionality to PowerPoint writer.
4607 + Don't look for default template file for Powerpoint (#4181).
4608 + Add pptx to isTextFormat list. This is used to check standalone
4609 and not writing to the terminal.
4610 + Obey slide level option (Jesse Rosenthal).
4615 + Ensure that `distArchive` is the one that comes with pandoc
4616 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
4617 dir) would be used instead, and this could cause problems because a
4618 user-modified docx sometimes lacks vital sections that we count
4619 on the `distArchive` to supply.
4623 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
4624 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
4625 Alexander Krotov). Otherwise they can be interpreted as footnote
4628 * Muse writer (Alexander Krotov):
4630 + Don't wrap note references to the next line (#4172).
4634 + Use br elements in line blocks instead of relying on CSS
4635 (#4162). HTML-based templates have had the custom CSS for
4636 `div.line-block` removed. Those maintaining custom templates will want
4637 to remove this too. We still enclose line blocks in a div with class
4642 + Use `\renewcommand` for `\textlatin` with babel (#4161).
4643 This avoids a clash with a deprecated `\textlatin` command defined
4645 + Allow fragile=singleslide attribute in beamer slides (#4169).
4646 + Use `\endhead` after `\toprule` in headerless tables (#4207).
4650 + Add cover image specified by `cover-image` meta (Alexander Krotov,
4653 * JATS writer (Hamish Mackenzie):
4655 + Support writing `<fig>` and `<table-wrap>` elements
4656 with `<title>` and `<caption>` inside them by using Divs with class set
4657 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
4658 title is included as a Heading so the constraint on where Heading can
4659 occur is also relaxed.
4660 + Leave out empty alt attributes on links.
4661 + Deduplicate image mime type code.
4662 + Make `<p>` optional in `<td>` and `<th>` (#4178).
4663 + Self closing tags for empty xref (#4187).
4664 + Improve support for code language.
4668 + Use init file to setup Lua interpreter (Albert Krewinkel).
4669 The same init file (`data/init`) that is used to setup the Lua
4670 interpreter for Lua filters is also used to setup the interpreter of
4672 + Define instances for newtype wrapper (Albert Krewinkel). The custom
4673 writer used its own `ToLuaStack` instance definitions, which made
4674 it difficult to share code with Lua filters, as this could result
4675 in conflicting instances. A `Stringify` wrapper is introduced to
4677 + Added tests for custom writer.
4678 + Fixed definition lists and tables in `data/sample.lua`.
4680 * Fixed regression: when target is PDF, writer extensions were being
4681 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
4682 did not work properly.
4684 * Lua modules (Albert Krewinkel):
4686 + Add `pandoc.utils` module, to hold utility functions.
4687 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
4688 define the `pandoc` lua module.
4689 + Make a Haskell module for each Lua module. Move definitions for the
4690 `pandoc.mediabag` modules to a separate Haskell module.
4691 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
4692 + Add function `pandoc.utils.hierarchicalize` (convert list of
4693 Pandoc blocks into (hierarchical) list of Elements).
4694 + Add function `pandoc.utils.normalize_date` (parses a date and
4695 converts it (if possible) to "YYYY-MM-DD" format).
4696 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
4697 of numbers below 4000 into roman numerals).
4698 + Add function `pandoc.utils.stringify` (converts any AST element
4699 to a string with formatting removed).
4700 + `data/init.lua`: load `pandoc.utils` by default
4701 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
4702 utility functions are converted from hybrid lua/haskell functions
4703 into full Haskell functions. This avoids the need for intermediate
4704 `_pipe`/`_read` helper functions, which have dropped.
4705 + pandoc.lua: re-add missing MetaMap function. This was a bug
4706 introduced in version 2.0.4.
4708 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
4709 a pure way to insert an ersatz file into a `FileTree`. In addition, we
4710 normalize paths both on insertion and on lookup.
4712 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
4714 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
4716 * Text.Pandoc.Extensions: Alphabetical order constructors for
4717 `Extension`. This makes them appear in order in `--list-extensions`.
4719 * Allow lenient decoding of latex error logs, which are not always
4720 properly UTF8-encoded (#4200).
4722 * Update latex template to work with recent versions of beamer.
4723 The old template produced numbered sections with some recent
4724 versions of beamer. Thanks to Thomas Hodgson.
4726 * Updated reference.docx (#4175). Instead of just "Hello, world", the
4727 document now contains exemplars of most of the styles that have an
4728 effect on pandoc documents. This makes it easier to see the effect
4731 * Removed `default.theme` data file (#4096). It is no longer needed now
4732 that we have `--print-highlight-style`.
4734 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
4735 We still need this for the alpine static linux build, since
4736 we don't have ghc 8.2.2 for that yet.
4738 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
4739 can put flag settings for pandoc-citeproc there.
4741 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
4742 make releases easier.
4746 + Add note on what formats have `+smart` by default.
4747 + Use native syntax for custom-style (#4174, Mauro Bieg).
4748 + Introduce dedicated Extensions section, since some extensions
4749 affect formats other than markdown (Mauro Bieg, #4204).
4750 + Clarify default html output for `--section-divs` (Richard Edwards).
4752 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
4753 Closes jgm/pandoc-website#16.
4755 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
4757## pandoc 2.0.5 (2017-12-12)
4759 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
4760 generated with `--print-highlight-style` (#4133). Improve JSON
4761 serialization of styles.
4763 * Fix CSS issues involving line numbers (#4128).
4764 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
4765 Highlighting CSS no longer sets a generic color for pre and code; we only
4766 set these for class `sourceCode`.
4768 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
4770 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
4771 It works following the standard Pandoc conventions for making other
4772 sorts of slides. Caveats:
4774 + Syntax highlighting is not yet implemented. (This is difficult
4775 because there are no character classes in Powerpoint.)
4776 + Footnotes and Definition lists are not yet implemented. (Notes will
4777 usually take the form of a final slide.
4778 + Image placement and auto-resizing has a few glitches.
4779 + Reference powerpoint files don't work dependably from the command
4780 line. This will be implemented, but at the moment users are advised
4781 to change themes from within Powerpoint.
4783 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
4784 This is for functions used by both Powerpoint and Docx writers.
4786 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
4788 * Add `empty_paragraphs` extension.
4790 + Deprecate `--strip-empty-paragraphs` option. Instead we now
4791 use an `empty_paragraphs` extension that can be enabled on
4792 the reader or writer. By default, disabled.
4793 + Add `Ext_empty_paragraphs` constructor to `Extension`.
4794 + Revert "Docx reader: don't strip out empty paragraphs."
4795 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
4796 + Implement `empty_paragraphs` extension in docx reader and writer,
4797 opendocument writer, html reader and writer.
4798 + Add tests for `empty_paragraphs` extension.
4802 + Don't parse native div as table caption (#4119).
4803 + Improved computation of column widths in pipe tables.
4804 Pipe tables with lines longer than the text width (as set
4805 by `--columns`) are now scaled to text width, with the relative
4806 widths of columns determined by the ratios between the
4807 header lines. Previously we computed column widths using
4808 the ratio of header line lengths to column width, so that
4809 tables with narrow header lines were extremely thin, which
4810 was very rarely the desired result.
4812 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
4813 as long as it's not followed by a blank line. This has been fixed at the
4816 * Muse reader (Alexander Krotov):
4818 + Add test for `#disable-tables` directive in Emacs mode.
4819 + Don't allow emphasis to be preceded by letter.
4820 + Add underline support in Emacs Muse mode..
4821 + Support multiline directives in Amusewiki mode
4823 * Man writer: omit internal links (#4136). That is, just print the link
4824 text without the URL.
4826 * Markdown reader: accept processing instructions as raw HTML (#4125).
4828 * Lua filters (Albert Krewinkel):
4830 + Use script to initialize the interpreter. The file `init.lua` is
4831 used to initialize the Lua interpreter which is used in Lua filters.
4832 This gives users the option to require libraries which they want to
4833 use in all of their filters, and to extend default modules.
4834 + Fix package loading for Lua 5.1. The list of package searchers is
4835 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
4836 in Lua 5.2 and later.
4837 + Refactor lua module handling. The integration with Lua's package/module
4838 system is improved: A pandoc-specific package searcher is prepended to
4839 the searchers in `package.searchers`. The modules `pandoc` and
4840 `pandoc.mediabag` can now be loaded via `require`.
4841 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
4842 function which makes using Haskell functions as package loaders much
4845 * reveal.js template: add title-slide identifier to title slide (#4120).
4846 This allows it to be styled more easily.
4848 * LaTeX template: Added support for `pagestyle` variable (#4135,
4851 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
4855## pandoc 2.0.4 (2017-12-03)
4857 * Add `--print-highlight-style` option. This generates a JSON version
4858 of a highlighting style, which can be saved as a `.theme` file, modified,
4859 and used with `--highlight-style` (#4106, #4096).
4861 * Add `--strip-empty-paragraphs` option. This works for any input format.
4862 It is primarily intended for use with docx and odt documents where
4863 empty paragraphs have been used for inter-paragraph spaces.
4865 * Support `--webtex` for `gfm` output.
4867 * Recognize `.muse` file extension.
4869 * Support beamer `\alert` in LaTeX reader. Closes #4091.
4871 * Docx reader: don't strip out empty paragraphs (#2252).
4872 Users who have a conversion pipeline from docx may want to consider adding
4873 `--strip-empty-paragraphs` to the command line.
4875 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
4877 * Muse reader (Alexander Krotov):
4879 + Parse markup in definition list terms.
4880 + Allow definition to end with EOF.
4881 + Make code blocks round trip.
4882 + Drop common space prefix from list items.
4883 + Add partial round trip test.
4884 + Don't interpret XML entities.
4886 + Parse `~~` as non-breaking space in Emacs mode.
4887 + Correctly remove indentation from notes. Exactly one space is
4888 required and considered to be part of the marker.
4889 + Allow list items to be empty.
4890 + Add ordered list test.
4891 + Add more multiline definition tests.
4892 + Don't allow blockquotes within lists.
4893 + Fix reading of multiline definitions.
4894 + Add inline `<literal>` support.
4895 + Concatenate inlines of the same type
4897 * Docx writer: allow empty paragraphs (#2252).
4899 * CommonMark/gfm writer:
4901 + Use raw html for native divs/spans (#4113). This allows a pandoc
4902 markdown native div or span to be rendered in gfm using raw html tags.
4903 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
4904 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
4906 * Muse writer (Alexander Krotov):
4908 + Test that inline math conversion result is normalized.
4909 Without normalization this test produced
4910 `<em>a</em><em>b</em><em>c</em>`.
4911 + Improve inline list normalization and move to writer.
4912 + Escape hash symbol.
4913 + Escape `----` to avoid accidental horizontal rules.
4914 + Escape only `</code>` inside code tag.
4915 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
4919 + Allow specifying just width or height for image size.
4920 Previously both needed to be specified (unless the image was
4921 being resized to be smaller than its original size).
4922 If height but not width is specified, we now set width to
4923 textwidth. If width but not height is specified, we now set
4924 height to textheight. Since we have `keepaspectratio`, this
4925 yields the desired result.
4926 + Escape `~` and `_` in code with `--listings` (#4111).
4928 * HTML writer: export `tagWithAttributes`. This is a helper allowing
4929 other writers to create single HTML tags.
4931 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
4932 converting the case as needed in LaTeX and ConTeXt writers.
4934 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
4935 so that it no longer produces empty `Para`'s as an artifact.
4937 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
4938 This gives us automatic normalization, so we don't get
4939 for example two consecutive Spaces.
4941 * Include default CSS for 'underline' class in HTML-based templates.
4943 * revealjs template: add `tex2jax` configuration for the
4944 math plugin. With the next release of reveal.js, this will
4945 fix the problem of `$`s outside of math contexts being
4946 interpreted as math delimiters (#4027).
4948 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
4950 + Add basic lua List module (#4099, #4081). The List module is
4951 automatically loaded, but not assigned to a global variable. It can be
4952 included in filters by calling `List = require 'List'`. Lists of blocks,
4953 lists of inlines, and lists of classes are now given `List` as a metatable,
4954 making working with them more convenient. E.g., it is now possible to
4955 concatenate lists of inlines using Lua's concatenation operator `..`
4956 (requires at least one of the operants to have `List` as a metatable):
4958 function Emph (emph)
4959 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
4960 return pandoc.Span(emph.content .. s)
4963 The `List` metatable is assigned to the tables which get passed to
4964 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
4965 enables the use of the resulting objects as lists.
4966 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
4967 Pandoc and Meta elements are now pushed by calling the respective
4968 constructor functions of the pandoc Lua module. This makes serialization
4969 consistent with the way blocks and inlines are pushed to lua and allows
4970 to use List methods with the `blocks` value.
4971 + Add documentation for pandoc.List in `lua-filters.md`.
4973 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
4974 `&` (but not a valid entity) following them (#4094, #4088).
4976 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
4977 when `numberLines` is used (#4103).
4979 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
4980 requiring a leading 0 on single-digit days.
4982 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
4985 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
4986 Previously we only mentioned `--latexmathml`, even if `-m` was
4989 * Changelog: fix description of lua filters in 2.0 release
4990 (Albert Krewinkel). Lua filters were initially run *after* conventional
4991 (JSON) filters. However, this was changed later to make it easier to deal
4992 with files in the mediabag. The changelog is updated to describe that
4993 feature of the 2.0 release correctly.
4995 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
4996 #4085). This reduces compile time and memory usage significantly.
4998 * `lua-filters.md`: Added tikz filter example.
5000 * Create alternative zip file for macOS binaries.
5002 * Create alternative zip file for Windows binaries.
5004 * Update INSTALL.md since we now provide zips for binaries.
5006 * Relax `http-types` dependency (Justus Sagemüller, #4084).
5008 * Add `epub.md`, `getting-started.md` to docs. These used to live in
5011 * Add `packages` target to Makefile.
5013 * Bump bounds for binary, http-types, tasty-hunit
5015## pandoc 2.0.3 (2017-11-20)
5017 * Lua filters: preload text module (Albert Krewinkel, #4077).
5018 The `text` module is preloaded in lua. The module contains some UTF-8
5019 aware string functions, implemented in Haskell. The module is loaded on
5022 text = require 'text'
5024 s.text = text.upper(s.text)
5028 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
5029 #4071). Attribute lists are represented as associative lists in Lua. Pure
5030 associative lists are awkward to work with. A metatable is attached to
5031 attribute lists, allowing to access and use the associative list as if
5032 the attributes were stored in as normal key-value pair in table.
5033 Note that this changes the way `pairs` works on attribute lists. Instead
5034 of producing integer keys and two-element tables, the resulting iterator
5035 function now returns the key and value of those pairs. Use `ipairs` to
5036 get the old behavior. Warning: the new iteration mechanism only works if
5037 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
5039 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
5040 This fixes a bug where pandoc would stop parsing a URI with an
5041 empty attribute: for example, `&a=&b=` wolud stop at `a`.
5042 (The uri parser tries to guess which punctuation characters
5043 are part of the URI and which might be punctuation after it.)
5045 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
5047 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
5049 + Reimplemented `isEnabled` function from `Options.hs` to accept both
5050 `ReaderOptions` and `WriterOptions`.
5051 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
5053 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
5054 behavior for `muse`. New `Ext_amuse` constructor for
5055 `Extension`. Note: this is switched on by default; for
5056 Emacs behavior, use `muse-amuse`.
5058 * Muse reader (Alexander Krotov):
5060 + Count only one space as part of list item marker.
5061 + Produce SoftBreaks on newlines. Now wrapping can be preserved
5062 with `--wrap=preserve`.
5063 + Add Text::Amuse footnote extensions. Footnote end is indicated by
5064 indentation, so footnotes can be placed anywhere in the text,
5065 not just at the end of it.
5066 + Accept Emacs Muse definition lists when `-amuse`.
5067 Emacs Muse does not require indentation.
5071 + Ensure we don't produce level 0 headers (#4076), even for chapter
5072 sections in epubs. This causes problems because writers aren't set
5074 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
5075 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
5076 `markdown` or `html` `+tex_math_single_backslash`.
5078 * MANUAL: clarify that math extensions work with HTML.
5079 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
5080 will work with HTML as well as Markdown.
5082 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
5085 * RST reader: better support for 'container' directive (#4066).
5086 Create a div, incorporate name attribute and classes.
5090 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
5091 `rr`. We now expand it like a macro.
5092 + Allow optional args for parbox (#4056).
5093 + Allow optional arguments on `\footnote` (#4062).
5095 * EPUB writer: Fixed path for cover image (#4069). It was previously
5096 `media/media/imagename`, and should have been `media/imagename`.
5098 * Markdown writer: fix bug with doubled footnotes in grid tables
5101 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
5102 Otherwise we seem to get an error; biblatex wants polyglossia
5103 language to be defined.
5105 * Added examples to lua filters documentation.
5108## pandoc 2.0.2 (2017-11-12)
5110 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
5111 `--mimetex`, `--jsmath`.
5113 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
5114 leading to invalid XML in default JATS output with pandoc-citeproc.
5116 * `lua-filters.md`: use real-world man page filter as example.
5118 * Add lua filter functions `walk_inline` and `walk_block`
5119 in the pandoc module, to apply filters inside particular
5120 inline and block elements.
5122 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
5123 into new internal module `Text.Pandoc.Lua.Filter`.
5127 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
5128 This brings our handling of them into alignment with CommonMark's.
5129 + Fix YAML metadata with "chomp" (`|-`). Previously if a
5130 YAML block under `|-` contained a blank line, pandoc would
5131 not parse it as metadata.
5133 * Removed `etc.` from abbreviations file. Often `etc.` ends a
5134 sentence, and we want the period to be treated as a
5135 sentence-ending period.
5137 * Fix regression with `--metadata` (#4054). Values specified with
5138 `--metadata` should replace a metadata value set in the document
5139 itself, rather than creating a list including a new value.
5143 + Fix EPUB OCF structure. #3720 had been improperly implemented.
5144 + Fix modified paths for raw HTML tags (src, poster, etc.)
5145 (#4050, #4055). This had not been updated for the new EPUB
5146 container layout, with a separate text/ subdirectory.
5147 + Fix image paths with empty `--epub-subdirectory`.
5149 * Miscellaneous code cleanup (Alexander Krotov).
5151 * Use pandoc-types 1.17.3, which adds `Walkable` instances
5152 for `[Block] Block` and `[Inline] Inline`.
5154 * Remove obsolete `stack.full.yaml` (#4052).
5156 * Change to using pandoc-citeproc 0.12.1 in binary packages.
5158 * Consolidate math output method documentation (#4049, Mauro Bieg).
5160 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
5162 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
5163 Haskell filters. This is easier and faster.
5165 * Improved `INSTALL.md`.
5167 * Update commands to extract deb archive on Linux (#4043, Salim B).
5170## pandoc 2.0.1.1 (2017-11-04)
5172 * Improved fix to #3989 (parsing of HTML tags containing
5173 `>` in an attribute or comment). The previous fix (in 2.0.1) only
5174 worked in certain cases.
5176 * FB2 writer (Alexander Krotov):
5178 + Add `unrecognised` genre to `<title-info>`
5179 (Alexander Krotov). XML schema requires at least one genre.
5180 + Remove `<annotation>` from `<body>`.
5182 * CommonMark writer: fix strikethrough for `gfm` (#4038).
5184 * Use texmath 0.10, which adds support for a wider range of
5185 symbols and fixes default column alignments in MathML
5188 * Highlighting fixes, using skylighting 0.4.3.2:
5191 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
5192 + Ensure that code lines don't get duplicate identifiers (#4031).
5193 The line identifiers are built using the code block's identifier
5194 as a prefix. If the code block has null identifier, we use
5197 * Added a few abbreviations to `data/abbreviations`,
5198 and sorted the list (#3984, Wandmalfarbe).
5200 * Improved support for columns in HTML writer (#4028).
5202 + Remove `width` attribute from the `div`.
5203 + Remove space between `<div class="column">` elements,
5204 since this prevents columns whose widths sum to 100%
5205 (the space takes up space).
5206 + Move as much as possible of the CSS to the template.
5207 + Ensure that all the HTML-based templates (including epub)
5208 contain the CSS for columns.
5209 + Columns default to 50% width unless they are given a width
5210 attribute. So if you want two equal-width columns, you
5211 can use a div with class `column` and no `width` attribute.
5213 * SelfContained: use `base64` for css links with media attribute (#4026).
5214 This fixes `--self-contained` with S5.
5216 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
5218 * INSTALL.md: MacOS instructions needed xar -f (adam234).
5222 + Clarify that --setext-headers doesn't affect gfm output (#4035).
5223 + Clarify what is needed to open and close a div in `fenced_divs`
5224 (#4039, Tristano Ajmone).
5225 + Removed reference to `default.beamer` in docs (#4024).
5226 Also added mention of other templates affecting PDF output
5227 with different settings.
5230## pandoc 2.0.1 (2017-10-31)
5232 * Fixed regression in parsing of HTML comments in markdown and other
5233 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
5234 The parser stopped at the first `>` character, even if it wasn't
5235 the end of the comment.
5237 * Creole reader (Sascha Wilde):
5239 + Fix some minor typos and formatting.
5240 + Add additional test on nowiki-block after para.
5241 + Fix lists with trailing white space.
5243 * LaTeX reader: handle `%` comment right after command.
5244 For example, `\emph%`.
5246 * Markdown reader: make sure fenced div closers work in lists.
5247 Previously the following failed:
5254 and you needed a blank line before the closing `:::`.
5256 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
5257 enabled, Divs will be rendered as fenced divs.
5259 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
5262 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
5263 Note: this change may require some changes in CSS rules.
5264 `footnoteRef` has become `footnote-ref`, `titleslide` has
5265 become `title-slide`, and `footnoteBack` has become `footnote-back`.
5267 * JATS writer: Properly pass through author metadata (#4020).
5269 * FB2 writer (Alexander Krotov):
5271 + Write blocks outside of `<p>` in definitions.
5272 + Make bullet lists consistent with ordered lists, repeating
5273 the marker for the outer list rather than indenting sublists,
5274 since indentation does not work in readers.
5275 + Add new style FB2 tests.
5277 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
5278 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
5281 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
5283 * Fix broken reference links in manual (Andrew Dunning, #4014)
5285 * Fixed example of slide columns structure in changelog (#4015).
5286 Also documented this feature in MANUAL.txt.
5289## pandoc 2.0.0.1 (2017-10-30)
5293 + Fixed filepaths for nonstandard epub-subdirectory values.
5294 + Ensure that epub2 is recognized as a non-text format,
5295 so that a template is used.
5296 + Don't include "prefix" attribute for ibooks for epub2.
5297 It doesn't validate.
5298 + Fix stylesheet paths; previously we had an incorrect
5299 stylesheet path for the cover page and nav page.
5303 + Insert space when needed in macro expansion (#4007).
5304 Sometimes we need to insert a space after a control sequence
5305 to prevent it merging with a following letter.
5306 + Allow unbraced arguments for macros (#4007).
5307 + Allow body of macro definition to be unbraced (#4007).
5309 * Linux package build: ensure that pandoc-citeproc is statically linked.
5311 * trypandoc: add native, ms.
5314## pandoc 2.0 (2017-10-29)
5318 * New output format `ms` (groff ms). Complete support, including
5319 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
5320 texmath's new eqn writer to convert math to eqn format, so a ms file
5321 produced with this writer should be processed with `groff -ms -e` if
5324 * New output format `jats` (Journal Article Tag Suite). This is an XML
5325 format used in archiving and publishing articles. Note that a
5326 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
5327 unless a stylesheet is specified using `--css`.
5329 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
5330 This uses bindings to GitHub's fork of cmark, so it should parse
5331 gfm exactly as GitHub does (excepting certain postprocessing
5332 steps, involving notifications, emojis, etc.). `markdown_github`
5333 has been deprecated in favor of `gfm`.
5335 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
5337 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
5338 This uses bindings to GitHub's fork of cmark. `markdown_github`
5339 has been deprecated in favor of `gfm`.
5341 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
5343 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
5345 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
5346 Note that there is a new data file, `data/vimwiki.css`, which can
5347 be used to display the HTML produced by this reader and
5348 pandoc's HTML writer in the style of vimwiki's own HTML
5351 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
5353 * New syntax for Divs, with `fenced_divs` extension enabled by
5354 default (#168). This gives an attractive, plain-text way to create
5355 containers for block-level content.
5357 * Added new syntax for including raw content in any output format,
5358 enabled by the `raw_attribute` extension (which is on by default
5359 for `markdown` and `multimarkdown`). The syntax is the same as
5360 for fenced code blocks or code inlines, only with `{=FORMAT}` for
5361 attributes, where `FORMAT` is the name of the output format
5362 (e.g., `ms`, `html`).
5364 * Implement multicolumn support for slide formats (#1710).
5365 The structure expected is:
5367 :::::::::::::: {.columns}
5368 ::: {.column width="40%"}
5371 ::: {.column width="60%"}
5376 Support has been added for beamer and all HTML slide formats.
5378 * Allows line comments in templates, beginning with `$--` (#3806).
5379 (Requires doctemplates 0.2.1.)
5381 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
5382 (Stefan Dresselhaus, #3663, #2097).
5384 * Add `--log` option to save log messages in JSON format to a file (#3392).
5386 * Add `--request-header` option, to set request headers when pandoc
5387 makes HTTP requests to fetch external resources. For example:
5388 `--request-header User-Agent:blah`.
5390 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
5391 option works like `--filter` but takes pathnames of special lua filters
5392 and uses the lua interpreter baked into pandoc, so that no external
5393 interpreter is needed. Note that lua filters are all applied after
5394 regular filters, regardless of their position on the command line.
5395 For documentation of lua filters, see `doc/lua-filters.md`.
5397 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
5398 This contains a JSON representation of `ReaderOptions`, so filters
5401 * Support creation of pdf via groff `ms` and pdfroff.
5402 `pandoc -t ms -o output.pdf input.txt`.
5404 * Support for PDF generation via HTML and `weasyprint` or `prince`
5405 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
5407 * Added `--epub-subdirectory` option (#3720). This specifies the
5408 subdirectory in the OCF container that holds the EPUB specific content.
5409 We now put all EPUB related content in an `EPUB/` subdirectory by default
5410 (later this will be configurable).
5415 com.apple.ibooks.display-options.xml
5417 EPUB/ <<--configurable-->>
5418 fonts/ <<--static-->>
5420 media/ <<--static-->>
5423 styles/ <<--static-->>
5427 text/ <<--static-->>
5431 * Added `--resource-path=SEARCHPATH` command line option (#852).
5432 SEARCHPATH is separated by the usual character, depending on OS
5433 (: on unix, ; on windows). Default resource path is just working
5434 directory. However, the working directory must be explicitly
5435 specified if the `--resource-path` option is used.
5437 * Added --abbreviations=FILE option for custom abbreviations file
5438 (#256). Dfault abbreviations file (`data/abbreviations`) contains
5439 a list of strings that will be recognized by pandoc's
5440 Markdown parser as abbreviations. (A nonbreaking space will
5441 be inserted after the period, preventing a sentence space in
5442 formats like LaTeX.) Users can override the default by putting a file
5443 abbreviations in their user data directory (`~/.pandoc` on *nix).
5445 * Allow a theme file as argument to `--highlight-style`.
5446 Also include a sample, `default.theme`, in `data/`.
5448 * Allow `--syntax-definition` option for dynamic loading of syntax
5449 highlighting definitions (#3334).
5451 * Lists in `markdown` by default now use the CommonMark variable
5452 nesting rules (#3511). The indentation required for a block-level
5453 item to be included in a list item is no longer fixed, but is
5454 determined by the first line of the list item. To be included in
5455 the list item, a block must be indented to the level of the first
5456 non-space content after the list marker. Exception: if are 5 or more
5457 spaces after the list marker, then the content is interpreted as an
5458 indented code block, and continuation paragraphs must be indented
5459 two spaces beyond the end of the list marker. See the CommonMark
5460 spec for more details and examples.
5462 Documents that adhere to the four-space rule should, in most cases,
5463 be parsed the same way by the new rules. Here are some examples
5464 of texts that will be parsed differently:
5469 will be parsed as a list item with a sublist; under the four-space
5470 rule, it would be a list with two items.
5476 Here we have an indented code block under the list item, even though it
5477 is only indented six spaces from the margin, because it is four spaces
5478 past the point where a continuation paragraph could begin. With the
5479 four-space rule, this would be a regular paragraph rather than a code
5486 Here the code block will start with two spaces, whereas under
5487 the four-space rule, it would start with `code`. With the four-space
5488 rule, indented code under a list item always must be indented eight
5489 spaces from the margin, while the new rules require only that it
5490 be indented four spaces from the beginning of the first non-space
5491 text after the list marker (here, `a`).
5493 This change was motivated by a slew of bug reports from people
5494 who expected lists to work differently (#3125, #2367, #2575, #2210,
5495 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
5496 of CommonMark (now used by GitHub, for example). Those who
5497 prefer the old behavior can use `-f markdown+four_space_rule`.
5499 * Added `four_space_rule` extension. This triggers the old pandoc
5500 parsing rule for content nested under list items (the "four space
5503 * Added `spaced_reference_links` extension (#2602). It allows whitespace
5504 between the two parts of a reference link: e.g.
5510 This was previously enabled by default; now it is forbidden by default.
5512 * Add `space_in_atx_header` extension (#3512). This is enabled by default
5513 in pandoc and GitHub markdown but not the other flavors.
5514 This requirse a space between the opening #'s and the header
5515 text in ATX headers (as CommonMark does but many other implementations
5516 do not). This is desirable to avoid falsely capturing things ilke
5524 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
5527 * Allow ibooks-specific metadata in epubs (#2693). You can now have
5528 the following fields in your YAML metadata, and it will be treated
5529 appropriately in the generated EPUB:
5534 specified-fonts: false
5535 ipad-orientation-lock: portrait-only
5536 iphone-orientation-lock: landscape-only
5538 scroll-axis: vertical
5544 * Reader functions no longer presuppose that CRs have been
5545 stripped from the input. (They strip CRs themselves, before
5546 parsing, to simplify the parsers.)
5548 * Added support for translations (localization) (#3559).
5549 Currently this only affects the LaTeX reader, for things
5550 like `\figurename`. Translation data files for 46 languages
5551 can be found in `data/translations`.
5553 * Make `--ascii` work with DocBook output too.
5555 * Rename `--latex-engine` to `--pdf-engine`,
5556 and `--latex-engine-opt` to `--pdf-engine-opt`.
5558 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
5559 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
5560 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
5561 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
5563 * With `--filter` R filters are now recognized, even if they are
5564 not executable (#3940, #3941, Andrie de Vries).
5566 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
5568 * Make epub an alias for epub3, not epub2.
5570 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
5571 Multiple stylesheets may be used. Stylesheets will be taken both from
5572 `--css` and from the `stylesheet` metadata field (which can contain
5573 either a file path or a list of them).
5575 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
5576 The argument was for a bridge JavaScript that used to be necessary
5577 in 2004. We have removed the script already.
5579 * `--katex` improvements. The latest version is used, and the
5580 autoload script is loaded by default.
5582 * Change MathJax CDN default since old one is shutting down (#3544).
5583 Note: The new URL requires a version number, which we'll have
5584 to update manually in subsequent pandoc releases in order to
5585 take advantage of mathjax improvements.
5587 * `--self-contained`: don't incorporate elements with `data-external="1"`
5588 (#2656). You can leave an external link as it is by adding the attribute
5589 data-external="1" to the element. Pandoc will then not try to
5590 incorporate its content when `--self-contained` is used. This is
5591 similar to a feature already supported by the EPUB writer.
5593 * Allow `--extract-media` to work with non-binary input formats
5594 (#1583, #2289). If `--extract-media` is supplied with a non-binary
5595 input format, pandoc will attempt to extract the contents of all
5596 linked images, whether in local files, data: uris, or external uris.
5597 They will be named based on the sha1 hash of the contents.
5599 * Make `papersize: a4` work regardless of the case of `a4`.
5600 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
5602 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
5604 * Underlined elements are now treated consistently by readers
5605 (#2270, hftf); they are always put in a Span with class `underline`.
5606 This allows the user to treat them differently from other emphasis,
5607 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
5610 * Improved behavior of `auto_identifiers` when there are explicit ids
5611 (#1745). Previously only autogenerated ids were added to the list
5612 of header identifiers in state, so explicit ids weren't taken
5613 into account when generating unique identifiers. Duplicated
5614 identifiers could result. This simple fix ensures that explicitly given
5615 identifiers are also taken into account.
5617 * Use `table-of-contents` for contents of toc, make `toc` a boolean
5618 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
5619 This allows you to set `toc: true` in the metadata; this
5620 previously produced strange results in some output formats.
5621 For backwards compatibility, `toc` is still set to the
5622 toc contents. But it is recommended that you update templates
5623 to use `table-of-contents` for the toc contents and `toc`
5626 * Change behavior with binary format output to stdout.
5627 Previously, for binary formats, output to stdout was disabled
5628 unless we could detect that the output was being piped (and not
5629 sent to the terminal). Unfortunately, such detection is not
5630 possible on Windows, leaving windows users no way to pipe binary
5631 output. So we have changed the behavior in the following way:
5633 + Output to stdout is allowed when it can be determined that
5634 the output is being piped (on non-Windows platforms).
5635 + If the `-o` option is not used, binary output is never sent
5636 to stdout by default; instead, an error is raised.
5637 + If `-o -` is used, binary output is sent to stdout, regardless
5638 of whether it is being piped. This works on Windows too.
5640 * Better error behavior: uses of `error` have been replaced by
5641 raising of `PandocError`, which can be trapped and handled by the
5644 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
5645 GitHub has two Markdown modes, one for long-form documents like READMEs
5646 and one for short things like issue coments. In issue comments, a line
5647 break is treated as a hard line break. In README, wikis, etc., it is
5648 treated as a space as in regular Markdown. Since pandoc is more likely to
5649 be used to convert long-form documents from GitHub Markdown,
5650 `-hard_line_breaks` is a better default.
5652 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
5654 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
5655 Previously they would be transmitted to the template without any
5656 escaping. Note that `--M title='*foo*'` yields a different result from
5662 In the latter case, we have emphasis; in the former case, just
5663 a string with literal asterisks (which will be escaped
5664 in formats, like Markdown, that require it).
5666 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
5668 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
5669 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
5670 it is valid HTML5. HTML4 is not affected. This will allow us to use
5671 custom attributes in pandoc without producing invalid HTML. (With help
5672 from Wandmalfarbe, #3817.)
5674 * Plain writer: improved super/subscript rendering. We now
5675 handle more non-digit characters for which there are
5676 sub/superscripted unicode characters. When unicode
5677 sub/superscripted characters are not available, we use
5678 `_(..)` or `^(..)` (#3518).
5680 * Docbook, JATS, TEI writers: print INFO message when omitting interior
5681 header (#3750). This only applies to section headers inside list items,
5682 e.g., which were otherwise silently omitted.
5684 * Change to `--reference-links` in Markdown writer (#3701). With
5685 `--reference-location` of `section` or `block`, pandoc will now repeat
5686 references that have been used in earlier sections. The Markdown
5687 reader has also been modified, so that *exactly* repeated references
5688 do not generate a warning, only references with the same label but
5689 different targets. The idea is that, with references after every block,
5690 one might want to repeat references sometimes.
5692 * ODT/OpenDocument writer:
5694 + Support `lang` attribute (#1667).
5695 + Added support for `--toc` (#2836). Thanks to @anayrat.
5699 + `lang` meta, see #1667 (Mauro Bieg, #3515).
5700 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
5701 + Use `Table` rather than `Table Normal` for table style (#3275).
5702 `Table Normal` is the default table style and can't be modified.
5703 + Pass through comments (#2994). We assume that comments are defined as
5704 parsed by the docx reader:
5706 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
5707 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
5708 have a comment <span class="comment-end" id="0"></span>on it.
5710 We assume also that the id attributes are unique and properly
5711 matched between comment-start and comment-end.
5712 + Bookmark improvements. Bookmark start/end now surrounds content rather
5713 than preceding it. Bookmarks generated for Div with id
5714 (jgm/pandoc-citeproc#205).
5715 + Add `keywords` metadata to docx document properties (Ian).
5717 * RST writer: support unknown interpreted text roles by
5718 parsing them as `Span` with `role` attributes (#3407). This
5719 way they can be manipulated in the AST.
5723 + Line block: Use class instead of style attribute (#1623). We now
5724 issue `<div class="line-block">` and include a default definition
5725 for `line-block` in the default templates, instead of hard-coding a
5727 + Add class `footnoteBack` to footnote back references (Timm Albers).
5728 This allows for easier CSS styling.
5729 + Render SmallCaps as span with smallcaps class (#1592), rather than
5730 using a style attribute directly. This gives the user more flexibility
5731 in styling small caps in CSS.
5732 + With reveal.js we use `data-src` instead of `src` for images for
5734 + Special-case `.stretch` class for images in reveal.js (#1291).
5735 Now in reveal.js, an image with class `stretch` in a paragraph
5736 by itself will stretch to fill the whole screen, with no
5737 caption or figure environment.
5739 * Added warnings for non-rendered blocks to writers.
5741 * Writers now raise an error on template failure.
5743 * When creating a PDF via LaTeX, warn if the font is missing some
5746 * Remove initial check for PDF-creating program (#3819).
5747 Instead, just try running it and raise the exception if it
5748 isn't found at that point. This improves things for users of Cygwin
5749 on Windows, where the executable won't be found by `findExecutable`
5750 unless `.exe` is added. The same exception is raised as before, but
5753 * Readers issue warning for duplicate header identifiers (#1745).
5754 Autogenerated header identifiers are given suffixes so as not to clash
5755 with previously used header identifiers. But they may still coincide with
5756 an explicit identifier that is given for a header later in the document,
5757 or with an identifier on a div, span, link, or image. We now issue
5758 a warning in this case, so users can supply an explicit identifier.
5760 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
5761 and `raw_html` extensions.
5765 + Don't allow backslash + newline to affect block structure (#3730).
5766 Note that as a result of this change, the following, which formerly
5767 produced a header with two lines separated by a line break, will
5768 now produce a header followed by a paragraph:
5773 This may affect some existing documents that relied on
5774 this undocumented and unintended behavior. This change makes pandoc
5775 more consistent with other Markdown implementations, and with itself
5776 (since the two-space version of a line break doesn't work inside ATX
5777 headers, and neither version works inside Setext headers).
5780 * Org reader (Albert Krewinkel, unless noted):
5782 + Support `table.el` tables (#3314).
5783 + Support macros (#3401).
5784 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
5785 Recognized include types are `example`, `export`, `src`, and
5786 normal org file inclusion. Advanced features like line numbers
5787 and level selection are not implemented yet.
5788 + Interpret more meta value as inlines. The values of the following
5789 meta variables are now interpreted using org-markup instead of
5790 treating them as pure strings: `keywords` (comma-separated list of
5791 inlines), `subtitle` (inline values), `nocite` (inline values, can
5793 + Support `\n` export option (#3940). This turns all newlines in the
5794 text into hard linebreaks.
5798 + Improved admonition support (#223). We no longer add an
5799 `admonition` class, we just use the class for the type of admonition,
5800 `note` for example. We put the word corresponding to the label in
5801 a paragraph inside a `Div` at the beginning of the admonition with
5802 class `admonition-title`. This is about as close as we can get to
5804 + Initial support of `.. table` directive. This allows adding captions
5806 + Support `.. line-block` directive. This is deprecated but may still
5807 be in older documents.
5808 + Support scale and align attributes of images (#2662).
5809 + Implemented implicit internal header links (#3475).
5810 + Support RST-style citations (#853). The citations appear at the end
5811 of the document as a definition list in a special div with id
5812 `citations`. Citations link to the definitions.
5813 + Recurse into bodies of unknown directives (#3432).
5814 In most cases it's better to preserve the content than
5815 to emit it. This isn't guaranteed to have good results;
5816 it will fail spectacularly for unknown raw or verbatim directives.
5817 + Handle chained link definitions (#262). For example,
5820 .. _goodbye: example.com
5822 Here both `hello` and `goodbye` should link to `example.com`.
5823 + Support anchors (#262). E.g.
5831 This is supported by putting "paragraph" in a `Div` with id `hello`.
5832 + Support `:widths:` attribute for table directive.
5833 + Implement csv-table directive (#3533). Most attributes are supported,
5834 including `:file:` and `:url:`.
5835 + Support unknown interpreted text roles by parsing them as Span
5836 with "role" attributes (#3407). This way they can be manipulated in
5839 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
5843 + Implemented `\graphicspath` (#736).
5844 + Properly handle column prefixes/suffixes. For example, in
5845 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
5846 each cell will be interpreted as if it has a `$`
5847 before its content and a `$` after (math mode).
5848 + Handle komascript `\dedication` (#1845). It now adds a
5849 `dedication` field to metadata. It is up to the user to supply
5850 a template that uses this variable.
5851 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
5852 `sf`, `bf` (#3488). Spans with a class are used when there is
5854 + Expand `\newenvironment` macros (#987).
5855 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
5856 + Better support for subfigure package (#3577).
5857 A figure with two subfigures turns into two pandoc
5858 figures; the subcaptions are used and the main caption
5859 ignored, unless there are no subcaptions.
5860 + Add support for `\vdots` (Marc Schreiber, #3607).
5861 + Add basic support for hyphenat package (Marc Schreiber, #3603).
5862 + Add basic `\textcolor` support (Marc Schreiber).
5863 + Add support for `tabularx` environment (Marc Schreiber, #3632).
5864 + Better handling of comments inside math environments (#3113).
5865 This solves a problem with commented out `\end{eqnarray}` inside
5866 an eqnarray (among other things).
5867 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
5868 is selected (#3692). Otherwise skip with a warning. This is better
5869 than trying to parse it as text!
5870 + Add `\colorbox` support (Marc Schreiber).
5871 + Set identifiers on Spans used for `\label`.
5872 + Have `\setmainlanguage` set `lang` in metadata.
5873 + Support etoolbox's `\ifstrequal`.
5874 + Support `plainbreak`, `fancybreak` et al from the memoir class
5875 (bucklereed, #3833).
5876 + Support `\let`. Also, fix regular macros so they're expanded at the
5877 point of use, and NOT also the point of definition. `\let` macros,
5878 by contrast, are expanded at the point of definition. Added an
5879 `ExpansionPoint` field to `Macro` to track this difference.
5880 + Support simple `\def` macros. Note that we still don't support
5881 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
5882 + Support `\chaptername`, `\partname`, `\abstractname`, etc. (#3559,
5884 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
5885 attributes, so they can be handled in filters (Marc Schreiber, #3639)
5886 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
5887 #3589). Acronyms are not resolved by the reader, but acronym and
5888 glossary information is put into attributes on Spans so that they
5889 can be processed in filters.
5890 + Use `Link` instead of `Span` for `\ref`. This makes more sense
5891 semantically and avoids unnecessary `Span [Link]` nestings when
5892 references are resolved.
5893 + Rudimentary support for `\hyperlink`.
5894 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
5895 + Support `\lq`, `\rq`.
5896 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
5898 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
5899 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
5900 + Support `\k` ogonek accent.
5901 + Improve handling of accents. Handle ogonek, and fall back correctly
5902 with forms like `\"{}`.
5903 + Better support for ogonek accents.
5904 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
5905 + Support for `xspace` (Marc Schreiber, #3797).
5906 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
5908 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
5909 level 0 headers, and parts as level -1 headers. After parsing, we
5910 check for the lowest header level, and if it's less than 1 we bump
5911 everything up so that 1 is the lowest header level. So `\part` will
5912 always produce a header; no command-line options are needed.
5913 + Add block version of `\textcolor` (Marc Schreiber).
5914 + `\textcolor` works as inline and block command (Marc Schreiber).
5915 + `\textcolor` will be parse as span at the beginning of a paragraph
5917 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
5918 + Improved handling of include files in LaTeX reader (#3971).
5919 Previously `\include` wouldn't work if the included file
5920 contained, e.g., a begin without a matching end.
5921 + Support `\expandafter` (#3983).
5922 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
5923 as a synonym for `\newcommand`.
5924 + Handle `\lettrine` (Mauro Bieg).
5926 * Math improvements due to updates in texmath:
5928 + Improved handling of accents and upper/lower delimiters.
5929 + Support for output in GNU eqn format (used with *roff).
5930 + Allow `\boldsymbol` + a token without braces, and similarly
5931 with other styling commands.
5932 + Improve parsing of `\mathop` to allow multi-character operator names.
5933 + Add thin space after math operators when "faking it with
5936 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
5937 instance for `a -> [a]` (pandoc-types). Note that behavior
5938 will be slightly different, since `bottomUp`'s treatment of
5939 a function `[a] -> [a]` is to apply it to each sublist of a
5940 list, while walk applies it only to maximal sublists.
5941 Usually the latter behavior is what is wanted, and the
5942 former can be simulated when needed. But there may be
5943 existing filters that need to be rewritten in light of the
5944 new behavior. Performance should be improved.
5946 * There are some changes to syntax highlighting due to revisions
5947 in the `skylighting` library:
5949 + Support for `powershell` has been added, and many syntax
5950 definitions have been updated.
5951 + Background colors have been added to the `kate` style.
5952 + The way highlighted code blocks are formatted in HTML has
5953 been changed (David Baynard), in ways that may require
5954 changes in hard-coded CSS affecting highlighting.
5955 (If you haven't included hard-coded highlighting CSS in
5956 your template, you needn't change anything.)
5961 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
5962 This contains definitions of the `PandocMonad` typeclass, the
5963 `PandocIO` and `PandocPure` monads, and associated functions.
5965 * Changed types of all writers and readers.
5967 + We now use `Text` instead of `String` in the interface (#3731).
5968 (We have not yet changed the internals of most readers to work
5969 with `Text`, but making this change in the API now opens up a
5970 path to doing that.)
5971 + The result is now of form `m a` with constraint `PandocMonad m`.
5972 Readers and writers can be combined to form monadic values which
5973 can be run using either `runIO` or `runPure`. If `runIO` is used,
5974 then both readers and writers will be able to do IO when needed
5975 (for include files, for example); if `runPure` is used,
5976 then the functions are pure and will not touch IO.
5977 + Where previously you used
5978 `writeRST def (readMarkdown def "[foo](url)")`, now you
5980 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
5982 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
5983 contains reader helper functions formerly defined in the
5984 top-level `Text.Pandoc` module.
5986 + Changed `StringReader` -> `TextReader`.
5987 + `getReader` now returns a pair of a reader and
5988 `Extensions`, instead of building the extensions into the
5989 reader (#3659). The calling code must explicitly set
5990 `readerExtensions` using the `Extensions` returned. The
5991 point of the change is to make it possible for the calling
5992 code to determine what extensions are being used.
5994 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
5995 This contains writer helper functions formerly defined in the
5996 top-level `Text.Pandoc` module.
5998 + Changed `StringWriter` -> `TextWriter`.
5999 + `getWriter` now retuns a pair of a reader and
6000 `Extensions`, instead of building the extensions into the
6001 reader (#3659). The calling code must explicitly set
6002 `readerExtensions` using the `Extensions` returned. The
6003 point of the change is to make it possible for the calling
6004 code to determine what extensions are being used.
6006 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
6009 * New module `Text.Pandoc.App`. This abstracts out the functionality
6010 of the command line program (`convertWithOpts`), so it can be reproduced
6011 e.g. in a desktop or web application. Instead of exiting, we throw errors
6012 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
6013 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
6014 The module also exports some utility functions for parsing options
6015 and running filters.
6017 * New module `Text.Pandoc.Logging` (exported module) (#3392).
6018 This now contains the `Verbosity` definition previously in
6019 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
6020 eventually be used instead of raw strings for warnings. This will enable
6021 us, among other things, to provide machine-readable warnings if desired.
6022 Include ToJSON instance and showLogMessage. This gives us the possibility
6023 of both machine-readable and human-readable output for log messages.
6025 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
6027 * New module `Text.Pandoc.Translations`, exporting `Term`,
6028 `Translations`, `readTranslations`.
6030 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
6031 `TokType`, `Line`, `Column`.
6033 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
6035 * Expose some previously private modules (#3260). These are often
6036 helpful to people writing their own reader or writer modules:
6038 + `Text.Pandoc.Writers.Shared`
6039 + `Text.Pandoc.Parsing`
6040 + `Text.Pandoc.Asciify`
6041 + `Text.Pandoc.Emoji`
6042 + `Text.Pandoc.ImageSize`
6043 + `Text.Pandoc.Highlighting`
6045 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
6046 Extension parsing and processing functions were defined in the top-level
6047 `Text.Pandoc` module. These functions are moved to the Extensions
6048 submodule as to enable reuse in other submodules.
6050 * Add `Ext_raw_attribute` constructor for `Extension`.
6052 * Add `Ext_fenced_divs` constructor for `Extension'.
6054 * Add `Ext_four_space_rule` constructor in `Extension`.
6056 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
6058 * Add `Monoid` instance for `Extensions`.
6060 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
6062 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
6064 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
6066 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
6068 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
6070 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
6072 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
6074 * Export `setVerbosity` from `Text.Pandoc`.
6076 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
6078 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
6080 * `Text.Pandoc.UTF8`:
6082 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
6083 Define `toString`, `toStringLazy` in terms of them.
6084 + Add new functions parameterized on `Newline`: `writeFileWith`,
6085 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
6087 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
6089 * `Text.Pandoc.Highlighting`:
6091 + `highlighting` now returns an Either rather than Maybe.
6092 This allows us to display error information returned by the skylighting
6093 library. Display a warning if the highlighting library throws an error.
6094 + Add parameter for `SyntaxMap` to `highlight`.
6096 * `Text.Pandoc.Writers.Math`:
6098 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
6099 we only need to update these in one place.
6101 * `Text.Pandoc.SelfContained`:
6103 + Removed `WriterOptions` parameter from `makeSelfContained`.
6104 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
6105 the need to pass MediaBag around and improves exceptions. It also
6106 opens up the possibility of using makeSelfContained purely.
6107 + Export `makeDataURI`.
6109 * `Text.Pandoc.ImageSize`:
6111 + Export `lengthToDim`, new function `scaleDimension`.
6112 + Export `inEm` from ImageSize (#3450).
6113 + Change `showFl` and `show` instance for `Dimension` so
6114 extra decimal places are omitted.
6115 + Added `Em` as a constructor of `Dimension`.
6116 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
6118 * `Text.Pandoc.Templates`:
6120 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
6121 and raises a proper `PandocTemplateError` if there are problems, rather
6122 than failing with uncatchable `error`.
6123 + Change signature of `getDefaultTemplate`. Now it runs in any instance
6124 of `PandocMonad`, and returns a `String` rather than an `Either` value.
6125 And it no longer takes a `datadir` parameter, since this can be
6126 retrieved from `CommonState`.
6128 * `Text.Pandoc.Options`:
6130 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
6131 The EPUB writer now takes its EPUB subdirectory from this option.
6132 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
6133 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
6134 + Add `writerSyntaxMap` to `WriterOptions`.
6135 + Removed `writerEpubStylesheet` from `WriterOptions`.
6136 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
6137 in `CommonState` in `PandocMonad` instances. (And thus it can be used
6139 + Changed `writerEpubMetadata` to a `Maybe String`.
6140 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
6141 the `latex_macros` reader extension.
6142 + FromJSON/ToJSON instances for `ReaderOptions`.
6143 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
6144 one string (for the KaTeX base URL), rather than two.
6145 + Removed `writerSourceURL` from `WriterOptions`. We now use
6146 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
6148 * `Text.Pandoc.Shared`:
6150 + `tabFilter` now takes a `Text`, not `String`.
6151 + `openURL`: Changed type from an Either. Now it will just raise
6152 an exception to be trapped later.
6153 + Remove `normalizeSpaces` (#1530).
6154 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
6155 + Export a new function `crFilter`.
6156 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
6157 + Provide custom `isURI` that rejects unknown schemes.
6158 (Albert Krewinkel, #2713). We also export the set of known
6159 `schemes`. The new function replaces the function of the same name
6160 from `Network.URI`, as the latter did not check whether a scheme is
6161 well-known. All official IANA schemes (as of 2017-05-22) are
6162 included in the set of known schemes. The four non-official schemes
6163 `doi`, `isbn`, `javascript`, and `pmid` are kept.
6165 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
6166 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
6167 where they are defined in terms of `PandocMonad`
6168 primitives and have different signatures.
6169 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
6170 + Add `underlineSpan`.
6172 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
6174 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
6175 With the new API one can simply use `getLog` after running
6178 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
6179 and `rawLaTeXBlock`. (Both now return a `String`, and they are
6180 polymorphic in state.)
6183### Bug fixes and under-the-hood improvements
6185 * TEI writer: Added identifiers on `<div>` elements.
6187 * DokuWiki reader: Better handling for code block in list item (#3824).
6189 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
6191 * ZimWiki writer: Removed internal formatting from note and table cells,
6192 because ZimWiki does not support it (Alex Ivkin, #3446).
6196 + Updated list of syntax highlighting languages (#3461).
6197 Now `r` gets you `<source>` rather than `<code>` (among others).
6198 + Add display attribute on `<math>` tags (#3452). This allows display
6199 math to be rendered properly.
6200 + Remove newline before `</ref>` (#2652).
6201 + Don't softbreak lines inside list items (#3531).
6205 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
6206 + Add unit tests (Alexander Krotov).
6207 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
6208 + Do not strip `#` from Org anchor links (Alexander Krotov).
6210 * CommonMark writer:
6212 + Avoid excess blank lines at end of output.
6213 + Prefer pipe tables to HTML tables even if it means losing relative
6214 column width information (#3734).
6215 + Support table, strikethrough extensions, when enabled (as with gfm).
6216 Note that we bypass the commonmark writer from cmark and construct our
6217 own pipe tables, with better results.
6218 + Properly support `--wrap=none`.
6219 + Use smallcaps class for `SmallCaps` (#1592).
6220 + Omit "fig:" prefix in image titles. This is used internally to
6221 indicate internal figures.
6225 + Properly handle table captions.
6226 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
6227 + Implemented `+/-smart` and improved escaping with `+smart`.
6228 + Add empty comments when needed to avoid including a blockquote
6229 in the indented content of a preceding block (#3675).
6230 + Improve grid table output, fix bug with empty rows (#3516).
6231 Uses the new `gridTable` in Writers.Shared, which is here
6232 improved to better handle 0-width cells.
6233 + Remove space at beginning/end of RST code span (#3496). Otherwise
6234 we get invalid RST. There seems to be no way to escape the space.
6235 + Add header anchors when header has non-standard id (#3937).
6236 + Correctly handle inline code containing backticks, using a `:literal:`
6238 + Don't backslash-escape word-internal punctuation (#3978).
6242 + Don't include variables in metadata blocks. Previously variables set
6243 on the command line were included in e.g. YAML metadata, contrary to
6244 documentation and intentions.
6245 + Improved escaping with `+smart`.
6246 + Fixed grid tables embedded in grid tables (#2834).
6247 + Use span with class 'smallcaps' for SmallCaps, instead of a style
6248 attribute as before (#1592).
6249 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
6250 extension is enabled (#3454). Otherwise in a document starting with
6251 a literal `%` the first line is wrongly interpreted as a title.
6252 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
6253 properly escape things that would otherwise start ordered lists,
6259 + Better handling of tables with empty columns (#3337). We now
6260 calculate the number of columns based on the longest row (or the
6261 length of aligns or widths).
6262 + Escape unordered list markers at beginning of paragraph (#3497), to
6263 avoid false interpretation as a list.
6264 + Escape `|` appropriately.
6265 + Ensure space before list at top level (#3487).
6266 + Avoid spurious blanklines at end of document after tables and list,
6268 + Fixed bugs in simple/multiline list output (#3384).
6269 Previously we got overlong lists with `--wrap=none`. This is fixed.
6270 Previously a multiline list could become a simple list (and would
6271 always become one with `--wrap=none`).
6272 + Don't emit a simple table if `simple_tables` disabled (#3529).
6273 + Case-insensitive reference links (David A Roberts, #3616).
6274 Ensure that we do not generate reference links whose labels differ only
6275 by case. Also allow implicit reference links when the link
6276 text and label are identical up to case.
6277 + Put space before reference link definitions (Mauro Bieg, #3630).
6278 + Better escaping for links (David A. Roberts, #3619). Previously the
6279 Markdown writer would sometimes create links where there were none
6280 in the source. This is now avoided by selectively escaping bracket
6281 characters when they occur in a place where a link might be created.
6282 + Added missing `\n` (David A. Roberts, #3647).
6283 + Fixed duplicated reference links with `--reference-links`
6284 and `--reference-location=section` (#3674). Also ensure that there
6285 are no empty link references `[]`.
6286 + Avoid inline surround-marking with empty content (#3715).
6287 E.g. we don't want `<strong></strong>` to become `****`.
6288 Similarly for emphasis, super/subscript, strikeout.
6289 + Don't allow soft break in header (#3736).
6290 + Make sure `plain`, `markdown_github`, etc. work for raw.
6291 Previously only `markdown` worked. Note: currently a raw block labeled
6292 `markdown_github` will be printed for any `markdown` format.
6293 + Ensure that `+` and `-` are escaped properly so they don't cause
6294 spurious lists (#3773). Previously they were only
6295 if succeeded by a space, not if they were at end of line.
6296 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
6297 even if the table has relative width information (#3734).
6298 + Markdown writer: don't crash on `Str ""`.
6299 + Make `Span` with null attribute transparent. That is, we don't use
6300 brackets or `<span>` tags to mark spans when there are no attributes;
6301 we simply output the contents.
6302 + Escape pipe characters when `pipe_tables` enabled (#3887).
6303 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
6304 we backslash escape these. Otherwise we use entities as before.
6305 + When writing plain, don't use ` ` to separate list and indented
6306 code. There's no need for it in this context, since this isn't to be
6307 interpreted using Markdown rules.
6308 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
6309 HTML links containing classes originally now preserve them when using
6310 javascript email obfuscation.
6311 + Render `SmallCaps` as a native span when `native_spans` are enabled.
6312 + Always write attributes with `bracketed_spans` (d-dorazio).
6316 + Fix handling of nested font commands (#3568). Previously pandoc emitted
6317 incorrect markup for bold + italic, for example, or bold + code.
6318 + Avoid error for definition lists with no definitions (#3832).
6322 + Fix internal links with `writerIdentifierPrefix opt`
6323 (#3397, Mauro Bieg).
6327 + Don't include bookmarks on headers unless non-null id (#3476).
6328 + Support 9 levels of headers (#1642).
6329 + Allow 9 list levels (#3519).
6330 + Don't take `distArchive` from datadir (#3322). The docx writer takes
6331 components from the distribution's version of `reference.docx` when it
6332 can't find them in a user's custom `reference.docx`. Previously, we
6333 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
6334 to be used as the distribution's reference.docx. This led to a
6335 bizarre situation where pandoc would produce a good docx using
6336 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
6337 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
6338 + Fixed handling of soft hyphen (0173) (#3691).
6339 + Better handling of keywords (#3719).
6340 + Cleaner code for handling dir and style attributes for `Div`.
6341 + Use `Set` for dynamic styles to avoid duplicates.
6342 + Removed redundant element from data/docx/word/numbering.xml.
6343 The elements we need are generated when the document is
6344 compiled; this didn't do anything.
6345 + Activate `evenAndOddHeaders` from reference docx (#3901,
6346 Augustín Martín Barbero).
6348 * ODT/OpenDocument writer:
6350 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
6351 + Use more widely available bullet characters (#1400). The old
6352 characters weren't available in some font sets. These seem to work
6353 well on Windows and Linux versions of LibreOffice.
6354 + Wider labels for lists (#2421). This avoids overly narrow labels for
6355 ordered lists with `()` delimiters. However, arguably it creates
6356 overly wide labels for bullets. Also, lists now start flush with
6357 the margin, rather than indented.
6358 + Fixed dropped elements in some ordered lists (#2434).
6362 + Don't render `RawBlock` as code.
6363 + Don't fail with an error on interior headers (e.g. in list) (#3750).
6364 Instead, omit them with an INFO message.
6365 + Add support for "lang" metadata (Alexander Krotov, #3625).
6366 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
6367 produced one paragraph with `<empty-line/>` elements, which are not
6368 allowed inside `<p>` according to FB2 schema.
6369 + Replace `concatMap` with `cMap` (Alexander Krotov).
6370 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
6375 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
6376 + Render raw inline environments when `--mathjax` used (#3816).
6377 We previously did this only with raw blocks, on the assumption
6378 that math environments would always be raw blocks. This has changed
6379 since we now parse them as inline environments.
6380 + Ensure we don't get two style attributes for width and height.
6381 + Report when not rendering raw inline/block.
6382 + Issue warning if no title specified and template used (#3473).
6383 + Info message if `lang` is unspecified (#3486).
6384 + Removed unused parameter in `dimensionsToAttributeList`.
6385 + Avoid two class attributes when adding `uri` class (#3716).
6386 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
6388 + Use revealjs's math plugin for mathjax (#3743). This is a thin
6389 wrapper around mathjax that makes math look better on revealjs.
6390 + Slidy: use h1 for all slides, even if they were originally
6391 level 2 headers (#3566). Otherwise the built-in table of contents
6396 + Don't render LaTeX images with data: URIs (#3636). Note that
6397 `--extract-media` can be used when the input contains data: URIs.
6398 + Make highlighted code blocks work in footnotes (Timm Albers).
6399 + Don't use figure inside table cell (#3836).
6400 + Use proper code for list enumerators (#3891). This should fix problems
6401 with lists that don't use arabic numerals.
6402 + Always add hypertarget when there's a non-empty identifier (#2719).
6403 Previously the hypertargets were only added when there was actually
6404 a link to that identifier.
6405 + Use `%` after hypertarget before code block.
6406 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
6407 fixes formatting problems in beamer citations).
6408 + Don't use `lstinline` in `\item[..]` (#645). If you do, the contents
6409 of item disappear or are misplaced. Use `\texttt` instead.
6410 + Fix problem with escaping in `lstinline` (#1629). Previously the
6411 LaTeX writer created invalid LaTeX when `--listings` was specified and
6412 a code span occurred inside emphasis or another construction.
6413 + Fix error with line breaks after empty content (#2874). LaTeX
6414 requires something before a line break, so we insert a `~` if no
6415 printable content has yet been emitted.
6417 + Fixed detection of otherlangs (#3770). We weren't recursing into
6419 + Handle language in inline code with `--listings` (#3422).
6420 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
6421 The textcomp package allows pdfLaTeX to parse `€` directly, making the
6422 `\euro` command unneeded.
6423 + Fixed footnotes in table captions (#2378). Note that if the table has
6424 a first page header and a continuation page header, the notes will
6425 appear only on the first occurrence of the header.
6426 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
6427 Previously you could link to a header above or below slide level but
6428 not *to* slide level. This commit changes that. Hypertargets are
6429 inserted inside frame titles; technically the reference is to just
6430 after the title, but in normal use (where slides are viewed full
6431 screen in a slide show), this does not matter.
6432 + Remove `\strut` at beginning of table cells (#3436). This fixes a
6433 problem with alignment of lists in table cells. The `\strut` at the
6434 end seems to be enough to avoid the too-close spacing that motivated
6435 addition of the strut in #1573.
6436 + Add partial siunitx Support (Marc Schreiber, #3588).
6440 + Refactored to use BCP47 module.
6441 + Remove unnecessary `$` (Alexander Krotov, #3482).
6442 + Use header identifiers for chapters (#3968).
6446 + `title_page.xhtml` is now put in `text/`.
6447 + Don't strip formatting in TOC (#1611).
6451 + Fix bug for certain links in table cells (#3667).
6452 + Allow 'pre' code in list item (#3916).
6456 + Added warnings for ignored material (#3392).
6457 + Better sanity checks to avoid parsing unintended things as
6458 raw HTML in the Markdown reader (#3257).
6459 + Revise treatment of `li` with `id` attribute (#3596). Previously we
6460 always added an empty div before the list item, but this created
6461 problems with spacing in tight lists. Now we do this: If the list
6462 item contents begin with a `Plain` block, we modify the `Plain`
6463 block by adding a `Span` around its contents. Otherwise, we add a
6464 `Div` around the contents of the list item (instead of adding an
6465 empty `Div` to the beginning, as before).
6466 + Add `details` tag to list of block tags (#3694).
6467 + Removed `button` from block tag list (#3717). It is already in the
6468 `eitherBlockOrInlineTag` list, and should be both places.
6469 + Use `Set`s instead of lists for block tag lookup.
6470 + Rewrote to use `Text` throughout. Effect on memory usage is modest
6472 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
6474 + Ensure that paragraphs are closed properly when the parent block
6475 element closes, even without `</p>` (#3794).
6476 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
6477 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
6478 `<main>` closes `<p>` and behaves like a block element generally
6479 + Support column alignments (#1881). These can be set either
6480 with a `width` attribute or with `text-width` in a `style` attribute.
6481 + Modified state type to be an instance of `HasLogMessages`, so
6482 `registerHeader` can issue warnings.
6483 + `</td>` or `</th>` should close any open block tag (#3991).
6484 + `<td>` should close an open `<th>` or `<td>`.
6485 + `htmlTag` improvements (#3989). We previously failed on cases
6486 where an attribute contained a `>` character. This patch fixes the
6487 bug, which especially affects raw HTML in Markdown.
6491 + Newline is not indentation (Alexander Krotov).
6495 + Allow extra hyphens after `|-` in tables (#2649).
6496 + Allow blank line after table start (#2649).
6497 + Fixed more table issues (#2649).
6498 + Ensure that list starts begin at left margin (#2606). Including when
6499 they're in tables or other list items.
6500 + Make smart double quotes depend on `smart` extension (#3585).
6501 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
6502 + Modified state type to be an instance of `HasLogMessages`, so
6503 `registerHeader` can issue warnings.
6505 * TWiki reader (Alexander Krotov):
6507 + Remove unnecessary `$` (#3597).
6508 + Simplify `linkText` (#3605).
6512 + Minor refactoring, avoiding explicit MediaBag handling.
6513 This all works behind the scenes in CommonState plumbing.
6517 + Don't drop smartTag contents (#2242).
6518 + Handle local namespace declarations (#3365). Previously we didn't
6519 recognize math, for example, when the xmlns declaration occurred on
6520 the element and not the root.
6521 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
6522 does the work of `normalizeSpaces` as well, so we avoid the need for
6524 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
6525 paragraphs styled with "HeadingN" as "nth-level header." But if a
6526 document has a custom style named "Heading0", this will produce a
6527 0-level header, which shouldn't exist. We only parse this style
6528 if N>0. Otherwise we treat it as a normal style name, and
6529 follow its dependencies, if any.
6530 + Add tests for avoiding zero-level header (Jesse Rosenthal).
6534 + Replaced `collectRights` with Rights from `Data.Either`.
6535 + Remove dead code (Albert Krewinkel).
6537 * Org reader (Albert Krewinkel, unless noted).
6539 + Don't allow tables inside list items (John MacFarlane, #3499).
6540 + Disallow tables on list marker lines (#3499).
6541 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
6542 + Allow emphasized text to be followed by `[` (#3577).
6543 + Handle line numbering switch for src blocks.
6544 The line-numbering switch that can be given to source blocks (`-n` with
6545 an start number as an optional parameter) is parsed and translated to a
6546 class/key-value combination used by highlighting and other readers and
6548 + Stop adding rundoc prefix to src params. Source block parameter names
6549 are no longer prefixed with `rundoc`. This was intended to simplify
6550 working with the rundoc project, a babel runner. However, the rundoc
6551 project is unmaintained, and adding those markers is not the reader's
6552 job anyway. The original language that is specified for a source
6553 element is now retained as the `data-org-language` attribute and only
6554 added if it differs from the translated language.
6555 + Allow multi-word arguments to src block params (#3477). The reader now
6556 correctly parses src block parameter list even if parameter arguments
6557 contain multiple words.
6558 + Avoid creating `nullMeta` by applying `setMeta` directly
6560 + Replace `sequence . map` with `mapM`.
6561 + Fix smart parsing behavior. Parsing of smart quotes and special
6562 characters can either be enabled via the `smart` language extension or
6563 the `'` and `-` export options. Smart parsing is active if either the
6564 extension or export option is enabled. Only smart parsing of special
6565 characters (like ellipses and en and em dashes) is enabled by default,
6566 while smart quotes are disabled. Previously, all smart parsing was
6567 disabled unless the language extension was enabled.
6568 + Subject full doc tree to headline transformations (Albert Krewinkel,
6569 #3695). Emacs parses org documents into a tree structure, which is
6570 then post-processed during exporting. The reader is changed to do the
6571 same, turning the document into a single tree of headlines starting
6573 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
6574 cite keys included special characters also at the end. This caused
6575 problems when citations occur right before colons or at the end of
6576 a sentence. With this change, all non alphanumeric characters at
6577 the end of a cite key are ignored. This also adds `,` to the list
6578 of special characters that are legal in cite keys to better mirror
6579 the behaviour of org-export.
6580 + Fix module names in haddock comments. Copy-pasting had lead to
6581 haddock module descriptions containing the wrong module names.
6582 + Recognize babel result blocks with attributes (#3706). Babel
6583 result blocks can have block attributes like captions and names.
6584 Result blocks with attributes were not recognized and were parsed
6585 as normal blocks without attributes.
6586 + Include tags in headlines. The Emacs default is to include tags in the
6587 headline when exporting. Instead of just empty spans, which contain the
6588 tag name as attribute, tags are rendered as small caps and wrapped in
6589 those spans. Non-breaking spaces serve as separators for multiple tags.
6590 + Respect export option for tags (#3713). Tags are appended to
6591 headlines by default, but will be omitted when the `tags` export option
6593 + Use `tag-name` attribute instead of `data-tag-name`.
6594 + Use `org-language` attribute rather than `data-org-language`.
6595 + Modified state type to be an instance of `HasLogMessages`, so
6596 `registerHeader` can issue warnings.
6597 + End footnotes after two blank lines. Footnotes can not only be
6598 terminated by the start of a new footnote or a header, but also by two
6599 consecutive blank lines.
6600 + Update emphasis border chars (#3933). The org reader was updated to
6601 match current org-mode behavior: the set of characters which are
6602 acceptable to occur as the first or last character in an org emphasis
6603 have been changed and now allows all non-whitespace chars at the
6604 inner border of emphasized text (see `org-emphasis-regexp-components`).
6608 + Fixed small bug in list parsing (#3432). Previously the parser didn't
6609 handle properly this case:
6615 + Handle multiline cells in simple tables (#1166).
6616 + Parse list table directive (Keiichiro Shikano, #3432).
6617 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
6618 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
6619 + Reorganize block parsers for ~20% faster parsing.
6620 + Fixed `..include::` directive (#3880).
6621 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
6622 Previously pandoc would sometimes combine two line blocks separated
6623 by blanks, and ignore trailing blank lines within the line block.
6624 + Fix indirect hyperlink targets (#512).
6628 + Allow attributes in reference links to start on next line (#3674).
6629 + Parse YAML metadata in a context that sees footnotes defined in
6630 the body of the document (#1279).
6631 + When splitting pipe table cells, skip tex math (#3481).
6632 You might have a `|` character inside math. (Or for that matter
6633 something that the parser might mistake for raw HTML.)
6634 + Treat span with class `smallcaps` as SmallCaps.
6635 This allows users to specify small caps in Markdown this way:
6636 `[my text]{.smallcaps}` (#1592).
6637 + Fixed internal header links (#2397).
6638 This patch also adds `shortcut_reference_links` to the list
6640 + Treat certain environments as inline
6641 when they occur without space surrounding them (#3309, #2171).
6642 E.g. equation, math. This avoids incorrect vertical space
6644 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
6645 + Allow latex macro definitions indented 1-3 spaces.
6646 Previously they only worked if nonindented.
6647 + Improved parsing of indented raw HTML blocks (#1841).
6648 Previously we inadvertently interpreted indented HTML as
6649 code blocks. This was a regression. We now seek to determine the
6650 indentation level of the contents of an HTML block, and (optionally)
6651 skip that much indentation. As a side effect, indentation may be
6652 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
6653 used. This is better than having things interpreted as indented
6655 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
6656 + Warn for notes defined but not used (#1718).
6657 + Use `anyLineNewline` (Alexander Krotov).
6658 + Interpret YAML metadata as Inlines when possible (#3755). If
6659 the metadata field is all on one line, we try to interpret it as
6660 Inlines, and only try parsing as Blocks if that fails. If it
6661 extends over one line (including possibly the `|` or `>` character
6662 signaling an indented block), then we parse as Blocks. This was
6663 motivated by some German users finding that `date: '22. Juin 2017'`
6664 got parsed as an ordered list.
6665 + Fixed spurious parsing as citation as reference def (#3840).
6666 We now disallow reference keys starting with `@` if the
6667 `citations` extension is enabled.
6668 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
6669 Previously only `[-@roe]` (with brackets) was recognized as
6670 suppress-author, and `-@roe` was treated the same as `@roe`.
6671 + Fixed parsing of fenced code after list when there is no intervening
6673 + Allow raw latex commands starting with `\start` (#3558). Previously
6674 these weren't allowed because they were interpreted as starting
6675 ConTeXt environments, even without a corresponding `\stop`...
6676 + Added `inlines`, `inlines1`.
6677 + Require nonempty alt text for `implicit_figures` (#2844).
6678 A figure with an empty caption doesn't make sense.
6679 + Removed texmath macro material; now all this is handled
6680 in the LaTeX reader functions.
6681 + Fixed bug with indented code following raw LaTeX (#3947).
6685 + Rewrote LaTeX reader with proper tokenization (#1390,
6686 #2118, #3236, #3779, #934, #982). This rewrite is primarily
6687 motivated by the need to get macros working properly. A side benefit
6688 is that the reader is significantly faster. We now tokenize the
6689 input text, then parse the token stream. Macros modify the token
6690 stream, so they should now be effective in any context, including
6691 math. Thus, we no longer need the clunky macro processing
6692 capacities of texmath.
6693 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
6694 + Allow `\newcommand\foo{blah}` without braces.
6695 + Support `\lstinputlisting` (#2116).
6696 + Issue warnings when skipping unknown latex commands (#3392).
6697 + Include contents of `\parbox`.
6698 + Allow `\hspace` and `\vspace` to count as raw block or inline.
6699 Previously we would refuse to parse anything as raw inline if
6700 it was in the `blockCommands` list. Now we allow exceptions
6701 if they're listed under ignoreInlines in inlineCommands.
6702 This should make it easier e.g. to include an `\hspace`
6703 between two side-by-side raw LaTeX tables.
6704 + Don't drop contents of `\hypertarget`.
6705 + Handle spaces before `\cite` arguments.
6706 + Allow newpage, clearpage, pagebreak in inline contexts as well as
6707 block contexts (#3494).
6708 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
6709 + Use `pMacroDefinition` in macro (for more direct parsing).
6710 Note that this means that `macro` will now parse one
6711 macro at a time, rather than parsing a whole group together.
6712 + Fixed failures on `\ref{}`, `\label{}` with `+raw_tex`. Now these
6713 commands are parsed as raw if `+raw_tex`; otherwise, their argument
6714 is parsed as a bracketed string.
6715 + Don't crash on empty `enumerate` environment (#3707).
6716 + Handle escaped `&` inside table cell (#3708).
6717 + Handle block structure inside table cells (#3709). `minipage` is no
6719 + Handle some width specifiers on table columns (#3709). Currently
6720 we only handle the form `0.9\linewidth`. Anything else would have
6721 to be converted to a percentage, using some kind arbitrary assumptions
6723 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
6724 LaTeX reader's treatment of raw commands, but it also affects the
6726 + Fixed regression with starred environment names (#3803).
6727 + Handle optional args in raw `\titleformat` (#3804).
6728 + Improved heuristic for raw block/inline. An unknown command at the
6729 beginning of the line that could be either block or inline is
6730 treated as block if we have a sequence of block commands followed by
6731 a newline or a `\startXXX` command (which might start a raw ConTeXt
6733 + Don't remove macro definitions from the output, even if
6734 `Ext_latex_macros` is set, so that macros will be applied.
6735 Since they're only applied to math in Markdown, removing the macros
6736 can have bad effects. Even for math macros, keeping them should be
6738 + Removed `macro`. It is no longer necessary, since the
6739 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
6740 the need for a separate `latexMacro` parser in the Markdown reader.
6741 + Use `label` instead of `data-label` for label in caption (#3639).
6742 + Fixed space after `\figurename` etc.
6743 + Resolve references to section numbers.
6744 + Fix `\let\a=0` case, with single character token.
6745 + Allow `@` as a letter in control sequences. `@` is commonly used
6746 in macros using `\makeatletter`. Ideally we'd make the tokenizer
6747 sensitive to `\makeatletter` and `\makeatother`, but until then this
6748 seems a good change.
6749 + Track header numbers and correlate with labels.
6750 + Allow `]` inside group in option brackets (#3857).
6751 + lstinline with braces can be used (verb cannot be used with braces)
6752 (Marc Schreiber, #3535).
6753 + Fix keyval function: pandoc did not parse options in braces correctly
6754 (Marc Schreiber, #3642).
6755 + When parsing raw LaTeX commands, include trailing space (#1773).
6756 Otherwise things like `\noindent foo` break and turn into
6757 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
6758 formats that allow `raw_tex`).
6759 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
6761 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
6762 + Allow space before `=` in bracketd options (Ben Firshman).
6763 + Be more forgiving in parsing command options. This was needed, for
6764 example, to make some minted options work.
6765 + Strip off quotes in `\include` filenames.
6767 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
6769 * `Text.Pandoc.PDF`:
6771 + Got `--resource-path` working with PDF output (#852).
6772 + Fetch images when generating PDF via context (#3380).
6773 To do this, we create the temp directory as a subdirectory
6774 of the working directory. Since context mk IV by default looks
6775 for images in the parent directory, this works.
6776 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
6777 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
6778 This reduces code duplication.
6779 + `html2pdf`: use stdin instead of intermediate HTML file
6780 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
6781 doesn't use `TEXINPUTS`.
6783 * `Text.Pandoc.Pretty`:
6785 + Simplified definition of `realLength`.
6786 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
6788 * `Text.Pandoc.MIME`:
6790 + Use `application/javascript` (not `application/x-javascript`).
6791 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
6793 * `Text.Pandoc.ImageSize`:
6795 + Improve SVG image size code (Marc Schreiber, #3580).
6796 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
6798 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
6799 and reduction of memory usage in most of the writers.
6801 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
6803 * `Text.Pandoc.SelfContained`:
6805 + Fixed problem with embedded fonts (#3629).
6806 + Refactored getData from `getDataURI` in `SelfContained`.
6807 + Don't use data URIs for script or style (#3423). Instead, just use
6808 script or style tags with the content inside. The old method with
6809 data URIs prevents certain optimizations outside pandoc. Exception:
6810 data URIs are still used when a script contains `</script>` or a
6811 style contains `</`.
6812 + SelfContained: Handle URL inside material retrieved from a URL
6813 (#3629). This can happen e.g. with an @import of a google web font.
6814 (What is imported is some CSS which contains an url reference
6815 to the font itself.) Also, allow unescaped pipe (|) in URL.
6816 + Load resources from `data-src` (needed for lazy loading in
6817 reveal.js slide shows).
6818 + Handle `data-background-image` attribute on section (#3979).
6820 * `Text.Pandoc.Parsing`:
6822 + Added `indentWith` (Alexander Krotov, #3687).
6823 + Added `stateCitations` to `ParserState`.
6824 + Removed `stateChapters` from `ParserState`.
6825 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
6826 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
6827 + Adjusted type of `insertIncludedFile` so it can be used with token
6829 + Replace old texmath macro stuff from Parsing. Use Macro from
6830 Text.Pandoc.Readers.LaTeX.Types instead.
6831 + Export `insertIncludedFile`.
6832 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
6833 + Replace partial with total function (Albert Krewinkel).
6834 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
6835 `insertIncludeFile` function is generalized to work with all parser
6836 states which are instances of that class.
6837 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
6838 The `insertIncludeFiles` function was generalized and renamed
6839 to `insertIncludedFiles'`; the specialized versions are based on that.
6840 + `many1Till`: Check for the end condition before parsing (Herwig
6841 Stuetz). By not checking for the end condition before the first
6842 parse, the parser was applied too often, consuming too much of the
6843 input. This only affects `many1Till p end` where `p` matches on a
6845 + Provide `parseFromString` (#3690). This is a version of
6846 `parseFromString` specialied to ParserState, which resets
6847 `stateLastStrPos` at the end. This is almost always what we want.
6848 This fixes a bug where `_hi_` wasn't treated as emphasis in the
6849 following, because pandoc got confused about the position of the
6850 last word: `- [o] _hi_`.
6851 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
6852 + Fix `blanklines` documentation (Alexander Krotov, #3843).
6853 + Give less misleading line information with `parseWithString`.
6854 Previously positions would be reported past the end of the chunk.
6855 We now reset the source position within the chunk and report
6856 positions "in chunk."
6857 + Add `anyLineNewline` (Alexander Krotov).
6858 + Provide shared F monad functions for Markdown and Org readers
6859 (Albert Krewinkel). The `F` monads used for delayed evaluation
6860 of certain values in the Markdown and Org readers are based on a
6861 shared data type capturing the common pattern of both `F` types.
6862 + Add `returnF` (Alexander Krotov).
6863 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
6864 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
6865 + Added `readerAbbreviations` to `ParserState`. Markdown reader
6866 now consults this to determine what is an abbreviation.
6867 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
6868 parsers for markdown and rst was combined into one single
6869 parser `gridTable`, slightly changing parsing behavior of both
6870 parsers: (1) The markdown parser now compactifies block content
6871 cell-wise: pure text blocks in cells are now treated as paragraphs
6872 only if the cell contains multiple paragraphs, and as plain blocks
6873 otherwise. Before, this was true only for single-column tables. (2)
6874 The rst parser now accepts newlines and multiple blocks in header
6876 + Generalize tableWith, gridTableWith (Albert Krewinkel).
6877 The parsing functions `tableWith` and `gridTableWith` are generalized
6878 to work with more parsers. The parser state only has to be an
6879 instance of the `HasOptions` class instead of requiring a concrete
6880 type. Block parsers are required to return blocks wrapped into a
6881 monad, as this makes it possible to use parsers returning results
6882 wrapped in `Future`s.
6884 * `Text.Pandoc.Shared`:
6886 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
6887 + `stringify`: handle Quoted better (#3958). Previously we were losing
6888 the quotation marks in Quoted elements.
6890 * `Text.Pandoc.Writers.Shared`:
6892 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
6893 This allows us to add the variables AFTER using the metadata
6894 to generate a YAML header (in the Markdown writer).
6895 + Added `unsmartify` (previously in RST writer).
6896 Undo literal double curly quotes. Previously we left these.
6897 + Generalize type of `metaToJSON` so it can take a Text. Previously a
6898 String was needed as argument; now any ToJSON instance will do.
6899 + Added `gridTable` (previously in Markdown writer).
6900 + `gridTable`: Refactored to use widths in chars.
6901 + `gridTable`: remove unnecessary extra space in cells.
6902 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
6903 values to become lists.
6904 + Pipe tables: impose minimum cell size (see #3526).
6907### Default template changes
6909 * HTML templates (including EPUB and HTML slide show templates):
6911 + Make default.html5 polyglot markup conformant (John Luke Bentley,
6912 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
6913 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
6914 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
6915 + Regularized CSS in html/epub/html slide templates (#3485).
6916 All templates now include `code{white-space: pre-wrap}`
6917 and CSS for `q` if `--html-q-tags` is used. Previously some templates
6918 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
6920 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
6921 + `default.revealjs`: make `history` default to true.
6922 + `default.revealjs`: use lazy loading (#2283).
6923 + `default.revealjs`: add `mathjax` variable and some conditional code
6924 to use the MathJaX plugin.
6925 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
6926 + `default.dzslides`: Load Google Font using HTTPS by default
6929 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
6932 * LaTeX/Beamer template:
6934 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
6935 `default.beamer` has been removed; beamer now uses the
6936 `default.latex` template. Beamer-specific parts are conditional
6937 on the `beamer` variable set by the writer. Note that
6938 `pandoc -D beamer` will return this (combined) template.
6939 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
6940 Beamer loads `xcolor` rather than `color`, and thus the
6941 `dvipsnames` option doesn't take effect. This also provides a wider
6942 range of colour selections with the `svgnames` option.
6943 + Use starred versions of `xcolor` names (Andrew Dunning).
6944 Prevents changes to documents defined using the `dvipsnames` list (e.g.
6945 `Blue` gives a different result with svgnames enabled).
6946 + Load `polyglossia` after header-includes (#3898). It needs to be
6947 loaded as late as possible.
6948 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
6950 + Don't load `fontspec` before `unicode-math` (over there).
6951 The `unicode-math` package loads `fontspec` so explict loading of
6952 `fontspec` before `unicode-math` is not necessary.
6953 + Use `unicode-math` by default in default.latex template. mathspec will
6954 be used in xelatex if the `mathspec` variable is set; otherwise
6955 unicode-math will be used (Václav Haisman).
6956 + Use `dvipsnames` options when `colorlinks` specified (otherwise
6957 we get an error for `maroon`) (Thomas Hodgson).
6958 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
6959 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
6960 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
6961 clash when loading a package (e.g. `tufte-latex`) that uses
6962 `hyperref` settings different from those in the template.
6963 + Add `natbiboptions` variable (#3768).
6964 + Fix links inside captions in LaTeX output with links-as-notes
6965 (Václav Haisman, #3651). Declare our redefined `\href` robust.
6966 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
6967 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
6968 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
6969 packages. Use existing `CJKmainfont` and `CJKoptions` template
6970 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
6971 and `luatexjapresetoptions` for `luatexja-preset`.
6972 + Added `aspectratio` variable to beamer template (Václav Haisman,
6974 + Modified template.latex to fix XeLaTex being used with tables
6975 (lwolfsonkin, #3661). Reordered `lang` variable handling to
6976 immediately before `bidi`.
6978 * ConTeXt template: Improved font handling: `simplefonts` is now
6979 obsolete in ConTeXt (Pablo Rodríguez).
6982### Documentation improvements
6986 + Add URL for Prince HTML > PDF engine (Ian, #3919).
6987 + Document that content above slide-level will be omitted in
6988 slide shows. See #3460, #2265.
6989 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
6990 + Small clarification in YAML metadata section.
6991 + Document that html4 is technically XHTML 1.0 transitional.
6992 + Remove refs to highlighting-kate (#3672).
6993 + Document ibooks specific epub metadata.
6994 + Clarify that mathml is used for ODT math.
6995 + Mention limitations of Literate Haskell Support (#3410,
6997 + Add documentation of limitations of grid tables (Stephen
6999 + Clarify that meta-json contains transformed values (Jakob Voß,
7000 #3491) Make clear that template variable `meta-json` does not
7001 contain plain text values or JSON output format but field values
7002 transformed to the selected output format.
7006 + Clarify that templates are dual-licensed.
7007 + Clarify that pandoc-types is BSD3 licensed.
7008 + List new files not written by jgm (Albert Krewinkel).
7009 + Update dates in copyright notices (Albert Krewinkel). This follows
7010 the suggestions given by the FSF for GPL licensed software.
7011 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
7015 + Improved instructions for tests with patterns.
7016 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
7020 + Fixed typos (Wandmalfarbe, #3479).
7021 + Add "ask on pandoc-discuss" (Mauro Bieg).
7023 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
7024 end of this document is autogenerated from `data/pandoc.lua`
7025 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
7028 * Add `doc/filters.md`. This is the old scripting tutorial from
7031 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
7032 to using pandoc as a Haskell library.
7035### Build infrastructure improvements
7037 * Removed `data/templates` submodule. Templates are now a subtree
7038 in `data/templates`. This removes the need to do `git submodule
7041 * Renamed `tests` -> `test`.
7043 * Remove `https` flag. Always build with HTTPS support.
7045 * Use `file-embed` instead of `hsb2hs` to embed data files when
7046 `embed_data_files` flag is set. `file-embed` gives us better dependency
7047 tracking: if a data file changes, ghc/stack/cabal know to recompile
7048 the Data module. This also removes `hsb2hs` as a build dependency.
7050 * Add `custom-setup` stanza to pandoc, lowercase field names.
7052 * Add `static` Cabal flag.
7054 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
7055 than -OSX. Changed local names from osx to macos.
7057 * make_macos_package.sh - Use strip to reduce executable size.
7059 * Revised binary linux package. Now a completely static executable
7060 is created, using Docker and alpine. We create both a deb and a
7061 tarball. The old `deb` directory has been replaced with a `linux`
7062 directory. Running `make` in the `linux` directory should
7063 perform the build, putting the binary packages in `artifacts/`.
7065 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
7066 pandoc-data packages will be uninstalled; this package provides
7067 both (#3822). Add latex packages as 'suggested', update
7070 * Remove cpphs build requirement -- it is no longer needed.
7072 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
7074 * Name change OSX -> macOS (ickc, #3869).
7076 * Fix casing of Linux, UNIX, and Windows (ickc).
7078 * `.travis.yml`: create a source dist and do cabal build and test there.
7079 That way we catch errors due to files missing from the data
7080 section of pandoc.cabal.
7084 + Split `make haddock` from `make full`.
7085 + Add BRANCH variable for winpkg.
7086 + Add `lint` target.
7087 + Improve `make full`. Disable optimizations.
7088 Build everything, inc. trypandoc and benchmarks. Use parallel build.
7089 + Allow `make test` to take `TESTARGS`.
7091 * Added new command tests (`Tests.Command`), using small text files
7092 in `test/command/`. Any files added in this directory will be treated
7093 as shell tests (see smart.md for an example). This makes it very easy
7094 to add regression tests etc.
7096 * Test fixes so we can find data files. In old tests & command tests,
7097 we now set the environment variable `pandoc_datadir`. In lua tests,
7098 we set the datadir explicitly.
7100 * Refactored `compareOutput` in docx writer test.
7102 * Consolidated some common functions in `Tests.Helper`.
7104 * Small change to unbalanced bracket test to speed up test suite.
7106 * Speed up Native writer quickcheck tests.
7108 * Use tasty for tests rather than test-framework.
7110 * Add simple Emacs mode to help with Pandoc templates editing.
7111 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
7114## pandoc 1.19.2.4 (2017-09-10)
7116 * Add dependencies on texmath and skylighting to the executable.
7117 This is needed for dependency version numbers to be available,
7120## pandoc 1.19.2.3 (2017-09-09)
7122 * Add CPP to Setup.hs so it works with Cabal >= 2 and < 2.
7124## pandoc 1.19.2.2 (2017-09-08)
7126 * Fix build with GHC 8.2.1 (#3876, Peter Simons). Setup.hs does not
7127 compile with Cabal 2.x, so we require an earlier version via
7128 setup-depends. The following packages need newer versions with
7129 GHC 8.2.1 and had their constraints relaxed accordingly:
7130 executable-path, process, syb, and time.
7132## pandoc 1.19.2.1 (2017-01-31)
7134 * Require skylighting >= 0.1.1.4.
7135 * Adjust test output for skylighting version.
7136 * Relax upper bounds on blaze-html and blaze-markup.
7138## pandoc 1.19.2 (2017-01-29)
7140 * Use skylighting library instead of highlighting-kate for syntax
7141 highlighting. Skylighting is faster and more accurate (#3363).
7142 Later we'll be able to add features like warning messages, dynamic
7143 loading of xml syntax definitions, and dynamic loading of themes.
7145 * Added a new highlight style, `breezeDark`.
7147 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
7148 This allows more languages to be used when using the `--listings`
7151 * OpenDocument writer:
7153 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
7154 + Don't profilerate text styles unnecessarily (#3371).
7155 This change makes the writer create only as many temporary
7156 text styles as are absolutely necessary. It also consolidates
7157 adjacent nodes with the same style.
7159 * Org reader (Albert Krewinkel):
7161 + Allow short hand for single-line raw blocks (Albert Krewinkel,
7162 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
7163 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
7164 + Accept org-ref citations followed by commas (Albert Krewinkel).
7165 Bugfix for an issue which, whenever the citation was immediately
7166 followed by a comma, prevented correct parsing of org-ref citations.
7167 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
7168 `/*strong and emphasized*/`) was interpreted incorrectly in that the
7169 inner markup was not recognized.
7170 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
7172 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
7173 In the past, the docx reader wrote an empty header as an empty list. It
7174 should have the same width as a row (and be filled with empty cells).
7178 + Improved handling of display math (#3362). Sometimes display math is
7179 indented with more than one colon. Previously we handled these cases
7180 badly, generating definition lists and missing the math.
7181 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
7182 behavior when the smart option is parsed to match other readers'
7187 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
7188 (#3341). Previously this did not properly enable escaped line breaks.
7189 + Disallow space between inline code and attributes (#3326, #3323,
7192 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
7194 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
7196 * LaTeX writer: allow tables with empty cells to count as "plain."
7197 This addresses a problem of too-wide tables when empty cells
7198 are used. Thanks to Joost Kremers for reporting the issue.
7200 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
7201 Unprefixed numbers where used by older org-mode versions, but are no
7204 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
7207 * Markdown writer: Fix display math with `--webtex` (#3298).
7209 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
7214 + default.latex: Moved geometry after hyperref (Václav Haisman).
7215 Otherwise PDF sizes can be wrong in some circumstances.
7216 + Copied a few changes from default.latex to default.beamer
7218 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
7219 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
7220 that contain verbatim in notes (#3361). (Note: the beamer template
7221 was updated to match the LaTeX template, but at this point verbatim
7222 in notes seems not to work in beamer.)
7223 + default.latex: Allow passing `microtypeoptions` to microtype
7225 + default.latex: Add hyphen option to url package.
7226 + default.docbook5: Fix namespace declarations (Mauro Bieg).
7228 * Moved `make_osx_package.sh` to `osx/` directory.
7230 * Travis continuous integration:
7232 + Fix false positives with dist build.
7233 + Speed improvements (Kolen Cheung, #3304, #3357).
7237 + Clarify that blank space is needed around footnotes (#3352).
7238 + Fixed typo (#3351, Alexey Rogechev).
7239 + Note that `--wrap=auto` does not work in HTML output.
7240 + Default `--columns` width is 72, not 80.
7241 + Fixed broken links (#3316, Kolen Cheung).
7242 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
7246 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
7247 + Added instructions for extracting binary from OSX, Windows packages.
7249 * CONTRIBUTING.md: Describe labels currently used in issue tracker
7250 (Albert Krewinkel). The labels have changed over time, the list of
7251 labels is updated to reflect the current set of labels used in the
7254 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
7256 * Bumped version bounds for dependencies.
7259## pandoc 1.19.1 (2016-12-10)
7261 * Set `PANDOC_VERSION` environment variable for filters (#2640).
7262 This allows filters to check the pandoc version that produced
7263 the JSON they are receiving.
7265 * Docx reader: Ensure one-row tables don't have header (#3285,
7266 Jesse Rosenthal). Tables in MS Word are set by default to have
7267 special first-row formatting, which pandoc uses to determine whether
7268 or not they have a header. This means that one-row tables will, by
7269 default, have only a header -- which we imagine is not what people
7270 want. This change ensures that a one-row table is not understood to
7271 be a header only. Note that this means that it is impossible to
7272 produce a header-only table from docx, even though it is legal
7273 pandoc. But we believe that in nearly all cases, it will be an
7274 accidental (and unwelcome) result
7278 + Fixed some bad regressions in HTML table parser (#3280).
7279 This regression leads to the introduction of empty rows
7280 in some circumstances.
7281 + Understand `style=width:` as well as `width` in `col` (#3286).
7285 + Print warnings when keys, substitition, notes not found.
7286 Previously the parsers failed and we got raw text. Now we get a
7287 link with an empty URL, or empty inlines in the case of a note or
7290 + Fix hyperlink aliases (#3283).
7292 * Man writer: Ensure that periods are escaped at beginning of line
7295 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
7296 (#3272, Albert Krewinkel). Fix interaction of top-level
7297 divisions `part` or `chapter` with unnumbered headers when
7298 emitting LaTeX. Headers are ensured to be written using
7299 stared commands (like `\subsection*{}`).
7301 * LaTeX template: use comma not semicolon to separate keywords for
7302 `pdfkeywords`. Thanks to Wandmalfarbe.
7304 * Markdown writer: Fixed incorrect word wrapping (#3277).
7305 Previously pandoc would sometimes wrap lines too early due to
7308 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
7309 possible to insert escape codes for content that needs escaping at the
7310 beginning of a line.
7312 * Removed old MathMLInHTML.js from 2004, which should no longer
7313 be needed for MathML with modern browsers.
7315 * Fixed tests with dynamic linking (#2709).
7317 * Makefile: Use stack instead of cabal for targets. This is just
7318 a convenience for developers.
7320 * Fixed bash completion of filenames with space (#2749).
7322 * MANUAL: improved documentation on how to create a custom
7325 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
7327## pandoc 1.19 (2016-12-01)
7329 * Changed resolution of filter paths.
7331 + We now first treat the argument of `--filter` as a full (absolute
7332 or relative) path, looking for a program there. If it's found, we
7334 + If not, and if it is a simple program name or a relative path, we
7335 try resolving it relative to `$DATADIR/filters`.
7336 + If this fails, then we treat it as a program name and look in the
7338 + Removed a hardcoded '/' that may have caused problems with
7341 Previously if you did `--filter foo` and you had `foo` in your path and
7342 also an executable `foo` in your working directory, the one in the path
7343 would be used. Now the one in the working directory is used.
7345 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
7346 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
7347 `foo/bar.hs` relative to the working directory.
7349 * Allow `file://` URIs as arguments (#3196). Also improved default reader
7350 format detection. Previously with a URI ending in .md or .markdown,
7351 pandoc would assume HTML input. Now it treats these as markdown.
7353 * Allow to overwrite top-level division type heuristics (#3258,
7354 Albert Krewinkel). Pandoc uses heuristics to determine the most
7355 reasonable top-level division type when emitting LaTeX or
7356 Docbook markup. It is now possible to overwrite this implicitly set
7357 top-level division via the `top-level-division` command line parameter.
7359 * Text.Pandoc.Options \[API changes\]:
7361 + Removed `writerStandalone` field in `WriterOptions`, made
7362 `writerTemplate` a `Maybe` value. Previously setting
7363 `writerStandalone = True` did nothing unless a template was provided
7364 in writerTemplate. Now a fragment will be generated if
7365 `writerTemplate` is `Nothing`; otherwise, the specified template
7366 will be used and standalone output generated.
7367 + `Division` has been renamed `TopLevelDivision` (#3197). The
7368 `Section`, `Chapter`, and `Part` constructors were renamed to
7369 `TopLevelSection`, `TopLevelChapter`, and
7370 `TopLevelPart`, respectively. An additional `TopLevelDefault`
7371 constructor was added, which is now also the new default value of
7372 the `writerTopLevelDivision` field in `WriterOptions`.
7374 * Improved error if they give wrong arg to `--top-level-division`.
7376 * Use new module from texmath to lookup MS font codepoints in Docx reader.
7377 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
7378 lives in texmath (0.9).
7380 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
7381 when the qnames lacked the docbook namespace URI.
7385 + Improved table parsing (#3027). We now check explicitly for non-1
7386 rowspan or colspan attributes, and fail when we encounter them.
7387 Previously we checked that each row had the same number of cells,
7388 but that could be true even with rowspans/colspans. And there are
7389 cases where it isn't true in tables that we can handle fine -- e.g.
7390 when a tr element is empty. So now we just pad rows with empty cells
7392 + Treat `<math>` as MathML by default unless something else is
7393 explicitly specified in xmlns. Provided it parses as MathML,
7394 of course. Also fixed default which should be to inline math if no
7395 display attribute is used.
7396 + Only treat "a" element as link if it has href (#3226). Otherwise
7399 * Docx reader (Jesse Rosenthal):
7401 + Add a placeholder value for CHART. We wrap `[CHART]` in a
7402 `<span class="chart">`. Note that it maps to inlines because, in
7403 docx, anything in a drawing tag can be part of a larger paragraph.
7404 + Be more specific in parsing images We not only want `w:drawing`,
7405 because that could also include charts. Now we specify
7406 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
7407 a first step toward allowing other sorts of drawing data as well.
7408 + Abstract out function to avoid code repetition.
7409 + Update tests for img title and alt (#3204).
7410 + Handle Alt text and titles in images. We use the "description" field
7411 as alt text and the "title" field as title. These can be accessed
7412 through the "Format Picture" dialog in Word.
7413 + Docx reader utils: handle empty namespace in `elemName`. Previously,
7414 if given an empty namespace `(elemName ns "" "foo")` `elemName`
7415 would output a QName with a `Just ""` namespace. This is never what
7416 we want. Now we output a `Nothing`. If someone *does* want a
7417 `Just ""` in the namespace, they can enter the QName
7420 * ODT reader/writer:
7422 + Inline code when text has a special style (Hubert Plociniczak). When
7423 a piece of text has a text `Source_Text` then we assume that this is
7424 a piece of the document that represents a code that needs to
7425 be inlined. Adapted the writer to also reflect that change.
7426 Previously it was just writing a 'preformatted' text using a
7427 non-distinguishable font style. Code blocks are still not recognized
7428 by the ODT reader. That's a separate issue.
7429 + Infer table's caption from the paragraph (#3224,
7430 Hubert Plociniczak). ODT's reader always put empty captions for the
7431 parsed tables. This commit
7433 1. checks paragraphs that follow the table definition
7434 2. treats specially a paragraph with a style named 'Table'
7435 3. does some postprocessing of the paragraphs that combines tables
7436 followed immediately by captions
7438 The ODT writer used the `TableCaption` style for the caption
7439 paragraph. This commit follows the OpenOffice approach which allows
7440 for appending captions to table but uses a built-in style named
7441 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
7442 should change the style's name from `TableCaption` to `Table`.
7444 * ODT reader: Infer tables' header props from rows (#3199,
7445 Hubert Plociniczak). ODT reader simply provided an empty header list
7446 which meant that the contents of the whole table, even if not empty, was
7447 simply ignored. While we still do not infer headers we at least have to
7448 provide default properties of columns.
7452 + Allow reference link labels starting with `@...` if `citations`
7453 extension disabled (#3209). Example: in
7457 `link text` isn't hyperlinked because `[@a]` is parsed as
7458 a citation. Previously this happened whether or not the `citations`
7459 extension was enabled. Now it happens only if the `citations`
7460 extension is enabled.
7461 + Allow alignments to be specified in Markdown grid tables. For
7464 +-------+---------------+--------------------+
7465 | Right | Left | Centered |
7466 +=========:+:=================+:=============:+
7467 | Bananas | $1.34 | built-in wrapper |
7468 +-------+---------------+--------------------+
7470 + Allow Small Caps elements to be created using bracketed spans (as
7471 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
7475 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
7476 Fixed an error which came up, for example, with `\vspace` inside
7477 a caption. (Captions expect inlines.)
7478 + Improved table handling. We can now parse all of the tables emitted
7479 by pandoc in our tests. The only thing we don't get yet are
7480 alignments and column widths in more complex tables. See #2669.
7481 + Limited support for minipage.
7482 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
7483 + Handle BVerbatim from fancyvrb (#3203).
7484 + Handle hungarumlaut (#3201).
7485 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
7486 (#3184). This allows use of things like `\only<2,3>{my content}` in
7487 Markdown that is going to be converted to beamer.
7489 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
7490 overly long code will appear on every slide.
7492 * Org reader (Albert Krewinkel):
7494 + Respect column width settings (#3246). Table column properties can
7495 optionally specify a column's width with which it is displayed in
7496 the buffer. Some exporters, notably the ODT exporter in org-mode
7497 v9.0, use these values to calculate relative column widths. The org
7498 reader now implements the same behavior. Note that the org-mode
7499 LaTeX and HTML exporters in Emacs don't support this feature yet,
7500 which should be kept in mind by users who use the column
7502 + Allow HTML attribs on non-figure images (#3222). Images which are
7503 the only element in a paragraph can still be given HTML attributes,
7504 even if the image does not have a caption and is hence not a figure.
7505 The following will add set the `width` attribute of the image to
7508 +ATTR\_HTML: :width 50%
7509 =======================
7511 \[\[file:image.jpg\]\]
7513 + Support `ATTR_HTML` for special blocks (#3182). Special
7514 blocks (i.e. blocks with unrecognized names) can be prefixed with an
7515 `ATTR_HTML` block attribute. The attributes defined in that
7516 meta-directive are added to the `Div` which is used to represent the
7518 + Support the `todo` export option. The `todo` export option allows to
7519 toggle the inclusion of TODO keywords in the output. Setting this to
7520 `nil` causes TODO keywords to be dropped from headlines. The default
7521 is to include the keywords.
7522 + Add support for todo-markers. Headlines can have optional
7523 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
7524 or `#+TYP_TODO` meta directive. Multiple such directives can be
7525 given, each adding a new set of recognized todo-markers. If no
7526 custom todo-markers are defined, the default `TODO` and `DONE`
7527 markers are used. Todo-markers are conceptually separate from
7528 headline text and are hence excluded when autogenerating
7529 headline IDs. The markers are rendered as spans and labelled with
7530 two classes: One class is the markers name, the other signals the
7531 todo-state of the marker (either `todo` or `done`).
7535 + Use `\autocites*` when "suppress-author" citation used.
7536 + Ensure that simple tables have simple cells (#2666). If cells
7537 contain more than a single Plain or Para, then we need to set
7538 nonzero widths and put contents into minipages.
7539 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
7543 + Fix calculation of column widths for aligned multiline tables
7544 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
7545 usage for tables when `--columns` is set in such a way that cells
7546 must be very tiny. Now cells are guaranteed to be big enough so that
7547 single words don't need to line break, even if this pushes the line
7548 length above the column width.
7549 + Use bracketed form for native spans when `bracketed_spans`
7551 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
7552 sublist got rendered with a blank line after, while a tight ordered
7553 sublist did not. Now we don't get the blank line in either case.
7554 + Fix escaping of spaces in super/subscript (#3225). Previously two
7555 backslashes were inserted, which gave a literal backslash.
7556 + Adjust widths in Markdown grid tables so that they match
7561 + Give full detail when there are errors converting tex math.
7562 + Handle title text in images (Jesse Rosenthal). We already handled
7563 alt text. This just puts the image "title" into the docx
7565 + Fixed XML markup for empty cells (#3238). Previously the Compact
7566 style wasn't being applied properly to empty cells.
7570 + Updated `renderHtml` import from blaze-html.
7572 * Text.Pandoc.Pretty:
7574 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
7575 caused spurious blank lines in grid tables when we had things like
7576 `blankline $$ blankline`.
7577 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
7578 + Added error message for illegal call to `block` (Björn Peemöller).
7580 * Text.Pandoc.Shared:
7582 + Put `warn` in MonadIO.
7583 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
7584 URL starts with `//` and there is no "base URL" (as there would be
7585 if a URL were used on the command line), then default to http:.
7587 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
7589 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
7590 fixes a crash with `pandoc --version` on unusual systems with no real
7591 user (e.g. SQL Server 2016).
7593 * Added weigh-pandoc for memory usage diagnostics (#3169).
7595 * Use correct mime types for woff and woff2 (#3228).
7597 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
7599 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
7600 1.18 section where it belongs.
7602 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
7605 * Further revisions to manual for `--version` changes (#3244).
7609## pandoc 1.18 (2016-10-26)
7611 * Added `--list-input-formats`, `--list-output-formats`,
7612 `--list-extensions`, `--list-highlight-languages`, and
7613 `--list-highlight-styles` (#3173). Removed list of highlighting
7614 languages from `--version` output. Removed list of input and output
7615 formats from default `--help` output.
7617 * Added `--reference-location=block|section|document` option
7618 (Jesse Rosenthal). This determines whether Markdown link references
7619 and footnotes are placed at the end of the document, the end of the
7620 section, or the end of the top-level block.
7622 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
7623 This determines what a level-1 header corresponds to in LaTeX,
7624 ConTeXt, DocBook, and TEI output. The default is `section`.
7625 The `--chapters` option has been deprecated in favor of
7626 `--top-level-division=chapter`.
7628 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
7629 is now used in parsing RST and Markdown line blocks, DocBook
7630 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
7631 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
7632 are handled specially in the following ouput formats: AsciiDoc
7633 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
7634 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
7635 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
7636 other output formats, a paragraph with hard linebreaks is emitted.
7638 * Allow binary formats to be written to stdout (but not to tty) (#2677).
7639 Only works on posix, since we use the unix library to check whether
7640 output is to tty. On Windows, pandoc works as before and always requires
7641 an output file parameter for binary formats.
7643 * Changed JSON output format (Jesse Rosenthal). Previously we used
7644 generically generated JSON, but this was subject to change depending
7645 on the version of aeson pandoc was compiled with. To ensure stability,
7646 we switched to using manually written ToJSON and FromJSON
7647 instances, and encoding the API version. **Note:** pandoc filter
7648 libraries will need to be revised to handle the format change.
7649 Here is a summary of the essential changes:
7651 + The toplevel JSON format is now `{"pandoc-api-version" :
7652 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
7653 instead of `[{"unMeta": META}, [BLOCKS]]`.
7654 Decoding fails if the major and minor version numbers don't
7656 + Leaf nodes no longer have an empty array for their "c" value.
7657 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
7658 rather than `{"t":"Space","c":[]}` as before.
7660 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
7661 module to pandoc-types (Jesse Rosenthal). This makes it easier
7662 to use QuickCheck with pandoc types outside of pandoc itself.
7664 * Add `bracketed_spans` Markdown extension, enabled by default
7665 in pandoc `markdown`. This allows you to create a native span
7666 using this syntax: `[Here is my span]{#id .class key="val"}`.
7668 * Added `angle_brackets_escapable` Markdown extension (#2846).
7669 This is needed because github flavored Markdown has a slightly
7670 different set of escapable symbols than original Markdown;
7671 it includes angle brackets.
7673 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
7675 * Print highlighting-kate version in `--version`.
7677 * `Text.Pandoc.Options`:
7679 + `Extension` has new constructors `Ext_brackted_spans` and
7680 `Ext_angle_brackets_escapable` [API change].
7681 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
7682 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
7685 * `--filter`: we now check `$DATADIR/filters` for filters before
7686 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
7687 Voß for the idea). Filters placed in this directory need not
7688 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
7689 or `.rb`, pandoc will run the right interpreter.
7691 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
7692 default (Kolen Cheung).
7694 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
7696 * Execute .js filters with node (Jakob Voß).
7700 + Support `bc..` extended code blocks (#3037). Also, remove trailing
7701 newline in code blocks (consistently with Markdown reader).
7702 + Improve table parsing. We now handle cell and row attributes, mostly
7703 by skipping them. However, alignments are now handled properly.
7704 Since in pandoc alignment is per-column, not per-cell, we
7705 try to devine column alignments from cell alignments.
7706 Table captions are also now parsed, and textile indicators
7707 for thead and tfoot no longer cause parse failure. (However,
7708 a row designated as tfoot will just be a regular row in pandoc.)
7709 + Improve definition list parsing. We now allow multiple terms
7710 (which we concatenate with linebreaks). An exponential parsing
7711 bug (#3020) is also fixed.
7712 + Disallow empty URL in explicit link (#3036).
7716 + Use Div instead of BlockQuote for admonitions (#3031).
7717 The Div has class `admonition` and (if relevant) one of the
7718 following: `attention`, `caution`, `danger`, `error`, `hint`,
7719 `important`, `note`, `tip`, `warning`. **Note:** This will change
7720 the rendering of some RST documents! The word ("Warning", "Attention",
7721 etc.) is no longer added; that must be done with CSS or a filter.
7722 + A Div is now used for `sidebar` as well.
7723 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
7724 space before a footnote marker. We discard those spaces so that footnotes
7725 will be adjacent to the text that comes before it. This is in line with
7726 what rst2latex does.
7727 + Allow empty lines when parsing line blocks (Albert Krewinkel).
7731 + Allow empty lines when parsing line blocks (Albert Krewinkel).
7732 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
7736 + More robust parsing of unknown environments (#3026).
7737 We no longer fail on things like `^` inside options for tikz.
7738 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
7739 Some custom environments give these a meaning, so we should try not to
7740 fall over when we encounter them.
7741 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
7745 + Fix for unquoted attribute values in mediawiki tables (#3053).
7746 Previously an unquoted attribute value in a table row
7747 could cause parsing problems.
7748 + Improved treatment of verbatim constructions (#3055).
7749 Previously these yielded strings of alternating Code and Space
7750 elements; we now incorporate the spaces into the Code. Emphasis
7751 etc. is still possible inside these.
7752 + Properly interpret XML tags in pre environments (#3042). They are meant
7753 to be interpreted as literal text.
7755 * EPUB reader: don't add root path to data: URIs (#3150).
7756 Thanks to @lep for the bug report and patch.
7758 * Org reader (Albert Krewinkel):
7760 + Preserve indentation of verse lines (#3064). Leading spaces in verse
7761 lines are converted to non-breaking spaces, so indentation is preserved.
7762 + Ensure image sources are proper links. Image sources as those in plain
7763 images, image links, or figures, must be proper URIs or relative file
7764 paths to be recognized as images. This restriction is now enforced
7765 for all image sources. This also fixes the reader's usage of uncleaned
7766 image sources, leading to `file:` prefixes not being deleted from
7767 figure images. Thanks to @bsag for noticing this bug.
7768 + Trim verse lines properly (Albert Krewinkel).
7769 + Extract meta parsing code to module. Parsing of meta-data is well
7770 separable from other block parsing tasks. Moving into new module to
7771 get small files and clearly arranged code.
7772 + Read markup only for special meta keys. Most meta-keys should be read
7773 as normal string values, only a few are interpreted as marked-up text.
7774 + Allow multiple, comma-separated authors. Multiple authors can be
7775 specified in the `#+AUTHOR` meta line if they are given as a
7776 comma-separated list.
7777 + Give precedence to later meta lines. The last meta-line of any given
7778 type is the significant line. Previously the value of the first line
7779 was kept, even if more lines of the same type were encounterd.
7780 + Read LaTeX_header as header-includes. LaTeX-specific header commands
7781 can be defined in `#+LaTeX_header` lines. They are parsed as
7782 format-specific inlines to ensure that they will only show up in LaTeX
7784 + Set documentclass meta from LaTeX_class.
7785 + Set classoption meta from LaTeX_class_options.
7786 + Read HTML_head as header-includes. HTML-specific head content can be
7787 defined in `#+HTML_head` lines. They are parsed as format-specific
7788 inlines to ensure that they will only show up in HTML output.
7789 + Respect `author` export option. The `author` option controls whether
7790 the author should be included in the final markup. Setting
7791 `#+OPTIONS: author:nil` will drop the author from the final meta-data
7793 + Respect `email` export option. The `email` option controls whether the
7794 email meta-field should be included in the final markup. Setting
7795 `#+OPTIONS: email:nil` will drop the email field from the final
7797 + Respect `creator` export option. The `creator` option controls whether
7798 the creator meta-field should be included in the final markup. Setting
7799 `#+OPTIONS: creator:nil` will drop the creator field from the final
7800 meta-data output. Org-mode recognizes the special value `comment` for
7801 this field, causing the creator to be included in a comment. This is
7802 difficult to translate to Pandoc internals and is hence interpreted the
7803 same as other truish values (i.e. the meta field is kept if it's
7805 + Respect unnumbered header property (#3095). Sections the `unnumbered`
7806 property should, as the name implies, be excluded from the automatic
7807 numbering of section provided by some output formats. The Pandoc
7808 convention for this is to add an "unnumbered" class to the header. The
7809 reader treats properties as key-value pairs per default, so a special
7810 case is added to translate the above property to a class instead.
7811 + Allow figure with empty caption (Albert Krewinkel, #3161).
7812 A `#+CAPTION` attribute before an image is enough to turn an image into
7813 a figure. This wasn't the case because the `parseFromString` function,
7814 which processes the caption value, would fail on empty values. Adding
7815 a newline character to the caption value fixes this.
7819 + Use XML convenience functions (Jesse Rosenthal).
7820 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
7821 the code a lot cleaner than the original XML.Light functions, but they
7822 had been used inconsistently. This puts them in wherever applicable.
7823 + Handle anchor spans with content in headers. Previously, we would only
7824 be able to figure out internal links to a header in a docx if the
7825 anchor span was empty. We change that to read the inlines out of the
7826 first anchor span in a header.
7827 + Let headers use exisiting id. Previously we always generated an id for
7828 headers (since they wouldn't bring one from Docx). Now we let it use an
7829 existing one if possible. This should allow us to recurs through anchor
7831 + Use all anchor spans for header ids. Previously we only used the first
7832 anchor span to affect header ids. This allows us to use all the anchor
7833 spans in a header, whether they're nested or not (#3088).
7834 + Test for nested anchor spans in header. This ensures that anchor spans
7835 in header with content (or with other anchor spans inside) will resolve
7836 to links to a header id properly.
7838 * ODT reader (Hubert Plociniczak)
7840 + Include list's starting value. Previously the starting value of
7841 the lists' items has been hardcoded to 1. In reality ODT's list
7842 style definition can provide a new starting value in one of its
7844 + Infer caption from the text following the image.
7845 Frame can contain other frames with the text boxes.
7846 + Add `fig:` to title for Image with a caption (as expected
7847 by pandoc's writers).
7848 + Basic support for images in ODT documents.
7849 + Don't duplicate text for anchors (#3143). When creating an anchor
7850 element we were adding its representation as well as the original
7851 content, leading to text duplication.
7855 + Include an anchor element when a div or span has an id (#3102).
7856 Note that DocBook does not have a class attribute, but at least this
7857 provides an anchor for internal links.
7861 + Don't use * for unnumbered paragraph, subparagraph. The starred
7862 variants don't exist. This helps with part of #3058...it gets rid of
7863 the spurious `*`s. But we still have numbers on the 4th and 5th level
7865 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
7866 Otherwise they can cause unintended ligatures like `` ?` ``.
7867 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
7868 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
7869 This allows figure placement defaults to be changed by the user
7872 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
7873 TEI doesn't have `<book>` elements but only generic `<divN>` division
7874 elements. Checking the template for a trailing `</book>` is nonsensical.
7876 * MediaWiki writer: transform filename with underscores in images (#3052).
7877 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
7878 for internal links, but it also needs to happen for images.
7880 * ICML writer: replace partial function (!!) in table handling (#3175,
7883 * Man writer: allow section numbers that are not a single digit (#3089).
7885 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
7886 (#3068). In AsciiDoc, you must use a special form of emphasis
7887 (double `__`) for intraword emphasis. Pandoc was previously using
7888 this more than necessary.
7890 * EPUB writer: use stringify instead of plain writer for metadata
7891 (#3066). This means that underscores won't be used for emphasis,
7892 or CAPS for bold. The metadata fields will just have unadorned
7897 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
7898 with a `custom-style` key in the attributes will apply the corresponding
7899 key to the contained blocks or inlines.
7900 + Add ReaderT env to the docx writer (Jesse Rosenthal).
7901 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
7902 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
7903 on the command line. For finer-grained control, you can set
7904 the `dir` attribute in Div or Span elements.
7906 * Org writer (Albert Krewinkel):
7908 + Remove blank line after figure caption. Org-mode only treats an image
7909 as a figure if it is directly preceded by a caption.
7910 + Ensure blank line after figure. An Org-mode figure should be surrounded
7911 by blank lines. The figure would be recognized regardless, but images
7912 in the following line would unintentionally be treated as figures as
7914 + Ensure link targets are paths or URLs. Org-mode treats links as
7915 document internal searches unless the link target looks like a URL or
7916 file path, either relative or absolute. This change ensures that this
7918 + Translate language identifiers. Pandoc and Org-mode use different
7919 programming language identifiers. An additional translation between
7920 those identifiers is added to avoid unexpected behavior. This fixes a
7921 problem where language specific source code would sometimes be output
7923 + Drop space before footnote markers (Albert Krewinkel, #3162).
7924 The writer no longer adds an extra space before footnote markers.
7928 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
7929 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
7931 + Check for the `raw_html` extension before emitting a raw HTML block.
7932 + Abstract out note/ref function (Jesse Rosenthal).
7933 + Add ReaderT monad for environment variables (Jesse Rosenthal).
7935 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
7936 subtitle, author, date (#3119). Note that, as a result of this change,
7937 authors may need to update CSS.
7939 * revealjs template: Added `notes-server` option
7940 (jgm/pandoc-templates#212, Yoan Blanc).
7944 + Restore whitespace between paragraphs. This was
7945 a regression in the last release (jgm/pandoc-templates#207).
7946 + Added `themeoptions` variable (Carsten Gips).
7947 + Added `beamerarticle` variable. This causes the `beamerarticle`
7948 package to be loaded in beamer, to produce an article from beamer
7949 slides. (Carsten Gips)
7950 + Added support for `fontfamilies` structured variable
7952 + Added hypersetup options (Jake Zimmerman).
7956 + Added dummy definition for `\institute`.
7957 This isn't a standard command, and we want to avoid a crash when
7958 `institute` is used with the default template.
7959 + Define default figure placement (Václav Haisman), since pandoc
7960 no longer includes `[htbp]` for figures. Users with custom templates
7961 will want to add this. See #3103.
7962 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
7965 * Moved template compiling/rendering code to a separate library.
7966 `doctemplates`. This allows the pandoc templating system to be
7969 * Text.Pandoc.Error: Fix out of index error in `handleError`
7970 (Matthew Pickering). The fix is to not try to show the exact line when
7971 it would cause an out-of-bounds error as a result of included files.
7973 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
7975 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
7976 addresses. Technically `**@user` is a valid email address, but if we
7977 allow things like this, we get bad results in markdown flavors
7978 that autolink raw email addresses (see #2940). So we exclude a few
7979 valid email addresses in order to avoid these more common bad cases.
7981 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
7982 emit the alt text, emphasized. This accords with what the ODT writer
7983 currently does. The user will still get a warning about a nonexistent
7986 * Fix example in API documentation (#3176, Thomas Weißschuh).
7988 * Tell where to get tarball in INSTALL (#3062).
7990 * Rename README to MANUAL.txt and add GitHub-friendly README.md
7991 (Albert Krewinkel, Kolen Cheung).
7993 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
7997 + Put note on structured vars in separate paragraph (#2148, Albert
7998 Krewinkel). Make it clearer that structured author variables require a
8000 + Note that `--katex` works best with `html5` (#3077).
8001 + Fix the LaTeX and EPUB links in manual (Morton Fox).
8002 + Document `biblio-title` variable.
8004 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
8006 * Update KaTeX to v0.6.0 (Kolen Cheung).
8008 * Allow latest dependencies.
8010 * Use texmath 0.8.6.6 (#3040).
8012 * Allow http-client 0.4.30, which is the version in stackage lts.
8013 Previously we required 0.5.
8014 Remove CPP conditionals for earlier versions.
8016 * Remove support for GHC < 7.8 (Jesse Rosenthal).
8018 + Remove Compat.Monoid.
8019 + Remove an inline monad compatibility macro.
8020 + Remove Text.Pandoc.Compat.Except.
8021 + Remove directory compat.
8022 + Change constraint on mtl.
8023 + Remove unnecessary CPP condition in UTF8.
8024 + Bump base lower bound to 4.7.
8025 + Remove 7.6 build from .travis.yaml.
8026 + Bump supported ghc version in CONTRIBUTING.md.
8027 + Add note about GHC version support to INSTALL.
8028 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
8029 + Remove TagSoup compat.
8030 + Add EOL note to time compat module. Because time 1.4 is a boot library
8031 for GHC 7.8, we will support the compatibility module as long as we
8032 support 7.8. But we should be clear about when we will no longer need
8034 + Remove blaze-html CPP conditional.
8035 + Remove unnecessary CPP in custom Prelude.
8037## pandoc 1.17.2 (2016-07-17)
8039 * Added Zim Wiki writer, template and tests. `zimwiki` is now
8040 a valid output format. (Alex Ivkin)
8042 * Changed email-obfuscation default to no obfuscation (#2988).
8043 + `writerEmailObfuscation` in `defaultWriterOptions` is now
8045 + the default for the command-line `--email-obfuscation` option is
8048 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
8052 + Support arbitrary raw inlines (Albert Krewinkel).
8053 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
8054 parlance) to be included as `@@format:raw foreign format text@@`.
8055 + Improve Div handling (Albert Krewinkel). Div blocks handling is
8056 changed to make the output look more like idiomatic org mode:
8057 - Div-wrapped content is output as-is if the div's attribute is the
8059 - Div containers with an id but neither classes nor key-value pairs
8060 are unwrapped and the id is added as an anchor.
8061 - Divs with classes associated with greater block elements are
8062 wrapped in a `#+BEGIN`...`#+END` block.
8063 - The old behavior for Divs with more complex attributes is kept.
8065 * HTML writer: Better support for raw LaTeX environments (#2758).
8066 Previously we just passed all raw TeX through when MathJax
8067 was used for HTML math. This passed through too much.
8068 With this patch, only raw LaTeX environments that MathJax
8069 can handle get passed through.
8070 This patch also causes raw LaTeX environments to be treated
8071 as math, when possible, with MathML and WebTeX output.
8073 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
8074 (#2993). Markdown line breaks involve a newline, and simple and pipe
8075 tables can't contain one.
8077 * Make --webtex work with the Markdown writer (#1177).
8078 This is a convenient option for people using
8079 websites whose Markdown flavors don't provide for math.
8083 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
8084 We treat display math like block quotes, and apply FirstParagraph style
8085 to paragraphs that follow them. These can be styled as the user
8086 wishes. (But, when the user is using indentation, this allows for
8087 paragraphs to continue after display math without indentation.)
8088 + Use actual creation time as doc prop (Jesse Rosenthal).
8089 Previously, we had used the user-supplied date, if available, for Word's
8090 document creation metadata. This could lead to weird results, as in
8091 cases where the user post-dates a document (so the modification might be
8092 prior to the creation). Here we use the actual computer time to set the
8097 + Don't URI-escape image source (#2825). Usually this is a local file,
8098 and replacing spaces with `%20` ruins things.
8099 + Allow 'standout' as a beamer frame option (#3007).
8100 `## Slide title {.standout}`.
8102 * RST reader: Fixed links with no explicit link text. The link
8103 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
8104 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
8105 Closes Debian #828167 -- reported by Christian Heller.
8109 + Fixed attributes (#2984). Attributes can't be followed by
8110 a space. So, `_(class)emph_` but `_(noclass) emph_`.
8111 + Fixed exponential parsing bug (#3020).
8112 + Fix overly aggressive interpretation as images (#2998).
8113 Spaces are not allowed in the image URL in textile.
8117 + Fix `\cite` so it is a NormalCitation not AuthorInText.
8118 + Strip off double quotes around image source if present (#2825).
8119 Avoids interpreting these as part of the literal filename.
8123 + Add semicolon to list of special chars (Albert Krewinkel)
8124 Semicolons are used as special characters in citations syntax. This
8125 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
8126 suffix]`. Previously, parsing would have failed unless there was a space
8127 or other special character as the last <prefix> character.
8128 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
8129 A specification for an official Org-mode citation syntax was drafted by
8130 Richard Lawrence and enhanced with the help of others on the orgmode
8131 mailing list. Basic support for this citation style is added to the
8133 + Support arbitrary raw inlines (Albert Krewinkel).
8134 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
8135 parlance) to be included as `@@format:raw foreign format text@@`.
8136 + Remove partial functions (Albert Krewinkel, #2991).
8137 Partial functions like `head` lead to avoidable errors and should be
8138 avoided. They are replaced with total functions.
8139 + Support figure labels (Albert Krewinkel, #2496, #2999).
8140 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
8141 respective image. This allows e.g. the LaTeX to add proper `\label`
8143 + Improve tag and properties type safety (Albert Krewinkel).
8144 Specific newtype definitions are used to replace stringly typing of tags
8145 and properties. Type safety is increased while readability is improved.
8146 + Parse as headlines, convert to blocks (Albert Krewinkel).
8147 Emacs org-mode is based on outline-mode, which treats documents as trees
8148 with headlines are nodes. The reader is refactored to parse into a
8149 similar tree structure. This simplifies transformations acting on
8150 document (sub-)trees.
8151 * Refactor comment tree handling (Albert Krewinkel).
8152 Comment trees were handled after parsing, as pattern matching on lists
8153 is easier than matching on sequences. The new method of reading
8154 documents as trees allows for more elegant subtree removal.
8155 * Support archived trees export options (Albert Krewinkel).
8156 Handling of archived trees can be modified using the `arch` option.
8157 Archived trees are either dropped, exported completely, or collapsed to
8158 include just the header when the `arch` option is nil, non-nil, or
8159 `headline`, respectively.
8160 * Put export setting parser into module (Albert Krewinkel).
8161 Export option parsing is distinct enough from general block parsing to
8162 justify putting it into a separate module.
8163 * Support headline levels export setting (Albert Krewinkel).
8164 The depths of headlines can be modified using the `H` option. Deeper
8165 headlines will be converted to lists.
8166 * Replace ugly code with view pattern (Albert Krewinkel).
8167 Some less-than-smart code required a pragma switching of overlapping
8168 pattern warnings in order to compile seamlessly. Using view patterns
8169 makes the code easier to read and also doesn't require overlapping
8170 pattern checks to be disabled.
8171 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
8172 Org rules for allowed characters before or after markup chars were not
8173 checked for verbatim text. This resultet in wrong parsing outcomes of
8174 if the verbatim text contained e.g. space enclosed markup characters as
8175 part of the text (`=is_substr = True=`). Forcing the parser to update
8176 the positions of allowed/forbidden markup border characters fixes this.
8178 * LaTeX template: fix for obscure hyperref/xelatex issue.
8179 Here's a minimal case:
8181 \documentclass[]{article}
8182 \usepackage{hyperref}
8187 Without this change, this fails on the second invocation of xelatex.
8188 This affects inputs this like `# %á` with pdf output via xelatex.
8190 * trypandoc: call results 'html' instead of 'result'.
8191 This is for better compatibility with babelmark2.
8193 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
8194 MultiMarkdown was only mentioned as a supported Markdown dialect but not
8195 as a possible input or output format. A brief mention is added
8196 everywhere the other supported markdown dialects are mentioned.
8198 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
8199 Raw HTML is kept when the output format is Emacs Org mode.
8201 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
8203 * Text.Pandoc.Shared:
8205 + Introduce blocksToInlines function (Jesse Rosenthal).
8206 This is a lossy function for converting `[Block] -> [Inline]`. Its main
8207 use, at the moment, is for docx comments, which can contain arbitrary
8208 blocks (except for footnotes), but which will be converted to spans.
8209 This is, at the moment, pretty useless for everything but the basic
8210 `Para` and `Plain` comments. It can be improved, but the docx reader
8211 should probably emit a warning if the comment contains more than this.
8212 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
8213 + Add further formats for `normalizeDate` (Jesse Rosenthal).
8214 We want to avoid illegal dates -- in particular years with greater than
8215 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
8216 `%Y%m`, and finally `%Y`.
8217 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
8218 We only allow years between 1601 and 9999, inclusive. The ISO 8601
8219 actually says that years are supposed to start with 1583, but MS Word
8220 only allows 1601-9999. This should stop corrupted word files if the date
8221 is out of that range, or is parsed incorrectly.
8222 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
8223 Previously we parsed a list of dates, took the first one, and then
8224 tested its year range. That meant that if the first one failed, we
8225 returned nothing, regardless of what the others did. Now we test for
8226 sanity before running `msum` over the list of Maybe values. Anything
8227 failing the test will be Nothing, so will not be a candidate.
8231 + Add simple comment functionality. (Jesse Rosenthal).
8232 This adds simple track-changes comment parsing to the docx reader. It is
8233 turned on with `--track-changes=all`. All comments are converted to
8234 inlines, which can list some information. In the future a warning will be
8235 added for comments with formatting that seems like it will be excessively
8236 denatured. Note that comments can extend across blocks. For that reason
8237 there are two spans: `comment-start` and `comment-end`. `comment-start`
8238 will contain the comment. `comment-end` will always be empty. The two
8239 will be associated by a numeric id.
8240 + Enable warnings in top-level reader (Jesse Rosenthal).
8241 Previously we had only allowed for warnings in the parser. Now we allow
8242 for them in the `Docx.hs` as well. The warnings are simply concatenated.
8243 + Add warning for advanced comment formatting. (Jesse Rosenthal).
8244 We can't guarantee we'll convert every comment correctly, though we'll
8245 do the best we can. This warns if the comment includes something other
8247 + Add tests for warnings. (Jesse Rosenthal).
8248 + Add tests for comments (Jesse Rosenthal).
8249 We test for comments, using all track-changes options. Note that we
8250 should only output comments if `--track-changes=all`. We also test for
8251 emitting warnings if there is complicated formatting.
8253 * README: update to include track-changes comments. (Jesse Rosenthal)
8255 * Improved Windows installer - don't ignore properties set on command-line.
8256 See #2708. Needs testing to see if this resolves the issue.
8259 * Process markdown extensions on command line in L->R order (#2995).
8260 Previously they were processed, very unintuitively, in R->L
8261 order, so that `markdown-tex_math_dollars+tex_math_dollars`
8262 had `tex_math_dollars` disabled.
8264 * Added `secnumdepth` variable to LaTeX template (#2920).
8266 * Include table of contents in README.html in Windows package.
8268 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
8269 In Writers.Shared, we strip leading and trailing spaces for display
8270 math. Since SoftBreak's are treated as spaces, we should strip those
8273 * beamer, latex templates: pass biblatexoptions directly in package load.
8274 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
8276 * CPP workaround for deprecation of `parseUrl` in http-client.
8278 * Removed some redundant class constraints.
8280 * make_oxs_package.sh - use OSX env variable.
8282 * Added `winpkg` target to Makefile. This downloads the windows package
8283 from appveyor and signs it using the key.
8285 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
8286 Raw TeX is kept verbatim when the output format is Emacs Org mode.
8288 * Support math with haddock-library >= 1.4.
8290 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
8291 wouldn't accept the package.
8293 * Update library dependency versions.
8295## pandoc 1.17.1 (2016-06-04)
8297 * New output format: `docbook5` (Ivo Clarysse).
8299 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
8304 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
8305 This allows header attributes to be added to org documents in the form
8306 of `:PROPERTIES:` drawers. All available attributes are stored as
8307 key/value pairs. This reflects the way the org reader handles
8308 `:PROPERTIES:` blocks.
8309 + Add drawer capability (Carlos Sosa). For the implementation of the
8310 Drawer element in the Org Writer, we make use of a generic Block
8311 container with attributes. The presence of a `drawer` class defines
8312 that the `Div` constructor is a drawer. The first class defines the
8313 drawer name to use. The key-value list in the attributes defines
8314 the keys to add inside the Drawer. Lastly, the list of Block elements
8315 contains miscellaneous blocks elements to add inside of the Drawer.
8316 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
8317 reserved for internal use by Org-mode and should not be used.
8318 The `CUSTOM_ID` property is to be used instead, it is converted to the
8319 `ID` property for certain export format.
8323 + Ignore `--incremental` unless output format is beamer (#2843).
8324 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
8325 Allow for optional argument in square brackets.
8326 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
8327 This allows one to access the hyphenation patterns in CTAN's
8329 + Add missing languages from hyph-utf8 (Andrew Dunning).
8330 + Improve use of `\strut` with `\minipage` inside tables
8331 (Jose Luis Duran). This improves spacing in multiline
8333 + Use `{}` around options containing special chars (#2892).
8334 + Avoid lazy `foldl`.
8335 + Don't escape underscore in labels (#2921). Previously they were
8337 + brazilian -> brazil for polyglossia (#2953).
8339 * HTML writer: Ensure mathjax link is added when math appears in footnote
8340 (#2881). Previously if a document only had math in a footnote, the
8341 MathJax link would not be added.
8343 * EPUB writer: set `navpage` variable on nav page.
8344 This allows templates to treat it differently.
8348 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
8349 + Properly handle `ulink`/`link` (Ivo Clarysse).
8353 + Unescape URIs in spine (#2924).
8354 + EPUB reader: normalise link id (Mauro Bieg).
8358 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
8359 `moveTo` and `moveFrom` are track-changes tags that are used when a
8360 block of text is moved in the document. We now recognize these tags and
8361 treat them the same as `insert` and `delete`, respectively. So,
8362 `--track-changes=accept` will show the moved version, while
8363 `--track-changes=reject` will show the original version.
8364 + Tests for track-changes moving (Jesse Rosenthal).
8366 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
8367 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
8368 would error out if zip-archive failed. We change the archive extraction
8369 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
8371 * Markdown, HTML readers: be more forgiving about unescaped `&` in
8372 HTML (#2410). We are now more forgiving about parsing invalid HTML with
8373 unescaped `&` as raw HTML. (Previously any unescaped `&`
8374 would cause pandoc not to recognize the string as raw HTML.)
8378 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
8379 + Added `-s` to markdown-reader-more test.
8381 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
8382 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
8384 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
8387 * RST reader: Support `:class:` option for code block in RST reader
8390 * Org reader (all Albert Krewinkel, except where noted otherwise):
8392 + Stop padding short table rows.
8393 Emacs Org-mode doesn't add any padding to table rows. The first
8394 row (header or first body row) is used to determine the column count,
8395 no other magic is performed.
8396 + Refactor rows-to-table conversion. This refactors
8397 the codes conversing a list table lines to an org table ADT.
8398 The old code was simplified and is now slightly less ugly.
8399 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
8400 This fixes Org mode parsing of some corner cases regarding empty cells
8401 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
8402 two empty cells, but would be parsed as a single cell containing a pipe
8403 character. Empty rows where parsed as alignment rows and dropped from
8405 + Fix spacing after LaTeX-style symbols.
8406 The org-reader was droping space after unescaped LaTeX-style symbol
8407 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
8408 instead. This seems to be because the LaTeX-reader treats the
8409 command-terminating space as part of the command. Dropping the trailing
8410 space from the symbol-command fixes this issue.
8411 + Print empty table rows. Empty table rows should not
8412 be dropped from the output, so row-height is always set to be at least 1.
8413 + Move parser state into separate module.
8414 The org reader code has become large and confusing. Extracting smaller
8415 parts into submodules should help to clean things up.
8416 + Add support for sub/superscript export options.
8417 Org-mode allows to specify export settings via `#+OPTIONS` lines.
8418 Disabling simple sub- and superscripts is one of these export options,
8419 this options is now supported.
8420 + Support special strings export option Parsing of special strings
8421 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
8423 + Support emphasized text export option. Parsing of emphasized text can
8424 be toggled using the `*` option. This influences parsing of text marked
8425 as emphasized, strong, strikeout, and underline. Parsing of inline math,
8426 code, and verbatim text is not affected by this option.
8427 + Support smart quotes export option. Reading of smart quotes can be
8428 toggled using the `'` option.
8429 + Parse but ignore export options. All known export options are parsed
8431 + Refactor block attribute handling. A parser state attribute was used
8432 to keep track of block attributes defined in meta-lines. Global state
8433 is undesirable, so block attributes are no longer saved as part of the
8434 parser state. Old functions and the respective part of the parser state
8436 + Use custom `anyLine`. Additional state changes need to be made after
8437 a newline is parsed, otherwise markup may not be recognized correctly.
8438 This fixes a bug where markup after certain block-types would not be
8440 + Add support for `ATTR_HTML` attributes (#1906).
8441 Arbitrary key-value pairs can be added to some block types using a
8442 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
8443 when exporting to HTML, but since we cannot make this distinction here,
8444 the attributes are always added. The functionality is now supported
8446 + Add `:PROPERTIES:` drawer support (#1877).
8447 Headers can have optional `:PROPERTIES:` drawers associated with them.
8448 These drawers contain key/value pairs like the header's `id`. The
8449 reader adds all listed pairs to the header's attributes; `id` and
8450 `class` attributes are handled specially to match the way `Attr` are
8451 defined. This also changes behavior of how drawers of unknown type
8452 are handled. Instead of including all unknown drawers, those are not
8453 read/exported, thereby matching current Emacs behavior.
8454 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
8455 + Respect drawer export setting. The `d` export option can be used
8456 to control which drawers are exported and which are discarded.
8457 Basic support for this option is added here.
8458 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
8459 Also fix up tab handling for leading whitespace in code blocks.
8460 + Support new syntax for export blocks. Org-mode version 9
8461 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
8462 where `<FORMAT>` is the format of the block's content, the new
8463 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
8465 + Refactor `BEGIN...END` block parsing.
8466 + Fix handling of whitespace in blocks, allowing content to be indented
8467 less then the block header.
8468 + Support org-ref style citations. The *org-ref* package is an
8469 org-mode extension commonly used to manage citations in org
8470 documents. Basic support for the `cite:citeKey` and
8471 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
8472 + Split code into separate modules, making for cleaner code and
8475 * Added `docbook5` template.
8477 * `--mathjax` improvements:
8479 + Use new CommonHTML output for MathJax (updated default MathJax URL,
8481 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
8482 This is designed for cases where the input is always TeX and maximal
8483 conformity with TeX is desired. It seems to be smaller and load faster
8484 than what we used before. See #2858.
8485 + Load the full MathJax config to maximize loading speed (KolenCheung).
8487 * Bumped upper version bounds to allow use of latest packages
8488 and compilation with ghc 8.
8490 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
8491 #2310, #2310, #2824). This fixes behavior of roots, e.g.
8492 `\sqrt[3]{x}`, and issues with sub/superscript positioning
8493 and matrix column alignment in docx.
8497 + Clarified documentation of `implicit_header_references` (#2904).
8498 + Improved documentation of `--columns` option.
8500 * Added appveyor setup, with artefacts (Jan Schulz).
8502 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
8504 * LaTeX template: support for custom font families (vladipus).
8505 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
8506 can find some other usages. Example usage in YAML metadata:
8509 - name: \cyrillicfont
8510 font: Liberation Serif
8511 - name: \cyrillicfonttt
8512 options: Scale=MatchLowercase
8515 * Create unsigned msi as build artifact in appveyor build.
8517 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
8521## pandoc 1.17.0.3 (2016-03-24)
8523 * LaTeX writer: Fixed position of label in figures (#2813).
8524 Previously the label wasn't in the right place, and `\ref`
8525 wouldn't work properly.
8526 * Added .tei test files to pandoc.cabal so they'll be included
8528 * Updated copyright dates.
8530## pandoc 1.17.0.2 (2016-03-23)
8532 * Fixed serious regression in `htmlInBalanced`, which caused
8533 newlines to be omitted in some raw HTML blocks in Markdown
8536## pandoc 1.17.0.1 (2016-03-21)
8538 * File scope is no longer used when there are no input files (i.e.,
8539 when input comes from stdin). Previously file scope was triggered
8540 when the `json` reader was specified and input came from `stdin`,
8541 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
8542 thanks to Fedor Sheremetyev for calling the bug to our attention.)
8543 * Improved documentation of templates (#2797).
8545## pandoc 1.17 (2016-03-20)
8547 * Added `--file-scope` option (Jesse Rosenthal).
8548 By default pandoc operates on multiple files by first concatenating
8549 them (around extra line breaks) and then processing the joined file. So
8550 it only parses a multi-file document at the document scope. This has the
8551 benefit that footnotes and links can be in different files, but for
8552 some purposes it is useful to parse the individual files first
8553 and then combine their outputs (e.g. when the files use footnotes
8554 or links with the same labels). The `--file-scope` option causes
8555 pandoc to parse the files first, and then combine the parsed output,
8556 instead of combining before parsing. `--file-scope` is selected
8557 automatically for binary input files (which cannot be concatenated)
8558 and for pandoc json.
8560 * Add TEI Writer (Chris Forster) and `tei` output format.
8562 * Added a general `ByteStringReader` with warnings, used by the docx
8563 reader (API change, Jesse Rosenthal).
8565 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
8567 * Changed type of `Shared.uniqueIdent` argument from
8568 `[String]` to `Set String`. This avoids performance problems in documents
8569 with many identically named headers (API change, #2671).
8571 * Removed `tex_math_single_backslash` from `markdown_github` options
8574 * Make language extensions as well as full language names
8575 trigger syntax highlighting. For example, `py` will now work as
8576 well as `python` (jgm/highlighting-kate#83).
8578 * Added `institute` variable to latex, beamer templates (Fraser
8579 Tweedale, Josef Svenningsson).
8581 * Docx reader (Jesse Rosenthal):
8583 + Handle alternate content. Some word functions (especially graphics)
8584 give various choices for content so there can be backwards compatibility.
8585 + Don't turn numbered headers into lists.
8586 + Docx Reader: Add state to the parser, for warnings
8587 + Update feature checklist in source code.
8588 + Get rid of `Modifiable` typeclass.
8589 + Add tests for adjacent hyperlinks.
8590 + Add a "Link" modifier to `Reducible`. We want to make sure that
8591 links have their spaces removed, and are appropriately smushed
8596 + Fixed behavior of base tag (#2777).
8597 If the base path does not end with slash, the last component
8598 will be replaced. E.g. base = `http://example.com/foo`
8599 combines with `bar.html` to give `http://example.com/bar.html`.
8600 If the href begins with a slash, the whole path of the base
8601 is replaced. E.g. base = `http://example.com/foo/` combines
8602 with `/bar.html` to give `http://example.com/bar.html`.
8603 + Rewrote `htmlInBalanced`. This version avoids an exponential
8604 performance problem with `<script>` tags, and it should be faster
8606 + Properly handle an empty cell in a simple table (#2718).
8607 + Handle multiple `<meta>` tags with same name. Put them in a list
8608 in the metadata so they are all preserved, rather than (as before)
8609 throwing out all but one..
8613 + Improved pipe table parsing (#2765).
8614 + Allow `+` separators in pipe table cells. We already allowed
8615 them in the header, but not in the body rows, for some reason.
8616 This gives compatibility with org-mode tables.
8617 + Don't cross line boundary parsing pipe table row.
8618 Previously an Emph element could be parsed across the newline
8619 at the end of the pipe table row.
8620 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
8621 performance (#2730).
8622 + Fixed bug with smart quotes around tex math.
8626 + Handle interior `$` characters in math (#2743). For example,
8628 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
8629 This gives better results when people write e.g. `\TeX{}` in Markdown.
8630 + Properly handle LaTeX "math" environment as inline math (#2171).
8632 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
8635 * Org reader (Albert Krewinkel):
8637 + Prefix even empty figure names with "fig:" (#2643). The
8638 convention used by pandoc for figures is to mark them by prefixing
8639 the name with `fig:`. The org reader failed to do this if a figure
8641 + Refactor link-target processing (#2684).
8643 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
8644 Thanks to @c-foster.
8646 * HTML writer: Don't include alignment attribute for default table columns.
8647 Previously these were given "left" alignment. Better to leave off
8648 alignment attributes altogether (#2694).
8650 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
8651 better compatibility with other Markdown flavors (Henrik Tramberend).
8655 + Use image identifier to create a label and hypertarget for
8656 figures (Mauro Bieg).
8657 + Avoid double toprule in headerless table with caption (#2742).
8658 + Clean up options parser (Jesse Rosenthal).
8659 + Treat `memoir` template with `article` option as article, instead
8660 of treating all `memoir` templates as books.
8661 + Allow more flexible table alignment (Henrik Tramberend, #2665).
8662 New default is not to include `[c]` option (which is the default
8663 anyway if no positioning is specified). Now LaTeX emplates can
8664 control the overall table alignment in a document by setting the
8665 longtable length variables `LTleft` and `LTright`. For example,
8666 `\setlength\LTleft\parindent\setlength\LTright\fill`
8667 will create left-aligned tables that respect paragraph indentation.
8669 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
8671 * Org writer - pass through RawInline with format "org".
8673 * DokuWiki writer: use `$$` for display math.
8675 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
8677 * Make protocol-relative URIs work again (#2737).
8679 * make_osx_package.sh: Use env variable for developer id certs.
8681 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
8684 * Allow `zip-archive` 0.3.
8686 * Allow `aeson` 0.11.
8688## pandoc 1.16.0.2 (2016-01-12)
8690 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
8692 * Fixed regression in latex smart quote parsing (#2645).
8693 In cases where a match was not found for a quote, everything
8694 from the open quote to the end of the paragraph was being dropped.
8696## pandoc 1.16.0.1 (2016-01-10)
8698 * Fixed regression with `--latex-engine` (#2618). In 1.16
8699 `--latex-engine` raises an error if a full path is given.
8701 * Org reader: Fix function dropping subtrees tagged `:noexport`
8702 (Albert Krewinkel, #2628):
8704 * Markdown reader: renormalize table column widths if they exceed 100%
8707 * Textile reader: don't allow block HTML tags in inline contexts.
8708 The reader previously did allow this, following redcloth,
8709 which happily parses
8711 Html blocks can be <div>inlined</div> as well.
8715 <p>Html blocks can be <div>inlined</div> as well.</p>
8717 This is invalid HTML. The above sample now produces;
8719 <p>Html blocks can be</p>
8725 * Improved default template lookup for custom lua scripts (#2625).
8726 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
8727 pandoc would look for the template in
8728 `~/.pandoc/templates/default./path/to/lua/script.lua`.
8729 With this change it will look in the more reasonable
8730 `~/.pandoc/templates/default.script.lua`. This makes it possible to
8731 store default templates for custom writers.
8733 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
8736 * LaTeX writer: restore old treatment of Span (#2624). A Span is
8737 now rendered with surrounding `{}`, as it was before 1.16.
8739 * Entity handling fixes: improved handling of entities like
8740 `⟨` that require a trailing semicolon. Allow uppercase
8741 `x` in numerical hexidecimal character references, working
8742 around a tagsoup bug.
8744 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
8745 memory use on compile. With aeson 0.10 we were getting an out of
8746 memory error on a 2GB Ubuntu 64-bit VM.
8748 * Improved deb package creation script. Made `DPKGVER` work.
8749 Renamed `COMMIT` to `TREE`. You should now be able to do
8750 `TREE=1.16.0.1 DPKGVER=2 make deb`.
8753## pandoc 1.16 (2016-01-02)
8755 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
8757 + Added syntax for link and image attributes to pandoc's Markdown.
8758 + Updated readers and writers to use link and image attributes
8760 + Support image attributes in Docx, Textile, RST readers.
8762 * Renamed link attribute extensions. The old `link_attributes` is
8763 now `mmd_link_attributes`, and `link_attributes` now enables the
8764 new pandoc-style link and image attributes (API change).
8765 Note: this change could break some existing workflows.
8767 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
8768 Added threefold wrapping option.
8770 + Command line option: deprecated `--no-wrap`, added
8771 `--wrap=[auto|none|preserve]`
8772 + Added `WrapOption`, exported from `Text.Pandoc.Options`
8773 + Changed type of `writerWrapText` in `WriterOptions` from
8774 `Bool` to `WrapOption`.
8775 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
8776 + Supported `SoftBreak` in readers and writers.
8778 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
8779 change, Mauro Bieg).
8781 * Added `--dpi` command-line option (Mauro Bieg).
8783 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
8784 This change makes `--no-tex-ligatures` affect the LaTeX reader
8785 as well as the LaTeX and ConTeXt writers. If it is used,
8786 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
8787 literally, rather than parsing ligatures for quotation marks
8788 and dashes. And the LaTeX writer will print unicode quotation
8789 mark and dash characters literally, rather than converting
8790 them to the standard ASCII ligatures. Note that `--smart` has
8791 no effect on the LaTeX reader. `--smart` is still the default
8792 for all input formats when LaTeX or ConTeXt is the output format,
8793 *unless* `--no-tex-ligatures` is used.
8795 Some examples to illustrate the logic:
8798 % echo "'hi'" | pandoc -t latex
8800 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
8802 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
8804 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
8806 % echo "'hi'" | pandoc -f latex
8810 * Removed deprecated options `--offline` and `--html5`.
8812 * Fixed language code for Czech (`cs` not `cz`) (#2597).
8814 * Implemented `east_asian_line_breaks` extension (#2586).
8815 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
8816 to `Extension` (API change). This extension is like
8817 `ignore_line_breaks`, but smarter -- it only ignores line breaks
8818 between two East Asian wide characters. This makes it better suited
8819 for writing with a mix of East Asian and non-East Asian scripts.
8821 * Added support for PDF creation via `wkhtmltopdf`.
8822 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
8823 if you have math.) Margins can be set using the variables
8824 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
8825 Other styling can be done through CSS.
8827 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
8828 We were capturing final colons as in `[@foo: bar]`; the citation id
8829 was being parsed as `@foo:`.
8833 + Fixed image syntax for local files (#2589).
8834 + Changed type of `writeICML` (Mauro Bieg).
8835 API change: It is now `WriterOptions -> Pandoc -> IO String`.
8836 Also handle new image attributes.
8837 + Intersperse line breaks instead of appending them to
8838 every `ParagraphStyleRange` (Mauro Bieg, #2501).
8839 + Add `Cite` style to citations (Mauro Bieg).
8840 + Added figure handling (#2590, Mauro Bieg).
8841 + Better handling of math. Instead of just printing the raw tex,
8842 we now try to fake it with unicode characters.
8844 * HTML writer: Include `example` class for example lists (#2524).
8846 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
8848 + Support for percentage widths/heights
8849 + Use `Attr` instead of title to get dimensions from ODT walker
8850 to `writeOpenDocument`.
8854 + Support anchors in spans and divs with id elements
8855 (jgm/pandoc-citeproc#143).
8856 + Fixed code blocks (#1861).
8858 * Haddock writer: omit formatting inside links, which isn't supported
8861 * MediaWiki writer: Fixed spacing issues in table cells.
8863 + Start cell on new line unless it's a single Para or Plain
8865 + For single Para or Plain, insert a space after the `|` to
8866 avoid problems when the text begins with a character like
8869 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
8873 + Add support for GAP highlighting using listings (Raniere Silva).
8874 + Consider `header-includes` content as well as templates
8875 when determining whether to use csquotes (Andreas Lööw).
8876 + Create defaults for geometry using `margin-left` etc.
8877 If `geometry` has no value, but `margin-left`, `margin-right`,
8878 `margin-top`, and/or `-margin-bottom` are given, a default value
8879 for `geometry` is created from these. Note that these variables
8880 already affect PDF production via HTML5 with `wkhtmltopdf`.
8882 * ConTeXt writer: set default layout based on `margin-left`, etc.
8883 This sets up `\setuplayout` based on the variables `margin-left`,
8884 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
8887 * Docx writer: better handling of PDF images. Previously we tried
8888 to get the image size from the image even if an explicit size was
8889 specified. Since we still can't get image size for PDFs, this made
8890 it impossible to use PDF images in docx. Now we don't try to get
8891 the image size when a size is already explicitly specified.
8893 * Markdown writer: use raw HTML for link/image attributes when
8894 the `link_attributes` extension is unset and `raw_html` is set (#2554).
8896 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
8900 + Improved smart quote parsing (#2555). This fixes redering of
8902 + Use curly quotes for unmatched ` (#2555).
8903 + Allow blank space between braced arguments of commands (#2592).
8907 + Improved pipe table relative widths. Previously pipe table
8908 columns got relative widths (based on the header underscore lines)
8909 when the source of one of the rows was greater in width than the
8910 column width. This gave bad results in some cases where much of
8911 the width of the row was due to nonprinting material (e.g. link
8912 URLs). Now pandoc only looks at printable width (the width of a
8913 plain string version of the source), which should give better results.
8914 Thanks to John Muccigrosso for bringing up the issue.
8915 + Fixed parsing bug with macros. Previously macro definitions in
8916 indented code blocks were being parsed as macro definitions, not code.
8918 * Textile reader: skip over attribute in image source (#2515).
8919 We don't have a place yet for styles or sizes on images, but
8920 we can skip the attributes rather than incorrectly taking them
8921 to be part of the filename.
8923 * Docx reader: Handle dummy list items (Jesse Rosenthal).
8924 These come up when people create a list item and then delete the
8925 bullet. It doesn't refer to any real list item, and we used to ignore
8928 * CommonMark reader/writer rewritten to use latest `cmark`.
8930 * Fixed Emoji character definitions (#2523). There were many bugs in the
8933 * `Text.Pandoc.CSS`:
8935 + Added `pickStylesToKVs` function to extract multiple properties at
8936 once (API change, Mauro Bieg).
8937 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
8939 * `trypandoc`: sort drop-down lists.
8943 + Made `\euro` conditional on presence of character.
8944 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
8945 + Moved `header-includes` before setting of title (Thomas Hodgson),
8946 to match the LaTeX template (jgm/pandoc-templates#168).
8947 + Added `section-titles` variable (defaults to true)
8948 to enable/suppress section title pages in beamer
8949 slide shows (Thomas Hodgson).
8950 + Moved beamer themes after fonts, so that themes can
8951 change fonts. (Previously the fonts set were being
8952 clobbered by lmodern.sty.) (Thomas Hodgson).
8954 * Beamer/LaTeX template changes (Thomas Hodgson):
8955 + Added `thanks` variable
8956 + Use `parskip.sty` when `indent` isn't set (fall back to using
8957 `setlength` as before if `parskip.sty` isn't available).
8958 + Use `biblio-style` with biblatex.
8959 + Added `biblatexoptions` variable.
8961 * LaTeX template changes:
8963 + Added `paper` after `$papersize$` variable in latex template.
8964 Thus you can say `papersize: a4` and the latex will contain
8965 `a4paper`. This change may break some existing workflows; if
8966 you currently specify `a4paper`, you'll get `a4paperpaper` which
8967 is meaningless. However, the change seems worth it, as it will
8968 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
8969 and html->pdf via wkhtmltopdf.
8970 + Only pass options to color package if `colorlinks` is set
8972 + Make definition of `\euro` conditional in xelatex/lualatex,
8973 as it is already for pdflatex (Andrew Dunning).
8974 + Removed setting of `subject` in PDF metadata.
8975 This used to be set to the subtitle, but really the subtitle
8976 need not give the subject. Also, `subtitle` can contain formatting,
8977 so we'd need, at least, a plain text version for this.
8978 + Moved `header-includes` before setting of `\title`, `\author`,
8979 etc. This allows these macros to be redefined.
8980 + Use `\subtitle` command for `subtitle`, instead of tacking it
8981 on to the title as before. We give a no-op fallback definition if it
8982 is not defined. This change should produce much better results
8983 in classes that support `\subtitle`. With the default article
8984 class, which does not define `\subtitle`, subtitles will no
8985 longer be printed unless the user defines `\subtitle` and
8986 redefines `\maketitle`.
8987 + Moved redefinitions of `\paragraph` and `\subparagraph` to
8988 before header-includes.
8992 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
8993 needed for things to work on ConTeXt stable from TeXLive 2015.
8994 + Revert use of `\setuphead` in title block (Andrew Dunning,
8997 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
8999 * Fixed man template so disabling hyphenation actually works.
9000 The command needs to come after .TH.
9002 * Added 'navigation' variable to beamer template (#2543).
9003 Valid values are `empty` (the default), `horizontal`, `vertical`,
9004 and `frame`. Note that this changes the default behavior from
9005 `horizontal` to `empty`. Closes #2543.
9007 * Added `toc` to HTML slide format templates (Andrew Dunning),
9008 so that `--toc` creates a contents slide.
9010 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
9012 * Allow pipe tables with no body rows (#2556).
9013 Previously this raised a runtime error.
9015 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
9016 as URL. The Haskell URI parsing routines will accept "C:" as a
9017 scheme, so we rule that out manually. This helps with
9018 `--self-contained` and absolute Windows paths.
9020 * Define a `meta-json` variable for all writers (#2019). This contains
9021 a JSON version of all the metadata, in the format selected for the
9022 writer. So, for example, to get just the YAML metadata, you can run
9023 pandoc with the following custom template: `$meta-json$`. The intent
9024 is to make it easier for static site generators and other tools to get
9027 * Document limitations of --self-contained (#2553).
9029 * Improved Citations section of README (#2551). Added information
9030 about `link-citations` and a link to the pandoc-citeproc man page.
9032 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
9035 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
9037 * Improved implicit pandoc-citeproc inclusion.
9038 The filter pandoc-citeproc is automatically used when
9039 `--bibliography` is specified on the command line, unless
9040 `--natbib` or `--biblatex` is used. However, previously this
9041 only worked if `--bibliography` was spelled out in full, and not
9042 if `--biblio` was used.
9044 * reveal.js: Interpret pauses correctly for all headers (#2530).
9045 Previously, when using headers below the slide level, pauses are left
9046 uninterpreted into pauses. In my opinion, unexpected behavior but
9047 intentional looking at the code.
9049 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
9051 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
9054 * ImageSize: Added functions for converting between image dimensions
9057 * Use lts-3.18 in stack.yaml. This avoids Windows build
9058 issues with the HTTP library.
9060 * Bump version bounds for dependencies.
9062## pandoc 1.15.2.1 (2015-11-16)
9064 * Added two missing test files, and `stack.yaml`, to
9065 `extra-source-files` so they're included in the source tarball.
9067 * reveal.js template: Fixed parallaxBackground options.
9068 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
9069 need integer values, not strings. (Vaughn Iverson)
9071## pandoc 1.15.2 (2015-11-15)
9073 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
9074 ConTeXt rather than LaTeX (#2463).
9076 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
9078 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
9079 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
9082 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
9083 parsing (#2469). Tightened up the inline HTML parser so it disallows
9086 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
9090 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
9091 Paragraphs can be followed by lists, even if there is no blank line
9092 between the two blocks. However, this should only be true if the
9093 paragraph is not within a list, were the preceding block should be
9094 parsed as a plain instead of paragraph (to allow for compact lists).
9095 Thanks to @rgaiacs for bringing this up.
9096 + Allow toggling header args (Albert Krewinkel, #2269).
9097 Org-mode allows to skip the argument of a code block header argument if
9098 it's toggling a value. Argument-less headers are now recognized,
9099 avoiding weird parsing errors.
9100 + Fix markup parsing in headers (Albert Krewinkel, #2504).
9101 Markup as the very first item in a header wasn't recognized. This was
9102 caused by an incorrect parser state: positions at which inline markup
9103 can start need to be marked explicitly by changing the parser state.
9104 This wasn't done for headers. The proper function to update the state
9105 is now called at the beginning of the header parser, fixing this issue.
9106 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
9107 Smart quotes, ellipses, and dashes should behave like normal quotes,
9108 single dashes, and dots with respect to text markup parsing.
9109 + Require whitespace around definition list markers (#2518).
9110 This rule was not checked before, resulting in bugs with footnotes
9111 and some link types.
9115 + Pipe tables with long lines now get relative cell widths (#2471).
9116 If a pipe table contains a line longer than the column width (as set by
9117 `--columns` or 80 by default), relative widths are computed based on the
9118 widths of the separator lines relative to the column width. This should
9119 solve persistent problems with long pipe tables in LaTeX/PDF output, and
9120 give more flexibility for determining relative column widths in other
9121 formats, too. For narrower pipe tables, column widths of 0 are used,
9122 telling pandoc not to specify widths explicitly in output formats that
9124 + Improved parser for `mmd_title_block`. We now allow blank metadata
9125 fields. These were explicitly disallowed before.
9126 + Citation keys can now contain `://`, so URLs and DOIs can be used
9127 as citation keys (jgm/pandoc-citeproc#166).
9129 * Beamer template: fix incompatibility of section slides with natbib.
9130 Natbib (and presumably biblatex) bibliography commands create
9131 their own section. Since these are in frame environments,
9132 we have an incompatibility with the `\AtBeginSection` macro
9133 which creates a special frame when a new section occurs.
9134 (We can't have a frame inside another frame.) This change disables
9135 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
9136 bringing the problem to my attention. This supersedes #145. See
9139 * Textile reader: don't do smart punctuation unless explicitly asked
9140 (#2480). Note that although smart punctuation is part of the textile
9141 spec, it's not always wanted when converting from textile
9142 to, say, Markdown. So it seems better to make this an option.
9144 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
9145 The `comment` environment is handled in a similar way to the
9146 `verbatim` environment, except that its content is discarded.
9148 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
9149 Jesse Rosenthal). This fixes a problem with links in notes.
9151 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
9152 (mb21). For LaTeX, also collect `lang` and `dir` attributes on spans and
9153 divs to set the `lang`, `otherlangs` and `dir` variables if they aren’t set
9158 + Use proper command for `\textarabic` (mb21).
9159 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
9160 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
9161 to link to Div or Span elements. We now don't bother defining `\label`
9162 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
9163 + Avoid footnotes in list of figures (#1506).
9164 + Properly handle footnotes in captions (#1506).
9165 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
9166 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
9167 `toccolor` is set (#2508).
9169 * Textile writer: support start number in ordered lists (#2465).
9171 * OpenDocument writer: Allow customization of opendocument
9172 automatic styles. Automatic styles can now be inserted in the
9173 template, which now provides the enclosing `<office:automatic-styles>`
9176 * Docx writer: insert space between footnote reference and note (#2527).
9177 This matches Word's default behavior.
9179 * EPUB writer: don't download linked media when `data-external` attribute
9180 set (#2473). By default pandoc downloads all linked media and includes it
9181 in the EPUB container. This can be disabled by setting `data-external` on
9182 the tags linking to media that should not be downloaded. Example:
9184 <audio controls="1">
9185 <source src="http://www.sixbarsjail.it/tmp/bach_toccata.mp3"
9186 type="audio/mpeg"></source>
9189 * HTML writer: use width on whole table if col widths sum to < 100%.
9190 Otherwise some browsers display the table with the columns
9191 separated far apart.
9193 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
9194 `abstract` (Andrew Dunning).
9196 * HTML-based templates (Andrew Dunning):
9198 + Use en dash instead of hyphen between title prefix and title.
9199 + Add `keywords` to metadata.
9200 + Add `lang`, `dir`, `quotes` where missing.
9201 + Always make author and date display conditional.
9202 + Updated dzslides template from source.
9204 * Man template: make "generated by" comment conditional.
9206 * LaTeX, Beamer templates:
9208 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
9209 filled by commands that make babel understand the polyglossia-style
9210 language directives (mb21, #137).
9211 + Improved formatting of conditionals; `$for$` is always provided to allow
9212 multiple options (Andrew Dunning, #141).
9213 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
9214 to improve support for LuaTeX (Andrew Dunning, #135).
9215 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
9216 - use same options for all LaTeX engines;
9217 - add `subtitle` and `keywords` to PDF metadata;
9218 - do not override `hyperref` link coloring without user input, effectively making
9219 the `hidelinks` option the default (removed as a separate variable);
9220 - link colors can be enabled (using a slightly darker version of the old
9221 defaults) using a new `colorlinks` variable, automatically used by
9222 the LaTeX writer when custom colors are specified;
9223 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
9224 `colorlinks`, and is only applied if `colorlinks` is disabled.
9226 * ConTeXt template (Andrew Dunning):
9228 + New variables for controlling styles: `linkstyle`, `linkcolor`,
9229 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
9230 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
9231 `monofont`, `mathfont`, `fontsize`.
9232 + Default template no longer supports MkII.
9233 + Improve writing of title block (suppressing numbering of first page).
9234 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
9235 + Support `subtitle`, `abstract`.
9236 + Support list of figures (`lof`), list of tables (`lot`).
9237 + Disable link styling by default.
9238 + Define styles for all section types.
9240 + Improved formatting of conditionals.
9242 * Beamer template: added code to prevent slide breaks inside paragraphs
9243 (#2422, thanks to Nick Bart). This will matter, in practice, only when
9244 `allowframebreaks` is used. It is especially helpful for bibliography
9247 * OpenDocument template: Add `<office:automatic-styles>` tag around
9248 automatic styles. The writer now longer provides this (see #2520).
9250 * Restored Text.Pandoc.Compat.Monoid.
9252 * Do not export (<>) from custom Prelude. The Prelude now matches
9253 base 4.8 Prelude's API.
9255 * Don't use custom prelude with ghc 7.10. Use the custom prelude
9256 only for earlier versions. This change makes `stack ghci` and
9257 `cabal repl` work (#2503), at least with ghc 7.10.
9259 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
9260 This prevents problems building haddocks with "C" locale.
9262 * Change default for old-locale flag to False.
9264 * Use stack in deb, osx, and Windows package generators.
9266 * Added Vagrantfile for building deb in vm.
9267 This should help in automating binary package creation. 'make package'
9268 will make the package. 'make package COMMIT=blah' will make the package
9273 + Consistent capitalization for pandoc and Markdown.
9274 + Fixed `auto_identifiers` examples (Benoit Schweblin).
9275 + Improved documentation of template variables (Andrew Dunning).
9277## pandoc 1.15.1 (2015-10-15)
9279 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
9280 and reexported from `Text.Pandoc` (Alex Vong). This allows
9281 writers to access it. (Alex Vong) (API change)
9283 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
9284 `subscripts` (#2401).
9286 * Added `odt` as input format (MarLinn). Added new module
9287 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
9288 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
9289 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
9290 Partly implemented features: Citations, Tables.
9294 + Add basic tests for each header style (Ophir Lifshitz).
9295 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
9296 + Skip spaces in headers (Ophir Lifshitz).
9297 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
9298 `# Header {id="myid" class="foo bar"}`
9299 is now equivalent to `# Header {#myid .foo .bar}`.
9300 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
9301 (Kristof Bastiaensen)
9302 + Pipe tables: allow indented columns. Previously the left-hand column
9303 could not start with 4 or more spaces indent. This was inconvenient
9304 for right-aligned left columns. Note that the first (header column)
9305 must still have 3 or fewer spaces indentation, or the table will be
9306 treated as an indented code block.
9307 + Fix regression: allow HTML comments containing `--`.
9308 Technically this isn't allowed in an HTML comment, but
9309 we've always allowed it, and so do most other implementations.
9310 It is handy if e.g. you want to put command line arguments
9315 + Don't eat excess whitespace after macros with only optional
9317 + Support longtable (#2411).
9318 + Implement `\Cite` (#2335).
9319 + Support abstract environment. The abstract populates an
9320 `abstract` metadata field.
9321 + Properly handle booktabs lines. Lines aren't part of the
9322 pandoc table model, so we just ignore them (#2307).
9326 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
9327 + Updated for new automatic header attributes.
9328 + Add auto identifiers if not present on headers. This makes
9329 TOC linking work properly.
9330 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
9331 + Test `<ol>` type, class, and inline list-style(-type) CSS
9333 + Better handling of "section" elements (#2438). Previously
9334 `<section>` tags were just parsed as raw HTML blocks. With
9335 this change, section elements are parsed as Div elements with
9336 the class "section".
9338 * MediaWiki reader: handle unquoted table attributes (#2355).
9342 + Added proper support for DocBook `xref` elements (Frerich Raabe).
9343 Added `dbContent` field to reader state, so we can lookup
9345 + Handle `informalexample` (#2319).
9349 + Create special punctuation test (Ophir Lifshitz).
9350 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
9351 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
9352 in `headers.docx` with pandoc's current `styles.xml`, which
9353 contains styles for Heading 1 through 6. Added Heading 4
9354 through 7 to the test document. Note that Heading 7 is not
9355 parsed as a Heading because there is no Heading 7 style.
9357 * RST reader: better handling of indirect roles.
9358 Previously the parser failed on this kind of case
9360 .. role:: indirect(code)
9362 .. role:: py(indirect)
9367 Now it correctly recognizes `:py:` as a code role.
9371 + Add auto identifiers if not present on headers
9372 (#2354, Juliusz Gonera).
9373 + Allow verse blocks to contain empty lines (#2402,
9376 * EPUB reader: stop mangling external URLs (#2284).
9380 + Don't insert `\ ` when complex expression in matched pairs.
9381 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
9382 + Ensure that `\ ` is inserted when needed before Cite and Span
9383 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
9384 + Normalize headers only in "standalone" mode (#2394).
9386 * Haddock writer: escape `*` and `^` (G. Bataille).
9390 + In TOC, add links to headers (#829).
9391 + Use unicode super/subscripts for digits in plain output
9392 (when the `superscripts` and `subscripts` extensions are
9397 + Moved invalid character stripping to `formattedString`.
9398 This avoids an inefficient generic traversal (#2356).
9399 + Use user data directory for `reference.docx` archive.
9400 This allows the test suite to work without installing pandoc first.
9401 It also brings the docx writer in line with the odt writer.
9402 + Tests: docx writer tests now use `../data` for data directory.
9403 This allows tests to be run without installing first.
9404 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
9408 + Fixed detection of 'chapters' from template.
9409 If a documentclass isn't specified in metadata, but the
9410 template has a hardwired bookish documentclass, act as if
9411 `--chapters` was used. This was the default in earlier
9412 versions, but it has been broken for a little while.
9413 + Correctly recognize book documentclass in metadata (#2395).
9414 + Set language-related variables automatically, depending
9415 on the value of the `lang` field, which is now always
9416 assumed to be in BCP47 format (mb21, #1614, #2437).
9417 + Add `\protect` to `\hyperdef` in inline context. This way we
9418 don't get an error when this is used as a moveable argument (#2136).
9419 + Support all frame attributes in Beamer.
9420 + Percent-encode more special characters in URLs (#1640, #2377).
9421 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
9425 + Update KaTeX JS and CSS versions (Emily Eisenberg).
9426 + For dzslides, add `role="note"` for speaker notes (#1693).
9427 + Percent-encode more special characters in URLs (#1640, #2377).
9428 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
9429 + Render Div with class `section` as `<section>` in HTML5.
9433 + In TOC, replace literal `<br/>` with space (#2105).
9434 + With `--webtex`, include image file rather than `data:` URI (#2363).
9436 * Native writer: format Div properly, with blocks separated.
9438 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
9443 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
9444 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
9448 + Beamer: Add `innertheme`, `outertheme` variables
9449 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
9450 Integrate recent font and language updates from LaTeX template;
9451 allow use of `mainfont` variable for changing the slide text
9452 in XeTeX and LuaTeX (Andrew Dunning, #131).
9453 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
9454 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
9455 (Andrew Dunning, #122). Support handling of bidirectional
9456 text (mb21, #120). Improve reliability of superscripts/subscripts
9457 under XeTeX and prevent letters and numbers from appearing on a
9458 different baseline by removing use of the `realscripts` package
9459 (via `xltxtra`). To restore use of OpenType characters for these
9460 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
9461 `header-includes` (Andrew Dunning, #130). Remove redundant
9462 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
9463 `indent`, `subparagraph` variables (Andrew Dunning).
9464 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
9465 #113). Prevent package clash with `tufte-latex` and other classes that
9466 include `hyperref` or `color` (Xavier Olive, #115).
9467 + ConTeXt: Support handling of bidirectional text (mb21, #120).
9468 + LaTeX and ConTeXt: Use more specific language variables.
9469 Instead of directly using `lang`, we now use `babel-lang` and
9470 `polyglossia-lang` and `context-lang`. These variables are set by
9471 the writers to the necessary values, based on the `lang` variable
9472 (which now always takes a value in BCP47 format). (mb21, #114, #129).
9473 + HTML: Support handling of bidirectional text (mb21, #120).
9474 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
9475 Add dir attribute in html5 (Andrew Dunning).
9476 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
9477 Add `width`, `height` variables (Anrew Dunning). Update template
9478 from 3.1 source (Andrew Dunning). All configuration options are now
9479 available as variables, but are only be included if set (reveal.js
9480 uses defaults otherwise).
9481 + man: Added comment stating that the page is autogenerated by pandoc,
9482 giving version. Added `adjusting` and `hyphenate` variables
9485 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
9487 * MediaBag: ensure that `/` is always used as path separator.
9489 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
9491 * Added `--bash-completion` option. This generates a bash completion
9492 script. To use: `eval "$(pandoc --bash-completion)"`.
9494 * Text.Pandoc.Error: Define Typeable and Exception instances
9495 for PandocError (#2386).
9497 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
9498 This makes keys with extra space at the beginning and end
9505 will now be a link to bar (it wasn't before).
9507 * Text.Pandoc: disable `auto_identifiers` for epub.
9508 The epub writer inserts its own auto identifiers;
9509 this is more complex due to splitting into "chapter" files.
9511 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
9512 It now reexports Data.Time.
9514 * Use custom Prelude to avoid compiler warnings.
9516 + The (non-exported) prelude is in prelude/Prelude.hs.
9517 + It exports Monoid and Applicative, like base 4.8 prelude,
9518 but works with older base versions.
9519 + It exports (<>) for mappend.
9520 + It hides 'catch' on older base versions.
9522 * Added a `stack.ymal` and stack install instructions to INSTALL.
9524 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
9526 * Added note to CONTRIBUTING.md about ghc versions and travis.
9528 * Clarify docs on block quotes. The space after `>` is optional (#2346).
9530 * Removed obsolete reference to default.csl (#2372).
9532 * List all styles in manual for `--reference-docx` (Chris Black)
9534 * Don't capitalize header links in man page.
9536 * Added section on repl to CONTRIBUTING.md.
9538 * README: Added space after backslash in image example (#2329).
9540 * Document details of citation locator terms (Nick Bart).
9542 * Fixed some internal links in README (#2309).
9544 * Improve CSL documentation, variables documentations,
9545 links, and cross-references in README. (Andrew Dunning)
9547 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
9549 * Use `newManager` instead of `withManager` in recent `http-client`.
9550 This avoids a deprecation warning.
9552 * Allow building with latest versions of http-types,
9553 HUnit, criterion, syb, aeson.
9555 * Updated benchmark program for new criterion API.
9557 * Setup.hs: rewrite so as not to use process, directory, filepath.
9558 Using anything outside base is dangerous, since older
9559 versions of ghc may link against two different versions.
9561 * Added appveyor (Windows continuous integration) builds.
9563 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
9564 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
9565 `make .travis.yml` regenerates it based on the tested-with
9566 field of the cabal file.
9568## pandoc 1.15.0.6 (2015-07-15)
9570 * `--self-contained`: Fixed overaggressive CSS minimization
9571 (#2301, 2286). Previously `--self-contained` wiped out all
9572 spaces in CSS, including semantically significant spaces.
9573 This was a regression from 1.14.x.
9575 * Markdown reader: don't allow bare URI links or autolinks in link
9576 label (#2300). Added test cases.
9578 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
9579 Previously we disallowed `-` at the end of an autolink,
9580 and disallowed the combination `=-`. This commit liberalizes the
9581 rules for allowing punctuation in a bare URI, and adds test cases.
9582 One potential drawback is that you can no longer put a bare
9583 URI in em dashes like this:
9584 `this uri---http://example.com---is an example.`
9585 But in this respect we now match github's treatment of bare URIs.
9587 * HTML writer: support speaker notes in dzslides.
9588 With this change `<div class="notes">` and also `<div class="notes"
9589 role="note">` will be output if `-t dzslides` is used. So we can
9590 have speaker notes in dzslides too. Thanks to maybegeek.
9592 * Updated dzslides template.
9594 * Improved documentation of options to print system default files (#2298).
9595 `--print-default-data-file` and `--print-default-template`.
9597 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
9598 (Tiziano Müller). MathJax seems currently to be the only maintained
9599 math rendering extension for DokuWiki.
9601 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
9602 div as top-level header (#2294). This fixes a bug with `--section-divs`,
9603 where the final references section added by pandoc-citeproc, enclosed in
9604 its own div, got nested in the div for the section previous to it.
9606 * Allow vector 0.11.
9608 * Require cmark > 0.4.
9610## pandoc 1.15.0.5 (2015-07-10)
9612 * HTML writer: Fixed email javascript obfuscation with `mailto:`
9613 URLs (#2280). This fixes a potential security issue. Because
9614 single quotes weren't being escaped in the link portion, a
9615 specially crafted email address could allow javascript code injection.
9617 * RST reader: allow inline formatting in definition list field
9618 names (Lars-Dominik Braun).
9620 * PDF: Make sure `--latex-engine-opt` goes before the filename
9621 on the command line. LaTeX needs the argument to come after
9622 the options (#1779).
9624 * CommonMark writer: fixed tags used for super/subscript.
9626 * ConTeXt template: activate hanging indent for definition lists
9629 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
9630 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
9631 to include `hsb2hs` in Build-Tools in cabal.
9633 * Improved Windows installer (thanks to nkalvi).
9635 + When per-machine installation is chosen, the system path
9636 is updated instead of the user's.
9637 + An appropriate default is used for per-machine installation
9639 + Admin privileges are no longer required for a per-user install
9641 * Travis: unpack sdist for build to catch packaging bugs.
9643 * Improved documentation on where user templates go (#2272).
9645## pandoc 1.15.0.4 (2015-07-03)
9647 * Added pandoc.1 man page to the repository. It is no longer
9648 built as part of the cabal build process. (This proved too
9649 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
9650 when `README` is changed.
9652 * Copying of the man page now respects `--destdir` (#2262).
9654 * Improved error messages for filters. User is now informed if
9655 the filter requires an interpreter that isn't found in the path,
9656 or if the filter returns an error status.
9658## pandoc 1.15.0.3 (2015-07-02)
9660 * Ensure target directory is created when installing man page.
9662## pandoc 1.15.0.2 (2015-07-02)
9664 * Added files needed for building man page to Extra-Source-Files.
9666## pandoc 1.15.0.1 (2015-07-01)
9668 * Man page is now built and installed as part of the cabal build
9669 process. Removed Makefile target for man page.
9671## pandoc 1.15 (2015-07-01)
9675 + Removed `--man1`, `--man5` options (breaking change).
9676 + Removed `Text.Pandoc.ManPages` module (breaking API change).
9677 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
9678 create the man page from README using a custom template and filters.
9679 + Added `man/` directory with template and filters needed to build
9681 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
9682 Now there is just pandoc.1, which has all the content from README.
9683 This change was needed because of the extensive cross-references
9684 between parts of the README.
9685 + Removed old `data/pandoc.1.template` and
9686 `data/pandoc_markdown.5.template`.
9688 * OpenDocument writer: Do not add a carriage return after a hard
9689 line break (Michael Chladek).
9693 + use `\goto` for internal links.
9694 + Added a `%` at end for `\reference` to avoid spurious space.
9696 * Ignore sandbox on 'make quick'
9698## pandoc 1.14.1 (2015-06-30)
9700 * Added `--man1` and `--man5` options to pandoc, allowing
9701 pandoc to generate its own man pages. Man pages are no longer
9702 automatically generated in the build process (the process for
9703 this was too complex and prone to failure, #2190). The
9704 `make-pandoc-man-pages` executable has been removed. The
9705 `man/` directory has been removed, and man page templates
9706 have been moved to `data/`. NOTE TO PACKAGERS: You will no
9707 longer find pandoc's man pages in `man/`, but you can
9708 generate them using `pandoc --man1 > pandoc.1` and `pandoc
9709 --man5 > pandoc_markdown.5`.
9711 * Added new unexported module: `Text.Pandoc.ManPages`.
9713 * `README` now acts like a data file (even though it isn't in
9714 `data/`). So, for example, `pandoc --print-default-data-file README`
9715 will produce the README.) This change was required for the `--man1`
9716 and `--man5` options, since the man pages are produced from the
9717 README, but it may be useful for other purposes as well.
9719 * Allow `reference.docx` and `reference.odt` to be used with
9720 `--print-default-data-file` and to shadow defaults if placed in
9721 the user data directory. Note that as of 1.14, we no longer
9722 include these files as data files; instead, we include their
9723 components. This change causes pandoc to behave as if it has
9724 these data files; they are constructed on demand when needed
9725 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
9727 * Fixed regression in CSS parsing with `--self-contained` (#2224).
9728 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
9729 silently drops big sections of CSS. This commit replaces the
9730 use of css-text with a small but principled CSS preprocessor,
9731 which removes whitespace and comments and replaces `url()` with
9732 base 64 data when possible.
9734 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
9735 This will allow math to work when pages are being viewed locally.
9737 * `Text.Pandoc.Options`: Export `plainExtensions`.
9738 These are the extensions used in `plain` output.
9740 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
9741 math mode; treat them as regular inline text. Normally these will
9742 cause an error in LaTeX, but there are contexts (e.g. `alltt`
9743 environments) where they are allowed.
9745 * HTML reader: allow `<body>` to close `<head>`.
9747 * DocBook reader: support `mediaobject`s and `figures` (#2184, mb21).
9749 * RST reader: Fix reference names with special characters
9750 (Lars-Dominik Braun).
9752 * Textile writer: escape `+` and `-` as entities (#2225).
9754 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
9756 * Plain writer: don't use symbols for super/subscript (#2237).
9757 Simplified code by using `plainExtensions`.
9759 * InDesign writer: Properly escape URLs containing more than one
9760 colon character (gohai).
9762 * Docx writer: Make sure we use dist version of `reference.docx`
9763 (and not the user's version) for certain settings. Taking some
9764 settings values from a user-supplied reference.docx can lead to
9765 corruption. This fixes a regression from the last release (#2249).
9767 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
9768 `getDefaultReferenceODT` (API change). These functions have been
9769 removed from the Docx and ODT writers.
9771 * LaTeX template (Xavier Olive):
9772 + Added `CJKmainfont` and `CJKoptions` variables.
9773 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
9775 * Epub templates: use `author.role`, not `author.type`.
9777 * Bump cmark version to >= 0.3.4.
9779 * Improved Windows installer (#2205, thanks to nkalvi).
9780 Users can now select a per-user or systemwide install, and can set
9781 the installation path. At the end of installation, the install location
9782 is given. The install location is also now given in the list of
9783 installed programs in Control Panel. Cleaner WiX syntax is used for
9786 * Added `download_stats` target to Makefile.
9788## pandoc 1.14.0.4 (2015-06-02)
9790 * Added missing commonmark template.
9792 * Improved try pandoc (moved button, show raw command).
9794## pandoc 1.14.0.3 (2015-06-01)
9796 * Allow compilation with syb 0.5.*.
9798 * Custom writer: fixed some compiler warnings for ghc < 7.10.
9800## pandoc 1.14.0.2 (2015-05-31)
9802 * Allow building with hslua 0.4.
9804## pandoc 1.14.0.1 (2015-05-28)
9806 * Fixed problem with building of `reference.docx` and `reference.odt`
9807 when the `embed_data_files` flag is used. Instead of having a phase
9808 of the build where `reference.docx` and `reference.odt` are created
9809 from their constituent data files, we now construct these archives
9810 from their constituents when a `docx` or `odt` is built. The
9811 constituent files have been moved from `extra-source-files` to
9812 `data-files`, and `reference.docx` and `reference.odt` have been
9813 removed. Users can create their own `reference.docx` or
9814 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
9815 `make-reference-files.hs` has been removed, simplifying the build
9818 * Don't include generated man pages in extra-source-files (#2189).
9820 * Bumped upper bound for aeson.
9822 * ConTeXt writer: create internal link anchors for Div elements with
9823 identifiers. (This is needed for linked citations to work.)
9825## pandoc 1.14 (2015-05-27)
9829 * Added `commonmark` as input and output format.
9831 * Added `--verbose` flag for debugging output in PDF production (#1840,
9834 * Allow wildcards in `--epub-embed-font` arguments (#1939).
9836 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
9838 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
9839 This is enabled by default for those markdown flavors that
9840 support reading shortcut reference links, namely: `markdown`,
9841 `markdown_strict`, `markdown_github`, `markdown_php`.
9842 If the extension is enabled, the reader parses shortcut reference
9843 links like `[foo]`, and the writer creates such links unless doing
9844 so would cause problems. Users of markdown flavors that support
9845 shortcut reference links should not notice a difference in reading
9846 markdown, but the markdown pandoc produces may differ.
9847 If shortcut links are not desired, the extension can be disabled
9852 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
9853 A "dirty" TOC is created at the beginning of document.
9854 It can be regenerated after the document has been opened.
9856 * An implicit `--filter pandoc-citeproc` is now triggered only when the
9857 `--bibliography` option is used, and not when the `bibliography`
9858 field in metadata is specified (#1849).
9862 + Reference links with `implicit_header_references` are no longer
9863 case-sensitive (#1606).
9864 + Definition lists no longer require indentation for first line (#2087).
9865 Previously the body of the definition (after the `:` or `~` marker)
9866 needed to be in column 4. This commit relaxes that requirement,
9867 to better match the behavior of PHP Markdown Extra. So, now
9868 this is a valid definition list:
9872 + Resolve a potentially ambiguity with table captions:
9882 Is "bar" a definition, or the caption for the table? We'll count
9883 it as a caption for the table.
9884 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
9885 Markdown Extra. Note: If you have been using headerless pipe tables,
9886 this change may cause existing tables to break.
9887 + Allow pipe tables with header but no body (#2017).
9888 + Allow a digit as first character of a citation key (Matthias Troffaes).
9889 See https://github.com/jgm/pandoc-citeproc/issues/97
9893 + Don't limit includes to `.tex` extension (#1882).
9894 If the extension is not `.tex`, it must be given explicitly in
9895 the `\input` or `\include`.
9899 + Allow numbering in the style file. This allows inherited styles
9900 with numbering (lists) (Jesse Rosenthal).
9904 + Support smart punctuation (Craig Bosma).
9905 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
9906 `:noexport:` tag set are not exported. This mirrors org-mode.
9907 + Put header tags into empty spans (Albert Krewinkel, #2160).
9908 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
9909 Instead of being interpreted as part of the headline, the tags are now
9910 put into the attributes of empty spans. Spans without textual content
9911 won't be visible by default, but they are detectable by filters. They
9912 can also be styled using CSS when written as HTML.
9913 + Generalize code block result parsing (Albert Krewinkel).
9914 Previously, only code blocks were recognized as result blocks;
9915 now, any kind of block can be the result.
9917 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
9918 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
9922 + Add "inline" or "display" class to math spans (#1914).
9923 This allows inline and display math to be styled differently.
9924 + Include raw latex blocks if `--mathjax` specified (#1938).
9925 + Require highlighting-kate >= 0.5.14 (#1903).
9926 This ensures that all code blocks will be wrapped in a `div`
9927 with class `sourceCode`. Also, the default highlighting CSS
9928 now adds `div.sourceCode { x-overflow: auto; }`, which means
9929 that code blocks (even with line numbers) will acquire a scroll
9930 bar on screens too small to display them (e.g. mobile phones).
9931 See also jgm/highlighting-kate#65.
9935 + Use a declaration for tight lists (Jose Luis Duran, Joseph
9936 Harriott). Previously, pandoc hard-coded some commands to make
9937 tight lists in LaTeX. Now we use a custom command instead,
9938 allowing the styling to be changed in a macro in the header.
9939 (Note: existing templates may need to be modified to include
9940 the definition of this macro. See the current template.)
9941 + Beamer output: if the header introducing a slide has the
9942 class `fragile`, add the `[fragile]` option to the slide (#2119).
9946 + Use `File:` instead of the deprecated `Image:` for images and
9947 other media files (Greg Rundlett).
9951 + Render a `Div (id,_,_) [Para _]` element as a `para` element
9952 with an `id` attribute. This makes links to citations work in
9953 DocBook with pandoc-citeproc.
9957 + Normalize headings to sequential levels (Nikolay Yakimov).
9958 This is pretty much required by docutils.
9959 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
9960 + Better handling of raw latex inline (#1961). We use
9961 `` :raw-latex:`...` `` and add a definition for this role to
9966 + Remove `linear=no` from cover `itemref` (#1609).
9967 + Don't use `sup` element for epub footnotes (#1995).
9968 Instead, just use an a element with class `footnoteRef`.
9969 This allows more styling options, and provides better results
9970 in some readers (e.g. iBooks, where anything inside the a
9971 tag breaks popup footnotes).
9972 + Take TOC title from `toc-title` metadata field.
9976 + Implemented `FirstParagraph` style (Jesse Rosenthal).
9977 Following the ODT writer, we add the `FirstParagraph` style to the
9978 first text paragraph following an image, blockquote, table, heading,
9979 or beginning of document. This allows it to be styled differently.
9980 The default is for it to be the same as `Normal`.
9981 + Added `BodyText` style (Jesse Rosenthal).
9982 We apply a `BodyText` style to all unstyled paragraphs. This is,
9983 essentially, the same as `Normal`, except that since not everything
9984 inherits from `BodyText` (the metadata won't, for example, or
9985 the headers or footnote numbers), we can change the text in the body
9986 without having to make exceptions for everything. If we do want to
9987 change *everything*, we can still do it through `Normal`.
9988 + Altered `Blockquote` style slightly (Jesse Rosenthal).
9989 Since `BlockQuote` derives from `BodyText`, we just want to specify
9990 by default that it won't indent, regardless of what `BodyText` does.
9991 Note that this will not produce any visible difference in the default
9993 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
9994 + Added a style to figure images (Nikolay Yakimov).
9995 Figures with empty captions use style `Figure`.
9996 Figures with nonempty captions use style `Figure with Caption`, which
9997 is based on `Figure`, and additionally has `keepNext` set.
10001 + Added figure captions (Nikolay Yakimov). The following styles are
10003 `Figure` -- for figure with empty caption),
10004 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
10005 `FigureCaption` (based on `Caption`) -- for figure captions.
10006 Also, `TableCaption` (based on `Caption`) is used for table captions.
10010 * New `Text.Pandoc.Error` module with `PandocError` type
10011 (Matthew Pickering).
10013 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
10014 (Matthew Pickering). This allows better handling of errors.
10016 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
10018 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
10020 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
10021 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
10022 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
10025 * New `Ext_shortcut_reference_links` constructor for `Extension`
10026 (Konstantin Zudov).
10032 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
10033 + Check for tex macros after indented code (#1973).
10034 + Rewrote `charsInBalancedBrackets` for efficiency.
10035 + Make sure a closing `</div>` doesn't get included in a
10036 definition list item (#2127).
10037 + Don't parse bracketed text as citation if it might be a link,
10038 image, or footnote (Nikolay Yakimov).
10039 + Require space after key in mmd title block (#2026, Nikolay
10040 Yakimov). Require space after key-value delimiter colon in mmd title
10042 + Require nonempty value in mmd title block (Nikolay Yakimov).
10043 + Disable all metadata block extensions when parsing
10044 metadata field values (#2026, Nikolay Yakimov). Otherwise we
10045 could get a mmd title block inside YAML metadata, for example.
10049 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
10050 + Handle tables with `<th>` in body rows (#1859, mb21).
10051 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
10052 to see if the input starts with `<!--`. If not, it's bogus comment
10053 mode and we fail `htmlTag`.
10054 + Handle `base` tag; if it has an `href` value, this is added to
10055 all relative URLs in links and images.
10059 + Look inside "info" elements for section titles (#1931).
10063 + Parse images in deprecated vml format (Jesse Rosenthal).
10064 + Allow sub/superscript verbatims (Jesse Rosenthal).
10065 Verbatim usually shuts off all other run styles, but we don't want it
10066 to shut off sub/superscript.
10070 + Handle `tabular*` environment (#1850).
10071 Note that the table width is not actually parsed or taken into
10072 account, but pandoc no longer chokes on it.
10073 + Ignore options in `\lstinline` rather than raising error (#1997).
10074 + Add some test cases for simple tables (Mathias Schenner).
10075 + Handle valign argument in tables (Mathias Schenner) (currently
10076 we just ignore this).
10077 + Allow non-empty colsep in tables (Mathias Schenner).
10078 The `tabular` environment allows non-empty column separators
10079 with the "@{...}" syntax. Previously, pandoc would fail to
10080 parse tables if a non-empty colsep was present. With this
10081 commit, these separators are still ignored, but the table gets
10082 parsed. A test case is included.
10083 + Recognize `\newpage` as a block command.
10084 + Allow block content in `\title{}` (#2001).
10085 + Check for block-level newcommand aliases in blockCommand (Nikolay
10087 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
10088 + Properly gobble spaces after `\\` (#2007).
10092 + Handle newlines in table cells, and empty cells (#1919).
10096 + Allow image links with non-image targets (Hans-Peter Deifel).
10097 This matches behavior of Org-Mode for links like
10098 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
10102 + Don't print empty id attributes (thanks to Steve Horne).
10106 + Fixed list-style-type for numbered example lists.
10107 Should be "decimal," not "example" (#1902).
10108 + Do not omit missing `alt` attribute on `img` tag (#1131,
10110 + Allow multiple colgroups in table (#2122).
10111 + In revealjs, ensure that lists in speaker notes don't add "fragment"
10112 classes, which can cause additional keypresses to be needed to
10113 advance a slide (#1394).
10117 + Don't escape `$` in URL (#1913).
10118 + Don't use listings in headers (Matthew Pickering, #1963).
10119 + Recognize book documentclass if set in metadata (#1971).
10120 This sets `--chapters` implicitly if the documentclass in metadata
10121 is a book documentclass. Previously this was done only if a book
10122 documentclass was set in a variable.
10123 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
10124 + Make `mainlang` work when `lang` is in metadata (#2174).
10128 + Fix wrapping by using breakable spaces (Tim Lin).
10132 + Fixed toc depth in RST writer. Previously the depth was being
10133 rendered as a floating point number with a decimal point.
10137 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
10138 compatibility with original Markdown. We now escape `<` and `>`
10139 with entities. Also, we now backslash-escape square brackets.
10140 + Avoid introducing spurious list items through wrapping (#1946).
10141 + Don't emit span tags if plain or raw HTML disabled.
10143 * MediaWiki writer:
10145 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
10149 + Insert some needed blank lines (#1860).
10150 + Avoid wrapping after list marker (#1858).
10154 + Properly handle internal links to IDs in spans, divs (#1884).
10155 + Use plain writer for metadata dc: fields (#2121).
10156 This gives better results when we have, e.g. multiple paragraphs.
10157 Note that tags aren't allowed in these fields.
10158 + Properly handle image links without an extension (#1855).
10159 + Improved chapter splitting and internal link rewriting (#1887,
10160 #2162, #2163). This will ensure that internal links work and
10161 that the references section produced by pandoc-citeproc is
10162 in its own chapter.
10163 + Fixed handling of svg images (#2183).
10167 + Better handling of raw blocks and inlines (#1951).
10168 Previously these were always escaped and printed verbatim.
10169 Now they are ignored unless the format is `icml`, in which
10170 case they are passed through unescaped.
10171 + Fixed image URIs in ICML output (gohai).
10175 + Raise error if loadstring returns an error status.
10176 + Raise `PandocLuaException` instead of using 'error'.
10177 Eventually we'll change the return type so that no exception
10178 is involved, but at least this can be trapped.
10179 + Use UTF-8 aware bytestring conversion.
10180 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
10181 Also factored out ByteString, since it's only used as an intermediate
10186 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
10187 + Filter out illegal XML characters (#1992, Matthew Pickering).
10188 + Added `noProof` to docx syntax highlighting `SourceCode` style.
10189 + Added footnotes id -1 and 0 (Jesse Rosenthal).
10190 Word uses, by default, footnotes with id -1 and 0 for separators. If a
10191 user modifies `reference.docx`, they will end up with a `settings.xml`
10192 file that references these footnotes, but no such footnotes in the
10193 document. This will produce a corruption error. Here we add these to the
10194 document and `settings.xml` file, so future modifications won't break
10196 + Handle lists correctly inside table cells (Jesse Rosenthal).
10197 Previously we didn't transform lists inside table cells.
10198 + Set firstRow information in tables (Nikolay Yakimov).
10199 + Don't replace `SourceCode` style in `reference.docx` if it is defined
10200 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
10201 any `SourceCode` and `*Tok` styles in `reference.docx`.
10202 + Attempt to match international style names (#1607, Nikolay Yakimov).
10203 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
10204 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
10205 `Definition`, `First Paragraph`.
10206 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
10207 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
10208 `Footnote Ref -> Footnote Reference`.
10209 + Added `Caption` style (Nikolay Yakimov).
10210 + Changed these styles' inheritance (Nikolay Yakimov):
10211 `Image Caption <- Caption`, `Table Caption <- Caption`.
10212 + Remove `SourceCode` style from `reference.docx` (#1872).
10213 This is added automatically by the docx writer.
10214 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
10216 * `Text.Pandoc.PDF`
10218 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
10219 + More comprehensible errors on image conversion (#2067).
10220 EPS can't be supported without shelling out to something like
10221 ImageMagick, but at least we can avoid mysterious error messages.
10223 * `Text.Pandoc.Shared`:
10225 + Make safeRead safe (#1801, Matthew Pickering).
10226 + Addded `mapLeft`, `hush` (Matthew Pickering).
10228 * `Text.Pandoc.Pretty`:
10230 + Remove partial function (Matthew Pickering).
10232 * `Text.Pandoc.SelfContained`:
10234 + Add `;charset=utf-8` to script mime type if missing (#1842).
10235 + Improved building of data URIs (#1940). Now base64 is used except
10236 for `text/*` mime types.
10237 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
10238 + Properly handle data URIs in css urls (#2129).
10239 Use a proper CSS parser (adds dependency on `text-css`).
10241 * `Text.Pandoc.UTF8`:
10243 + Better handling of bare CRs in input files (#2132).
10244 Previously we just stripped them out; now we convert
10245 other line ending styles to LF line endings.
10247 * `Text.Pandoc.ImageSize`:
10249 + Fixed some exif header parsing bugs (#1834).
10250 + Make imageSize return an Either, not a Maybe (#1834).
10251 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
10252 parse failure (rather than `error`).
10253 + Improved warnings when image size can't be determined.
10254 + Removed error landmines (Matthew Pickering).
10256 * Added woff2 to MIME types (Alfred Wechselberger).
10258 * pandoc: When a binary input format is used, warn that file
10259 arguments past the first one are being ignored (Matthew Pickering).
10261### Template changes
10265 + Degrade gracefully if `\paragraph` not defined.
10266 + Include `grffile` together with `graphicx` (#2074).
10267 This properly handles filenames containing spaces and dots.
10268 + Redefine `\paragraph`, `\subparagraph`... to behave more
10269 like section headers (#1658).
10270 + Import hyperref before polyglossia to avoid an error with xelatex,
10271 "please load package hyperref before bidi package" (Nick Bart).
10272 + Added `toccolor` variable to control link color in toc (Kaixhin).
10274 * LaTeX, Beamer templates:
10276 + Provide `\tightlist`, which is now used by the LaTeX writer.
10277 + Use polyglossia in beamer (#85).
10278 + Use `bibliography` instead of `biblio-files`
10279 (#1661). Also use `\addbibresource` instead of `\bibliography` for
10281 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
10282 variable that is derived from a comma-separated list in `lang`;
10283 the last language is `mainlang` and the others are `otherlang`.
10287 + Use `div`, not `p`, for "rights" on title page.
10288 + Added header-includes, include-before, include-after (#1987).
10290 * OpenDocument template:
10292 + Use `text:p` instead of `text:h` for title.
10293 Using `text:h` causes problems with numbering. Closes #2059.
10294 Thansk to @nkalvi for diagnosing this.
10296 * reveal.js template:
10298 + Link to non-minified css, js. The minified versions no longer
10299 ship with the library.
10300 + Correctly include style CSS (#1949).
10301 + New configurable options options: `center`, `maxScale`, `slideNuber`
10302 (Dmitry Smirnov, pandoc-templates#89).
10303 + Moved custom CSS after theme. This allows custom CSS to modify
10304 themes, instead of being replaced by them.
10305 + Allow `center` to be set to false.
10307### Under the hood improvements
10309 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
10310 Yakimov). Instead the repository now includes the component text files,
10311 and the zipped binaries are built from these using a helper
10312 program, `make-reference-files`. This should make maintenance of
10313 these components easier going forward.
10315 * `Text.Pandoc.Parsing`:
10317 + Added new `<+?>` combinator (Nikolay Yakimov).
10318 + Added `stateHeaderKeys` to `ParserState`.
10320 * `make_deb.sh` fixes:
10322 + Detect architecture.
10323 + Add Installed-Size to debian package control file (#1900).
10324 + Use `fakeroot` to get permissions right.
10325 + Use `mkdir` and `cp` instead of `install`.
10326 + Set permissions of directories to 755.
10327 + Install in `/usr` rather than `/usr/local`.
10328 + Compress man pages.
10329 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
10331 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
10332 to assist with transition to `time` 1.5.
10334 * Updated CONTRIBUTING.md with information about issue tags (Matthew
10337 * Updated travis installs to the new sudo-less syntax (Tim Lin).
10339 * Updated dependency version bounds.
10341 * EPUB tests: don't use `joinPath`, which varies across platforms.
10342 Instead, use a forward-slash to join paths, regardless of the
10343 platform. This matches the way `MediaBag` now works.
10345 * Clarify JSON input and output in usage message (Caleb McDaniel).
10347 * Improved INSTALL instructions.
10349 * Always build man pages. Removed make-pandoc-man-pages flag.
10351 * Makefile: removed man target, now that we generate man pages by default.
10355 + Fixed typos (J. Lewis Muir).
10356 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
10357 + Added note on in-field markup in biblio databases (Nick Bart).
10358 + Fixed misleading example of raw HTML block.
10359 + Various minor formatting and consistency fixes for the program
10360 options (Andreas Lööw).
10361 + Made definition lists for options all "loose" for consistency.
10362 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
10363 `--bib2json` and `--bib2yaml` options (Nick Bart).
10364 + Removed obsolete reference to `mods2yaml` (Nick Bart).
10365 + Added section on syntax highlighting.
10366 + Documented `toccolor` variable.
10368## pandoc 1.13.2.1 (2015-04-15)
10370 * Updated to build with ghc 7.10.1.
10372 * Bumped package upper bounds for filepath, blaze-html, blaze-markup.
10374## pandoc 1.13.2 (2014-12-20)
10376 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
10380 + Better handling of paragraph in div (#1591).
10381 Previously text that ended a div would be parsed as Plain
10382 unless there was a blank line before the closing div tag.
10383 + Don't treat a citation as a reference link label (#1763).
10384 + Fix autolinks with following punctuation (#1811).
10385 The price of this is that autolinked bare URIs can no longer
10386 contain `>` characters, but this is not a big issue.
10387 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
10388 + Allow `startnum` to work without `fancy_lists`. Formerly
10389 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
10391 * RST reader (all Daniel Bergey):
10393 + Parse quoted literal blocks (#65). RST quoted literal blocks are
10394 the same as indented literal blocks (which pandoc already supports)
10395 except that the quote character is preserved in each line.
10396 + Parse RST class directives. The class directive accepts one or more
10397 class names, and creates a Div value with those classes. If the
10398 directive has an indented body, the body is parsed as the children of
10399 the Div. If not, the first block following the directive is made a
10400 child of the Div. This differs from the behavior of rst2xml, which
10401 does not create a Div element. Instead, the specified classes are
10402 applied to each child of the directive. However, most Pandoc Block
10403 constructors to not take an Attr argument, so we can't duplicate this
10405 + Warn about skipped directives.
10406 + Literal role now produces Code. Code role should have "code" class.
10407 + Improved support for custom roles
10409 - Added `sourceCode` to classes for `:code:` role, and anything
10410 inheriting from it.
10411 - Add the name of the custom role to classes if the Inline
10412 constructor supports Attr.
10413 - If the custom role directive does not specify a parent role,
10414 inherit from the `:span:` role.
10416 This differs somewhat from the `rst2xml.py` behavior. If a custom
10417 role inherits from another custom role, Pandoc will attach both
10418 roles' names as classes. `rst2xml.py` will only use the class of
10419 the directly invoked role (though in the case of inheriting from a
10420 `:code:` role with a `:language:` defined, it will also provide the
10421 inherited language as a class).
10422 + Warn about ignored fields in role directives.
10426 + Parse label after caption into a span instead of
10427 inserting an additional paragraph of bracketed text (#1747).
10428 + Parse math environments as inline when possible (#1821).
10429 + Better handling of `\noindent` and `\greektext` (#1783).
10430 + Handle `\texorpdfstring` more gracefully.
10431 + Handle `\cref` and `\sep` (Wikiwide).
10432 + Support `\smartcite` and `\Smartcite` from biblatex.
10436 + Retain display type of MathML output (#1719, Matthew Pickering).
10437 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
10438 + Make `embed` tag either block or inline (#1756).
10442 + Handle `keycombo`, `keycap` (#1815).
10443 + Get string content in inner tags for literal elements (#1816).
10444 + Handle `menuchoice` elements better, with a `>` between (#1817).
10445 + Include `id` on section headers (#1818).
10446 + Document/test "type" as implemented (Brian O'Sullivan).
10447 + Add support for calloutlist and callout (Brian O'Sullivan).
10448 We treat a calloutlist as a bulleted list. This works well in practice.
10449 + Add support for `classname` (Bryan O'Sullivan).
10453 + Fix window path for image lookup (Jesse Rosenthal).
10454 Don't use os-sensitive "combine", since we always want the paths in our
10455 zip-archive to use forward-slashes.
10456 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
10457 When users number their headers, Word understands that as a single item
10458 enumerated list. We make the assumption that such a list is, in fact,
10460 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
10461 There could be new top-level headers after making lists, so we have to
10462 rewrite links after that.
10463 + Use polyglot header list (Jesse Rosenthal).
10464 We're just keeping a list of header formats that different languages
10465 use as their default styles. At the moment, we have English, German,
10466 Danish, and French. We can continue to add to this.
10467 This is simpler than parsing the styles file, and perhaps less
10468 error-prone, since there seems to be some variations, even within a
10469 language, of how a style file will define headers.
10470 + Remove header class properly in other langs (Jesse Rosenthal).
10471 When we encounter one of the polyglot header styles, we want to remove
10472 that from the par styles after we convert to a header. To do that, we
10473 have to keep track of the style name, and remove it appropriately.
10474 + Account for external link URLs with anchors. Previously, if a URL
10475 had an anchor, the reader would incorrectly identify it as an
10476 internal link and return only the anchor as URL. (Caleb McDaniel)
10477 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
10481 + Added state changing blanklines (Jesse Rosenthal).
10482 This allows us to emphasize at the beginning of a new paragraph (or, in
10483 general, after blank lines).
10484 + Fixed bug with bulleted lists:
10490 was being parsed as a list, even though an unindented `*`
10491 should make a heading. See
10492 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
10493 + Org reader: absolute, relative paths in link (#1741, Albert
10494 Krewinkel). The org reader was too restrictive when parsing links;
10495 some relative links and links to files given as absolute paths
10496 were not recognized correctly.
10497 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
10498 This is important for use in gitit, which uses empty links
10500 + Respect indent when parsing Org bullet lists (#1650, Timothy
10501 Humphries). Fixes issue with top-level bullet list parsing.
10502 + Fix indent issue for definition lists (Timothy Humphries,
10503 see #1650, #1698, #1680).
10504 + Parse multi-inline terms correctly in definition list (#1649,
10505 Matthew Pickering).
10506 + Fix rules for emphasis recognition (Albert Krewinkel).
10507 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
10508 strings. This is wrong, as `,` and `'` are forbidden border chars and
10509 may not occur on the inner border of emphasized text.
10510 + Drop COMMENT document trees (Albert Krewinkel).
10511 Document trees under a header starting with the word `COMMENT` are
10512 comment trees and should not be exported. Those trees are dropped
10514 + Properly handle links to `file:target` (Albert Krewinkel).
10515 Org links like `[[file:target][title]]` were not handled correctly,
10516 parsing the link target verbatim. The org reader is changed such that
10517 the leading `file:` is dropped from the link target (see #756, #1812).
10518 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
10519 Org supports special symbols which can be included using LaTeX syntax,
10520 but are actually MathML entities. Examples for this are
10521 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
10522 or `\copy` (the copyright sign ©)
10526 + URI handling improvements. Now we outsource most of the work to
10527 `fetchItem'`. Also, do not include queries in file extensions (#1671).
10531 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
10532 + Handle consecutive linebreaks (#1733).
10533 + Protect graphics in headers (Jesse Rosenthal).
10534 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
10535 + Put `~` before header in list item text (Jesse Rosenthal).
10536 Because of the built-in line skip, LaTeX can't handle a section header
10537 as the first element in a list item.
10538 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
10539 + Better handling of display math in simple tables (#1754).
10540 We convert display math to inline math in simple tables,
10541 since LaTeX can't deal with display math in simple tables.
10542 + Escape spaces in code (#1694, Bjorn Buckwalter).
10544 * MediaWiki writer:
10546 + Fixed links with URL = text. Previously these were rendered as bare
10547 words, even if the URL was not an absolute URL (#1825).
10551 + Don't force all citations into footnotes.
10555 + Add blankline at end of output (#1732, Matthew Pickering).
10559 + Ensure blank line after figure.
10560 + Avoid exces whitespace after last list item (#1777).
10561 + Wrap line blocks with spaces before continuations (#1656).
10562 + Fixed double-rendering of footnotes in RST tables (#1769).
10566 + Better handling of block quotes. This change ensures that
10567 multiple paragraph blockquotes are rendered using native `>`
10568 rather than as HTML (#1738).
10569 + Fix external images (#1739). Preface relative links with ":",
10570 absolute URIs without. (Timothy Humphries)
10574 + Use protocol-relative URL for mathjax.
10575 + Put newline btw img and caption paragraph.
10576 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
10577 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
10578 This adds `KaTeX` to `HTMLMathMethod` (API change).
10579 + Don't double render when `email-obfuscation=none` (#1625, Matthew
10581 + Make header attributes work outside top level (#1711).
10582 Previously they only appeared on top level header elements.
10583 Now they work e.g. in blockquotes.
10587 + Correctly handle images without extensions (#1729).
10588 + Strip querystring in ODT write (#1682, Todd Sifleet).
10592 + Add newline to output.
10596 + Don't add `sourceURL` to absolute URIs (#1669).
10597 + Don't use unsupported `opf:title-type` for epub2.
10598 + Include "landmarks" section in nav document for epub3 (#1757).
10599 + Removed playOrder from navpoint elements in ncx file (#1760).
10600 These aren't required, and they make manual modification of epubs
10602 + Extract title even from structured title.
10603 + Don't include nav node in spine unless `--toc` was requested.
10604 Previously we included it in the spine with `linear="no"`, leading
10605 to odd results in some readers (#1593).
10606 + Fixed absolute URI detection (#1672).
10607 + Correctly resolve relative URIs (#1671).
10608 + Use regular page template for `nav.xhtml`, including doctype (#1759).
10612 + Put docx table captions above tables (#1641, Nikolay Yakimov).
10613 + Get the page width from the reference docx file, and use
10614 it to scale images that are too large to fit (Grégory Bataille).
10615 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
10616 are inferred based on `<w:name val="heading #">` fallback, if there
10617 are no en-US "Heading#" styles
10618 + Look in user data dir for archive `reference.docx`.
10619 + Renumber header and footer relationships to avoid collisions (Jesse
10620 Rosenthal). We previously took the old relationship names of the
10621 headers and footer in secptr. That led to collisions. We now make
10622 a map of availabl names in the relationships file, and then rename
10627 + Add function toLabel (Mark Szepieniec).
10628 This function can be used to sanitize reference labels so that
10629 they do not contain any of the illegal characters \#[]",{}%()|= .
10630 Currently only Links have their labels sanitized, because they
10631 are the only Elements that use passed labels.
10633 * `Text.Pandoc.Shared`:
10635 + Moved import of `toChunks` outside of CPP conditional (#1590).
10636 + Fix `inDirectory` to reset to the original directory in case
10637 an exception occurs (Freiric Barral).
10641 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
10642 Thanks to bluebirch.
10643 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
10645 + LaTeX template: Add shorthands=off to babel options (#1648).
10646 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
10647 This aids styling, making it possible for example to set 0 margins
10648 on the title page (#1758).
10649 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
10650 Previously we just expected 'title', 'subtitle', 'author', 'date'.
10651 Now we still support those, but also support the format recommended
10652 for epub metadata in the pandoc README:
10659 text: An investigation of metadata
10667 text: doi:10.234234.234/33
10668 publisher: My Press
10669 rights: (c) 2007 John Smith, CC BY-NC
10672 * `Text.Pandoc.Templates.getDefaultTemplate`:
10673 don't fail when called with "fb2" (#1660).
10675 * `Text.Pandoc.Parsing`:
10677 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
10678 For example: `$x = \text{the $n$th root of $y$}` (#1677).
10679 + Change `parseFromString` to fail if not all input is consumed.
10680 (Matthew Pickering)
10681 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
10682 used by more readers (API change, Daniel Bergey).
10684 * `Text.Pandoc.Pretty`:
10686 + Improve performance of `realLength` (Matthew Pickering).
10687 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
10688 were getting at the end of markdown fragments (as well as rst, org,
10691 * `Text.Pandoc.MIME`:
10693 + Add mime type for WebVTT (Jason Ronallo).
10694 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
10695 This is needed for epub3 validation.
10697 * `Text.Pandoc.MediaBag`:
10699 + Fix Windows specific path problems (#1597).
10701 * `Text.Pandoc.Shared`:
10703 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
10705 * Link the test suite using `-threaded`.
10706 This allows the test suite to be run using `+RTS -N`.
10708 * Added `network` dependency under `network-uri` flag in test section.
10710 * Give better error messages when someone tries to convert from
10711 pdf, doc, odt (#1683).
10713 * Added `track` to list of tags treated by `--self-contained` (#1664).
10716## pandoc 1.13.1 (2014-08-30)
10718 * Fixed `--self-contained` with Windows paths (#1558).
10719 Previously `C:\foo.js` was being wrongly interpreted as a URI.
10721 * HTML reader: improved handling of tags that can be block or inline.
10722 Previously a section like this would be enclosed in a paragraph,
10723 with RawInline for the video tags (since video is a tag that can
10724 be either block or inline):
10726 <video controls="controls">
10727 <source src="../videos/test.mp4" type="video/mp4" />
10728 <source src="../videos/test.webm" type="video/webm" />
10730 The videos can not be played back on your system.<br/>
10731 Try viewing on Youtube (requires Internet connection):
10732 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
10737 This change will cause the video and source tags to be parsed
10738 as RawBlock instead, giving better output.
10739 The general change is this: when we're parsing a "plain" sequence
10740 of inlines, we don't parse anything that COULD be a block-level tag.
10744 + Be sensitive to user styles. Note that "Hyperlink" is
10745 "blacklisted," as we don't want the default underline styling to be
10746 inherited by all links by default (Jesse Rosenthal).
10747 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
10748 This makes to docx reader's native output fit with the way the markdown
10749 reader understands its markdown output.
10753 + Header is now parsed only if standalone flag is set (Matthew Pickering).
10754 + The header is now parsed as meta information. The first line is the
10755 `title`, the second is the `author` and third line is the `date`
10756 (Matthew Pickering).
10757 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
10758 + Fixed crash when reading from stdin.
10760 * Textile writer: Extended the range of cases where native textile
10761 tables will be used (as opposed to raw HTML): we now handle any
10762 alignment type, but only for simple tables with no captions.
10764 * EPUB writer: Don't use page-progression-direction in EPUB2, which
10765 doesn't support it. Also, if page-progression-direction not specified
10766 in metadata, don't include the attribute even in EPUB3; not including it
10767 is the same as including it with the value "default", as we did before.
10770 * Org writer: Accept example lines with indentation at the beginning
10775 + Refactor to use Reader monad (Matthew Pickering).
10776 + Avoid using raw HTML in table cells; instead, use `\\`
10777 instead of newlines (Jesse Rosenthal).
10778 + Properly handle HTML table cell alignments, and use spacing
10779 to make the tables look prettier (#1566).
10783 + Bibliography entries get `Bibliography` style (#1559).
10784 + Implement change tracking (Jesse Rosenthal).
10788 + Fixed a bug that caused a table caption to repeat across all pages
10790 + Improved vertical spacing in tables and made it customizable using
10791 standard lengths set by booktab. See
10792 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
10794 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
10795 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
10796 + Made horizontal rules more flexible (Jose Luis Duran).
10798 * Text.Pandoc.MIME:
10800 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
10801 Code cleanups (Artyom Kazak).
10805 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
10808 * Improved OSX build procedure.
10810 * Added `network-uri` flag, to deal with split of `network-uri` from
10813 * Fix build dependencies for the `trypandoc` flag, so that they are
10814 ignored if `trypandoc` flag is set to False (Gabor Pali).
10816 * Updated README to remove outdated claim that `--self-contained`
10817 looks in the user data directory for missing files.
10819## pandoc 1.13.0.1 (2014-08-17)
10823 + Fixed regression which bungled list numbering (#1544), causing
10824 all lists to appear as basic ordered lists.
10825 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
10826 Added a property to all table rows where the sum of column widths
10827 is specified in pct (fraction of 5000). This helps persuade Word
10828 to lay out the table with the widths we specify.
10830 * Fixed a bug in Windows 8 which caused pandoc not to find the
10831 `pandoc-citeproc` filter (#1542).
10833 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
10834 Most significantly, the reader now uses Builder, leading to some
10835 performance improvements.
10837 * HTML reader: Parse appropriately styled span as SmallCaps.
10839 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
10840 `superscript`, and `subscript` extensions, respectively, are
10841 deactivated (#1127).
10843 * Added `trypandoc` flag to build CGI executable used in the online
10846 * Makefile: Added 'quick', 'osxpkg' targets.
10848 * Updated README in templates to indicate templates license.
10849 The templates are dual-licensed, BSD3 and GPL2+.
10851## pandoc 1.13 (15 August 2014)
10855 * Added `docx` as an input format (Jesse Rosenthal). The docx
10856 reader includes conversion of native Word equations to pandoc
10857 LaTeX `Math` elements. Metadata is taken from paragraphs at the
10858 beginning of the document with styles `Author`, `Title`, `Subtitle`,
10859 `Date`, and `Abstract`.
10861 * Added `epub` as an input format (Matthew Pickering). The epub
10862 reader includes conversion of MathML to pandoc LaTeX `Math`
10865 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
10866 Txt2tags is a lightweight markup format described at
10867 <http://txt2tags.org/>.
10869 * Added `dokuwiki` as an output format (Clare Macrae).
10871 * Added `haddock` as an output format.
10873 * Added `--extract-media` option to extract media contained in a zip
10874 container (docx or epub) while adjusting image paths to point to the
10877 * Added a new markdown extension, `compact_definition_lists`, that
10878 restores the syntax for definition lists of pandoc 1.12.x, allowing
10879 tight definition lists with no blank space between items, and
10880 disallowing lazy wrapping. (See below under behavior changes.)
10882 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
10884 * Added extensions `native_spans` and `native_divs` to activate
10885 parsing of material in HTML span or div tags as Pandoc Span
10886 inlines or Div blocks.
10888 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
10889 Textile, and MediaWiki readers. This is an option intended
10890 for debugging parsing problems; ordinary users should not need
10893### Behavior changes
10895 * Changed behavior of the `markdown_attribute` extension, to bring
10896 it in line with PHP markdown extra and multimarkdown. Setting
10897 `markdown="1"` on an outer tag affects all contained tags,
10898 recursively, until it is reversed with `markdown="0"` (#1378).
10900 * Revised markdown definition list syntax (#1429). Both the reader
10901 and writer are affected. This change brings pandoc's definition list
10902 syntax into alignment with that used in PHP markdown extra and
10903 multimarkdown (with the exception that pandoc is more flexible about
10904 the definition markers, allowing tildes as well as colons). Lazily
10905 wrapped definitions are now allowed. Blank space is required
10906 between list items. The space before a definition is used to determine
10907 whether it is a paragraph or a "plain" element. **WARNING: This change
10908 may break existing documents!** Either check your documents for
10909 definition lists without blank space between items, or use
10910 `markdown+compact_definition_lists` for the old behavior.
10912 * `.numberLines` now works in fenced code blocks even if no language
10913 is given (#1287, jgm/highlighting-kate#40).
10915 * Improvements to `--filter`:
10917 + Don't search PATH for a filter with an explicit path.
10918 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
10919 the system path, even if there was a `caps.py` in the working directory.
10920 + Respect shebang if filter is executable (#1389).
10921 + Don't print misleading error message.
10922 Previously pandoc would say that a filter was not found,
10923 even in a case where the filter had a syntax error.
10927 + Parse `div` and `span` elements even without `--parse-raw`,
10928 provided `native_divs` and `native_spans` extensions are set.
10929 Motivation: these now generate native pandoc Div and Span
10930 elements, not raw HTML.
10931 + Parse EPUB-specific elements if the `epub_html_exts`
10932 extension is enabled. These include `switch`, `footnote`,
10933 `rearnote`, `noteref`.
10937 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
10938 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
10939 `\cite{Coffee}`), can be used without any further escaping (Albert
10942 * Textile reader and writer:
10944 + The `raw_tex` extension is no longer set by default. You can
10945 enable it with `textile+raw_tex`.
10949 + Support `equation`, `informalequation`, `inlineequation` elements with
10950 `mml:math` content. This is converted into LaTeX and put into a Pandoc
10953 * Revised `plain` output, largely following the style of Project
10956 + Emphasis is rendered with `_underscores_`, strong emphasis
10958 + Headings are rendered differently, with space to set them off,
10959 not with setext style underlines. Level 1 headers are ALL CAPS.
10960 + Math is rendered using unicode when possible, but without the
10961 distracting emphasis markers around variables.
10962 + Footnotes use a regular `[n]` style.
10966 + Horizontal rules are now a line across the whole page.
10967 + Prettier pipe tables. Columns are now aligned (#1323).
10968 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
10969 no longer emits any raw HTML, including span and div tags
10970 generated by Span and Div elements.
10971 + Use span with style for `SmallCaps` (#1360).
10975 + Autolinks now have class `uri`, and email autolinks have class
10976 `email`, so they can be styled.
10980 + Document formatting is carried over from `reference.docx`.
10981 This includes margins, page size, page orientation, header,
10982 and footer, including images in headers and footers.
10983 + Include abstract (if present) with `Abstract` style (#1451).
10984 + Include subtitle (if present) with `Subtitle` style, rather
10985 than tacking it on to the title (#1451).
10989 + Write empty span elements with an id attribute as org anchors.
10990 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
10994 + Put table captions above tables, to match the conventional
10995 standard. (Previously they appeared below tables.)
10996 + Use `\(..\)` instead of `$..$` for inline math (#1464).
10997 + Use `\nolinkurl` in email autolinks. This allows them to be styled
10998 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
10999 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
11000 curly quotes in the PDF output (#1364).
11001 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
11002 do not appear before the overlays in which their markers appear
11004 + Don't produce a `\label{..}` for a Div or Span element. Do produce
11005 a `\hyperdef{..}` (#1519).
11009 + If the metadata includes `page-progression-direction` (which can be
11010 `ltr` or `rtl`, the `page-progression-direction` attribute will
11011 be set in the EPUB spine (#1455).
11013 * Custom lua writers:
11015 + Custom writers now work with `--template`.
11016 + Removed HTML header scaffolding from `sample.lua`.
11017 + Made citation information available in lua writers.
11019 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
11020 adjacent `RawBlock`s when possible.
11024 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
11026 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
11029 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
11032 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
11035 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
11037 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
11038 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
11039 readers return a pair of a `Pandoc` document and a `MediaBag` with
11040 the media resources they contain. This can be extracted using
11041 `--extract-media`. Writers that incorporate media (PDF, Docx,
11042 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
11043 for resources in the `MediaBag` generated by the reader, in addition to
11044 the file system or web.
11046 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
11047 Renamed `readTeXMath'` to `texMathToInlines`.
11049 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
11050 `readers` now associates names of readers with `Reader`
11051 structures. This allows inclusion of readers, like the docx
11052 reader, that take binary rather than textual input.
11054 * `Text.Pandoc.Shared`:
11056 + Added `capitalize` (Artyom Kazak), and replaced uses of
11057 `map toUpper` (which give bad results for many languages).
11058 + Added `collapseFilePath`, which removes intermediate `.` and
11059 `..` from a path (Matthew Pickering).
11060 + Added `fetchItem'`, which works like `fetchItem` but searches
11061 a `MediaBag` before looking on the net or file system.
11062 + Added `withTempDir`.
11063 + Added `removeFormatting`.
11064 + Added `extractSpaces` (from HTML reader) and generalized its type
11065 so that it can be used by the docx reader (Matthew Pickering).
11067 + Added `normalizeInlines`, `normalizeBlocks`.
11068 + `normalize` is now `Pandoc -> Pandoc` instead of
11069 `Data a :: a -> a`. Some users may need to change their uses of
11070 `normalize` to the newly exported `normalizeInlines` or
11073 * `Text.Pandoc.Options`:
11075 + Added `writerMediaBag` to `WriterOptions`.
11076 + Removed deprecated and no longer used `readerStrict` in
11077 `ReaderOptions`. This is handled by `readerExtensions` now.
11078 + Added `Ext_compact_definition_lists`.
11079 + Added `Ext_epub_html_exts`.
11080 + Added `Ext_native_divs` and `Ext_native_spans`.
11081 This allows users to turn off the default pandoc behavior of
11082 parsing contents of div and span tags in markdown and HTML
11083 as native pandoc Div blocks and Span inlines.
11085 * `Text.Pandoc.Parsing`:
11087 + Generalized `readWith` to `readWithM` (Matthew Pickering).
11088 + Export `runParserT` and `Stream` (Matthew Pickering).
11089 + Added `HasQuoteContext` type class (Matthew Pickering).
11090 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
11091 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
11092 `applyMacros` (Matthew Pickering).
11093 + Added custom `token` (Matthew Pickering).
11094 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
11095 track of the ending tag we're waiting for when we're parsing inside
11097 + Added `stateMarkdownAttribute` to `ParserState`. This is used
11098 to keep track of whether the markdown attribute has been set in
11100 + Generalized type of `registerHeader`, using new type classes
11101 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
11102 Pickering). These allow certain common functions to be reused
11103 even in parsers that use custom state (instead of `ParserState`),
11104 such as the MediaWiki reader.
11105 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
11106 and generalized their types (Matthew Pickering).
11108 * `Text.Pandoc.Pretty`:
11111 + Added `blanklines`, which guarantees a certain number of blank lines
11118 + Fixed parsing of indented code in list items. Indented code
11119 at the beginning of a list item must be indented eight spaces
11120 from the margin (or edge of the container), or four spaces
11121 from the list marker, whichever is greater.
11122 + Fixed small bug in HTML parsing with `markdown_attribute`, which
11123 caused incorrect tag nesting for input like
11124 `<aside markdown="1">*hi*</aside>`.
11125 + Fixed regression with intraword underscores (#1121).
11126 + Improved parsing of inline links containing quote characters (#1534).
11127 + Slight rewrite of `enclosure`/`emphOrStrong` code.
11128 + Revamped raw HTML block parsing in markdown (#1330).
11129 We no longer include trailing spaces and newlines in the
11130 raw blocks. We look for closing tags for elements (but without
11131 backtracking). Each block-level tag is its own `RawBlock`;
11132 we no longer try to consolidate them (though `--normalize` will do so).
11133 + Combine consecutive latex environments. This helps when you have
11134 two minipages which can't have blank lines between them (#690, #1196).
11135 + Support smallcaps through span.
11136 `<span style="font-variant:small-caps;">foo</span>` will be
11137 parsed as a `SmallCaps` inline, and will work in all output
11138 formats that support small caps (#1360).
11139 + Prevent spurious line breaks after list items (#1137). When the
11140 `hard_line_breaks` option was specified, pandoc would formerly
11141 produce a spurious line break after a tight list item.
11142 + Fixed table parsing bug (#1333).
11143 + Handle `c++` and `objective-c` as language identifiers in
11144 github-style fenced blocks (#1318).
11145 + Inline math must have nonspace before final `$` (#1313).
11149 + Handle comments at the end of tables. This resolves the issue
11150 illustrated in <http://stackoverflow.com/questions/24009489>.
11151 + Correctly handle table rows with too few cells. LaTeX seems to
11152 treat them as if they have empty cells at the end (#241).
11153 + Handle leading/trailing spaces in `\emph` better.
11154 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
11155 so that we don't get things like `* hi *` in markdown output.
11156 Also applies to `textbf` and some other constructions (#1146).
11157 + Don't assume preamble doesn't contain environments (#1338).
11158 + Allow (and discard) optional argument for `\caption` (James Aspnes).
11162 + Fixed major parsing problem with HTML tables. Table cells were
11163 being combined into one cell (#1341).
11164 + Fixed performance issue with malformed HTML tables.
11165 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
11166 + Allow space between `<col>` and `</col>`.
11167 + Added `audio` and `source` in `eitherBlockOrInline`.
11168 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
11169 `blockTags` to `eitherBlockOrInline`.
11170 + `map` and `object` were mistakenly in both lists; they have been removed
11172 + Ignore `DOCTYPE` and `xml` declarations.
11174 * MediaWiki reader:
11176 + Don't parse backslash escapes inside `<source>` (#1445).
11177 + Tightened up template parsing.
11178 The opening `{{` must be followed by an alphanumeric or `:`.
11179 This prevents the exponential slowdown in #1033.
11180 + Support "Bild" for images.
11184 + Better handle elements inside code environments. Pandoc's document
11185 model does not allow structure inside code blocks, but at least this way
11186 we preserve the text (#1449).
11187 + Support `<?asciidoc-br?>` (#1236).
11191 + Fixed list parsing. Lists can now start without an intervening
11192 blank line (#1513).
11193 + HTML block-level tags that do not start a line are parsed as
11194 inline HTML and do not interrupt paragraphs (as in RedCloth).
11198 + Make tildes create inline code (#1345). Also relabeled `code` and
11199 `verbatim` parsers to accord with the org-mode manual.
11200 + Respect `:exports` header argument in code blocks (Craig Bosma).
11201 + Fixed tight lists with sublists (#1437).
11205 + Avoid excess whitespace in `nav.xhtml`. This should improve
11206 TOC view in iBooks (#1392).
11207 + Fixed regression on cover image.
11208 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
11209 because the metadata id was not correct. Now we derive the id from the
11210 actual cover image filename, which we preserve rather than using
11212 + Keep newlines between block elements. This allows
11213 easier diff-ability (#1424).
11214 + Use `stringify` instead of custom `plainify`.
11215 + Use `renderTags'` for all tag rendering. This properly handles tags
11216 that should be self-closing. Previously `<hr/>` would appear in EPUB
11217 output as `<hr></hr>` (#1420).
11218 + Better handle HTML media tags.
11219 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
11220 can have only one dc:date, so only the first one is used.
11224 + Correctly handle figures in notes. Notes can't contain figures in
11225 LaTeX, so we fake it to avoid an error (#1053).
11226 + Fixed strikeout + highlighted code (#1294).
11227 Previously strikeout highlighted code caused an error.
11231 + Improved detection of autolinks with URLs containing escapes.
11235 + Improved image embedding: `fetchItem'` is now used to get the
11236 images, and calculated image sizes are indicated in the RTF.
11237 + Avoid extra paragraph tags in metadata (#1421).
11241 + Deactivate "incremental" inside slide speaker notes (#1394).
11242 + Don't include empty items in the table of contents for
11243 slide shows. (These would result from creating a slide
11244 using a horizontal rule.)
11246 * MediaWiki writer:
11248 + Minor renaming of `st` prefixed names.
11252 + Double up emphasis and strong emphasis markers in intraword
11253 contexts, as required by asciidoc (#1441).
11257 + Avoid wrapping that might start a list, blockquote, or header (#1013).
11258 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
11259 + Don't use braced attributes for fenced code (#1416).
11260 If `Ext_fenced_code_attributes` is not set, the first class
11261 attribute will be printed after the opening fence as a bare word.
11262 + Separate adjacent lists of the same kind with an HTML comment (#1458).
11266 + Fixed treatment of data uris for images (#1062).
11270 + Use Compact style for empty table cells (#1353).
11271 Otherwise we get overly tall lines when there are empty
11272 table cells and the other cells are compact.
11273 + Create overrides per-image for `media/` in reference docx.
11274 This should be somewhat more robust and cover more types of images.
11275 + Improved `entryFromArchive` to avoid an unneeded parse.
11276 + Section numbering carries over from reference.docx (#1305).
11277 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
11278 we assign numbers based on the list marker styles.
11280 * `Text.Pandoc.Options`:
11282 + Removed `Ext_fenced_code_attributes` from `markdown_github`
11285 * `Text.Pandoc.ImageSize`:
11287 + Use default instead of failing if image size not found
11288 in exif header (#1358).
11289 + ignore unknown exif header tag rather than crashing.
11290 Some images seem to have tag type of 256, which was causing
11293 * `Text.Pandoc.Shared`:
11295 + `fetchItem`: unescape URI encoding before reading local file (#1427).
11296 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
11297 doing mime lookup, to improve mime type guessing.
11298 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
11299 other things are treated as relative URIs if `sourceURL` is `Just _`,
11300 otherwise as file paths on the local file system.
11301 + `fetchItem` now properly handles links without a protocol (#1477).
11302 + `fetchItem` now escapes characters not allowed in URIs before trying
11304 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
11306 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
11307 needed to resolve relative URLs when we fetch resources (#750).
11309 * `Text.Pandoc.Parsing`
11311 + Simplified `dash` and `ellipsis` (#1419).
11312 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
11313 + Generalized functions to use `ParsecT` (Matthew Pickering).
11314 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
11317### Template changes
11319 * Added haddock template.
11320 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
11321 be "advisory" in HTML5, but kindlegen seems to require them.
11322 * EPUB3: Put title page in section with `epub:type="titlepage"`.
11323 * LaTeX: Made `\subtitle` work properly (#1327).
11324 * LaTeX/Beamer: remove conditional around date (#1321).
11325 * LaTeX: Added `lot` and `lof` variables, which can be set to
11326 get `\listoftables` and `\listoffigures` (#1407). Note that
11327 these variables can be set at the command line with `-Vlot -Vlof`
11328 or in YAML metadata.
11330### Under the hood improvements
11332 * Rewrote normalize for efficiency (#1385).
11334 * Rewrote Haddock reader to use `haddock-library` (#1346).
11336 + This brings pandoc's rendering of haddock markup in line
11337 with the new haddock.
11338 + Fixed line breaks in `@` code blocks.
11339 + alex and happy are no longer build-depends.
11341 * Added `Text.Pandoc.Compat.Directory` to allow building against
11342 different versions of the `directory` library.
11344 + Added `Text.Pandoc.Compat.Except` to allow building against
11345 different verions of `mtl`.
11347 * Code cleanup in some writers, using Reader monad to avoid
11348 passing options parameter around (Matej Kollar).
11350 * Improved readability in `pandoc.hs`.
11352 * Miscellaneous code cleanups (Artyom Kazak).
11354 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
11357 * Changed `http-conduit` flag to `https`. Depend on `http-client`
11358 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
11359 depends on `conduit` via `yaml`.)
11361 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
11362 This change to highlighting-kate means that PHP fragments no longer need
11363 to start with `<?php`. It also fixes a serious bug causing failures with
11366 * Require latest `texmath`. This fixes `\tilde{E}` and allows
11367 `\left` to be used with `]`, `)` etc. (#1319), among many other
11370 * Require latest `zip-archive`. This has fixes for unicode path names.
11372 * Added tests for plain writer.
11374 * `Text.Pandoc.Templates`:
11376 + Fail informatively on template syntax errors.
11377 With the move from parsec to attoparsec, we lost good error
11378 reporting. In fact, since we weren't testing for end of input,
11379 malformed templates would fail silently. Here we revert back to
11380 Parsec for better error messages.
11381 + Use `ordNub` (#1022).
11385 + Made benchmarks compile again (Artyom Kazak).
11386 + Fixed so that the failure of one benchmark does not prevent others
11387 from running (Artyom Kazak).
11388 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
11389 + Changed benchmark to use only the test suite, so that benchmarks
11392 * Windows build script:
11394 + Add `-windows` to file name.
11395 + Use one install command for pandoc, pandoc-citeproc.
11396 + Force install of pandoc-citeproc.
11398 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
11399 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
11400 will extract it into a folder named `SOMETHING.pkg`, which it
11401 will interpret as a defective package (#1308).
11405 + Made headers for all extensions so they have IDs and can be
11406 linked to (Beni Cherniavsky-Paskin).
11407 + Fixed typos (Phillip Alday).
11408 + Fixed documentation of attributes (#1315).
11409 + Clarified documentation on small caps (#1360).
11410 + Better documentation for `fenced_code_attributes` extension
11412 + Documented fact that you can put YAML metadata in a separate file
11416## pandoc 1.12.4.2 (2014-05-14)
11418 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
11420 * Shared: `addMetaValue` now behaves slightly differently:
11421 if both the new and old values are lists, it concatenates their
11422 contents to form a new list.
11426 + Set `bibliography` in metadata from `\bibliography` or
11427 `\addbibresource` command.
11428 + Don't error on `%foo` with no trailing newline.
11432 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
11433 + Fix parsing of blank lines within blocks (Albert Krewinkel).
11434 + Support pandoc citation extension (Albert Krewinkel). This can
11435 be turned off by specifying `org-citation` as the input format.
11439 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
11440 other readers (Albert Krewinkel).
11442 * `Text.Pandoc.Parsing`:
11444 + Added `citeKey` (see above).
11445 + Added `HasLastStrPosition` type class and `updateLastStrPos`
11446 and `notAfterString` functions.
11448 * Updated copyright notices (Albert Krewinkel).
11450 * Added default.icml to data files so it installs with the package.
11454 + The binary is now built with options to ensure that it can be
11455 used with OSX 10.6+.
11456 + Moved OSX package materials to osx directory.
11457 + Added OSX package uninstall script, included in the zip container
11458 (thanks to Daniel T. Staal).
11460## pandoc 1.12.4 (2014-05-07)
11462 * Made it possible to run filters that aren't executable
11463 (#1096). Pandoc first tries to find the executable (searching
11464 the path if path isn't given). If it fails, but the file
11465 exists and has a `.py`, `.pl`, `.rb`, `.hs`, or `.php`
11466 extension, pandoc runs the filter using the appropriate
11467 interpreter. This should make it easier to use filters on
11468 Windows, and make it more convenient for everyone.
11470 * Added Emacs org-mode reader (Albert Krewinkel).
11472 * Added InDesign ICML Writer (mb21).
11474 * MediaWiki reader:
11476 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
11477 + Fixed bug in certain nested lists (#1213). If a level 2 list was
11478 followed by a level 1 list, the first item of the level 1 list
11480 + Handle table rows containing just an HTML comment (#1230).
11484 + Give better location information on errors, pointing to line
11485 numbers within included files (#1274).
11486 + LaTeX reader: Better handling of `table` environment (#1204).
11487 Positioning options no longer rendered verbatim.
11488 + Better handling of figure and table with caption (#1204).
11489 + Handle `@{}` and `p{length}` in tabular. The length is not actually
11490 recorded, but at least we get a table (#1180).
11491 + Properly handle `\nocite`. It now adds a `nocite` metadata
11492 field. Citations there will appear in the bibliography but not
11493 in the text (unless you explicitly put a `$nocite$` variable
11498 + Ensure that whole numbers in YAML metadata are rendered without
11499 decimal points. (This became necessary with changes to aeson
11500 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
11501 + Fixed regression on line breaks in strict mode (#1203).
11502 + Small efficiency improvements.
11503 + Improved parsing of nested `div`s. Formerly a closing `div` tag
11504 would be missed if it came right after other block-level tags.
11505 + Avoid backtracking when closing `</div>` not found.
11506 + Fixed bug in reference link parsing in `markdown_mmd`.
11507 + Fixed a bug in list parsing (#1154). When reading a raw list
11508 item, we now strip off up to 4 spaces.
11509 + Fixed parsing of empty reference link definitions (#1186).
11510 + Made one-column pipe tables work (#1218).
11514 + Better support for attributes. Instead of being ignored, attributes
11515 are now parsed and included in Span inlines. The output will be a bit
11516 different from stock textile: e.g. for `*(foo)hi*`, we'll get
11517 `<em><span class="foo">hi</span></em>` instead of
11518 `<em class="foo">hi</em>`. But at least the data is not lost.
11519 + Improved treatment of HTML spans (%) (#1115).
11520 + Improved link parsing. In particular we now pick up on attributes.
11521 Since pandoc links can't have attributes, we enclose the whole link in
11522 a span if there are attributes (#1008).
11523 + Implemented correct parsing rules for inline markup (#1175, Matthew
11525 + Use Builder (Matthew Pickering).
11529 + Better treatment of `formalpara`. We now emit the title (if present)
11530 as a separate paragraph with boldface text (#1215).
11531 + Set metadata `author` not `authors`.
11532 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
11533 Matthew Pickering).
11534 + Converted current meta information parsing in DocBook to a more
11535 extensible version which is aware of the more recent meta
11536 representation (Matthew Pickering).
11540 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
11542 + Treat processing instructions & declarations as block. Previously
11543 these were treated as inline, and included in paragraph tags in HTML
11544 or DocBook output, which is generally not what is wanted (#1233).
11545 + Updated `closes` with rules from HTML5 spec.
11546 + Use Builder (Matthew Pickering, #1162).
11550 + Remove duplicate `http` in PEP links (Albert Krewinkel).
11551 + Make rst figures true figures (#1168, CasperVector)
11552 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
11553 rST parser now supports: all built-in rST roles, new role definition,
11554 role inheritance, though with some limitations.
11555 + Use `author` rather than `authors` in metadata.
11556 + Better handling of directives. We now correctly handle field
11557 lists that are indented more than three spaces. We treat an
11558 `aafig` directive as a code block with attributes, so it can be
11559 processed in a filter (#1212).
11563 + Mark span contents with label if span has an ID (Albert Krewinkel).
11564 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
11565 + Handle line breaks in simple table cells (#1217).
11566 + Workaround for level 4-5 headers in quotes. These previously produced
11567 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
11568 This adds an `mbox{}` in these contexts to work around the problem.
11569 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
11570 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
11571 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
11572 ligature with LuaLaTeX but `\/` does.
11573 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
11575 * ConTeXt writer: Improved autolinks (#1270).
11579 + Improve handling of hard line breaks in Docbook writer
11580 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
11581 just for the newline character.
11582 + Don't let line breaks inside footnotes influence the enclosing
11583 paragraph (Neil Mayhew).
11584 + Distinguish tight and loose lists in DocBook output, using
11585 `spacing="compact"` (Neil Mayhew, #1250).
11587 * Docx writer: When needed files are not present in the user's
11588 `reference.docx`, fall back on the versions in the `reference.docx`
11589 in pandoc's data files. This fixes a bug that occurs when a
11590 `reference.docx` saved by LibreOffice is used. (#1185)
11594 + Include extension in epub ids. This fixes a problem with duplicate
11595 extensions for fonts and images with the same base name but different
11596 extensions (#1254).
11597 + Handle files linked in raw `img` tags (#1170).
11598 + Handle media in `audio` source tags (#1170).
11599 Note that we now use a `media` directory rather than `images`.
11600 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
11601 will both be incorporated into `content.opf` and the epub container.
11605 + Add colgroup around col tags (#877). Also affects EPUB writer.
11606 + Fixed bug with unnumbered section headings. Unnumbered section
11607 headings (with class `unnumbered`) were getting numbers.
11608 + Improved detection of image links. Previously image links with
11609 queries were not recognized, causing `<embed>` to be used instead
11612 * Man writer: Ensure that terms in definition lists aren't line wrapped
11617 + Use proper escapes to avoid unwanted lists (#980). Previously we used
11618 0-width spaces, an ugly hack.
11619 + Use longer backtick fences if needed (#1206). If the content contains a
11620 backtick fence and there are attributes, make sure longer fences are
11621 used to delimit the code. Note: This works well in pandoc, but github
11622 markdown is more limited, and will interpret the first string of three
11623 or more backticks as ending the code block.
11625 * RST writer: Avoid stack overflow with certain tables (#1197).
11627 * RTF writer: Fixed table cells containing paragraphs.
11631 + Correctly handle UTF-8 in custom lua scripts (#1189).
11632 + Fix bugs with lua scripts with mixed-case filenames and
11633 paths containing `+` or `-` (#1267). Note that `getWriter`
11634 in `Text.Pandoc` no longer returns a custom writer on input
11637 * AsciiDoc writer: Handle multiblock and empty table cells
11638 (#1245, #1246). Added tests.
11640 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
11642 * `Text.Pandoc.Shared`:
11644 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
11645 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
11646 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
11648 + `openURL`: set proxy with value of http_proxy env variable (#1211).
11649 Note: proxies with non-root paths are not supported, due to
11650 limitations in `http-conduit`.
11652 * `Text.Pandoc.PDF`:
11654 + Ensure that temp directories deleted on Windows (#1192). The PDF is
11655 now read as a strict bytestring, ensuring that process ownership will
11656 be terminated, so the temp directory can be deleted.
11657 + Use `/` as path separators in a few places, even on Windows.
11658 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
11659 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
11660 + Changes to error reporting, to handle non-UTF8 error output.
11662 * `Text.Pandoc.Templates`:
11664 + Removed unneeded datatype context (Merijn Verstraaten).
11666 + YAML objects resolve to "true" in conditionals (#1133).
11667 Note: If `address` is a YAML object and you just have `$address$`
11668 in your template, the word `true` will appear, which may be
11669 unexpected. (Previously nothing would appear.)
11671 * `Text.Pandoc.SelfContained`: Handle `poster` attribute in `video`
11674 * `Text.Pandoc.Parsing`:
11676 + Made `F` an instance of Applicative (#1138).
11677 + Added `stateCaption`.
11678 + Added `HasMacros`, simplified other typeclasses.
11679 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
11680 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
11681 + Changed the smart punctuation parser to return `Inlines`
11682 rather than `Inline` (Matthew Pickering).
11683 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
11684 from typeclasses of monads to typeclasses of states. This simplifies
11685 the instance definitions and provides more flexibility. Generalized
11686 type of `getOption` and added a default definition. Removed
11687 `askReaderOption`. Added `extractReaderOption`. Added
11688 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
11689 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
11690 `modifyHeaderMap`. Added `extractIdentifierList` and
11691 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
11692 for `getIdentifierList`, `putIdentifierList`, and
11693 `modifyIdentifierList`. The ultimate goal here is to allow different
11694 parsers to use their own, tailored parser states (instead of
11695 `ParserState`) while still using shared functions.
11697 * Template changes:
11699 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
11700 + LaTeX template: Add `linestretch` and `fontfamily` variables.
11701 + LaTeX template: Conditionalize author and date commands.
11702 + Beamer template: Consistent styles for figure and table captions
11704 + LaTeX and beamer template: Adjust widths correctly for oversized
11705 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
11706 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
11707 `upquote` only after `fontenc` (Yihui Xie).
11708 + Beamer template: Added caption package (#1200).
11709 + Beamer template: changes for better unicode handling (KarolS).
11710 + DocBook template: use `authorgroup` if there are authors.
11711 + revealjs template: Move `include-after` to end (certainlyakey).
11712 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
11714 * Bumped version bounds of dependencies.
11716 * Added a `--trace` command line option, for debugging backtracking
11717 bugs. So far this only works with the markdown reader.
11719 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
11721 * Updated travis script to test with multiple GHC versions.
11723 * Force failure of a Travis build if GHC produces warnings (Albert
11726 * Add `.editorconfig` (Albert Krewinkel).
11727 See <http://editorconfig.org/> for details.
11729 * Give more useful error message if '-t pdf' is specified (#1155).
11731 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
11733 * Allow `html4` as a synonym of `html` as a reader (it already works
11738 + Added an explanation of how to use YAML metadata to
11739 force items to appear in the bibliography without citations in
11740 the text (like LaTeX `\nocite`).
11741 + Added note to `--bibtex/--natbib`: not for use in making PDF
11742 (#1194, thanks to nahoj).
11743 + Added explanatory notes about `--natbib` and `--biblatex`.
11744 + Added specification of legal syntax for citation keys.
11745 + Fixed variable defaults documentation (Albert Krewinkel).
11747 * Removed copyright statements for files that have been removed
11748 (Albert Krewinkel).
11750 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
11751 They aren't needed at runtime. We keep README and COPYRIGHT in data
11752 to ensure that they'll be available on all systems on which pandoc
11755 * Use cabal sandboxes in Windows build script.
11757## pandoc 1.12.3.3 (2014-02-03)
11759 * To changes to source; recompiled tarball with latest alex and
11760 happy, so they will work with GHC 7.8.
11762## pandoc 1.12.3.2 (2014-02-03)
11764 * Bumped version bounds for blaze-html, blaze-markup.
11766 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
11769 * Fixed mediawiki ordered list parsing (#1122).
11771 * HTML reader: Fixed bug reading inline math with `$$` (#225).
11773 * Added support for LaTeX style literate Haskell code blocks in rST
11774 (Merijn Verstraaten).
11776## pandoc 1.12.3.1 (2014-01-14)
11778 * Relaxed version constraint on binary, allowing the use of binary 0.5.
11781## pandoc 1.12.3 (2014-01-10)
11783 * The `--bibliography` option now sets the `biblio-files` variable.
11784 So, if you're using `--natbib` or `--biblatex`, you can just use
11785 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
11787 * Don't run pandoc-citeproc filter if `--bibliography` is
11788 used together with `--natbib` or `--biblatex` (Florian Eitel).
11790 * Template changes:
11792 + Updated beamer template to include booktabs.
11793 + Added `abstract` variable to LaTeX template.
11794 + Put `header-includes` after `title` in LaTeX template (#908).
11795 + Allow use of `\includegraphics[size]` in beamer.
11796 This just required porting a macro definition from the default
11797 LaTeX template to the default beamer template.
11799 * `reference.docx`: Include `FootnoteText` style.
11800 Otherwise Word ignores the style, even when specified in the `pPr`.
11803 * `reference.odt`: Tidied `styles.xml`.
11805 * Relaxed version bounds for dependencies.
11807 * Added `withSocketsDo` around http conduit code in `openURL`,
11808 so it works on Windows (#1080).
11810 * Added `Cite` function to `sample.lua`.
11814 + Fixed regression in title blocks (#1089).
11815 If author field was empty, date was being ignored.
11816 + Allow backslash-newline hard line breaks in grid and
11817 multiline table cells.
11818 + Citation keys may now start with underscores, and may contain
11819 underscores adjacent to internal punctuation.
11823 + Add support for `Verb` macro (jrnold) (#1090).
11824 + Support babel-style quoting: `` "`..."' ``.
11826 * Properly handle script blocks in strict mode. (That is,
11827 `markdown-markdown_in_html_blocks`.) Previously a spurious
11828 `<p>` tag was being added (#1093).
11830 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
11835 + Factored out function for table cell creation.
11836 + Better treatment of footnotes in tables.
11837 Notes now appear in the regular sequence, rather than in the
11838 table cell. (This was a regression in 1.10.)
11840 * HTML reader: Parse name/content pairs from meta tags as metadata.
11843 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
11845 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
11847 * ODT writer: Use mathml for proper rendering of formulas.
11848 Note: LibreOffice's support for this seems a bit buggy. But
11849 it should be better than what we had before.
11851 * RST writer: Ensure no blank line after def in definition list (#992).
11853 * Markdown writer: Don't use tilde code blocks with braced attributes in
11854 `markdown_github` output. A consequence of this change is that the
11855 backtick form will be preferred in general if both are enabled. That
11856 is good, as it is much more widespread than the tilde form. (#1084)
11858 * Docx writer: Fixed problem with some modified reference docx files.
11859 Include `word/_rels/settings.xml.rels` if it exists, as well as other
11860 `rels` files besides the ones pandoc generates explicitly.
11864 + With `--toc`, headers no longer link to themselves (#1081).
11865 + Omit footnotes from TOC entries. Otherwise we get doubled
11866 footnotes when headers have notes!
11870 + Avoid duplicate notes when headings contain notes.
11871 This arose because the headings are copied into the metadata
11872 "title" field, and the note gets rendered twice. We strip the
11873 note now before putting the heading in "title".
11874 + Strip out footnotes from toc entries.
11875 + Fixed bug with `--epub-stylesheet`. Now the contents of
11876 `writerEpubStylesheet` (set by `--epub-stylesheet`)
11877 should again work, and take precedence over a stylesheet specified
11880 * `Text.Pandoc.Pretty`: Added `nestle`. API change.
11882 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
11884 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
11887 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
11888 we could only get size information for JFIF format, which led
11889 to squished images in Word documents. Closes #976.
11891 * Removed old `MarkdownTest_1.0.3` directory (#1104).
11894## pandoc 1.12.2.1 (2013-12-08)
11896 * Markdown reader: Fixed regression in list parser, involving
11897 continuation lines containing raw HTML (or even verbatim raw HTML).
11899## pandoc 1.12.2 (2013-12-07)
11901 * Metadata may now be included in YAML blocks in a markdown document.
11909 text: An investigation of metadata
11917 text: doi:10.234234.234/33
11918 publisher: My Press
11919 rights: (c) 2007 John Smith, CC BY-NC
11920 cover-image: img/mypic.jpg
11921 stylesheet: style.css
11924 Metadata may still be provided using `--epub-metadata`; it will
11925 be merged with the metadata in YAML blocks.
11929 + `meta` tags are now used instead of `opf` attributes for EPUB3.
11930 + Insert "svg" property as needed in opf (EPUB 3).
11931 + Simplify `imageTypeOf` using `getMimeType`.
11932 + Add properties attribute to `cover-image` item for EPUB 3.
11933 + Don't include node for `cover.xhtml` if no cover!
11934 + Ensure that same identifier is used throughout (#1044).
11935 If an identifier is given in metadata, we use that; otherwise
11936 we generate a random uuid.
11937 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
11938 Fixes an issue with Calibre putting the cover at the end of the book
11939 if the spine has `linear="no"`. Apparently this is best practice
11940 for other converters as well:
11941 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
11942 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
11943 + Allow partial dates: `YYYY`, `YYYY-MM`.
11945 * Markdown writer: Fix rendering of tight sublists (#1050).
11946 Previously a spurious blank line was included after a tight sublist.
11948 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
11949 This is reported to be necessary to avoid an error from recent
11950 versions of Libre Office when files contain more than one image
11951 Thanks to wmanley for reporting and diagnosing the problem.
11953 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
11954 Instead, let this be set in the template, using `\setupfloat`.
11955 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
11957 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
11959 * Fixed bug with markdown intraword emphasis. Closes #1066.
11961 * Docbook writer: Hierarchicalize block content in metadata.
11962 Previously headers just disappeared from block-level metadata
11963 when it was used in templates. Now we apply the 'hierarchicalize'
11964 transformation. Note that a block headed by a level-2 header will
11965 turn into a `<sect1>` element.
11967 * OpenDocument writer: Skip raw HTML (#1035).
11968 Previously it was erroneously included as verbatim text.
11970 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
11971 This allows better control of formatting, since the `<a>`
11972 tags have a distinguishing class (#1049).
11976 + Use mime type info returned by fetchItem.
11977 + Fixed core metadata (#1046).
11978 Don't create empty date nodes if no date given.
11979 Don't create multiple `dc:creator` nodes; instead separate by
11981 + Fix URL for core-properties in `_rels/.rels` (#1046).
11983 * Plain writer: don't print `<span>` tags.
11987 + Fix definition lists with internal links in terms (#1032).
11988 This fix puts braces around a term that contains an internal
11989 link, to avoid problems with square brackets.
11990 + Properly escape pdftitle, pdfauthor (#1059).
11991 + Use booktabs package for tables (thanks to Jose Luis Duran).
11993 * Updated beamer template. Now references should work properly
11994 (in a slide) when `--biblatex` or `--natbib` is used.
11998 + Parse contents of curly quotes or matched `"` as quotes.
11999 + Support `\textnormal` as span with class `nodecor`.
12000 This is needed for pandoc-citeproc.
12001 + Improved citation parsing. This fixes a run-time error that occurred
12002 with `\citet{}` (empty list of keys). It also ensures that empty keys
12003 don't get produced.
12005 * MediaWiki reader: Add automatic header identifiers.
12009 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
12011 + Recognize `svg` tags as block level content (thanks to MinRK).
12012 + Parse LaTeX math if appropriate options are set.
12016 + Yaml block must start immediately after `---`. If there's a blank
12017 line after `---`, we interpreted it as a horizontal rule.
12018 + Correctly handle empty bullet list items.
12019 + Stop parsing "list lines" when we hit a block tag.
12020 This fixes exponential slowdown in certain input, e.g.
12021 a series of lists followed by `</div>`.
12023 * Slides: Preserve `<div class="references">` in references slide.
12025 * `Text.Pandoc.Writer.Shared`:
12027 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
12028 attributes, leading to invalid HTML.
12029 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
12030 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
12031 encoded bytestring was returned. We now decode it so it's a proper
12034 * DocBook reader: Handle numerical attributes starting with decimal.
12035 Also use `safeRead` instead of `read`.
12037 * `Text.Pandoc.Parsing`:
12039 + Generalized type of `registerHeader`, using new type classes
12040 `HasReadeOptions`, `HasIdentifierList`, `HasHeaderMap`.
12041 These allow certain common functions to be reused
12042 even in parsers that use custom state (instead of `ParserState`),
12043 such as the MediaWiki reader.
12044 + Moved inlineMath, displayMath from Markdown reader to Parsing.
12045 Generalize their types and export them from Parsing. (API change.)
12047 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
12048 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
12049 in all the writers. Require `texmath >= 0.6.5.2`.
12051 * `Text.Pandoc.MIME`:
12053 + Add entry for `jfif`.
12054 + In looking up extensions, drop the encoding info.
12055 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
12057 * Templates: Changed how array variables are resolved. Previously if
12058 `foo` is an array (which might be because multiple values were set on
12059 the command line), `$foo$` would resolve to the concatenation of the
12060 elements of foo. This is rarely useful behavior. It has been changed
12061 so that the first value is rendered. Of course, you can still iterate
12062 over the values using `$for(foo)$`. This has the result that you can
12063 override earlier settings using `-V` by putting new values later on the
12064 command line, which is useful for many purposes.
12066 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
12068 * Allow "epub2" as synonym for "epub", "html4" for "html".
12070 * Don't look for slidy files in data files with `--self-contained`.
12072 * Allow `https:` command line arguments to be downloaded.
12074 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
12076## pandoc 1.12.1 (2013-10-20)
12078 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
12079 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
12080 "c": "foo"}`. This new format is easier to work with outside of Haskell.
12081 Incidentally, "t" stands for "tag", "c" for "contents".
12083 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
12084 when converting to markdown (#1027).
12088 + Ensure that preamble doesn't contribute to the text of
12090 + Fixed character escaping in `\url{}`. Previously `\~` wasn't handled
12091 properly, among others.
12092 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
12093 bibtex titles, since we need to know what was protected from
12094 titlecase conversions.
12098 + Specially escape non-ascii characters in labels.
12099 Otherwise we can get compile errors and other bugs when
12100 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
12101 + Add link anchors for code blocks with identifiers (#1025).
12103 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
12104 It allows fragments identifiers.
12108 + A Div element with class "notes" is treated as speaker
12109 notes. Currently beamer goes to `\note{}`, revealjs to
12110 `<aside class="notes">`, and the notes are simply suppressed in
12111 other formats (#925).
12112 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
12113 The old version caused a pause to be inserted before the first
12114 material on a slide. This has been fixed.
12115 + Removed data files for s5, slideous, slidy.
12116 Users of s5 and slideous will have to download the needed
12117 files, as has been documented for some time in the README.
12118 By default, slidy code will be sought on the web, as before.
12120 * HTML writer: Insert command to typeset mathjax only in slideous output
12123 * RST writer: Skip spaces after display math. Otherwise we get indentation
12124 problems, and part of the next paragraph may be rendered as part of the
12127 * OpenDocument writer: Fix formatting of strikeout code (#995),
12128 thanks to wilx. don't use `font-face-decls` variable.
12130 * Fixed test suite so it works with cabal sandboxes.
12132## pandoc 1.12.0.2 (2013-09-20)
12134 * Removed an unused dependency (`stringable`) from pandoc.cabal.
12135 This will help packagers, but users should not need to upgrade.
12137## pandoc 1.12.0.1 (2013-09-20)
12139 * Allow `--metadata` to be repeated for the same key to form a list.
12140 This also has the effect that `--bibliography` can be repeated,
12143 * Handle boolean values in `--metadata`. Note that anything not parseable
12144 as a YAML boolean or string is treated as a literal string.
12145 You can get a string value with "yes", or any of the strings interpretable
12146 as booleans, by quoting it:
12148 -M boolvalue=yes -M stringvalue='"yes"'
12150 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
12153 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
12154 in which docx files could not be read by some versions of Word
12155 and LibreOffice (#990).
12157 * Fixed a regression involving slide shows with bibliographies.
12158 The Div container around references messed up the procedure for carving
12159 a document into slides. So we now remove the surrounding Div in
12162 * More informative error message when a filter is not found in path.
12164 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
12165 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
12167 * Don't use unicode_collation in building OSX package:
12168 it adds something like 50MB of dependencies to the package.
12170 * Declare alex and happy as build-tools (#986).
12172## pandoc 1.12 (2013-09-15)
12176 * Much more flexible metadata, including arbitrary fields and structured
12177 values. Metadata can be specified flexibly in pandoc markdown using
12178 YAML metadata blocks, which may occur anywhere in the document:
12181 title: Here is my title.
12183 This is the abstract.
12187 and *inline markup*
12189 tags: [cat, dog, animal]
12192 Metadata fields automatically populate template variables.
12194 * Added `opml` (OPML) as input and output format. The `_note` attribute,
12195 used in OmniOutliner and supported by multimarkdown, is supported.
12196 We treat the contents as markdown blocks under a section header.
12198 * Added `haddock` (Haddock markup) as input format (David Lazar).
12200 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
12201 (Thanks to Jamie F. Olson for the initial patch.)
12202 Nested vertical stacks are used for hierarchical structure.
12203 Results for more than one level of nesting may be odd.
12205 * Custom writers can now be written in lua.
12207 pandoc -t data/sample.lua
12209 will load the script sample.lua and use it as a custom writer.
12210 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
12211 Note that pandoc embeds a lua interpreter, so lua need not be
12212 installed separately.
12214 * New `--filter/-F` option to make it easier to run "filters"
12215 (Pandoc AST transformations that operate on JSON serializations).
12216 Filters are always passed the name of the output format, so their
12217 behavior can be tailored to it. The repository
12218 <https://github.com/jgm/pandocfilters> contains
12219 a python module for writing pandoc filters in python, with
12220 a number of examples.
12222 * Added `--metadata/-M` option.
12223 This is like `--variable/-V`, but actually adds to metadata, not
12226 * Added `--print-default-data-file` option, which allows printing
12227 of any of pandoc's data files. (For example,
12228 `pandoc --print-default-data-file reference.odt` will print
12231 * Added syntax for "pauses" in slide shows:
12239 * New markdown extensions:
12241 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
12242 rather than being treated as hard line breaks or spaces. This is useful
12243 for some East Asian languages, where spaces aren't used between words,
12244 but text is separated into lines for readability.
12245 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
12246 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
12247 only. (Default for `markdown_github`.) (#807)
12248 + `lists_without_preceding_blankline`: Allow lists to start without
12249 preceding blank space. (Default for `markdown_github`.) (#972)
12251### Behavior changes
12253 * `--toc-level` no longer implies `--toc`.
12254 Reason: EPUB users who don't want a visible TOC may still want
12255 to set the TOC level for in the book navigation.
12257 * `--help` now prints in and out formats in alphabetical order, and
12258 says something about PDF output (#720).
12260 * `--self-contained` now returns less verbose output (telling you
12261 which URLs it is fetching, but not giving the full header). In
12262 addition, there are better error messages when fetching a URL fails.
12264 * Citation support is no longer baked in to core pandoc. Users who
12265 need citations will need to install and use a separate filter
12266 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
12267 `csl`, and `citation-abbreviations` from the metadata, though it
12268 may still be specified on the command line as before.
12270 * A `Cite` element is now created in parsing markdown whether or not
12271 there is a matching reference.
12273 * The `pandoc-citeproc` script will put the bibliography at the
12274 end of the document, as before. However, it will be put inside a `Div`
12275 element with class "references", allowing users some control
12276 over the styling of references. A final header, if any, will
12277 be included in the `Div`.
12279 * The markdown writer will not print a bibliography if the
12280 `citations` extension is enabled. (If the citations are formatted
12281 as markdown citations, it is redundant to have a bibliography,
12282 since one will be generated automatically.)
12284 * Previously we used to store the directory of the first input file,
12285 even if it was local, and used this as a base directory for finding
12286 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
12287 users. So we now look for images relative to the current
12288 working directory, even if the first file argument is in another
12289 directory. Note that this change may break some existing workflows.
12290 If you have been assuming that relative links will be interpreted
12291 relative to the directory of the first file argument, you'll need
12292 to make that the current directory before running pandoc. (#942)
12294 * Better error reporting in some readers, due to changes in `readWith`:
12295 the line in which the error occurred is printed, with a caret pointing
12298 * All slide formats now support incremental slide view for definition lists.
12300 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
12301 Parse `:<math>...</math>` as display math. These notations are used with
12302 the MathJax MediaWiki extension.
12304 * All writers: template variables are set automatically from metadata
12305 fields. However, variables specified on the command line with
12306 `--variable` will completely shadow metadata fields.
12308 * If `--variable` is used to set many variables with the same name,
12311 * Man writer: The `title`, `section`, `header`, and `footer` can now
12312 all be set individually in metadata. The `description` variable has been
12313 removed. Quotes have been added so that spaces are allowed in the
12314 title. If you have a title that begins
12316 COMMAND(1) footer here | header here
12318 pandoc will still parse it into a title, section, header, and
12319 footer. But you can also specify these elements explicitly (#885).
12323 + Added support for YAML metadata blocks, which can come anywhere
12324 in the document (not just at the beginning). A document can contain
12325 multiple YAML metadata blocks.
12326 + HTML span and div tags are parsed as pandoc Span and Div elements.
12330 + Allow simple tables to be printed as grid tables,
12331 if other table options are disabled. This means you can do
12332 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
12333 and all tables will render as grid tables.
12334 + Support YAML title block (render fields in alphabetical order
12335 to make output predictable).
12339 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
12340 structured metadata. (Note: existing code that pattern-matches
12341 on `Meta` will have to be revised.) Metadata can now contain
12342 indefinitely many fields, with content that can be a string,
12343 a Boolean, a list of `Inline` elements, a list of `Block`
12344 elements, or a map or list of these.
12346 * A new generic block container (`Div`) has been added to `Block`,
12347 and a generic inline container (`Span`) has been added to `Inline`.
12348 These can take attributes. They will render in HTML, Textile,
12349 MediaWiki, Org, RST and Markdown (with `markdown_in_html`
12350 extension) as HTML `<div>` and `<span>` elements; in other formats
12351 they will simply pass through their contents. But they can be
12352 targeted by scripts.
12354 * `Format` is now a newtype, not an alias for String.
12355 Equality comparisons are case-insensitive.
12357 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
12358 functions that are much faster than the SYB functions from
12359 `Text.Pandoc.Generic`. These functions are now used where possible
12360 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
12361 match the generic traversals `bottomUp` and `queryWith`.)
12363 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
12364 instances for the basic pandoc types. They use GHC generics and
12365 should be faster than the old JSON serialization using
12366 `Data.Aeson.Generic`.
12368 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
12369 This is a souped-up version of `readProcessWithErrorcode` that
12370 uses lazy bytestrings instead of strings and allows setting
12371 environment variables. (Used in `Text.Pandoc.PDF`.)
12373 * New module `Text.Pandoc.Readers.OPML`.
12375 * New module `Text.Pandoc.Writers.OPML`.
12377 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
12378 This is based on Haddock's own lexer/parser.
12380 * New module `Text.Pandoc.Writers.Custom`.
12382 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
12383 Either, for better error handling.
12385 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
12387 * Removed `stripTags` from `Text.Pandoc.XML`.
12389 * `Text.Pandoc.Templates`:
12391 + Simplified `Template` type to a newtype.
12393 + Changed type of `renderTemplate`: it now takes a JSON context
12394 and a compiled template.
12395 + Export `compileTemplate`.
12396 + Export `renderTemplate'` that takes a string instead of a compiled
12398 + Export `varListToJSON`.
12400 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
12404 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
12405 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
12406 `Text.Pandoc.JSON` should be used instead. (Compiling against
12407 pandoc-types instead of pandoc will also produce smaller executables.)
12408 * Removed the deprecated `jsonFilter` function.
12409 + Added `readJSON`, `writeJSON` to the API (#817).
12411 * `Text.Pandoc.Options`:
12413 + Added `Ext_lists_without_preceding_blankline`,
12414 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
12415 `Ext_yaml_metadataBlock` to `Extension`.
12416 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
12417 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
12418 first command-line argument is an absolute URL. (So, relative links
12419 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
12420 + All bibliography-related fields have been removed from
12421 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
12422 `readerReferences`, `readerCitationStyle`.
12424 * The `Text.Pandoc.Biblio` module has been removed. Users of the
12425 pandoc library who want citation support will need to use
12426 `Text.CSL.Pandoc` from `pandoc-citeproc`.
12430 * In markdown, don't autolink a bare URI that is followed by `</a>`
12433 * `Text.Pandoc.Shared`
12435 + `openURL` now follows redirects (#701), properly handles `data:`
12436 URIs, and prints diagnostic output to stderr rather than stdout.
12437 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
12438 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
12439 + Fixed `readDefaultDataFile` so it works on Windows.
12440 + Better error messages for `readDefaultDataFile`. Instead of
12441 listing the last path tried, which can confuse people who are
12442 using `--self-contained`, so now we just list the data file name.
12443 + URL-escape pipe characters. Even though these are legal, `Network.URI`
12444 doesn't regard them as legal in URLs. So we escape them first (#535).
12446 * Mathjax in HTML slide shows: include explicit "Typeset" call.
12447 This seems to be needed for some formats (e.g. slideous) and won't
12448 hurt in others (#966).
12450 * `Text.Pandoc.PDF`
12452 + On Windows, create temdir in working directory, since the system
12453 temp directory path may contain tildes, which can cause
12454 problems in LaTeX (#777).
12455 + Put temporary output directory in `TEXINPUTS` (see #917).
12456 + `makePDF` tries to download images that are not found locally,
12457 if the first argument is a URL (#917).
12458 + If compiling with `pdflatex` yields an encoding error, offer
12459 the suggestion to use `--latex-engine=xelatex`.
12461 * Produce automatic header identifiers in parsing textile, RST,
12462 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
12464 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
12465 before treating as a filename. This fixes `--self-contained` when used
12466 with CSS files that include web fonts using the method described here:
12467 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
12468 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
12470 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
12471 percent-encoding, or a `+` character, as final punctuation.
12473 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
12474 EPS images properly sized on conversion to Word.
12476 * Slidy: Use slidy.js rather than slidy.js.gz.
12477 Reason: some browsers have trouble with the gzipped js file,
12478 at least on the local file system (#795).
12482 + Properly handle blank line at beginning of input (#882).
12483 + Fixed bug in unmatched reference links. The input
12484 `[*infile*] [*outfile*]` was getting improperly parsed:
12485 "infile" was emphasized, but "*outfile*" was literal (#883).
12486 + Allow internal `+` in citation identifiers (#856).
12487 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
12488 + Do not generate blank title, author, or date metadata elements.
12489 Leave these out entirely if they aren't present.
12490 + Allow backtick code blocks not to be preceded by blank line (#975).
12494 + Correctly handle entities.
12495 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
12496 in code blocks, rather than printing them verbatim. Parse attributes
12497 on `<pre>` tag for code blocks.
12499 * HTML reader: Handle non-simple tables (#893). Column widths are read from
12500 `col` tags if present, otherwise divided equally.
12504 + Support alltt environment (#892).
12505 + Support `\textasciitilde`, `\textasciicircum` (#810).
12506 + Treat `\textsl` as emphasized text reader (#850).
12507 + Skip positional options after `\begin{figure}`.
12508 + Support `\v{}` for hacek (#926).
12509 + Don't add spurious ", " to citation suffixes.
12510 This is added when needed in pandoc-citeproc.
12511 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
12512 + Improved support for accented characters (thanks to Scott Morrison).
12513 + Parse label after section command and set id (#951).
12517 + Don't insert paragraphs where docutils doesn't.
12518 `rst2html` doesn't add `<p>` tags to list items (even when they are
12519 separated by blank lines) unless there are multiple paragraphs in the
12520 list. This commit changes the RST reader to conform more closely to
12521 what docutils does (#880).
12522 + Improved metadata. Treat initial field list as metadata when
12523 standalone specified. Previously ALL fields "title", "author",
12524 "date" in field lists were treated as metadata, even if not at
12525 the beginning. Use `subtitle` metadata field for subtitle.
12526 + Fixed 'authors' metadata parsing in reST. Semicolons separate
12531 + Allow space before table rows.
12532 + Fixed regression for `<ref>URL</ref>`.
12533 `<` is no longer allowed in URLs, according to the uri parser
12534 in `Text.Pandoc.Parsing`. Added a test case.
12535 + Correctly handle indented preformatted text without preceding
12536 or following blank line.
12537 + Fixed `|` links inside table cells. Improved attribute parsing.
12538 + Skip attributes on table rows. Previously we just crashed if
12539 rows had attributes, now we ignore them.
12540 + Ignore attributes on headers.
12541 + Allow `Image:` for images (#971).
12542 + Parse an image with caption in a paragraph by itself as a figure.
12546 + Don't use ligatures in escaping inline code.
12547 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
12548 wherein notes were numbered incorrectly in tables (#827).
12549 + Always create labels for sections. Previously the labels were only
12550 created when there were links to the section in the document (#871).
12551 + Stop escaping `|` in LaTeX math.
12552 This caused problems with array environments (#891).
12553 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
12554 `\` will cause major problems if unescaped.
12555 + Write id for code block to label attribute in LaTeX when listings
12556 is used (thanks to Florian Eitel).
12557 + Scale LaTeX tables so they don't exceed columnwidth.
12558 + Avoid problem with footnotes in unnumbered headers (#940).
12560 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
12561 to the slide if it is one of the header classes. It is recommended
12562 that your bibliography slide have this attribute:
12564 # References {.allowframebreaks}
12566 This causes multiple slides to be created if necessary, depending
12567 on the length of the bibliography.
12569 * ConTeXt writer: Properly handle tables without captions. The old output
12570 only worked in MkII. This should work in MkIV as well (#837).
12572 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
12576 + Fixed `--no-highlight` (Alexander Kondratskiy).
12577 + Don't convert to lowercase in email obfuscation (#839).
12578 + Ensure proper escaping in `<title>` and `<meta>` fields.
12582 + Support `--atx-headers` (Max Rydahl Andersen).
12583 + Don't print empty identifier blocks `([[]])` on headers (Max
12588 + Fixing wrong numbered-list indentation in open document format
12589 (Alexander Kondratskiy) (#369).
12590 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
12591 + Minor changes for ODF 1.2 conformance (#939). We leave the
12592 nonconforming `contextual-spacing` attribute, which is provided by
12593 LibreOffice itself and seems well supported.
12597 + Fixed rendering of display math in lists.
12598 In 1.11 and 1.11.1, display math in lists rendered as a new list
12599 item. Now it always appears centered, just as outside of lists,
12600 and in proper display math style, no matter how far indented the
12601 containing list item is (#784).
12602 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
12603 Previously we used `w:cr` (#873).
12604 + Use Compact style for Plain block elements, to
12605 differentiate between tight and loose lists (#775).
12606 + Ignore most components of `reference.docx`.
12607 We take the `word/styles.xml`, `docProps/app.xml`,
12608 `word/theme/theme1.xml`, and `word/fontTable.xml` from
12609 `reference.docx`, ignoring everything else. This should help
12610 with the corruption problems caused when different versions of
12611 Word resave the reference.docx and reorganize things.
12612 + Made `--no-highlight` work properly.
12616 + Don't add `dc:creator` tags if present in EPUB metadata.
12617 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
12618 + Don't put blank title page in reading sequence.
12619 Set `linear="no"` if no title block. Addresses #797.
12620 + Download webtex images and include as data URLs.
12621 This allows you to use `--webtex` in creating EPUBs.
12622 Math with `--webtex` is automatically made self-contained.
12623 + In `data/epub.css`, removed highlighting styles (which
12624 are no longer needed, since styles are added by the HTML
12625 writer according to `--highlighting-style`). Simplified
12627 + If resource not found, skip it, as in Docx writer (#916).
12631 + Properly handle characters above the 0000-FFFF range.
12632 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
12633 + Fixed regression with RTF table of contents.
12634 + Only autolink absolute URIs. This fixes a regression, #830.
12638 + Only autolink absolute URIs. This fixes a regression, #830.
12639 + Don't wrap attributes in fenced code blocks.
12640 + Write full metadata in MMD style title blocks.
12641 + Put multiple authors on separate lines in pandoc titleblock.
12642 Also, don't wrap long author entries, as new lines get treated
12645 * `Text.Pandoc.Templates`:
12647 + Fixed bug retrieving default template for markdown variants.
12648 + Templates can now contain "record lookups" in variables;
12649 for example, `author.institution` will retrieve the `institution`
12650 field of the `author` variable.
12651 + More consistent behavior of `$for$`. When `foo` is not a list,
12652 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
12653 So if `foo` resolves to "", no output should be produced.
12654 See pandoc-templates#39.
12656 * Citation processing improvements (now part of pandoc-citeproc):
12658 + Fixed `endWithPunct` The new version correctly sees a sentence
12659 ending in '.)' as ending with punctuation. This fixes a bug which
12660 led such sentences to receive an extra period at the end: '.).'.
12661 Thanks to Steve Petersen for reporting.
12662 + Don't interfere with Notes that aren't citation notes.
12663 This fixes a bug in which notes not generated from citations were
12664 being altered (e.g. first letter capitalized) (#898).
12665 + Only capitalize footnote citations when they have a prefix.
12666 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
12667 inserted before it before passing to citeproc-hs, so that bare numbers
12668 are treated as page numbers by default. A suffix not beginning with
12669 punctuation has a space added at the beginning (rather than a comma and
12670 space, as was done before for not-author-in-text citations).
12671 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
12672 properly, with '23' treated as a locator of type 'page'.
12673 + Many improvements to citation rendering, due to fixes in citeproc-hs
12674 (thanks to Andrea Rossato).
12675 + Warnings are issued for undefined citations, which are rendered
12677 + Fixed hanging behavior when locale files cannot be found.
12679### Template changes
12681 * DocBook: Use DocBook 4.5 doctype.
12683 * Org: '#+TITLE:' is inserted before the title.
12684 Previously the writer did this.
12686 * LaTeX: Changes to make mathfont work with xelatex.
12687 We need the mathspec library, not just fontspec, for this.
12688 We also need to set options for setmathfont (#734).
12690 * LaTeX: Use `tex-ansi` mapping for `monofont`.
12691 This ensures that straight quotes appear as straight, rather than
12692 being treated as curly. See #889.
12694 * Made `\includegraphics` more flexible in LaTeX template.
12695 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
12697 * LaTeX/Beamer: Added `classoption` variable.
12698 This is intended for class options like `oneside`; it may
12699 be repeated with different options. (Thanks to Oliver Matthews.)
12701 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
12703 * LaTeX: Added `biblio-style` variable (#920).
12705 * DZSlides: title attribute on title section.
12707 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
12709### Under-the-hood improvements
12711 * Markdown reader:Improved strong/emph parsing, using the strategy of
12712 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
12713 no backtracking, and no keeping track of nesting levels. It will give
12714 different results in some edge cases, but these should not affect normal
12717 * Added `Text.Pandoc.Compat.Monoid`.
12718 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
12719 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
12721 * Added `Text.Pandoc.Compat.TagSoupEntity`.
12722 This allows pandoc to compile with `tagsoup` 0.13.x.
12723 Thanks to Dirk Ullrich for the patch.
12725 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
12726 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
12727 handle simple math in bibliography fields.)
12729 * Added `Text.Pandoc.Writers.Shared` for shared functions used
12730 only in writers. `metaToJSON` is used in writers to create a
12731 JSON object for use in the templates from the pandoc metadata
12732 and variables. `getField`, `setField`, and `defField` are
12733 for working with JSON template contexts.
12735 * Added `Text.Pandoc.Asciify` utility module.
12736 This exports functions to create ASCII-only versions of identifiers.
12738 * `Text.Pandoc.Parsing`
12740 + Generalized state type on `readWith` (API change).
12741 + Specialize readWith to `String` input. (API change).
12742 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
12743 with `stateMeta` and `stateMeta'`.
12745 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
12746 bytestrings seemed to cause problems using pandoc on 64-bit Windows
12749 * Factored out `registerHeader` from markdown reader, added to
12750 `Text.Pandoc.Parsing`.
12752 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
12753 Reason: < 0.5 does not provide a monoid instance for Attribute,
12754 which is now needed by the HTML writer (#803).
12756 * Added `http-conduit` flag, which allows fetching https resources.
12757 It also brings in a large number of dependencies (`http-conduit`
12758 and its dependencies), which is why for now it is an optional flag
12761 * Added CONTRIBUTING.md.
12763 * Improved INSTALL instructions.
12765 * `make-windows-installer.bat`: Removed explicit paths for executables.
12767 * `aeson` is now used instead of `json` for JSON.
12769 * Set default stack size to 16M. This is needed for some large
12770 conversions, esp. if pandoc is compiled with 64-bit ghc.
12772 * Various small documentation improvements.
12773 Thanks to achalddave and drothlis for patches.
12775 * Removed comment that chokes recent versions of CPP (#933).
12777 * Removed support for GHC version < 7.2, since pandoc-types now
12778 requires at least GHC 7.2 for GHC generics.
12781## pandoc 1.11.1 (2013-03-17)
12785 + Fixed regression in which parentheses were lost in link URLs.
12786 Added tests. Closes #786.
12787 + Better handling of unmatched double quotes in `--smart` mode.
12788 These occur frequently in fiction, since it is customary not to
12789 close quotes in dialogue if the speaker does not change between
12790 paragraphs. The unmatched quotes now get turned into literal
12791 left double quotes. (No `Quoted` inline is generated, however.)
12792 Closes #99 (again).
12794 * HTML writer: Fixed numbering mismatch between TOC and sections.
12795 `--number-offset` now affects TOC numbering as well
12796 as section numbering, as it should have all along. Closes #789.
12798 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
12799 as markdown citations, even if `--bibliography` was specified, unless
12800 `citation` extension is disabled. Now, formatted citations are always
12801 printed if `--bibliography` was specified. If you want to reformat
12802 markdown keeping pandoc markdown citations intact, don't use
12803 `--bibliography`. Note that citations parsed from LaTeX documents will
12804 be rendered as pandoc markdown citations when `--bibliography` is not
12807 * ODT writer: Fixed regression leading to corrupt ODTs.
12808 This was due to a change in the `Show` instance for
12809 `Text.Pandoc.Pretty.Doc`. Closes #780.
12811 * Fixed spacing bugs involving code block attributes in
12812 RST reader and Markdown writer. Closes #763.
12814 * Windows package: Various improvements due to Fyodor Sheremetyev.
12816 + Automatically set installation path (Program Files or Local App Data).
12817 + Set system PATH environment variable when installing for all users.
12818 + Pandoc can installed for all users using the following command.
12819 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
12821 * Bumped QuickCheck version bound.
12823## pandoc 1.11 (2013-03-09)
12825 * Added `--number-offset` option. (See README for description.)
12827 * Added `--default-image-extension` option. (See README for description.)
12829 * `--number-sections` behavior change: headers with class `unnumbered`
12830 will not be numbered.
12832 * `--version` now reports the default data directory.
12834 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
12836 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
12838 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
12839 a field for `Attr` rather than just `String`. (API change.)
12841 * Added `markdown_github` as input format. This was an accidental
12844 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
12847 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
12851 + Fixed captions with longtable. Thanks to Joost Kremers.
12852 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
12856 + Load microtype after fonts. Microtype needs to know
12857 what fonts are being used. Thanks to dfc for the patch.
12858 + Set `secnumdepth` to 5 if `--number-sections` specified.
12859 This yields behavior equivalent to the other writers, numbering
12860 level 4 and 5 headers too. Closes #753.
12864 + Handle `<colgroup>` tag.
12865 + Preserve all header attributes.
12869 + Parse `\hrule` as `HorizontalRule`. Closes #746.
12870 + Parse starred variants of `\section` etc. as headers with
12871 attribute `unnumbered`.
12872 + Read optional attributes in `lstlisting` and `Verbatim` environments.
12873 We convert these to pandoc standard names, e.g. `numberLines`
12874 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
12875 + Handle language attribute for lstlistings.
12876 + Better support for Verbatim and minted environments. Closes #763.
12880 + `-` in an attribute context = `.unnumbered`. The point of this
12881 is to provide a way to specify unnumbered headers in non-English
12883 + Fixed bug parsing key/value attributes. Parsing failed if you
12884 had an unquoted attribute immediately before the final '}'.
12885 + Make backslash escape work in attributes.
12886 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
12887 pandoc will parse a MMD title block if it sees one, even if
12888 `pandoc_title_blocks` is enabled.
12889 + Refactoring: `litChar` now includes entities, so we don't need
12890 to use `fromEntities` e.g. on titles.
12891 + Allow spaces around borders in pipe tables. Closes #772.
12892 + Allow all punctuation in angle-bracket autolinks. Previously
12893 things like `----` were disallowed, because the uri parser
12894 treated them as trailing punctuation. Closes #768.
12895 + Make `implicit_header_references` work properly when
12896 headers are given explicit identifiers.
12897 + Check for tables before line blocks. Otherwise some pipe
12898 tables get treated as line blocks.
12899 + Allow `&` in emails (for entities).
12900 + Properly handle entities in titles and links. A markdown link
12901 `<http://göogle.com>` should be a link to `http://göogle.com`.
12906 + Handle attributes on headers.
12910 + Add `fig:` as title for images with captions.
12911 This is needed for them to be rendered as figures. Closes #766.
12912 + Never emit an empty paragraph. See #761.
12913 + Handle `\caption` for images in figures. Closes #766.
12914 + Parse `\section*`, etc. as unnumbered sections.
12918 + Support header attributes. The attributes go on
12919 the enclosing `section` or `div` tag if `--section-divs` is specified.
12920 + Fixed a regression (only now noticed) in html+lhs output.
12921 Previously the bird tracks were being omitted.
12925 + Omit lists with no items to avoid LaTeX errors.
12926 + Support line numbering with `--listings`.
12927 If `numberLines` class is present, we add `numbers=left`;
12928 if `startFrom` is present, we add `firstnumber=`. (#763)
12932 + Removed `\placecontent`. This produced a duplicate toc,
12933 in conjunction with `\placelist`.
12934 + Use `\title`, `\subject` etc. for headers with
12935 `unnumbered` class.
12939 + Support header attributes.
12943 + Use grid tables when needed, and if enabled. Closes #740.
12944 + Render citations as pandoc-markdown citations.
12945 Previously citations were rendered as citeproc-formatted citations
12946 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
12947 unless the `citations` extension is disabled.
12948 If you still want formatted citations in your markdown output,
12949 use `pandoc -t markdown-citations`.
12953 + Support `:number-lines:` in code blocks.
12957 + Better treatment of display math. Display math inside a
12958 paragraph is now put in a separate paragraph, so it will render
12959 properly (centered and without extra blank lines around it).
12960 Partially addresses #742.
12961 + Content types and document rels xml files are now created from
12962 scratch, rather than being taken over from `reference.docx`.
12963 This fixes problems that arise when you edit the `reference.docx`
12965 + We also now encode mime types for each individual image rather
12966 than using defaults. This should allow us to handle a wider
12967 range of image types (including PDF). Closes #414.
12968 + Changed style names in `reference docx`.
12969 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
12970 The old names got changed by Word when the `reference.docx` was
12971 edited. Closes #414.
12975 + Fix section numbering. Previously the numbering restarted from 1
12976 in each chapter (with `--number-sections`), though the numbers in
12977 the table of contents were correct.
12978 + Headers with "unnumbered" attribute are not numbered. (Nor do they
12979 cause an increment in running numbering.) Section numbers now work
12980 properly, even when there is material before the first numbered section.
12981 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
12982 but `linear` is set to `no` unless the `--toc` option is specified.
12983 Include `<guide>` element in OPF. This should allow the TOC to
12984 be useable in Kindles when converted with kindlegen. Closes #773.
12986 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
12987 This dramatically reduces the speed penalty that comes from enabling the
12988 `autolink_bare_uris` extension. The penalty is still substantial (in one
12989 test, from 0.33s to 0.44s), but nowhere near what it used to be.
12990 The RST reader is also much faster now, as it autodetects URIs.
12992 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
12993 with class "unnumbered". Unnumbered sections get `[]` for their
12996 * `Text.Pandoc.Pretty`:
12998 + Fixed `chomp` so it works inside `Prefixed` elements.
12999 + Changed `Show` instance so it is better for debugging.
13001 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
13003 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
13005 * Windows installer improvements:
13007 + The installer is now signed with a certificate (thanks to
13008 Fyodor Sheremetyev).
13009 + WiX is used instead of InnoSetup. The installer is now a
13011 + The version number is now auto-detected, and need not be
13012 updated separately.
13014 * OSX installer improvements:
13016 + The package and pandoc executable are now signed with a
13017 certificate (thanks to Fyodor Sheremetyev).
13018 + RTF version of license is used.
13019 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
13022 * Converted COPYING to markdown.
13024 * pandoc.cabal: Require latest versions of highlighting-kate,
13025 texmath, citeproc-hs, zip-archive.
13027## pandoc 1.10.1 (2013-01-23)
13029 * Markdown reader: various optimizations, leading to a
13030 significant performance boost.
13032 * RST reader: Allow anonymous form of inline links:
13033 `` `hello <url>`__ `` Closes #724.
13035 * Mediawiki reader: Don't require newlines after tables.
13036 Thanks to jrunningen for the patch. Closes #733.
13038 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
13039 when output is LaTeX, and applied when it is another format.
13040 Partially addresses #730.
13042 * Markdown and RST readers: Added parser to `block` that skips blank
13043 lines. This fixes a subtle regression involving grid tables with
13044 empty cells. Also added test for grid table with empty cells.
13047 * RST writer: Use `.. code:: language` for code blocks with language.
13050 * DocBook writer: Fixed output for hard line breaks, adding a newline
13051 between `<literallayout>` tags.
13053 * Markdown writer: Use an autolink when link text matches url.
13054 Previously we also checked for a null title, but this
13055 test fails for links produced by citeproc-hs in bibliographies.
13056 So, if the link has a title, it will be lost on conversion
13057 to an autolink, but that seems okay.
13059 * Markdown writer: Set title, author, date variables as before.
13060 These are no longer used in the default template, since we use
13061 titleblock, but we set them anyway for those who use custom templates.
13063 * LaTeX writer: Avoid extra space at start/end of table cell.
13064 Thanks to Nick Bart for the suggestion of using @{}.
13066 * `Text.Pandoc.Parsing`:
13068 + More efficient version of `anyLine`.
13069 + Type of `macro` has changed; the parser now returns `Blocks`
13070 instead of `Block`.
13072 * Relaxed old-time version bound, allowing 1.0.*.
13074 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
13075 should create a symlink as described in the README.
13077## pandoc 1.10.0.5 (2013-01-23)
13079 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
13080 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
13081 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
13083 * Markdown reader: Fixed bug with headerless grid tables.
13084 The 1.10 code assumed that each table header cell contains exactly one
13085 block. That failed for headerless tables (0) and also for tables with
13086 multiple blocks in a header cell. The code is fixed and tests provided.
13087 Thanks to Andrew Lee for pointing out the bug.
13089 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
13091 + Tilde code fences can again take a bare language string
13092 (`~~~ haskell`), not just curly-bracketed attributes
13093 (`~~~ {.haskell}`).
13094 + Backtick code blocks can take the curly-bracketed attributes.
13095 + Backtick code blocks don't *require* a language.
13096 + Consolidated code for the two kinds of fenced code blocks.
13098 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
13100 * Markdown writer: Use proportional font for email autolinks with
13101 obfuscation. Closes #714.
13103 * Corrected name of `blank_before_blockquote` in README. Closes #718.
13105 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
13106 The bug prevented an autolink at the end of a string (e.g.
13107 at the end of a line block line) from counting as a link. Closes #711.
13109 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
13110 This should work on Windows, unlike the TH solution with
13113 * Eliminated use of TH in test suite.
13115 * Added `Text.Pandoc.Data` (non-exported) to hold the association
13116 list of embedded data files, if the `embed_data_files` flag is selected.
13117 This isolates the code that needs special treatment with file-embed or
13120 * Changes to `make-windows-installer.bat`.
13122 + Exit batch file if any of the cabal-dev installs fail.
13123 + There's no longer any need to reinstall `highlighting-kate`.
13124 + Don't start with a `cabal update`; leave that to the user.
13125 + Force reinstall of pandoc.
13127 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
13130## pandoc 1.10.0.4 (2013-01-20)
13132 * Fixed bug with escaped % in LaTeX reader. Closes #710.
13134## pandoc 1.10.0.3 (2013-01-20)
13136 * Added further missing fb2 tests to cabal file.
13138## pandoc 1.10.0.2 (2013-01-20)
13140 * Added fb2 tests to cabal file's extra-source-files.
13142## pandoc 1.10.0.1 (2013-01-20)
13144 * Bump version bounds on test-framework packages.
13146## pandoc 1.10 (2013-01-19)
13150 * New input formats: `mediawiki` (MediaWiki markup).
13152 * New output formats: `epub3` (EPUB v3 with MathML),
13153 `fb2` (FictionBook2 ebooks).
13155 * New `--toc-depth` option, specifying how many levels of
13156 headers to include in a table of contents.
13158 * New `--epub-chapter-level` option, specifying the header
13159 level at which to divide EPUBs into separate files.
13160 Note that this normally affects only performance, not the
13161 visual presentation of the EPUB in a reader.
13163 * Removed the `--strict` option. Instead of using `--strict`,
13164 one can now use the format name `markdown_strict` for either input
13165 or output. This gives more fine-grained control that `--strict`
13166 did, allowing one to convert from pandoc's markdown to strict
13167 markdown or vice versa.
13169 * It is now possible to enable or disable specific syntax
13170 extensions by appending them (with `+` or `-`) to the writer
13171 or reader name. For example,
13173 pandoc -f markdown-footnotes+hard_line_breaks
13175 disables footnotes and enables treating newlines as hard
13176 line breaks. The literate Haskell extensions are now implemented
13177 this way as well, using either `+lhs` or `+literate_haskell`.
13178 For a list of extension names, see the README under
13179 "Pandoc's Markdown."
13181 * The following aliases have been introduced for specific
13182 combinations of markdown extensions: `markdown_phpextra`,
13183 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
13184 work just like regular reader and writer names, and can be modified
13185 with extension modifiers as described above. (Note that conversion
13186 from one markdown dialect to another does not work perfectly,
13187 because there are differences in markdown parsers besides
13188 just the extensions, and because pandoc's internal document model is
13189 not rich enough to capture all of the extensions.)
13191 * New `--html-q-tags` option. The previous default was to use `<q>`
13192 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
13193 Moreover, they are not a robust way of typesetting quotes, since
13194 some user agents don't support them, and some CSS resets (e.g.
13195 bootstrap) prevent pandoc's quotes CSS from working properly.
13196 We now just insert literal quote characters by default in both
13197 `html` and `html5` output, but this option is provided for
13198 those who still want `<q>` tags.
13200 * The markdown reader now prints warnings (to stderr) about
13201 duplicate link and note references. Closes #375.
13203 * Markdown syntax extensions:
13205 + Added pipe tables. Thanks to François Gannaz for the initial patch.
13206 These conform to PHP Markdown Extra's pipe table syntax. A subset
13207 of org-mode table syntax is also supported, which means that you can
13208 use org-mode's nice table editor to create tables.
13210 + Added support for RST-style line blocks. These are
13211 useful for verse and addresses.
13213 + Attributes can now be specified for headers, using the same
13214 syntax as in code blocks. (However, currently only the
13215 identifier has any effect in most writers.) For example,
13219 See [the header above](#foo).
13221 + Pandoc will now act as if link references have been defined
13222 for all headers without explicit identifiers.
13223 So, you can do this:
13227 Link to [My header].
13228 Another link to [it][My header].
13234 + Command macros now work everywhere, including non-math.
13235 Environment macros still not supported.
13236 + `\input` now works, as well as `\include`. TEXINPUTS is used.
13237 Pandoc looks recursively into included files for more included files.
13239### Behavior changes
13241 * The Markdown reader no longer puts the text of autolinks in a
13242 `Code` inline. This means that autolinks will no longer appear
13243 in a monospace font.
13245 * The character `/` can now appear in markdown citation keys.
13247 * HTML blocks in strict_markdown are no longer required to begin
13248 at the left margin. Technically this is required, according to
13249 the markdown syntax document, but `Markdown.pl` and other markdown
13250 processors are more liberal.
13252 * The `-V` option has been changed so that if there are duplicate
13253 variables, those specified later on the command line take precedence.
13255 * Tight lists now work in LaTeX and ConTeXt output.
13257 * The LaTeX writer no longer relien on the `enumerate` package.
13258 Instead, it uses standard LaTeX commands to change the list numbering
13261 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
13262 tables to be split over page boundaries.
13264 * The RST writer now uses a line block to render paragraphs containing
13265 linebreaks (which previously weren't supported at all).
13267 * The markdown writer now applies the `--id-prefix` to footnote IDs.
13270 * The plain writer no longer uses backslash-escaped line breaks
13271 (which are not very "plain").
13273 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
13274 Read bytestring and use `Text`'s decodeUtf8 instead of using
13275 `System.IO.hGetContents`. This way you get a message saying
13276 "invalid UTF-8 stream" instead of "invalid byte sequence."
13277 You are also told which byte caused the problem.
13279 * Docx, ODT, and EPUB writers now download images specified by a URL
13280 instead of skipping them or raising an error.
13284 + The default CSS now left-aligns headers by default, instead of
13285 centering. This is more consistent with the rest of the writers.
13286 + A proper multi-level table of contents is now used in `toc.ncx`.
13287 There is no longer a subsidiary table of contents at the beginning
13289 + Code highlighting now works by default.
13290 + Section divs are used by default for better semantic markup.
13291 + The title is used instead of "Title Page" in the table of contents.
13292 Otherwise we have a hard-coded English string, which looks
13293 strange in ebooks written in other languages. Closes #572.
13297 + Put mathjax in span with class "math". Closes #562.
13298 + Put citations in a span with class "citation." In HTML5, also include
13299 a `data-cite` attribute with a space-separated list of citation
13302 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
13303 This treats both `\r\n` and `\n` as `\n` on input, no matter
13304 what platform we're running on.
13306 * Citation processing is now done in the Markdown and LaTeX
13307 readers, not in `pandoc.hs`. This makes it easier for library users
13310### Template changes
13312 * HTML: Added css to template to preserve spaces in `<code>` tags.
13313 Thanks to Dirk Laurie.
13315 * Beamer: Remove English-centric strings in section pages.
13316 Section pages used to have "Section" and a number as well as the
13317 section title. Now they just have the title. Similarly for part
13318 and subsection. Closes #566.
13320 * LaTeX, ConTeXt: Added papersize variable.
13322 * LaTeX, Beamer templates: Use longtable instead of ctable.
13324 * LaTeX, Beamer templates: Don't require 'float' package for tables.
13325 We don't actually seem to use the '[H]' option.
13327 * Markdown, plain: Fixed titleblock so it is just a single string.
13328 Previously separate title, author, and date variables were used,
13329 but this didn't allow different kinds of title blocks.
13333 + Rationalized templates. Previously there were three different
13334 templates involved in epub production. There is now just one
13335 template, `default.epub` or `default.epub3`. It can now be
13336 overridden using `--template`, just like other templates.
13337 The titlepage is now folded into the default template.
13338 A `titlepage` variable selects it.
13339 + UTF-8, lang tag, meta tags, title element.
13341 * Added scale-to-width feature to beamer template
13345 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
13346 Previously header identifiers were autogenerated by the writers.
13347 Now they are added in the readers (either automatically or explicitly).
13349 * `Text.Pandoc.Builder`:
13351 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
13352 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
13353 custom Monoid instances for `Many Inline` and `Many Block. This
13354 allows `Many` to be made an instance of `Foldable` and `Traversable`.
13355 + The old `Listable` class has been removed.
13356 + The module now exports `isNull`, `toList`, `fromList`.
13357 + The old `Read` and `Show` instances have been removed; derived
13358 instances are now used.
13359 + Added `headerWith`.
13361 * The readers now take a `ReaderOptions` rather than a `ParserState`
13362 as a parameter. Indeed, not all parsers use the `ParserState` type;
13363 some have a custom state. The motivation for this change was to separate
13364 user-specifiable options from the accounting functions of parser state.
13366 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
13367 formerly in `Text.Pandoc.Shared`, and its associated
13368 data types. It also includes a new type `ReaderOptions`, which
13369 contains many options formerly in `ParserState`, and its associated
13372 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
13373 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
13374 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
13375 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
13376 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
13377 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
13378 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
13379 + `ParserState.stateIndentedCodeClasses` ->
13380 `ReaderOptions.readerIndentedCodeClasses`.
13381 + Added `ReaderOptions.readerCitationStyle`.
13383 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
13384 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
13385 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
13386 been renamed `writerEpubMetadata` for consistency.
13388 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
13389 longer stylesheet, fonts, reference files as separate parameters.
13391 * Removed `writerLiterateHaskell` from `WriterOptions`, and
13392 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
13393 by an extension (`Ext_literate_haskell`).
13395 * Removed deprecated `writerXeTeX`.
13397 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
13398 Strict is now handled through extensions.
13400 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
13401 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
13402 and `multimarkdownExtensions`, as well as the `Extensions` type.
13404 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
13407 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
13408 (thanks to Sergey Astanin).
13412 + Added `getReader`, `getWriter` to `Text.Pandoc`.
13413 + `writers` is now an association list `(String, Writer)`.
13414 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
13415 an `IOByteStringWriter`. ALL writers are now in the 'writers'
13416 list, including the binary writers and FB2 writer. This allows
13417 code in `pandoc.hs` to be simplified.
13418 + Changed type of `readers`, so all readers are in IO.
13419 Users who want pure readers can still get them form the reader
13420 modules; this just affects the function `getReader` that looks up
13421 a reader based on the format name. The point of this change is to
13422 make it possible to print warnings from the parser.
13424 * `Text.Pandoc.Parsing`:
13426 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
13427 No other module directly imports Parsec. This will make it easier
13428 to change the parsing backend in the future, if we want to.
13429 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
13430 + Export the type synonym `Parser`.
13431 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
13432 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
13433 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
13434 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
13435 + `ParserState` is no longer an instance of `Show`.
13436 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
13437 + Generalized type of `withQuoteContext`.
13438 + Added `guardEnabled`, `guardDisabled`, `getOption`.
13439 + Removed `failIfStrict`.
13440 + `lookupKeySrc` and `fromKey` are no longer exported.
13442 * `Data.Default` instances are now provided for `ReaderOptions`,
13443 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
13444 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
13445 of `defaultWriterOptions` (which is still defined). Closes #546.
13447 * `Text.Pandoc.Shared`:
13449 + Added `safeRead`.
13450 + Renamed `removedLeadingTrailingSpace` to `trim`,
13451 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
13452 + Count `\r` as space in `trim` functions.
13453 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
13455 + Removed `failUnlessLHS`.
13456 + Export `compactify'`, formerly in Markdown reader.
13457 + Export `isTightList`.
13458 + Do not export `findDataFile`.
13459 + `readDataFile` now returns a strict ByteString.
13460 + Export `readDataFileUTF8` which returns a String, like the
13461 old `readDataFile`.
13462 + Export `fetchItem` and `openURL`.
13464 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
13465 Removed `readImageSize`.
13467 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
13468 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
13471 * `Text.Pandoc.UTF8` is now an exposed module.
13473 * `Text.Pandoc.Biblio`:
13475 + csl parameter now a `String` rather than a `FilePath`.
13476 + Changed type of `processBiblio`. It is no longer in the IO monad.
13477 It now takes a `Maybe Style` argument rather than parameters for CSL
13478 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
13479 the style file and add abbreviations.)
13481 * Markdown reader now exports `readMarkdownWithWarnings`.
13483 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
13488 * Make `--ascii` work properly with `--self-contained`. Closes #568.
13492 + Fixed link parser to avoid exponential slowdowns. Closes #620.
13493 Previously the parser would hang on input like this:
13495 [[[[[[[[[[[[[[[[[[hi
13497 We fixed this by making the link parser parser characters
13498 between balanced brackets (skipping brackets in inline code spans),
13499 then parsing the result as an inline list. One change is that
13501 [hi *there]* bud](/url)
13503 is now no longer parsed as a link. But in this respect pandoc behaved
13504 differently from most other implementations anyway, so that seems okay.
13506 + Look for raw html/latex blocks before tables.
13507 Otherwise the following gets parsed as a table:
13518 + Added support for `:target:` on `.. image::` blocks
13520 + Field list fixes:
13522 - Fixed field lists items with body beginning after a new line
13524 - Allow any char but ':' in names of field lists in RST reader
13526 - Don't allow line breaks in field names.
13527 - Require whitespace after field list field names.
13528 - Don't create empty definition list for metadata field lists.
13529 Previously a field list consisting only of metadata fields (author,
13530 title, date) would be parsed as an empty DefinitionList, which is
13531 not legal in LaTeX and not needed in any format.
13533 + Don't recognize inline-markup starts inside words.
13534 For example, `2*2 = 4*1` should not contain an emphasized
13535 section. Added test case for "Literal symbols". Closes #569.
13536 + Allow dashes as separator in simple tables. Closes #555.
13537 + Added support for `container`, `compound`, `epigraph`,
13538 `rubric`, `highlights`, `pull-quote`.
13539 + Added support for `.. code::`.
13540 + Made directive labels case-insensitive.
13541 + Removed requirement that directives begin at left margin.
13542 This was (correctly) not in earlier releases; docutils doesn't
13543 make the requirement.
13544 + Added support for `replace::` and `unicode::` substitutions.
13545 + Ignore unknown interpreted roles.
13546 + Renamed image parser to `subst`, since it now handles all
13547 substitution references.
13551 + Allow newlines before pipes in table. Closes #654.
13552 + Fixed bug with list items containing line breaks.
13553 Now pandoc correctly handles hard line breaks inside list items.
13554 Previously they broke list parsing.
13555 + Implemented comment blocks.
13556 + Fixed bug affected words ending in hyphen.
13557 + Properly handle links with surrounding brackets.
13558 Square brackets need to be used when the link isn't surrounded by
13559 spaces or punctuation, or when the URL ending may be ambiguous.
13561 + Removed nullBlock. Better to know about parsing problems than
13562 to skip stuff when we get stuck.
13563 + Allow ID attributes on headers.
13564 + Textile reader: Avoid parsing dashes as strikeout.
13565 Previously the input
13572 would be parsed with strikeouts rather than dashes. This fixes
13573 the problem by requiring that a strikeout delimiting - not be
13574 followed by a -. Closes #631.
13575 + Expanded list of `stringBreakers`.
13576 This fixes a bug on input like "(_hello_)" which should
13577 be a parenthesized emphasized "hello".
13578 The new list is taken from the PHP source of textile 2.4.
13579 + Fixed autolinks. Previously the textile reader and writer
13580 incorrectly implented RST-style autolinks for URLs and email
13581 addresses. This has been fixed. Now an autolink is done this way:
13582 `"$":http://myurl.com`.
13583 + Fixed footnotes bug in textile. This affected notes occurring
13584 before punctuation, e.g. `foo[1].`. Closes #518.
13588 + Better handling of citation commands.
13589 + Better handling of `\noindent`.
13590 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
13592 + Made `rawLaTeXInline` try to parse block commands as well. This
13593 is usually what we want, given how `rawLaTeXInline` is used in
13594 the markdown and textile readers. If a block-level LaTeX command
13595 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
13596 we can treat it as raw inline LaTeX.
13597 + Handle `\slash` command. Closes #605.
13598 + Basic `\enquote` support.
13599 + Fixed parsing of paragraphs beginning with a group. Closes #606.
13600 + Use curly quotes for bare straight quotes.
13601 + Support obeylines environment. Closes #604.
13602 + Guard against "begin", "end" in inlineCommand and
13604 + Better error messages for environments. Now it should tell you that
13605 it was looking for \end{env}, instead of giving "unknown parse error."
13609 + Added HTML 5 tags to list of block-level tags.
13610 + HTML reader: Fixed bug in `htmlBalanced`, which
13611 caused hangs in parsing certain markdown input using
13613 + Parse `<q>` as `Quoted DoubleQuote`.
13614 + Handle nested `<q>` tags properly.
13615 + Modified `htmlTag` for fewer false positives.
13616 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
13617 This makes it more useful in the wikimedia and markdown parsers.
13619 * DocBook reader: Support title in "figure" element. Closes #650.
13621 * MediaWiki writer:
13623 + Remove newline after `<br/>` in translation of `LineBreak`
13624 There's no particular need for a newline (other than making the
13625 generated MediaWiki source look nice to a human), and in fact
13626 sometimes it is incorrect: in particular, inside an enumeration, list
13627 items cannot have embedded newline characters. (Brent Yorgey)
13628 + Use `<code>` not `<tt>` for Code.
13630 * Man writer: Escape `-` as `\-`.
13631 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
13632 signs. That is preferable for use with command-line options. See
13633 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
13634 to Andrea Bolognani for bringing the issue to our attention.
13638 + Improved line block output. Use nonbreaking spaces for
13639 initial indent (otherwise lost in HTML and LaTeX).
13640 Allow multiple paragraphs in a single line block.
13641 Allow soft breaks w continuations in line blocks.
13642 + Properly handle images with no alt text. Closes #678.
13643 + Fixed bug with links with duplicate text. We now (a) use anonymous
13644 links for links with inline URLs, and (b) use an inline link instead
13645 of a reference link if the reference link would require a label that
13646 has already been used for a different link. Closes #511.
13647 + Fixed hyperlinked images. Closes #611. Use `:target:`
13648 field when you have a simple linked image.
13649 + Don't add `:align: center` to figures.
13651 * Texinfo writer: Fixed internal cross-references.
13652 Now we insert anchors after each header, and use `@ref` instead of `@uref`
13653 for links. Commas are now escaped as `@comma{}` only when needed;
13654 previously all commas were escaped. (This change is needed, in part,
13655 because `@ref` commands must be followed by a real comma or period.) Also
13656 insert a blank line in from of `@verbatim` environments.
13660 + Made --id-prefix work in DocBook as well as HTML.
13662 + Don't include empty captions in figures. Closes #581.
13666 + Use `\hspace*` for nonbreaking space after line break,
13667 since `~` spaces after a line break are just ignored.
13669 + Don't escape `_` in URLs or hyperref identifiers.
13670 + Properly escape strings inside `\url{}`. Closes #576.
13671 + Use `[fragile]` only for slides containing code rendered
13672 using listings. Closes #649.
13673 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
13674 highlighting-kate's macros, which redefine `|` as a short verbatim
13675 delimiter. Thanks to Björn Peemöller for raising this issue.
13676 + Use minipage rather than parbox for block containers in tables.
13677 This allows verbatim code to be included in grid tables.
13679 + Prevent paragraphs containing only linebreaks or spaces.
13683 + Included `highlighting-css` for code spans, too.
13684 Previously it was only included if used in a code block. Closes #653.
13685 + Improved line breaks with `<dd>` tags. We now put a newline between
13686 `</dd>` and `<dd>` when there are multiple definitions.
13687 + Changed mathjax cdn url so it doesn't use https. (This caused
13688 problems when used with `--self-contained`.) See #609.
13692 + `--number-sections` now works properly.
13693 + Don't strip meta and link elements in epub metadata.
13694 Patch from aberrancy. Closes #589.
13695 + Fixed a couple validation bugs.
13696 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
13697 of chapters in some readers, which apparently sort ch2 after ch10.
13700 * ODT writer: properly set title property (Arlo O'Keeffe).
13704 + Fixed bug with nested lists. Previously a list like
13711 would come out with a bullet instead of "2."
13712 Thanks to Russell Allen for reporting the bug.
13713 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
13714 This seems to fix a problem viewing pandoc-generated
13715 docx files in LibreOffice.
13716 + Use integer ids for bookmarks. Closes #626.
13717 + Added nsid to abstractNum elements. This helps when merging
13718 word documents with numbered or bulleted lists. Closes #627.
13719 + Use separate footnotes.xml for notes.
13720 This seems to help LibreOffice convert the file, even though
13721 it was valid docx before. Closes #637.
13722 + Use rIdNN identifiers for r:embed in images.
13723 + Avoid reading image files again when we've already processed them.
13724 + Fixed typo in `referenc.docx` that prevented image captions from
13725 working. Thanks to Huashan Chen.
13727 * `Text.Pandoc.Parsing`:
13729 + Fixed bug in `withRaw`, which didn't correctly handle the case
13730 where nothing is parsed.
13731 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
13732 though it still doesn't implement quoted strings in email addresses.
13733 + Revised URI parser. It now allows many more schemes, allows
13734 uppercase URIs, and better handles trailing punctuation and
13735 trailing slashes in bare URIs. Added many tests.
13736 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
13737 etc. parse properly. Formerly we had some English-centric heuristics,
13738 but they are no longer needed. Closes #698.
13740 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
13741 This fixes bug with Chinese commas in markdown and reST tables, and
13742 a bug that caused combining characters to be dropped.
13744 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
13746 * `Text.Pandoc.Biblio`:
13748 + Run `mvPunc` and `deNote` on metadata too.
13749 This fixed a bug with notes on titles using footnote styles.
13750 + Fixed bug in fetching CSL files from CSL data directory.
13752 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
13753 is provided. It should be the URL up to the path.
13755 * Fixed/simplified diff output for tests.
13756 Biblio: Make sure mvPunc and deNote run on metadata too.
13757 This fixed a bug with notes on titles using footnote styles.
13759### Under the hood improvements
13761 * We no longer depend on `utf8-string`. Instead we use functions
13762 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
13764 * Use `safeRead` instead of using `reads` directly (various modules).
13766 * "Implicit figures" (images alone in a paragraph) are now handled
13767 differently. The markdown reader gives their titles the prefix `fig:`; the
13768 writers look for this before treating the image as a figure. Though this
13769 is a bit of a hack, it has two advantages: (i) implicit figures can be
13770 limited to the markdown reader, and (ii) they can be deactivated by turning
13771 off the `implicit_figures` extension.
13773 * `catch` from `Control.Exception` is now used instead of the
13774 old Preface `catch`.
13776 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
13777 and `oneOfStrings` (which is now non-backtracking).
13779 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
13780 Now citeproc-hs is fixed upstream, so this is no longer needed.
13783 * Textile reader: Improved speed of `hyphenedWords`.
13784 This speeds up the textile reader by about a factor of 4.
13786 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
13787 better performance, and automatic normalization.
13789 * Major rewrite of markdown reader:
13791 + Use `Text.Pandoc.Builder` instead of lists. This also
13792 means that everything is normalized automatically.
13793 + Move to a one-pass parsing strategy, returning values in the reader
13794 monad, which are then run (at the end of parsing) against the final
13797 * In HTML writer, we now use `toHtml` instead of pre-escaping.
13798 We work around the problem that blaze-html unnecessarily escapes `'`
13799 by pre-escaping just the `'` characters, instead of the whole string.
13800 If blaze-html later stops escaping `'` characters, we can simplify
13801 `strToHtml` to `toHtml`. Closes #629.
13803 * Moved code for embedding images in RTFs from `pandoc.hs` to the
13804 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
13806 * Moved citation processing from `pandoc.hs` into the readers.
13807 This makes things more convenient for library users.
13809 * The man pages are now built by an executable `make-pandoc-man-pages`,
13810 which has its own stanza in the cabal file so that dependencies can be
13811 handled by Cabal. Special treatment in `Setup.hs` ensures that this
13812 executable never gets installed; it is only used to create the man pages.
13814 * The cabal file has been modified so that the pandoc library is used
13815 in building the pandoc executable. (This required moving `pandoc.hs`
13816 from `src` to `.`.) This cuts compile time in half.
13818 * The `executable` and `library` flags have been removed.
13820 * `-threaded` has been removed from ghc-options.
13822 * Version bounds of dependencies have been raised, and the
13823 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
13826 * We now require base >= 4.2.
13828 * Integrated the benchmark program into cabal. One can now do:
13830 cabal configure --enable-benchmarks && cabal build
13831 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
13833 The benchmark now uses README + testsuite, so benchmark results
13834 from older versions aren't comparable.
13836 * Integrated test suite with cabal.
13837 To run tests, configure with `--enable-tests`, then `cabal test`.
13838 You can specify particular tests using `--test-options='-t markdown'`.
13839 No output is shown unless tests fail. The Haskell test modules
13840 have been moved from `src/` to `tests/`.
13842 * Moved all data files and templates to the `data/` subdirectory.
13844 * Added an `embed_data_files` cabal flag. This causes all
13845 data files to be embedded in the binary, so that the binary
13846 is self-sufficient and can be relocated anywhere, copied on
13847 a USB key, etc. The Windows installer now uses this.
13848 (Since we no longer have the option to build the executable
13849 without the library, this is the only way to get a relocatable
13850 binary on Windows.)
13852 * Removed pcre3.dll from windows package.
13853 It isn't needed unless highlighting-kate is compiled with the
13854 `pcre-light` flag. By default, regex-prce-builtin is used.
13857## pandoc 1.9.4.5 (2012-10-21)
13859 * Raised version bounds on network, base64-bytestring, json,
13860 and template-haskell.
13862## pandoc 1.9.4.4 (2012-10-20)
13864 * Removed `tests` flag and made test suite into a proper cabal
13865 test suite, which can now be enabled using `--enable-tests`
13866 and run with `cabal test`.
13868 * Moved man page creation out of `Setup.hs` and into an
13869 executable built by Cabal, but never installed. This
13870 allows dependencies to be specified, and solves a problem
13871 with 1.9.4.3, which could only be installed if `data-default`
13872 had already been installed.
13874 * Updated `lhs-latex.tex` test for latest highlighting-kate
13875 representation of backticks.
13877## pandoc 1.9.4.3 (2012-10-20)
13879 * Removed `-threaded` from default compile flags.
13881 * Modified modules to compile with GHC 7.6 and latest version of time
13884## pandoc 1.9.4.2 (2012-06-29)
13886 * Don't encode/decode file paths if base >= 4.4.
13887 Prior to base 4.4, filepaths and command line arguments were treated
13888 as unencoded lists of bytes, not unicode strings, so we had to work
13889 around that by encoding and decoding them. This commit adds CPP
13890 checks for the base version that intelligibly enable encoding/decoding
13891 when needed. Fixes a bug with multilingual filenames when pandoc was
13892 compiled with ghc 7.4 (#540).
13894 * Don't generate an empty H1 after hrule slide breaks.
13895 We now use a slide-level header with contents `[Str "\0"]` to mark
13896 an hrule break. This avoids creation of an empty H1 in these
13897 contexts. Closes #484.
13899 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
13901 * In make_osx_package.sh, ensure citeproc-hs is built with the
13902 embed_data_files flag.
13904 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
13906 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
13907 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
13909 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
13912 * Added webm to mime types. Closes #543.
13914 * Added some missing exports and tests to the cabal file
13915 (Alexander V Vershilov).
13917 * Compile with `-rtsopts` and `-threaded` by default.
13919## pandoc 1.9.4.1 (2012-06-08)
13921 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
13923 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
13924 variables. Make TOC links black.
13926 * LaTeX template improvements.
13928 + Don't print date unless one is given explicitly in the document.
13929 + Simplified templates.
13930 + Use fontenc [T1] by default, and lmodern.
13931 + Use microtype if available.
13935 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
13936 Motivation: `@item1 [50]` should be as close as possible to
13938 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
13939 beginning with a citation to be empty. Closes #531.
13941 * Fixed documentation on mixed lists. Closes #533.
13943## pandoc 1.9.4 (2012-06-03)
13945 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
13946 footnotes and captions. We now handle note citations by inserting
13947 footnotes during initial citation processing, and doing a separate
13948 pass later to remove notes inside notes.
13950 * Added 'zenburn' highlight style from highlighting-kate.
13952 * Added Slideous writer. Slideous is an HTML + javascript slide show
13953 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
13957 + Ensure we don't have extra blank lines at ends of cells.
13958 This can cause LaTeX errors, as they are interpreted as new paragraphs.
13959 + More consistent interblock spacing.
13960 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
13961 code in LaTeX. Closes #527.
13962 + Ensure that a Verbatim at the end of a footnote is followed by
13963 a newline. (Fixes a regression in the previous version.)
13964 + In default template, use black for internal links and TOC.
13965 Added commented-out code to use footnotes for links, as would
13966 be suitable in print output.
13968 * Beamer writer: When `--incremental` is used, lists inside
13969 a block quote should appear all at once. (This makes Beamer
13970 output consistent with the HTML slide show formats.)
13974 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
13975 to avoid gobbling spaces after the `%` sign.
13976 + Ensure space after `\stopformula`.
13980 + Use `:` form instead of `~` in definition lists, for better
13981 compatibility with other markdown implementations.
13982 + Don't wrap the term, because it breaks definition lists.
13983 + Use a nonzero space to prevent false recognition
13984 of list marker in ordered lists. Closes #516.
13986 * Org writer: Add space before language name. Closes #523.
13988 * Docx writer: Simplified bullet characters so they work properly
13989 with Word 2007. Closes #520.
13991 * LaTeX reader: Support `\centerline`.
13993 * RST reader: handle figures. Closes #522.
13995 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
13998## pandoc 1.9.3 (2012-05-12)
14000 * Added docbook reader (with contributions from Mauro Bieg).
14002 * Fixed bug in `fromEntities`. The previous version would turn
14003 `hi & low you know;` into `hi &`.
14007 + Don't skip nonbreaking spaces.
14008 Previously a paragraph containing just ` ` would be rendered
14009 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
14010 + Support `<col>` and `<caption>` in tables. Closes #486.
14014 + Don't recognize references inside delimited code blocks.
14015 + Allow list items to begin with lists.
14019 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
14020 + Control sequences can't be followed by a letter.
14021 This fixes a bug where `\begingroup` was parsed as `\begin`
14022 followed by `group`.
14023 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
14024 + Make `\label` and `\ref` sensitive to `--parse-raw`.
14025 If `--parse-raw` is selected, these will be parsed as raw latex
14026 inlines, rather than bracketed text.
14027 + Don't crash on unknown block commands (like `\vspace{10pt}`)
14028 inside `\author`; just skip them. Closes #505.
14032 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
14033 + Added support for LaTeX blocks and inlines (Paul Rivier).
14034 + Better conformance to RedCloth inline parsing (Paul Rivier).
14035 + Parse '+text+' as emphasized (should be underlined, but this
14036 is better than leaving literal plus characters in the output.
14038 * Docx writer: Fixed multi-paragraph list items. Previously they each
14039 got a list marker. Closes #457.
14043 + Added `--no-tex-ligatures` option to avoid replacing
14044 quotation marks and dashes with TeX ligatures.
14045 + Use `fixltx2e` package to provide `\textsubscript`.
14046 + Improve spacing around LaTeX block environments:
14047 quote, verbatim, itemize, description, enumerate.
14049 + Use blue instead of pink for URL links in latex/pdf output.
14051 * ConTeXt writer: Fixed escaping of `%`.
14052 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
14053 Inside URLs, `%` needs to be escaped as `\%`
14054 Thanks to jmarca and adityam for the fix. Closes #492.
14056 * Texinfo writer: Escape special characters in node titles.
14057 This fixes a problem pointed out by Joost Kremers. Pandoc used
14058 to escape an '@' in a chapter title, but not in the corresponding
14059 node title, leading to invalid texinfo.
14061 * Fixed document encoding in texinfo template.
14062 Resolves Debian Bug #667816.
14066 + Don't force delimited code blocks to be flush left.
14067 Fixes bug with delimited code blocks inside lists etc.
14068 + Escape `<` and `$`.
14070 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
14071 Previously we used `\href{\#ident}{text}`, which didn't work on
14072 all systems. Thanks to Dirk Laurie.
14074 * RST writer: Don't wrap link references. Closes #487.
14076 * Updated to use latest versions of blaze-html, mtl.
14079## pandoc 1.9.2 (2012-04-05)
14083 + Made `lstlisting` work as a proper verbatim environment.
14084 + Fixed bug parsing LaTeX tables with one column.
14088 + Use `{}` around `ctable` caption, so that formatting can be used.
14089 + Don't require eurosym package unless document has a €.
14091 * LaTeX template: Added variables for `geometry`, `romanfont`,
14092 `sansfont`, `mathfont`, `mainfont` so users can more easily
14097 + Run latex engine at least two times, to ensure
14098 that PDFs will have hyperlinked bookmarks.
14099 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
14101 * Texinfo writer: retain directories in image paths. (Peter Wang)
14103 * RST writer: Better handling of inline formatting, in accord
14104 with docutils' "inline markup recognition rules" (though we don't
14105 implement the unicode rules fully). Now `hi*there*hi` gets
14106 rendered properly as `hi\ *there*\ hi`, and unnecessary
14107 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
14111 + Parse `\ ` as null, not escaped space.
14112 + Allow `` :math:`...` `` even when not followed by blank
14113 or `\`. This does not implement the complex rule docutils follows,
14114 but it should be good enough for most purposes.
14115 + Add support for the rST default-role directive. (Greg Maslov)
14117 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
14120 * Markdown reader: Properly handle citations nested in other inline
14123 * Markdown writer: don't replace empty alt in image with "image".
14125 * DZSlides: Updated template.html and styles in default template.
14126 Removed bizarre CSS for `q` in dzslides template.
14128 * Avoid repeated `id` attribute in section and header in HTML slides.
14130 * README improvements: new instructions on internal links,
14131 removed misleading note on reST math.
14135 + Fixed Windows installer so that dzslides works.
14136 + Removed stripansi.sh.
14137 + Added .travis.yml for Travis continuous integration support..
14138 + Fixed upper bound for zlib (Sergei Trofimovich).
14139 + Fixed upper bound for test-framework.
14140 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
14143## pandoc 1.9.1.2 (2012-03-09)
14145 * Added `beamer+lhs` as output format.
14147 * Don't escape `<` in `<style>` tags with `--self-contained`.
14148 This fixes a bug which prevented highlighting from working
14149 when using `--self-contained`.
14151 * PDF: run latex engine three times if `--toc` specified.
14152 This fixes page numbers in the table of contents.
14154 * Docx writer: Added TableNormal style to tables.
14156 * LaTeX math environment fixes. `aligned` is now used instead of
14157 the nonexistent `aligned*`. `multline` instead of the nonexistent
14160 * LaTeX writer: Use `\textasciitilde` for literal `~`.
14162 * HTML writer: Don't escape contents of EQ tags with --gladtex.
14163 This fixes a regression from 1.8.
14165 * Use `<q>` tags for Quoted items for HTML5 output.
14166 The quote style can be changed by modifying the template
14167 or including a css file. A default quote style is included.
14169 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
14170 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
14172 * Updated LaTeX template for better language support.
14173 Use `polyglossia` instead of `babel` with xetex.
14174 Set `lang` as documentclass option.
14175 `\setmainlanguage` will use the last of a comma-separated
14176 list of languages. Thanks to François Gannaz.
14178 * Fixed default LaTeX template so `\euro` and `€` work. The
14179 `eurosym` package is needed if you are using pdflatex.
14181 * Fixed escaping of period in man writer (thanks to Michael Thompson).
14183 * Fixed list label positions in beamer.
14185 * Set `mainlang` variable in context writer.
14186 This parallels behavior of latex writer. `mainlang` is the last
14187 of a comma-separated list of languages in lang.
14189 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
14191 * Changed `-V` so that you can specify a key without a value.
14192 Such keys get the value `true`.
14194 * Fixed permissions on installed man pages - thanks Magnus Therning.
14196 * Windows installer: require XP or higher. The installer is
14197 now compiled on a Windows 7 machine, which fixes a problem
14198 using citation functions on Windows 7.
14200 * OSX package: Check for 64-bit Intel CPU before installing.
14203## pandoc 1.9.1.1 (2012-02-11)
14205 * Better handling of raw latex environments in markdown. Now
14211 turns into a raw latex block as expected.
14213 * Improvements to LaTeX reader:
14215 + Skip options after block commands.
14216 + Correctly handle `{\\}` in braced.
14217 + Added a needed 'try'.
14218 + Citations: add `, ` to suffix if it doesn't start with space or
14219 punctuation. Otherwise we get no space between the year and the
14220 suffix in author-date styles.
14222 * Added two needed data files for S5. This fixes a problem with
14223 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
14224 which was no longer being used.
14226 * Fixed some minor problems in `reference.docx`:
14227 name on "Date" style, `xCs` instead of `xIs`.
14229 * Fixed a problem creating docx files using a reference docx
14230 modified using Word. The problem seems to be that Word
14231 modifies `_rels/.rels`, changing the Type of the Relationship to
14232 `docProps/core.xml`. Pandoc now changes this back to the correct
14233 value if it has been altered, fixing the problem.
14235 * Fixed html5 template so it works properly with highlighting.
14237## pandoc 1.9.1 (2012-02-09)
14241 + Fixed regression in 1.9; properly handle escaped $ in latex math.
14242 + Put LaTeX verse environments in blockquotes.
14246 + Limit nesting of strong/emph. This avoids exponential lookahead
14247 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
14248 + Improved attributes syntax (in code blocks/spans): (1)
14249 Attributes can contain line breaks. (2) Values in key-value
14250 attributes can be surrounded by either double or single quotes, or
14251 left unquoted if they contain no spaces.
14253 * Headers no longer wrap in markdown or RST writers.
14255 * Added `stateMaxNestingLevel` to `ParserState`.
14256 We set this to 6, so you can still have `Emph` inside `Emph`,
14257 just not indefinitely.
14259 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
14261 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
14264 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
14266## pandoc 1.9.0.5 (2012-02-06)
14268 * Changed cabal file so that build-depends for the test program
14269 are not required unless the tests flag is used.
14271 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
14272 form ligatures (dashes) in code spans.
14274## pandoc 1.9.0.4 (2012-02-06)
14276 * Raised version bound on test-framework to avoid problems
14277 compiling tests on GHC 7.4.1.
14279 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
14280 so citations don't just disappear unless you process with
14281 citeproc. Ignore `\bibliographystyle`, `\nocite`.
14283 * Simplified tex2pdf; it will always run latex twice to
14284 resolve table of contents and hyperrefs.
14286## pandoc 1.9.0.3 (2012-02-06)
14288 * Require Cabal >= 1.10.
14290 * Tweaked cabal file to meet Cabal 1.10 requirements.
14292## pandoc 1.9.0.2 (2012-02-05)
14294 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
14297## pandoc 1.9 (2012-02-05)
14301 * Added a Microsoft Word `docx` writer. The writer includes support
14302 for highlighted code and for math (which is converted from TeX to OMML,
14303 Office's native math markup language, using texmath's new OMML module).
14304 A new option `--reference-docx` allows the user to customize the
14307 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
14309 * Better support for slide shows:
14311 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
14312 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
14314 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
14315 slide presentations.
14317 + New, flexible rules for dividing documents into sections and slides
14318 (see the "Structuring the slide show" in the User's Guide). These
14319 are backward-compatible with the old rules, but they allow slide
14320 shows to be organized into sections and subsections containing
14323 + A new `--slide-level` option allows users to override defaults
14324 and select a slide level below the first header level with content.
14326 * A new `--self-contained` option produces HTML output that does not
14327 depend on an internet connection or the presence of any external
14328 files. Linked images, CSS, and javascript is downloaded (or fetched
14329 locally) and encoded in `data:` URIs. This is useful for making portable
14330 `HTML slide shows. The --offline` option has been deprecated and is now
14331 `treated as a synonym or --self-contained`.
14333 * Support for PDF output:
14335 + Removed the old `markdown2pdf`.
14336 + `pandoc` can now create PDFs (assuming you have latex and a set of
14337 appropriate packages installed): just specify an output file with the
14339 + A new option `--latex-engine` allows you to specify `pdflatex`,
14340 `xelatex`, or `lualatex` as the processor.
14342 * Highlighting changes:
14344 + Syntax highlighting is now a standard feature; the `highlighting`
14345 flag is no longer needed when compiling.
14346 + A new `--no-highlight` option allows highlighting to be disabled.
14347 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
14348 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
14349 + A new `--highlight-style` option selects between various highlighting
14352 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
14354 * LaTeX `\include` and `\usepackage` commands are now processed,
14355 provided the files are in the working directory.
14357 * EPUB improvements:
14359 + Internal and external links now work in EPUB.
14360 + Raw HTML is allowed.
14361 + New `--epub-embed-font` option.
14362 + Customizable templates for EPUB pages offer more control over
14363 formatting: `epub-page.html`, `epub-coverimage.html`,
14364 `epub-titlepage.html`.
14366 * `--mathml` now works with DocBook.
14368 * Added support for math in RST reader and writer. Inline math uses the
14369 `` :math:`...` `` construct. Display math uses
14373 or if the math is multiline,
14379 These constructions are now supported now by `rst2latex.py`.
14381 * Github syntax for fenced code blocks is supported in pandoc's
14382 markdown. You can now write
14394 * Easier scripting: a new `toJsonFilter` function makes it easier to
14395 write Haskell scripts to manipulate the Pandoc AST.
14396 See [Scripting with pandoc](scripting.html#pandoc-1.9-changes).
14398### Behavior changes
14400 * Fixed parsing of consecutive lists in markdown.
14401 Pandoc previously behaved like Markdown.pl for consecutive
14402 lists of different styles. Thus, the following would be parsed
14403 as a single ordered list, rather than an ordered list followed
14404 by an unordered list:
14412 This change makes pandoc behave more sensibly, parsing this as
14413 two lists. Any change in list type (ordered/unordered) or in
14414 list number style will trigger a new list. Thus, the following
14415 will also be parsed as two lists:
14423 Since we regard this as a bug in Markdown.pl, and not something
14424 anyone would ever rely on, we do not preserve the old behavior
14425 even when `--strict` is selected.
14427 * Dashes work differently with `--smart`: `---` is always em-dash,
14428 and `--` is always en-dash. Pandoc no longer tries to guess when
14429 `-` should be en-dash. *Note:* This may change how existing documents
14430 look when processed with pandoc. A new option, `--old-dashes`,
14431 is provided for legacy documents.
14433 * The markdown writer now uses setext headers for levels 1-2.
14434 The old behavior (ATX headers for all levels) can be restored
14435 using the new `--atx-headers` option.
14437 * Links are now allowed in markdown image captions. They are also
14438 allowed in links, but will appear there as regular text. So,
14440 [link with [link](/url)](/url)
14444 <p><a href="/url">link with link</a></p>
14446 * Improved handling of citations using `citeproc-hs-0.3.4`.
14447 Added `--citation-abbreviations` option.
14449 * Citation keys can no longer end with a punctuation character.
14450 This means that `@item1.` will be parsed as a citation with key
14451 'item1', followed by a period, instead of a citation with key
14452 'item1.', as was the case previously.
14454 * In HTML output, citations are now put in a span with class `citation`.
14456 * The markdown reader now recognizes DocBook block and inline tags.
14457 It was always possible to include raw DocBook tags in a markdown
14458 document, but now pandoc will be able to distinguish block from
14459 inline tags and behave accordingly. Thus, for example,
14465 will not be wrapped in `<para>` tags.
14467 * The LaTeX parser has been completely rewritten; it is now much more
14468 accurate, robust, and extensible. However, there are two important
14469 changes in how it treats unknown LaTeX. (1) Previously, unknown
14470 environments became BlockQuote elements; now, they are treated
14471 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
14472 same as `xyz`. (2) Previously, arguments of unknown commands
14473 were passed through with their braces; now the braces are stripped
14476 * `--smart` is no longer selected automatically with `man` output.
14478 * The deprecated `--xetex` option has been removed.
14480 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
14481 instead. `html5` and `html5+lhs` are now separate output formats.
14483 * Single quotes are no longer escaped in HTML output. They do not
14484 need to be escaped outside of attributes.
14486 * Pandoc will no longer transform leading newlines in code
14487 blocks to `<br/>` tags.
14489 * The ODT writer now sizes images appropriately, using the image
14490 size and DPI information embedded in the image.
14492 * `--standalone` is once again implicitly for a non-text output format
14493 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
14494 and get a standalone ODT file.
14496 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
14499 * The HTML writer now uses `<del>` for strikeout.
14501 * In HTML output with `--section-divs`, the classes `section` and
14502 `level[1,2,..6]` are put on the `div` tags so they can be styled.
14503 In HTML 5 output with `--section-divs`, the classes
14504 `level[1,2,...6]` are put on `section` tags.
14506 * EPUB writer changes:
14508 + The `lang` variable now sets the language
14509 in the metadata (if it is not set, we default to the locale).
14510 + EPUB: UTF-8 is used rather than decimal entities.
14512 * Added `titleslide` class to title slide in S5 template.
14514 * In HTML, EPUB, and docx metadata, the date is normalized into
14515 YYYY-MM-DD format if possible. (This is required for validation.)
14517 * Attributes in highlighted code blocks are now preserved in HTML.
14518 The container element will have the classes, id, and key-value attributes
14519 you specified in the delimited code block. Previously these were stripped
14522 * The reference backlink in the HTML writer no longer has a special
14523 `footnoteBacklink` class.
14525 * The HTML template has been split into `html` and `html5` templates.
14527 * Author and date are treated more consistently in HTML templates.
14528 Authors are now `<h2>`, date `<h3>`.
14530 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
14532 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
14536 * Better support for combining characters and East Asian wide characters
14537 in markdown and reST.
14539 * Better handling of single quotes with `--smart`.
14540 Previously `D'oh l'*aide*` would be parsed with left and right single
14541 quotes instead of apostrophes. This kind of error is now fixed.
14543 * Highlighting: Use `reads` instead of `read` for better error handling.
14544 Fixes crash on `startNum="abc"`.
14546 * Added blank comment after directives in rst template.
14548 * Unescape entities in citation `refId`. The `refId`s coming
14549 from citeproc contain XML numeric entities, and these don't match with the
14550 citation keys parsed by pandoc. Solution is to unescape them.
14552 * HTML reader: Fixed bug parsing tables with both thead and tbody.
14556 + Better handling of escapes in link URLs and titles.
14557 + Fixed backslash escapes in reference links.
14558 + Fixed bug in table/hrule parsing, by checking that the top
14559 line of a table is not followed by a blank line. This bug caused
14560 slowdowns on some files with hrules and tables, as pandoc tried to
14561 interpret the hrules as the tops of multiline tables.
14562 + Fixed bug in code block attribute parser. Previously the ID attribute
14563 got lost if it didn't come first. Now attributes can come in any order.
14565 * RST reader: allow footnotes followed by newline without space characters.
14569 + Ignore empty groups {}, { }.
14570 + LaTeX reader: Handle `\@`.
14571 + LaTeX reader: Don't crash on commands like `\itemsep`.
14572 + LaTeX reader: Better handling of letter environments.
14574 * RST writer: Fixed bug involving empty table cells. isSimple was being
14575 calculated in a way that assumed there were no non-empty cells.
14579 + Made `--toc` work even without `--number-sections`.
14580 + Escape # in link URLs.
14581 + Use buffering for footnotes containing code blocks.
14582 + Changed 'descr' to 'description', fixed alignment.
14586 + Escape euro character.
14587 + Don't escape `~` inside `\href{...}`.
14588 + Escape `#` in href URLs.
14589 + Improved detection of book classes. We now check the
14590 `documentclass` variable, and if that is not set, we look through
14591 the template itself. Also, we have added the KOMA classes scrreprt
14592 and scrbook. You can now make a book using
14593 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
14594 + LHS files now set the "listings" variable, so that the definition
14595 of the `code` environment will be included in the template.
14596 + Links are colored blue by default (this can be changed by
14597 modifying `hyperref` settings in the template).
14598 + Added `lang` variable to LaTeX template.
14602 + Fixed bug in HTML template with html5 and mathml.
14603 + Don't use self-closing img, br, hr tags for HTML5.
14604 + Use `<section>` for footnotes if HTML5.
14605 + Update HTML templates to use Content-Style-Type meta tag.
14606 + Use separate variables for meta-date, meta-author.
14607 This makes footnotes work in author and date fields.
14608 + Use 'vertical-align:middle' in WebTeX math for better alignment.
14610 * S5/slidy writer: Make footnotes appear on separate slide at end.
14612 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
14613 META-INF/manifest.xml for ODT files will have everything it needs, so
14614 that ODT files modified by LibreOffice can be used as `--reference-odt`.
14616 * `Text.Pandoc.Templates`: Return empty string for json template.
14618 * `Text.Pandoc.Biblio`:
14620 + Expand citations recursively inside nested inlines.
14621 + Treat `\160` as space when parsing locator and suffix.
14622 This fixes a bug with "p. 33" when `--smart` is used. Previously
14623 the whole "p. 33" would be included in the suffix, with no locator.
14624 + Put whole author-in-text citation in a Cite. Previously just the
14625 date and other info went in the Cite.
14626 + Don't add comma+space to prefix if it ends in punctuation.
14628 * Updated chicago-author-date.csl. The old version did not work
14629 properly for edited volumes with no author.
14633 + Add date to EPUB titlepage and metadata.
14634 + Added TOC identifier in EPUB page template.
14635 + Don't generate superfluous file `cover-image.jpg`.
14637### Under the hood improvements
14639 * Modified `make_osx_package.sh` to use cabal-dev.
14640 Items are no longer installed as root.
14641 Man pages are zipped and given proper permissions.
14643 * Modified windows installer generater to use cabal-dev.
14645 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
14646 Setup.hs we now invoke 'runghc' in a way that points it to the correct
14647 package databases, instead of always falling back to the default user
14650 * Updated to work with GHC 7.4.1.
14652 * Removed dependency on old-time.
14654 * Removed dependency on dlist.
14656 * New slidy directory for "self-contained."
14658 * TeXMath writer: Use unicode thin spaces for thin spaces.
14660 * Markdown citations: don't strip off initial space in locator.
14664 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
14665 from the native `Inline` type in pandoc-types. Now we use `Str`
14666 elements with unicode.
14668 * Improvements to `Text.Pandoc.Builder`:
14670 + `Inlines` and `Blocks` are now newtypes (not synonyms for
14672 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
14673 and a new `Listable` class, which allows these to be manipulated
14674 to some extent like lists. Monoid append includes automatic
14676 + `+++` has been replaced by `<>` (mappend).
14678 * Use blaze-html instead of xhtml for HTML generation.
14679 This changes the type of `writeHtml`.
14681 * `Text.Pandoc.Shared`:
14683 + Added `warn` and `err`.
14684 + Removed `unescapeURI`, modified `escapeURI`.
14685 (See under [behavior changes], above.)
14687 * Changes in URI escaping: Previously the readers escaped URIs by
14688 converting unicode characters to octets and then percent encoding.
14689 Now unicode characters are left as they are, and `escapeURI` only
14690 percent-encodes space characters. This gives more readable
14691 URIs, and works well with modern user agents. URIs are no longer unescaped
14692 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
14694 * New module `Text.Pandoc.SelfContained`.
14696 * New module `Text.Pandoc.Docx`.
14698 * New module `Text.Pandoc.PDF`.
14700 * Added `writerBeamer` to `WriterOptions`.
14702 * Added `normalizeDate` to `Text.Pandoc.Shared`.
14704 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
14705 This is like `splitWithIndices`, but it is sensitive to distinctions
14706 between wide, combining, and regular characters.
14708 * `Text.Pandoc.Pretty`:
14710 + Added `chomp` combinator.
14711 + Added `beforeNonBreak` combinator. This allows you to include
14712 something conditionally on it being before a nonblank.
14713 Used for RST inline math.
14714 + Added `charWidth` function. All characters marked W or F in the unicode
14715 spec EastAsianWidth.txt get width 2.
14716 + Added `realLength`, based on `charWidth`. `realLength` is now
14717 used in calculating offsets.
14719 * New module `Text.Pandoc.Slides`, for common functions for breaking
14720 a document into slides.
14722 * Removed `Text.Pandoc.S5`, which is no longer needed.
14724 * Removed `Text.Pandoc.CharacterReferences`. Moved
14725 `characterReference` to `Text.Pandoc.Parsing`.
14726 `decodeCharacterReferences` is replaced by `fromEntities`
14727 in `Text.Pandoc.XML`.
14729 * Added `Text.Pandoc.ImageSize`. This is intened for use
14730 in `docx` and `odt` writers, so the size and dpi of images
14733 * Removed `writerAscii` in `WriterOptions`.
14735 * Added `writerHighlight` to `WriterOptions`.
14737 * Added `DZSlides` to `HTMLSlideVariant`.
14739 * `writeEPUB` has a new argument for font files to embed.
14741 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
14742 of whether we're parsing the position immediately after a regular
14743 (non-space, non-symbol) string, which is useful for distinguishing
14744 apostrophes from single quote starts.
14746 * `Text.Pandoc.Parsing`:
14748 + `escaped` now returns a `Char`.
14749 + Removed `charsInBalanced'`, added a character parser as
14750 a parameter of `charsInBalanced`. This is needed for
14751 proper handling of escapes, etc.
14754 * Added `toEntities` to `Text.Pandoc.XML`.
14756 * `Text.Pandoc.Readers.LaTeX`:
14758 + Export `handleIncludes`.
14759 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
14761 * Added `ToJsonFilter` class and `toJsonFilter` function to
14762 `Text.Pandoc`, deprecating the old `jsonFilter` function.
14764 * `Text.Pandoc.Highlighting`:
14766 + Removed `highlightHtml`, `defaultHighlightingCss`.
14767 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
14768 key functions from highlighting-kate.
14769 + Changed types of highlighting function. `highlight` returns a
14770 `Maybe`, not an `Either`.
14773## pandoc 1.8.2.1 (2011-08-01)
14775 * Adjusted Arbitrary instance to help avoid timeouts in tests.
14777 * Added `Tests.Writers.Markdown` to cabal file.
14779 * Relaxed version bounds on pandoc-types, test-framework.
14781## pandoc 1.8.2 (2011-07-30)
14783 * Added script to produce OS X package.
14785 * Made `templates` directory a git submodule. This should make it
14786 easier for people to revise their custom templates when the default
14789 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
14790 **Note:** If you have existing templates in `~/.pandoc/templates`, you
14791 must rename them to conform to the new scheme!
14793 * Default template improvements:
14795 + HTML: Display author and date after title.
14796 + HTML: Made table of contents more customizable. The container
14797 for the TOC is now in the template, so users can insert a header
14798 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
14799 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
14800 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
14801 hard-coding. If you want to put your slidy files in the slidy
14802 subdirectory, for example, you can do
14803 `pandoc -t slidy -V slidy-url=slidy -s`.
14804 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
14805 & writer). Closes #279.
14806 + LaTeX: Set `\emergencystretch` to prevent overfull lines.
14807 + LaTeX: Use different `hyperref` options for `xetex`, fixing
14808 problems with unicode bookmarks (thanks to CircleCode).
14809 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
14810 with `inputenc`. This covers fewer characters but is more
14811 robust with other packages, and `ucs` is unmaintained. Users
14812 who need better unicode support should use xelatex or lualatex.
14814 * If a template specified with `--template` is not found, look for it
14815 in `datadir`. Also, if no extension is provided, supply one based
14816 on the writer. So now you can put your `special.latex` template in
14817 `~/.pandoc/templates`, and use it from any directory via
14818 `pandoc -t latex --template special`.
14820 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
14822 * Fixed smart quotes bug, now handling `'...hi'` properly.
14826 + Partial support for labeled footnotes.
14827 + Improved accuracy of `simpleReferenceName` parser.
14831 + Substitute correct unicode characters for
14832 characters in the 128..159 range, which are often found even in
14833 HTML that purports to be UTF-8.
14835 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
14836 to the title, after a colon and linebreak). Closes #280.
14838 * Leaner `reference.odt`.
14840 * Added unexported module `Text.Pandoc.MIME` for use in
14843 * ODT writer: Construct `manifest.xml` based on archive contents.
14844 This fixes a bug in ODTs containing images. Recent versions of
14845 LibreOffice would reject these as corrupt, because `manifest.xml`
14846 did not contain a reference to the image files.
14850 + Make verbatim environments flush to avoid spurious
14851 blank lines. Closes #277.
14852 + Use `\texttt` and escapes insntead of `\verb!...!`, which
14853 is too fragile (doesn't work in command arguments).
14854 + Use `\enquote{}` for quotes if the template includes
14855 the `csquotes` package. This provides better support for
14856 local quoting styles. (Thanks to Andreas Wagner for the idea.)
14858 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
14859 margin, preventing spurious blank lines.
14863 + Use non-minimized version of `slidy.css` with `--offline`
14864 option, so users can more easily edit it.
14865 + Also fixed a bug in the CSS that prevented proper centering
14866 of title (now reported and fixed upstream).
14870 + Replaced `s5/default/slides.js.{comment,packed}` with
14871 new compressed `s5/default/slides.min.js`.
14872 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
14873 when `--offline` is specified. Using inline CSS didn't
14874 work with Chrome or Safari. This fixes offline
14875 S5 on those browsers.
14877 * HTML writer: Removed English title on footnote backlinks.
14878 This is incongrous in non-English documents.
14882 + Use CALS tables. (Some older docbook software does not work
14883 well with XHTML tables.) Closes #77.
14884 + Use `programlisting` tags (instead of `screen`) for code blocks.
14888 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
14889 of `-interaction=batchmode`, which essentially just ignored errors,
14890 leading to bad results. Better to know when something is wrong.
14891 + Fixed issues with non-UTF-8 output of `pdflatex`.
14892 + Better error reporting.
14894 * `--mathjax` now takes an optional URL argument. If it is not
14895 provided, pandoc links directly to the (secure) mathjax CDN,
14896 as now recommended (thanks to dsanson).
14898 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
14899 since the LaTeX writer now produces a file that can be processed by
14900 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
14902 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
14903 to be used to create the PDF.
14906## pandoc 1.8.1.2 (2011-07-16)
14908 * Added `--epub-cover-image` option.
14910 * Documented `--biblatex` and `--natbib` options.
14912 * Allow `--section-divs` with slidy output. Resolves Issue #296.
14914 * Disallow notes within notes in reST and markdown.
14915 These previously caused infinite looping and stack overflows.
14922 Note references are allowed in reST notes, so this isn't a full
14923 implementation of reST. That can come later. For now we need to
14924 prevent the stack overflows. Partially resolves Issue #297.
14926 * EPUB writer: Allow non-plain math methods.
14928 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
14929 `(@item1; @item2)` because the final paren was being parsed as part of
14932 * Changed URI parser so it doesn't include trailing punctuation.
14933 So, in RST, `http://google.com.` should be parsed as a link followed by a
14934 period. The parser is smart enough to recognize balanced parentheses, as
14935 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
14937 * Markdown+lhs reader: Require space after inverse bird tracks, so that
14938 HTML tags can be used freely at the left margin of a markdown+lhs document.
14939 Thanks to Conal Elliot for the suggestion.
14941 * Markdown reader: Fixed bug in footnote order (reported by CircleCode).
14944 + Fixed bug in in field lists with multi-line items at the
14946 + Added parentheses to RST `specialChars`, so
14947 `(http://google.com)` will be parsed as a link in parens.
14948 Resolves Issue #291.
14949 + Allow `|` followed by newline in RST line block.
14953 + Gobble option & space after linebreak `\\[10pt]`.
14956 + Make it possible to have colons after links. (qerub)
14957 + Make it possible to have colons after links. (Christoffer Sawicki)
14960 + Skip spaces after `<b>`, `<emph>`, etc.
14961 + Handle tbody, thead in simple tables. Closes #274.
14962 + Implicit `Para`s instead of `Plains` in some contexts.
14964 * OpenDocument writer: Use special `First paragraph` style for
14965 first paragraph after most non-paragraph blocks. This allows users to
14966 specify e.g. that only paragraphs after the first paragraph of a block are
14967 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
14969 * LaTeX writer: use `deVerb` on table and picture captions.
14970 Otherwise LaTeX complains about `\verb` inside command argument.
14971 Thanks to bbanier for reporting the bug.
14973 * Markdown writer: Insert HTML comment btw list and indented code block.
14974 This prevents the code block from being interpreted as part of the list.
14976 * EPUB writer: Add a meta element specify the cover.
14977 Some EPUB e-readers, such as the Nook, require a meta element inside the
14978 OPF metadata block to ensure the cover image is properly displayed.
14981 * HTML writer: Use embed tag for images with non-image extensions.
14982 (e.g. PDFs). Closes #264.
14984 * LaTeX writer: Improved tables.
14986 + More space between lines, top-align cells.
14987 + Use ctable package, which allows footnotes and
14988 provides additional options.
14989 + Made cell alignments work in multiline tables.
14990 + Closes #271, #272.
14992 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
14993 Also do this when copying image files into EPUBs and ODTs.
14996 * Changed to github issue tracker.
14998 * Added failing emph/strong markdown test case due to Perry Wagle.
15000 * Slidy improvements:
15001 + Updated to use Slidy2.
15002 + Fixed bug, unclosed div tag.
15003 + Added `duration` variable in template.
15004 Setting this activates the timer.
15005 + Use 'titlepage' instead of 'cover' for title div.
15008## pandoc 1.8.1.1 (2011-02-13)
15010 * `markdown2pdf`: Removed some debugging lines accidentally included
15011 in the 1.8.1 release. With those lines, the temp directory is created
15012 in the working directory, and it is not deleted. This fix restores
15013 the original behavior.
15015## pandoc 1.8.1 (2011-02-13)
15017 * Added `--ascii` option. Currently supported only in HTML writer,
15018 which it causes to use numerical entities instead of UTF-8.
15020 * EPUB writer: `--toc` now works to provide a table of contents
15021 at the beginning of each chapter.
15023 * LaTeX writer: Change figure defaults to `htbp`.
15024 This prevents "too many unprocessed floats." Resolves
15027 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
15030 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
15031 Tanimoto. Resolves Issue #286.
15033 * HTML writer: Put line breaks in section divs.
15035 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
15037## pandoc 1.8.0.3 (2011-02-05)
15039 * Fixed Source-repository stanza in cabal file.
15041## pandoc 1.8.0.2 (2011-02-05)
15045 + Stringify alt text instead of converting to HTML.
15046 + Break lines after block elements, not inside tags.
15047 HTML output now closely resembles that of tidy. Resolves Issue #134.
15049 * Markdown reader: Fixed bug in footnote block parser (pointed out
15050 by Jesse Rosenthal). The problem arose when the blank line
15051 at the end of a footnote block contained indenting spaces.
15053 * Shared: Improved 'normalize' function so it normalizes Spaces too.
15054 In normal form, Space elements only occur to separate two non-Space
15055 elements. So, we never have [Space], or [, ..., Space].
15059 + Improved Arbitrary instance.
15060 + Added timeout for test instances.
15064 + Added section on four-space rule for lists. Resolves Issue #283.
15065 + Clarified optional arguments on math options.
15067 * markdown2pdf: Fixed bug with output file extensions.
15068 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
15069 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
15071## pandoc 1.8.0.1 (2011-01-31)
15073 * Revised Interact.hs so that it works with the CPP macros
15074 in the UTF8 module.
15076 * Revised Setup.hs so that we don't call MakeManPage.hs unless
15077 the man pages are out of date.
15079## pandoc 1.8 (2011-01-30)
15083 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
15084 You can now write, for example,
15086 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
15088 and, when you process your document using `pandoc`, specifying
15089 a citation style using `--csl` and a bibliography using `--bibliography`,
15090 the citation will be replaced by an appropriately formatted
15091 citation, and a list of works cited will be added to the end
15094 This means that you can switch effortlessly between different citation
15095 and bibliography styles, including footnote, numerical, and author-date
15096 formats. The bibliography can be in any of the following formats: MODS,
15097 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
15098 See the README for further details.
15100 Citations are supported in the markdown reader, using a special
15101 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
15102 (Thanks to Nathan Gass for the natbib and biblatex support.)
15104 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
15105 the `textile` reader, an almost complete implementation of the textile
15106 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
15107 Resolves Issue #51.
15109 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
15111 * New `json` reader and writer, for reading and writing a JSON
15112 representation of the native Pandoc AST. These are much faster
15113 than the `native` reader and writer, and should be used for
15114 serializing Pandoc to text. To convert between the JSON representation
15115 and native Pandoc, use `encodeJSON` and `decodeJSON` from
15116 `Text.JSON.Generic`.
15118 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
15119 to write scripts that transform a JSON-encoded pandoc document.
15122 -- removelinks.hs - removes links from document
15124 main = interact $ jsonFilter $ bottomUp removeLink
15125 where removeLink (Link xs _) = Emph xs
15128 To use this to remove links while translating markdown to LaTeX:
15130 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
15132 * Attributes are now allowed in inline `Code` elements, for example:
15134 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
15136 The attribute syntax is the same as for delimited code blocks.
15137 `Code` inline has an extra argument place for attributes, just like
15138 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
15139 is compiled with highlighting support. Resolves Issue #119.
15141 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
15142 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
15143 scripts to transform Pandoc documents. Scripts can now change
15144 how each element is rendered in each output format.
15146 * You can now define LaTeX macros in markdown documents, and pandoc
15147 will apply them to TeX math. For example,
15149 \newcommand{\plus}[2]{#1 + #2}
15152 yields `3+4`. Since the macros are applied in the reader, they
15153 will work in every output format, not just LaTeX.
15155 * LaTeX macros can also be used in LaTeX documents (both in math
15156 and in non-math contexts).
15158 * A new `--mathjax` option has been added for displaying
15159 math in HTML using MathJax. Resolves issue #259.
15161 * Footnotes are now supported in the RST reader. (Note, however,
15162 that unlike docutils, pandoc ignores the numeral or symbol used in
15163 the note; footnotes are put in an auto-numbered ordered list.)
15164 Resolves Issue #258.
15166 * A new `--normalize` option causes pandoc to normalize the AST
15167 before writing the document. This means that, for example,
15168 `*hi**there*` will be rendered as `<em>hithere</em>`
15169 instead of `<em>hi</em><em>there</em>`. This is not the default,
15170 because there is a significant performance penalty.
15172 * A new `--chapters` command-line option causes headers
15173 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
15174 Resolves Issue #265.
15176 * In DocBook output, `<chapter>` is now used for top-level
15177 headers if the template contains `<book>`. Resolves Issue #265.
15179 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
15180 the LaTeX writer to use the listings package for code blocks.
15181 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
15182 Millon for the markdown2pdf patch.)
15184 * `markdown2pdf` now supports `--data-dir`.
15186 * URLs in autolinks now have class "url" so they can be styled.
15188 * Improved prettyprinting in most formats. Lines will be wrapped
15189 more evenly and duplicate blank lines avoided.
15191 * New `--columns` command-line option sets the column width for
15192 line wrapping and relative width calculations for tables.
15194 * Made `--smart` work in HTML, RST, and Textile readers, as well
15197 * Added `--html5` option for HTML5 output.
15199 * Added support for listings package in LaTeX reader
15200 (Puneeth Chaganti).
15202 * Added support for simple tables in the LaTeX reader.
15204 * Added support for simple tables in the HTML reader.
15206 * Significant performance improvements in many readers and writers.
15208### API and program changes
15210 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
15211 auxiliary package, `pandoc-types`. This will make it possible for other
15212 programs to supply output in Pandoc format, without depending on the whole
15215 * Added `Attr` field to `Code`.
15217 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
15218 `RawBlock` and `RawInline`.
15220 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
15221 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
15222 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
15224 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
15226 * `Text.Pandoc` now exports association lists `readers` and `writers`.
15228 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
15229 `readNative` can now read full pandoc documents, block lists, blocks,
15230 inline lists, or inlines. It will interpret `Str "hi"`
15231 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
15232 This should make testing easier.
15234 * Removed deprecated `-C/--custom-header` option.
15235 Use `--template` instead.
15237 * `--biblio-file` has been replaced by `--bibliography`.
15238 `--biblio-format` has been removed; pandoc now guesses the format
15239 from the file extension (see README).
15241 * pandoc will treat an argument as a URI only if it has an
15242 `http(s)` scheme. Previously pandoc would treat some
15243 Windows pathnames beginning with `C:/` as URIs.
15245 * The `--sanitize-html` option and the `stateSanitize` field in
15246 `ParserState` have been removed. Sanitization is better done in the
15247 resulting HTML using `xss-sanitize`, which is based on pandoc's
15248 sanitization, but improved.
15250 * pandoc now adds a newline to the end of its output in fragment
15251 mode (= not `--standalone`).
15253 * Added support for `lang` in `html` tag in the HTML template,
15254 so you can do `pandoc -s -V lang=es`, for example.
15256 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
15257 a boolean argument that selects between "inline" and
15260 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
15261 Images are embedded in RTF output when possible (png, jpeg).
15262 Resolves Issue #275.
15264 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
15265 `pretty` package. Changed all writers that used
15266 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
15268 * Rewrote `writeNative` using the new prettyprinting module. It is
15269 now much faster. The output has been made more consistent and compressed.
15270 `writeNative` is also now sensitive to writerStandalone`, and will simply
15271 `print a block list if writerStandalone` is False.
15273 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
15274 blocks and concatenate them, so a separate module is no longer needed.
15276 * `Text.Pandoc.Shared`:
15278 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
15280 + Added `normalize`.
15281 + Removed unneeded prettyprinting functions:
15282 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
15283 `BlockWrapper`, `wrappedBlocksToDoc`.
15284 + Made `splitBy` take a test instead of an element.
15285 + Added `findDataFile`, refactored `readDataFile`.
15286 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
15287 + Fixed `inlineListToIdentifier` to treat `\160` as ' '.
15289 * `Text.Pandoc.Readers.HTML`:
15291 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
15292 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
15293 `htmlBlockElement`, `htmlComment`
15294 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
15297 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
15298 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
15301 * Ellipses are no longer allowed to contain spaces.
15302 Previously we allowed '. . .', ' . . . ', etc. This caused
15303 too many complications, and removed author's flexibility in
15304 combining ellipses with spaces and periods.
15306 * Allow linebreaks in URLs (treat as spaces). Also, a string of
15307 consecutive spaces or tabs is now parsed as a single space. If you have
15308 multiple spaces in your URL, use `%20%20`.
15310 * `Text.Pandoc.Parsing`:
15312 + Removed `refsMatch`.
15313 + Hid `Key` constructor.
15314 + Removed custom `Ord` and `Eq` instances for `Key`.
15315 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
15316 + Generalized type on `readWith`.
15318 * Small change in calculation of relative widths of table columns.
15319 If the size of the header > the specified column width, use
15320 the header size as 100% for purposes of calculating
15321 relative widths of columns.
15323 * Markdown writer now uses some pandoc-specific features when `--strict`
15324 is not specified: `\` newline is used for a hard linebreak instead of
15325 two spaces then a newline. And delimited code blocks are used when
15326 there are attributes.
15328 * HTML writer: improved gladTeX output by setting ENV appropriately
15329 for display or inline math (Jonathan Daugherty).
15331 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
15335 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
15336 + `\index{}` commands are skipped.
15338 * Added `fontsize` variable to default LaTeX template.
15339 This makes it easy to set the font size using `markdown2pdf`:
15340 `markdown2pdf -V fontsize=12pt input.txt`.
15342 * Fixed problem with strikeout in LaTeX headers when using
15343 hyperref, by adding a command to the default LaTeX template
15344 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
15347 * The `COLUMNS` environment variable no longer has any effect.
15349### Under-the-hood improvements
15351 * Pandoc now compiles with GHC 7. (This alone leads to a
15352 significant performance improvement, 15-20%.)
15354 * Completely rewrote HTML reader using tagsoup as a lexer. The
15355 new reader is faster and more accurate. Unlike the
15356 old reader, it does not get bogged down on some input
15357 (Issues #277, 255). And it handles namespaces in tags
15360 * Replaced `escapeStringAsXML` with a faster version.
15362 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
15363 for a significant performance boost.
15365 * Improved performance of all readers by rewriting parsers.
15367 * Simplified Text.Pandoc.CharacterReferences by using
15368 entity lookup functions from TagSoup.
15370 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
15371 from `System.IO` if base >= 4.2. This gives support for
15372 windows line endings on windows.
15374 * Remove duplications in documentation by generating the
15375 pandoc man page from README, using `MakeManPage.hs`.
15377 * README now includes a full description of markdown syntax,
15378 including non-pandoc-specific parts. A new `pandoc_markdown`
15379 man page is extracted from this, so you can look up markdown
15380 syntax by doing `man pandoc_markdown`.
15382 * Completely revised test framework (with help from Nathan Gass).
15383 The new test framework is built when the `tests` Cabal flag is set. It
15384 includes the old integration tests, but also some new unit and quickcheck
15385 tests. Test output has been much improved, and you can now specify a glob
15386 pattern after `cabal test` to indicate which tests should be run;
15387 for example `cabal test citations` will run all the citation tests.
15389 * Added a shell script, `stripansi.sh`, for filtering ANSI control
15390 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
15392 * Added `Interact.hs` to make it easier to use ghci while developing.
15393 `Interact.hs` loads `ghci` from the `src` directory, specifying
15394 all the options needed to load pandoc modules (including
15395 specific package dependencies, which it gets by parsing
15396 dist/setup-config).
15398 * Added `Benchmark.hs`, testing all readers + writers using criterion.
15400 * Added `stats.sh`, to make it easier to collect and archive
15401 benchmark and lines-of-code stats.
15403 * Added upper bounds to all cabal dependencies.
15405 * Include man pages in extra-source-files. This allows users to
15406 install pandoc from the tarball without needing to build the man
15411 * Filenames are encoded as UTF8. Resolves Issue #252.
15413 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
15414 were just parsed literally, leading to problems in some output formats.
15415 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
15416 Resolves Issue #270.
15418 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
15419 Spaces at end of line were not being stripped properly,
15420 resulting in unintended LineBreaks.
15424 + Allow HTML comments as inline elements in markdown.
15425 So, `aaa <!-- comment --> bbb` can be a single paragraph.
15426 + Fixed superscripts with links: `^[link](/foo)^` gets
15427 recognized as a superscripted link, not an inline note followed by
15429 + Fixed regression, making markdown reference keys case-insensitive again.
15430 Resolves Issue #272.
15431 + Properly handle abbreviations (like `Mr.`) at the end of a line.
15432 + Better handling of intraword underscores, avoiding exponential
15433 slowdowns in some cases. Resolves Issue #182.
15434 + Fixed bug in alignments in tables with blank rows in the header.
15438 + Field lists now allow spaces in field names, and
15439 block content in field values. (Thanks to Lachlan Musicman
15440 for pointing out the bug.)
15441 + Definition list items are now always `Para` instead of
15442 `Plain`, matching behavior of `rst2xml.py`.
15443 + In image blocks, the description is parsed properly and
15444 used for the alt attribute, not also the title.
15445 + Skip blank lines at beginning of file. Resolves
15450 + Improved parsing of preamble.
15451 Previously you'd get unexpected behavior on a document that
15452 contained `\begin{document}` in, say, a verbatim block.
15453 + Allow spaces between `\begin` or `\end` and `{`.
15454 + Support `\L` and `\l`.
15455 + Skip comments inside paragraphs.
15459 + Escape strings in `\href{..}`.
15460 + In nonsimple tables, put cells in `\parbox`.
15462 * OpenDocument writer: don't print raw TeX.
15466 + Fixed bug in `Image`. URI was getting unescaped twice!
15467 + Avoid printing extra blank lines at the end if there are
15468 no notes or references.
15470 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
15471 This avoids unwanted interpretation as an optional argument.
15473 * ConTeXt writer: Fixed problem with inline code. Previously
15474 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
15475 If it contains neither, use `\type{}`; otherwise use `\mono{}`
15476 with an escaped version of the string.
15478 * `:` now allowed in HTML tags. Resolves Issue #274.
15482## pandoc 1.6 (2010-07-24)
15484+ New EPUB and HTML Slidy writers. (Issue #122)
15486 - [EPUB] is a standard ebook format, used in Apple's iBooks for
15487 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
15488 reader, and many other devices, and by online ebook readers like
15489 [bookworm]. (Amazon's Kindle uses a different format, MobiPocket,
15490 but EPUB books can easily be converted to Kindle format.) Now you
15491 can write your book in markdown and produce an ebook with a single
15492 command! I've put up a short [tutorial here].
15493 - [Slidy], like S5, is a system for producing HTML+javascript slide shows.
15495+ All input is assumed to be UTF-8, no matter what the locale and ghc
15496 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
15497 Also, a BOM, if present, is stripped from the input.
15499+ Markdown now supports grid tables, whose cells can contain
15500 arbitrary block elements. (Issue #43)
15502+ Sequentially numbered example lists in markdown with `@` marker.
15504+ Markdown table captions can begin with a bare colon and no longer need
15505 to include the English word "table." Also, a caption can now occur
15506 either before or after the table. (Issue #227)
15508+ New command-line options:
15510 - `--epub-stylesheet` allows you to specify a CSS file that will
15511 be used to style your ebook.
15512 - `--epub-metadata` allows you to specify metadata for the ebook.
15513 - `--offline` causes the generated HTML slideshow to include all
15514 needed scripts and stylesheets.
15515 - `--webtex` causes TeX math to be converted to images using the
15516 Google Charts API (unless a different URL is specified).
15517 - `--section-divs` causes div tags to be added around each section
15518 in an HTML document. (Issue #230, 239)
15520+ Default behavior of S5 writer in standalone mode has changed:
15521 previously, it would include all needed scripts and stylesheets
15522 in the generated HTML; now, only links are included unless
15523 the `--offline` option is used.
15525+ Default behavior of HTML writer has changed. Between 1.2 and 1.5,
15526 pandoc would enclose sections in div tags with identifiers on the
15527 div tags, so that the sections can be manipulated in javascript.
15528 This caused undesirable interactions with raw HTML div tags. So,
15529 starting with 1.6, the default is to put the identifiers directly
15530 on the header tags, and not to include the divs. The `--section-divs`
15531 option selects the 1.2-1.5 behavior.
15535 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
15536 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
15537 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
15538 `writerIncludeAfter`.
15539 - Added `headerShift` to `Text.Pandoc.Shared`.
15540 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
15541 to a new module, `Text.Pandoc.Parsing`.
15542 - Added `stateHasChapters` to `ParserState`.
15543 - Added `HTMLSlideVariant`.
15544 - Made `KeyTable` a map instead of an association list.
15545 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`, `docDate`).
15546 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord` instances.
15547 - Reference keys now have a type of their own (`Key`), with its
15548 own `Ord` instance for case-insensitive comparison.
15549 - Added `Text.Pandoc.Writers.EPUB`.
15550 - Added `Text.Pandoc.UUID`.
15551 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
15552 Removed `saveOpenDocumentAsODT`, added `writeODT`.
15553 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
15554 Removed `prettyPandoc`.
15555 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
15556 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
15557 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
15558 To write S5, you now use `writeHtml` with `writerSlideVariant`
15559 set to `S5Slides` or `SlidySlides`.
15561+ Template changes. If you use custom templates, please update them,
15562 particularly if you use syntax highlighting with pandoc. The old HTML
15563 templates hardcoded highlighting CSS that will no longer work with
15564 the most recent version of highlighting-kate.
15566 - HTML template: avoid empty meta tag if no date.
15567 - HTML template: Use default highlighting CSS from highlighting-kate
15568 instead of hard-coding the CSS into the template.
15569 - HTML template: insert-before text goes before the title, and
15570 immediately after the `<body>` tag, as documented. (Issue #241)
15571 - Added slidy and s5 templates.
15572 - Added amssymb to preamble of latex template. (github Issue 1)
15574+ Removed excess newlines at the end of output. Note: because output
15575 will not contain an extra newline, you may need to make adjustments
15576 if you are inserting pandoc's output into a template.
15578+ In S5 and slidy, horizontal rules now cause a new slide, so you
15579 are no longer limited to one slide per section.
15581+ Improved handling of code in man writer. Inline code is now monospace,
15582 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
15584+ HTML reader parses `<tt>` as Code. (Issue #247)
15586+ html+lhs output now contains bird tracks, even when compiled without
15587 highlighting support. (Issue #242)
15589+ Colons are now no longer allowed in autogenerated XML/HTML identifiers,
15590 since they have a special meaning in XML.
15592+ Code improvements in ODT writer. Remote images are now replaced with
15593 their alt text rather than a broken link.
15595+ LaTeX reader improvements:
15597 - Made latex `\section`, `\chapter` parsers more forgiving of whitespace.
15598 - Parse `\chapter{}` in latex.
15599 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
15600 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
15601 for use in markdown reader.
15602 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
15603 in markdown document.
15605+ LaTeX writer: images are automatically shrunk if they would extend
15606 beyond the page margin.
15608+ Plain, markdown, RST writers now use unicode for smart punctuation.
15610+ Man writer converts math to unicode when possible, as in other writers.
15612+ `markdown2pdf` can now recognize citeproc options.
15614+ Command-line arguments are converted to UTF-8. (Issue #234)
15616+ `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
15617 This allows it to handle a wider range of formulas. Also, if a formula
15618 cannot be converted, it is left in raw TeX; formulas are no longer
15619 partially converted.
15621+ Unicode curly quotes are left alone when parsing smart quotes. (Issue #143)
15623+ Cabal file changes:
15625 - Removed parsec < 3 restriction.
15626 - Added 'threaded' flag for architectures where GHC lacks a threaded
15628 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
15629 - Require highlighting-kate 0.2.7.
15631+ Use explicit imports from `Data.Generics`. Otherwise we have a
15632 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
15634+ New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
15636[EPUB]: http://en.wikipedia.org/wiki/EPUB
15637[Slidy]: http://www.w3.org/Talks/Tools/Slidy
15638[bookworm]: http://bookworm.oreilly.com/
15639[tutorial here]: http://johnmacfarlane.net/pandoc/epub.html
15641## pandoc 1.5.1.1 (2010-03-29)
15643+ Fixed header identifiers (uniqueIdent in Shared) so they
15644 work as advertized in README and are guaranteed to be
15645 valid XHTML names. Thanks to Xyne for reporting the bug.
15647## pandoc 1.5.1 (2010-03-23)
15649+ Fixed treatment of unicode characters in URIs.
15650+ Revised Setup.hs so it works with debian's build process.
15651+ Fixed bug in OpenDocument writer that led to invalid
15652 XML for some input.
15654## pandoc 1.5.0.1 (2010-03-21)
15656+ HTML writer: Fixed error in math writer (with MathML option)
15657 that caused an infinite loop for unparsable MathML.
15659## pandoc 1.5 (2010-03-20)
15661+ Moved repository to [github](http://github.com/jgm/pandoc).
15662+ New `--mathml` option, for display of TeX math as MathML.
15663+ New `--data-dir` option, allowing users to specify a data
15664 directory other than `~/.pandoc`. Files placed in this directory
15665 will be used instead of system defaults.
15666+ New `--base-header-level` option. For example, `--base-header-level=2`
15667 changes level 1 headers to level 2, level 2 to level 3, etc.
15668+ New 'plain' output format: plain text without pictures, hyperlinks,
15669 inline formatting, or anything else that looks even vaguely
15671+ Titles and authors in title blocks can now span multiple lines,
15672 as long as the continuation lines begin with a space character.
15673+ When given an absolute URI as a parameter, pandoc will fetch
15674 the content via HTTP.
15675+ The HTML reader has been made much more forgiving. It no
15676 longer requires well-formed xhtml as input.
15677+ `html2markdown` has been removed; it is no longer necessary, given
15678 the last two changes. `pandoc` can be used by itself to convert
15679 web pages to markdown or other formats.
15680+ `hsmarkdown` has also been removed. Use `pandoc --strict` instead.
15681 Or symlink pandoc's executable to `hsmarkdown`; `pandoc` will then
15682 behave like `hsmarkdown` used to.
15683+ An image in a paragraph by itself is now rendered as a figure
15684 in most writers, with the alt text as the caption.
15685+ Incomplete support for reST tables (simple and grid). Thanks to
15686 Eric Kow. Colspans and rowspans not yet supported.
15687+ In mediawiki, links with relative URLs are now formatted as wikilinks.
15688 Also, headers have been promoted: `= head =` is now level 1 instead of
15690+ The markdown reader now handles "inverse bird tracks" when parsing
15691 literate haskell. These are used for haskell example code that
15692 is not part of the literate program.
15693+ The `-B` and `-A` options now imply `-s` and no longer work in
15695+ Headerless tables are now printed properly in all writers.
15696 In addition, tbody, thead, and cols are used in HTML and Docbook
15698+ Improved build system; removed obsolete Makefile.
15699+ In LaTeX writer, `\chapter` is now used instead of `\section`.
15700 when the documentclass is book, report, or memoir.
15701+ Many small bug fixes. See [changelog] for details.
15703## pandoc 1.4 (2010-01-02)
15705+ New template system replaces old headers, giving users much
15706 more control over pandoc's output in `--standalone` mode.
15707 Added `--template` and `--variable` options. The `--print-default-header`
15708 option is now `--print-default-template`. See README under
15709 "Templates" for details.
15710+ The old `--custom-header` option should still work, but it has
15712+ New `--reference-odt` option allows users to customize styles
15714+ Users may now put custom templates, s5 styles, and a reference
15715 ODT in the `~/.pandoc` directory, where they will override system
15716 defaults. See README for details.
15717+ Unicode is now used whenever possible in HTML and XML output. Entities
15718 are used only where necessary (`>`, `<`, `"`, `&`).
15719+ Authors and dates may now include formatting and notes.
15720+ Added `--xetex` option for `pandoc` and `markdown2pdf`.
15721+ Windows installer now includes highlighting support and
15722 `markdown2pdf` and `hsmarkdown` wrappers.
15723+ Pandoc no longer requires Template Haskell, which should make
15725+ Pandoc can now be built on GHC 6.12, as well as earlier versions.
15726+ See README for other small improvements and bug fixes.
15728## pandoc 1.3 (2009-12-10)
15730+ Added `--id-prefix` option to help prevent duplicate
15731 identifiers when you're generating HTML fragments.
15732+ Added `--indented-code-classes` option, which specifies
15733 default highlighting syntax for indented code blocks.
15734+ `--number-sections` now affects HTML output.
15735+ Improved syntax for markdown definition lists.
15736+ Better looking simple tables.
15737+ Markdown tables without headers are now possible.
15738+ New hard line break syntax: backslash followed by newline.
15739+ Improved performance of markdown reader by ~10% by eliminating the
15740 need for a separate parsing pass for notes.
15741+ Improved syntax highlighting for literate Haskell.
15742+ Support for "..code-block" directive in RST reader.
15743+ Windows binary now includes highlighting support.
15744+ Many bug fixes and small improvements. See [changelog]
15747## pandoc 1.2.1 (2009-07-18)
15749+ Improved the efficiency of the markdown reader's
15750 abbreviation parsing (should give a big performance
15751 boost with `--smart`).
15752+ HTML writer now wraps sections in divs with unique
15753 identifiers, for easier manipulation.
15754+ Improved LaTeX reader's coverage of math modes.
15755+ Added a portable Haskell version of markdown2pdf (thanks
15756 to Paolo Tanimoto).
15757+ Made `--strict` compatible with `--standalone` and `--toc.`
15758+ Many other small improvements and bug fixes.
15759 See [changelog] for details.
15761## pandoc 1.2 (2009-03-01)
15763+ Added support for literate Haskell. lhs support is triggered by
15764 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
15765 Haskell LaTeX. '.lhs' files are treated by default as literate
15767+ Added `--email-obfuscation` option.
15768+ Brought citeproc support up to date for citeproc-hs-0.2.
15769+ Many bugs fixed. See [changelog] for details.
15771## pandoc 1.1 (2008-11-06)
15773+ New `--jsmath` option supporting use of pandoc with [jsMath].
15774+ Classes on HTML table output for better CSS styling.
15775+ Windows installer no longer requires admin privileges.
15776+ Many bugs fixed. See [changelog] for details.
15778## pandoc 1.0 (2008-09-13)
15780+ New writers for MediaWiki, GNU Texinfo (thanks to Peter Wang),
15781 OpenDocument XML (thanks to Andrea Rossato), and ODT (OpenOffice
15783+ New [delimited code blocks](README.html#delimited-code-blocks),
15784 with optional syntax highlighting.
15785+ Reorganized build system: pandoc can now be built using standard
15786 Cabal tools. It can be compiled on Windows without Cygwin.
15787 The tests can also be run without perl or unix tools.
15788+ LaTeXMathML replaces ASCIIMathML for rendering math in HTML.
15789+ Support for "displayed" math.
15790+ Common abbreviations are now handled more intelligently, with
15791 a non-breaking space (and not a sentence-ending space) after
15793+ Code is -Wall clean.
15794+ Many bug fixes and small improvements. See [changelog] for
15797## pandoc 0.46 (2008-01-08)
15799+ Added a `--sanitize-html` option (and a corresponding parameter
15800 in `ParserState` for those using the pandoc libraries in programs).
15801 This option causes pandoc to sanitize HTML (in HTML or Markdown
15802 input) using a whitelist method. Possibly harmful HTML elements
15803 are replaced with HTML comments. This should be useful in the
15804 context of web applications, where pandoc may be used to convert
15805 user input into HTML.
15806+ Made -H, -A, and -B options cumulative: if they are specified
15807 multiple times, multiple files will be included.
15808+ Many bug fixes and small improvements. See [changelog] for full
15811## pandoc 0.45 (2007-12-09)
15813+ Many bug fixes and structural improvements. See [changelog] for
15815+ Improved treatment of math. Math is now rendered using unicode
15816 by default in HTML, RTF, and DocBook output. For more accurate
15817 display of math in HTML, `--gladtex`, `--mimetex`, and `--asciimathml`
15818 options are provided. See the [User's Guide](README.html#math) for
15820+ Removed support for box-style block quotes in markdown.
15821+ More idiomatic ConTeXt output.
15822+ Text wrapping in ConTeXt and LaTeX output.
15823+ Pandoc now correctly handles all standard line endings
15825+ New `--no-wrap` option that disables line wrapping and minimizes
15826 whitespace in HTML output.
15827+ Build process is now compatible with both GHC 6.8 and GHC 6.6.
15828 GHC and GHC_PKG environment variables may be used to specify
15829 which version of the compiler to use, when multiple versions are
15832## pandoc 0.44 (2007-09-03)
15834 [ John MacFarlane ]
15836 * Fixed bug in HTML writer: when --toc was used, anchors were put around
15837 headers, which is invalid XHTML (block content within inline element).
15838 Now the anchors are put inside the header tags. Resolves Issue #23.
15840 * Added xmlns attribute to html element in html writer tests.
15841 This attribute is added by more recent versions of the
15842 xhtml library (>= 3000), and is required for valid XHTML.
15846 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
15847 command instead of 'runhaskell', which, on some platforms (such as s390,
15848 alpha, m68k), throws the following error:
15850 runhaskell Setup.hs configure --prefix=/usr
15851 ghc-6.6.1: not built for interactive use
15853 This causes a serious FTBFS bug. Closes: #440668.
15855## pandoc 0.43 (2007-09-02)
15857 [ John MacFarlane ]
15859 * The focus of this release is performance. The markdown parser
15860 is about five times faster than in 0.42, based on benchmarks
15861 with the TextMate manual.
15863 * Main.hs: Replaced CRFilter and tabFilter with single function
15864 tabFilter, which operates on the whole string rather than breaking
15865 it into lines, and handles dos-style line-endings as well as tabs.
15867 * Added separate LaTeX reader and native reader tests; removed
15870 * Text.Pandoc.Shared:
15872 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
15873 + General code cleanup (to elimante warnings when compiling with -Wall.)
15874 + Added 'wrapped' function, which helps wrap text into paragraphs,
15875 using the prettyprinting library.
15876 + Rewrote charsInBalanced and charsInBalanced'.
15877 - Documented restriction: open and close must be distinct characters.
15878 - Rearranged options for greater efficiency.
15879 - Bug fix: Changed inner call to charsInBalanced inside
15880 charsInBalanced' to charsInBalanced'.
15881 + anyLine now requires that the line end with a newline (not eof).
15882 This is a harmless assumption, since we always add newlines to the
15883 end of a block before parsing with anyLine, and it yields a 10% speed
15885 + Removed unnecessary 'try' in anyLine.
15886 + Removed unneeded 'try' from romanNumeral parser.
15887 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
15888 + Removed unneeded 'try' in parseFromString.
15889 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
15891 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
15892 'try' is not automatically applied to the 'end' parser. Added
15893 'try' in calls to 'enclosed' where needed. Slight speed increase.
15897 + Replaced individual wrapping routines in RST, Man, and Markdown
15898 writers with 'wrapped' from Text.Pandoc.Shared.
15899 + Rewrote LaTeX writer to use the prettyprinting library,
15900 so we get word wrapping, etc.
15901 + Modified latex writer tests for new latex writer using prettyprinter.
15902 + Fixed bug in LaTeX writer: autolinks would not cause
15903 `\usepackage{url}` to be put in the document header. Also, changes
15904 to state in enumerated list items would be overwritten.
15905 + In Markdown writer, escape paragraphs that begin with ordered list
15906 markers, so they don't get interpreted as ordered lists.
15908 * Text.Pandoc.Reades.LaTeX:
15910 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
15911 numeral after "enum" in "setcounter" would consist entirely of
15912 "i"s. 'enumiv' is legitimate.
15913 + LaTeX command and environment names can't contain numbers.
15914 + Rearranged order of parsers in inline for slight speed improvement.
15915 + Added '`' to special characters and 'unescapedChar'.
15917 * Text.Pandoc.Readers.RST:
15919 + Removed unneeded try's in RST reader; also minor code cleanup.
15921 + Rearranged parsers in inline (doubled speed).
15923 * Text.Pandoc.Readers.Markdown:
15925 + Skip notes parsing if running in strict mode. (This yields a nice
15926 speed improvement in strict mode.)
15927 + Simplify autolink parsing code, using Network.URI to test for
15928 URIs. Added dependency on network library to debian/control and
15930 + More perspicuous definition of nonindentSpaces.
15931 + Removed unneeded 'try' in 'rawLine'.
15932 + Combined linebreak and whitespace into a new whitespace parser, to
15933 avoid unnecessary reparsing of space characters.
15934 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
15935 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
15936 + Use lookAhead in parsers for setext headers and definition lists
15937 to see if the next line begins appropriately; if not, don't waste
15938 any more time parsing.
15939 + Don't require blank lines after code block. (It's sufficient to
15940 end code block with a nonindented line.)
15941 + Changed definition of 'emph': italics with '_' must not
15942 be followed by an alphanumeric character. This is to help
15943 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
15944 `[LC<em>TYPE]:my</em>type`.
15945 + Improved Markdown.pl-compatibility in referenceLink: the two parts
15946 of a reference-style link may be separated by one space, but not
15947 more... [a] [link], [not] [a link].
15948 + Fixed markdown inline code parsing so it better accords with
15949 Markdown.pl: the marker for the end of the code section is a clump
15950 of the same number of `'s with which the section began, followed
15951 by a non-` character. So, for example,
15952 ` h ``` i ` -> `<code>h ``` i</code>`.
15953 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
15954 rules are slightly different.
15955 + Rewrote 'para' for greater efficiency.
15956 + Rewrote link parsers for greater efficiency.
15957 + Removed redundant 'referenceLink' in definition of inline (it's
15958 already in 'link').
15959 + Refactored escapeChar so it doesn't need 'try'.
15960 + Refactored hrule for performance in Markdown reader.
15961 + More intelligent rearranging of 'inline' so that most frequently
15962 used parsers are tried first.
15963 + Removed tabchar parser, as whitespace handles tabs anyway.
15965 * Text.Pandoc.CharacterReferences:
15968 + Removed unnecessary 'try's for a speed improvement.
15969 + Removed unnecessary '&' and ';' from the entity table.
15973 + Makefile: Get VERSION from cabal file, not Main.hs.
15974 + Modified MacPorts Portfile:
15975 - Depend on haddock
15976 - Build and install libraries and library documentation in
15977 addition to pandoc executable
15978 - Added template item for md5 sum in Portfile.in.
15979 - Incorporated changes from MacPorts repository (r28278).
15980 + FreeBSD port: Don't try to generate distinfo in Makefile.
15981 It can be made using 'make makesum' in FreeBSD.
15982 + Make both freebsd and macports targets depend on tarball.
15984 * Website and documentation:
15986 + Updated INSTALL instructions.
15987 + Added pandocwiki demo to website.
15988 + Removed local references to Portfile, since pandoc is now in the
15989 MacPorts repository.
15991## pandoc 0.42 (2007-08-26)
15993 [ John MacFarlane ]
15995 * Main.hs: Use utf8 conversion on the extra files loaded with
15996 the -H, -C, -B, and -A options. This fixes problems with unicode
15997 characters in these files.
15999 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
16000 Text.Pandoc.Readers.HTML and without it we get a linking error when
16005 + Added new rule for enhanced markdown ordered lists: if the list
16006 marker is a capital letter followed by a period (including a
16007 single-letter capital roman numeral), then it must be followed by
16008 at least two spaces. The point of this is to avoid accidentally
16009 treating people's initials as list markers: a paragraph might begin,
16010 "B. Russell was an English philosopher," and this shouldn't be
16011 treated as a list. Documented change in README.
16012 + Blocks that start with "p. " and a digit are no longer treated
16013 as ordered lists (it's a page number).
16014 + Added a needed 'try' to listItem.
16015 + Removed check for a following setext header in endline.
16016 A full test is too inefficient (doubles benchmark time), and the
16017 substitute we had before is not 100% accurate.
16018 + Don't use Code elements for autolinks if --strict specified.
16020 * LaTeX writer: When a footnote ends with a Verbatim environment, the
16021 close } of the footnote cannot occur on the same line or an error occurs.
16022 Fixed this by adding a newline before the closing } of every footnote.
16025 + Removed incorrect "{}" around style information in HTML tables.
16026 Column widths now work properly in HTML.
16027 + If --strict option is specified (and --toc is not), don't include
16028 identifiers in headers, for better Markdown compatibility.
16032 + Separated $(web_dest) and website targets.
16033 + In website, index.txt is now constructed from template index.txt.in.
16034 + Added freebsd target to Markefile. This creates the freebsd Makefile
16035 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
16036 from the repository.
16037 + Added macport target to Makefile. Portfile is built from template
16039 + Removed OSX package targets. (Too many difficulties involving
16040 dependencies on dynamic libraries.)
16041 + More complete INSTALL instructions for all architectures.
16044 + Added a programming demo, pandocwiki.
16048 * Do not forget to close pandoc's ITP. Closes: #391666
16050## pandoc 0.41 (2007-08-19)
16052 [ John MacFarlane ]
16054 * Fixed bugs in HTML reader:
16055 + Skip material at end *only if* `</html>` is present (previously,
16056 only part of the document would be parsed if an error was
16057 found; now a proper error message is given).
16058 + Added new constant eitherBlockOrInline with elements that may
16059 count either as block-level or as inline. Modified isInline and
16060 isBlock to take this into account.
16061 + Modified rawHtmlBlock to accept any tag (even an inline tag):
16062 this is innocuous, because rawHtmlBlock is tried only if a regular
16063 inline element can't be parsed.
16064 + Added a necessary 'try' in definition of 'para'.
16066 * Fixed bug in markdown ordered list parsing. The problem was that
16067 anyOrderedListStart did not check for a space following the
16068 ordered list marker. So in 'A.B. 2007' the parser would be
16069 expecting a list item, but would not find one, causing an error.
16070 Fixed a similar bug in the RST reader. Resolves Issue #22.
16072 * Refactored RST and Markdown readers using parseFromString.
16074 * LaTeX reader will now skip anything after \end{document}.
16076 * Fixed blockquote output in markdown writer: previously, block
16077 quotes in indented contexts would be indented only in the first
16080 * Added note to INSTALL about variations in versions of the xhtml
16081 library that can lead to failed tests (thanks to Leif LeBaron).
16083## pandoc 0.4 (2007-01-16)
16085 [ John MacFarlane ]
16087 * Added two new output formats: groff man pages and ConTeXt. By
16088 default, output files with extensions ".ctx" and ".context" are
16089 assumed to be ConTeXt, and output files with single-digit extensions
16090 are assumed to be man pages.
16092 * Enhanced ordered lists (documented in README, under Lists):
16093 + The OrderedList block element now stores information about
16094 list number style, list number delimiter, and starting number.
16095 + The readers parse this information when possible.
16096 + The writers use this information to style ordered lists.
16097 + The enhancement can be disabled using the --strict option.
16099 * Added support for tables (with a new Table block element). Two kinds
16100 of tables are supported: a simple table with one-line rows, and a
16101 more complex variety with multiline rows. All output formats are
16102 supported, but only markdown tables are parsed at the moment. The
16103 syntax is documented in README.
16105 * Added support for definition lists (with a new DefinitionList block
16106 element). All output and input formats are supported. The syntax is
16107 documented in README.
16109 * Added support for superscripts and subscripts (with new Superscript
16110 and Subscript inline elements). All input and output
16111 formats. The syntax is documented in README.
16113 * Added support for strikeout (with a new Strikeout inline element).
16114 All input and output formats are supported. Thanks to Bradley Kuhn,
16115 who contributed a patch. The syntax is documented in README. Resolves
16118 * Added a --toc|--table-of-contents option. This causes an automatically
16119 generated table of contents (or an instruction that creates one) to
16120 be inserted at the beginning of the document. Not supported in S5,
16121 DocBook, or man page writers.
16123 * Modified the -m|--asciimathml option:
16125 + If an optional URL argument is provided, a link is inserted
16126 instead of the contents of the ASCIIMathML.js script.
16127 + Nothing is inserted unless the document actually contains
16130 * Removed Blank block element as unnecessary.
16132 * Removed Key and Note blocks from the Pandoc data structure. All
16133 links are now stored as explicit links, and note contents are
16134 stored with the (inline) notes.
16136 + All link Targets are now explicit (URL, title) pairs; there
16137 is no longer a 'Ref' target.
16138 + Markdown and RST parsers now need to extract data from key and
16139 note blocks and insert them into the relevant inline elements.
16140 Other parsers have been simplified, since there is no longer any need
16141 to construct separate key and note blocks.
16142 + Markdown, RST, and HTML writers need to construct lists of
16143 notes; Markdown and RST writers need to construct lists of link
16144 references (when the --reference-links option is specified); and
16145 the RST writer needs to construct a list of image substitution
16146 references. All writers have been rewritten to use the State monad
16147 when state is required.
16148 + Several functions (generateReference, keyTable,
16149 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
16150 used by them) have been removed from Text.Pandoc.Shared, since
16151 they are no longer needed. New functions and data structures
16152 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
16153 added. The functions inTags, selfClosingTag, inTagsSimple, and
16154 inTagsIndented have been moved to the DocBook writer, since that
16155 is now the only module that uses them. NoteTable is now exported
16156 in Text.Pandoc.Shared.
16157 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
16158 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
16159 + Added writerNotes and writerReferenceLinks to WriterOptions.
16161 * Added Text.Pandoc module that exports basic readers, writers,
16162 definitions, and utility functions. This should export everything
16163 needed for most uses of Pandoc libraries. The haddock documentation
16164 includes a short example program.
16166 * Text.Pandoc.ASCIIMathML is no longer an exported module.
16168 * Added Text.Pandoc.Blocks module to help in printing markdown
16169 and RST tables. This module provides functions for working with
16170 fixed-width blocks of text--e.g., placing them side by side, as
16173 * Refactored to avoid reliance on Haskell's Text.Regex library, which
16174 (a) is slow, and (b) does not properly handle unicode. This fixed
16175 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
16177 + Replaced 'gsub' with a general list function 'substitute'
16178 that does not rely on Text.Regex.
16179 + Rewrote extractTagType in HTML reader so that it doesn't use
16181 + In Markdown reader, replaced email regex test with a custom email
16182 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
16183 with a custom function isSelfClosingTag.
16184 + Modified Docbook writer so that it doesn't rely on Text.Regex for
16185 detecting 'mailto' links.
16186 + Removed escapePreservingRegex and reamped entity-handling
16187 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
16188 avoid reliance on Text.Regex (see below on character reference
16191 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
16193 * Changed handling of XML entities. Entities are now parsed (and unicode
16194 characters returned) in the Markdown and HTML readers, rather than being
16195 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
16196 instead of entities for characters above 128. This makes the HTML and
16197 DocBook output much more readable and more easily editable.
16199 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
16200 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
16201 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
16202 Moved both functions to Text.Pandoc.Writers.Docbook.
16203 + Added characterReference parser to Text.Pandoc.CharacterReferences.
16204 This parses a string and return a unicode character.
16205 + Rewrote decodeCharacterReferences to use the new parser instead of
16207 + Added new charRef parser for Markdown and HTML, which replaces the
16208 old 'entity' parser. Added '&' as a special character in Markdown reader.
16209 + Modified HTML and Markdown readers to call decodeEntities on all raw
16210 strings (e.g. authors, dates, link titles), to ensure that no
16211 unprocessed entities are included in the native representation of
16212 the document. (In the HTML reader, most of this work is done by a
16213 change in extractAttributeName.)
16214 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
16215 since a unicode non-breaking space is impossible to distinguish visually
16216 from a regular space. (Resolves Issue #3.)
16217 + Removed encodeEntitiesNumerical.
16218 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
16219 slight performance boost over the old association list.
16220 + Removed unneeded decodeEntities from 'str' parser in HTML and
16223 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
16224 fromUTF8, for clarity.
16226 * Replaced old haskell98 module names replaced by hierarchical module
16227 names, e.g. List by Data.List. Removed haskell98 from dependencies
16228 in pandoc.cabal, and added mtl (needed for state monad). Substituted
16231 * Refactored and cleaned up character escaping in writers, using
16232 backslashEscapes and escapeStringUsing functions.
16234 * Instead of adding `\n\n` to the end of an input string in Main.hs,
16235 this is now done in the readers. This makes the libraries behave
16236 the way you'd expect from the pandoc program. Resolves Issue #10.
16238 * URLs and email addresses in autolinks are now typeset as Code.
16240 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
16241 doesn't display the whole output unless there's a line ending.
16243 * Major code cleanup in all modules, for greater consistency, concision,
16248 + Fixed several bugs (extractTagType, attribute parsing).
16249 + Remove Null blocks in lists of blocks when possible.
16250 + Allow HTML comments as raw HTML inline.
16254 + Ordered list items may no longer begin with uppercase letters, or
16255 letters greater than 'n'. (This prevents first initials and page
16256 reference, e.g. 'p. 400', from being parsed as beginning lists.)
16257 Also, numbers beginning list items may no longer end with ')',
16258 which is now allowed only after letters. Note: These changes
16259 may cause documents to be parsed differently. Users should take
16261 + Changed autoLink parsing to conform better to Markdown.pl's
16262 behavior. `<google.com>` is not treated as a link, but
16263 `<http://google.com>`, `<ftp://google.com>`, and
16264 `<mailto:google@google.com>` are.
16265 + Cleaned up handling of embedded quotes in link titles. Now these are
16266 stored as a '"' character, not as '"'.
16267 + Use lookAhead parser for the 'first pass' (looking for reference keys),
16268 instead of parsing normally, then using setInput to reset input. This
16269 yields a slight performance boost.
16270 + Fixed several bugs in smart quote recognition.
16271 + Fixed bug in indentSpaces (which didn't properly handle
16272 cases with mixed spaces and tabs).
16273 + Consolidated 'text', 'special', and 'inline' into 'inline'.
16274 + Fixed bug which allowed URL and title to be separated by multiple blank
16275 lines in links and reference keys. They can be on separate lines but
16276 can't have blank lines between them.
16277 + Correctly handle bracketed text inside inline footnotes and links,using
16278 new function inlinesInBalanced. Resolves Issue #14.
16279 + Fixed bug in footnotes: links in footnotes were not being
16280 processed. Solution: three-stage parse. First, get all the
16281 reference keys and add information to state. Next, get all the
16282 notes and add information to state. (Reference keys may be needed
16283 at this stage.) Finally, parse everything else.
16284 + Replaced named constants like 'emphStart' with literals.
16285 + Removed an extra occurrence of escapedChar in definition of inline.
16289 + Allow the URI in a RST hyperlink target to start on the line
16290 after the reference key.
16291 + Added 'try' in front of 'string', where needed, or used a different
16292 parser. This fixes a bug where ````` would not be correctly parsed as
16294 + Fixed slow performance in parsing inline literals in RST reader. The
16295 problem was that ``#`` was seen by 'inline' as a potential link or image.
16296 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
16298 + Use lookAhead instead of getInput/setInput in RST reader. Removed
16299 unneeded getState call, since lookAhead automatically saves and
16300 restores the parser state.
16301 + Allow hyperlink target URIs to be split over multiple lines, and
16302 to start on the line after the reference. Resolves Issue #7.
16303 + Fixed handling of autolinks.
16307 + Replaced `choice [(try (string ...), ...]` idiom with `oneOfStrings`,
16309 + Added clauses for tilde and caret. Tilde is `\ensuremath{\sim}`, and
16310 caret is `\^{}`, not `\^` as before.
16311 + Added parsing for `\url`.
16312 + Parse `\texttt{}` as code, provided there's nothing fancy inside.
16316 + Modified HTML writer to use the Text.XHtml library. This results
16317 in cleaner, faster code, and it makes it easier to use Pandoc in
16318 other projects, like wikis, which use Text.XHtml. Two functions are
16319 now provided, writeHtml and writeHtmlString: the former outputs an
16320 Html structure, the latter a rendered string. The S5 writer is also
16321 changed, in parallel ways (writeS5, writeS5String).
16322 + The Html header is now written programmatically, so it has been
16323 removed from the 'headers' directory. The S5 header is still
16324 needed, but the doctype and some of the meta declarations have
16325 been removed, since they are written programmatically. This change
16326 introduces a new dependency on the xhtml package.
16327 + Fixed two bugs in email obfuscation involving improper escaping
16328 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
16330 + Fixed another bug in email obfuscation: If the text to be obfuscated
16331 contains an entity, this needs to be decoded before obfuscation.
16332 Thanks to thsutton for the patch. Resolves Issue #15.
16333 + Changed the way the backlink is displayed in HTML footnotes.
16334 Instead of appearing on a line by itself, it now generally
16335 appears on the last line of the note. (Exception: when the
16336 note does not end with a Plain or Para block.) This saves space
16338 + Added automatic unique identifiers to headers:
16339 - The identifier is derived from the header via a scheme
16340 documented in README.
16341 - WriterState now includes a list of header identifiers and a table
16342 of contents in addition to notes.
16343 - The function uniqueIdentifiers creates a list of unique identifiers
16344 from a list of inline lists (e.g. headers).
16345 - This list is part of WriterState and gets consumed by blockToHtml
16346 each time a header is encountered.
16347 + Include CSS for .strikethrough class in header only if strikethrough
16348 text appears in the document.
16349 + If the 'strict' option is specified, elements that do not appear in
16350 standard markdown (like definition lists) are passed through as
16352 + Simplified treatment of autolinks, using pattern matching instead of
16357 + Links in markdown output are now printed as inline links by default,
16358 rather than reference links. A --reference-links option has been added
16359 that forces links to be printed as reference links. Resolves Issue #4.
16360 + Use autolinks when possible. Instead of `[site.com](site.com)`,
16365 + Rewrote to use the State monad. The preamble now includes only those
16366 packages that are actually required, given the document's content.
16367 Thus, for example, if strikeout is not used, ulem is not required.
16368 Modified LaTeXHeader accordingly.
16369 + Modified LaTeX writer to insert `\,` between consecutive quotes.
16370 + Removed unused function tableRowColumnWidths.
16371 + Simplified code for escaping special characters.
16372 + Leave extra blank line after `\maketitle`.
16373 + Include empty `\author{}` when no author specified to avoid LaTeX
16375 + Include fancyvrb code in header only if needed -- that is, only
16376 if there is actually code in a footnote.
16377 + Use `\url{}` for autolinks.
16378 + Include [mathletters] option in ucs package, so that basic unicode
16379 Greek letters will work correctly.
16381 * RST writer: Force blank line before lists, so that sublists will
16382 be handled correctly.
16384 * Docbook writer: Fixed a bug: email links with text, like
16385 [foo](me@bar.baz), were being incorrectly treated as autolinks.
16387 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
16388 Text.Pandoc.Shared.
16390 * Text.Pandoc.Shared:
16392 + Added defaultWriterOptions.
16393 + Added writerTableOfContents to WriterOptions.
16394 + Added writerIgnoreNotes option to WriterOptions. This is needed
16395 for processing header blocks for a table of contents, since notes on
16396 headers should not appear in the TOC.
16397 + Added prettyprinting for native Table format.
16398 + Removed some unneeded imports.
16399 + Moved escape and nullBlock parsers from
16400 Text.ParserCombinators.Pandoc, since the latter is for
16401 general-purpose parsers that don't depend on Text.Pandoc.Definition.
16402 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
16403 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
16404 writer, because HTML writer now uses these in constructing a table
16406 + Added clauses for new inline elements (Strikeout, Superscript,
16407 Subscript) to refsMatch.
16408 + Removed backslashEscape; added new functions escapeStringUsing and
16410 + Moved failIfStrict from markdown reader, since it is now used also
16411 by the HTML reader.
16412 + Added a 'try' to the definition of indentSpaces.
16413 + In definition of 'reference', added check to make sure it's not a note
16415 + Added functions: camelCaseToHyphenated, toRomanNumeral,
16416 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
16417 charsInBalanced', withHorizDisplacement, romanNumeral
16418 + Fixed a bug in the anyLine parser. Previously it would parse an empty
16419 string "", but it should fail on an empty string, or we get an error
16420 when it is used inside "many" combinators.
16421 + Removed followedBy' parser, replacing it with the lookAhead parser from
16423 + Added some needed 'try's before multicharacter parsers, especially in
16425 + Removed the 'try' from the 'end' parser in 'enclosed', so that
16426 'enclosed' behaves like 'option', 'manyTill', etc.
16427 + Added lineClump parser, which parses a raw line block up to and
16428 including any following blank lines.
16429 + Renamed parseFromStr to parseFromString.
16430 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
16431 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
16433 + Removed unneeded 'try' in blanklines.
16434 + Removed endsWith function and rewrote calling functions to use
16435 isSuffixOf instead.
16436 + Added >>~ combinator.
16437 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
16440 * Refactored runtests.pl; added separate tests for tables.
16444 + Added -asxhtml flag to tidy in html2markdown. This will
16445 perhaps help the parser, which expects closing tags.
16446 + Modified markdown2pdf to run pdflatex a second time if --toc or
16447 --table-of-contents was specified; otherwise the table of
16448 contents won't appear.
16449 + Modified markdown2pdf to print a helpful message if the 'ulem'
16450 LaTeX package is required and not found.
16452 * Changes to build process:
16454 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
16456 + Removed cabalize and Pandoc.cabal.in. The repository now contains
16457 pandoc.cabal itself.
16458 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
16459 likes the cabal file to have the same name as the tarball.
16460 + Expanded and revised the package description in pandoc.cabal.
16461 Revised the package synopsis.
16462 + The tarball built by 'make tarball' now contains files built from
16463 templates (including man pages and shell scripts), so pandoc can
16464 be built directly using Cabal tools, without preprocessing.
16465 + Executable binaries are now stripped before installing.
16466 + Man pages are now generated from markdown sources, using pandoc's
16468 + Use HTML version of README (instead of RTF) in Mac OS X installer.
16469 + Instead of testing for the existence of a pandoc symlink in build-exec,
16474 + Updated README and man pages with information on new features.
16475 + Updated INSTALL instructions with some useful clarifications and
16477 + Updated web content.
16479 * Added FreeBSD port.
16485 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
16486 libghc6-xhtml-dev. Removed libghc6-html-dev.
16487 + Suggest texlive-latex-recommended | tetex-extra instead of
16488 tetex-bin. This brings in fancyvrb and unicode support.
16491## pandoc 0.3 (2007-01-05)
16493 [ John MacFarlane ]
16495 * Changes in pandoc options:
16497 + Allow options to follow or precede arguments.
16498 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
16499 + Added '--strict' option.
16500 + Added '-o/--output' option.
16501 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
16502 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
16503 error conditions. This is helpful for writing wrappers.
16504 + Added copyright message to '-v' output, modeled after FSF messages.
16505 + Reformatted usage message so that it doesn't wrap illegibly.
16506 + Removed extra blanks after '-h' and '-D' output.
16508 * Added docbook writer.
16510 * Added implicit setting of default input and output format based
16511 on input and output filename extensions. These defaults are
16512 overridden if explicit input and output formats are specified using
16513 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
16516 * Allow ordered list items to begin with (single) letters, as well
16517 as numbers. The list item marker may now be terminated either by
16518 '.' or by ')'. This extension to standard markdown is documented
16521 * Revised footnote syntax. (See README for full details.) The
16522 '[^1]' format now standard in markdown extensions is supported,
16523 as are inline footnotes with this syntax: `^[My note.]`.
16524 The earlier footnote syntax `^(1)` is no longer supported.
16526 * Improved HTML representation of footnotes. All footnotes
16527 are now auto-numbered and appear in an ordered list at the
16528 end of the HTML document. Since the default appearance is now
16529 acceptable, the old footnote styles have been removed from the
16534 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
16535 These readers ran 'runParser' on processed chunks of text to handle
16536 embedded block lists in lists and quotation blocks. But then
16537 any changes made to the parser state in these chunks was lost,
16538 as the state is local to the parser. So, for example, footnotes
16539 didn't work in quotes or list items. The fix: instead of calling
16540 runParser on some raw text, use setInput to make it the input, then
16541 parse it, then use setInput to restore the input to what it was
16542 before. This is shorter and more elegant, and it fixes the problem.
16543 + Fixed bug in notFollowedBy' combinator (adding 'try' before
16544 'parser'). Adjusted code that uses this combinator accordingly.
16545 + Fixed bug in RTF writer that caused improper indentation on
16546 footnotes occurring in indented blocks like lists.
16547 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
16548 and date are parsed correctly. Everything else in the preamble
16550 + Modified escapedChar in LaTeX reader to allow a `\` at the end of a
16551 line to count as escaped whitespace.
16552 + Modified LaTeX reader to produce inline links rather than reference
16553 links. Otherwise, links in footnotes aren't handled properly.
16554 + Fixed handling of titles in links in Markdown reader, so that
16555 embedded quotation marks are now handled properly.
16556 + Fixed Markdown reader's handling of embedded brackets in links.
16557 + Fixed Markdown reader so that it only parses bracketed material
16558 as a reference link if there is actually a corresponding key.
16559 + Revised inline code parsing in Markdown reader to conform to
16560 markdown standard. Now any number of `s can begin inline code,
16561 which will end with the same number of `s. For example, to
16562 have two backticks as code, write ``` `` ```. Modified Markdown
16563 writer accordingly.
16564 + Fixed bug in text-wrapping routine in Markdown and RST writers.
16565 Now LineBreaks no longer cause wrapping problems.
16566 + Supported hexadecimal numerical entity references as well as
16568 + Fixed bug in Markdown reader's handling of underscores and other
16569 inline formatting markers inside reference labels: for example,
16570 in '[A_B]: /url/a_b', the material between underscores was being
16571 parsed as emphasized inlines.
16572 + Changed Markdown reader's handling of backslash escapes so that
16573 only non-alphanumeric characters can be escaped. Strict mode
16574 follows Markdown.pl in only allowing a select group of punctuation
16575 characters to be escaped.
16576 + Modified HTML reader to skip a newline following a `<br>` tag.
16577 Otherwise the newline will be treated as a space at the beginning
16580 * Made handling of code blocks more consistent. Previously, some
16581 readers allowed trailing newlines, while others stripped them.
16582 Now, all readers strip trailing newlines in code blocks. Writers
16583 insert a newline at the end of code blocks as needed.
16585 * Modified readers to make spacing at the end of output more consistent.
16587 * Minor improvements to LaTeX reader:
16589 + `\thanks` now treated like a footnote.
16590 + Simplified parsing of LaTeX command arguments and options.
16591 commandArgs now returns a list of arguments OR options (in
16592 whatever order they appear). The brackets are included, and
16593 a new stripFirstAndLast function is provided to strip them off
16594 when needed. This fixes a problem in dealing with \newcommand
16595 and \newenvironment.
16597 * Revised RTF writer:
16599 + Default font is now Helvetica.
16600 + An `\f0` is added to each `\pard`, so that font resizing works
16603 * Moved handling of "smart typography" from the writers to the Markdown
16604 and LaTeX readers. This allows great simplification of the writers
16605 and more accurate smart quotes, dashes, and ellipses. DocBook can
16606 now use `<quote>`. The '--smart' option now toggles an option in
16607 the parser state rather than a writer option. Several new kinds
16608 of inline elements have been added: Quoted, Ellipses, Apostrophe,
16611 * Changes in HTML writer:
16613 + Include title block in header even when title is null.
16614 + Made javascript obfuscation of emails even more obfuscatory,
16615 by combining it with entity obfuscation.
16617 * Changed default ASCIIMathML text color to black.
16621 + Added --strip-trailing-cr option to diff in runtests.pl, for
16622 compatibility with Windows.
16623 + Added regression tests with footnotes in quote blocks and lists.
16625 * Makefile changes:
16627 + osx-pkg target creates a Mac OS X package (directory). New osx
16628 directory contains files needed for construction of the package.
16629 + osx-dmg target creates a compressed disk image containing the package.
16630 + win-pkg target creates Windows binary package.
16631 + tarball target creates distribution source tarball.
16632 + website target generates pandoc's website automatically, including
16633 demos. New 'web' directory contains files needed for construction
16634 of the website (which will be created as the 'pandoc' subdirectory
16636 + Makefile checks to see if we're running Windows/Cygwin; if so,
16637 a '.exe' extension is added to each executable in EXECS.
16639 * Removed all wrappers except markdown2pdf and html2markdown.
16641 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
16642 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
16643 option and disables other options.
16645 * Added code to html2markdown that tries to determine the character
16646 encoding of an HTML file, by parsing the "Content-type" meta tag.
16648 + If the encoding can't be determined, then if the content is local,
16649 the local encoding is used; if it comes from a URL, UTF-8 is used
16651 + If input is from STDIN, don't try to determine character encoding.
16652 + Encoding can be specified explicitly using '-e' option.
16654 * Improved warning messages in wrappers:
16656 + Print warning if iconv not available
16657 + More user-friendly error messages in markdown2pdf, when
16662 + Renamed 'Text/Pandoc/HtmlEntities' module to
16663 'Text/Pandoc/Entities'. Also changed function names so as
16664 not to be HTML-specific.
16665 + Refactored SGML string escaping functions from HTML and Docbook
16666 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
16667 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
16669 + Removed splitBySpace and replaced it with a general, polymorphic
16671 + Refactored LaTeX reader for clarity (added isArg function).
16672 + Converted some CR's to LF's in src/ui/default/print.css.
16673 + Added license text to top of source files.
16674 + Added module data for haddock to source files.
16675 + Reformatted code for consistency.
16677 * Rewrote documentation and man pages. Split README into INSTALL
16680 * Split LICENSE into COPYING and COPYRIGHT.
16682 * Removed TODO, since we now maintain ToDo on the wiki.
16684 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
16689 * Revamped build process to conform to debian standards and created
16690 a proper debian package. Closes: #391666.
16692 * Modified build process to support GHC 6.6.
16694 + The package can still be compiled using GHC 6.4.2, though because
16695 of dependencies the "make deb" target works only with GHC 6.6+.
16696 + The script 'cabalize' is used to create an appropriate
16697 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
16700 * Refactored template processing (fillTemplates.pl).
16702 * Modified wrapper scripts to make them more robust and portable.
16703 To avoid code duplication and ensure consistency, wrappers are
16704 generated via a templating system from templates in src/wrappers.
16706 + Wrappers now accept multiple filenames, when appropriate.
16707 + Spaces and tabs allowed in filenames.
16708 + getopts shell builtin is used for portable option parsing.
16709 + Improved html2markdown's web grabber code, making it more robust,
16710 configurable and verbose. Added '-e', '-g' options.
16713## pandoc 0.2 (2006-08-14)
16715 * Fixed unicode/utf-8 translation
16717## pandoc 0.1 (2006-08-14)
16719 * 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