1# Revision history for pandoc
3## pandoc 2.11.4 (2021-01-22)
5 * Add `biblatex`, `bibtex` as output formats (closes #7040).
7 * Recognize more extensions as markdown by default (#7034):
8 `mkdn`, `mkd`, `mdwn`, `mdown`, `Rmd`.
10 * Implement defaults file inheritance (#6924, David Martschenko).
11 Allow defaults files to inherit options from other defaults files by
12 specifying them with the following syntax:
13 `defaults: [list of defaults files or single defaults file]`.
15 * Fix infinite HTTP requests when writing epubs from URL source (#7013).
16 Due to a bug in code added to avoid overwriting the cover image
17 if it had the form `fileX.YYY`, pandoc made an endless sequence
18 of HTTP requests when writing epub with input from a URL.
22 + Allow multiple pipe chars in todo sequences (Albert Krewinkel, #7014).
23 Additional pipe chars, used to separate "action" state from "no further
24 action" states, are ignored. E.g., for the following sequence, both
25 `DONE` and `FINISHED` are states with no further action required:
26 `#+TODO: UNFINISHED | DONE | FINISHED`.
27 + Restructure output of captioned code blocks (Albert Krewinkel, #6977).
28 The Div wrapper of code blocks with captions now has the class
29 "captioned-content". The caption itself is added as a Plain block
30 inside a Div of class "caption". This makes it easier to write filters
31 which match on captioned code blocks. Existing filters will need to be
33 + Mark verbatim code with class `verbatim` (Dimitri Sabadie, #6998).
37 + Handle `filecontents` environment (#7003).
38 + Put contents of unknown environments in a Div when `raw_tex` is not
39 enabled (#6997). (When `raw_tex` is enabled, the whole environment is
40 parsed as a raw block.) The class name is the name of the environment.
41 Previously, we just included the contents without the surrounding Div,
42 but having a record of the environment's boundaries and name can be
47 + Allow space around storng/emph delimiters (#6993).
49 * New module Text.Pandoc.Writers.BibTeX, exporting
50 writeBibTeX and writeBibLaTeX. [API change]
54 + Revert table line height increase in 2.11.3 (#6996).
55 In 2.11.3 we started adding `\addlinespace`, which produced less dense
56 tables. This wasn't an intentional change; I misunderstood a comment in
57 the discussion leading up to the change. This commit restores the earlier
58 default table appearance. Note that if you want a less dense table, you
59 can use something like `\def\arraystretch{1.5}` in your header.
63 + Adjust internal links to identifiers defined in raw HTML sections
64 after splitting into chapters (#7000).
65 + Recognize `Format "html4"`, `Format "html5"` as raw HTML.
66 + Adjust internal links to images, links, and tables after splitting into
67 chapters. Previously we only did this for Div and Span and Header
72 + Don't justify text inside table cells.
76 + Use `<element-citation>` if `element_citations`
77 extension is enabled (Albert Krewinkel).
78 + Fix citations (Albert Krewinkel, #7018). By default
79 we use formatted citations.
80 + Ensure that `<disp-quote>` is always wrapped in `<p>` (#7041).
84 + Cleaned up raw formats. We now react appropriately
85 to `gfm`, `commonmark`, and `commonmark_x` as raw formats.
89 + Fix bug with dropped content from inside spans with a class in
94 + Handle table header using styles (#7008). Instead of hard-coding
95 the border and header cell vertical alignment, we now let this
96 be determined by the Table style, making use of Word's
97 "conditional formatting" for the table's first row. For
98 headerless tables, we use the tblLook element to tell Word
99 not to apply conditional first-row formatting.
103 + Implement start number on ordered lists (#7009). Previously they always
104 started at 1, but according to the spec the start number is respected.
108 + Fix implicit_figure at end of footnotes (#7006).
110 * ConTeXt template: Remove `\setupthinrules` from default template.
111 The width parameter this used is not actually supported,
112 and the command didn't do anything.
114 * Text.Pandoc.Extensions:
116 + Add `Ext_element_citations` constructor (Albert Krewinkel).
118 * Text.Pandoc.Citeproc.BibTeX: New unexported function
121 * Text.Pandoc.Citeproc:
123 + Use finer grained imports (Albert Krewinkel).
124 + Factor out and export `getStyle` [API change].
125 + Export `getReferences` [API change, #7106].
126 + Factor out getLang.
128 * Text.Pandoc.Parsing: modify `gridTableWith'` for headerless tables.
129 If the table lacks a header, the header row should be an empty
130 list. Previously we got a list of empty cells, which caused
131 an empty header to be emitted instead of no header. In LaTeX/PDF
132 output that meant we got a double top line with space between.
134 * ImageSize: use `viewBox` for SVG if no length, width attributes (#7045).
135 This change allows pandoc to extract size information from more SVGs.
137 * Add simple default.nix.
139 * Use commonmark 0.1.1.3.
141 * Use citeproc 0.3.0.5.
143 * Update default CSL to use latest chicago-author-date.csl.
145 * CONTRIBUTING.md: add note on GNU xargs.
149 + Update description of `-L`/`--lua-filter`.
150 + Document use of citations in note styles (#6828).
152## pandoc 2.11.3.2 (2020-12-29)
154 * HTML reader: use renderTags' from Text.Pandoc.Shared (Albert Krewinkel).
155 A side effect of this change is that empty `<col>` elements are written
156 as self-closing tags in raw HTML blocks.
158 * Asciidoc writer: Add support for writing nested tables (#6972, timo-a).
159 Asciidoc supports one level of nesting. If deeper tables are to be
160 written, they are omitted and a warning is issued.
162 * Docx writer: fix nested tables with captions (#6983).
163 Previously we got unreadable content, because docx seems
164 to want a `<w:p>` element (even an empty one) at the end of
167 * Powerpoint writer: allow arbitrary OOXML in raw inline elements
168 (Albert Krewinkel). The raw text is now included verbatim in the
169 output. Previously is was parsed into XML elements, which prevented
170 the inclusion of partial XML snippets.
172 * LaTeX writer: support colspans and rowspans in tables (#6950,
173 Albert Krewinkel). Note that the multirow package is needed for
174 rowspans. It is included in the latex template under a variable,
175 so that it won't be used unless needed for a table.
177 * HTML writer: don't include p tags in CSL bibliography entries
178 (#6966). Fixes a regression in 2.11.3.
180 * Add `meta-description` variable to HTML templates (#6982). This
181 is populated by the writer by stringifying the `description`
182 field of metadata (Jerry Sky). The `description` meta tag will
183 make the generated HTML documents more complete and SEO-friendly.
185 * Citeproc: fix handling of empty URL variables (`DOI`, etc.).
186 The `linkifyVariables` function was changing these to links
187 which then got treated as non-empty by citeproc, leading
188 to wrong results (e.g. ignoring nonempty URL when empty DOI is present).
191 * Use citeproc 0.3.0.3. Fixes an issue in author-only citations when
192 both an author and translator are present, and an issue with
193 citation group delimiters.
195 * Require texmath 0.12.1. This improves siunitx support in math,
196 fixes bugs with `\*mod` family operators and arrays, and avoids
197 italicizing symbols and operator names in docx output.
199 * Ensure that the perl interpreter used for filters with `.pl`
202 * MANUAL: note that textarea content is never parsed as Markdown
206## pandoc 2.11.3.1 (2020-12-18)
208 * Added some missing files to extra-source-files and data
209 files, so they are included in the sdist tarball. Closes #6961.
210 Cleaned up some extraneous data and test files, and added
211 a CI check to ensure that the test and data files included
212 in the sdist match what is in the git repository.
214 * Use citeproc 0.3.0.1, which avoids removing nonbreaking
215 space at the end of the `initialize-with` attribute. (Some
216 journals require nonbreaking space after initials, and this
217 makes that possible.)
219## pandoc 2.11.3 (2020-12-17)
221 * With `--bibliography` (or `bibliography` in metadata), a
222 URL may now be provided, and pandoc will fetch the resource.
223 In addition, if a file path is provided and it is not
224 found relative to the working directory, the resource
225 path will be searched (#6940).
227 * Add `sourcepos` extension for `commonmark`, `gfm`, `commonmark_x`
228 (#4565). With the `sourcepos` extension set set, `data-pos`
229 attributes are added to the AST by the commonmark reader. No other
230 readers are affected. The `data-pos` attributes are put on elements
231 that accept attributes; for other elements, an enlosing Div or Span
232 is added to hold the attributes.
234 * Change extensions for `commonmark_x`: replace `auto_identifiers`
235 with `gfm_auto_identifiers` (#6863). `commonmark_x` never actually
236 supported `auto_identifiers` (it didn't do anything), because the
237 underlying library implements gfm-style identifiers only. Attempts
238 to add the `auto_identifiers` extension to `commonmark` will now
243 + Split module into several submodules (Albert Krewinkel). Reducing
244 module size should reduce memory use during compilation.
245 + Support advanced table features (Albert Krewinkel):
246 block level content in captions, row and colspans,
247 body headers, row head columns, footers, attributes.
248 + Disable round-trip testing for tables. Information for cell
249 alignment in a column is not preserved during round-trips (Albert
251 + Allow finer grained options for tag omission (Albert Krewinkel).
252 + Simplify list attribute handling (Albert Krewinkel).
253 + Pay attention to `lang` attributes on body element (#6938).
254 These (as well as `lang` attributes on the html element) should update
256 + Retain attribute prefixes and avoid duplicates (#6938).
257 Previously we stripped attribute prefixes, reading `xml:lang` as
258 `lang` for example. This resulted in two duplicate `lang`
259 attributes when `xml:lang` and `lang` were both used. This commit
260 causes the prefixes to be retained, and also avoids invald
261 duplicate attributes.
265 + Refactor `specFor`.
266 + Set input name to `""` to avoid clutter in sourcepos output.
270 + Parse `#+LANGUAGE` into `lang` metadata field (#6845, Albert
272 + Preserve targets of spurious links (#6916, Albert
273 Krewinkel). Links with (internal) targets that the reader doesn't
274 know about are converted into emphasized text. Information on the
275 link target is now preserved by wrapping the text in a Span of class
276 `spurious-link`, with an attribute `target` set to the link's
277 original target. This allows to recover and fix broken or unknown
282 + Table text width support (#6791, Nils Carlson).
283 Table width in relation to text width is not natively supported
284 by docbook but is by the docbook `fo` stylesheets through an XML
285 processing instruction, `<?dbfo table-width="50%"?>`.
289 + Improve parsing of command options (#6869, #6873).
290 In cases where we run into trouble parsing inlines til the
291 closing `]`, e.g. quotes, we return a plain string with the
292 option contents. Previously we mistakenly included the brackets
294 + Preserve center environment (#6852, Igor Pashev).
295 The contents of the `center` environment are put in a `Div`
297 + Don't parse `\rule` with width 0 as horizontal rule. These are
298 sometimes used as spacers in LaTeX.
299 + Don't apply theorem default styling to a figure inside (#6925).
300 If we put an image in italics, then when rendering to Markdown
301 we no longer get an implicit figure.
305 + Handle unknown interwiki links better (#6932).
306 DokuWiki lets the user define his own Interwiki links. Previously
307 pandoc reacted to these by emitting a google search link, which is
308 not helpful. Instead, we now just emit the full URL including the
309 wikilink prefix, e.g. `faquk>FAQ-mathml`. This at least gives users
310 the ability to modify the links using filters.
314 + Properly handle boolean values in writing YAML metadata (#6388).
315 + Ensure that a new csl-block begins on a new line (#6921).
316 This just looks better and doesn't affect the semantics.
320 + Better image handling (#6948). An image alone in its paragraph
321 (but not a figure) is now rendered as an independent image, with an
322 `alt` attribute if a description is supplied. An inline image that
323 is not alone in its paragraph will be rendered, as before, using a
324 substitution. Such an image cannot have a "center", "left", or
325 "right" alignment, so the classes `align-center`, `align-left`, or
326 `align-right` are ignored. However, `align-top`, `align-middle`,
327 `align-bottom` will generate a corresponding `align` attribute.
331 + Keep raw openxml strings verbatim (#6933, Albert Krewinkel).
332 + Use Content instead of Element. This allows us to inject
333 raw OpenXML into the document without reparsing it into an
334 Element, which is necessary if you want to inject an open
336 + Fix bullets/lists indentation, so that the first level is slightly
337 indented to the right instead of right on the margin (cholonam).
338 + Support bold and italic in "complex script" (#6911).
339 Previously bold and italics didn't work properly in LTR
340 text. This commit causes the w:bCs and w:iCs attributes
341 to be used, in addition to w:b and w:i, for bold and
342 italics respectively.
346 + Fix image bounding box for custom widths/heighta (Mauro Bieg, #6936).
350 + Improve table spacing (#6842, #6860).
351 Remove the `\strut` that was added at the end of minipage
352 environments in cells. Replace `\tabularnewline` with
354 + Improve calculation of column spacing (#6883).
355 + Extract table handling into separate module (Albert Krewinkel).
356 + Fix bug with nested `csl-` display Spans (#6921).
357 + Improve longtable output (#6883). Don't create minipages for
358 regular paragraphs. Put width and alignment information in the
359 longtable column descriptors.
361 * OpenDocument writer:
363 + Support for table width as a percentage of text width
364 (#6792, Nils Carson).
365 + Implement Div and Span ident support (#6755, Nils Carson).
366 Spans and Divs containing an ident in the Attr will become bookmarks
367 or sections with idents in OpenDocument format.
368 + Add two extensions, `xrefs_name` and `xrefs_number` (#6774, Nils
369 Carlson). Links to headings, figures and tables inside the
370 document are substituted with cross-references that will use the
371 name or caption of the referenced item for `xrefs_name` or the
372 number for `xrefs_number`. For the `xrefs_number` to be useful
373 heading numbers must be enabled in the generated document and
374 table and figure captions must be enabled using for example the
375 `native_numbering` extension. In order for numbers and reference
376 text to be updated the generated document must be refreshed.
380 + Support advanced table features (Albert Krewinkel).
381 + Support author affiliations (#6687, Albert Krewinkel).
385 + Use correct id attribute consistently (Jan Tojnar).
386 DocBook5 should always use `xml:id` instead of `id`.
387 + Handle admonition titles better (Jan Tojnar).
388 Docbook reader produces a `Div` with `title` class for `<title>`
389 element within an “admonition” element. Markdown writer then turns
390 this into a fenced div with `title` class attribute. Since fenced
391 divs are block elements, their content is recognized as a
392 paragraph by the Markdown reader. This is an issue for Docbook
393 writer because it would produce an invalid DocBook document from
394 such AST – the `<title>` element can only contain “inline”
395 elements. Handle this special case separately by unwrapping
396 the paragraph before creating the `<title>` element.
397 + Add XML namespaces to top-level elements (#6923, Jan Tojnar).
398 Previously, we only added `xmlns` attributes to chapter
399 elements, even when running with `--top-level-division=section`.
400 These namespaces are now added to part and section elements too,
401 when they are the selected top-level divisions.
402 We do not need to add namespaces to documents produced with
403 `--standalone` flag, since those will already have xmlns attribute on
404 the root element in the template.
408 + Fix handling of nested `csl-` display spans (#6921).
409 Previously inner Spans used to represent CSL display attributes were
410 not rendered as div tags as intended.
414 + Include title page in landmarks (#6919).
415 Note that the toc is also included if `--toc` is specified.
416 + Add frontmatter type on body element for nav.xhtml (#6918).
418 * EPUB templates: use preserveAspectRatio="xMidYMid" for cover image (#6895,
419 Shin Sang-jae). This change affects both the epub2 and the epub3
420 templates. It avoids distortion of the cover image by requiring that the
421 aspect ratio be preserved.
425 + Include `csquotes` package if `csquotes` variable set.
426 + Put back `amssymb`. We need it for checkboxes in todo lists,
427 and maybe for other things. In this location it seems compatible
428 with the cases that prompted #6469 and PR #6762.
429 + Disable language-specific shorthands in babel (#6817, #6887).
430 Babel defines "shorthands" for some languages, and these can
431 produce unexpected results. For example, in Spanish, `1.22`
432 gets rendered as `122`, and `et~al.` as `etal`.
433 One would think that babel's `shorthands=off` option (which
434 we were using) would disable these, but it doesn't. So we
435 remove `shorthands=off` and add some code that redefines
436 the shorthands macro. Eventually this will be fixed in babel,
437 I hope, and we can revert to something simpler.
439 * JATS template: allow array of persistent institute ids in `pid`
442 * Text.Pandoc.Parsing: minor code and efficiency improvements.
444 * Text.Pandoc.Extension:
446 + Add `Ext_sourcepos` constructor for `Extension` [API change].
447 + Add `Ext_xrefs_name` and `Ext_xrefs_number` constructors for
448 `Extension` (Nils Carson) [API change].
450 * Text.Pandoc.Citeproc:
452 + Fix truncation of `[Citation]` list in `Cite` inside footnotes (#6890).
453 This affected author-in-text citations in footnotes. It didn't cause
454 problems for the printed output, but for filters that expected the
455 citation id and other information.
456 + Allow the use of both inline and external references (#6951),
457 as with pandoc-citeproc. References defined in the document's
458 metadata take priority over references with the same id defined in
459 an external bibliography.
460 + Use `fetchItem` to get external bibliography (#6940).
461 + Ensure that BCP47 lang codes can be used. We ignore the variants
462 and just use the base lang code and country code when passing off
464 + Citeproc BibTeX parser: revert change in `getRawField`
465 which was made (for reasons forgotten) when transferring
466 this code from pandoc-citeproc. The change led to `--` in
467 URLs being interpreted as en-dashes, which is unwanted (#6874).
469 * Text.Pandoc.ImageSize:
471 + Default to DPI 72 if the format specifies DPI of 0 (#6880).
472 This shouldn't happen, in general, but it can happen with
473 JPEGs that don't conform to the spec. Having a DPI of 0
474 will blow up size calculations (division by 0).
475 + ImageSize: use JuicyPixels to determine size for png, jpeg, and
476 gif, instead of doing our own binary parsing (#6936). This
477 gives more reliable results.
481 + Remove `foldOrElse` (internal module) (Albert Krewinkel).
483 * Use skylighting 0.10.2 (#6625).
485 * Use citeproc 0.3. This fixes issues with references with
486 duplicate ids (jgm/citeproc#36).
488 * Use doctemplates 0.9. This fixes issues with boolean
489 metadata values in the Markdown writer (#6388)
490 and in `meta-json` (#6650). It also fixes
491 issues with nested for loops in templates.
493 * Add translations zh-Hans.yaml and zh-Hant.yaml (#6904, #6909,
494 Kolen Cheung, taotieren).
496 * Add tests: True to cabal.project.
497 This fixes some CI failures for cabal.
499 * Normalize test/tables/*.native (#6888, Kolen Cheung).
501 * Move executable to `app` directory to avoid problems with cabal repl.
503 * CONTRIBUTING: add section "How can I help?" (#6892, Albert Krewinkel).
504 Also adds a paragraph aimed at highlighting the importance of feature
507 * MANUAL: Document that --number-sections works in `ms` (#6935).
510## pandoc 2.11.2 (2020-11-19)
512 * Default to using ATX (`##`-style) headings for Markdown output
513 (#6662, Aner Lucero). Previously we used Setext (underlined) headings
514 by default for levels 1--2.
516 * Add option `--markdown-headings=atx|setext`, and deprecate
517 `--atx-headers` (#6662, Aner Lucero).
519 * Support `markdown-headings` in defaults files.
521 * Fix corner case in YAML metadata parsing (#6823). Previously YAML
522 metadata would sometimes not get recognized if a field ended with a
523 newline followed by spaces.
525 * `--self-contained`: increase coverage (#6854).
526 Previously we only self-contained attributes for certain tag names
527 (`img`, `embed`, `video`, `input`, `audio`, `source`, `track`,
528 `section`). Now we self-contain any occurrence of `src`,
529 `data-src`, `poster`, or `data-background-image`, on any tag; and
530 also `href` on `link` tags.
534 + Fix detection of locators following in-text citations.
535 Prevously, if we had `@foo [p. 33; @bar]`, the `p. 33` would be
536 incorrectly parsed as a prefix of `@bar` rather than a suffix of
538 + Improve period suppression algorithm for citations in notes
539 in note citation styles (#6835).
540 + Don't increment `stateNoteNumber` for example list references.
541 This helps with #6836 (a bug in which example list references
542 disturb calculation of citation note number and affect when
543 `ibid` is triggered).
547 + Move `getNextNumber` from Readers.LaTeX to Readers.LaTeX.Parsing.
548 + Fix negative numbers in siunitx commands. A change in pandoc 2.11
549 broke negative numbers, e.g. `\SI{-33}{\celcius}` or `\num{-3}`.
550 This fixes the regression.
552 * DocBook reader: drop period in formalpara title
553 and put it in a div with class `formalpara-title`, so that
554 people can reformat with filters (#6562).
556 * Man reader: improve handling of `.IP` (#6858). We now better handle
557 `.IP` when it is used with non-bullet, non-numbered lists, creating a
558 definition list. We also skip blank lines like groff itself.
560 * Bibtex reader: fall back on `en-US` if locale for LANG not found.
561 This reproduces earlier pandoc-citeproc behavior (jgm/citeproc#26).
565 + Wrap all tables (Albert Krewinkel).
566 All `<table>` elements are put inside `<table-wrap>` elements, as the
567 former are not valid as immediate child elements of `<body>`.
568 + Move Table handling to separate module (Albert Krewinkel).
569 Adds two new unexported modules:
570 Text.Pandoc.Writers.JATS.Types, Text.Pandoc.Writers.JATS.Table.
574 + Replace org #+KEYWORDS with #+keywords (TEC).
575 As of ~2 years ago, lower case keywords became the standard (though
576 they are handled case insensitive, as always).
577 + Update org supported languages and identifiers according to the
578 current list contained in
579 <https://orgmode.org/worg/org-contrib/babel/languages/index.html>
582 * Only use `filterIpynbOutput` if input format is ipynb (#6841).
583 Before this change content could go missing from divs with class
584 `output`, even when non-ipynb was being converted.
586 * When checking reader/writer name, check base name now that we permit
587 extensions on formats other than markdown.
589 * Text.Pandoc.PDF: Fix `changePathSeparators` for Windows (#6173).
590 Previously a path beginning with a drive, like `C:\foo\bar`, was
591 translated to `C:\/foo/bar`, which caused problems.
592 With this fix, the backslashes are removed.
594 * Text.Pandoc.Logging: Add constructor `ATXHeadingInLHS` constructor
595 to `LogMessage` [API change].
597 * Fix error that is given when people specify `doc` output (#6834,
600 * LaTeX template: add a `\break` after parbox in `CSLRightInline`.
601 This should fix spacing problems between entries with numeric styles.
602 Also fix number of params on `CSLReferences`.
604 * reveal.js template: Put quotes around `controlsLayout`,
605 `controlsBackArrows`, and `display`, since these require strings.
606 Add `showSlideNumber`, `hashOneBasedIndex`, `pause`.
608 * Use citeproc 0.2. This fixes a bug with title case around parentheses.
610 * pandoc.cabal: remove 'static' flag.
611 This isn't really necessary and can be misleading (e.g. on macOS,
612 where a fully static build isn't possible). cabal's new option
613 `--enable-executable-static` does the same. On stack you can add
614 something like this to the options for your executable in package.yaml:
616 ld-options: -static -pthread
618 * Remove obsolete bibutils flag setting in `linux/make_artifacts.sh`.
622 + Correct `link-citation` -> `link-citations`.
623 + Add a sentence about `pagetitle` for HTML (#6843, Alex Toldaiev).
625 * INSTALL.md: Remove references to `pandoc-citeproc` (#6857).
627 * CONTRIBUTING: describe hlint and how it's used (#6840, Albert
630## pandoc 2.11.1.1 (2020-11-07)
632 * Citeproc: improve punctuation in in-text note citations (#6813).
633 Previously in-text note citations inside a footnote would sometimes have
634 the final period stripped, even if it was needed (e.g. on the end of
637 * Use citeproc 0.1.1.1. This improves the decision about when
638 to use `ibid` in cases where citations are used inside
641 * Support `nocase` spans for `csljson` output.
643 * Require latest commonmark, commonmark-extensions.
644 This fixes a bug with `autolink_bare_uris` and commonmark.
646 * LaTeX reader: better handling of `\\` inside math in table cells (#6811).
648 * DokuWiki writer: translate language names for code elements
649 and improve whitespace (#6807).
651 * MediaWiki writer: use `syntaxhighlight` tag instead of deprecated
652 `source` for highlighted code (#6810). Also support `startFrom`
653 attribute and `numberLines`.
655 * Lint code in PRs and when committing to master (#6790,
658 * doc/filters.md: describe technical details of filter invocations (#6815,
662## pandoc 2.11.1 (2020-11-03)
664 * DocBook Reader: fix duplicate bibliography bug (#6773, Nils Carlson).
668 + Parse contents of iframes (#6770).
669 + Parse inline svg as image unless `raw_html` is set in the reader (in
670 which case the svg is passed through as raw HTML) (#6770).
674 + Fix bug parsing macro arguments (#6796). If `\cL` is
675 defined as `\mathcal{L}`, and `\til` as `\tilde{#1}`, then
676 `\til\cL` should expand to `\tilde{\mathcal{L}}`, but
677 pandoc was expanding it to `\tilde\mathcal{L}`. This is
678 fixed by parsing the arguments in "verbatim mode" when the
679 macro expands arguments at the point of use.
680 + Properly support optional (cite) argument for
681 `\blockquote` from `csquotes` (#6802).
683 * LaTeX writer: Improved calculation of table column widths.
684 We now have LaTeX do the calculation, using `\tabcolsep`.
685 So we should now have accurate relative column widths no
686 matter what the text width. The default template has been modified to load
687 the calc package if tables are used.
689 * HTML writer: Fix duplicate "class" attribute for table
692 * Text.Pandoc.Filter: allow shorter YAML representation of Citeproc
693 (Albert Krewinkel). The map-based YAML representation of filters expects
694 `type` and `path` fields. The path field had to be present for all filter
695 types, but is not used for citeproc filters. The field can now be omitted
696 when type is "citeproc", as described in the MANUAL.
698 * Text.Pandoc.Error: Add `PandocBibliographyError` constructor
699 for `PandocError` [API change]. This ensures that bibliography parsing
700 errors generate messages that include the bibliography file name --
701 otherwise it can be quite mysterious where it is coming from.
703 * Citeproc: properly handle `csl` field with `data:` URI (#6783).
704 This is used with the JATS writer, so this fixes a regression
705 in pandoc 2.11 with JATS output and citeproc.
707 * Allow `citation-abbreviations` in defaults file.
709 * JATS templates: ensure `jats_publishing` output is valid
712 * LaTeX template: Fix `CSLRightInline`, so that it does not
713 run over the right margin.
715 * HTML template: default CSS tweaks (Mauro Bieg and John
718 - Fix margin before codeblock
719 - Add `monobackgroundcolor` variable, making the background color
720 and padding of code optional.
721 - Ensure that backgrounds from highlighting styles take precedence over
723 - Remove list markers from TOC
724 - Add margin-bottom where needed
725 - Remove italics from blockquote styling
726 - Change borders and spacing in tables to be more consistent with other
729 - Set font-size for print media to 12pt.
730 - Reduce interline space.
731 - Reduce interparagraph space.
733 - Remove the special `line-height: 1` for table cells.
734 - Remove the special line-height for pre.
735 - Ensure that there is a bit more space before a heading
737 - Slightly reduced space after title header.
738 - Add CSS example to MANUAL
740 * man template: Change comment that triggers `tbl` from
741 `.\"t` to `'\" t`, as specified in groff_man(7) (#6803).
743 * Use latest commonmark, commonmark-extensions.
744 This fixes a bug with nested blocks in footnotes with the
745 `footnote` extension to `commonmark`. See jgm/commonmark-hs#63.
747 * Citeproc: use comma for in-text citations inside footnotes.
748 When an author-in-text citation like `@foo` occurs in a footnote,
749 we now render it with: `AUTHOR NAME + COMMA + SPACE + REST`.
750 Previously we rendered: `AUTHOR NAME + SPACE + "(" + REST + ")"`.
751 This gives better results. Note that normal citations are still
752 rendered in parentheses.
754 * Use latest citeproc:
756 + citeproc no longer capitalizes notes, so we do it
757 in pandoc when appropriate.
760 * Clarify manual on `--track-changes` (#6801).
762 * Add `doc/jats.md` to document pandoc's handling of JATS
763 (#6794, Albert Krewinkel).
765 * Fix code example in lua-filters.md (#6795).
767## pandoc 2.11.0.4 (2020-10-21)
769 * Commonmark writer: fix regression with fenced divs (#6768).
770 Starting with 2.10.1, fenced divs no longer render with
771 HTML div tags in commonmark output. This is a regression
772 due to our transition from cmark-gfm. This commit fixes it.
774 * Use released version of citeproc. (This fixes a mis-step
775 in the 2.11.0.3 release, which is now deprecated.)
777 * Use latest sylighting, with support for `groovy`.
779 * Document that --html-q-tags requires the smart extension on the reader
782## pandoc 2.11.0.3 (2020-10-20)
784 * Use latest citeproc (closes #6765). This fixes a problem with
785 author-in-text citations for references including both an author
786 and an editor. Previously, both were included in the text, but only
787 the author should be.
789 * With `--citeproc`, ensure that the final period is removed when
790 citations that occur in notes in note-based styles get put in
791 parentheses. See jgm/citeproc#20.
793 * Normalize rewritten image paths with `--extract-media` (#6761).
794 This change will avoid mixed paths like this one when
795 `--extract-media` is used with a Word file:
796 ``. Instead we'll get
797 ``.
799 * Modify `--version` output. Use space more efficiently and report the
800 citeproc and ipynb versions, along with skylighting, texmath, and
801 pandoc-types. Drop the word "default" before "user data directory."
803 * DocBook reader: bibliomisc and anchor support (#6754, Nils Carlson).
804 Also ensure that bibliodiv without a title no longer results in
807 * ConTeXt template: adds `\setupinterlinespace` to fonts larger
808 than normal (#6763, Denis Maier).
810 * LaTeX template: Do not load amssymb if not needed (#6469, Angelo Peronio).
811 See <https://tex.stackexchange.com/a/549938>.
813 * Relax upper bound on hslua, allow hslua-1.3.* (Albert Krewinkel).
817 + Improve explanation of "indent" variable (#6767, Cyrus Yip).
818 + Remove org from list of input formats supporting raw_tex (#6753,
822## pandoc 2.11.0.2 (2020-10-15)
824 * Fix handling of `xdata` in bibtex/biblatex bibliographies (#6752).
826 * Fix some small typos in the API documentation (#6751, Michael Hoffmann).
828 * Require citeproc 0.1.0.2. This fixes a regression from pandoc-citeproc
829 involving spacing between components of a reference in certain styles
832 * Fix typos in comments, doc strings, error messages, and tests
833 (Albert Krewinkel, #6738).
835## pandoc 2.11.0.1 (2020-10-13)
837 * LaTeX reader: support more acronym commands (#6746):
838 `\acl`, `\aclp`, and capitalized versions of already
841 * Commonmark reader: add `pipe_table` extension *after* defaults (#6739).
842 Otherwise we get bad results for non-table, non-paragraph
843 lines containing pipe characters.
845 * Markdown writer: Fix autolinks rendering for gfm (#6740).
846 Previously, autolinks rendered as raw HTML, due to the
847 `class="uri"` added by pandoc's markdown reader.
851 + Escape option values in lstlistings environment (#6742).
852 + Fix handling of `lang` `pt-BR` (#2953). For polyglossia we now
853 use `\setmainlanguage[variant=brazilian]{portuguese}` and for babel
854 `\usepackage[shorthands=off,main=brazilian]{babel}`.
856 * Depend on latest citeproc (0.1.0.1).
858 + This fixes the citation number issue with ieee.csl and other
859 styles that do not explicitly sort bibliographies (#6741). (Pandoc
860 was numbering them by their order in the bibliography file,
861 rather than the order cited, as required by the CSL spec.)
862 + Fixes groupin/collapsing with citation items with prefixes.
864 * default.latex: fix `CSLReference` macro definition.
866 * Fix MANUAL.txt CSL JSON conversion examples.
868 * Fix spelling errors in changelog, MANUAL.txt, `doc/org.md` (#6738).
871## pandoc 2.11 (2020-10-11)
873 * Add `--citeproc` (`-C`) option to trigger built-in citation processing.
874 It is no longer necessary to use the external `pandoc-citeproc`
875 filter. `--citeproc` behaves like a filter and can be positioned
876 relative to other filters as they appear on the command line.
878 The new built-in citation processing uses the citeproc library,
879 a reimplementation of CSL citation processing that fixes many
880 of the shortcomings of pandoc-citeproc. In general, citation
881 processing should work much the same as it did with pandoc-citeproc,
882 but with greater fidelity to CSL styles and better performance.
883 (The tests from the pandoc-citeproc package have been carried
884 over to pandoc.) The following differences should be noted:
886 - At this point, only some of the writers (HTML, ms, LaTeX) properly
887 interpret CSL display styles. You should get decent output in
888 all formats (at least as good as with pandoc-citeproc), but
889 indentation and block-alignment may not be right.
891 - pandoc-citeproc searches the `~/.csl` directory for `.csl`
892 styles. Pandoc instead searches the `csl` subdirectory of
893 the pandoc user data directory (e.g., `~/.pandoc/csl` or
894 `~/.local/share/pandoc/csl`). Users who already keep
895 CSL styles in `~/.csl` may find it convenient to add a
898 - Some of the bibliography formats supported by pandoc-citeproc (via
899 hs-bibutils) are no longer supported: Copac, EndNote,
900 ISI, MEDLINE, MODS, and RIS. If you use one of these formats,
901 you may use the `bibutils` utility to convert to BibLaTeX.
902 We now support only BibTeX, BibLaTeX, CSL JSON,
903 and pandoc's YAML/Markdown analogue of CSL JSON.
905 - pandoc-citeproc would always retrieve the independent parent
906 of a dependent style by doing an HTTP request. pandoc will
907 now first seek the independent parent locally (in the resource
908 path or in the `csl` subdirectory of the pandoc user data
909 directory) before resorting to HTTP. In addition, you may
910 omit the `.csl` extension, e.g. `--csl zoology`.
912 - Using the `--bibliography` option (or including
913 `bibliography` in YAML metadata) no longer triggers
914 citation processing implicitly: one must always use the
915 `--citeproc` option if citation processing is wanted.
917 * Add `csljson` as and input and output format. This allows pandoc
918 to convert between `csljson` and other bibliography formats
919 (e.g. `-f csljson -t markdown -s` or `-f bibtex -t csljson`),
920 and to generate formatted versions of CSL JSON bibliographies
921 (e.g., `pandoc -f csljson --citeproc pl.json -o pl.pdf`).
923 * Added `bibtex`, `biblatex` as input formats. This allows pandoc
924 to convert between BibLaTeX and BibTeX and other bibliography formats,
925 and to generated formatted versions of BibTeX/BibLaTeX bibliographies
926 (e.g., `pandoc -f biblatex --citeproc pl.bib -o pl.pdf`).
928 * Raise informative errors when YAML metadata parsing fails (#6730).
929 Previously the command would succeed, returning empty metadata,
930 with no errors or warnings.
932 * Sort languages in `--list-highlight-languages` output (#6718,
933 Albert Krewinkel). Languages were previously sorted by their
934 long name, which leads to unexpected results).
936 * Add CSS to default HTML template (#6601, Mauro Bieg). This
937 greatly improves the default typography in pandoc's HTML
938 output. The CSS is sensitive to a number of variables
939 (e.g. `mainfont`, `fontsize`, `linestretch`): see the manual for
940 details. To restore the earlier, more spartan output, you can
941 disable this with `-M document-css=false`.
943 * Support `--toc-depth` option for ODT writer (#6696, niszet).
945 * Fix issues with Windows UNC paths with some options (#5127).
947 * Remove `fenced_code_blocks` and `backtick_code_blocks` from allowed
948 `commonmark` and `gfm` extensions. These shouldn't really be counted
949 as extensions, because they can't be disabled in commonmark.
950 Adjust markdown writer to check for the commonmark variant in addition
953 * Add these extensions to `gfm` and `commonmark`:
954 `fenced_code_blocks`, `backtick_code_blocks`, `fenced_code_attributes`.
955 These can't really be disabled in the reader, but they need to be enabled
956 in the writer or we just get indented code.
958 * Make sure proper set of extensions is recognized for `commonmark_x`.
960 * Allow `gfm_auto_identifiers`, `ascii_identifiers` extensions for `docx`.
964 + Add `Maybe FilePath` parameter to `yamlToMeta` [API change].
965 + Export `yamlToRefs` [API change], a version of `yamlToMeta`
966 specialized to references.
967 + Set `citationNoteNum` accurately in citations.
968 + Revise abbreviation support. Don't insert a nonbreaking space after a
969 potential abbreviation if it comes right before a note or citation.
970 This causes problems for citeproc's moving of note citations.
974 + Support missing siunitx commands (#6658).
975 + Support `squared`, `cubed`, `tothe` in siunitx (#6657).
976 + Improved uncertainty handling in slunitx.
977 + Factored out siunitx stuff into separate unexposed module.
978 + Fix improper empty cell filtering (#6689, Christian Despres).
979 + Fix parsing of "show name" in `\newtheorem` (#6734).
980 Previously we were just treating it as a string and
981 ignoring accents and formatting.
982 + Prevent wrong nesting of `\multirow` and `\multicolumn` table
983 cells (#6603, Laurent P. René de Cotret).
984 + Table cell parser not consuming spaces correctly (#6596,
985 Laurent P. René de Cotret).
986 + Change `SIRange` to `SIrange` (#6617, Emerson Harkin).
987 + Allow blank lines inside `\author` (#6324).
991 + Don't squelch space at end of emphasis and other inline elements;
992 instead, move it outside the element (#6719).
993 + Implement table cell alignment (#6698, Nils Carlson).
994 + Implement column span support for tables (#6492, Nils Carlson).
995 + Update list of block level tags (#6610).
1000 + Don't squelch space at end of emphasis and other inline elements;
1001 instead, move it outside the element (#6719).
1005 + Apply `.. class::` directly to following Header rather than creating
1006 a surrounding Div (#6699).
1010 + Allow empty dates in comments and tracked changes (#6726, Diego
1015 + Be less aggressive about using quotes for YAML values,
1016 allowing e.g. a quotation mark or bracket as long as it's not at the
1017 beginning of the line.
1018 + Use double quotes for YAML metadata (#6727).
1019 + Sort YAML metadata keys in Markdown output case-insensitive.
1024 + Support asciidoctor's block figures (#6538, argent0).
1028 + Fix spacing issue with list in definition list.
1029 When a list occurs at the beginning of a definition list definition,
1030 it can start on the same line as the label, which looks bad.
1031 Fix that by starting such lists with an `\item[]`.
1035 + Support intermediate table headers (#5314, Albert Krewinkel).
1036 + Support attributes on all table elements (Albert Krewinkel).
1037 + Render table footers if present (#6314, Albert Krewinkel).
1038 + Fix addition of `doc-biblioentry` role.
1039 + Support colspans and rowspans in HTML tables (#6312, Albert Krewinkel).
1043 + Support internal document links (#5541, Leonard Rosenthol).
1044 + Changed default link state to invisible (#6676, Leonard Rosenthol).
1048 + Better handle list items whose contents are lists (#5948, Michael
1049 Hoffmann). If the first element of a bulleted or ordered list is
1050 another list, then that first item would previously disappear if the
1051 target format is docx.
1052 + Separate adjacent tables (#4315). Word combines adjacent tables,
1053 so to prevent this we insert an empty paragraph between two
1058 + Don't force blank line after headings (#6554).
1060 * OpenDocument writer:
1062 + Implement table cell alignment (#6700 Nils Carson, Mauro Bieg).
1063 + New table cell support with row and column spans (#6682, Nils Carson).
1064 + Syntax highlighting for inline code (#6711, niszet).
1066 * Add Text.Pandoc.Citeproc module, exporting `processCitations`
1067 [API change]. This depends on several other, unexported
1068 modules under Text.Pandoc.Citeproc.
1070 * Add module Text.Pandoc.Writers.CslJson, exporting `writeCslJson`.
1073 * Add module Text.Pandoc.Readers.CslJson, exporting `readCslJson`.
1076 * Add module Text.Pandoc.Readers.BibTeX, exporting `readBibTeX` and
1077 `readBibLaTeX`. [API change]
1079 * Text.Pandoc.Filter: Add `CiteprocFilter` constructor to Filter.
1080 [API change] This runs the processCitations transformation.
1081 We need to treat it like a filter so it can be placed
1082 in the sequence of filter runs (after some, before others).
1083 In FromYAML, this is parsed from `citeproc` or `{type: citeproc}`,
1084 so this special filter may be specified either way in a defaults file
1085 (or by `citeproc: true`, though this gives no control of positioning
1086 relative to other filters).
1088 * Add new exported module Text.Pandoc.Writers.AnnotatedTable [API change]
1089 (#6655, Christian Despres). This module (which should generally
1090 be imported qualified to avoid name conflicts) provides a
1091 `Table` type that mirrors the structure of a pandoc `Table`,
1092 but with added inferred information so that the writers do not have to
1093 lay out tables themselves. The `toTable` and `fromTable` functions convert
1094 between an annotated `Table` and a regular pandoc `Table`. In addition to
1095 producing a `Table` with coherent and well-formed annotations, the
1096 `toTable` function also normalizes its input table like the table
1097 builder does. Tests ensure that `toTable` normalizes tables exactly
1098 like the table builder, and that its annotations are coherent.
1100 * Text.Pandoc.Logging:
1102 + Remove unused `CouldNotParseYamlMetadata` constructor for `LogMessage`
1104 + Add `CiteprocWarning` constructor to `LogMessage` [API change].
1106 * Text.Pandoc.Readers.Metadata: export `yamlBsToRefs` [API change].
1107 These allow specifying an id filter so we parse only references
1108 that are used in the document.
1110 * Text.Pandoc.Parsing:
1112 + Export ParseError [API change].
1113 + Add `stateInNote` and `stateNoteNumber` to `ParserState`
1114 [API change]. These are used to populate note numbers for citation
1117 * Fix apparent typos in sample.lua (#6729, William Lupton).
1118 Also make the writer less aggressive in escaping quotes.
1120 * Text.Pandoc.Options:
1122 + `defaultMathJaxURL`: use `tex-chtml-full` instead of `tex-mml-chtml`
1123 (#6599, Kolen Cheung). This drops the MathML support (which we
1124 don't need for HTML math rendering) and includes the full JavaScript,
1125 which makes it possible to use `--self-contained` (though there may
1126 still be issues if the required math fonts aren't available). This
1127 change should also reduce latency in pages with lots of formulas.
1128 + Add `/tex-chtml-full.js` to `defaultMathJaxURL` (#6593) Previously we
1129 added this in processing command line options, but not in processing
1130 defaults files, which was inconsistent.
1132 * epub.css: Fix cover page selectors and add note explaining their use
1135 * Add data files needed for Text.Pandoc.Citeproc: these include
1136 `default.csl` in the data directory and a `citeproc` directory that
1137 is only used at compile-time for biblatex localizations. Note that we've
1138 added `file-embed` as a mandatory rather than a conditional
1139 dependency, because of the biblatex localization files.
1143 + Add SimpleTable for backwards compatibility (#6575, Albert Krewinkel).
1144 A new type `SimpleTable` is made available to Lua filters. It is
1145 similar to the `Table` type in pandoc versions before 2.10;
1146 conversion functions from and to the new Table type are provided.
1147 Old filters using tables now require minimal changes and can use, e.g.,
1149 if PANDOC_VERSION > {2,10,1} then
1150 pandoc.Table = pandoc.SimpleTable
1155 function Table (tbl)
1156 tbl = pandoc.utils.to_simple_table(tbl)
1158 return pandoc.utils.from_simple_table(tbl)
1161 to work with the current pandoc version.
1163 + Make `attr` argument optional in `Table` constructor (Albert Krewinkel).
1164 This changes the Lua API. It is highly unlikely for this change to affect
1165 existing filters, since the documentation for the new Table constructor
1166 (and type) was incomplete and partly wrong before. The Lua API is now
1167 more consistent, as all constructors for elements with attributes now
1168 take attributes as the last parameter.
1172 * Add a dedicated Citations section which consolidates the information
1173 the manual used to contain about citation processing, and incorporates
1174 some information formerly found in the pandoc-citeproc man page.
1175 + Add note about lualatex using `selnolig`.
1176 + Remove duplicate `seriespage` (#6568, Blake Eryx).
1177 + Remove lists of support extensions for markdown variants (#6604).
1178 Instead, offer the advice to use `--list-extensions=FORMAT`.
1179 + Fix position of attributes in header (Albert Krewinkel).
1180 + Delete obsolete section on compact and loose lists (#6684).
1183 * doc/lua-filters.md:
1185 + Add info on how to debug Lua filters (#6732, Ian Max Andolina).
1186 + Document Underline type and constructor (Albert Krewinkel).
1187 + Document `body` field (Albert Krewinkel).
1188 + Add missing header attribute
1189 + Add missing Link.title field (Albert Krewinkel).
1190 + Make the setting-the-date example conditional (the-solipsist).
1191 This makes the example a bit more realistic.
1192 + Remove outdated link table example.
1196 + Add section on tables (Albert Krewinkel).
1197 + Add section on handling of unknown directives (Albert Krewinkel).
1199 * CONTRIBUTING.md: fix typo (#6584, Dmitry Volodin).
1201 * Use golden test framework for command tests. This means that
1202 `--accept` can be used to update expected output.
1204 * Use the `smart` extension when generating pandoc's man page (#6613).
1206 * Release-candidate: don't build windows i386.
1207 So far we haven't been able to figure out how to get
1208 stack to use a 32-bit ghc.
1210 * Use `null` instead of deprecated `Builder.isNull`.
1214 + Fix macospkg target to fetch target from S3 artifacts.
1215 + Fix pandoc-templates target to include all partials.
1217 * Remove duplicated dependency in pandoc.cabal (#6591, Felix Yan).
1219 * Sort build depends in pandoc.cabal alphabetically (#6691,
1222 * Add .travis.yml for macos release candidate build (#6622).
1223 We need to build the release candidate on Travis rather
1224 than GitHub actions, because GH has macos 10.15, and
1225 binaries compiled on that OS will not work with 10.13.
1226 This build is only triggered on `rc/*` branches.
1228 * Remove instructions for building pandoc-citeproc from CI and
1229 release binary build instructions. We will no longer distribute
1232 * Fix math rendering in trypandoc (this broke after
1233 commit d8ad766d17603784b86fc5c2e1b22864125d04d1).
1235 * Use latest versions of skylighting, commonmark (#6589),
1236 comonmark-extensions, commonmark-pandoc, texmath.
1238 * Relax version bounds for hslua, hslua-module-text, bytestring.
1240 * Use released pandoc-types 1.22. This changes the JSON
1241 encoding slightly for the new table types introduced
1242 in 1.21, so they're more consistent with the rest.
1243 Developers of libraries for pandoc filters will want
1246 * Fix hlint suggestions, update hlint.yaml (#6680, Christian Despres).
1248 * Code cleanup (#6678, Joseph C. Sible).
1250 * Add haddocks to functions in Text.Pandoc.Writers.Shared (Albert
1253 * Remove duplicate `tshow` definition.
1255 * Linux release candidate build: use ghc-musl container. This simplifies
1256 our build process (over using a customized alpine container).
1259## pandoc 2.10.1 (2020-07-23)
1261 * Add `commonmark_x` output format. This is `commonmark` with a number
1262 of useful pandoc extensions enabled.
1264 * Many more extensions now work with `commonmark` and `gfm`.
1266 * Add generic `attributes` extension. This allows attributes to
1267 be added to any block or inline element in a uniform way. Since
1268 the Pandoc AST doesn't include attributes on each element type,
1269 the attributes will sometimes be added by creating a surrounding
1270 Div or Span container. Currently this extension is only
1271 compatible with the `commonmark` and `gfm` readers.
1273 To add an attribute to a block-level element, e.g. a paragraph,
1274 put it before the block:
1277 This is a paragraph.
1279 Multiple attributes may be used and will be combined:
1282 {.blue .warning key="val"}
1283 This is a paragraph.
1285 To add an attribute to an inline-level element, put it
1286 immediately after the element:
1288 *emphasized text*{.special}
1291 * Support `--number-sections` for docx output (#1413).
1295 + Support `\SIRange` reader (#6418, Emerson Harkin).
1296 + Support table col-span and row-span (#6311, Laurent P. René de Cotret).
1297 Supports `\multirow` and `\multicolumn`.
1298 + Support amsthm: `\newtheorem`, `\theoremstyle`, and theorem and
1299 proof environments, including labels and references. The only thing
1300 that is unsupported is the second optional argument, which causes
1301 numbering to be reset after the specified series is incremented.
1302 + Moved some code to T.P.LaTeX.Parsing. We need to reduce the size
1303 of the LaTeX reader to ease compilation on resource-limited systems.
1307 + Fix csv tables with multiline cells (#6549).
1308 + Fix spurious newlines in some attributes from directives.
1309 + Avoid extra newline in included code blocks.
1311 * Commonmark reader:
1313 + Switch from cmark-gfm to commonmark-hs for commonmark and gfm
1314 parsing. This avoids depending on a C library
1315 and allows us to support more pandoc extensions for
1316 `commonmark` and `gfm`.
1320 + Parse releaseinfo as metadata (#6542).
1324 + Only use `bCs/iCs` on runs with `rtl` or `cs` property (#6514, Nikolay
1326 + Code cleanup/refactoring (Nikolay Yakimov).
1328 * Org reader (Albert Krewinkel):
1330 + Respect export setting which disables entities
1331 MathML-like entities, e.g., `\alpha`, can be disabled with the
1332 `#+OPTION: e:nil` export setting (Albert Krewinkel).
1333 + Respect export setting disabling footnotes. Footnotes can be removed
1334 from the final document with the `#+OPTION: f:nil` export setting.
1335 + Respect tables-excluding export setting. Tables can be removed from
1336 the final document with the `#+OPTION: |:nil` export setting.
1340 + Move `asciify` out of `escapeString`. Otherwise `unsmartify`
1341 doesn't catch quotes that have already been turned to entities.
1342 + Add `writeCommonmark` (new exported function, API change).
1343 + Use unicode super/subscript characters when possible if the
1344 `superscript` or `subscript` extension or `raw_html` aren't available.
1345 + Render caption as following paragraph when `table_caption` extension
1347 + Use numerical labels for reference links that are longer
1348 than 999 characters or contain square brackets, for conformity
1349 with commonmark (#6560).
1351 * Commonmark writer:
1353 + Instead of using cmark-gfm, use `writeCommonmark` from the
1354 Markdown writer. This function calls the markdown writer
1355 with appropriate extensions and a few small modifications
1356 (e.g. not requiring backslashes before spaces inside
1357 super/subscripts). With this change `comonmark` and
1358 `gfm` output can be used with a wider selection of
1361 * Jira writer: keep image caption as alt attribute (#6529, Albert
1366 + Improve alt-text/caption handling for HTML5 (#6491, Albert Krewinkel).
1367 Screen readers read an image's `alt` attribute and the figure caption,
1368 both of which come from the same source in pandoc. The figure caption is
1369 hidden from screen readers with the `aria-hidden` attribute. This
1370 improves accessibility. For HTML4, where `aria-hidden` is not allowed,
1371 pandoc still uses an empty `alt` attribute to avoid duplicate contents.
1375 + Fix code highlighting with blank lines. Previously blank lines
1376 were simply omitted from highlighted code.
1377 + Escape starting periods in ms writer code blocks (#6505, Michael
1378 Hoffmann). If a line of ms code block output starts with a period (.),
1379 it should be prepended by `\&` so that it is not interpreted as a roff
1382 * Text.Pandoc.Extensions:
1384 + Add `raw_markdown` extension (which only affects `ipynb`
1386 + Trim down `githubMarkdownExtensions`.
1387 Previously it included all of the following, which make
1388 sense for the legacy `markdown_github` but not for `gfm`,
1389 since they are part of base commonmark and thus
1390 can't be turned off in `gfm`:
1392 - `Ext_all_symbols_escapable`
1393 - `Ext_backtick_code_blocks`
1394 - `Ext_fenced_code_blocks`
1395 - `Ext_space_in_atx_header`
1396 - `Ext_intraword_underscores`
1397 - `Ext_lists_without_preceding_blankline`
1398 - `Ext_shortcut_reference_links`
1400 These have been removed from `githubMarkdownExtensions`, though
1401 they're still turned on for legacy `markdown_github`.
1402 + Add `Ext_attributes` constructor for `Extension` [API change].
1404 * LaTeX template: use selnolig to selectively suppress ligatures with
1407 * Benchmark bytestring readers (Nikolay Yakimov).
1411 + Update using-the-pandoc-api.md (favonia).
1412 + Fix Typos in lua-filters.md (tajmone).
1413 + Rewrite Raw HTML/TeX section in MANUAL.txt to avoid duplicate
1414 headings for the extensions.
1415 + Fix typo in MANUAL.txt (Benjamin Wuethrich).
1416 + Remove duplicate 'titlepage' in MANUAL.txt (Blake Eryx).
1417 + CONTRIBUTING.md: Advertise the official nightlies in GitHub actions.
1418 Replaces #6500, thanks to @ickc.
1422## pandoc 2.10 (2020-06-29)
1424 * Use pandoc-types 1.21. This adds two things:
1426 + A native Underline constructor for Inline (#6277, Vaibhav Sagar).
1427 + More expressive types for tables (#1024, Christian Despres).
1428 Tables can now take attributes; and rowspans and colspans,
1429 column headers, multiple row headers, table head and foot
1430 can all be represented. (Note, however, that reader and
1431 writer support for these features is still lacking, so
1432 most users won't see any differences in table conversion
1433 yet. These changes just lay the foundation for further
1436 * Support new Underline element in readers and writers (#6277,
1439 * Support new Table type (Christian Despres).
1440 The Builder.simpleTable now only adds a row to the TableHead
1441 when the given header row is not null. This uncovered an
1442 inconsistency in the readers: some would unconditionally
1443 emit a header filled with empty cells, even if the header
1444 was not present. Now every reader has the conditional
1445 behaviour. Only the XWiki writer depended on the header row
1446 being always present; it now pads its head as necessary.
1448 * Add an option to disable certificate validation (#6156, Cédric Couralet,
1449 Cécile Chemin, Juliette Fourcot). This commit adds the option
1450 `--no-check-certificate`, which disables certificate checking when
1451 resources are fetched by HTTP.
1453 * Unify defaults and markdown metadata parsers (#6328, Nikolay
1454 Yakimov). Clean up code in Text.Pandoc.Readers.Metadata and
1455 properly handle errors in `yamlToMeta`. This fixes parsing
1456 of Boolean fields in metadata withinin defaults files and reduces
1461 + Implement `<procedure>` (#6442, Mathieu Boespflug).
1462 + Implement `<phrase>` (#6438, Mathieu Boespflug).
1463 + Treat envar and systemitem like code (#6435, Mathieu Boespflug).
1464 + Implement `<replaceable>` (#6437, Mathieu Boespflug)
1465 + Map `<simplesect>` to unnumbered section (#6436, Mathieu Boespflug).
1469 + Handle "label" element in section title (#6288).
1470 + Parse abstract element into metadata field of same name
1471 (#6480, Albert Krewinkel).
1473 * Jira reader (Albert Krewinkel):
1475 + Resolve multiple parsing problems, including issues with empty
1476 table cells, faulty recognition of closing emphasis characters, and
1477 parsing of image attributes (#6212, #6219, #6220).
1478 + Two consecutive markup chars are now parsed verbatim (#6343);
1479 styled text must not be empty.
1480 + Newlines are no longer allowed within styled text (#6325).
1481 + Links to anchors are now parsed as links (#6407).
1482 + Retain image attributes (#6234). Jira images attributes as in
1483 `!image.jpg|align=right!` are retained as key-value pairs. Thumbnail
1484 images, such as `!example.gif|thumbnail!`, are marked by a
1485 `thumbnail` class in their attributes.
1486 + Use Underline for inserted text (#6237). Previously, the span was
1487 marked with the non-standard class `inserted`.
1488 + Improve icon conversion for `(/)`, `(x)`, `(!)`, `(?)`
1489 `(+)`, `(-)`, `(off)`, `(*)`. (#6236, #6264).
1490 + Support citations, attachment links, and user links (#6231, #6238,
1492 + Resolve parsing issues of blockquote, color (#6233, #6235).
1496 + Parse attributes into table attributes.
1497 + Support `<bdo>` (#5794, Tristan de Cacqueray).
1498 + Add `summary` to list of block-level HTML tags (#6385).
1499 This improves support for summary/details inside Markdown.
1500 NOTE: you need to include a blank line before the closing
1501 `</details>`, if you want the last part of the content to
1502 be parsed as a paragraph.
1503 + Fix parsing unclosed th elements in a table (#6247).
1505 * Commonmark reader: Implement `implicit_figures` extension (#6350).
1509 + Fix inline code in lists (#6284, Nikolay Yakimov).
1510 Previously inline code containing list markers was sometimes
1512 + Don't require blank line after grid table (#6481).
1513 This allows grid tables to be enclosed in fenced divs with no
1514 intervening blank lines.
1518 + Don't parse beyond `\end{document}` (#6380).
1519 This required some internal changes to `\subfile` handling.
1520 + Better handling of `\lettrine`. SmallCaps instead of Span
1521 for the part after the initial capital. Ensure that both
1522 arguments are parsed, so that in Markdown both
1523 are treated as raw LateX. (Closes #6258.)
1525 * Org reader (Albert Krewinkel):
1527 + Recognize images with uppercase extensions (#6472).
1528 + Keep unknown keyword lines as raw org. The lines of unknown
1529 keywords, like `#+SOMEWORD: value` are no longer read as metadata,
1530 but kept as raw `org` blocks. This ensures that more information
1531 is retained when round-tripping org-mode files; additionally,
1532 this change makes it possible to support non-standard org
1533 extensions via filters.
1534 + Unify keyword handling. Handling of export settings and other
1535 keywords (like `#+LINK`) has been combined and unified.
1536 + Support `LATEX_HEADER_EXTRA` and `HTML_HEAD_EXTRA`
1537 settings. These export settings are treated like their non-extra
1538 counterparts, i.e., the values are added to the `header-includes`
1540 + Allow multiple `#+SUBTITLE` export settings. The values of all
1541 lines are read as inlines and collected in the `subtitle`
1543 + Read `#+INSTITUTE` values as text with markup. The value is
1544 stored in the `institute` metadata field and used in the
1545 default beamer presentation template.
1546 + The behavior of the `#+AUTHOR` and `#+KEYWORD` export
1547 settings has changed: Org now allows multiple such lines
1548 and adds a space between the contents of each line. Pandoc
1549 now always parses these settings as meta inlines; setting
1550 values are no longer treated as comma-separated lists.
1551 Note that a Lua filter can be used to restore the previous
1553 + Read description lines as inlines (#6485). `#+DESCRIPTION` lines
1554 are now treated as text with markup. If multiple such
1555 lines are given, then all lines are read and separated by soft
1557 + Honor tex export option (#4070). The `tex` export option can be set
1558 with `#+OPTION: tex:nil` and allows three settings:
1559 `t` (the default) causes LaTeX fragments to be parsed as TeX or added
1560 as raw TeX. `nil` removes all LaTeX fragments from the document.
1561 `verbatim` treats LaTeX as text.
1566 + Pass arbitrary attributes through in code blocks (#6465).
1567 Exceptions: name (which becomes the id), class (which becomes the
1568 classes), and number-lines (which is treated specially to fit
1569 with pandoc highlighting).
1570 + Handle `date::` directive (#6276).
1572 * Textile reader: support `pre.` for code blocks (#6454).
1576 + Implement `raw_markdown` extension (#5408). Specifying
1577 `-f ipynb+raw_markdown` will cause Markdown cells
1578 to be represented as raw Markdown blocks, instead of being
1579 parsed. This is not what you want when going from `ipynb`
1580 to other formats, but it may be useful when going from `ipynb`
1581 to Markdown or to `ipynb`, to avoid semantically insignificant
1582 changes in the contents of the Markdown cells that might
1583 otherwise be introduced.
1584 + Handle application/pdf output as image (#6430).
1585 + Properly handle image/svg+xml as an image (#6430).
1589 + Distinguish between docx parsing and docx container unpacking errors.
1593 + Fix `gfm_auto_identifiers` so that `-` is not replaced by `_` (#6335).
1597 + Add nested syntax highlighting (#6256, Vlad Hanciuta).
1598 Nested syntaxes are specified like this:
1604 The preformatted code block parser has been extended to check if the
1605 first attribute of the block is not a `key=value` pair, and in that
1606 case it will be considered as a class.
1609 * Jira writer (Albert Krewinkel):
1611 + Always escape braces (#6478). Braces are now always escaped, even
1612 within words or when surrounded by whitespace. Jira and
1613 Confluence treat braces specially.
1614 + Convert Underline to inserted text (`+inserted+`).
1615 + Add image attributes (#6234). Image attributes are added
1616 to the output as image parameters. If the image has a
1617 class "thumbnail", then a thumbnail image is generated;
1618 all other attributes are discarded in this case.
1622 + Ensure that `-M csquotes` works even in fragment mode (#6265).
1623 + Escape `^` specially for listings (#6460).
1624 + Create hypertarget for links with identifier (#6360).
1625 + Distinguish between single and double quotes when using enquote
1626 package (#6457, dbecher-ito).
1627 + Add support for customizable alignment of columns in beamer (#6331,
1629 + Add support for customizable alignment of columns in beamer
1630 (#4805, #4150, andrebauer).
1634 + Use CSS in favor of `<br>` for display math (#6372)
1635 Some CSS to ensure that display math is
1636 displayed centered and on a new line is now included
1637 in the default HTML-based templates; this may be
1638 overridden if the user wants a different behavior.
1642 + Clean-up Div handling (Albert Krewinkel).
1646 + Enable column and row bands for tables (#6371).
1647 This change will not have any effect with the default style.
1648 However, it enables users to use a style (via a reference.docx)
1649 that turns on row and/or column bands.
1651 * OpenDocument (and ODT) writer:
1653 + Add custom-style "Abstract" in metadata abstract.
1654 This ensures that the abstract is rendered with style Abstract.
1655 + Enable custom-style attribute on a Div.
1656 This allows you to apply a custom style to contained paragraphs.
1660 + Add id of figure to enclosed image.
1661 + Add personname element to docbook author (#6244).
1665 + Properly handle cover-image containing spaces (#6391).
1669 + Ensure consistent padding for pipe tables (#6240).
1670 + Avoid unnecessary escapes before intraword `_` when
1671 `intraword_underscores` extension is enabled (#6296).
1675 + Properly handle images with same alt text (#6194).
1676 Previously we created duplicate references for these in rendering RST.
1680 + Add blank line after Div (#6308).
1684 + Support Haddock tables (Joe Hermaszewski).
1685 See this PR on Haddock for details on the table format:
1686 <https://github.com/haskell/haddock/pull/718>.
1688 * PowerPoint writer (Jesse Rosenthal):
1690 + Write math input verbatim in speaker notes (#6301).
1691 OMML in speaker notes would lead to corrupt PowerPoint output. We now
1692 output the OMML verbatim as LaTeX in the speaker notes.
1694 * LaTeX template: Make polyglossia package options list-aware
1695 (#6444, Frederik Elwert).
1697 * Reveal.js template:
1699 + Update template for reveal.js 4.0.0 (#6390, Salim B).
1700 + Update template with newly available options (#6347, Jake Zimmerman).
1701 + Use CDN version of revealjs v4 by default (#6408).
1703 * opendocument template: Add abstract and subtitle to opendocument
1706 * reference.odt: clean up styles. Add Abstract.
1707 Change Author, Date to centered paragraphs with no character
1710 * epub.css: wrap overlong lines in highlighted code blocks (#6242).
1711 This fixes a problem in iBooks v2.4 with our earlier
1712 horizontally scrolling code blocks. The problem seems to
1713 be a bug in iBooks, not pandoc, but since iBooks is a major
1714 target we're changing pandoc's default behavior so that
1715 pandoc-produced epubs work on that platform.
1719 + Use `--enable-local-file-access` in invoking `wkhtmltopdf` (#6474).
1720 `wkhtmltopdf` changed in recent versions to require this for
1721 access to local files. This fixes PDF via HTML5 with `--css`.
1722 + Send verbose output to stderr, not stdout (#6483).
1724 * Text.Pandoc.MIME: Fix MIME type for TrueType fonts in EPUBs
1725 (#6464, Michael Reed).
1727 * Text.Pandoc.Shared:
1729 + `makeSections`: omit number attribute when unnumbered class
1730 is present (#6339). Previously the attribute was included but given
1731 an empty value, and this caused the table of contents creation
1732 functions in Text.Pandoc.Writers.Shared to think these items had
1733 numbers, which meant that they were included in the TOC even if the
1734 `unlisted` class was used.
1735 + Deprecate `underlineSpan` in Shared in favor of
1736 `Text.Pandoc.Builder.underline` (Vaibhav Sagar).
1737 + `renderTags'`: use self-closing tag for col element (#6295).
1739 * Text.Pandoc.UUID: Fix `getRandomUUID`, which previously would
1740 return the same value twice in a row. Make `getRandomUUID`
1741 polymorphic in PandocMonad. Remove `getUUID` (#6228, Joseph C. Sible).
1743 * Text.Pandoc.Class: Generalize `PandocIO` functions to `MonadIO`.
1745 * Fixed Katex standalone script (#6399, Lucas Escot).
1746 Global macros are now persistent when using the HTML Writer with the
1749 * Lua subsystem (Albert Krewinkel):
1751 + Use new type PandocLua for all pandoc Lua operations (API change).
1752 The new type `PandocLua` is an instance of the `PandocMonad` typeclass
1753 and can thus be used in a way similar to `PandocIO`.
1754 + Use PandocError for exceptions in Lua subsystem (API change).
1755 The PandocError type is used throughout the Lua subsystem. All Lua
1756 functions throw an exception of this type if an error occurs. The
1757 `LuaException` type is removed and no longer exported from
1758 `Text.Pandoc.Lua`. In its place, a new constructor `PandocLuaError`
1759 is added to PandocError.
1761 * Lua filters: improve error messages for failing filters (#6332,
1762 Albert Krewinkel). Print the Lua error properly instead of
1763 displaying their `show` string.
1765 * Use latest skylighting. This fixes a bug with lua multiline
1766 comments (and may improve handling of other syntaxes as well).
1767 IT also adds `aria-hidden="true"` to the empty a elements, which
1768 helps people who use screen readers.
1770 * Use latest texmath.
1772 * Require latest doctemplates 0.8.2.
1773 This adds support for template pipes `first`, `rest`,
1774 `last`, `allbutlast`.
1776 * Revert 0e48a02 and dependency on base-noprelude, which hasn't
1777 been updated for ghc 8.10 (see #6187).
1779 * Dependency adjustments:
1781 + Allow haddock-library 1.9.x.
1782 + Allow hslua 1.1 (#6243, Felix Yan).
1783 + Allow base64-bytestring 1.1.
1784 + Use latest jira-wiki-markup.
1785 + Allow http-client 0.7.
1786 + Allow tasty 1.3.x.
1787 + Allow aeson 1.5 (#6400, Felix Yan).
1788 + Remove unused dependency `vector` (#6462, Laurent P. René de Cotret).
1789 + Bump QuickCheck upper bound.
1791 * Significant code cleanup and simplification (Joseph C. Sible, #6223,
1792 #6209, #6225, #6229, #6226, #6340).
1794 * Remove unnecessary hlint ignores (#6341, Joseph C. Sible).
1796 * Remove obsolete RelaxedPolyRec extension (#6487, Nikolay Yakimov).
1798 * trypandoc improvements (Mike Tzou):
1800 + Add standalone option to the command text (#6210).
1801 + Update third party libraries.
1805 + Clarify template partial naming (#6476, Mauro Bieg).
1806 + Describe `jira` as "Jira/Confluence wiki markup" (#6351, Albert
1807 Krewinkel). In the past, Jira's wiki markup was also used by -- and
1808 could be imported into -- Atlassian Confluence.
1809 + Add link to print-css.rocks (#6272, Mauro Bieg).
1810 + Clarify pipe table column width adjustment (#6254).
1811 + Fix ATX header syntax.
1812 + Fix misleading note about image size conversions (#6353).
1813 + Update links to reveal.js documentation (#6386, Salim B).
1814 + Separate adjacent verbatim code blocks (#6307, tom-audm).
1818 + Document behavior of `smart` extension (#4387, Albert Krewinkel).
1819 + Describe all supported export options in detail.
1823 + Fix description of BulletList Lua type (Levi Gruspe).
1824 + Use pandoc.system module in TikZ example (Albert
1825 Krewinkel). Showcase temporary directory handling with
1826 `with_temporary_directory` and `with_working_directory`.
1828 * INSTALL.md: fix FreeBSD port link (#6422, Mo).
1829 The FreeBSD port was renamed from pandoc to hs-pandoc in 2010.
1830 The old pandoc port is still at version 1.5.1.1
1832 * Propagate `(DY)LD_LIBRARY_PATH` in tests (#6376, Lila).
1834 * Bump `cabal-version` to 2.2 (#6377).
1836 * Make it possible to compile using Stack on NixOS (#6439, Mathieu
1839 * CI action to check for commit message length (Nikolay Yakimov, #6398).
1842## pandoc 2.9.2.1 (2020-03-23)
1844 * Markdown reader: Fix table alignment when heading begins with t (#6153).
1845 Due to a typo (`t` instead of `\t`) we were center aligning column
1846 headings that begin with a lowercase `t`!
1848 * Text.Pandoc.Readers.Roff:
1850 + Fix parsing of `\.` in man/ms readers (#6175).
1851 Previously due to a typo it was being parsed as `` ` ``.
1852 + Fix parsing of `\'` in man/ms readers (#6175). It was being parsed
1855 * Jira reader (Albert Krewinkel):
1857 + Fix parsing of tables without preceding blankline (#6198).
1858 A bug was fixed which caused faulty parsing if a table was not
1859 preceded by a newline and the first table cell had no space
1860 after the initial `|` characters.
1861 + Fix parsing of strikeout, emphasis (#6196). A bug was fixed which
1862 caused non-emphasized text containing digits and/or non-special
1863 symbols (like dots) to sometimes be parsed incorrectly.
1864 + Support colored inline text, indented lists (#6183, #6184).
1868 + Fix definition lists so indent even when paragraph indent is
1869 set to 0 (as is the default). Also ensure indent for display math
1870 that falls back to TeX.
1871 + Use `.QS/.QE` instead of `.RS/.RE` for block quotes.
1873 * EPUB writer: fix regression on detection of front/back/bodymatter
1874 (#6170). This bug caused sections with epub:type `dedication` to be
1875 misplaced in bodymatter instead of frontmatter as specified
1876 in the manual. The same problem would affect other epub:types.
1877 The pattern matching needed to be changed with the use of
1880 * AsciiDoc writer: remove redundant `otherwise` guard in
1881 `inlineToAsciiDoc` (#6146, Ryan Scott).
1883 * Text.Pandoc.Class:
1885 + Fix missing import when data files are not embedded (Albert Krewinkel).
1886 + Subdivide Text.Pandoc.Class into small unexported modules
1887 and ensure that all functions have Haddock documentation (#6106,
1889 + Finer grained imports of Text.Pandoc.Class submodules (#6203, Albert
1892 * Text.Pandoc.XML: Add to list of HTML5 attributes:
1893 `allow`, `autocapitalize`, `decoding`, `enterkeyhint`,
1894 `imagesizes`, `imagesrcset`, `loading`.
1896 * Use implicit Prelude (#6187, Albert Krewinkel).
1897 The previous behavior was introduced as a fix for #4464. It seems that
1898 this change alone did not fix the issue, and `stack ghci` and `cabal
1899 repl` only work with GHC 8.4.1 or newer, as no custom Prelude is loaded
1900 for these versions. Given this, it seems cleaner to revert to the
1903 * Always use custom prelude (#6187, Albert Krewinkel).
1904 Previously, the custom prelude was used only with older GHC versions, as
1905 a workaround for problems with ghci. The ghci problems are resolved by
1906 replacing package `base` with `base-noprelude`, allowing for consistent
1907 use of the custom prelude across all GHC versions.
1909 * Remove outdated checks for no longer supported base versions
1912 * PDF via wkhtmltopdf: put user-specified options last (#6171).
1913 Certain options (e.g. `cover`) need to come after flags on
1916 * Text.Pandoc.App: set resource path at the beginning so it can affect
1917 things like include-in-header (#5982).
1919 * Change macOS release candidate CI process so that notarized
1920 packages can be produced (#6169).
1922 * Make MANUAL more explicit about nonbreaking space handling by
1923 `all_symbols_escapable` (#6154, Fabien Schurter).
1925 * trypandoc (Mike Tzou):
1927 + Add checkbox for standalone option (#6189).
1928 + Use strict mode for JavaScript code (#6188).
1929 + Fetch resources over https (#6188).
1930 + Remove unnecessary attributes on style, script elements (#6188).
1932 * Use details tag to make GitHub releases changelog collapsible.
1934 * Update filter code in doc/filters.md so it works with latest pandoc
1937 * linux/Dockerfile: upgrade to alpine 3.11 (#6180, Albert Krewinkel).
1938 This is used to build the static linux binaries.
1941## pandoc 2.9.2 (2020-02-15)
1943 * Add `csv` as an input format (#6100). The CSV table is converted into a
1944 pandoc simple table. A new module Text.Pandoc.Readers.CSV
1945 exports `readCSV` [API change].
1947 * Introduce new format variants for JATS writer (#6014, Albert Krewinkel):
1949 - `jats_archiving` for the "Archiving and Interchange Tag Set",
1950 - `jats_publishing` for the "Journal Publishing Tag Set", and
1951 - `jats_articleauthoring` for the "Article Authoring Tag Set."
1953 The `jats` output format is now an alias for `jats_archiving`.
1954 The module Text.Pandoc.Writers.JATS now exports
1955 `writeJatsArchiving`, `writeJatsPublishing`, and
1956 `writeJatsArticleAuthoring`, as well as the legacy
1957 `writeJATS` [API change].
1959 * `--defaults`: Support `bibliography` and `csl` fields.
1960 Move `addMeta` from Text.Pandoc.App.CommandLineOptions to
1961 Text.Pandoc.App.Opt (internal change).
1963 * Add timing info for filters in `--verbose` mode (#6112).
1964 When verbose mode is specified (verbosity == INFO), print a
1965 notice when running a filter and when a filter completes (including
1970 + Allow `&` in LaTeX citation keys (#6110).
1971 + Improve caption and label parsing.
1972 + Don't emit empty Span elements for labels.
1973 + Put tables with labels in a surrounding Div.
1974 + Resolve `\ref` to table numbers (#6137).
1975 + Skip comments in more places where this is needed (#6114).
1976 + Allow beamer overlays for all commands in all raw tex (#6043).
1977 This affects parsing of raw tex in LaTeX and in Markdown and
1979 + Improve parsing of raw environments (#6034). If parsing fails
1980 in a raw environment (e.g. due to special characters like unescaped
1981 `_`), try again as a verbatim environment, which is less sensitive to
1982 special characters. This allows us to capture special environments
1983 that change catcodes as raw tex when `-f latex+raw_tex` is used.
1987 + Add highlight directive (#6140, Lucas Escot).
1991 + Prevent triple `[[[` which confuses MediaWiki (#6119).
1995 + Don't parse `data-id` as `id` attribute. And similarly don't
1996 parse any `data-X` as `X` when `X` is a valid HTML attribute.
2000 + Simplify parsing of sub- and superscripts (#6127, Albert Krewinkel).
2001 Speeds up parsing of single-word, markup-less sub- and superscripts.
2005 + Group biblatex citations even with prefix and suffix (#5849, Ethan
2006 Riley). Previously biblatex citations were only grouped if there
2007 was no prefix. This patch allows them to be grouped in subgroups split
2008 by prefixes and suffixes, which allows better citation sorting.
2009 + Fix regression in handling of columns in beamer slides (#6033).
2010 Columns in title slides were causing problems with
2012 + Fix duplicate frame classes in LaTeX/Beamer output (#6107).
2016 + Fix duplicate attributes on headings (#6062), regression from 2.7.x.
2017 + Fix `--number-offset` with HTML TOC. Eventually it would be worth
2018 adding a parameter to `makeSections` so this could be done at that
2019 level; then it would also affect other writers that construct
2021 + reveal.js: restore old behavior for 2D nesting (#6032).
2022 The fix to #6030 actually changed behavior, so that the
2023 2D nesting occurred at slide level N-1 and N, instead of
2024 at the top-level section. This commit restores the v2.7.3 behavior.
2025 If there are more than 2 levels, the top level is horizontal
2026 and the rest are collapsed to vertical.
2027 + reveal.js: ensure that pauses work even in title slides (#5819).
2031 + Fix regression: spurious dots in markdown_mmd metadata output (#6133).
2035 + Fix regression with Compact style on tight lists (#6072).
2036 Starting in 2.8, the docx writer no longer distinguishes between tight
2037 and loose lists, since the Compact style is omitted. This is a
2038 side-effect of the fix to #5670, as explained in the changelog. This
2039 patch fixes the problem by extending the exception currently offered to
2040 Plain blocks inside tables to Plain blocks inside list items.
2044 + Fix output of table headers (Albert Krewinkel, #6035).
2046 * Add Text.Pandoc.Image with unexported svgToPng.
2048 * Text.Pandoc.XML: Export `html5Attributes`, `html4Attributes`,
2049 `rdfaAttributes` (formerly unexported in Text.Pandoc.Writers.HTML).
2052 * Text.Pandoc.Shared: Export a new function `findM` (#6125,
2055 * Text.Pandoc.Logging: Add `RunningFilter`, `FilterCompleted`
2056 constructors to LogMessage [API change].
2058 * Text.Pandoc.CSV: fix bug in CSV parser; previously an extra blank record
2059 would sometimes be inserted at the end.
2061 * LaTeX template: add space option to xeCJK with PassOptionsToPackage
2062 (#6002). Otherwise we can get a clash with documentclasses that
2063 already load the package.
2067 + Allow filtering of element lists (#6038, Albert Krewinkel). Lists of
2068 Inline and Block elements can now be filtered via `Inlines` and
2069 `Blocks` functions, respectively. This is helpful if a filter
2070 conversion depends on the order of elements rather than a single
2071 element. For example, the following filter can be used to remove all
2072 spaces before a citation:
2074 function isSpaceBeforeCite (spc, cite)
2075 return spc and spc.t == 'Space'
2076 and cite and cite.t == 'Cite'
2079 function Inlines (inlines)
2080 for i = #inlines-1,1,-1 do
2081 if isSpaceBeforeCite(inlines[i], inlines[i+1]) then
2088 + Add methods `insert`, `remove`, and `sort` to pandoc.List
2089 (Albert Krewinkel). Example of use:
2091 local numbers = pandoc.List {2, 3, 1}
2092 numbers:sort() -- numbers is now {1, 2, 3}
2093 + Make `pandoc.List` a callable constructor (Albert Krewinkel).
2094 It is now possible to construct a new List via
2095 `pandoc.List()` instead of `pandoc.List:new()`.
2096 + Add tests for pandoc.List module (Albert Krewinkel).
2098 * Text.Pandoc.App.CommandLineOptions: Change `setVariable` to use `Text`
2099 instead of `String`. This avoids some unnecessary unpacking.
2101 * Use versioned directory for windows release zipfile.
2102 Also remove old `make-windows-installer.bat`, superseded by GitHub
2103 actions workflow, and modify `pandoc.wxs` for new paths.
2105 * Extensive code cleanup (#6141, #6128, #6129, #6130, #6123,
2106 #6105, 6102, #6117, #6124, #6115, #6116, #6111, Joseph C. Sible).
2108 * Fix hlint warnings (Albert Krewinkel).
2110 * Use latest doclayout, doctemplates (#6031). The new version of
2111 doclayout fixes a memory leak that affected `--include-in-header` with
2112 large files (and possibly other cases involving extremely long lines).
2114 * Use latest texmath.
2116 * Use latest skylighting and fix test suite (#6086).
2118 * sample.lua: Fix typo in descriptive comments (#6136, Caleb Maclennan).
2119 Fix typo in error message (#6135).
2121 * Add Docker and GH Actions instructions/links to INSTALL.md.
2123 * Update filter documentation (#6065). Improve cabal v2 instructions.
2124 Remove example using pandoc API directly (we have other
2125 docs for that and it was outdated).
2129 + Cross-link constructors and types (Albert Krewinkel).
2130 Thanks to @bpj for the idea.
2131 + Sort pandoc.List methods alphabetically (Albert Krewinkel).
2132 + Unify, fix anchors and internal links (#6061, Albert Krewinkel).
2133 Links and anchors now follow consistent conventions, like
2134 lowercase-only anchor names. This breaks some links to specific
2135 sections in the document, but will make it much easier to link
2136 documentation in the future.
2137 + Clarify filter function execution order (#6059, Albert Krewinkel).
2139 * In docs, update URLs and use `https:` wherever possible (#6090,
2142## pandoc 2.9.1.1 (2020-01-05)
2146 + Fix parsing bug affected indented code after raw HTML (#6009, #5360).
2150 + Fix regression in beamer slide structure with certain slide levels
2152 + Allow framebreaks for beamer's TOC (Heiko Schlittermann, #6012)
2153 + Properly handle unnumbered headings level 4+ (#6018).
2154 Previously the `\paragraph` command was used instead of
2155 `\paragraph*` for unnumbered level 4 headings.
2159 + Fix revealjs slide structure regression with certain slide levels
2161 + Add newlines to make slide show output more readable.
2165 + Remove extra spaces from table cells (Albert Krewinkel, #6024).
2167 * JATS template: Update JATS dtd (Arfon Smith, #6020). Use the archiving
2168 and interchange DTD rather than the more restrictive journal publishing
2169 DTD (which doesn't permit ext-link as a valid child).
2171 * Text.Pandoc.PDF: Fix `runTeXProgram` so that the input source is always
2172 overwritten (#6027). Previously it wasn't overridden if the file already
2173 existed, which led to bad results on subsequent runs when
2174 `pdf-engine-opt=-output-directory=` was used to specify an explicit temp
2177 * Text.Pandoc.BCP47: Change `getLang` to handle block-level contents
2178 (#6008). Some readers (e.g. RST) will populate the `lang` metadata field
2179 with block-level content. `getLang` has been modified to handle this.
2180 Previously in these cases the LaTeX writer would not properly set the
2181 "main language" of the document.
2183 * Fix `test/tables.org` (Albert Krewinkel).
2185 * Use HTTPS in copyright message (Felix Yan, #6010)
2188## pandoc 2.9.1 (2019-12-23)
2190 * Add Jira reader (Albert Krewinkel, #5556).
2192 * Jira writer: use jira-wiki-markup renderer (Albert Krewinkel,
2193 #5926). The following improvements are included in this change:
2195 + non-jira raw blocks are fully discarded instead of showing
2197 + table cells can contain multiple blocks;
2198 + unnecessary blank lines are removed from the output;
2199 + markup chars within words are properly surrounded by
2201 + preserving soft linebreaks via `--wrap=preserve` is
2204 Note that backslashes are rendered as HTML entities, as there
2205 appears no alternative to produce a plain backslash if it is
2206 followed by markup. This may cause problems when used with
2207 confluence, where rendering seems to fail in this case.
2209 * Fix regression with `--number-sections`. Starting with 2.8,
2210 `--number-sections` also had the effect of `--section-divs`,
2211 even if `--section-divs` was not specified.
2213 * Improved table of contents generation in markdown, RTF,
2214 commonmark, better handling cases where section headings are
2217 * Ensure that later default file values for `variable` replace
2218 earlier ones (5988).
2220 * HTML reader: Add `nav` to list of block-level tags.
2222 * Org reader (Albert Krewinkel):
2224 + Wrap named table in Div, using name as id (#5984).
2225 Tables which are given a name via `#+NAME:` or `#+LABEL:`
2226 are wrapped in an additional Div, with the name set as the
2228 + Report parsing errors properly.
2229 + Fix parsing problem for colons in headline (#5993).
2231 * Text.Pandoc.PDF: Ensure UTF8 when printing source in
2232 `--verbose` mode, avoiding an error on platforms that
2233 default to something other than UTF-8 (#5997).
2235 * Text.Pandoc.Templates: Strip directory before trying to find
2236 partial in data files (#5987).
2238 * Text.Pandoc.Shared: Improve `makeSections` so we don't get
2239 doubled "number" attributes in EPUB output (or anywhere
2242 * Added tests for `--toc` and `--section-divs`.
2244 * Text.Pandoc.MIME: Added glsl MIME type for WebGL maps (#6000,
2247 * MANUAL: A bit clearer explanation for `--base-header-level`.
2248 We now say exactly how to translate between the deprecated
2249 `--base-header-level` and `--shift-heading-level-by`.
2253 + Remove spurious dot in title (#5996, Mauro Bieg).
2254 + Replace metadata example with image centering (#6004,
2255 Albert Krewinkel). Thanks to @efx for proposing this filter.
2258## pandoc 2.9 (2019-12-11)
2260 * Text.Pandoc.Templates [API change]
2262 + Add Monad wrappers `WithDefaultPartials` and `WithPartials`.
2263 Wrapping these around an instance of `PandocMonad` gives
2264 us different instances of `TemplateMonad`, with different
2265 search behavior in retrieving partials.
2266 To compile a template and limit partial search to pandoc's
2267 data files, use `runWithDefaultPartials (compileTemplate ...)`.
2268 To compile a template and allow partials to be found locally
2269 (either on the file system or via HTTP, in the event that
2270 the main template has an absolute URL), ue
2271 `runWithPartials (compileTemplate ...)`.
2272 + Export `getTemplate`, which seeks a template locally,
2273 or via HTTP if the template has an absolute URL, falling
2274 back to the data files if not found.
2275 + Export `compileDefaultTemplate` -- does `getDefaultTemplate`
2276 and compiles the result, raising an error on failure.
2278 * Text.Pandoc.Class [API change]
2280 + Remove `TemplateMonad` instances for `PandocIO` and `PandocPure`.
2281 These were too limiting and caused a bug whereby a local
2282 partial could be used even when the default template was requested.
2283 We now rely on instances provided in the Templates module.
2285 * Text.Pandoc.App.OutputSettings: Simplify template retrieval code.
2287 * ConTeXt template: Adjust to title formatting (#5949, Denis Maier).
2288 Add `\setupinterlinespace` to `title`, `subtitle`, `date` and `author`
2289 elements: otherwise longer titles that run over multiple lines will look
2290 squashed as `\tfd` etc. won't adapt the line spacing to the font size.
2292 * reveal.js template: Add title-slide-attributes variable (#5981,
2295 * More informative JSON parse error (#5973).
2297 * Use external emojis package (forked from pandoc). Removed emoji data
2298 in Text.Pandoc.Emoji.
2300 * Fix regression in `makeSections` (#5965).
2301 Previously `hierarchicalize` (the ancestor of `makeSections`) would put
2302 header attributes on the containing Div. In 2.8 this behavior changed,
2303 which broke some tools depending on pandoc. Here we roll back this change,
2304 so that attributes again migrate from the header to the containing Div when
2305 `makeSections` is run. Note that attributes are retained on the header as
2306 well (unlike before) -- with the exception of the `id` attribute, which of
2307 course cannot be duplicated.
2309 * Fix `--toc-depth` regression in 2.8 (#5967).
2311 * Use doctemplates 0.8. Rename template 'filters' as 'pipes'
2312 to avoid confusion with the other notion of filter used by pandoc.
2314 * Fix README.md so that relative links from manual become absolute.
2315 Previously they'd be broken links when viewed on GitHub or Hackage.
2316 So we add the base URL for the pandoc manual.
2318 * Document display math syntax in manual.
2320## pandoc 2.8.1 (2019-12-05)
2322 * Add `ascii_identifiers` as a supported extension for `markdown`.
2323 This fixes a regression in 2.8.
2325 * Fix regression with behavior of `--variable` (#5962).
2326 Previously `-Vfoo=1 -Vfoo=2` would produce a list value for foo;
2327 with 2.8 it produced just `2`. This commit restores the earlier
2330 * Roll back part of of `--shift-heading-level-by` change (#5957).
2331 With positive heading shifts, starting in 2.8 this option
2332 caused metadata titles to be removed and changed to regular
2333 headings. This behavior is incompatible with the old
2334 behavior of `--base-header-level` and breaks old workflows,
2335 so we have rolled back the change. Note that there is now an
2336 asymmetry in positive and negative heading level shifts:
2337 With positive shifts, the metadata title stays the same and
2338 does not get changed to a heading in the body, while with
2339 negative shifts, a heading can be converted into the
2342 * Text.Pandoc.Shared: Fix `makeSections` so it doesn't turn
2343 column Divs into sections.
2345 * HTML writer: add task-list class to ul if all elements are
2346 task list items. This will allow styling unordered task
2347 lists in a way that omits the bullet.
2349 * HTML-based templates: Add CSS to suppress bullet on unordered task lists.
2351 * ConTeXt template: Fix `\startcslreferences` and use ConTeXt syntax
2352 conventions (#5945, Denis Maier). The old version had a too large
2353 a skip at the beginning of the reference list.
2355 * LaTeX template: keep the `\author{}` command even if author is not
2356 specified (#5961, Yihui Xie). Avoids a LaTeX warning.
2358 * Generate Emoji module with TH.
2360 + Add Text.Pandoc.Emoji.TH.
2361 + Replace long literal list in Text.Pandoc.Emoji with one-liner
2362 generating it from `emoji.json` using TH.
2363 + Add Makefile target to download `emoji.json`.
2364 + Remove `tools/emoji.hs`.
2366 * Increase GC allocation space for compilation in cabal.project.
2368 * Clean up manual on PDF generation backend options (#5940).
2370 * Update release checklist to include code signing step and update
2371 Windows release-candidate builds (#5950).
2374## pandoc 2.8.0.1 (2019-11-26)
2376 * List `pdf` in `--list-output-formats`.
2377 * EPUB writer: Fix regression with `--css` (#5937). In 2.8 `--css`
2378 would not have an effect on EPUB output.
2379 * RST writer: Use grid tables for one-column tables, since
2380 simple tables clash with heading syntax in this case (#5936).
2381 * Add unexported module Text.Pandoc.Readers.Metadata (see #5914).
2382 * Use doctemplates 0.7.2, which adds the `nowrap` filter to
2384 * Update default man template using `nowrap` for .TH heading (#5929).
2385 * HTML templates: Add support for `toc-title` variable (#5930,
2387 * Remove `grffile` (LaTeX package) requirement in MANUAL.txt
2388 (#5927, Ian Max Andolina).
2389 * Use skylighting 0.8.3.
2391## pandoc 2.8 (2019-11-22)
2393 * Improvements in templates system (from doctemplates):
2395 + Pandoc templates now support a number of new features that
2396 have been added in doctemplates: notably, `elseif`, `it`,
2397 partials, filters, and syntax to control nesting and reflowing of
2398 text. These changes make pandoc more suitable out of the
2399 box for generating plain-text documents from data in YAML
2400 metadata. It can create enumerated lists and even tabular
2402 + We now used templates parameterized on doclayout Doc types.
2403 The main impact of this change is better reflowing of
2404 content interpolated into templates. Previously,
2405 interpolated variables were rendered independently and
2406 interpolated as strings, which could lead to overly long
2407 lines. Now the templates interpolated as Doc values which
2408 may include breaking spaces, and reflowing occurs after
2409 template interpolation rather than before.
2410 + Remove code from the LaTeX, Docbook, and JATS writers that
2411 looked in the template for strings to determine whether it
2412 is a book or an article, or whether csquotes is used. This
2413 was always kludgy and unreliable.
2414 + Change template code to use new API for doctemplates.
2416 * Add `--defaults`/`-d` option. This adds the ability to specify
2417 a collection of default values for options in a YAML file. For
2418 example, one might define a set of defaults for letters,
2419 and then do `pandoc -d letter myletter.md -o myletter.pdf`.
2420 See the documentation of this feature in MANUAL.txt.
2422 * Raise error on unsupported extensions (#4338).
2424 * The `--list-extensions[=FORMAT]` option now lists only
2425 extensions that affect the given FORMAT.
2427 * Add `-L` option as shortcut for `--lua-filter`.
2429 * Add `--shift-heading-level-by` option and deprecate
2430 `--base-heading-level` (#5615). The new option does
2431 everything the old one does, but also allows negative shifts.
2432 It also promotes the document metadata (if not null) to a
2433 level-1 heading with a +1 shift, and demotes an initial
2434 level-1 heading to document metadata with a -1 shift. This
2435 supports converting documents that use an initial level-1
2436 heading for the document title.
2438 * Allow `--metadata-file` to be used repeatedly to include
2439 multiple metadata files (Owen McGrath, #5702). Values in
2440 files specified first will be overridden by those in later
2443 * `--ascii` now uses numerical hex character references (#5718).
2445 * Allow PDF output to stdout (#5751). PDF output now behaves like other
2446 binary formats: it will not be output to the terminal, but can be
2447 sent to stdout using either `-o -` or a pipe. The intermediate format
2448 will be determined based on the setting of `--pdf-engine`.
2450 * Make some writers sensitive to 'unlisted' class on headings (#1762).
2451 If this is present on a heading with the 'unnumbered' class,
2452 the heading won't appear in the TOC. This class has no
2453 effect if 'unnumbered' is not also specified. This affects HTML-based
2454 writers (including slide shows and EPUB), LateX (including beamer), RTF,
2455 and PowerPoint. Other writers do not yet support `unlisted`.
2457 * Fix `gfm_auto_identifiers` behavior with emojis (#5813). Note that
2458 we also now use emoji names for emojis when `ascii_identifiers`
2461 * When `--ipynb-output` is used with the default "best" format, strip
2462 ANSI escape codes for non-ipynb output (#5633). These cause problems
2463 in many formats, including LaTeX.
2465 * Don't look for template files remotely for remote input (#5579).
2466 Previously pandoc would look for the template at a remote URL when a
2467 URL was used for the input file, instead of taking it from the
2470 * Allow combining `-Vheader-includes` and `--include-in-header` (#5904).
2471 Previously `header-includes` set as a variable would be
2472 clobbered by material included using `--include-in-header`.
2474 * Change merge behavior for metadata. Previously, if a document
2475 contained two YAML metadata blocks that set the same field, the
2476 conflict would be resolved in favor of the first. Now it is resolved
2477 in favor of the second (due to a change in pandoc-types).
2478 This makes the behavior more uniform with other things in pandoc
2479 (such as reference links and `--metadata-file`).
2481 * Don't add a newline to fragment output if there's already one.
2483 * Change exit codes and document in MANUAL.txt:
2485 + `PandocAppError` was 1, is now 4
2486 + `PandocOptionError` was 2, is now 6
2487 + `PandocMakePDFError` was 65, is now 66
2489 * Switch to new pandoc-types and use Text instead of String [API change].
2490 (Christian Despres, #5884).
2494 + Better handling of `<q>` with cite attribute (#5798, Ole Martin Ruud).
2495 If a `<q>` tag has a `cite` attribute, we interpret it as a Quoted
2496 element with an inner Span.
2497 + Add support for HTML `<samp>` element (#5792, Amogh Rathore).
2498 The `<samp>` element is parsed as Code with class `sample`.
2499 + Add support for HTML `<var>` element (#5799, Amogh Rathore).
2500 The `<var>` element is parsed as Code with class `variable`.
2501 + Add support for `<mark>` elements (Florian B, #5797). Parse
2502 `<mark>` elements from HTML as Spans with class `mark`.
2503 + Add support for `<kbd>` elements, parsing them as Span with class
2504 `kbd` (Daniele D'Orazio, #5796).
2505 + Add support for `<dfn>`, parsing this as a Span with class `dfn`
2506 (#5882, Florian Beeres).
2510 + Headers: don't parse content over newline boundary (#5714).
2511 + Handle inline code more eagerly within lists (Brian Leung, #5627).
2512 + Removed some needless lookaheads.
2513 + Don't parse footnote body unless extension enabled.
2514 + Fix small super/subscript issue (#5878). Superscripts and subscripts
2515 cannot contain spaces, but newlines were previously allowed
2516 (unintentionally). This led to bad interactions in some cases
2517 with footnotes. With this change newlines are also not allowed inside
2519 + Use `take1WhileP` for `str`, table row. This yields a small but
2520 measurable performance improvement.
2525 + Fix parsing of optional arguments that contain braced text (#5740).
2526 + Don't try to parse includes if `raw_tex` is set (#5673).
2527 When the `raw_tex` extension is set, we just carry through
2528 `\usepackage`, `\input`, etc. verbatim as raw LaTeX.
2529 + Properly handle optional arguments for macros (#5682).
2530 + Fix `\\` in `\parbox` inside a table cell (#5711).
2531 + Improve `withRaw` so it can handle cases where the token string is
2532 modified by a parser (e.g. accent when it only takes part of a Word
2533 token) (#5686). This fixes a bug that caused the ends of
2534 certain documents to be dropped.
2535 + Handle `\passthrough` macro used by latex writer (#5659).
2536 + Support tex `\tt` command (#5654).
2537 + Search for image with list of extensions like latex does, if an
2538 extension is not provided (#4933).
2539 + Handle `\looseness` command values better (#4439).
2540 + Add `mbox` and `hbox` handling (Vasily Alferov, #5586).
2541 When `+raw_tex` is enabled, these are passed through literally.
2542 Otherwise, they are handled in a way that emulates LaTeX's behavior.
2543 + Properly handle `\providecommand` and `\provideenvironment` (#5635).
2544 They are now ignored if the corresponding command or environment
2546 + Support epigraph command in LaTeX Reader (oquechy, #3523).
2547 + Ensure that expanded macros in raw LaTeX end with a space
2548 if the original did (#4442).
2549 + Treat `ly` environment from lilypond as verbatim (Urs Liska, #5671).
2550 + Add `tikzcd` to list of special environments (Eigil Rischel).
2551 This allows it to be processed by filters, in the same way that
2552 one can do for `tikzpicture`.
2556 + Better support for `while`.
2557 + More improvements in parsing conditionals.
2558 + Fix problem parsing comments before macro.
2559 + Improve handling of groups.
2560 + Better parsing of groups (#5410). We now allow groups
2561 where the closing `\\}` isn't at the beginning of a line.
2565 + Keep `name` property in `imgAttr` (Brian Leung, #5619).
2566 + Fixed parsing of indented blocks (#5753). We were requiring
2567 consistent indentation, but this isn't required by RST.
2568 + Use title, not admonition-title, for admonition title.
2569 This puts RST reader into alignment with docbook reader.
2570 + Don't strip final underscore from absolute URI (#5763).
2571 + Avoid spurious warning when resolving links to internal anchors
2572 ending with `_` (#5763).
2576 + Accept `ATTR_LATEX` in block attributes (Albert Krewinkel, #5648).
2577 Attributes for LaTeX output are accepted as valid block attributes;
2578 however, their values are ignored.
2579 + Modify handling of example blocks (Brian Leung, #5717).
2580 + Allow the `-i` switch to ignore leading spaces (Brian Leung).
2581 + Handle awkwardly-aligned code blocks within lists (Brian Leung).
2582 Code blocks in Org lists must have their `#+BEGIN_` aligned in a
2583 reasonable way, but their other components can be
2584 positioned otherwise.
2585 + Fix parsing of empty comment lines (#5856, Albert Krewinkel).
2586 Comment lines in Org-mode can be completely empty.
2588 * Muse reader (Alexander Krotov):
2590 + Add RTL support (#5551).
2591 + Do not allow closing asterisks to be followed by `*`.
2592 + Do not split series of asterisks into symbols and emphasis (#5821).
2593 + Do not terminate emphasis on `*` not followed by space.
2597 + Parse markup inside monospace ('') (#5916, Alexander Krotov).
2601 + Move style-parsing-specific code to a new unexported module,
2602 Text.Pandoc.Readers.Docx.Parse.Styles (Nikolay Yakimov).
2603 + Move StyleMap to docx writer (Nikolay Yakimov).
2604 + Only use LTR when it is overriding BiDi setting (#5723, Jesse
2605 Rosenthal). The left-to-right direction setting in docx is used
2606 in the spec only for overriding an explicit right-to-left setting.
2607 We only process it when it happens in a paragraph set with BiDi.
2608 This is especially important for docs exported from Google Docs,
2609 which explicitly (and unnecessarily) set `rtl=0` for every paragraph.
2610 + Fix list number resumption for sublists (#4324).
2611 The first list item of a sublist should not resume numbering
2612 from the number of the last sublist item of the same level,
2613 if that sublist was a sublist of a different list item.
2617 + Richer parse for admonitions (Michael Peyton Jones, #1234).
2618 Instead of parsing admonitions as blockquotes, we now parse
2619 them as Divs with an appropriate class. We also handle titles
2620 for admonitions as a nested Div with the "title" class.
2621 + Fix nesting of chapters and sections (#5864, Florian Klink,
2622 Félix Baylac-Jacqué).
2623 + Fix bug with entities in mathphrase element (#5885).
2627 + Skip optional `{{table}}` template (#5757).
2631 + Fix dollar-math parsing to ensure that space is left between a
2632 control sequence and a following letter (#5836).
2633 + In `untokenize`, ensure space between control sequence
2634 and following letter (#5836).
2635 + Don't omit macro definitions defined in the preamble.
2636 These were formerly omitted (though they still affected macro
2637 resolution if `latex_macros` was set). Now they are included in
2639 + Parse macro definitions as raw LaTeX when `latex_macros` is
2640 disabled. (When `latex_macros` is enabled, we omit them, since
2641 pandoc is applying the macros itself.)
2642 + Fix a hang/memory leak in certain circumstances (#5845).
2643 + Text.Pandoc.Readers.LaTeX.Parsing: add `[Tok]` parameter to
2644 `rawLaTeXParser`. This allows us to repeat retokenizing
2645 unnecessarily in e.g. `rawLaTeXBlock`.
2646 + Add KOMA-Script metadata commands (#5910, Andrew Dunning).
2647 Add all titling commands to existing definition for `\dedication`.
2648 + Parse `\micro` siunitx unit command (#5921, Jose Luis Duran).
2652 + Ensure proper nesting when we have long ordered list markers (#5705).
2653 + Make `plain` output plainer (#5741). Previously we used the following
2654 Project Gutenberg conventions for plain output: extra space before and
2655 after level 1 and 2 headings, all-caps for strong emphasis,
2656 underscores surrounding regular emphasis. Now these
2657 conventions are used only when the `gutenberg` extension is
2658 enabled. By default, Strong and Emph are rendered without
2659 special formatting, and headings are rendered without
2660 special formatting, and with only one blank line following.
2661 To restore the former behavior, use `-t plain+gutenberg`.
2662 + Prefer using raw_attribute when enabled (#4311).
2663 The `raw_attribute` will be used to mark raw bits, even HTML
2664 and LaTeX, and even when `raw_html` and `raw_tex` are
2665 enabled, as they are by default. To get the old behavior,
2666 disable `raw_attribute` in the writer.
2667 + Prefer `pipe_tables` to raw HTML even when we must
2668 lose width information (#2608, #4497).
2669 + Improve escaping in list items (#5918).
2673 + Don't include `+` in code blocks for regular asciidoc.
2674 This is asciidoctor-specific.
2675 + Handle admonitions (#5690).
2679 + Add thin space when needed in LaTeX quote ligatures (#5684).
2680 + Use `\hspace{0pt}` for 0-width space U+200B (#5756).
2681 + Use `cslreferences` environment for csl bibliographies.
2682 This allows bibliographies to receive special formatting.
2683 The template now contains definition of this environment (enabled
2684 only when CSL is used). It also defines a `\cslhangindent` length.
2685 This is set to 2em by default when the bibliography style specifies
2686 a hanging indent. To override the length, you can use e.g.
2687 `\setlength{\cslhangindent}{7em}` in header-includes.
2688 See jgm/pandoc-citeproc#410.
2689 + Strip off `{}` around locator for biblatex/natbib output (#5722).
2690 + Fix line breaks at start of paragraph (#3324).
2691 Previously we just omitted these. Now we render them
2692 using `\hfill\break` instead of `\\`. This is a revision
2693 of a PR by @sabine (#5591) who should be credited with the idea.
2694 + We no longer look in the template or header-includes to see if a
2695 book or article documentclass is used, or to see whether the
2696 `csquotes` package is used. To use `csquotes` for LaTeX, set
2697 `csquotes` in your variables or metadata. To specify a book
2698 style, use the `documentclass` variable or
2699 `--top-level-division`.
2700 + Fix horizontal rule (#5801). We change to use 0.5pt rather than
2701 `\linethickness`, which apparently only ever worked "by accident"
2702 and no longer works with recent updates to texlive.
2706 + Add option to include source files in ConTeXt PDFs (Tristan
2707 Stenner, #5578). The metadata field or variable
2708 (`includesource`) can be set to attach the source documents
2709 to the resulting PDF.
2710 + Customizable type of PDF/A for the ConTeXt writer (Karl
2711 Pettersson, #5608). The `pdfa` variable may now be set in metadata.
2712 Also updated color profile settings in accordance with ConTeXt wiki,
2713 and made ICC profile and output intent for PDF/A customizable
2714 using `pdfaiccprofile` and `pdfaintent`.
2715 + Unit tests: adjust code property to avoid an irrelevant
2716 failure involving inline code with two consecutive newlines.
2717 + Set `csl-hanging-indent` variable if needed.
2718 + Use special environment for CSL references.
2719 + Use braces, not start/stop, for inline language tags.
2720 This prevents unwanted gobbling of spaces.
2724 + Use numeric character references with `--ascii` (#5718).
2725 Previously we used named character references with html5 output.
2726 But these aren't valid XML, and we aim to produce html5 that is
2727 also valid XHTML (polyglot markup). (This is also needed for epub3.)
2728 + Ensure that line numbers in code blocks get id-prefix (#5650).
2729 + Ensure TeX formulas are rendered correctly (Philip Pesca,
2730 #5658). The web service passed in to `--webtex` may render
2731 formulas using inline or display style by default.
2732 Prefixing formulas with the appropriate command ensures
2733 they are rendered correctly.
2734 + Render inline formulas correctly with `--webtex` (Philip
2735 Pesca, #5655). We add `\textstyle` to the beginning of the
2736 formula to ensure it will be rendered in inline style.
2737 + Pass through `aria-` attributes to HTML5 (#5642).
2738 + Render a Quoted element with an inner Span with
2739 `cite` attribute using a `<q>` tag (#5798, Ole Martin Ruud).
2740 + Render a Span with class `mark` using the `<mark>` element
2741 (Florian Beeres, #5797).
2742 + Render Span with class `dfn` using `<dfn>` element
2743 (Florian Beeres, #5882).
2744 + Render Span with class `kbd` using `<kbd>` element (Daniele
2746 + Render Code with class `variable` using `<var>` element
2747 (Amogh Rathore, #5799).
2748 + Render Code with class `sample` using `<samp>` element
2749 (Amogh Rathore, #5799).
2753 + Improve splitting into chapters (#5761), using `makeSection`.
2754 + Avoid issuing warning multiple times when title not set (see #5760).
2755 + Use svg tag wrapper for cover image (#5638). In addition, the
2756 code generating the image has been moved to the template, to make it
2757 more customizable. NOTE: Those who use custom EPUB
2758 templates will need to adjust their templates, adding the
2759 code to generate the cover image. (Previously this was just
2760 inserted into 'body'.)
2761 + Improve toChapters, making it work better if there are Divs
2763 + Add support for EPUB2 covers (blmage, #3992).
2764 + Do not override existing "fileN" medias when writing to EPUB format
2766 + Ensure that `lang` variable is set on all chapters (so that it
2767 will add an `xml:lang` attribute on the `html` element).
2771 + Removed remnants of `admonition-title`.
2772 + Fix handling of `:align:` on figures and images (#4420).
2773 When the image has the `align-right` (etc.) class, we now use
2774 an `:align:` attribute.
2775 + Improve spacing for tables with no width information (#5899).
2776 If a simple table would be too wide, we use a grid table.
2777 + Fix backslash escaping after strings (Albert Krewinkel, #5906).
2778 The check whether a complex inline element following a string must
2779 be escaped, now depends on the last character of the string instead
2781 + Ensure there's a blank line before tables (#5898).
2785 + Handle mixed lists without HTML fallback (#5107).
2789 + Fix multiline table (Zihang Chen, #5683).
2793 + Add RTL support (Alexander Krotov, #5551).
2797 + Suppress non-absolute link URLs (#5770). Absolute URLs are
2798 still printed in parentheses following the link text, but relative
2799 URLs are suppressed (just as internal links starting with '#'
2801 + Improved definition list term output. Now we boldface code but
2802 not other things. This matches the most common style in man pages
2803 (particularly option lists).
2807 + Use `.LP` instead of `.PP` for line block (#5588).
2808 + Use boldface for definition terms in DefinitionLists.
2812 + Do not emit empty `<fn-group>` (Mauro Bieg, #5595).
2813 + Update template to v1.1dtd (#5632, Arfon Smith).
2814 + Update `data/jats.csl` to avoid commas between editor
2815 name-part elements. (#5629)
2816 + Add `abstract` to template (Mauro Bieg).
2820 + Don't strip hash from internal links (#5922).
2824 + Remove escapeStringForJira for code blocks (Jan-Otto Kröpke).
2825 + Remove extraneous newline after single-line block quotes
2826 (#5858, Albert Krewinkel).
2827 + Improve escaping of special characters, using backslash escapes
2828 instead of HTML entities (#5858, Albert Krewinkel).
2830 * OpenDocument writer:
2832 + Avoid duplicate attributes (#4634). We use the innermost
2833 attribute in nested cases.
2834 + If `native_numbering` extension is set, use native OpenDocument
2835 enumeration for figures and tables (Nils Carlson).
2836 + Place caption before table (#5681, Dmitry Pogodin).
2840 + Add a test for MathML formulas in ODT documents (blmage).
2841 + Improve the parsing of frames in ODT documents (blmage).
2845 + Make handling of styles more robust in localized versions
2846 of Word (Nikolay Yakimov, #5523, #5052, #5074). We now use
2847 style names, not ids, for assigning semantic meaning, since
2848 the ids can change depending on the locale. Style name
2849 comparisons are case-insensitive, since those are
2850 case-insensitive in Word. Since docx style names can have
2851 spaces in them, and pandoc-markdown classes can't, anywhere
2852 when style name is used as a class name, spaces are
2853 replaced with ASCII dashes `-`. Code styles, i.e. "Source
2854 Code" and "Verbatim Char" now honor style inheritance. Docx
2855 Reader now honours "Compact" style (used in
2856 Pandoc-generated docx). The side-effect is that "Compact"
2857 style no longer shows up in docx+styles output. Styles
2858 inherited from "Compact" will still show up.
2859 + Re-use Readers.Docx.Parse for StyleMap (#5766, Nikolay Yakimov).
2860 + Internal improvements and code simplification (Nikolay Yakimov).
2861 + Preserve built-in styles in DOCX with custom style (Ben Steinberg,
2862 #5670). This change prevents custom styles on divs and spans
2863 from overriding styles on certain elements inside them, like
2864 headings, blockquotes, and links. On those elements, the
2865 "native" style is required for the element to display correctly.
2866 This change also allows nesting of custom styles; in order to do so,
2867 it removes the default "Compact" style applied to Plain blocks,
2868 except when inside a table.
2869 + Add `proofState` to list of elements carried over from
2870 settings.xml in the reference.docx (Krystof Beuermann, #5703).
2871 + Change order of `ilvl` and `numId` in `document.xml` (Agustín
2872 Martín Barbero, #5645). Also, make list para properties go first.
2873 This reordering of properties shouldn't be necessary but
2874 it seems Word Online does not understand the docx correctly otherwise.
2876 * PowerPoint writer:
2878 + Code formatting is now context dependent (Jeroen de Haas, #5573).
2879 This commit alters the way in which the Powerpoint writer treats
2880 inline code and code blocks. Inline code is now formatted at
2881 the same size as the surrounding text. Code blocks are now given
2882 a margin and font size according to their level.
2883 Furthermore this commit allows changing the font with which code is
2884 formatted via the `monofont` option.
2885 + Start numbering at appropriate numbers (Jesse Rosenthal, #5709).
2886 Starting numbers for ordered lists were previously ignored. Now
2887 we specify the number if it is something other than 1.
2889 * Text.Pandoc.Parsing:
2891 + Add `manyChar`, `many1Char`, `manyTillChar`, `many1TillChar`,
2892 `many1Till`, `manyUntil`, `mantyUntilChar`: these are like their
2893 unsuffixed counterparts but pack some or all of their output
2894 (Christian Despres, #5884).
2895 + Add `stateAllowLineBreaks` to `ParserState` [API change].
2896 + Fix inline parsing in grid table cells (#5708).
2897 + Change type of `setLastStrPos` so it takes a `Maybe SourcePos`
2898 rather than a `SourcePos` [API change].
2899 + Make `parseFromString'` and `gridTableWith` and
2900 `gridTableWith'` polymorphic in the parser state,
2901 constraining it with `HasLastStrPosition` [API change].
2902 + `parseFromString'`: reset `stateLastStrPos` to `Nothing` before parse.
2903 + Rename takeWhileP -> take1WhileP and clean it up.
2904 (It doesn't match the empty sequence.)
2908 + For PDFs via HTML, ensure temp file is deleted even if the pdf
2909 program is not found (#5720).
2910 + Better detection of a Cygwin environment (#5451).
2911 + Don't assume tex log file is UTF8-encoded (#5872).
2912 Fall back to latin1 if it can't be read as UTF-8.
2914 * Text.Pandoc.Extensions:
2916 + Export new function `getAllExtensions`, which returns the
2917 extensions that affect a given format (whether enabled by default
2918 or not) [API change].
2919 + Change type of `parseFormatSpec` from
2920 `Either ParseError (String, Extensions -> Extensions)`
2921 to `Either ParseError (String, [Extension], [Extension])`
2923 + Add `Ext_gutenberg` constructor to `Extension` [API change].
2924 + Add `Ext_native_numbering` constructor to `Extension` [API change]
2927 * Text.Pandoc.Readers, Text.Pandoc.Writers:
2929 + Change type of `getReader` and `getWriter` so they return
2930 a value in the PandocMonad instance rather than an Either
2931 [API change]. Exceptions for unknown formats and unsupported
2932 extensions are now raised by these functions.
2936 + Change `optMetadataFile` type from `Maybe FilePath` to `[FilePath]`
2937 (Owen McGrath, #5702) [API change].
2939 * Text.Pandoc.Logging:
2941 + Add `CouldNotDeduceFormat` constructor to `LogMessage` [API change].
2942 Issue this warning when we're falling back to markdown or
2943 html because we don't recognize the extension of the input or
2945 + Clarify warning for missing title (#5760).
2946 + Add `UnusualConversion` constructor to `LogMessage` [API change]
2947 (Mauro Bieg, #5736). Emit warning on `-f latex -o out.pdf`.
2951 + Improve function documentation (Albert Krewkinkel).
2952 + Traverse nested blocks and inlines in correct order (Albert
2953 Krewinkel, #5667). Traversal methods are updated to use the new
2954 Walk module so that sequences with nested Inline (or Block) elements
2955 are traversed in the order in which they appear in the linearized
2957 + New unexported module `Text.Pandoc.Lua.Walk` (Albert Krewinkel).
2958 Lua filters must be able to traverse sequences of AST
2959 elements and to replace elements by splicing sequences back
2960 in their place. Special `Walkable` instances can be used for
2961 this; those are provided in a new module
2962 `Text.Pandoc.Lua.Walk`.
2963 + `Attr` values can now be given as normal Lua tables (Albert
2964 Krewinkel, #5744). This can be used as a convenient alternative
2965 to constructing `Attr` values with `pandoc.Attr`. Identifiers
2966 are taken from the `id` field, classes must be given as
2967 space separated words in the `class` field. All remaining fields
2968 are included as attributes. With this change, the following lines
2969 now create equal elements:
2971 pandoc.Span('test', {id = 'test', class = 'a b', check = 1})
2972 pandoc.Span('test', pandoc.Attr('test', {'a','b'}, {check = 1}))
2974 This also works when using the *attr* setter:
2976 local span = pandoc.Span 'text'
2977 span.attr = {id = 'test', class = 'a b', check = 1}
2979 Furthermore, the *attributes* field of AST elements can now be a
2980 plain key-value table even when using the `attributes` accessor:
2982 local span = pandoc.Span 'test'
2983 span.attributes = {check = 1} -- works as expected now
2985 + Export `make_sections`, remove `hierarchicalize`. Lua filters that
2986 use `hierarchicalize` will need to be rewritten to use
2988 + Add a `clone()` method to all AST elements (Albert Krewinkel, #5568).
2989 + Fix Lua function names in pandoc.system (niszet). Change
2990 `get_current_directory` to `get_working_directory` and
2991 `with_temp_directory` to `with_temporary_directory`, to
2992 conform to the manual.
2994 * Text.Pandoc.Error:
2996 + Add constructors `PandocUnknownReaderError`,
2997 `PandocUnknownWriterError`, `PandocUnsupportedExtensionError`.
2999 + Better message for `PandocShouldNeverHappenError`.
3000 + Better message for `PandocTemplateError`.
3002 * Text.Pandoc.Emoji:
3004 + Update emoji list (#5666). Done using new `tools/emojis.hs`,
3005 which uses the list from the gem GitHub uses. Future updates
3006 can be done with this tool.
3010 + Pass value of `--dpi` to `rsvg-convert` when converting SVG to PDF
3011 in the process of creating a PDF (#5721).
3013 * Text.Pandoc.Shared:
3015 + Replace `Element` and `makeHierarchical` with `makeSections`.
3016 Now that we have Divs, we can use them to represent the
3017 structure of sections, and we don't need a special Element type.
3018 `makeSections` reorganizes a block list, adding Divs with class
3019 `section` around sections, and adding numbering if needed.
3020 This change also fixes some longstanding issues recognizing section
3021 structure when the document contains Divs (#3057, see also #997).
3022 + Remove `Element` type [API change]
3023 + Remove `makeHierarchicalize` [API change]
3024 + Add `makeSections` [API change]
3025 + Export `deLink` [API change]
3026 + Make `filterIpynbOutput` strip ANSI escapes from code in output
3027 for non-ipynb formats, when the default "best" option is used with
3028 `--ipynb-output` (#5633).
3029 + Fix `camelCaseToHyphenated` so it handles `ABCDef` better.
3030 + Improve `isTight` (#5857). If a list has an empty item,
3031 this should not count against its being a tight list.
3032 + Export `htmlSpanLikeElements` [API change] (Daniele D'Orazio, #5796).
3033 This is a mapping of HTML span-like elements that are internally
3034 represented as a Span with a single class.
3035 + Change the implementation of `htmlSpanLikeElements` to retain
3036 classes and attributes (#5882, Florian Beeres).
3038 * Text.Pandoc.Slides: recognize content in Divs when determining
3041 * Text.Pandoc.SelfContained:
3043 + Omit content-type on type attribute for `<style>` (#5725).
3044 It doesn't seem to be valid for HTML5, and as a result Chrome
3045 ignores the style element.
3047 * Text.Pandoc.Pretty has been removed [API change].
3048 We now use the new external doclayout module instead.
3050 * Text.Pandoc.Writers.Shared:
3052 + Remove `metaToJSON`, `metaToJSON'` [API change].
3053 + Modify `addVariablesToContext`, `defField`, `setField`, `getField`,
3054 `resetField` to work with Context rather than JSON values. [API change]
3055 + Export new function `endsWithPlain` [API change].
3056 + Change `gridTables` so it does better at keeping the widths of
3057 columns (#4320) and does better at figuring out column widths
3058 when no widths are given (#5899).
3060 * Text.Pandoc.Options
3062 + Change type of `writerTemplate` to `Maybe Template` instead
3064 + Change To/FromJSON instances for `HTMLMathMethod`, `CiteMethod`,
3065 `ObfuscationMethod`, `TrackChanges`, `WrapOption`,
3066 `TopLevelDivision`, `ReferenceLocation`, `HTMLSlideVariant` (#5790).
3067 In each case we use lowercase (or hyphenated lowercase) for
3068 constructors to line up more closely with command-line option
3069 values. This is a breaking change for those who manually decode or
3070 encode JSON for these data types (e.g. for `ReaderOptions` or
3073 * Text.Pandoc.Filters:
3075 + Add `FromYAML` instance for `Filter`.
3076 + `applyFilters`: Add and apply filters in order (not reversed)
3077 This changes `applyFilters` from Text.Pandoc.Filter so
3078 that it does a left fold rather than a right fold, applying
3079 the filters in the order listed.
3083 + Change `toEntities` to emit numerical hex character references
3086 * Text.Pandoc.Highlighting:
3088 + Add additional listings languages (Wandmalfarbe).
3090 * Text.Pandoc.MediaBag:
3092 + Some of the types using Strings were switched to use FilePath instead
3093 (Christian Despres, #5884).
3095 * Text.Pandoc.Templates:
3097 + Don't import/export `varListToJSON` [API change]. It is removed in
3098 doctemplates >= 0.3.
3099 + Change type of `renderTemplate'` [API change]. Return value is
3100 now Text rather than being polymorphic. This makes room for
3101 upcoming removal of the `TemplateTarget` class from doctemplates.
3103 * Text.Pandoc.App.Opt [API changes]:
3105 + More convenient To/FromJSON instances. Make the field names
3106 like `strip-empty-paragraphs` rather than `optStripEmptyParagraphs`.
3107 Anyone who is using JSON serialization of Opt will need to adjust
3109 + Change `optHighlightStyle` to a `Maybe String` instead of
3110 `Maybe Style`. Do the parsing/loading of themes later, after
3112 + Remove `optBaseHeaderLevel` from `Opt`. We now just use
3113 `optShiftHeadingLevelBy`, to avoid redundancy.
3114 + Change `optShiftHeadingLevel` to `optShiftHeadingLevelBy` to
3116 + Custom FromJSON instance for `LineEnding`, so either `CRLF`
3117 or `crlf` will work.
3118 + Change `optVariables` from `[(String, String)]` to `Context Text`.
3119 + Change `optMetadata` to `Meta`, to allow structured values.
3120 The current behavior of the `--metadata` option stays the same.
3121 + Rename `optReader`, `optWriter` as `optFrom`, `optTo`.
3122 + Add `FromYAML` instances to `Opt` and to all subsidiary types.
3123 + Rename `optMetadataFile` to `optMetadataFiles`.
3124 + Rename `optPDFEngineArgs` to `optPDFEngineOpts`.
3125 + Rename `optWrapText` to `optWrap`.
3126 + Add `IpynbOutput` enumerated type: use this instead of
3127 a string for `optIpynbOutput`.
3128 + Change optInputFiles to a `Maybe [FilePath]` (#5888) [API change].
3129 `Nothing` means: nothing specified.
3130 `Just []` means: an empty list specified (e.g. in defaults).
3131 + List fields in Opt so they aren't reversed (#5881) [API change].
3132 Previously `optIncludeInHeader`, etc. were in reverse order.
3133 + The `sourcefile` variable is now always a list. It used to be
3134 sometimes a string, sometimes a list (when there was more than one).
3138 + default.latex: added code for `cslreferences` environment,
3139 to be used for pandoc-citeproc references. A `csl-hanging-indent`
3140 variable (set automatically if there is a `hanging-ident`
3141 class on the references Div) controls whether contents of this
3142 environment receive a hanging indent.
3143 + default.latex: Add `space` as default option for xeCJK, so that
3144 spaces between words are preserved (#5855, jeongminkim-islab).
3145 This is necessary for Korean.
3146 + default.latex: Remove include of `grffile` (#5848).
3147 This package used to be needed for proper handling of image filenames
3148 containing periods (in addition to the period before the extension).
3149 It no longer works with the latest LaTeX kernel and graphicx,
3150 so we have removed it. Future versions of graphicx will handle
3151 these filenames without the need for `grffile`.
3152 + default.context: add a saner default for page numbers.
3153 Previously they appeared centered at the top of the page;
3154 now we put them centered at the bottom, unless the `pagenumbering`
3156 + default.context: define a start-stop-pair `cslreferences` to
3157 allow for hanging indents in the bibliography (#5875, Denis Maier).
3158 + default.ms: update defaults. Use Palatino font, use slightly
3159 wider interparagraph space, don't indent paragraphs,
3160 and put page numbers on the bottom. This brings ms output
3161 closer to default LaTeX output.
3162 + default.revealjs: add navigationMode (Mauro Bieg, #5657).
3163 + default.muse: handle multiple authors better.
3164 + docbook4, docbook5 templates: add indentation to body.
3165 + HTML-based templates: use `styles.html` partial to avoid
3167 + HTML-based templates: change indentation of styles in template.
3169 * reference.docx (#5820):
3171 + Change Block Text (block quote) style so that the same font
3172 is used as in the body text, and the block text is indented
3174 + All headings now have a uniform color.
3175 + Level-1 headings no longer set `w:themeShade="B5"`.
3176 + Level-2 headings are now 14 point rather than 16 point.
3177 + Level-3 headings are now 12 point rather than 14 point.
3178 + Level-4 headings are italic rather than bold.
3180 * epub.css: Add CSS for hanging-indent div to support pandoc-citeproc's
3181 new hanging indents.
3185 + Repeat ghc-options in all stanzas.
3186 + Remove conditionals for ghc < 8 (Albert Krewinkel, #5693).
3187 + Compile with `-Wcpp-undef` and `-fhide-source-paths` when possible
3189 + Add cabal.project to extra-source-files (Albert Krewinkel).
3190 + Add dependency on skylighting-core (#5729). Even though it shouldn't
3191 be needed, some tools require it.
3192 + Require latest pandoc-types, texmath, skylighting, haddock-library.
3193 + Ensure TemplateHaskell is added to other-extensions when it is
3194 used (Vanessa McHale, #5728).
3195 + Remove `derive_json_via_th` flag; always use TH. This cuts down
3196 on code duplication and reduces the chance for errors. See #4083.
3202 + Remove references to obsolete flag (#5694).
3204 * Benchmarks: fix failure on ipynb.
3206 * Use MathJax 3 (zorkow).
3208 * KaTeX math: respect `classoption=fleqn` variable,
3209 bump KaTeX version to 0.11.1 (#5815, Mauro Bieg).
3211 * Fix redundant constraint compiler warnings (Pete Ryland, #5625).
3213 * Use throwError instead of fail when appropriate.
3215 * Use Prelude.fail to avoid ambiguity with fail from GHC.Base.
3217 * Add `diff-zip.sh` to tools (John MacFarlane, Agustín Martín Barbero).
3218 This is intended to make it easier to test differences in zip
3219 containers, like epub, docx, or odt.
3221 * Add `.gitattributes` (#5747). This ensures that the golden files
3222 in `test/fb2/reader/` don't have newlines converted. This should fix
3223 a test failure on GitHub CI with Windows.
3225 * Reorder options in `--help`.
3227 * Revise code for HsYAML-0.2.0.0 (@vijayphoenix, #5704).
3229 * Remove blank line in code example in Haddocks (Leif Metcalf, #5679).
3231 * Fix trypandoc with `getReader`/`getWriter` changes.
3233 * Allow building pandoc with GHC 8.8.
3235 * linux tarball: add architecture `-amd64` to filename.
3236 Now it will be: `pandoc-VERSION-linux-ARCH.tar.gz`.
3240 + Add section for exit codes.
3241 + Document some pptx limitations in slide show section:
3242 No incremental display (#5689). No pause with `. . .` (#5701).
3243 + reveal.js flags (Mauro Bieg, #5653).
3244 + Document addition of `data-` prefix to unknown attributes in HTML5.
3245 + Link to YAML spec (Mauro Bieg, #5687).
3246 + Fix capitalization of "Linux" (#5859, Marcus Stollsteimer).
3247 + Use a table for exit codes.
3248 + Put all template variable docs into one section.
3249 + Use ATX headers consistently.
3250 + Add fuller documentation of templates (#5779), including
3251 new template syntax, partials, etc.
3252 + Add documentation for the variable `hyperrefoptions` (Wandmalfarbe).
3253 + Clarify when macro definitions are passed as raw latex.
3254 In Markdown input, they are always passed through. In LaTeX, only if
3255 `latex_macros` is disabled.
3256 + Clarify that `--dpi` provides a default and doesn't override
3257 dpi values specified in the images themselves (#5721).
3258 + Document how to use custom writers with `--standalone` (#5866).
3259 + Clarify `--preserve-tabs` default.
3263 + Fix instructions for libicu.
3264 + Add Void Linux instructions (Volodymyr Kozachnyskyi).
3268 + Add information on tests (Agustín Martín Barbero, #5652).
3269 + Add information about command test naming to CONTRIBUTING (Florian B).
3271 * Fix typos in changelog and comments (#5896, Brian Wignall).
3273 * doc/lua-filters.md:
3275 + Fix mistakes in mediabag module docs (#5851, Albert Krewinkel).
3276 + Improve metadata replacement example in lua-filters doc (#5851).
3277 + Mention which Lua version is shipped with pandoc (Albert Krewinkel,
3280## pandoc 2.7.3 (2019-06-11)
3282 * Add `jira` (Atlassian's Jira wiki markup) as output format (#2497,
3285 * Add `tex_math_dollars` to `multimarkdownExtensions` (#5512).
3286 This form is now supported in multimarkdown,
3287 in addition to `tex_math_double_backslash`.
3289 * Fix `--self-contained` so it works when output format has extensions.
3290 Previously if you used `--self-contained` with `html-smart` or
3291 `html+smart`, it wouldn't work.
3293 * Add template variable `curdir` with working directory
3294 from which pandoc is run (#5464).
3296 * Markdown reader: don't create implicit reference for empty header
3299 * Muse reader: allow images inside link descriptions (Alexander Krotov).
3301 * HTML reader: epub related fixes.
3303 + With epub extensions, check for `epub:type` in addition to `type`.
3304 + Fix problem with noteref parsing which caused block-level
3305 content to be eaten with the noteref.
3306 + Rename `pAnyTag` to `pAny`.
3307 + Refactor note resolution.
3308 + Trim definition list terms (Alexander Krotov).
3312 + Add braces when resolving `\DeclareMathOperator`
3313 (#5441). These seem to be needed for xelatex but not pdflatex.
3314 + Allow newlines in `\mintinline`.
3315 + Pass through unknown listings language as class (#5540).
3316 Previously if the language was not in the list of languages supported
3317 by listings, it would not be added as a class, so highlighting
3318 would not be triggered.
3319 + `rawLaTeXInline`: Include trailing `{}`s in raw latex commands (#5439).
3320 This change affects the markdown reader and other readers that allow raw
3321 LaTeX. Previously, trailing `{}` would be included for unknown
3322 commands, but not for known commands. However, they are sometimes used
3323 to avoid a trailing space after the command. The chances that a `{}`
3324 after a LaTeX command is not part of the command are very small.
3326 * MediaWiki reader: handle multiple attributes in table row (#5471,
3329 * Docx reader: Add support for `w:rtl` (#5545). Elements with this
3330 property are put into Span inlines with `dir="rtl"`.
3332 * DocBook reader: Issue `IgnoredElement` warnings.
3334 * Org reader (Albert Krewinkel):
3336 + Fix planning elements in headers level 3 and higher
3337 (#5494). Planning info is now always placed before
3338 the subtree contents. Previously, the planning info was placed after
3339 the content if the header's subtree was converted to a list, which
3340 happens with headers of level 3 and higher per default.
3341 + Omit, but warn about unknown export options. Unknown export
3342 options are properly ignored and omitted from the output.
3343 + Prefer plain symbols over math symbols (#5483).
3344 Symbols like `\alpha` are output plain and unemphasized, not as math.
3345 + Recognize emphasis after TODO/DONE keyword (#5484).
3349 + Skip unknown elements rather than throwing errors (#5560).
3350 Sometimes custom elements are used (e.g. `id` element
3351 inside `author`); previously the reader would halt with an error.
3352 Now it skips the element and issues an `IgnoredElement` warning.
3353 + Parse notes (#5493, Alexander Krotov).
3354 + Internal improvements (Alexander Krotov).
3356 * OpenDocument writer: Roll back automatic figure/table numbering
3357 (#5474). This was added in pandoc 2.7.2, but it makes it impossible
3358 to use pandoc-crossref. So this has been rolled back for now,
3359 until we find a good solution to make this behavior optional
3360 (or a creative way to let pandoc-crossref and this feature
3363 * New module Text.Pandoc.Writers.Jira, exporting `writeJira` [API
3364 change] (Albert Krewinkel).
3368 + Don't include 'landmarks' if there aren't any.
3369 Previously we could get an empty ol element, which caused
3370 validation errors with epubcheck.
3371 + Ensure unique ids for styleesheets in content.opf (#5463).
3372 + Make stylesheet link compatible with kindlegen (#5466,
3373 Eric Schrijver). Pandoc omitted `type="text/css"` from both
3374 `<style>` and `<rel="stylesheet">` elements in all templates, which
3375 is valid according to the spec. However, Amazon’s kindlegen software
3376 relies on this attribute on `<link>` elements when detecting
3377 stylesheets to include.
3381 + Output video and audio elements depending on file
3382 extension of the image path (Mauro Bieg).
3383 + Emit empty alt tag in figures (#5518, Mauro Bieg).
3384 The same text is already in the <figcaption> and
3385 screen-readers would read it twice, see #4737.
3386 + Don't add variation selector if it's already there.
3387 This fixes round-trip failures.
3388 + Prevent gratuitous emojification on iOS (#5469).
3389 iOS chooses to render a number of Unicode entities, including '↩', as
3390 big colorful emoji. This can be defeated by appending Unicode
3391 VARIATION SELECTOR-15'/'VARIATION SELECTOR-16'. So we now append this
3392 character when escaping strings, for both '↩' and '↔'. If other
3393 characters prove problematic, they can simply be added to
3394 `needsVariationSelector`. + Add `class="heading"` to level 7+ Headers
3395 rendered as `<p>` elements (#5457).
3397 * RST writer: treat Span with no attributes as transparent (#5446).
3398 Previously an Emph inside a Span was being treated as
3399 nested markup and ignored. With this patch, the Span
3404 + Include inline code attributes with `--listings` (#5420).
3405 + Don't produce columns environment unless beamer (#5485).
3406 + Fix footnote in image caption. Regression: the fix for #4683 broke
3408 + Don't highlight code in headings (#5574). This causes
3410 + Use `\mbox` to get proper behavior inside `\sout` (#5529).
3412 * EPUB writer: Fix document section assignments (#5546).
3413 For example, introduction should go in bodymatter, not frontmatter, and
3414 epigraph, conclusion, and afterward should go in bodymatter, not
3415 backmatter. For the full list of assignments, see the manual.
3419 + Add backslashes to avoid unwanted interpretation of
3420 definition list terms as other kinds of block (#554).
3421 + Ensure the code fence is long enough (#5519).
3422 Previously too few backticks were used when the code block
3423 contained an indented line of backticks. (Ditto tildes.)
3424 + Handle labels with integer names (Jesse Rosenthal, #5495).
3425 Previously if labels had integer names, it could produce a conflict
3426 with auto-labeled reference links. Now we test for a conflict and
3427 find the next available integer. This involves adding a new state
3428 variable `stPrevRefs` to keep track of refs used in other document
3429 parts when using `--reference-location=block|section`
3431 * Textile writer: fix closing tag for math output (Albert Krewinkel).
3432 Opening and closing tag for math output match now.
3434 * Org writer: always indent src blocks content by 2 spaces (#5440, Albert
3435 Krewinkel). Emacs always uses two spaces when indenting the content of
3436 src blocks, e.g., when exiting a `C-c '` edit-buffer. Pandoc used to
3437 indent contents by the space-equivalent of one tab, but now always uses
3442 + Use `` `+...+` `` form for inline code.
3443 The old `` `a__b__c` `` yields emphasis inside code in asciidoc.
3444 To get a pure literal code span, use `` `+a__b__c+` ``.
3445 + Use proper smart quotes with asciidoctor (#5487).
3446 Asciidoctor has a different format for smart quotes.
3447 + Use doubled ## when necessary for spans (#5566).
3448 + Ensure correct nesting of strong/emph (#5565): strong
3449 must be the outer element.
3453 + Wrap elements with p when needed (#5570). The JATS spec restricts
3454 what elements can go inside `fn` and `list-item`. So we wrap other
3455 elements inside `<p specific-use="wrapper">` when needed.
3456 + Properly handle footnotes (#5511) according to "best practice."
3457 (Group them at the end in `<fn-group>` and use `<xref>` elements
3459 + Fix citations with PMID so they validate (#5481). This includes
3460 an update to data/jats.csl.
3461 + Ensure validity of `<pub-date>` by parsing the date and
3462 extracting year, month, and day, as expected. Also add an
3463 iso-8601-date attribute automatically.
3464 + Don't use `<break>` element for LineBreak. It is only
3465 allowed in a few special contexts, and not in `<p>` elements.
3466 + Don't make `<string-name>` a child of `<string>`, which is illegal.
3470 + Do not wrap note references into `<sup>` and brackets
3471 (Alexander Krotov). Existing FB2 readers, such as FBReader, already
3472 display links with type="note" as a superscript.
3473 + Use genre metadata field (#5478).
3475 * Muse writer: do not escape empty line after `<br>` (Alexander Krotov).
3477 * Add unicode code point in "Missing character" warning (#5538).
3478 If the character isn't in the console font, the message is pretty useless,
3479 so we show the code point for anything non-ASCII.
3481 * Lua: add Version type to simplify comparisons (Albert Krewinkel).
3482 Version specifiers like `PANDOC_VERSION` and `PANDOC_API_VERSION` are
3483 turned into `Version` objects. The objects simplify version-appropriate
3484 comparisons while maintaining backward-compatibility.
3485 A function `pandoc.types.Version` is added as part of the newly
3486 introduced module `pandoc.types`, allowing users to create version
3489 * pandoc lua module (Albert Krewinkel):
3491 - Fix deletion of nonexistent attributes (#5569).
3492 - Better tests for Attr and AttributeList.
3494 * pandoc.mediabag lua module (Albert Krewinkel):
3496 + Add function `delete` for deleting a single item.
3497 + Add function `empty` for removing all entries.
3498 + Add function `items` for iterating over mediabag.
3500 * Text.Pandoc.Class: Fix handling of `file:` URL scheme in
3501 `downloadOrRead` (#5517, Mauro Bieg). Previously `file:/`
3502 URLs were handled wrongly and pandoc attempted to make HTTP
3503 requests, which failed.
3505 * Text.Pandoc.MIME: add `mediaCategory` [API change] (Mauro Bieg).
3507 * Text.Pandoc.Shared:
3509 + Add `onlySimpleTableCells` [API change]
3510 (Mauro Bieg) and use this to consolidate simple-table detection
3511 (#5524). This fixes an inconsistency in the HTML reader, which did not
3512 treat tables with `<p>` inside cells as simple.
3513 + `metaToJSON`: treat digits starting with 0 as a string, not a number
3514 (#5479). This fixes a regression in YAML metadata in pandoc 2.7.2.
3516 * Text.Pandoc.Logging: Add `IgnoredElement` constructor for
3517 `LogMessage`. `SkippedConetnt` doesn't work for some XML-based
3518 readers which don't have access to parsec source positions.
3520 * Text.Pandoc.Asciify: Add Turkish undotted-i (#5433, Mauro Bieg).
3522 * Improve output of Lua tests (#5499, Albert Krewinkel).
3523 This makes use of tasty-lua, a package to write tests in Lua
3524 and integrate the results into Tasty output. Test output becomes
3525 more informative: individual tests and test groups become visible
3526 in test output. Failures are reported with helpful error messages.
3528 * Lua: add `pandoc.system` module (#5468, Albert Krewinkel).
3529 The `system` Lua module provides utility functions to interact with the
3530 operating- and file system. E.g.
3531 `print(pandoc.system.get_current_directory())`
3534 pandoc.system.with_temporary_directory('tikz', function (dir)
3535 -- write and compile a TikZ file with pdflatex
3539 * LaTeX template: Add pdflang to hypersetup if lang is set (#5443).
3541 * beamer template: Fix using Beamer with geometry (#5505, Daniel Maslowski).
3542 Beamer already loads geometry, so we need to use the `\geometry`
3543 command to set geometry options.
3545 * EPUB2/3 templates: Move inline styles to default epub.css (#5466).
3546 NOTE: Those who use a custom CSS stylesheet with EPUB should
3549 code{ white-space: pre-wrap; }
3550 span.smallcaps{ font-variant: small-caps; }
3551 span.underline{ text-decoration: underline; }
3552 q { quotes: "“" "”" "‘" "’"; }
3553 div.column{ display: inline-block; vertical-align: top; width: 50%; }
3555 * reveal.js template:
3557 + Updates for revealjs 3.8.0 (#5435, ebiim).
3558 + Remove reference to head.min.js (#5448, Winnie Hellmann).
3559 NOTE: users will need to update reveal.js to at least 3.8.0
3560 for their presentations generated with this version of pandoc
3565 + Replace `</>` with literal `/` (#5451).
3566 We use forward-slash for a directory separator in tmpDir,
3567 even on Windows (because that's what tex likes). So we
3568 should not put a backslash between the tmpDir and the
3569 filename on Windows. This is harmless enough in normal
3570 Windows setups, but it breaks on Cygwin.
3571 Thanks to @cc2x for noticing and diagnosing the problem.
3572 + Allow use of `-output-directory` in `--pdf-engine-opt` (#5462).
3573 This is currently possible with `mklatex` and `-outdir`, but
3574 was not yet possible with xelatex and `-output-directory`.
3575 + For PDF via ms/pdfroff, make TOC appear at beginning and in
3576 PDF bookmarks (#5553). Previously the TOC appeared at the end
3577 of the document, and was not bookmarked. To keep it at the end,
3578 add `--pdf-engine-opt=--no-toc-relocation` to your command line.
3580 * Fix broken links in documents (#5473, Shim Myeongseob).
3581 Also, use absolute links to pandoc.org when possible, so that
3582 the links can be followed by people viewing these documents
3585 * Improved sample lua tikz filter in lua-filters docs (#5445,
3586 Matthew Doty). There are three changes:
3588 + It only processes elements which begin with `\begin{tikzpicture}`
3589 + It uses pdf2svg instead of imagemagick to preserve fidelity
3590 + The images produced have transparent backgrounds
3594 + Add note about `title-meta`, `author-meta`, `date-meta` (#5486).
3595 + Fix typo (#5489, Christian Krause).
3597 * add test/tables.xwiki to git and pandoc.cabal (#5498, Mauro Bieg).
3599 * Disable missing-home-modules warning in `stack.yaml`.
3600 Otherwise `stack ghci` fails.
3603## pandoc 2.7.2 (2019-04-05)
3605 * Add XWiki writer (#1800, Derek Chen-Becker).
3606 Add `Text.Pandoc.Writers.XWiki`, exporting `writeXWiki` [API change].
3608 * Dokuwiki Reader: parse single curly brace (#5416, Mauro Bieg).
3610 * Vimwiki reader: improve handling of internal links (#5414).
3611 We no longer append `.html` to link targets, and we add a title
3612 `wikilink`. This mirrors behavior of other wiki readers. Generally
3613 the `.html` extension is not wanted. It may be important for output
3614 to HTML in certain circumstances, but it can always be added using a
3615 filter that matches on links with title `wikilink`.
3617 If your workflow requires the current behavior, here is a lua filter
3618 that will add the `.html` extension:
3622 if el.title == 'wikilink' then
3623 el.target = el.target .. ".html"
3630 + Use format `ipynb` for raw cell where no format given.
3631 + Avoid introducing spurious `.0` on integers in metadata.
3633 * Markdown reader: fenced div takes priority over setext header.
3635 * HTML reader: read `data-foo` attribute into `foo` (#5392).
3636 The HTML writer adds the `data-` prefix for HTML5 for nonstandard
3637 attributes. But the attributes are represented in the AST without
3638 the `data-` prefix, so we should strip this when reading HTML.
3640 * LaTeX reader: Improve autolink detection (#5340).
3642 * PowerPoint writer (Jesse Rosenthal):
3644 + Expand builtin reference doc to model all layouts.
3645 The previous built-in reference doc had only title and content
3646 layouts. Add in a section-header slide and a two-content slide, so
3647 users can more easily modify it to build their own templates.
3648 + Always open up in slide view. When editing a
3649 template/reference-doc, the user might be in Master view, but when
3650 producing a slide show, it is assumed that slide view will be
3652 + Remove `handoutsMasterList` from template presentation.xml
3653 + Fix numerous errors in templating (#5402). Previously, some templates
3654 produced by Office 365 (MacOS) would not render with `--reference-doc`
3655 correctly. We now apply correct shapes for content, and build
3656 shape trees correctly.
3657 + Make default placeholder type for template lookup.
3658 + Apply speaker notes to metadata slide if applicable.
3659 + Test for speaker notes after breaking header.
3660 + Correctly handle notes after section-title header.
3661 Previously, if notes came after a section-title header (ie, a level-1
3662 header in a slide-level=2 presentation), they would go on the next
3663 slide. This keeps them on the slide with the header.
3664 + Internal improvements.
3668 + Use format `ipynb` for raw cell where no format given.
3669 According to nbformat docs, this is supposed to render in every
3670 format. We don't do that, but we at least preserve it as a raw
3671 block in markdown, so you can round-trip.
3672 + Consolidate adjacent raw blocks. Sometimes pandoc creates two
3673 HTML blocks, e.g. one for the open tag and one for a close tag.
3674 If these aren't consolidated, only one will show up in output cell.
3675 + Fixed carry-over of nbformat from metadata.
3676 + Preserve `nbformat_minor` if it's given. This helps with round-tripping.
3680 + Avoid inadvertently creating ?` or !` ligatures (#5407).
3681 These are upside down ? and !, resp.
3682 + Fix footnotes in table caption and cells (#5367). This fixes a
3683 bug wherein footnotes appeared in the wrong order, and with
3684 duplicate numbers, when in table captions and cells.
3685 We now use regular `\footnote` commands, even in the table
3686 caption and the minipages containing cells. Apparently
3687 longtable knows how to handle this.
3689 * HTML writer: Don't add data- prefix to RDFa attributes (#5403).
3691 * JATS writer: Ensure that plain strings go inside `<pub-id>` tag (#5397).
3695 + Better rendering of numbers (#5398). If the number is integral,
3696 we render it as an integral not a float.
3697 + Proper rendering of empty map in YAML metadata (#5398). Should
3698 be `{}`, not empty string.
3699 + Properly escape attributes in Markdown writer (#5369).
3700 + Be sure implicit figures work in list contexts (#5368).
3701 Previously they would sometimes not work: e.g., when they
3702 occurred in final paragraphs in lists that were originally
3703 parsed as Plain and converted later using PlainToPara.
3705 * Docx writer: Use `w:br` without attributes for line breaks (#5377).
3706 We previously added the attribute `type="textWrapping"`, but
3707 this causes problems on Word Online.
3709 * LaTeX template (Andrew Dunning):
3711 + Ensure correct heading/table order (#5365). Improve workaround
3712 (#1658) for tables following headings. The new solution works whether
3713 or not the `indent` variable is enabled.
3714 + Remove `subparagraph` variable. The default is now to use run-in
3715 style for level 4 and 5 headings (`\paragraph` and `\subparagraph`).
3716 To get the previous default behavior (where these were formatted as
3717 blocks, like `\subsubsection`), set the `block-headings` variable.
3718 + Add pandoc to PDF metadata (#5388).
3719 + Group graphics-related code (#5389).
3720 + Move `\setstretch` after front matter (#5179). Ensures that
3721 `\maketitle`, `\tableofcontents`, and so forth are not affected by
3722 changes to line spacing.
3724 * Update data/jats.csl to avoid commas between name-part elements
3727 * Add support for golang (`go`) with `--listings` (#5427).
3729 * Text.Pandoc.Shared - improve `metaToJSON` behavior with numbers.
3730 We now do a better job marshalling numbers from MetaString
3731 or MetaInlines into JSON Number.
3733 * Text.Pandoc.Writers.Shared: `metaValueToJSON`: use Number Values for
3734 integers. Pandoc's MetaValue doesn't have a distinguished number type,
3735 so numbers are put in MetaStrings. If the MetaString consists
3736 entirely of digits, we convert it to a Number. We should probably
3737 consider adding a MetaNumber constructor to MetaValue, for better
3738 round-tripping with JSON etc. This change aids round-tripping in
3739 ipynb metadata fields, like `toc_depth`.
3741 * Text.Pandoc.Class: `fetchItem`: don't treat UNC paths as
3742 protocol-relative URLs (#5127). These are paths beginning `//?/UNC/...`.
3744 * Text.Pandoc.ImageSize: Improve `pdfSize` so it handles
3745 a wider range of PDFs (#4322, with help from Richard Davis).
3747 * Text.Pandoc.Pretty: avoid stack overflow by using strict sum (#5401).
3749 * Fix harmless error in file-scope code (#5422).
3753 + Improve 'header' and 'heading' usage (#5423, Andrew
3754 Dunning). The term 'header' was being used where 'heading'
3755 is more appropriate.
3756 + Add paragraph on options affecting markdown in ipynb.
3758 * stack.yaml - remove -Wmissing-home-modules
3759 This seems to cause problems with stack ghci. Remove RTS options.
3761 * Add ghc-options to cabal.project.
3763 * appveyor.yml - use ghc 8.6.4. Fixes segfault issues on Windows (#5037).
3765 * linux build process: Remove clone of pandoc-citeproc (#5366).
3766 It wasn't being used; cabal.project specifies the version to use.
3768## pandoc 2.7.1 (2019-03-14)
3770 * Add tectonic as an option for --pdf-engine (#5345, Cormac Relf).
3771 Runs tectonic on STDIN instead of a temporary .tex file, so that it
3772 looks in the working directory for `\include` and `\input` like the rest
3773 of the engines. Allows overriding the output directory
3774 args with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`.
3776 * Allow `-o/--output` to be used with `--print-default-data-file`,
3777 `--print-highlighting-style`, `--print-default-template`.
3778 Note that `-o` must occur BEFORE the `--print*` command on the command
3779 line (this is documented, #5357).
3783 + Support `\underline`, `\ul`, `\uline` (#5359, Paul
3784 Tilley). These are parsed as a Span with class `underline`, as
3786 + Ensure that `\Footcite` and `\Footcites` get put in a note.
3790 + Remove sensitivity to `raw_html`, `raw_tex` extensions.
3791 We now include every output format. Pruning is handled by
3793 + Better handling of cell metadata. We now include even complex cell
3794 metadata in the Div's attributes (as JSON, in complex cases, or
3795 as plain strings in simple cases).
3799 + Recurse into native divs for output cell data (#5354).
3800 + Render cell metadata fields from div attributes.
3802 * Docx writer: avoid extra copy of abstractNum and num elements
3803 in numbering.xml. This caused pandoc-produced docx files to
3804 be uneditable using Word Online (#5358).
3806 * Markdown writer: improve handling of raw blocks/inline.
3807 We now emit raw content using `raw_attribute` when no more
3808 direct method is available. Use of `raw_attribute` can be
3809 forced by disabling `raw_html` and `raw_tex`.
3811 * LaTeX writer: Add classes for frontmatter support (#5353, Andrew Dunning)
3812 and remove frontmatter from `scrreprt`.
3816 + Improve readability (#5363, Andrew Dunning).
3817 + Robust section numbering removal (#5351, Andrew Dunning).
3818 Ensures that section numbering does not reappear with custom
3819 section levels. See <https://tex.stackexchange.com/questions/473653/>.
3820 + Better handling of front/main/backmatter (#5348).
3821 In pandoc 2.7 we assumed that every class with chapters would accept
3822 `\frontmatter`, `\mainmatter`, and `\backmatter`. This is not so (e.g.
3823 report does not). So pandoc 2.7 breaks on report class by including an
3824 unsupported command. Instead of the `book-class` variable, we use two
3825 variables, `has-chapters` and `has-frontmatter`, and set these
3826 intelligently in the writer.
3828 * Text.Pandoc.Shared: Improve `filterIpynbOutput`. Ensure that
3829 images are prioritized over text. `best` should include everything
3832 * Tests.Old: specify `--data-dir=../data` to ensure tests can find
3833 data files even if they haven't been installed. Remove old
3834 `pandoc_datadir` environment variable, which hasn't done anything for a
3837 * MANUAL.txt: Add recommendation to use `raw_attribute` with ipynb (#5354).
3839 * Use cmark-gfm-hs 0.1.8 (note that 0.1.7 is buggy).
3841 * Use latest pandoc-citeproc, texmath.
3844## pandoc 2.7 (2019-03-03)
3846 * Use XDG data directory for user data directory (#3582). Instead of
3847 `$HOME/.pandoc`, the default user data directory is now
3848 `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
3849 `$HOME/.local/share` but can be overridden by setting the
3850 environment variable. If this directory is missing, then
3851 `$HOME/.pandoc` is searched instead, for backwards compatibility.
3852 However, we recommend moving local pandoc data files from
3853 `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the
3854 default user data directory remains the same.
3856 * Slide show formats behavior change: content under headers
3857 less than slide level is no longer ignored, but included in
3858 the title slide (for HTML slide shows) or in a slide after
3859 the title slide (for beamer). This change makes possible
3860 2D reveal.js slideshows with content in the top slide on
3861 each stack (#4317, #5237).
3863 * Add command line option `--ipynb-output=all|none|best` (#5339).
3864 Output cells in ipynb notebooks often contain several different
3865 versions of an output, with different MIME types, e.g. an HTML
3866 table and a plain-text fallback. Specifying `--ipynb-output=best`
3867 (the default) ensures that the best version for the output format
3868 is used. `all` includes all versions, and `none` suppresses them
3869 all, leaving output cells empty.
3871 * `asciidoctor` is now an output format separate from `asciidoc`,
3872 to accommodate some minor implementation-specific differences
3873 (currently just in the treatment of display math).
3875 * Add `latexmk` as an option for `--pdf-engine` (#3195).
3876 Note that you can use `--pdf-engine-opt=-outdir=bar` to specify
3877 a persistent temp directory.
3881 + Improve tight/loose list handling (#5285). Previously the
3882 algorithm allowed list items with a mix of Para and Plain, which
3884 + Add newline when parsing blocks in YAML (#5271). Otherwise last
3885 block gets parsed as a Plain rather than a Para. This is a
3886 regression in pandoc 2.x. This patch restores pandoc 1.19
3888 + Make `yamlToMeta` respect extensions (#5272, Mauro Bieg).
3889 This adds a `ReaderOptions` parameter to `yamlToMeta` [API change].
3890 + Fix bug parsing fenced code blocks (#5304). Previously parsing
3891 would break if the code block contained a string of backticks of
3892 sufficient length followed by something other than end of line.
3894 * LaTeX reader: don't let `\egroup` match `{`. `braced` now actually
3895 requires nested braces. Otherwise some legitimate command and
3896 environment definitions can break.
3898 * Docx reader (Jesse Rosenthal):
3900 + Rename `getDocumentPath` as `getDocumentXmlPath`.
3901 + Use field notation for setting `ReaderEnv`.
3902 + Figure out `document.xml` path once at the beginning of parsing, and
3903 add it to the environment, so we can avoid repeated lookups.
3904 + Dynamically determine main document xml path (#5277).
3905 The desktop Word program places the main document file in
3906 `word/document.xml`, but the online word places it in
3907 `word/document2.xml`. This file path is actually stated in the root
3908 `_rels/.rels` file, in the `Relationship` element with an
3909 `http://../officedocument` type.
3910 + Fix paths in archive to prevent Windows failure (#5277).
3911 Some paths in archives are absolute (have an opening slash) which, for
3912 reasons unknown, produces a failure in the test suite on MS
3913 Windows. This fixes that by removing the leading slash if it exists.
3914 + Add comments to aid code readability.
3915 + Trim space inside the last inline (#5273).
3916 + Unwrap sdt elements in footnotes and comments (#5302).
3918 * Muse reader (Alexander Krotov):
3920 + Test that block level markup does not break `<verbatim>`.
3921 + Add secondary note support.
3923 * ipynb reader: handle images referring to attachments. Previously
3924 we didn't strip off the attachment: prefix, so even though the
3925 attachment was available in the mediabag, pandoc couldn't find it.
3929 + Fix parsing of figures (#5321). This ensures that a figure
3930 containing a single image is parsed as a pandoc "implicit
3931 figure" (i.e., a Para with a single Image whose title attribute
3932 begins with `fig:`). More complex figures will still be parsed
3934 + Support `fig-group` block element (#5317).
3935 + Handle citations with multiple references (#5310). The `rid`
3936 attribute can have a space-separated list of ids.
3938 * AsciiDoc Writer: Add `writeAsciiDoctor` [API change, Tarik Graba].
3939 Handle display math appropriately for Asciidoctor.
3941 * JATS writer: wrap figure caption in `<p>` to fix validation (#5290,
3946 + Implement WAI-ARIA roles for (end)notes, citations, and
3947 bibliography (#4213). Note that doc-biblioref is only used when
3948 link-citations produces links, since it belongs on links.
3949 + Include content (including speaker notes) in title slides
3954 + Ensure final newline.
3955 + Only include metadata under `jupyter` field.
3956 + Don't create attachments for images with absolute URIs,
3957 including data: URIs (#5303).
3958 + Keep plain text fallbacks in output even if a richer format is
3959 included (#5293). We don't know what output format will be needed.
3960 See the `--ipynb-output` command line option for a way to control
3961 what formats are included in the output.
3963 * Markdown writer: use `markdown="1"` when appropriate for Divs:
3964 when `native_divs` and `markdown_in_html_blocks` are disabled
3965 but `raw_html` and `markdown_attribute` are enabled.
3969 + Use right fold for `escapeString`. This is more elegant than
3970 the explicit recursive code we were using.
3971 + Avoid `{}` after control sequences when escaping.
3972 `\ldots{}.` doesn't behave as well as `\ldots.` with the latex
3973 ellipsis package. This patch causes pandoc to avoid emitting
3974 the `{}` when it is not necessary. Now `\ldots` and other
3975 control sequences used in escaping will be followed by either
3976 a `{}`, a space, or nothing, depending on context.
3977 + For beamer, include contents under headers superordinate to
3978 slidelevel (#4317). Currently we keep the fancy title slide, and
3979 add a new slide with the same title and whatever content was
3982 * Powerpoint writer (Jesse Rosenthal): support underlines.
3983 Use span with single class "underline" as in docx writer.
3985 * Muse writer: escape secondary notes (Alexander Krotov).
3987 * FB2 writer: add section identifiers support (#5229, John KetzerX).
3989 * Make `--fail-if-warnings` work for PDF output (#5343).
3991 * Lua filters (Albert Krewinkel):
3993 + Load module `pandoc` before calling `init.lua` (#5287). The file
3994 `init.lua` in pandoc's data directory is run as part of pandoc's
3995 Lua initialization process. Previously, the `pandoc` module was
3996 loaded in `init.lua`, and the structure for marshaling was
3997 set up after. This allowed simple patching of element
3998 marshaling, but made using `init.lua` more difficult. Now, all
3999 required modules are now loaded before calling `init.lua`. The
4000 file can be used entirely for user customization. Patching
4001 marshaling functions, while discouraged, is still possible via
4003 + All Lua modules bundled with pandoc, i.e., `pandoc.List`,
4004 `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the
4005 `pandoc` module. They are assigned to the fields `List`, `mediabag`,
4006 `utils`, and `text`, respectively.
4008 * Text.Pandoc.Lua (Albert Krewinkel):
4010 + Split `StackInstances` into smaller Marshaling modules.
4011 + Get `CommonState` from Lua global. This allows more control over
4012 the common state from within Lua scripts.
4016 + Support the `subject` metadata variable (#5289, Pascal Wagler).
4017 + Add `\frontmatter`, `\mainmatter`, `\backmatter`
4018 for book classes (#5306).
4020 * epub3 template: Add titlepage class to section (#5269).
4022 * HTML5 template: Add ARIA role `doc-toc` for table of contents (#4213).
4024 * Make `--metadata-file` use selected extensions (#5279, #5272, Mauro Bieg).
4026 * Text.Pandoc.Shared:
4028 + Remove `withTempDir` [API change].
4029 + Add new exported function `defaultUserDataDirs` [API change].
4030 + Add `filterIpynbOutput` [API change].
4031 + `compactify`: Avoid lists with a mix of Plain and Para elements
4034 * Text.Pandoc.Translations: reorder alphabetically and remove `Author`
4035 (#5334, Mauro Bieg).
4037 * Text.Pandoc.Extensions:
4039 + More carefully groom ipynb default extensions.
4040 + Add `all_symbols_escapable` to `githubMarkdownExtensions`.
4044 + Use system temp directory when possible (#1192). Previously we
4045 created temp dirs in the working directory, partly (a) because
4046 there were problems using the system temp directory on Windows,
4047 when their pathnames included tildes, and partly (b) because
4048 programs like `epstopdf.pl` would not be allowed to write to
4049 directories outside the working directory in restricted mode. We
4050 now (a) use the system temp dir except when the path includes
4051 tildes, and (b) set `TEXMFOUTPUT` when creating the PDF, so that
4052 subsidiary programs can use the system temp directory. This
4053 addresses problems that occurred when pandoc was used in a
4054 synced directory (such as Dropbox).
4055 + Change types of subsidiary functions to PandocIO, to allow
4056 warnings to be threaded through (#5343).
4058 * Text.Pandoc.MIME: add WebP (#5267, Mauro Bieg).
4060 * Tests: avoid calling `findPandoc` multiple times.
4062 * Old tests: remove need for temp files by using `pipeProcess`.
4064 * Added simple ipynb reader/writer tests (#5274).
4066 * Rearrange `--help` output in a more rational way, with common
4067 options at the beginning and options grouped by function (#5336).
4069 * trypandoc: Add JATS and other missing formats (Arfon Smith, #5291).
4071 * Add missing copyright notices and remove license boilerplate (#4592,
4074 * Use latest basement/foundation on 32bit windows.
4076 * Use latest skylighting (#5328). Custom syntax definitions no
4077 longer try to load `language.dtd`.
4079 * Require texmath 0.11.2.1
4081 * Use latest pandoc-citeproc (0.16.1.1).
4085 + Clarify variable substitution indentation in templates (#5338,
4086 Agustín Martín Barbero).
4087 + Reorder custom-styles section (#5324, Mauro Bieg).
4089## pandoc 2.6 (2019-01-30)
4091 * Support ipynb (Jupyter notebook) as input and output format.
4093 + Add `ipynb` as input and output format (extension `.ipynb`).
4094 + Added Text.Pandoc.Readers.Ipynb [API change].
4095 + Added Text.Pandoc.Writers.Ipynb [API change].
4096 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
4098 + Depend on ipynb library.
4099 + Note: there is no template for ipynb.
4101 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
4102 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
4105 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
4106 extension. Task lists are supported from markdown and gfm input.
4107 They should work, to some degree, in all output formats, though in
4108 most formats you'll get a bullet list with a unicode character for
4109 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
4110 box is used as the list marker. API changes:
4112 + Added constructor `Ext_task_lists` to `Extension`.
4113 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
4116 * Allow some command line options to take URL in addition to FILE.
4117 `--include-in-header`, `--include-before-body`, `--include-after-body`.
4121 + Handle empty `start` attribute (see #5162).
4122 + Treat `textarea` as a verbatim environment (#5241) and preserve
4127 + Change treatment of `number-lines` directive (Brian Leung,
4128 #5207). Directives of this type without numeric inputs should
4129 not have a `startFrom` attribute; with a blank value, the
4130 writers can produce extra whitespace.
4131 + Removed superfluous `sourceCode` class on code blocks (#5047).
4132 + Handle `sourcecode` directive as synonynm for `code` (#5204).
4136 + Remove `sourceCode` class for literate Haskell code blocks
4137 (#5047). Reverse order of `literate` and `haskell` classes on
4138 code blocks when parsing literate Haskell, so `haskell` is
4140 + Treat `<textarea>` as a verbatim environment (#5241).
4144 + Handle `minlevel` option differently (#5190, Brian Leung).
4145 When `minlevel` exceeds the original minimum level observed in
4146 the file to be included, every heading should be shifted
4148 + Allow for case of `:minlevel == 0` (#5190).
4149 + Fix treatment of links to images (#5191, Albert Krewinkel).
4150 Links with descriptions which are pointing to images are no
4151 longer parsed as inline images, but as links.
4152 + Add support for #+SELECT_TAGS (Brian Leung).
4153 + Separate filtering logic from conversion function (Brian Leung).
4155 * TWiki reader: Fix performance issue with underscores (#3921).
4157 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
4158 We may not still be exactly matching mediawiki's algorithm.
4162 + Remove `sourceCode` class for literate Haskell code blocks
4163 (#5047). Reverse order of `literate` and `haskell` classes on
4164 code blocks when parsing literate Haskell, so `haskell` is
4166 + Support `\DeclareMathOperator` (#5149).
4167 + Support `\inputminted` (#5103).
4168 + Support `\endinput` (#5233).
4169 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
4170 was interpreted as a file extension, leading pandoc not to add
4171 `.tex` (and thus not to find the file). The new behavior matches
4176 + Use `mapLeft` from Shared instead of defining own.
4178 * Docx reader (Jesse Rosenthal):
4180 + Handle level overrides (#5134).
4184 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
4185 Also supports additional core properties: `subject`, `lang`,
4186 `category`, `description`.
4187 + Make Level into a real type, instead of an alias for a tuple
4190 * ICML writer (Mauro Bieg):
4192 + Support custom-styles (#5137, see #2106).
4193 + Support unnumbered headers (#5140).
4195 * Texinfo writer: Use header identifier for anchor if present (#4731).
4196 Previously we were overwriting an existing identifier with a new one.
4198 * Org writer: Preserve line-numbering for example and code blocks
4201 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
4202 in HTML and PDF as a unicode minus sign.
4204 * Ms writer: Ensure we have a newline after .EN in display math (#5251).
4206 * RST writer: Don't wrap simple table header lines (#5128).
4208 * Asciidoc writer: Shorter delimiters for tables, blockquotes
4209 (#4364). This matches asciidoctor reference docs.
4211 * Dokuwiki writer: Remove automatic `:` prefix before internal image
4212 links (#5183, Damien Clochard). This prevented users from making
4213 relative image links.
4215 * Zimwiki writer: remove automatic colon prefix before internal
4216 images (#5183, Damien Clochard).
4218 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
4219 (#5105). Captions used to have the word 'caption' prepended; this
4220 has been removed. Also, 'thumb' is used instead of 'frame' to
4221 allow images to be resized.
4225 + Ensure that we don't get > 2 levels of section nesting,
4226 even with slide level > 2 (#5168).
4227 + If slide level == N but there is no N-level header, make
4228 sure the next header with level > N gets treated as a slide
4229 and put in a section, rather than remaining loose (#5168).
4233 + Make `plain` RawBlocks pass through in `plain` output.
4234 + Include needed whitespace after HTML figure (#5121).
4235 We use HTML for a figure in markdown dialects that can't
4236 represent it natively.
4238 * Commonmark writer:
4240 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
4241 + Implement `--toc` (`writerTableOfContents`)
4242 in commonmark/gfm writers (#5172).
4246 + Ensure that picture transforms are done on metadata too.
4247 + Small fixes to `nav.xhtml`:
4248 Add 'landmarks' id attribute to the landmarks nav.
4249 Replace old default CSS removing numbers from ol.toc li
4250 with new rules that match `nav#toc ol, nav#landmarks ol`.
4251 We keep the `toc` class on `ol` for backwards compatibility.
4255 + Make raw content marked `beamer` pass through in `beamer`
4256 output (pandoc/lua-filters#40).
4257 + Beamer: avoid duplicated `fragile` property in some cases
4259 + Add `#` special characters for listings (#4939).
4260 This character needs special handling in `\lstinline`.
4262 * RTF writer: use `toTableOfContents` from Shared to replace
4263 old duplicated code.
4267 + Support custom properties. Also supports additional core
4268 properties: `subject`, `category`, `description` (#5252,
4269 Agustín Martín Barbero).
4270 + Use `toTableOfContents` from Shared to replace old duplicated code.
4272 * ODT writer (Augustín Martín Barbero):
4274 + Fix typo in custom properties (#2839).
4275 + Improve standard properties, including the following core
4276 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
4277 `keywords`, `initial-creator` (from authors), `creation-date`
4278 (actual creation date) (#5252).
4282 + Allow '-' in filenames for custom lua writers (#5187).
4283 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
4284 + sample.lua: Add a missing `>` (MichaWiedenmann).
4286 * reveal.js template: Add `zoomKey` config (#4249).
4288 * HTML5 template: Remove unnecessary type="text/css" on style and
4289 link for HTML5 (#5146).
4291 * LaTeX template (Andrew Dunning, except where noted):
4293 + Prevent fontspec from scaling `mainfont` to match the default
4294 font, Latin Modern. A main font set to 12pt could
4295 previously appear between 11pt to 13pt depending on its design.
4296 To return to the earlier rendering, use `-V
4297 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
4298 + Display monospaced fonts without TeX ligatures when using
4299 `--pdf-engine=lualatex`. It now matches the behaviour of other
4300 engines (#5212, #5218).
4301 + Remove the deprecated `romanfont` variable. The functionality of
4302 `mainfont` is identical (#5218).
4303 + Render `\subtitle` with the standard document classes.
4304 Previously, `subtitle` only appeared when using the KOMA-Script
4305 classes or Beamer (#5213, #5244).
4306 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
4307 several language selection problems, notably with retaining
4308 French spacing conventions when switching to a verbatim
4309 environment or another language; and in printing Greek text
4310 without hyphenation (#5193).
4311 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
4312 available, improving the appearance of URLs by allowing them to
4313 break at additional points (#5193).
4314 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
4315 to correct heading levels in PDF bookmarks: see the [KOMA-Script
4316 3.26 release notes](https://komascript.de/release3.26) (#5193).
4317 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
4318 avoid a possible error when using additional packages alongside
4319 footnotes in tables (#5193, closes #4861).
4320 + Remove obsolete `fixltx2e` package, which has no functionality
4321 with TeX Live 2015 or later (#5193).
4322 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
4323 + Restrict `institute` variable to Beamer (#5219).
4324 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
4325 package if available to make footnotes in tables compatible
4326 with `hyperref` (#5234).
4327 + Number parts and chapters in book classes only if the
4328 `numbersections` variable is set, for consistency with other
4329 output formats. To return to the previous behaviour, use
4330 `-V numbersections -V secnumdepth=0` (#5235).
4331 + Reindent file (#5193).
4332 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
4333 + Set default listings language for lua, assembler (#5227, John
4334 MacFarlane). Otherwise we get an error when trying to compile code
4335 with lua or assembler code. To change the default dialect
4336 (currently 5.3 for lua and x86masm for assembler), you can use
4337 `--include-in-header` to inject something like
4338 `\lstset{defaultdialect=[5.2]Lua}`.
4340 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
4341 in an instance of PandocMonad, like the other readers and
4342 writers. [API change]
4344 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
4345 in an instance of PandocMonad, like the other readers and
4346 writers. [API change]
4348 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
4349 for `PandocError`. [API change]
4351 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
4352 This is refactored out from the Markdown writer.
4353 It can be used in other writers to create a table of contents.
4355 * Improve error messages for UTF-8 decoding errors. Now we give
4356 the filename and byte offset (#4765).
4358 * Text.Pandoc.XML: Strip out illegal XML characters in
4359 `escapeXMLString` (#5119).
4361 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
4362 The implementation of `pipeProcess` was rewritten to fix sporadic
4363 failures caused by prematurely closed pipes.
4365 * Use `safeRead` instead of `read` everywhere in the code
4366 (John MacFarlane, Mauro Bieg, #5162, #5180).
4368 * Text.Pandoc.SelfContained: Decompress `.svgz` when
4369 converting to `data:` URI (#5163, Alexander Krotov).
4371 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
4372 (#5175, Alexander Krotov). [API change]
4374 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
4375 When pandoc is compiled with ghc 8.6, Windows paths are treated
4376 differently, and paths beginning `\\server` no longer work.
4377 This commit rewrites such patsh to `\\?\UNC\server` which works.
4378 The change operates at the level of argument parsing, so it
4379 only affects the command line program.
4381 * Simplify/fix reading of `--metadata` values on command line
4382 to avoid problems relating to hvr/HsYAML#7 (#5177).
4384 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
4385 Krewinkel). Incorrect types to pandoc element constructors are
4386 automatically converted to the correct types when possible. This was
4387 already done for most constructors, but conversions are now also done
4388 for nested types (like lists of lists).
4390 * Removed custom Setup.hs, use build-type: simple. The only thing we
4391 gained from the custom build was automatic installation of the man
4392 page when using 'cabal install'. But custom builds cause problems,
4393 e.g., with cross-compilation. Installation of the man page is
4394 better handled by packagers. Note to packagers (e.g. Debian): it
4395 may be necessary to add a step installing the man page with the
4398 * Allow latest http-client, tasty, zip-archive, Glob.
4400 * Require skylighting >= 0.7.5, adding support for sml, J,
4403 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
4404 works well with cabal v2.
4408 + Use button for installer links (John MacFarlane, Mauro Bieg,
4410 + Fix links and bump required stack version (max).
4411 + Improve installation notes on associated software (Andrew
4412 Dunning). Includes explanation of how to install related tools
4413 with package managers (since the method of installing
4414 `rsvg-convert` is not obvious).
4416 * doc/org.md: improve documentation of org features (Albert
4419 * doc/lua-filters.md: use 3rd level headers for module fields.
4423 + Clarify automatic identifiers (#5201). We remove
4424 non-alphanumerics. This includes, e.g., emojis.
4425 + Fix example for Div with id (Geoffrey Ely).
4426 + Update list of LaTeX packages used.
4427 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
4428 + Mention `raw_attribute` in documentation for `raw_html` and
4429 `raw_tex` (#5240, thanks to @eiro).
4430 + Clarify that `$sep$` must come right before `$endfor$` in templates
4432 + Document metadata support for docx, odt, pptx writers (Agustín
4434 + Reorganize template variables (#5249, Andrew Dunning).
4435 Add additional headings to categorize variables, and
4436 alphabetize when there is large number; add more examples.
4437 + Document `date-meta` template variable (#5260, Tristan Stenner).
4439 * trypandoc: Fix CSS and viewport.
4441## pandoc 2.5 (2018-11-27)
4443 * Text.Pandoc.App: split into several unexported submodules (Albert
4444 Krewinkel): Text.Pandoc.App.FormatHeuristics,
4445 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
4446 Text.Pandoc.App.OutputSettings. This is motivated partly by the
4447 desire to reduce recompilations when something is modified,
4448 since App previously depended on virtually every other module.
4450 * Text.Pandoc.Extensions
4452 + Semantically, `gfm_auto_identifiers` is now a modifier of
4453 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
4454 be turned on, and then the type of identifier produced depends on
4455 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
4456 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
4457 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
4458 GitHub doesn't seem to strip non-ascii characters any more.
4460 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
4462 + Test AST object equality via Haskell (#5092). Equality of Lua
4463 objects representing pandoc AST elements is tested by unmarshalling
4464 the objects and comparing the result in Haskell.
4465 A new function `equals` which performs this test has been added to the
4466 `pandoc.utils` module.
4467 + Improve stringify. Meta value strings (MetaString)
4468 and booleans (MetaBool) are now converted to the literal string and the
4469 lowercase boolean name, respectively. Previously, all values of these
4470 types were converted to the empty string.
4472 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
4473 already exists (Alexander Krotov).
4475 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
4476 or beginning of line (#5050).
4478 * Text.Pandoc.Readers.Markdown
4480 + Fix parsing of citations, quotes, and underline emphasis
4481 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
4482 and underline emphasis were no longer recognized after certain
4483 symbols, like parentheses (#5099, #5053).
4484 + In pandoc 2.4, a soft break after an abbreviation would be
4485 relocated before it to allow for insertion of a nonbreaking
4486 space after the abbreviation. This behavior is here reverted.
4487 A soft break after an abbreviation will remain, and no nonbreaking
4488 space will be added. Those who care about this issue should take care not
4489 to end lines with an abbreviation, or to insert nonbreaking spaces
4492 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
4493 `<body>` (Alexander Krotov). Some libraries include custom elements
4496 * Text.Pandoc.Readers.HTML
4498 + Allow `tfoot` before body rows (#5079).
4499 + Parse `<small>` as a Span with class "small" (#5080).
4500 + Allow thead containing a row with `td` rather than `th` (#5014).
4502 * Text.Pandoc.Readers.LaTeX
4504 + Cleaned up handling of dimension arguments. Allow decimal points,
4506 + Don't allow arguments for verbatim, etc.
4507 + Allow space before bracketed options.
4508 + Allow optional arguments after `\\` in tables.
4509 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
4510 but know that these font changing commands take no arguments.
4512 * Text.Pandoc.Readers.Muse
4514 + Trim whitespace before parsing grid table cells (Alexander Krotov).
4515 + Add grid tables support (Alexander Krotov).
4517 * Text.Pandoc.Shared
4519 + For bibliography match Div with id `refs`, not class `references`.
4520 This was a mismatch between pandoc's docx, epub, latex, and markdown
4521 writers and the behavior of pandoc-citeproc, which actually looks for a
4522 div with id `refs` rather than one with class `references`.
4523 + Exactly match GitHub's identifier generating algorithm (#5057).
4524 + Add parameter for `Extensions` to `uniqueIdent` and
4525 `inlineListToIdentifier` (#5057). [API change]
4526 This allows these functions to be sensitive to the settings of
4527 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
4528 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
4529 also means that `gfm_auto_identifiers` can now be used in all formats.
4531 * Text.Pandoc.Writers.AsciiDoc
4533 + Use `.`+ as list markers to support nested ordered lists (#5087).
4534 + Support list number styles (#5089).
4535 + Render Spans using `[#id .class]#contents#` (#5080).
4537 * Text.Pandoc.Writers.CommonMark
4539 + Respect `--ascii` (#5043, quasicomputational).
4540 + Make sure `--ascii` affects quotes, super/subscript.
4542 * Text.Pandoc.Writers.Docx
4544 + Fix bookmarks to headers with long titles (#5091).
4545 Word has a 40 character limit for bookmark names. In addition, bookmarks
4546 must begin with a letter. Since pandoc's auto-generated identifiers may
4547 not respect these constraints, some internal links did not work. With
4548 this change, pandoc uses a bookmark name based on the SHA1 hash of the
4549 identifier when the identifier isn't a legal bookmark name.
4550 + Add bookmarks to code blocks (Nikolay Yakimov).
4551 + Add bookmarks to images (Nikolay Yakimov).
4552 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
4554 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
4557 <meta name="calibre:series" content="Classics on War and Politics"/>
4559 are now included from an epub XML metadata file. You can also include
4560 this information in your YAML metadata, like so:
4563 series: Classics on War and Policitics
4565 In addition, ibooks-specific metadata can now be included via an XML
4566 file. (Previously, it could only be included via YAML metadata, see
4569 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `"` outside of
4572 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
4573 This avoids splitting up the output unnecessarily into separate elements.
4575 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
4576 if `writerIncremental` is True (#5072).
4578 * Text.Pandoc.Writers.Muse (Alexander Krotov).
4580 + Output tables as grid tables if they have multi-line cells.
4581 + Indent simple tables only on the top level.
4582 + Output tables with one column as grid tables.
4583 + Add support for `--reference-location`.
4584 + Internal improvements.
4586 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
4587 #5095). This was a regression in pandoc 2.4.
4589 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
4591 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
4593 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
4594 when there are several choices for a particular character.
4596 * data/abbreviations
4598 + Add additional abbreviations (Andrew Dunning)
4599 Many of these borrowed from the Chicago Manual of Style 10.42,
4600 'Scholarly abbreviations'.
4604 + Asciidoc template: add :lang: to title header is lang is set in
4607 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
4608 Disabling the flag will cause derivation of ToJSON and FromJSON
4609 instances via GHC Generics instead of Template Haskell. The flag is
4610 enabled by default, as deriving via Generics can be slow (see #4083).
4614 + Tweaked drop-down lists.
4615 + Put link to site in footer.
4616 + Preselect output format.
4617 + Update on change of in or out format.
4618 + Add man input format.
4622 + Fix outdated description of latex_macros extension.
4623 + Clarified placement of bibliography.
4624 + Added "A note on security."
4625 + Fix note on curly brace syntx for locators.
4626 + Document new explicit syntax for citeproc locators.
4627 + Remove confusing cross-links for some extensions.
4628 + Don't put pandoc in code ticks in heading.
4629 + Document that `--ascii` works for gfm and commonmark too.
4630 + Add `man` to `--from` options.
4632 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
4635## pandoc 2.4 (2018-11-03)
4639 * New input format `man` (Yan Pashkovsky, John MacFarlane).
4643 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
4644 via the new `writerPreferAscii` field in `WriterOptions`.
4645 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
4646 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
4647 Previously the to-ascii translation was done in Text.Pandoc.App,
4648 and thus not available to those using the writer functions
4651 * `--ascii` now works with Markdown output. HTML5 character reference
4654 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
4655 guaranteed, but the writer will use commands like `\"{a}` and `\l`
4656 whenever possible, to avoid emitting a non-ASCII character.
4658 * For HTML5 output, `--ascii` now uses HTML5 character reference
4659 entities rather than numerical entities.
4661 * Improved detection of format based on extension (in Text.Pandoc.App).
4662 We now ensure that if someone tries to convert a file for a
4663 format that has a pandoc writer but not a reader, it won't just
4664 default to markdown.
4666 * Add viz. to abbreviations file (#5007, Nick Fleisher).
4668 * AsciiDoc writer: always use single-line section headers,
4669 instead of the old underline style (#5038). Previously the single-line
4670 style would be used if `--atx-headers` was specified, but
4671 now it is always used.
4673 * RST writer: Use simple tables when possible (#4750).
4675 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
4676 quasicomputational). Previously, the writer would unconditionally
4677 emit HTML output for subscripts, superscripts, strikeouts (if the
4678 strikeout extension is disabled) and small caps, even with
4679 `raw_html` disabled. Now there are plain-text (and, where
4680 possible, fancy Unicode) fallbacks for all of these corresponding
4681 (mostly) to the Markdown fallbacks, and the HTML output is only
4682 used when `raw_html` is enabled.
4684 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
4685 This allows raw openxml blocks and inlines to be used in the pptx
4686 writer. Caveats: (1) It's up to the user to write
4687 well-formed openxml. The chances for corruption, especially with
4688 such a brittle format as pptx, is high. (2) Because of
4689 the tricky way that blocks map onto shapes, if you are using
4690 a raw block, it should be the only block on a slide
4691 (otherwise other text might end up overlapping it). (3) The
4692 pptx ooxml namespace abbreviations are different from the
4693 docx ooxml namespaces. Again, it's up to the user to get it
4694 right. Unzipped document and ooxml specification should be
4697 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
4698 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
4699 we tell katex to convert the contents of span elements with
4700 class "math". Since math has already been identified, this
4701 avoids wasted time parsing for LaTeX delimiters. Note, however,
4702 that this may yield unexpected results if you have span elements
4703 with class "math" that don't contain LaTeX math.
4704 Also, use latest version of KaTeX by default (0.9.0).
4706 * The man writer now produces ASCII-only output, using groff escapes,
4711 + Add title, author and date to metadata; any remaining
4712 metadata fields are added as `meta:user-defined` tags.
4713 + Implement table caption numbering (#4949, Nils Carlson).
4714 Captioned tables are numbered and labeled with format "Table 1:
4715 caption", where "Table" is replaced by a translation, depending
4716 on the value of `lang` in metadata. Uncaptioned tables are not
4718 + OpenDocument writer: Implement figure numbering in captions (#4944,
4719 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
4720 The format in the caption is "Figure 1: caption" and so on
4721 (where "Figure" is replaced by a translation, depending on the
4722 value of `lang` in the metadata). Captioned figures are numbered
4723 consecutively and uncaptioned figures are not enumerated. This
4724 is necessary in order for LibreOffice to generate an
4725 Illustration Index (Table of Figures) for included figures.
4727 * RST reader: Pass through fields in unknown directives as div attributes
4728 (#4715). Support `class` and `name` attributes for all directives.
4730 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
4731 Brian Leung). Headers with the corresponding tags should not
4732 appear in the output.
4734 * Log warnings about missing title attributes now include a
4735 suggestion about how to fix the problem (#4909).
4737 * Lua filter changes (Albert Krewinkel):
4739 + Report traceback when an error occurs. A proper Lua traceback is
4740 added if either loading of a file or execution of a filter
4741 function fails. This should be of help to authors of Lua filters
4742 who need to debug their code.
4744 + Allow access to pandoc state (#5015). Lua filters and custom
4745 writers now have read-only access to most fields of pandoc's
4746 internal state via the global variable `PANDOC_STATE`.
4748 + Push ListAttributes via constructor (Albert Krewinkel).
4749 This ensures that ListAttributes, as present in OrderedList elements,
4750 have additional accessors (viz. `start`, `style`, and `delimiter`).
4752 + Rename ReaderOptions fields, use snake_case. Snake case is used
4753 in most variable names, using camelCase for these fields was an
4754 oversight. A metatable is added to ensure that the old field
4755 names remain functional.
4757 + Iterate over AST element fields when using `pairs`. This makes
4758 it possible to iterate over all ield names of an AST element by
4759 using a generic `for` loop with pairs`:
4761 for field_name, field_content in pairs(element) do
4765 Raw table fields of AST elements should be considered an
4766 implementation detail and might change in the future. Accessing
4767 element properties should always happen through the fields
4768 listed in the Lua filter docs.
4770 Note that the iterator currently excludes the `t`/`tag` field.
4772 + Ensure that MetaList elements behave like Lists. Methods usable
4773 on Lists can also be used on MetaList objects.
4775 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
4776 object to the constructor `pandoc.MetaList` now returns the
4777 passed list as a MetaList. This is consistent with the
4778 constructor behavior when passed an (untagged) list.
4780 * Custom writers: Custom writers have access to the global variable
4781 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
4782 a userdata wrapper around the full pandoc AST and exposes two
4783 fields, `meta` and `blocks`. The field content is only
4784 marshaled on-demand, performance of scripts not accessing the
4785 fields remains unaffected.
4789 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
4791 * Text.Pandoc.Shared:
4793 + Export `splitSentences`. This was previously duplicated in the Man and
4795 + Add `ToString` typeclass (Alexander Krotov).
4797 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
4799 * Text.Pandoc.Parsing
4801 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
4802 + Generalize `readWithM` from `[Char]` to any `Char` Stream
4803 that is a `ToString` instance (Alexander Krotov).
4805 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
4807 * Text.Pandoc.XML: add `toHtml5Entities`.
4809 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
4812 * Text.Pandoc.Writers.Shared
4814 + Add exported functions `toSuperscript` and
4815 `toSubscript` (quasicomputational, #4528).
4816 + Remove exported functions `metaValueToInlines`,
4817 `metaValueToString`. Add new exported functions
4818 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
4819 `lookupMetaString`. Use these whenever possible for uniformity
4820 in writers (Mauro Bieg, #4907). (Note that
4821 removed function `metaValueToInlines` was in previous
4823 + Add `metaValueToString`.
4827 + Expose more useful internals (Albert Krewinkel):
4829 - `runFilterFile` to run a Lua filter from file;
4830 - data type `Global` and its constructors; and
4831 - `setGlobals` to add globals to a Lua environment.
4833 This module also contains `Pushable` and `Peekable` instances
4834 required to get pandoc's data types to and from Lua. Low-level
4835 Lua operation remain hidden in Text.Pandoc.Lua.
4837 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
4839 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
4840 `apply` (Albert Krewinkel).
4842### Bug fixes and under-the-hood improvements
4844 * Text.Pandoc.Parsing
4846 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
4847 + Rewrite `uri` without `withRaw` (Alexander Krotov).
4848 + Generalize `parseFromString` and `parseFromString'` to any
4849 streams with Char token (Alexander Krotov)
4850 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
4852 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
4855 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
4860 + Work around HXT limitation for --syntax-definition with windows
4862 + Always preserve tabs for man format. We need it for tables.
4863 + Split command line parsing code into a separate unexported
4864 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
4866 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
4869 * New unexported module Text.Pandoc.RoffChar, provided character
4870 escape tables for roff formats.
4872 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
4873 accept processing instructions (#3123, regression since 2.0).
4875 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
4876 account for empty lists (Alexander Krotov).
4878 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
4879 headerless table (#4382).
4881 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
4882 blocks (Brian Leung).
4884 * Text.Pandoc.Readers.Vimwiki:
4886 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
4888 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
4890 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
4891 `[Char]` (Alexander Krotov).
4893 * Text.Pandoc.Readers.LaTeX
4895 + Allow space at end of math after `\` (#5010).
4896 + Add support for `nolinkurl` command (#4992, Brian Leung).
4897 + Simplified type on `doMacros'`.
4898 + Tokenize before pulling tokens, rather than after (#4408). This
4899 has some performance penalty but is more reliable.
4900 + Make macroDef polymorphic and allow in inline context.
4901 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
4902 I have actually seen tex like this in the wild.
4903 + Improved parsing of `\def`, `\let`. We now correctly parse:
4913 + Improve parsing of `\def` argspec.
4914 + Skip `\PackageError` commands (see #4408).
4915 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
4916 so no raw tex should result unless we explicitly say `+raw_tex`.
4917 Previously some raw commands did make it through.
4918 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
4919 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
4920 Text.Pandoc.Readers.LaTeX.Lang (unexported).
4921 + Simplified accent code using unicode-transforms.
4922 New dependency on unicode-transforms package for normalization.
4923 + Allow verbatim blocks ending with blank lines (#4624).
4924 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
4925 This collects some of the general-purpose code from the LaTeX reader,
4926 with the aim of making the module smaller.
4928 * Text.Pandoc.Readers.Markdown
4930 + Fix awkward soft break movements before abbreviations (#4635).
4931 + Add updateStrPos in a couple places where needed.
4933 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
4934 (#4947). These are variants for "complex scripts" like Arabic
4935 and are now treated just like b, i (bold, italic).
4937 * Text.Pandoc.Readers.Muse (Alexander Krotov)
4939 + Try to parse lists before trying to parse table.
4940 This ensures that tables inside lists are parsed correctly.
4941 + Forbid whitespace after opening and before closing markup
4943 + Parse page breaks.
4944 + Simplify `museToPandocTable` to get rid of partial functions.
4945 + Allow footnotes to start with empty line.
4946 + Make sure that the whole text is parsed.
4947 + Allow empty headers. Previously empty headers caused parser to
4948 terminate without parsing the rest of the document.
4949 + Allow examples to be indented with tabs.
4950 + Remove indentation from examples indicated by `{{{` and `}}}`.
4951 + Fix parsing of empty cells.
4952 + Various changes to internals.
4953 + Rewrite some parsers in applicative style.
4954 + Avoid tagsoup dependency.
4955 + Allow table caption to contain `+`.
4957 * Text.Pandoc.Writers.LaTeX
4959 + Add newline if math ends in a comment (#4880). This prevents the
4960 closing delimiter from being swalled up in the comment.
4961 + With `--listings`, don't pass through org-babel attributes (#4889).
4962 + With `--biblatex`, use `\autocite` when possible (#4960).
4963 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
4964 we don't have prefixes and suffixes, we use instead
4965 `\autocite{a1,a2,a3}`.
4966 + Fix description lists contining highlighted code (#4662).
4968 * Text.Pandoc.Writers.Man
4970 + Don't wrap `.SH` and `.SS` lines (#5019).
4971 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
4972 one paragraph definitions.
4973 + Moved common groff functions to Text.Pandoc.Writers.Groff.
4974 * Fix strong/code combination on man (should be `\f[CB]` not
4975 `\f[BC]`, see #4973).
4976 + Man writer: use `\f[R]` instead of `\f[]` to reset font
4977 (Alexander Krotov, #4973).
4978 + Move `splitSentences` to Text.Pandoc.Shared.
4980 * Text.Pandoc.Writers.Docx
4982 + Add framework for custom properties (#3034). So far, we don't
4983 actually write any custom properties, but we have the
4984 infrastructure to add this.
4986 + Handle tables in table cells (#4953). Although this is not
4987 documented in the spec, some versions of Word require a `w:p`
4988 element inside every table cell. Thus, we add one when the
4989 contents of a cell do not already include one (e.g. when a table
4990 cell contains a table).
4992 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
4993 Adjust header levels so that n+1 level headers are only
4994 found under n level headers, and the top level is 1.
4996 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
4997 alignment (#4385). This change eliminates the large gap we used
4998 to have between bullet and text, and also ensures that numbers
4999 in numbered lists will be right-aligned.
5001 * Text.Pandoc.Writers.ZimWiki
5003 + Number ordered list items sequentially, rather than always
5005 + Remove extra indentation on lists (#4963).
5007 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
5008 `stylesheet` (Mauro Bieg, #4990).
5010 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
5011 normal content (#4629). Otherwise a raw block can prevent a
5012 paragraph from being recognized as such.
5014 * Text.Pandoc.Writers.Ms
5016 + Removed old `escapeBar`. We don't need this now that we use
5018 + Moved common code to Text.Pandoc.Writers.Roff and to
5019 Text.Pandoc.RoffChar.
5020 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
5021 with the man writer).
5023 * Text.Pandoc.Writers.Muse (Alexander Krotov).
5025 + Add support for grid tables.
5026 + Fix Muse writer style.
5027 + Use `length` instead of `realLength` to calculate definition
5028 indentation. Muse parsers don't take character width into
5029 account when calculating indentation.
5030 + Do not insert newline before lists.
5031 + Use lightweight markup after `</em>` tag.
5033 * New unexported module Text.Pandoc.Writers.Roff, providing functions
5034 useful for all roff format writers (man, ms).
5038 + Move globals handling to separate module Text.Pandoc.Lua.Global
5041 + Lua filter internals: push Shared.Element as userdata (Albert
5042 Krewinkel). Hierarchical Elements were pushed to Lua as plain
5043 tables. This is simple, but has the disadvantage that marshaling
5044 is eager: all child elements will be marshaled as part of the
5045 object. Using a Lua userdata object instead allows lazy access
5046 to fields, causing content marshaling just (but also each time)
5047 when a field is accessed. Filters which do not traverse the full
5048 element contents tree become faster as a result.
5050### Default template changes
5054 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
5055 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
5057 * AsciiDoc template: use single-line style for title.
5059 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
5062 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
5065 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
5067 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
5070### Documentation improvements
5074 + Add chromeos install instructions (#4958) (Evan Pratten).
5075 + Add note about TinyTeX.
5079 + Change `groff` -> `roff`.
5080 + Implement `--ascii` for Markdown writer.
5081 + Clarify LaTeX image dimensions output (Mauro Bieg).
5083 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
5085 * doc/getting-started.md: Added title to test1.md to avoid warning.
5087 * doc/lua-filters.md: merge type references into main document,
5088 fix description of Code.text (Albert Krewinkel).
5090### Build infrastructure improvements
5094 + Makefile: added quick-cabal, full-cabal targets.
5095 + Make .msi download targets insensitive to order of appveyor builds.
5097 * Update benchmarks for ghc 8.6.1.
5101 + Enable more compiler warnings (Albert Krewinkel).
5102 + Make base lower bound 4.8.
5103 + Bump upper bound for QuickCheck.
5104 + Bump upper bound for binary.
5105 + Updated version bounds for containers and haddock-library (#4974).
5106 + Added docx/docPropos/custom.xml to cabal data-files.
5107 + Require skylighting 0.7.4 (#4920).
5108 + New dependency on unicode-transforms package for normalization.
5110 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
5112 * Added `tools/changelog-helper.sh`.
5114 * Added test/grofftest.sh for testing the man reader on real man pages.
5116## pandoc 2.3.1 (2018-09-28)
5120 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
5121 This eliminates a regression introduced after pandoc 2.1.1, which
5122 caused inline constructions containing newlines not to be recognized.
5123 + Fix bug with internal link targets (#4919). They were gobbling up
5124 indented content underneath.
5126 * Markdown reader: distinguish autolinks in the AST. With this change,
5127 autolinks are parsed as Links with the `uri` class. (The same is true
5128 for bare links, if the `autolink_bare_uris` extension is enabled.)
5129 Email autolinks are parsed as Links with the `email` class. This
5130 allows the distinction to be represented in the AST.
5134 + Force inline code blocks to honor export options (Brian Leung).
5135 + Parse empty argument array in inline src blocks (Brian Leung).
5137 * Muse reader (Alexander Krotov):
5139 + Added additional tests.
5140 + Do not allow code markup to be followed by digit.
5141 + Remove heading level limit.
5142 + Simplify `<literal>` tag parsers
5143 + Parse Text instead of String. Benchmark shows 7% improvement.
5144 + Get rid of HTML parser dependency.
5145 + Various code improvements.
5147 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
5148 We do this in the LaTeX writer, and it avoids problems.
5149 Note that `/` works as a LaTeX path separator on Windows.
5153 + Add support for multiprenote and multipostnote arguments
5154 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
5155 the first prefix of a multicite, and the multipostnotes follow the
5157 + Fix a use of `last` that might take empty list. If you ran with
5158 `--biblatex` and have an empty document (metadata but no blocks),
5159 pandoc would previously raise an error because of the use of
5160 `last` on an empty list.
5162 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
5163 MonadFail instance (Jonas Scholl).
5165 * ODT Writer: Improve table header row style handling (Nils Carlson).
5166 This changes the way styles for cells in the header row
5167 and normal rows are handled in ODT tables.
5168 Previously a new (but identical) style was generated for
5169 every table, specifying the style of the cells within the table.
5170 After this change there are two style definitions for table cells,
5171 one for the cells in the header row, one for all other cells.
5172 This doesn't change the actual styles, but makes post-processing
5173 changes to the table styles much simpler as it is no longer
5174 necessary to introduce new styles for header rows and there are
5175 now only two styles where there was previously one per table.
5179 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
5180 class was added to autolinks by the HTML writer, but it had to
5181 guess what was an autolink and could not distinguish
5182 `[http://example.com](http://example.com)` from
5183 `<http://example.com>`. It also incorrectly recognized
5184 `[pandoc](pandoc)` as an autolink. Now the HTML writer
5185 simply passes through the `uri` attribute if it is present,
5186 but does not add anything.
5187 + Avoid adding extra section nestings for revealjs.
5188 Previously revealjs title slides at level (slidelevel - 1)
5189 were nested under an extra section element, even when
5190 the section contained no additional (vertical) content.
5191 That caused problems for some transition effects.
5192 + Omit unknown attributes in EPUB2 output. For example,
5193 `epub:type` attributes should not be passed through,
5194 or the epub produced will not validate.
5196 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
5197 The JATS spec does not allow these.
5199 * Textile writer: don't represent `uri` class explicitly
5200 for autolinks (#4913).
5202 * Lua filters (Albert Krewinkel):
5204 + Cleanup filter execution code.
5205 + Better error on test failure.
5207 * HTML, Muse reader tests: reduce time taken by round-trip test.
5209 * Added cabal.project.
5211 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
5213 * Use hslua v1.0.0 (Albert Krewinkel).
5215 * Fix `translations/ru` to use modern Russian orthography
5218 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
5219 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
5221## pandoc 2.3 (2018-09-16)
5223 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
5224 users to specify metadata in a YAML file, regardless of the
5225 input format (#1960).
5227 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
5229 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
5232 * Text.Pandoc.Readers.LaTeX.Types:
5234 + New type `ArgSpec` (API change).
5235 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
5240 + Use `tex` instead of `latex` for raw tex-ish content. We can't
5241 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
5242 use `tex` always. Note that if `context` or `latex` specifically
5243 is desired, you can still force that in a markdown document by
5244 using the raw attribute. Note that this change may affect some
5245 filters, if they assume that raw tex parsed by the Markdown reader
5246 will be RawBlock (Format `latex`). In most cases it should be
5247 trivial to modify the filters to accept `tex` as well.
5248 + Refactor and reorganize YAML code (Mauro Bieg).
5249 + Make `example_lists` work for interrupted lists
5250 without `startnum` (#4908).
5254 + Parse `<script type="math/tex` tags as math (#4877).
5255 These are used by MathJax in some configurations.
5256 + Extract spaces inside links instead of trimming them
5257 (Alexander Krotov, #4845).
5258 + Added round-trip tests (Alexander Krotov).
5259 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
5260 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
5261 (which is helpful for translation HTML documents using MathJaX).
5263 * Org reader (Albert Krewinkel):
5265 + Respect export option `p` for planning info. Inclusion of planning info
5266 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
5267 `p` export option: setting the option to `t` will add all planning
5268 information in a *Plain* block below the respective headline.
5269 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
5271 + Strip planning info from output. Planning info is parsed, but not
5272 included in the output (as is the default with Emacs Org-mode, #4867).
5276 + Handle parameter patterns for `\def` (#4768, #4771).
5277 For example: `\def\foo#1[#2]{#1 and #2}`.
5278 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
5279 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
5280 argument as the content.
5281 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
5282 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
5283 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
5284 will be parsed as a regular Quoted inline (not using the quotes
5285 appropriate to the foreign language).
5286 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
5287 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
5288 `\textcircled`. Also fall back to combining characters when composed
5289 characters are not available.
5290 + Resolve `\ref` for figure numbers.
5291 + Support `mintinline` (#4365, Marc Schreiber).
5292 + Fix siunitx unit commands so they are only recognized in
5293 siunitx contexts (#4842). For example, `\l` outside of an
5294 siunitx context should be l-slash, not l (for liter).
5295 + Fix double `unnumbered` class (#4838). The `unnumbered` class
5296 was being included twice for starred sections.
5298 * RST reader: Don't skip link definitions after comments (#4860).
5300 * Muse reader (Alexander Krotov):
5302 + Close the `</quote>` in indented tag test.
5303 There is already a separate test for unclosed `</quote>`.
5304 + Autonumber sections in the correct order. Parsing now stops
5305 at each section header to ensure the header is registered before
5306 parsing of the next section starts.
5307 + Move duplicate code into `headingStart` function.
5308 + Allow newline after opening `*` or `**`.
5309 + Don't allow digits after closing marker in lightweight markup
5310 This change makes reader more compatible with Emacs Muse.
5311 + Parse `<verse>` tag in one pass instead of using
5312 `parseFromString`. This change makes it possible to have
5313 verbatim `</verse>` tag inside verse.
5315 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
5316 (#4336). This allows pandoc to parse ODT document produced by KDE's
5319 * Muse writer (Alexander Krotov):
5321 + Output headers without asterisks if not on the top level.
5322 + Never wrap definition list terms.
5323 + Set `envInsideBlock = True` when rendering notes.
5324 + Use `""` instead of `[]` for empty String.
5325 + Check for whitespace in the beginning and end of Str's.
5326 + Escape `-`, `;` and `>` in the beginning of strings.
5327 + Escape list markers in the beginning of notes.
5328 + Normalize inline list before testing if tags should be used.
5329 + Use tags instead of lightweight markup for empty strings.
5330 + Use lightweight markup when possible.
5331 + Escape empty strings. This guarantees that `conditionalEscapeString`
5332 never returns empty string.
5333 + Wrap conditionalEscapeString result into `Muse` type.
5334 This removes the need to pass `envInsideLinkDescription` to it.
5335 + Separate `shouldEscapeString` function.
5336 + Simplify inline list rendering.
5337 + Replace newlines in strings with spaces.
5341 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
5342 + Properly handle display math in spans (#4826). This isn't a
5343 complete solution, since other nestings of display math may still
5344 cause problems, but it should work for what is by far the most
5349 + Always output `<dt>` element, even if it is empty (#4883,
5351 + Don't prefix `epub:` attributes with `data-`.
5353 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
5354 recognize these escapes.
5356 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
5357 Image scaling was broken when a width was set to a percentage.
5359 * EPUB writer: set `epub:type` on body element in each chapter,
5360 depending on the `epub:type` of the first section (#4823). This
5361 only affects epub3. See
5362 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
5364 * FB2 writer: put `coverpage` element between title and date rather than in
5365 `document-info` element (#4854).
5367 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
5369 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
5370 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
5371 tex is now used. Previously we'd "fake it with unicode" and fall
5372 back to tex when that didn't work. But newer haddock versions
5377 + Ensure that title element is always present, even if empty (#4839).
5378 + Put author tags in the template, rather than adding them in
5381 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
5382 `linkcolor` only affects internal links, and `urlcolor` only
5383 affects linked URLs. For external links, the option to use is
5386 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
5390 + Use `.. raw:: latex` for `tex` content.
5391 + Use `.. container` for generic Divs, instead of raw HTML.
5392 + Render Divs with admonition classes as admonitions (#4833).
5393 Also omit Div with class `admonition-title`. These are generated
5394 by the RST reader and should be omitted on round-trip.
5396 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
5397 (#4855, Antonio Terceiro).
5399 * HTML5 template: add the `title-block-header` identifier to the
5400 `header` element, to make it easier to style precisely (#4767,
5403 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
5404 José de Mattos Neto).
5406 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
5407 (#4853, Wandmalfarbe).
5409 * TEI template: improve `publicationStmt`. Add support for
5410 `publisher`, `address`, `pubPlace`, and `date` variables.
5412 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
5414 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
5416 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
5420 + Clarify that `--biblatex/--natbib` don't work directly for PDF
5422 + Document `epub:type` attribute (Mauro Bieg, #4901)
5423 + Clarify when `--resource-path` has an effect.
5424 + More detail on customization in syntax highlighting section.
5425 + Document encoding issue with `--listings` (#4871, Damien Clochard).
5426 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
5427 + Use https for context wiki links (#4910).
5431 + Link to lua-filters repository (#4874).
5432 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
5434 * lua-filters.md: add links to filters, and to lua-filters repository
5439 + Indicate that cabal >= 2.0 is needed.
5440 + Added chocolatey installation method (#4844, Miodrag Milić).
5442 * Travis: exclude round-trip tests, except for nightly test which can fail.
5444 * Use latest texmath, pandoc-citeproc.
5446 * Use a patched version of foundation until
5447 https://github.com/haskell-foundation/foundation/pull/503
5450 * Clean up appveyor build and Windows package creation.
5451 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
5452 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
5454 * Remove obsolete RELEASE-CHECKLIST.md.
5456 * Added additional compiler warnings in Makefile and CI builds.
5458## pandoc 2.2.3.2 (2018-08-07)
5460 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
5461 This fixes a regression in 2.2.3, which cause boolean values to
5462 be parsed as MetaInlines instead of MetaBool.
5464 We here record another undocumented (but desirable) change in 2.2.3:
5465 numerical metadata fields are now parsed as MetaInlines rather than
5468## pandoc 2.2.3.1 (2018-08-06)
5470 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
5471 (#4817). This fixes a regression in 2.2.3 which caused embedded
5472 mappings (e.g. mappings in sequences) not to work in YAML metadata.
5474## pandoc 2.2.3 (2018-08-05)
5476 * RST reader: improve parsing of inline interpreted text roles (#4811).
5478 + Use a Span with class "title-reference" for the default
5479 title-reference role.
5480 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
5481 and `Str`s for `title-reference`.
5482 + Use Code with class "interpreted-text" instead of Span and Str for
5483 unknown roles. (The RST writer has also been modified to round-trip
5485 + Disallow blank lines in interpreted text.
5486 + Backslash-escape now works in interpreted text.
5487 + Backticks followed by alphanumerics no longer end interpreted text.
5488 + Remove support for nested inlines (Francesco Occhipinti).
5489 RST does not allow nested emphasis, links, or other inline
5490 constructs. This fixes several bugs (#4581, #4561, #4792).
5492 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
5493 Krewinkel). Emphasis was not parsed when it followed directly after
5494 some block types (e.g., lists).
5496 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
5497 keys. Previously in 2.2.2 you could not do
5509 With this change, both forms work.
5511 * DocBook reader: metadata handling improvements.
5512 Now we properly parse title and subtitle elements that are direct
5513 children of book and article (as well as children of bookinfo,
5514 articleinfo, or info). We also now use the `subtitle` metadata
5515 field for subtitles, rather than tacking the subtitle on to the
5520 + Allow images to be directly nested within links (#4810, Francesco
5522 + Use `titleblock` instead of `title` variable for title block (#4803,
5523 Francesco Occhipinti). `titleblock` contains a properly formatted
5524 title and subtitle (using top-level headers). `title` and
5525 `subtitle` variables are still available and just contain the
5526 title and subtitle text. Note that this change will require an
5527 update to custom rst templates.
5528 + Render Code with class "interpreted-text" as interpreted text role.
5530 * MediaWiki writer: Avoid extra blank line in tables with empty cells
5531 (#4794). Note that the old output is semantically identical, but the
5532 new output looks better.
5534 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
5535 Krewinkel). Exposes a function converting which flattenes a list of
5536 blocks into a list of inlines. An example use case would be the
5537 conversion of Note elements into other inlines.
5539 * RST template: use `titleblock` instead of `title`. Users of
5540 custom RST templates will want to update this.
5542 * LaTeX template: Moved some beamer code in default.latex template.
5543 This change allows beamer themes to change the template and font (as
5544 Metropolis does) (#4450).
5546 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
5548 * Added test case for #4669 to repository.
5550 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
5554 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
5555 + Clarify when `csquotes` is used in LaTeX writer (#4514).
5556 + Add `commonmark` to list of output formats where `raw_tex` has an
5560## pandoc 2.2.2.1 (2018-07-19)
5562 * Fix regression finding templates in user data directory (#4777).
5563 Under version 2.2.1 and prior pandoc found latex templates in the
5564 templates directory under the data directory, but this broke in 2.2.2.
5566 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
5567 `rawLaTeXInline` (#4781). (This primarily affects the markdown
5568 reader, and other readers that accept raw tex.)
5569 Starting in 2.2.2, everything after an `\input` (or `\include`)
5570 in a markdown file would be parsed as raw LaTeX.
5574 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
5575 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
5576 Unlike `tags`, `keywords` is used in some of the writers
5577 and default templates.
5579 * Add missing `rollingLinks` option to revealjs template (#4778,
5582## pandoc 2.2.2 (2018-07-16)
5584 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
5585 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
5587 Note: HsYAML implements YAML 1.2, in which the valid true
5588 values are `true`, `True`, `TRUE`. This means a change in
5589 the semantics of YAML metadata that could affect users:
5590 `y`, `yes`, and `on` no longer count as true values.
5592 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
5595 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
5596 Anders Waldenborg). Non-ascii characters were not stripped from
5597 identifiers even if the `ascii_identifiers` extension was
5598 enabled (which is is by default for gfm).
5600 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
5601 Remove trailing Space from list items. Parse lists that have no space
5606 + Treat `lilypond` as a verbatim environment (#4725).
5607 + Parse figure label into Image id (#4700, Mauro Bieg).
5608 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
5609 + Allow spaces around `\graphicspath` arguments (#4698).
5610 + Handle includes without surrounding blanklines (#4553).
5611 In addition, `\input` can now be used in an inline context,
5612 e.g. to provide part of a paragraph, as it can in LaTeX.
5613 + In `rawLaTeXBlock`, handle macros that resolve to a
5614 `\begin` or `\end` (#4667).
5615 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
5616 Note that this only affected LaTeX in markdown.
5617 + Tighten up reading of beamer overlay specifications (#4669).
5618 Ideally we'd turn these on only when reading beamer, but currently
5619 beamer is not distinguished from latex as an input format.
5620 This commit also activates parsing of overlay specifications
5621 after commands in general (e.g. `\item`), since they can occur
5622 in many contexts in beamer.
5623 + Parse more siunitx unit commands (#4296, #4773).
5624 + Be more forgiving in key/value option parsing (#4761).
5628 + Allow empty code spans, e.g. `` ` ` ``.
5629 + Emojis are now wrapped in Spans with class `emoji` and
5630 attribute `data-emoji` (Anders Waldenborg, #4743).
5631 This allows the writer to handle them in a special way
5632 (e.g. using a special font, or just rendering the
5635 * Muse reader (Alexander Krotov, except where indicated):
5637 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
5638 + Add support for floating images.
5639 + Add support for images with specified width.
5640 + Parse image URLs without "guard" and "takeExtension".
5641 + Split link and image parsing into separate functions.
5642 + Parse links starting with "URL:" explicitly instead of trying to strip
5643 "URL:" prefix after parsing.
5645 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
5648 * Markdown writer: Preserve `implicit_figures` with attributes, even if
5649 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
5651 * Markdown and commonmark/github writers now respect the `emoji`
5652 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
5653 `:smile:` as `:smile:` rather than converting it to a smile
5656 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
5658 * ODT/OpenDocument writer: Make internal links work (#4358).
5659 This adds proper bookmarks to the headers with non-null IDs.
5661 * EPUB writer: Properly escape pagetitle. Previously we weren't
5662 escaping `&` and other XML characters in the pagetitle, so a title
5663 containing a `&` would be invalid.
5665 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
5670 + Don't treat 'example' as a syntax name (#4748).
5671 This fixes conversions from org with example blocks.
5672 + Support `--number-sections` via the `section-numbering`
5673 directive in standalone output.
5675 * reveal.js writer and template: reuse mathjax URL
5676 provided by the argument to `--mathjax` or the normal pandoc default,
5677 rather than a hard-coded one in the template (#4701).
5681 + Properly handle footnotes in table captions (#4683).
5682 Refactored code from figure captions to use in both places.
5683 + In beamer output, fix single digit column percentage (#4690, Mauro
5686 * FB2 writer (Alexander Krotov):
5688 + Convert Plain to Para in annotation (#2424).
5689 + Fix order of items in title-info (#2424).
5691 * Custom writer: fix error message on script failure (Albert Krewinkel).
5692 Error messages produced by Lua were not displayed by Pandoc.
5694 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
5695 inline containing the emoji character and some attributes with metadata
5696 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
5697 Anders Waldenborg, #4743).
5701 + Revert fix for #4484 (only compress images on last run, #4755).
5702 This will mean some increase in the time it takes to
5703 produce an image-heavy PDF with xelatex, but it will
5704 make tables of contents correct, which is more important.
5705 + Fix logic error in `runTeXProgram`. We were running the tex program
5706 one more time than requested. This should speed up PDF production.
5708 * Allow `--template` to take a URL as argument.
5710 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
5711 highlighting style (#4687, Adrian Sieber, API change).
5713 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
5714 installer the recommended method, and note that on some older versions of
5715 macOS, homebrew installs from source and takes a lot of disk space
5720 + Clarify EPUB linked media (#4756, Mauro Bieg)
5721 + Update manual for "true" YAML values. Now that we're using HsYAML and
5722 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
5723 `y`, `yes`, `on` no longer count as true values.
5724 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
5725 + Update manual on how math is rendered in LaTeX.
5726 + Add proxy description (#4131, Mauro Bieg).
5727 + Clarify that `--toc` requires `--standalone` (#4703).
5728 + Update citation styles link (#4699, wiefling).
5730 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
5731 (kaizshang91). Note that it will not take effect when readers/writers
5732 are called as libraries (#4674).
5734 * Improved translations/fr (#4766, lux-lth).
5736 * Removed inadvertently added `.orig` files from repository (#4648).
5738 * Remove `network-uri` flag and use 'Network.Socket'.
5739 This removes a compiler warning. There is no need for the old
5740 `network-uri` flag, since network 2.6 was released in 2014.
5742 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
5744 * Bump upper bounds for dependent packages.
5746 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
5747 confused because of the way ghc 7.10 is excluded in foundation's
5748 cabal file. This can be removed when haskell-foundation/foundation#500
5751 * Require cabal-version >= 2.0. This is needed for haddock-library.
5756## pandoc 2.2.1 (2018-05-10)
5758 * Restored and undeprecated gladtex for HTML math (#4607).
5760 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
5761 [API change, reverts removal in v2.2]
5762 + Restored and undeprecated `--gladtex` option, removed in v2.2.
5764 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
5766 * Org reader: Fix image filename recognition (Albert Krewinkel).
5767 Use a function from the filepath library to check whether a string is a
5768 valid file name. The custom validity checker that was used before gave
5769 wrong results (e.g. for absolute file paths on Windows,
5770 kawabata/ox-pandoc#52).
5772 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
5776 + Strip links from headers when creating TOC (#4340).
5777 Otherwise the TOC entries will not link to the sections.
5778 + Fix regression with tex math environments in HTML + MathJax (#4639).
5780 * Muse writer (Alexander Krotov): Add support for left-align and
5781 right-align classes (#4542).
5783 * Docx writer: Support underline (#4633).
5785 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
5786 `singleQuoteStart` and `doubleQuoteStart` (#4637).
5788 * `test-pandoc-utils.lua`: more robust testing on both windows
5789 and \*nix. Previously the pipe tests were only run if
5790 `\bin/false` and `/bin/sed` were present, which they aren't
5791 in default MacOS and Windows systems. Fixed by using `tr`
5792 and `false`, which should always be in the path on a \*nix
5793 system, and `find` and `echo` for Windows.
5795 * Text.Pandoc.Shared: add `uriPathToPath`.
5796 This adjusts the path from a file: URI in a way that is sensitive
5797 to Windows/Linux differences. Thus, on Windows,
5798 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
5799 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
5801 * Use `uriPathToPath` with file: URIs (#4613).
5803 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
5806 * Text.Pandoc.Class: Catch IO errors when writing media files
5807 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
5809 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
5811 * MANUAL (Mauro Bieg):
5813 + Clarify truthiness in template variables (#2281).
5814 + Clarify pipe table width calculation (#4520).
5816 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
5817 CMU Serif gives better typographic results than the previous
5818 Greek fallback DejaVu Serif.
5820 * Make HTML template polyglot (#4606, OvidiusCicero), by making
5821 `<link rel="stylesheet" href="$css$">` self-closing.
5823 * Use texmath 0.11, allowing better translation of non-ASCII
5824 characters in math (#4642).
5827## pandoc 2.2 (2018-04-27)
5829 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
5831 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
5832 and for `ms` and `man`.
5834 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
5835 `--asciimathml` options.
5837 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
5838 Krotov, API change).
5842 + Allow empty key-value attributes, like `title=""` (#2944).
5843 + Handle table w/o following blank line in fenced div (#4560).
5844 + Remove "fallback" for `doubleQuote` parser. Previously the
5845 parser tried to be efficient -- if no end double quote was found,
5846 it would just return the contents. But this could backfire in a
5847 case `**this should "be bold**`, since the fallback would return
5848 the content `"be bold**` and the closing boldface delimiter
5849 would never be encountered.
5850 + Improve computation of the relative width of the last column in a
5851 multiline table, so we can round-trip tables without constantly
5852 shrinking the last column.
5856 + Fix images with space in file path (#4344).
5860 + Properly resolve section numbers with `\ref` and chapters (#4529).
5861 + Parse sloppypar environment (#4517, Marc Schreiber).
5862 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
5863 Previously there were some bugs in how macros were handled.
5864 + Support `\MakeUppercase`, `\MakeLowercase`, `\uppercase`,
5865 `\lowercase`, and also `\MakeTextUppercase` and
5866 `\MakeTextLowercase` from textcase (#4959).
5870 + Fixed tables with no body rows (#4513).
5871 Previously these raised an exception.
5875 + Improve table parsing (#4508). This fixes detection of table
5876 attributes and also handles `!` characters in cells.
5880 + Properly handle title in `section` element (#4526).
5881 Previously we just got `section_title` for `section` (though `sect1`,
5882 `sect2`, etc. were handled properly).
5883 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
5887 + Combine adjacent CodeBlocks with the same attributes into
5888 a single CodeBlock. This prevents a multiline codeblock in
5889 Word from being read as different paragraphs.
5893 + Allow < 3 spaces indent under directives (#4579).
5894 + Fix anonymous redirects with backticks (#4598).
5896 * Muse reader (Alexander Krotov):
5898 + Add support for Text::Amuse multiline headings.
5899 + Add `<math>` tag support.
5900 + Add support for `<biblio>` and `<play>` tags.
5901 + Allow links to have empty descriptions.
5902 + Require block `<literal>` tags to be on separate lines.
5903 + Allow `-` in anchors.
5904 + Allow verse to be indented.
5905 + Allow nested footnotes.
5906 + Internal improvements.
5908 * Muse writer (Alexander Krotov):
5910 + Escape `>` only at the beginning of a line.
5911 + Escape `]` in image title.
5912 + Escape `]` brackets in URLs as `%5D`.
5913 + Only escape brackets when necessary.
5914 + Escape ordered list markers.
5915 + Do not escape list markers unless preceded by space.
5916 + Escape strings starting with space.
5917 + Escape semicolons and markers after line break.
5918 + Escape `;` to avoid accidental comments.
5919 + Don't break headers, line blocks and tables with line breaks.
5920 + Correctly output empty headings.
5921 + Escape horizontal rule only if at the beginning of the line.
5922 + Escape definition list terms starting with list markers.
5923 + Place header IDs before header.
5924 + Improve span writing.
5925 + Do not join Spans in normalization.
5926 + Don't align ordered list items.
5927 + Remove key-value pairs from attributes before normalization.
5928 + Enable `--wrap=preserve` for all tests by default.
5929 + Reduced `<verbatim>` tags in output.
5934 + Use more consistent indentation (#4563). Previously we
5935 used an odd mix of 3- and 4-space indentation. Now we use 3-space
5936 indentation, except for ordered lists, where indentation must
5937 depend on the width of the list marker.
5938 + Flatten nested inlines (#4368, Francesco Occhipinti).
5939 Nested inlines are not valid RST syntax, so we flatten them following
5940 some readability criteria discussed in #4368.
5944 + Ensure that `pagetitle` is always set, even when structured titles
5945 are used. This prevents spurious warnings about empty title
5948 * FB2 writer (Alexander Krotov):
5950 + Output links inline instead of producing notes. Previously all links
5951 were turned into footnotes with unclickable URLs inside.
5952 + Allow emphasis and notes in titles.
5953 + Don't intersperse paragraph with empty lines.
5954 + Convert metadata value `abstract` to book annotation.
5955 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
5956 FB2 does not have a way to represent line breaks inside paragraphs;
5957 previously we used `<empty-line />` elements, but these are not allowed
5960 * Powerpoint writer (Jesse Rosenthal):
5962 + Handle Quoted Inlines (#4532).
5963 + Simplify code with `ParseXml`.
5964 + Allow fallback options when looking for placeholder type.
5965 + Check reference-doc for all layouts.
5966 + Simplify speaker notes logic.
5967 + Change notes state to a simpler per-slide value.
5968 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
5969 means no speaker notes.
5970 + Add tests for improved speaker notes.
5971 + Handle speaker notes earlier in the conversion process.
5972 + Keep notes with related blocks (#4477). Some blocks automatically
5973 split slides (imgs, tables, `column` divs). We assume that any
5974 speaker notes immediately following these are connected to these
5975 elements, and keep them with the related blocks, splitting after them.
5976 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
5977 It contained a nonfree ICC color calibration profile and is not needed
5978 for production of a powerpoint document.
5982 + Include a blank line at the end of the row in a single-row multiline
5983 table, to prevent it from being interpreted as a simple table (#4578).
5985 * CommonMark writer:
5987 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
5988 enabled (#4527, quasicomputational).
5992 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
5996 + In beamer, don't use format specifier for default ordered lists
5997 (#4556). This gives better results for styles that put ordered list
5998 markers in boxes or circles.
5999 + Update `\lstinline` delimiters (#4369, Tim Parenti).
6003 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
6004 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
6005 since the header font is automatically bold (#4552).
6006 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
6007 + Create pdf anchor for a Div with an identifier (#4515).
6008 + Escape `/` character in anchor ids (#4515).
6009 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
6014 + Don't escape U+2019 as `'` (#4550).
6016 * Text.Pandoc.Options:
6018 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
6019 `Text.Pandoc.Options.HTMLMathMethod` [API change].
6021 * Text.Pandoc.Class:
6023 + `writeMedia`: unescape URI-escaping in file path. This avoids
6024 writing things like `file%20one.png` to the file system.
6026 * Text.Pandoc.Parsing:
6028 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
6030 + `uri`: don't treat `*` characters at end as part of URI (#4561).
6034 + Use the alias `application/eps` for EPS (#2067).
6035 This will ensure that we retain the eps extension after reading the
6036 image into a mediabag and writing it again.
6040 + Use `withTempDir` in `html2pdf`.
6041 + With `xelatex`, don't compress images til the last run (#4484).
6042 This saves time for image-heavy documents.
6043 + Don't try to convert EPS files (#2067). `pdflatex` converts them
6044 itself, and JuicyPixels can't do it.
6045 + For `pdflatex`, use a temp directory in the working directory.
6046 Otherwise we can have problems with the EPS conversion pdflatex
6047 tries to do, which can't operate on a file above the working
6048 directory without `--shell-escape`.
6050 * Changes to tests to accommodate changes in pandoc-types.
6051 In <https://github.com/jgm/pandoc-types/pull/36> we changed
6052 the table builder to pad cells. This commit changes tests
6053 (and two readers) to accord with this behavior.
6055 * Set default extensions for `beamer` same as `latex`.
6059 + Add `beameroption` variable (#4359, Étienne Bersac).
6060 + Use `pgfpages` package; this is needed for notes on second
6061 screen in beamer (Étienne Bersac).
6062 + Add `background-image` variable (#4601, John Muccigrosso).
6064 * reveal.js template: Add `background-image` variable (#4600,
6067 * ms template: Fix date. Previously `.ND` was used, but this only
6068 works if you have a title page, which we don't. Thanks to @teoric.
6070 * Removed pragmas for unused extensions (#4506, Anabra).
6072 * Fix bash completion for `--print-default-data-file` (#4549).
6073 Previously this looked in the filesystem, even if pandoc
6074 was compiled with `embed_data_files` (and sometimes it looked
6075 in a nonexistent build directory). Now the bash completion
6076 script just includes a hard-coded list of data file names.
6080 + Clarify template vs metadata variables (#4501, Mauro Bieg).
6081 + Fix raw content example (#4479, Mauro Bieg).
6082 + Specify that you use html for raw output in epub.
6083 + Add examples for raw docx blocks (#4472, Tristan Stenner).
6084 The documentation states that the target format name should match
6085 the output format, which isn't the case for `docx`/`openxml` and
6087 + Don't say that `empty_paragraphs` affects markdown output (#4540).
6088 + Consolidate input/output format documentation (#4577, Mauro Bieg).
6090 * New README template. Take in/out formats from manual.
6092 * Fix example in lua-filters docs (#4459, HeirOfNorton).
6094 * Use the `-threaded` GHC flag when building benchmarks (#4587,
6095 Francesco Occhipinti).
6097 * Bump temporary upper bound to 1.4.
6099 * Use pandoc-citeproc 0.14.3.1.
6101 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
6103 * Removed old lib directory. This was used for something long ago,
6104 but plays no role now.
6106 * Removed unneeded data file `LaTeXMathML.js`.
6108 * Create 64- and 32-bit versions of Windows binary packages.
6110## pandoc 2.1.3 (2018-03-18)
6112 * Docx reader (Jesse Rosenthal):
6114 + Add tests for nested smart tags.
6115 + Parse nested smart tags.
6116 + Make unwrapSDT into a general `unwrap` function that can unwrap both
6117 nested SDT tags and smartTags. This makes the SmartTags constructor in
6118 the Docx type unnecessary, so we remove it (#4446).
6119 + Remove unused `docxWarnings` (Alexander Krotov).
6121 * RST reader: Allow unicode bullet characters (#4454).
6123 * Haddock reader: Better table handling, using haddock-library's
6124 new table support, if compiled against a version that
6125 includes it. Note that tables with col/rowspans will not
6126 translate well into Pandoc.
6128 * Muse reader (Alexander Krotov):
6130 + Various internal improvements.
6131 + Require closing tag to have the same indentation as opening.
6132 + Do not reparse blocks inside unclosed block tag (#4425).
6133 + Parse `<class>` tag (supported by Emacs Muse).
6134 + Do not produce empty Str element for unindented verse lines.
6138 + Add support to parse unit string of `\SI` command (closes #4296,
6141 * Haddock writer: In the writer, we now render tables always as
6142 grid tables, since Haddock supports these.
6144 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
6146 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
6147 docx writer. We want decimal for the top level, not lower roman.
6151 + Strip whitespace at beginning and ending of inline containers
6152 (#4327, Francesco Occhipinti).
6153 + Filter out empty inline containers (#4434). There is nothing in
6154 RST that corresponds to e.g. `Emph []`, so we just ignore elements
6155 like this (Francesco Occhipinti).
6157 * Muse writer (Alexander Krotov):
6159 + Support spans with anchors.
6160 + Replace smallcaps with emphasis before normalization.
6161 + Output smallcaps as emphasis.
6162 + Expand Cite before list normalization.
6163 + Write empty inline lists as `<verbatim></verbatim>`.
6164 + Remove empty Str from the beginning of inline lists during normalization.
6165 + Escape "-" to avoid creating bullet lists.
6166 + Fix math expansion for more than one expression per paragraph.
6167 + Expand math before inline list normalization.
6169 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
6173 + Asciify pdf anchors, since unicode anchors don't work (#4436).
6174 Internal links should be converted automatically, so this shouldn't
6175 affect users directly.
6176 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
6178 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
6179 (#4307). If it's in the title, then we get a titlebar on slides with
6180 the `plain` attribute, when the id is non-null. This fixes a regression
6183 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
6185 * JATS writer: Remove extraneous, significant whitespace (#4335,
6188 * html2pdf: inject base tag with current working directory (#4413, Mauro
6189 Bieg). This helps ensure that linked resources are included.
6191 * Add Semigroup instances for everything for which we defined a
6192 Monoid instance previously (API change):
6194 + Text.Pandoc.Class.FileTree.
6195 + Text.Pandoc.Translations.Translations.
6196 + Text.Pandoc.Extensions.Extensions.
6197 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
6198 + Text.Pandoc.Pretty.Doc.
6199 + Text.Pandoc.MediaBag.MediaBag.
6201 * Add custom Prelude to give clean code for Monoid and Semigroup
6202 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
6203 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
6204 in all source files, and Prelude is explicitly imported
6205 (this is necessary for ghci to work properly with the custom prelude).
6207 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
6209 + Export `stripLeadingTrailingSpace`.
6210 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
6211 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
6212 expand cells, even if it results in cells that don't respect relative
6213 widths or surpass page column width. This change affects RST,
6214 Markdown, and Haddock writers.
6216 * Raise error if someone tries to print docx, odt, etc. template (#4441).
6218 * LaTeX template: Provide `bidi` package's option using
6219 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
6220 clash when `polyglossia` loads it first and then it is loaded again
6223 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
6224 Menke). Instructions on how to install the ICC profiles on ConTeXt
6225 standalone can be found in the wiki:
6226 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
6227 If the ICC profiles are not available the log will contain error
6230 * Use latest pandoc-types, skylighting
6232 * Use latest pandoc-citeproc in binary package.
6234 * Bump upper bound for time, criterion, haddock-library, exceptions,
6235 http-types, aeson, haddock-library.
6237 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
6239 * pandoc.cabal: fix up other-extensions and language fields.
6240 Language is now consistently `Haskell2010`, and other-extensions
6241 is consistently `NoImplicitPrelude`. Everything else to be specified
6242 in the module header as needed.
6244 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
6245 This is no longer necessary since we no longer support ghc 7.8.
6247 * Make `weigh-pandoc` into a benchmark program.
6248 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
6249 automatically when you build (and run) benchmarks.
6251 * MANUAL: add instructions for background images reveal.js (#4325, John
6254 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
6256## pandoc 2.1.2 (2018-03-02)
6260 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
6261 "nonindent spaces" before the opening and closing `:::`, but this
6262 interfered with list parsing, so now we require the fences to be flush with
6263 the margin of the containing block.
6265 * Commonmark reader:
6267 + `raw_html` is now on by default. It can be disabled explicitly
6268 using `-f commonmark-raw_html`.
6270 * Org reader (Albert Krewinkel):
6272 + Move citation tests to separate module.
6273 + Allow changing emphasis syntax (#4378). The characters allowed before
6274 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
6275 `#+pandoc-emphasis-post`, respectively. This allows to change which
6276 strings are recognized as emphasized text on a per-document or even
6277 per-paragraph basis. Example:
6279 #+pandoc-emphasis-pre: "-\t ('\"{"
6280 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
6284 + Fixed comments inside citations (#4374).
6285 + Fix regression in package options including underscore (#4424).
6286 + Make `--trace` work.
6287 + Fixed parsing of `tabular*` environment (#4279).
6291 + Fix regression in parsing of headers with trailing space (#4280).
6293 * Muse reader (Alexander Krotov):
6295 + Enable `<literal>` tags even if amuse extension is enabled.
6296 Amusewiki disables <literal> tags for security reasons.
6297 If user wants similar behavior in pandoc, RawBlocks and RawInlines
6298 can be removed or replaced with filters.
6299 + Remove space prefix from `<literal>` tag contents.
6300 + Do not consume whitespace while looking for closing end tag.
6301 + Convert alphabetical list markers to decimal in round-trip test.
6302 Alphabetical lists are an addition of Text::Amuse.
6303 They are not present in Emacs Muse and can be ambiguous
6304 when list starts with "i.", "c." etc.
6305 + Allow `<quote>` and other tags to be indented.
6306 + Allow single colon in definition list term.
6307 + Fix parsing of verse in lists.
6308 + Improved parsing efficiency. Avoid `parseFromString`.
6309 Lists are parsed in linear instead of exponential time now.
6310 + Replace ParserState with MuseState.
6311 + Prioritize lists with roman numerals over alphabetical lists.
6312 This is to make sure "i." starts a roman numbered list,
6313 instead of a list with letter "i" (followed by "j", "k", ...").
6314 + Fix directive parsing.
6315 + Parse definition lists with multiple descriptions.
6316 + Parse next list item before parsing more item contents.
6317 + Fixed a bug: headers did not terminate lists.
6318 + Move indentation parsing from `definitionListItem` to `definitionList`.
6319 + Paragraph indentation does not indicate nested quote.
6320 Muse allows indentation to indicate quotation or alignment,
6321 but only on the top level, not within a <quote> or list.
6322 + Require that block tags are on separate lines.
6323 Text::Amuse already explicitly requires it anyway.
6324 + Fix matching of closing inline tags.
6325 + Various internal changes.
6326 + Fix parsing of nested definition lists.
6327 + Require only one space for nested definition list indentation.
6328 + Do not remove trailing whitespace from `<code>`.
6329 + Fix parsing of trailing whitespace. Newline after whitespace now
6330 results in softbreak instead of space.
6332 * Docx reader (Jesse Rosenthal, except where noted):
6334 + Handle nested sdt tags (#4415).
6335 + Don't look up dependant run styles if `+styles` is enabled.
6336 + Move pandoc inline styling inside custom-style span.
6337 + Read custom styles (#1843). This will read all paragraph and
6338 character classes as divs and spans, respectively. Dependent styles
6339 will still be resolved, but will be wrapped with appropriate style
6340 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
6341 This can be used in conjunction with the `custom-style` feature in the
6342 docx writer for a pandoc-docx editing workflow. Users can convert from
6343 an input docx, reading the custom-styles, and then use that same input
6344 docx file as a reference-doc for producing an output docx file. Styles
6345 will be maintained across the conversion, even if pandoc doesn't
6347 + Small change to Fields hyperlink parser. Previously, unquoted string
6348 required a space at the end of the line (and consumed it). Now we
6349 either take a space (and don't consume it), or end of input.
6350 + Pick table width from the longest row or header (Francesco Occhipinti,
6353 * Muse writer (Alexander Krotov):
6355 + Change verse markup: `> ` instead of `<verse>` tag.
6356 + Remove empty strings during inline normalization.
6357 + Don't indent nested definition lists.
6358 + Use unicode quotes for quoted text.
6359 + Write image width specified in percent in Text::Amuse mode.
6360 + Don't wrap displayMath into `<verse>`.
6361 + Escape nonbreaking space (`~~`).
6362 + Join code with different attributes during normalization.
6363 + Indent lists inside Div.
6364 + Support definitions with multiple descriptions.
6366 * Powerpoint writer (Jesse Rosenthal):
6368 + Use table styles This will use the default table style in the
6369 reference-doc file. As a result they will be easier when using
6370 in a template, and match the color scheme.
6371 + Remove empty slides. Because of the way that slides were split, these
6372 could be accidentally produced by comments after images. When animations
6373 are added, there will be a way to add an empty slide with either
6374 incremental lists or pauses.
6375 + Implement syntax highlighting. Note that background colors can't
6376 be implemented in PowerPoint, so highlighting styles that require
6377 these will be incomplete.
6378 + New test framework for pptx. We now compare the output of the
6379 Powerpoint writer with files that we know to (a) not be corrupt,
6380 and (b) to show the desired output behavior (details below).
6381 + Add `notesMaster` to `presentation.xml` if necessary.
6382 + Ignore links and (end)notes in speaker notes.
6383 + Output speaker notes.
6384 + Read speaker note templates conditionally. If there are speaker
6385 notes in the presentation, we read in the notesMasters templates
6386 from the reference pptx file.
6387 + Fix deletion track changes (#4303, Jesse Rosenthal).
6389 * Markdown writer: properly escape @ to avoid capture as citation
6394 + Put hypertarget inside figure environment (#4388).
6395 This works around a problem with the endfloat package and
6396 makes pandoc's output compatible with it.
6397 + Fix image height with percentage (#4389). This previously caused
6398 the image to be resized to a percentage of textwidth, rather than
6401 * ConTeXt writer (Henri Menke):
6403 + New section syntax and support `--section-divs` (#2609).
6404 `\section[my-header]{My Header}` ->
6405 `\section[title={My Header},reference={my-header}]`.
6406 The ConTeXt writer now supports the `--section-divs` option to
6407 write sections in the fenced style, with `\startsection` and
6409 + xtables: correct wrong usage of caption (Henri Menke).
6413 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
6414 + Use new golden framework (Jesse Rosenthal).
6415 + Make more deterministic to facilitate testing (Jesse Rosenthal).
6416 - `getUniqueId` now calls to the state to get an incremented digit,
6417 instead of calling to P.uniqueHash.
6418 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
6419 seed (1848), so our randoms should be the same each time.
6420 + Fix ids in comment writing (Jesse Rosenthal). Comments from
6421 `--track-changes=all` were producing corrupt docx, because the
6422 writer was trying to get id from the `(ID,_,_)` field of
6423 the attributes, and ignoring the "id" entry in the key-value pairs. We
6426 * Ms writer: Added papersize variable.
6430 + Use `height` instead of `depth` for images (#4331).
6431 + Ensure that id prefix is always used.
6432 + Don't emit `role` attribute; that was a leftover from the
6434 + Use 'xml:id', not 'id' attribute (#4371).
6438 + Do not output implicit heading IDs (#4363, Alexander
6439 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
6443 + Remove `blockToRST'` moving its logic into `fixBlocks`
6444 (Francesco Occhipinti).
6445 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
6447 * RST template: remove definition of 'math' role as raw.
6448 This used to be needed prior to v 0.8 of docutils, but
6449 now math support is built-in.
6451 * Slides: Use divs to set incremental/non-incremental (#4381,
6452 Jesse Rosenthal). The old method (list inside blockquote) still
6453 works, but we are encouraging the use of divs with class
6454 `incremental` or `nonincremental`.
6456 * Text.Pandoc.ImageSize:
6458 + Make image size detection for PDFs more robust (#4322).
6459 + Determine image size for PDFs (#4322).
6460 + EMF Image size support (#4375, Andrew Pritchard).
6462 * Text.Pandoc.Extensions:
6464 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
6465 the docx reader (defaulting to off) to read pargraph and character
6466 styles not understood by pandoc (as divs and spans, respectively).
6467 + Made `Ext_raw_html` default for `commonmark` format.
6469 * Text.Pandoc.Parsing:
6471 + Export `manyUntil` (Alexander Krotov, API change).
6472 + Export improved `sepBy1` (Alexander Krotov).
6473 + Export list marker parsers: `upperRoman`, `lowerRoman`,
6474 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
6476 * Tests/Lua: fix tests on windows (Albert Krewinkel).
6478 * Lua: register script name in global variable (#4393). The name of the Lua
6479 script which is executed is made available in the global Lua variable
6480 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
6482 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
6483 There is very little pptx-specific in these tests, so we abstract out
6484 the basic testing function so it can be used for docx as well. This
6485 should allow us to catch some errors in the docx writer that slipped
6486 by the roundtrip testing.
6488 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
6489 functions used to construct AST element values are stored in the Lua
6490 registry for quicker access. Getting a value from the registry is much
6491 faster than getting a global value (partly to idiosyncrasies of hslua);
6492 this change results in a considerable performance boost.
6496 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
6497 + `doc/lua-filters.md`: document global vars set for filters
6499 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
6500 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
6501 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
6502 Rosenthal). Blockquoted lists are still described, but fenced divs are
6503 presented in preference.
6504 + MANUAL.txt: document header and footer variables (newmana).
6505 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
6506 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
6508 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
6510 * Use latest texmath.
6512 * Use latest pandoc-citeproc.
6514 * Allow exceptions 0.9.
6516 * Require aeson-pretty 0.8.5 (#4394).
6518 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
6520 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
6522 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
6524 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
6527## pandoc 2.1.1 (2018-01-18)
6531 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
6532 blank line. See lierdakil/pandoc-crossref#160.
6533 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
6534 The change both improves performance and fixes a regression whereby
6535 normal citations inside inline notes and figure captions were not
6540 + Better handling for headers with an anchor (#4240). Instead of creating a
6541 Div containing the header, we put the id directly on the header.
6542 This way header promotion will work properly.
6543 + Add aligned environment when needed in math (#4254). `rst2latex.py`
6544 uses an `align*` environment for math in `.. math::` blocks, so this
6545 math may contain line breaks. If it does, we put the math in an
6546 `aligned` environment to simulate `rst2latex.py`'s behavior.
6550 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
6554 + Advance source position at end of stream.
6555 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
6556 extension is set (#4246). This reverts to earlier behavior and is
6557 probably safer on the whole, since some macros only modify things in
6558 included packages, which pandoc's macro expansion can't modify.
6559 + Fixed pos calculation in tokenizing escaped space.
6560 + Allow macro definitions inside macros (#4253). Previously we went into
6561 an infinite loop with
6563 \newcommand{\noop}[1]{#1}
6564 \noop{\newcommand{\foo}[1]{#1}}
6567 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
6568 widths for the body were different from widths for the header in some
6571 * Docx reader (Jesse Rosenthal):
6573 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
6574 hyperlink found in older versions of word. The changes introduced for
6575 this, though, create a framework for parsing further fields in MS Word
6576 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
6577 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
6578 contains a simple parsec parser. At the moment, only simple hyperlink
6579 fields are accepted, but that can be extended in the future.
6581 * Muse reader (Alexander Krotov):
6583 + Parse `~~` as non-breaking space in Text::Amuse mode.
6584 + Refactor list parsing.
6586 * Powerpoint writer (Jesse Rosenthal):
6588 + Change reference to `notesSlide` to `endNotesSlide`.
6589 + Move image sizing into `picProps`.
6590 + Improve table placement.
6591 + Make our own `_rels/.rels` file.
6592 + Import reference-doc images properly.
6593 + Move `Presentation.hs` out of `PandocMonad`.
6594 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
6595 defines the Presentation datatype and goes Pandoc->Presentation;
6596 T.P.W.Pandoc.Output goes Presentation->Archive.
6597 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
6598 + Avoid overlapping blocks in column output.
6599 + Position images correctly in two-column layout.
6600 + Make content shape retrieval environment-aware.
6601 + Improve image handling. We now determine image and caption placement
6602 by getting the dimensions of the content box in a given layout.
6603 This allows for images to be correctly sized and positioned in a
6604 different template. Note that images without captions and headers are
6605 no longer full-screened. We can't do this dependably in different
6606 layouts, because we don't know where the header is (it could be to
6607 the side of the content, for example).
6608 + Read presentation size from reference file. Our presentation size is
6609 now dependent on the reference/template file we use.
6610 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
6611 subheaders will be printed in bold and given a bit of extra space
6612 before them. Note that at the moment, no distinction is made between
6613 levels of headers above the slide header, though that can be changed.
6614 + Check for required files. Since we now import from reference/dist
6615 file by glob, we need to make sure that we're getting the files we
6616 need to make a non-corrupt Powerpoint. This performs that check.
6617 + Improve templating using `--reference-doc`. Templating should work
6618 much more reliably now.
6619 + Include Notes slide in TOC.
6620 + Set notes slide header to slide-level.
6621 + Add table of contents. This is triggered by the `--toc` flag. Note
6622 that in a long slide deck this risks overrunning the text box. The user
6623 can address this by setting `--toc-depth=1`.
6624 + Set notes slide number correctly.
6625 + Clean up adding metadata slide. We want to count the slide numbers
6626 correctly if it's in there.
6627 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
6628 an anchor link. In powerpoint these are links to slides, so we keep
6629 track of a map relating anchors to the slides they occur on.
6630 + Make the slide number available to the blocks. For anchors,
6631 block-processing functions need to know what slide number
6632 they're in. We make the `envCurSlideId` available to blocks.
6633 + Move `curSlideId` to environment.
6634 + Allow setting `toc-title` in metadata.
6635 + Link notes to endnotes slide.
6639 + Fix cell width calculation (#4265). Previously we could get
6640 ever-lengthening cell widths when a table was run repeatedly through
6641 `pandoc -f markdown -t markdown`.
6645 + Escape `&` in lstinline (Robert Schütz).
6649 + Use xtables instead of Tables (#4223, Henri Menke).
6650 Default to xtables for context output. Natural Tables are used
6651 if the new `ntb` extension is set.
6655 + Fixed footnote backlinks with `--id-prefix` (#4235).
6657 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
6660 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
6661 (Jesse Rosenthal, API change).
6663 * Lua filters (Albert Krewinkel):
6665 + Make `PANDOC_READER_OPTIONS` available.
6666 The options which were used to read the document are made available to
6667 Lua filters via the `PANDOC_READER_OPTIONS` global.
6668 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
6669 on a Pandoc document.
6670 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
6671 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
6672 + Improve error messages. Provide more context about the task
6673 which caused an error.
6675 * data/pandoc.lua (Albert Krewinkel):
6677 + Accept singleton inline as a list. Every constructor which accepts a
6678 list of inlines now also accepts a single inline element for
6680 + Accept single block as singleton list. Every constructor which accepts
6681 a list of blocks now also accepts a single block element for
6682 convenience. Furthermore, strings are accepted as shorthand for
6683 `{pandoc.Str "text"}` in constructors.
6684 + Add attr, listAttributes accessors. Elements with
6685 attributes got an additional `attr` accessor. Attributes were
6686 accessible only via the `identifier`, `classes`, and `attributes`,
6687 which was in conflict with the documentation, which indirectly states
6688 that such elements have the an `attr` property.
6689 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
6690 module is closely tied to the pandoc version, which is available via
6692 + Fix access to Attr components. Accessing an Attr value (e.g.,
6693 ` Attr().classes`) was broken; the more common case of accessing it via
6694 an Inline or Block element was unaffected by this.
6696 * Move `metaValueToInlines` to from Docx writer to
6697 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
6702 + Clarify otherlangs in LaTeX (#4072).
6703 + Clarify `latex_macros` extension.
6704 + Recommend use of `raw_attribute` extension in header includes (#4253).
6706 * Allow latest QuickCheck, tasty, criterion.
6708 * Remove custom prelude and ghc 7.8 support.
6710 * Reduce compiler noise (exact paths for compiled modules).
6712## pandoc 2.1 (2018-01-07)
6714 * Allow filters and lua filters to be interspersed (#4196). Previously
6715 we ran all lua filters before JSON filters. Now we run filters in
6716 the order they are presented on the command line, whether lua or JSON.
6717 There are two incompatible API changes: The type of `applyFilters`
6718 has changed, and `applyLuaFilters` has been removed. `Filter` is
6721 * Use latest skylighting and omit the `missingIncludes` check, fixing
6722 a major performance regression in earlier releases of the 2.x series
6723 (#4226). Behavior change: If you use a custom syntax definition that
6724 refers to a syntax you haven't loaded, pandoc will now complain when
6725 it is highlighting the text, rather than doing a check at the start.
6726 This change dramatically speeds up invocations of pandoc on short
6729 * Text.Pandoc.Class: make `FileTree` opaque (don't export
6730 `FileTree` constructor). This forces users to interact with it using
6731 `insertInFileTree` and `getFileInfo`, which normalize file names.
6735 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
6736 direct, avoiding `parseFromString`. And it performs significantly
6737 better; unfortunately, parsing time still increases exponentially
6739 + Avoid parsing raw tex unless `\` + letter seen. This seems to
6740 help with the performance problem, #4216.
6742 * LaTeX reader: Simplified a check for raw tex command.
6744 * Muse reader (Alexander Krotov):
6746 + Enable round trip test (#4107).
6747 + Automatically translate `#cover` into `#cover-image`.
6748 Amusewiki uses #cover directive to specify cover image.
6750 * Docx reader (Jesse Rosenthal):
6752 + Allow for insertion/deletion of paragraphs (#3927).
6753 If the paragraph has a deleted or inserted paragraph break (depending
6754 on the track-changes setting) we hold onto it until the next
6755 paragraph. This takes care of accept and reject. For this we introduce
6756 a new state which holds the ils from the previous para if necessary.
6757 For `--track-changes=all`, we add an empty span with class
6758 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
6759 prior to the break to be inserted or deleted.
6760 + Remove unused anchors (#3679). Docx produces a lot of anchors with
6761 nothing pointing to them---we now remove these to produce cleaner
6762 output. Note that this has to occur at the end of the process
6763 because it has to follow link/anchor rewriting.
6764 + Read multiple children of `w:sdtContents`.
6765 + Combine adjacent anchors. There isn't any reason to have numerous
6766 anchors in the same place, since we can't maintain docx's
6767 non-nesting overlapping. So we reduce to a single anchor.
6770 * Muse writer (Alexander Krotov): don't escape URIs from AST
6774 + Removed redundant subtitle in title (Sebastian Talmon).
6775 + `firstRow` table definition compatibility for Word 2016 (Sebastian
6776 Talmon). Word 2016 seems to use a default value of "1" for table
6777 headers, if there is no firstRow definition (although a default
6778 value of 0 is documented), so all tables get the first Row formatted
6779 as header. Setting the parameter to 0 if the table has no header
6780 row fixes this for Word 2016
6781 + Fix custom styles with spaces in the name (#3290).
6783 * Powerpoint writer (Jesse Rosenthal):
6785 + Ignore Notes div for parity with other slide outputs.
6786 + Set default slidelevel correctly. We had previously defaulted to
6787 slideLevel 2. Now we use the correct behavior of defaulting to the
6788 highest level header followed by content. We change an expected test
6789 result to match this behavior.
6790 + Split blocks correctly for linked images.
6791 + Combine adjacent runs.
6792 + Make inline code inherit code size. Previously (a) the code size
6793 wasn't set when we force size, and (b) the properties was set from
6794 the default, instead of inheriting.
6795 + Simplify `replaceNamedChildren` function.
6796 + Allow linked images. The following markdown:
6797 `[](http://www.example.com)`
6798 will now produce a linked image in the resulting PowerPoint file.
6799 + Fix error with empty table cell. We require an empty `<a:p>` tag,
6800 even if the cell contains no paragraphs---otherwise PowerPoint
6801 complains of corruption.
6802 + Implement two-column slides. This uses the columns/column div
6803 format described in the pandoc manual. At the moment, only two
6804 columns (half the screen each) are allowed. Custom widths are not
6808 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
6810 * Lua filters (Albert Krewinkel):
6812 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
6813 + The current pandoc-types version is made available to Lua programs in
6814 the global `PANDOC_API_VERSION`. It contains the version as a list of
6816 + The pandoc version available as a global `PANDOC_VERSION` (a list
6818 + `data/pandoc.lua`: make `Attr` an `AstElement`.
6819 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
6820 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
6821 not set a metatable on the returned value, which made it difficult
6822 to amend objects of these types with new behavior. They are now
6823 subtypes of AstElement, meaning that all their objects can gain
6824 new features when a method is added to the behavior object
6825 (e.g., `pandoc.Pandoc.behavior`).
6826 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
6827 between a type and the behavioral properties of an instance of that
6828 type. The behavior of a type (and all its subtypes) can now be
6829 amended by adding methods to that types `behavior` object, without
6830 exposing the type objects internals. E.g.:
6832 pandoc.Inline.behavior.frob = function () print'42' end
6833 local str = pandoc.Str'hello'
6834 str.frob() -- outputs '42'
6836 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
6837 of a given type (e.g., all inline elements) was difficult, as the
6838 table used to lookup unknown methods would be reset every time a
6839 new element of that type was created, preventing recursive property
6840 lookup. This is was changed in that all methods and attributes of
6841 supertypes are now available to their subtypes.
6842 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
6843 fields were named like the Haskell fields, not like the documented,
6844 shorter version. The names are changed to match the documentation
6845 and Citations are given a shared metatable to enable simple
6847 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
6848 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
6849 difficult to handle failures while getting lists or a Map from Lua.
6850 A bug in pandoc, which made it necessary to always pass a tag when
6851 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
6852 module's constructor functions for these values is now optional
6853 (if still recommended).
6854 + Stop exporting `pushPandocModule` (API change). The introduction
6855 of `runPandocLua` renders direct use of this function obsolete.
6856 + Update generation of module docs for lua filters.
6857 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
6858 MacFarlane). I'm sure this was intended in the first place,
6859 but currently only `Meta` is supported.
6861 * Improve benchmarks.
6863 + Set the default extensions properly.
6864 + Improve benchmark argument parsing. You can now say
6865 `make bench BENCHARGS="markdown latex reader"` and both the
6866 markdown and latex readers will be benchmarked.
6868 * MANUAL.txt simplify and add more structure (Mauro Bieg).
6870 * Generate README.md from template and MANUAL.txt.
6871 `make README.md` will generate the README.md after changes
6872 to MANUAL.txt have been made.
6874 * Update copyright notices to include 2018 (Albert Krewinkel).
6876## pandoc 2.0.6 (2017-12-28)
6878 * Added `jats` as an input format.
6880 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
6881 change) (Hamish Mackenzie).
6882 + Improved citation handling in JATS reader. JATS citations
6883 are now converted to pandoc citations, and JATS ref-lists
6884 are converted into a `references` field in metadata, suitable
6885 for use with pandoc-citeproc. Thus a JATS article with embedded
6886 bibliographic information can be processed with pandoc and
6887 pandoc-citeproc to produce a formatted bibliography.
6889 * Allow `--list-extensions` to take an optional FORMAT argument.
6890 This lists the extensions set by default for the selected FORMAT.
6891 The extensions are now alphabetized, and the `+` or `-`
6892 indicating the default setting comes before, rather than after,
6897 + Preserve original whitespace between blocks.
6898 + Recognize `\placeformula` as context.
6899 + Be pickier about table captions. A caption starts with a `:` which
6900 can't be followed by punctuation. Otherwise we can falsely interpret
6901 the start of a fenced div, or even a table header line like
6902 `:--:|:--:`, as a caption.
6903 + Always use four space rule for example lists. It would be awkward
6904 to indent example list contents to the first non-space character after
6905 the label, since example list labels are often long. Thanks to
6906 Bernhard Fisseni for the suggestion.
6907 + Improve raw tex parsing. Note that the Markdown reader is also
6908 affected by the `latex_macros` extension changes described below
6909 under the LaTeX reader.
6913 + `latex_macros` extension changes (#4179). Don't pass through macro
6914 definitions themselves when `latex_macros` is set. The macros
6915 have already been applied. If `latex_macros` is enabled, then
6916 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
6917 a macro definition, and will update pandoc's internal macro map
6918 accordingly, but the empty string will be returned.
6919 + Export `tokenize`, `untokenize` (API change).
6920 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
6921 + Refactored `inlineCommand`.
6922 + Fix bug in tokenizer. Material following `^^` was
6923 dropped if it wasn't a character escape. This only affected
6924 invalid LaTeX, so we didn't see it in the wild, but it appeared
6925 in a QuickCheck test failure.
6926 + Fix regression in LateX tokenization (#4159). This mainly affects the
6927 Markdown reader when parsing raw LaTeX with escaped spaces.
6928 + Add tests of LaTeX tokenizer.
6929 + Support `\foreignlanguage` from babel.
6930 + Be more tolerant of `&` character (#4208). This allows us to parse
6931 unknown tabular environments as raw LaTeX.
6933 * Muse reader (Alexander Krotov):
6935 + Parse anchors immediately after headings as IDs.
6936 + Require that note references does not start with 0.
6937 + Parse empty comments correctly.
6939 * Org reader (Albert Krewinkel):
6941 + Fix asterisks-related parsing error (#4180).
6942 + Support minlevel option for includes (#4154). The level of headers
6943 in included files can be shifted to a higher level by specifying a
6944 minimum header level via the `:minlevel` parameter. E.g.
6945 `#+include: "tour.org" :minlevel 1` will shift the headers in
6946 tour.org such that the topmost headers become level 1 headers.
6947 + Break-up org reader test file into multiple modules.
6951 + Enable raw HTML and other extensions by default for notes
6952 (#4164). This fixes a regression in 2.0. Note that extensions can
6953 now be individually disabled, e.g. `-f opml-smart-raw_html`.
6957 + Allow empty list items (#4193).
6958 + More accurate parsing of references (#4156). Previously we erroneously
6959 included the enclosing backticks in a reference ID (#4156). This
6960 change also disables interpretation of syntax inside references, as
6961 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
6965 + Continue lists after interruption (#4025, Jesse Rosenthal).
6966 Docx expects that lists will continue where they left off after an
6967 interruption and introduces a new id if a list is starting again. So
6968 we keep track of the state of lists and use them to define a "start"
6969 attribute, if necessary.
6970 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
6971 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
6976 + Don't linkify table of contents.
6980 + Fix anchors for headers (#4188). We were missing an `_`.
6982 * PowerPoint writer (Jesse Rosenthal):
6984 + Treat lists inside BlockQuotes as lists. We don't yet produce
6985 incremental lists in PowerPoint, but we should at least treat lists
6986 inside BlockQuotes as lists, for compatibility with other slide formats.
6987 + Add ability to force size. This replaces the more specific
6988 `blockQuote runProp`, which only affected the size of blockquotes. We
6989 can use this for notes, etc.
6990 + Implement notes. This currently prints all notes on a final slide.
6991 Note that at the moment, there is a danger of text overflowing the
6992 note slide, since there is no logic for adding further slides.
6993 + Implement basic definition list functionality to PowerPoint writer.
6994 + Don't look for default template file for Powerpoint (#4181).
6995 + Add pptx to isTextFormat list. This is used to check standalone
6996 and not writing to the terminal.
6997 + Obey slide level option (Jesse Rosenthal).
7002 + Ensure that `distArchive` is the one that comes with pandoc
7003 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
7004 dir) would be used instead, and this could cause problems because a
7005 user-modified docx sometimes lacks vital sections that we count
7006 on the `distArchive` to supply.
7010 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
7011 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
7012 Alexander Krotov). Otherwise they can be interpreted as footnote
7015 * Muse writer (Alexander Krotov):
7017 + Don't wrap note references to the next line (#4172).
7021 + Use br elements in line blocks instead of relying on CSS
7022 (#4162). HTML-based templates have had the custom CSS for
7023 `div.line-block` removed. Those maintaining custom templates will want
7024 to remove this too. We still enclose line blocks in a div with class
7029 + Use `\renewcommand` for `\textlatin` with babel (#4161).
7030 This avoids a clash with a deprecated `\textlatin` command defined
7032 + Allow fragile=singleslide attribute in beamer slides (#4169).
7033 + Use `\endhead` after `\toprule` in headerless tables (#4207).
7037 + Add cover image specified by `cover-image` meta (Alexander Krotov,
7040 * JATS writer (Hamish Mackenzie):
7042 + Support writing `<fig>` and `<table-wrap>` elements
7043 with `<title>` and `<caption>` inside them by using Divs with class set
7044 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
7045 title is included as a Heading so the constraint on where Heading can
7046 occur is also relaxed.
7047 + Leave out empty alt attributes on links.
7048 + Deduplicate image mime type code.
7049 + Make `<p>` optional in `<td>` and `<th>` (#4178).
7050 + Self closing tags for empty xref (#4187).
7051 + Improve support for code language.
7055 + Use init file to setup Lua interpreter (Albert Krewinkel).
7056 The same init file (`data/init`) that is used to setup the Lua
7057 interpreter for Lua filters is also used to setup the interpreter of
7059 + Define instances for newtype wrapper (Albert Krewinkel). The custom
7060 writer used its own `ToLuaStack` instance definitions, which made
7061 it difficult to share code with Lua filters, as this could result
7062 in conflicting instances. A `Stringify` wrapper is introduced to
7064 + Added tests for custom writer.
7065 + Fixed definition lists and tables in `data/sample.lua`.
7067 * Fixed regression: when target is PDF, writer extensions were being
7068 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
7069 did not work properly.
7071 * Lua modules (Albert Krewinkel):
7073 + Add `pandoc.utils` module, to hold utility functions.
7074 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
7075 define the `pandoc` lua module.
7076 + Make a Haskell module for each Lua module. Move definitions for the
7077 `pandoc.mediabag` modules to a separate Haskell module.
7078 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
7079 + Add function `pandoc.utils.hierarchicalize` (convert list of
7080 Pandoc blocks into (hierarchical) list of Elements).
7081 + Add function `pandoc.utils.normalize_date` (parses a date and
7082 converts it (if possible) to "YYYY-MM-DD" format).
7083 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
7084 of numbers below 4000 into roman numerals).
7085 + Add function `pandoc.utils.stringify` (converts any AST element
7086 to a string with formatting removed).
7087 + `data/init.lua`: load `pandoc.utils` by default
7088 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
7089 utility functions are converted from hybrid lua/haskell functions
7090 into full Haskell functions. This avoids the need for intermediate
7091 `_pipe`/`_read` helper functions, which have dropped.
7092 + pandoc.lua: re-add missing MetaMap function. This was a bug
7093 introduced in version 2.0.4.
7095 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
7096 a pure way to insert an ersatz file into a `FileTree`. In addition, we
7097 normalize paths both on insertion and on lookup.
7099 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
7101 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
7103 * Text.Pandoc.Extensions: Alphabetical order constructors for
7104 `Extension`. This makes them appear in order in `--list-extensions`.
7106 * Allow lenient decoding of latex error logs, which are not always
7107 properly UTF8-encoded (#4200).
7109 * Update latex template to work with recent versions of beamer.
7110 The old template produced numbered sections with some recent
7111 versions of beamer. Thanks to Thomas Hodgson.
7113 * Updated reference.docx (#4175). Instead of just "Hello, world", the
7114 document now contains exemplars of most of the styles that have an
7115 effect on pandoc documents. This makes it easier to see the effect
7118 * Removed `default.theme` data file (#4096). It is no longer needed now
7119 that we have `--print-highlight-style`.
7121 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
7122 We still need this for the alpine static linux build, since
7123 we don't have ghc 8.2.2 for that yet.
7125 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
7126 can put flag settings for pandoc-citeproc there.
7128 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
7129 make releases easier.
7133 + Add note on what formats have `+smart` by default.
7134 + Use native syntax for custom-style (#4174, Mauro Bieg).
7135 + Introduce dedicated Extensions section, since some extensions
7136 affect formats other than markdown (Mauro Bieg, #4204).
7137 + Clarify default html output for `--section-divs` (Richard Edwards).
7139 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
7140 Closes jgm/pandoc-website#16.
7142 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
7144## pandoc 2.0.5 (2017-12-12)
7146 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
7147 generated with `--print-highlight-style` (#4133). Improve JSON
7148 serialization of styles.
7150 * Fix CSS issues involving line numbers (#4128).
7151 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
7152 Highlighting CSS no longer sets a generic color for pre and code; we only
7153 set these for class `sourceCode`.
7155 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
7157 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
7158 It works following the standard Pandoc conventions for making other
7159 sorts of slides. Caveats:
7161 + Syntax highlighting is not yet implemented. (This is difficult
7162 because there are no character classes in Powerpoint.)
7163 + Footnotes and Definition lists are not yet implemented. (Notes will
7164 usually take the form of a final slide.
7165 + Image placement and auto-resizing has a few glitches.
7166 + Reference powerpoint files don't work dependably from the command
7167 line. This will be implemented, but at the moment users are advised
7168 to change themes from within Powerpoint.
7170 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
7171 This is for functions used by both Powerpoint and Docx writers.
7173 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
7175 * Add `empty_paragraphs` extension.
7177 + Deprecate `--strip-empty-paragraphs` option. Instead we now
7178 use an `empty_paragraphs` extension that can be enabled on
7179 the reader or writer. By default, disabled.
7180 + Add `Ext_empty_paragraphs` constructor to `Extension`.
7181 + Revert "Docx reader: don't strip out empty paragraphs."
7182 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
7183 + Implement `empty_paragraphs` extension in docx reader and writer,
7184 opendocument writer, html reader and writer.
7185 + Add tests for `empty_paragraphs` extension.
7189 + Don't parse native div as table caption (#4119).
7190 + Improved computation of column widths in pipe tables.
7191 Pipe tables with lines longer than the text width (as set
7192 by `--columns`) are now scaled to text width, with the relative
7193 widths of columns determined by the ratios between the
7194 header lines. Previously we computed column widths using
7195 the ratio of header line lengths to column width, so that
7196 tables with narrow header lines were extremely thin, which
7197 was very rarely the desired result.
7199 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
7200 as long as it's not followed by a blank line. This has been fixed at the
7203 * Muse reader (Alexander Krotov):
7205 + Add test for `#disable-tables` directive in Emacs mode.
7206 + Don't allow emphasis to be preceded by letter.
7207 + Add underline support in Emacs Muse mode..
7208 + Support multiline directives in Amusewiki mode
7210 * Man writer: omit internal links (#4136). That is, just print the link
7211 text without the URL.
7213 * Markdown reader: accept processing instructions as raw HTML (#4125).
7215 * Lua filters (Albert Krewinkel):
7217 + Use script to initialize the interpreter. The file `init.lua` is
7218 used to initialize the Lua interpreter which is used in Lua filters.
7219 This gives users the option to require libraries which they want to
7220 use in all of their filters, and to extend default modules.
7221 + Fix package loading for Lua 5.1. The list of package searchers is
7222 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
7223 in Lua 5.2 and later.
7224 + Refactor lua module handling. The integration with Lua's package/module
7225 system is improved: A pandoc-specific package searcher is prepended to
7226 the searchers in `package.searchers`. The modules `pandoc` and
7227 `pandoc.mediabag` can now be loaded via `require`.
7228 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
7229 function which makes using Haskell functions as package loaders much
7232 * reveal.js template: add title-slide identifier to title slide (#4120).
7233 This allows it to be styled more easily.
7235 * LaTeX template: Added support for `pagestyle` variable (#4135,
7238 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
7242## pandoc 2.0.4 (2017-12-03)
7244 * Add `--print-highlight-style` option. This generates a JSON version
7245 of a highlighting style, which can be saved as a `.theme` file, modified,
7246 and used with `--highlight-style` (#4106, #4096).
7248 * Add `--strip-empty-paragraphs` option. This works for any input format.
7249 It is primarily intended for use with docx and odt documents where
7250 empty paragraphs have been used for inter-paragraph spaces.
7252 * Support `--webtex` for `gfm` output.
7254 * Recognize `.muse` file extension.
7256 * Support beamer `\alert` in LaTeX reader. Closes #4091.
7258 * Docx reader: don't strip out empty paragraphs (#2252).
7259 Users who have a conversion pipeline from docx may want to consider adding
7260 `--strip-empty-paragraphs` to the command line.
7262 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
7264 * Muse reader (Alexander Krotov):
7266 + Parse markup in definition list terms.
7267 + Allow definition to end with EOF.
7268 + Make code blocks round trip.
7269 + Drop common space prefix from list items.
7270 + Add partial round trip test.
7271 + Don't interpret XML entities.
7273 + Parse `~~` as non-breaking space in Emacs mode.
7274 + Correctly remove indentation from notes. Exactly one space is
7275 required and considered to be part of the marker.
7276 + Allow list items to be empty.
7277 + Add ordered list test.
7278 + Add more multiline definition tests.
7279 + Don't allow blockquotes within lists.
7280 + Fix reading of multiline definitions.
7281 + Add inline `<literal>` support.
7282 + Concatenate inlines of the same type
7284 * Docx writer: allow empty paragraphs (#2252).
7286 * CommonMark/gfm writer:
7288 + Use raw html for native divs/spans (#4113). This allows a pandoc
7289 markdown native div or span to be rendered in gfm using raw html tags.
7290 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
7291 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
7293 * Muse writer (Alexander Krotov):
7295 + Test that inline math conversion result is normalized.
7296 Without normalization this test produced
7297 `<em>a</em><em>b</em><em>c</em>`.
7298 + Improve inline list normalization and move to writer.
7299 + Escape hash symbol.
7300 + Escape `----` to avoid accidental horizontal rules.
7301 + Escape only `</code>` inside code tag.
7302 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
7306 + Allow specifying just width or height for image size.
7307 Previously both needed to be specified (unless the image was
7308 being resized to be smaller than its original size).
7309 If height but not width is specified, we now set width to
7310 textwidth. If width but not height is specified, we now set
7311 height to textheight. Since we have `keepaspectratio`, this
7312 yields the desired result.
7313 + Escape `~` and `_` in code with `--listings` (#4111).
7315 * HTML writer: export `tagWithAttributes`. This is a helper allowing
7316 other writers to create single HTML tags.
7318 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
7319 converting the case as needed in LaTeX and ConTeXt writers.
7321 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
7322 so that it no longer produces empty `Para`'s as an artifact.
7324 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
7325 This gives us automatic normalization, so we don't get
7326 for example two consecutive Spaces.
7328 * Include default CSS for 'underline' class in HTML-based templates.
7330 * revealjs template: add `tex2jax` configuration for the
7331 math plugin. With the next release of reveal.js, this will
7332 fix the problem of `$`s outside of math contexts being
7333 interpreted as math delimiters (#4027).
7335 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
7337 + Add basic lua List module (#4099, #4081). The List module is
7338 automatically loaded, but not assigned to a global variable. It can be
7339 included in filters by calling `List = require 'List'`. Lists of blocks,
7340 lists of inlines, and lists of classes are now given `List` as a metatable,
7341 making working with them more convenient. E.g., it is now possible to
7342 concatenate lists of inlines using Lua's concatenation operator `..`
7343 (requires at least one of the operants to have `List` as a metatable):
7345 function Emph (emph)
7346 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
7347 return pandoc.Span(emph.content .. s)
7350 The `List` metatable is assigned to the tables which get passed to
7351 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
7352 enables the use of the resulting objects as lists.
7353 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
7354 Pandoc and Meta elements are now pushed by calling the respective
7355 constructor functions of the pandoc Lua module. This makes serialization
7356 consistent with the way blocks and inlines are pushed to lua and allows
7357 to use List methods with the `blocks` value.
7358 + Add documentation for pandoc.List in `lua-filters.md`.
7360 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
7361 `&` (but not a valid entity) following them (#4094, #4088).
7363 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
7364 when `numberLines` is used (#4103).
7366 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
7367 requiring a leading 0 on single-digit days.
7369 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
7372 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
7373 Previously we only mentioned `--latexmathml`, even if `-m` was
7376 * Changelog: fix description of lua filters in 2.0 release
7377 (Albert Krewinkel). Lua filters were initially run *after* conventional
7378 (JSON) filters. However, this was changed later to make it easier to deal
7379 with files in the mediabag. The changelog is updated to describe that
7380 feature of the 2.0 release correctly.
7382 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
7383 #4085). This reduces compile time and memory usage significantly.
7385 * `lua-filters.md`: Added tikz filter example.
7387 * Create alternative zip file for macOS binaries.
7389 * Create alternative zip file for Windows binaries.
7391 * Update INSTALL.md since we now provide zips for binaries.
7393 * Relax `http-types` dependency (Justus Sagemüller, #4084).
7395 * Add `epub.md`, `getting-started.md` to docs. These used to live in
7398 * Add `packages` target to Makefile.
7400 * Bump bounds for binary, http-types, tasty-hunit
7402## pandoc 2.0.3 (2017-11-20)
7404 * Lua filters: preload text module (Albert Krewinkel, #4077).
7405 The `text` module is preloaded in lua. The module contains some UTF-8
7406 aware string functions, implemented in Haskell. The module is loaded on
7409 text = require 'text'
7411 s.text = text.upper(s.text)
7415 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
7416 #4071). Attribute lists are represented as associative lists in Lua. Pure
7417 associative lists are awkward to work with. A metatable is attached to
7418 attribute lists, allowing to access and use the associative list as if
7419 the attributes were stored in as normal key-value pair in table.
7420 Note that this changes the way `pairs` works on attribute lists. Instead
7421 of producing integer keys and two-element tables, the resulting iterator
7422 function now returns the key and value of those pairs. Use `ipairs` to
7423 get the old behavior. Warning: the new iteration mechanism only works if
7424 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
7426 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
7427 This fixes a bug where pandoc would stop parsing a URI with an
7428 empty attribute: for example, `&a=&b=` wolud stop at `a`.
7429 (The uri parser tries to guess which punctuation characters
7430 are part of the URI and which might be punctuation after it.)
7432 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
7434 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
7436 + Reimplemented `isEnabled` function from `Options.hs` to accept both
7437 `ReaderOptions` and `WriterOptions`.
7438 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
7440 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
7441 behavior for `muse`. New `Ext_amuse` constructor for
7442 `Extension`. Note: this is switched on by default; for
7443 Emacs behavior, use `muse-amuse`.
7445 * Muse reader (Alexander Krotov):
7447 + Count only one space as part of list item marker.
7448 + Produce SoftBreaks on newlines. Now wrapping can be preserved
7449 with `--wrap=preserve`.
7450 + Add Text::Amuse footnote extensions. Footnote end is indicated by
7451 indentation, so footnotes can be placed anywhere in the text,
7452 not just at the end of it.
7453 + Accept Emacs Muse definition lists when `-amuse`.
7454 Emacs Muse does not require indentation.
7458 + Ensure we don't produce level 0 headers (#4076), even for chapter
7459 sections in epubs. This causes problems because writers aren't set
7461 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
7462 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
7463 `markdown` or `html` `+tex_math_single_backslash`.
7465 * MANUAL: clarify that math extensions work with HTML.
7466 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
7467 will work with HTML as well as Markdown.
7469 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
7472 * RST reader: better support for 'container' directive (#4066).
7473 Create a div, incorporate name attribute and classes.
7477 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
7478 `rr`. We now expand it like a macro.
7479 + Allow optional args for parbox (#4056).
7480 + Allow optional arguments on `\footnote` (#4062).
7482 * EPUB writer: Fixed path for cover image (#4069). It was previously
7483 `media/media/imagename`, and should have been `media/imagename`.
7485 * Markdown writer: fix bug with doubled footnotes in grid tables
7488 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
7489 Otherwise we seem to get an error; biblatex wants polyglossia
7490 language to be defined.
7492 * Added examples to lua filters documentation.
7495## pandoc 2.0.2 (2017-11-12)
7497 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
7498 `--mimetex`, `--jsmath`.
7500 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
7501 leading to invalid XML in default JATS output with pandoc-citeproc.
7503 * `lua-filters.md`: use real-world man page filter as example.
7505 * Add lua filter functions `walk_inline` and `walk_block`
7506 in the pandoc module, to apply filters inside particular
7507 inline and block elements.
7509 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
7510 into new internal module `Text.Pandoc.Lua.Filter`.
7514 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
7515 This brings our handling of them into alignment with CommonMark's.
7516 + Fix YAML metadata with "chomp" (`|-`). Previously if a
7517 YAML block under `|-` contained a blank line, pandoc would
7518 not parse it as metadata.
7520 * Removed `etc.` from abbreviations file. Often `etc.` ends a
7521 sentence, and we want the period to be treated as a
7522 sentence-ending period.
7524 * Fix regression with `--metadata` (#4054). Values specified with
7525 `--metadata` should replace a metadata value set in the document
7526 itself, rather than creating a list including a new value.
7530 + Fix EPUB OCF structure. #3720 had been improperly implemented.
7531 + Fix modified paths for raw HTML tags (src, poster, etc.)
7532 (#4050, #4055). This had not been updated for the new EPUB
7533 container layout, with a separate text/ subdirectory.
7534 + Fix image paths with empty `--epub-subdirectory`.
7536 * Miscellaneous code cleanup (Alexander Krotov).
7538 * Use pandoc-types 1.17.3, which adds `Walkable` instances
7539 for `[Block] Block` and `[Inline] Inline`.
7541 * Remove obsolete `stack.full.yaml` (#4052).
7543 * Change to using pandoc-citeproc 0.12.1 in binary packages.
7545 * Consolidate math output method documentation (#4049, Mauro Bieg).
7547 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
7549 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
7550 Haskell filters. This is easier and faster.
7552 * Improved `INSTALL.md`.
7554 * Update commands to extract deb archive on Linux (#4043, Salim B).
7557## pandoc 2.0.1.1 (2017-11-04)
7559 * Improved fix to #3989 (parsing of HTML tags containing
7560 `>` in an attribute or comment). The previous fix (in 2.0.1) only
7561 worked in certain cases.
7563 * FB2 writer (Alexander Krotov):
7565 + Add `unrecognised` genre to `<title-info>`
7566 (Alexander Krotov). XML schema requires at least one genre.
7567 + Remove `<annotation>` from `<body>`.
7569 * CommonMark writer: fix strikethrough for `gfm` (#4038).
7571 * Use texmath 0.10, which adds support for a wider range of
7572 symbols and fixes default column alignments in MathML
7575 * Highlighting fixes, using skylighting 0.4.3.2:
7578 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
7579 + Ensure that code lines don't get duplicate identifiers (#4031).
7580 The line identifiers are built using the code block's identifier
7581 as a prefix. If the code block has null identifier, we use
7584 * Added a few abbreviations to `data/abbreviations`,
7585 and sorted the list (#3984, Wandmalfarbe).
7587 * Improved support for columns in HTML writer (#4028).
7589 + Remove `width` attribute from the `div`.
7590 + Remove space between `<div class="column">` elements,
7591 since this prevents columns whose widths sum to 100%
7592 (the space takes up space).
7593 + Move as much as possible of the CSS to the template.
7594 + Ensure that all the HTML-based templates (including epub)
7595 contain the CSS for columns.
7596 + Columns default to 50% width unless they are given a width
7597 attribute. So if you want two equal-width columns, you
7598 can use a div with class `column` and no `width` attribute.
7600 * SelfContained: use `base64` for css links with media attribute (#4026).
7601 This fixes `--self-contained` with S5.
7603 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
7605 * INSTALL.md: MacOS instructions needed xar -f (adam234).
7609 + Clarify that --setext-headers doesn't affect gfm output (#4035).
7610 + Clarify what is needed to open and close a div in `fenced_divs`
7611 (#4039, Tristano Ajmone).
7612 + Removed reference to `default.beamer` in docs (#4024).
7613 Also added mention of other templates affecting PDF output
7614 with different settings.
7617## pandoc 2.0.1 (2017-10-31)
7619 * Fixed regression in parsing of HTML comments in markdown and other
7620 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
7621 The parser stopped at the first `>` character, even if it wasn't
7622 the end of the comment.
7624 * Creole reader (Sascha Wilde):
7626 + Fix some minor typos and formatting.
7627 + Add additional test on nowiki-block after para.
7628 + Fix lists with trailing white space.
7630 * LaTeX reader: handle `%` comment right after command.
7631 For example, `\emph%`.
7633 * Markdown reader: make sure fenced div closers work in lists.
7634 Previously the following failed:
7641 and you needed a blank line before the closing `:::`.
7643 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
7644 enabled, Divs will be rendered as fenced divs.
7646 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
7649 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
7650 Note: this change may require some changes in CSS rules.
7651 `footnoteRef` has become `footnote-ref`, `titleslide` has
7652 become `title-slide`, and `footnoteBack` has become `footnote-back`.
7654 * JATS writer: Properly pass through author metadata (#4020).
7656 * FB2 writer (Alexander Krotov):
7658 + Write blocks outside of `<p>` in definitions.
7659 + Make bullet lists consistent with ordered lists, repeating
7660 the marker for the outer list rather than indenting sublists,
7661 since indentation does not work in readers.
7662 + Add new style FB2 tests.
7664 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
7665 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
7668 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
7670 * Fix broken reference links in manual (Andrew Dunning, #4014)
7672 * Fixed example of slide columns structure in changelog (#4015).
7673 Also documented this feature in MANUAL.txt.
7676## pandoc 2.0.0.1 (2017-10-30)
7680 + Fixed filepaths for nonstandard epub-subdirectory values.
7681 + Ensure that epub2 is recognized as a non-text format,
7682 so that a template is used.
7683 + Don't include "prefix" attribute for ibooks for epub2.
7684 It doesn't validate.
7685 + Fix stylesheet paths; previously we had an incorrect
7686 stylesheet path for the cover page and nav page.
7690 + Insert space when needed in macro expansion (#4007).
7691 Sometimes we need to insert a space after a control sequence
7692 to prevent it merging with a following letter.
7693 + Allow unbraced arguments for macros (#4007).
7694 + Allow body of macro definition to be unbraced (#4007).
7696 * Linux package build: ensure that pandoc-citeproc is statically linked.
7698 * trypandoc: add native, ms.
7701## pandoc 2.0 (2017-10-29)
7705 * New output format `ms` (groff ms). Complete support, including
7706 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
7707 texmath's new eqn writer to convert math to eqn format, so a ms file
7708 produced with this writer should be processed with `groff -ms -e` if
7711 * New output format `jats` (Journal Article Tag Suite). This is an XML
7712 format used in archiving and publishing articles. Note that a
7713 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
7714 unless a stylesheet is specified using `--css`.
7716 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
7717 This uses bindings to GitHub's fork of cmark, so it should parse
7718 gfm exactly as GitHub does (excepting certain postprocessing
7719 steps, involving notifications, emojis, etc.). `markdown_github`
7720 has been deprecated in favor of `gfm`.
7722 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
7724 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
7725 This uses bindings to GitHub's fork of cmark. `markdown_github`
7726 has been deprecated in favor of `gfm`.
7728 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
7730 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
7732 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
7733 Note that there is a new data file, `data/vimwiki.css`, which can
7734 be used to display the HTML produced by this reader and
7735 pandoc's HTML writer in the style of vimwiki's own HTML
7738 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
7740 * New syntax for Divs, with `fenced_divs` extension enabled by
7741 default (#168). This gives an attractive, plain-text way to create
7742 containers for block-level content.
7744 * Added new syntax for including raw content in any output format,
7745 enabled by the `raw_attribute` extension (which is on by default
7746 for `markdown` and `multimarkdown`). The syntax is the same as
7747 for fenced code blocks or code inlines, only with `{=FORMAT}` for
7748 attributes, where `FORMAT` is the name of the output format
7749 (e.g., `ms`, `html`).
7751 * Implement multicolumn support for slide formats (#1710).
7752 The structure expected is:
7754 :::::::::::::: {.columns}
7755 ::: {.column width="40%"}
7758 ::: {.column width="60%"}
7763 Support has been added for beamer and all HTML slide formats.
7765 * Allows line comments in templates, beginning with `$--` (#3806).
7766 (Requires doctemplates 0.2.1.)
7768 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
7769 (Stefan Dresselhaus, #3663, #2097).
7771 * Add `--log` option to save log messages in JSON format to a file (#3392).
7773 * Add `--request-header` option, to set request headers when pandoc
7774 makes HTTP requests to fetch external resources. For example:
7775 `--request-header User-Agent:blah`.
7777 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
7778 option works like `--filter` but takes pathnames of special lua filters
7779 and uses the lua interpreter baked into pandoc, so that no external
7780 interpreter is needed. Note that lua filters are all applied after
7781 regular filters, regardless of their position on the command line.
7782 For documentation of lua filters, see `doc/lua-filters.md`.
7784 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
7785 This contains a JSON representation of `ReaderOptions`, so filters
7788 * Support creation of pdf via groff `ms` and pdfroff.
7789 `pandoc -t ms -o output.pdf input.txt`.
7791 * Support for PDF generation via HTML and `weasyprint` or `prince`
7792 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
7794 * Added `--epub-subdirectory` option (#3720). This specifies the
7795 subdirectory in the OCF container that holds the EPUB specific content.
7796 We now put all EPUB related content in an `EPUB/` subdirectory by default
7797 (later this will be configurable).
7802 com.apple.ibooks.display-options.xml
7804 EPUB/ <<--configurable-->>
7805 fonts/ <<--static-->>
7807 media/ <<--static-->>
7810 styles/ <<--static-->>
7814 text/ <<--static-->>
7818 * Added `--resource-path=SEARCHPATH` command line option (#852).
7819 SEARCHPATH is separated by the usual character, depending on OS
7820 (: on unix, ; on windows). Default resource path is just working
7821 directory. However, the working directory must be explicitly
7822 specified if the `--resource-path` option is used.
7824 * Added --abbreviations=FILE option for custom abbreviations file
7825 (#256). Dfault abbreviations file (`data/abbreviations`) contains
7826 a list of strings that will be recognized by pandoc's
7827 Markdown parser as abbreviations. (A nonbreaking space will
7828 be inserted after the period, preventing a sentence space in
7829 formats like LaTeX.) Users can override the default by putting a file
7830 abbreviations in their user data directory (`~/.pandoc` on *nix).
7832 * Allow a theme file as argument to `--highlight-style`.
7833 Also include a sample, `default.theme`, in `data/`.
7835 * Allow `--syntax-definition` option for dynamic loading of syntax
7836 highlighting definitions (#3334).
7838 * Lists in `markdown` by default now use the CommonMark variable
7839 nesting rules (#3511). The indentation required for a block-level
7840 item to be included in a list item is no longer fixed, but is
7841 determined by the first line of the list item. To be included in
7842 the list item, a block must be indented to the level of the first
7843 non-space content after the list marker. Exception: if are 5 or more
7844 spaces after the list marker, then the content is interpreted as an
7845 indented code block, and continuation paragraphs must be indented
7846 two spaces beyond the end of the list marker. See the CommonMark
7847 spec for more details and examples.
7849 Documents that adhere to the four-space rule should, in most cases,
7850 be parsed the same way by the new rules. Here are some examples
7851 of texts that will be parsed differently:
7856 will be parsed as a list item with a sublist; under the four-space
7857 rule, it would be a list with two items.
7863 Here we have an indented code block under the list item, even though it
7864 is only indented six spaces from the margin, because it is four spaces
7865 past the point where a continuation paragraph could begin. With the
7866 four-space rule, this would be a regular paragraph rather than a code
7873 Here the code block will start with two spaces, whereas under
7874 the four-space rule, it would start with `code`. With the four-space
7875 rule, indented code under a list item always must be indented eight
7876 spaces from the margin, while the new rules require only that it
7877 be indented four spaces from the beginning of the first non-space
7878 text after the list marker (here, `a`).
7880 This change was motivated by a slew of bug reports from people
7881 who expected lists to work differently (#3125, #2367, #2575, #2210,
7882 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
7883 of CommonMark (now used by GitHub, for example). Those who
7884 prefer the old behavior can use `-f markdown+four_space_rule`.
7886 * Added `four_space_rule` extension. This triggers the old pandoc
7887 parsing rule for content nested under list items (the "four space
7890 * Added `spaced_reference_links` extension (#2602). It allows whitespace
7891 between the two parts of a reference link: e.g.
7897 This was previously enabled by default; now it is forbidden by default.
7899 * Add `space_in_atx_header` extension (#3512). This is enabled by default
7900 in pandoc and GitHub markdown but not the other flavors.
7901 This requirse a space between the opening #'s and the header
7902 text in ATX headers (as CommonMark does but many other implementations
7903 do not). This is desirable to avoid falsely capturing things ilke
7911 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
7914 * Allow ibooks-specific metadata in epubs (#2693). You can now have
7915 the following fields in your YAML metadata, and it will be treated
7916 appropriately in the generated EPUB:
7921 specified-fonts: false
7922 ipad-orientation-lock: portrait-only
7923 iphone-orientation-lock: landscape-only
7925 scroll-axis: vertical
7931 * Reader functions no longer presuppose that CRs have been
7932 stripped from the input. (They strip CRs themselves, before
7933 parsing, to simplify the parsers.)
7935 * Added support for translations (localization) (#3559).
7936 Currently this only affects the LaTeX reader, for things
7937 like `\figurename`. Translation data files for 46 languages
7938 can be found in `data/translations`.
7940 * Make `--ascii` work with DocBook output too.
7942 * Rename `--latex-engine` to `--pdf-engine`,
7943 and `--latex-engine-opt` to `--pdf-engine-opt`.
7945 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
7946 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
7947 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
7948 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
7950 * With `--filter` R filters are now recognized, even if they are
7951 not executable (#3940, #3941, Andrie de Vries).
7953 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
7955 * Make epub an alias for epub3, not epub2.
7957 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
7958 Multiple stylesheets may be used. Stylesheets will be taken both from
7959 `--css` and from the `stylesheet` metadata field (which can contain
7960 either a file path or a list of them).
7962 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
7963 The argument was for a bridge JavaScript that used to be necessary
7964 in 2004. We have removed the script already.
7966 * `--katex` improvements. The latest version is used, and the
7967 autoload script is loaded by default.
7969 * Change MathJax CDN default since old one is shutting down (#3544).
7970 Note: The new URL requires a version number, which we'll have
7971 to update manually in subsequent pandoc releases in order to
7972 take advantage of mathjax improvements.
7974 * `--self-contained`: don't incorporate elements with `data-external="1"`
7975 (#2656). You can leave an external link as it is by adding the attribute
7976 data-external="1" to the element. Pandoc will then not try to
7977 incorporate its content when `--self-contained` is used. This is
7978 similar to a feature already supported by the EPUB writer.
7980 * Allow `--extract-media` to work with non-binary input formats
7981 (#1583, #2289). If `--extract-media` is supplied with a non-binary
7982 input format, pandoc will attempt to extract the contents of all
7983 linked images, whether in local files, data: uris, or external uris.
7984 They will be named based on the sha1 hash of the contents.
7986 * Make `papersize: a4` work regardless of the case of `a4`.
7987 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
7989 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
7991 * Underlined elements are now treated consistently by readers
7992 (#2270, hftf); they are always put in a Span with class `underline`.
7993 This allows the user to treat them differently from other emphasis,
7994 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
7997 * Improved behavior of `auto_identifiers` when there are explicit ids
7998 (#1745). Previously only autogenerated ids were added to the list
7999 of header identifiers in state, so explicit ids weren't taken
8000 into account when generating unique identifiers. Duplicated
8001 identifiers could result. This simple fix ensures that explicitly given
8002 identifiers are also taken into account.
8004 * Use `table-of-contents` for contents of toc, make `toc` a boolean
8005 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
8006 This allows you to set `toc: true` in the metadata; this
8007 previously produced strange results in some output formats.
8008 For backwards compatibility, `toc` is still set to the
8009 toc contents. But it is recommended that you update templates
8010 to use `table-of-contents` for the toc contents and `toc`
8013 * Change behavior with binary format output to stdout.
8014 Previously, for binary formats, output to stdout was disabled
8015 unless we could detect that the output was being piped (and not
8016 sent to the terminal). Unfortunately, such detection is not
8017 possible on Windows, leaving windows users no way to pipe binary
8018 output. So we have changed the behavior in the following way:
8020 + Output to stdout is allowed when it can be determined that
8021 the output is being piped (on non-Windows platforms).
8022 + If the `-o` option is not used, binary output is never sent
8023 to stdout by default; instead, an error is raised.
8024 + If `-o -` is used, binary output is sent to stdout, regardless
8025 of whether it is being piped. This works on Windows too.
8027 * Better error behavior: uses of `error` have been replaced by
8028 raising of `PandocError`, which can be trapped and handled by the
8031 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
8032 GitHub has two Markdown modes, one for long-form documents like READMEs
8033 and one for short things like issue comments. In issue comments, a line
8034 break is treated as a hard line break. In README, wikis, etc., it is
8035 treated as a space as in regular Markdown. Since pandoc is more likely to
8036 be used to convert long-form documents from GitHub Markdown,
8037 `-hard_line_breaks` is a better default.
8039 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
8041 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
8042 Previously they would be transmitted to the template without any
8043 escaping. Note that `--M title='*foo*'` yields a different result from
8049 In the latter case, we have emphasis; in the former case, just
8050 a string with literal asterisks (which will be escaped
8051 in formats, like Markdown, that require it).
8053 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
8055 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
8056 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
8057 it is valid HTML5. HTML4 is not affected. This will allow us to use
8058 custom attributes in pandoc without producing invalid HTML. (With help
8059 from Wandmalfarbe, #3817.)
8061 * Plain writer: improved super/subscript rendering. We now
8062 handle more non-digit characters for which there are
8063 sub/superscripted unicode characters. When unicode
8064 sub/superscripted characters are not available, we use
8065 `_(..)` or `^(..)` (#3518).
8067 * Docbook, JATS, TEI writers: print INFO message when omitting interior
8068 header (#3750). This only applies to section headers inside list items,
8069 e.g., which were otherwise silently omitted.
8071 * Change to `--reference-links` in Markdown writer (#3701). With
8072 `--reference-location` of `section` or `block`, pandoc will now repeat
8073 references that have been used in earlier sections. The Markdown
8074 reader has also been modified, so that *exactly* repeated references
8075 do not generate a warning, only references with the same label but
8076 different targets. The idea is that, with references after every block,
8077 one might want to repeat references sometimes.
8079 * ODT/OpenDocument writer:
8081 + Support `lang` attribute (#1667).
8082 + Added support for `--toc` (#2836). Thanks to @anayrat.
8086 + `lang` meta, see #1667 (Mauro Bieg, #3515).
8087 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
8088 + Use `Table` rather than `Table Normal` for table style (#3275).
8089 `Table Normal` is the default table style and can't be modified.
8090 + Pass through comments (#2994). We assume that comments are defined as
8091 parsed by the docx reader:
8093 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
8094 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
8095 have a comment <span class="comment-end" id="0"></span>on it.
8097 We assume also that the id attributes are unique and properly
8098 matched between comment-start and comment-end.
8099 + Bookmark improvements. Bookmark start/end now surrounds content rather
8100 than preceding it. Bookmarks generated for Div with id
8101 (jgm/pandoc-citeproc#205).
8102 + Add `keywords` metadata to docx document properties (Ian).
8104 * RST writer: support unknown interpreted text roles by
8105 parsing them as `Span` with `role` attributes (#3407). This
8106 way they can be manipulated in the AST.
8110 + Line block: Use class instead of style attribute (#1623). We now
8111 issue `<div class="line-block">` and include a default definition
8112 for `line-block` in the default templates, instead of hard-coding a
8114 + Add class `footnoteBack` to footnote back references (Timm Albers).
8115 This allows for easier CSS styling.
8116 + Render SmallCaps as span with smallcaps class (#1592), rather than
8117 using a style attribute directly. This gives the user more flexibility
8118 in styling small caps in CSS.
8119 + With reveal.js we use `data-src` instead of `src` for images for
8121 + Special-case `.stretch` class for images in reveal.js (#1291).
8122 Now in reveal.js, an image with class `stretch` in a paragraph
8123 by itself will stretch to fill the whole screen, with no
8124 caption or figure environment.
8126 * Added warnings for non-rendered blocks to writers.
8128 * Writers now raise an error on template failure.
8130 * When creating a PDF via LaTeX, warn if the font is missing some
8133 * Remove initial check for PDF-creating program (#3819).
8134 Instead, just try running it and raise the exception if it
8135 isn't found at that point. This improves things for users of Cygwin
8136 on Windows, where the executable won't be found by `findExecutable`
8137 unless `.exe` is added. The same exception is raised as before, but
8140 * Readers issue warning for duplicate header identifiers (#1745).
8141 Autogenerated header identifiers are given suffixes so as not to clash
8142 with previously used header identifiers. But they may still coincide with
8143 an explicit identifier that is given for a header later in the document,
8144 or with an identifier on a div, span, link, or image. We now issue
8145 a warning in this case, so users can supply an explicit identifier.
8147 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
8148 and `raw_html` extensions.
8152 + Don't allow backslash + newline to affect block structure (#3730).
8153 Note that as a result of this change, the following, which formerly
8154 produced a header with two lines separated by a line break, will
8155 now produce a header followed by a paragraph:
8160 This may affect some existing documents that relied on
8161 this undocumented and unintended behavior. This change makes pandoc
8162 more consistent with other Markdown implementations, and with itself
8163 (since the two-space version of a line break doesn't work inside ATX
8164 headers, and neither version works inside Setext headers).
8167 * Org reader (Albert Krewinkel, unless noted):
8169 + Support `table.el` tables (#3314).
8170 + Support macros (#3401).
8171 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
8172 Recognized include types are `example`, `export`, `src`, and
8173 normal org file inclusion. Advanced features like line numbers
8174 and level selection are not implemented yet.
8175 + Interpret more meta value as inlines. The values of the following
8176 meta variables are now interpreted using org-markup instead of
8177 treating them as pure strings: `keywords` (comma-separated list of
8178 inlines), `subtitle` (inline values), `nocite` (inline values, can
8180 + Support `\n` export option (#3940). This turns all newlines in the
8181 text into hard linebreaks.
8185 + Improved admonition support (#223). We no longer add an
8186 `admonition` class, we just use the class for the type of admonition,
8187 `note` for example. We put the word corresponding to the label in
8188 a paragraph inside a `Div` at the beginning of the admonition with
8189 class `admonition-title`. This is about as close as we can get to
8191 + Initial support of `.. table` directive. This allows adding captions
8193 + Support `.. line-block` directive. This is deprecated but may still
8194 be in older documents.
8195 + Support scale and align attributes of images (#2662).
8196 + Implemented implicit internal header links (#3475).
8197 + Support RST-style citations (#853). The citations appear at the end
8198 of the document as a definition list in a special div with id
8199 `citations`. Citations link to the definitions.
8200 + Recurse into bodies of unknown directives (#3432).
8201 In most cases it's better to preserve the content than
8202 to emit it. This isn't guaranteed to have good results;
8203 it will fail spectacularly for unknown raw or verbatim directives.
8204 + Handle chained link definitions (#262). For example,
8207 .. _goodbye: example.com
8209 Here both `hello` and `goodbye` should link to `example.com`.
8210 + Support anchors (#262). E.g.
8218 This is supported by putting "paragraph" in a `Div` with id `hello`.
8219 + Support `:widths:` attribute for table directive.
8220 + Implement csv-table directive (#3533). Most attributes are supported,
8221 including `:file:` and `:url:`.
8222 + Support unknown interpreted text roles by parsing them as Span
8223 with "role" attributes (#3407). This way they can be manipulated in
8226 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
8230 + Implemented `\graphicspath` (#736).
8231 + Properly handle column prefixes/suffixes. For example, in
8232 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
8233 each cell will be interpreted as if it has a `$`
8234 before its content and a `$` after (math mode).
8235 + Handle komascript `\dedication` (#1845). It now adds a
8236 `dedication` field to metadata. It is up to the user to supply
8237 a template that uses this variable.
8238 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
8239 `sf`, `bf` (#3488). Spans with a class are used when there is
8241 + Expand `\newenvironment` macros (#987).
8242 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
8243 + Better support for subfigure package (#3577).
8244 A figure with two subfigures turns into two pandoc
8245 figures; the subcaptions are used and the main caption
8246 ignored, unless there are no subcaptions.
8247 + Add support for `\vdots` (Marc Schreiber, #3607).
8248 + Add basic support for hyphenat package (Marc Schreiber, #3603).
8249 + Add basic `\textcolor` support (Marc Schreiber).
8250 + Add support for `tabularx` environment (Marc Schreiber, #3632).
8251 + Better handling of comments inside math environments (#3113).
8252 This solves a problem with commented out `\end{eqnarray}` inside
8253 an eqnarray (among other things).
8254 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
8255 is selected (#3692). Otherwise skip with a warning. This is better
8256 than trying to parse it as text!
8257 + Add `\colorbox` support (Marc Schreiber).
8258 + Set identifiers on Spans used for `\label`.
8259 + Have `\setmainlanguage` set `lang` in metadata.
8260 + Support etoolbox's `\ifstrequal`.
8261 + Support `plainbreak`, `fancybreak` et al from the memoir class
8262 (bucklereed, #3833).
8263 + Support `\let`. Also, fix regular macros so they're expanded at the
8264 point of use, and NOT also the point of definition. `\let` macros,
8265 by contrast, are expanded at the point of definition. Added an
8266 `ExpansionPoint` field to `Macro` to track this difference.
8267 + Support simple `\def` macros. Note that we still don't support
8268 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
8269 + Support `\chaptername`, `\partname`, `\abstractname`, etc. (#3559,
8271 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
8272 attributes, so they can be handled in filters (Marc Schreiber, #3639)
8273 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
8274 #3589). Acronyms are not resolved by the reader, but acronym and
8275 glossary information is put into attributes on Spans so that they
8276 can be processed in filters.
8277 + Use `Link` instead of `Span` for `\ref`. This makes more sense
8278 semantically and avoids unnecessary `Span [Link]` nestings when
8279 references are resolved.
8280 + Rudimentary support for `\hyperlink`.
8281 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
8282 + Support `\lq`, `\rq`.
8283 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
8285 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
8286 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
8287 + Support `\k` ogonek accent.
8288 + Improve handling of accents. Handle ogonek, and fall back correctly
8289 with forms like `\"{}`.
8290 + Better support for ogonek accents.
8291 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
8292 + Support for `xspace` (Marc Schreiber, #3797).
8293 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
8295 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
8296 level 0 headers, and parts as level -1 headers. After parsing, we
8297 check for the lowest header level, and if it's less than 1 we bump
8298 everything up so that 1 is the lowest header level. So `\part` will
8299 always produce a header; no command-line options are needed.
8300 + Add block version of `\textcolor` (Marc Schreiber).
8301 + `\textcolor` works as inline and block command (Marc Schreiber).
8302 + `\textcolor` will be parse as span at the beginning of a paragraph
8304 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
8305 + Improved handling of include files in LaTeX reader (#3971).
8306 Previously `\include` wouldn't work if the included file
8307 contained, e.g., a begin without a matching end.
8308 + Support `\expandafter` (#3983).
8309 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
8310 as a synonym for `\newcommand`.
8311 + Handle `\lettrine` (Mauro Bieg).
8313 * Math improvements due to updates in texmath:
8315 + Improved handling of accents and upper/lower delimiters.
8316 + Support for output in GNU eqn format (used with *roff).
8317 + Allow `\boldsymbol` + a token without braces, and similarly
8318 with other styling commands.
8319 + Improve parsing of `\mathop` to allow multi-character operator names.
8320 + Add thin space after math operators when "faking it with
8323 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
8324 instance for `a -> [a]` (pandoc-types). Note that behavior
8325 will be slightly different, since `bottomUp`'s treatment of
8326 a function `[a] -> [a]` is to apply it to each sublist of a
8327 list, while walk applies it only to maximal sublists.
8328 Usually the latter behavior is what is wanted, and the
8329 former can be simulated when needed. But there may be
8330 existing filters that need to be rewritten in light of the
8331 new behavior. Performance should be improved.
8333 * There are some changes to syntax highlighting due to revisions
8334 in the `skylighting` library:
8336 + Support for `powershell` has been added, and many syntax
8337 definitions have been updated.
8338 + Background colors have been added to the `kate` style.
8339 + The way highlighted code blocks are formatted in HTML has
8340 been changed (David Baynard), in ways that may require
8341 changes in hard-coded CSS affecting highlighting.
8342 (If you haven't included hard-coded highlighting CSS in
8343 your template, you needn't change anything.)
8348 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
8349 This contains definitions of the `PandocMonad` typeclass, the
8350 `PandocIO` and `PandocPure` monads, and associated functions.
8352 * Changed types of all writers and readers.
8354 + We now use `Text` instead of `String` in the interface (#3731).
8355 (We have not yet changed the internals of most readers to work
8356 with `Text`, but making this change in the API now opens up a
8357 path to doing that.)
8358 + The result is now of form `m a` with constraint `PandocMonad m`.
8359 Readers and writers can be combined to form monadic values which
8360 can be run using either `runIO` or `runPure`. If `runIO` is used,
8361 then both readers and writers will be able to do IO when needed
8362 (for include files, for example); if `runPure` is used,
8363 then the functions are pure and will not touch IO.
8364 + Where previously you used
8365 `writeRST def (readMarkdown def "[foo](url)")`, now you
8367 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
8369 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
8370 contains reader helper functions formerly defined in the
8371 top-level `Text.Pandoc` module.
8373 + Changed `StringReader` -> `TextReader`.
8374 + `getReader` now returns a pair of a reader and
8375 `Extensions`, instead of building the extensions into the
8376 reader (#3659). The calling code must explicitly set
8377 `readerExtensions` using the `Extensions` returned. The
8378 point of the change is to make it possible for the calling
8379 code to determine what extensions are being used.
8381 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
8382 This contains writer helper functions formerly defined in the
8383 top-level `Text.Pandoc` module.
8385 + Changed `StringWriter` -> `TextWriter`.
8386 + `getWriter` now returns a pair of a reader and
8387 `Extensions`, instead of building the extensions into the
8388 reader (#3659). The calling code must explicitly set
8389 `readerExtensions` using the `Extensions` returned. The
8390 point of the change is to make it possible for the calling
8391 code to determine what extensions are being used.
8393 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
8396 * New module `Text.Pandoc.App`. This abstracts out the functionality
8397 of the command line program (`convertWithOpts`), so it can be reproduced
8398 e.g. in a desktop or web application. Instead of exiting, we throw errors
8399 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
8400 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
8401 The module also exports some utility functions for parsing options
8402 and running filters.
8404 * New module `Text.Pandoc.Logging` (exported module) (#3392).
8405 This now contains the `Verbosity` definition previously in
8406 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
8407 eventually be used instead of raw strings for warnings. This will enable
8408 us, among other things, to provide machine-readable warnings if desired.
8409 Include ToJSON instance and showLogMessage. This gives us the possibility
8410 of both machine-readable and human-readable output for log messages.
8412 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
8414 * New module `Text.Pandoc.Translations`, exporting `Term`,
8415 `Translations`, `readTranslations`.
8417 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
8418 `TokType`, `Line`, `Column`.
8420 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
8422 * Expose some previously private modules (#3260). These are often
8423 helpful to people writing their own reader or writer modules:
8425 + `Text.Pandoc.Writers.Shared`
8426 + `Text.Pandoc.Parsing`
8427 + `Text.Pandoc.Asciify`
8428 + `Text.Pandoc.Emoji`
8429 + `Text.Pandoc.ImageSize`
8430 + `Text.Pandoc.Highlighting`
8432 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
8433 Extension parsing and processing functions were defined in the top-level
8434 `Text.Pandoc` module. These functions are moved to the Extensions
8435 submodule as to enable reuse in other submodules.
8437 * Add `Ext_raw_attribute` constructor for `Extension`.
8439 * Add `Ext_fenced_divs` constructor for `Extension'.
8441 * Add `Ext_four_space_rule` constructor in `Extension`.
8443 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
8445 * Add `Monoid` instance for `Extensions`.
8447 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
8449 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
8451 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
8453 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
8455 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
8457 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
8459 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
8461 * Export `setVerbosity` from `Text.Pandoc`.
8463 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
8465 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
8467 * `Text.Pandoc.UTF8`:
8469 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
8470 Define `toString`, `toStringLazy` in terms of them.
8471 + Add new functions parameterized on `Newline`: `writeFileWith`,
8472 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
8474 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
8476 * `Text.Pandoc.Highlighting`:
8478 + `highlighting` now returns an Either rather than Maybe.
8479 This allows us to display error information returned by the skylighting
8480 library. Display a warning if the highlighting library throws an error.
8481 + Add parameter for `SyntaxMap` to `highlight`.
8483 * `Text.Pandoc.Writers.Math`:
8485 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
8486 we only need to update these in one place.
8488 * `Text.Pandoc.SelfContained`:
8490 + Removed `WriterOptions` parameter from `makeSelfContained`.
8491 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
8492 the need to pass MediaBag around and improves exceptions. It also
8493 opens up the possibility of using makeSelfContained purely.
8494 + Export `makeDataURI`.
8496 * `Text.Pandoc.ImageSize`:
8498 + Export `lengthToDim`, new function `scaleDimension`.
8499 + Export `inEm` from ImageSize (#3450).
8500 + Change `showFl` and `show` instance for `Dimension` so
8501 extra decimal places are omitted.
8502 + Added `Em` as a constructor of `Dimension`.
8503 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
8505 * `Text.Pandoc.Templates`:
8507 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
8508 and raises a proper `PandocTemplateError` if there are problems, rather
8509 than failing with uncatchable `error`.
8510 + Change signature of `getDefaultTemplate`. Now it runs in any instance
8511 of `PandocMonad`, and returns a `String` rather than an `Either` value.
8512 And it no longer takes a `datadir` parameter, since this can be
8513 retrieved from `CommonState`.
8515 * `Text.Pandoc.Options`:
8517 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
8518 The EPUB writer now takes its EPUB subdirectory from this option.
8519 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
8520 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
8521 + Add `writerSyntaxMap` to `WriterOptions`.
8522 + Removed `writerEpubStylesheet` from `WriterOptions`.
8523 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
8524 in `CommonState` in `PandocMonad` instances. (And thus it can be used
8526 + Changed `writerEpubMetadata` to a `Maybe String`.
8527 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
8528 the `latex_macros` reader extension.
8529 + FromJSON/ToJSON instances for `ReaderOptions`.
8530 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
8531 one string (for the KaTeX base URL), rather than two.
8532 + Removed `writerSourceURL` from `WriterOptions`. We now use
8533 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
8535 * `Text.Pandoc.Shared`:
8537 + `tabFilter` now takes a `Text`, not `String`.
8538 + `openURL`: Changed type from an Either. Now it will just raise
8539 an exception to be trapped later.
8540 + Remove `normalizeSpaces` (#1530).
8541 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
8542 + Export a new function `crFilter`.
8543 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
8544 + Provide custom `isURI` that rejects unknown schemes.
8545 (Albert Krewinkel, #2713). We also export the set of known
8546 `schemes`. The new function replaces the function of the same name
8547 from `Network.URI`, as the latter did not check whether a scheme is
8548 well-known. All official IANA schemes (as of 2017-05-22) are
8549 included in the set of known schemes. The four non-official schemes
8550 `doi`, `isbn`, `javascript`, and `pmid` are kept.
8552 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
8553 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
8554 where they are defined in terms of `PandocMonad`
8555 primitives and have different signatures.
8556 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
8557 + Add `underlineSpan`.
8559 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
8561 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
8562 With the new API one can simply use `getLog` after running
8565 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
8566 and `rawLaTeXBlock`. (Both now return a `String`, and they are
8567 polymorphic in state.)
8570### Bug fixes and under-the-hood improvements
8572 * TEI writer: Added identifiers on `<div>` elements.
8574 * DokuWiki reader: Better handling for code block in list item (#3824).
8576 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
8578 * ZimWiki writer: Removed internal formatting from note and table cells,
8579 because ZimWiki does not support it (Alex Ivkin, #3446).
8583 + Updated list of syntax highlighting languages (#3461).
8584 Now `r` gets you `<source>` rather than `<code>` (among others).
8585 + Add display attribute on `<math>` tags (#3452). This allows display
8586 math to be rendered properly.
8587 + Remove newline before `</ref>` (#2652).
8588 + Don't softbreak lines inside list items (#3531).
8592 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
8593 + Add unit tests (Alexander Krotov).
8594 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
8595 + Do not strip `#` from Org anchor links (Alexander Krotov).
8597 * CommonMark writer:
8599 + Avoid excess blank lines at end of output.
8600 + Prefer pipe tables to HTML tables even if it means losing relative
8601 column width information (#3734).
8602 + Support table, strikethrough extensions, when enabled (as with gfm).
8603 Note that we bypass the commonmark writer from cmark and construct our
8604 own pipe tables, with better results.
8605 + Properly support `--wrap=none`.
8606 + Use smallcaps class for `SmallCaps` (#1592).
8607 + Omit "fig:" prefix in image titles. This is used internally to
8608 indicate internal figures.
8612 + Properly handle table captions.
8613 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
8614 + Implemented `+/-smart` and improved escaping with `+smart`.
8615 + Add empty comments when needed to avoid including a blockquote
8616 in the indented content of a preceding block (#3675).
8617 + Improve grid table output, fix bug with empty rows (#3516).
8618 Uses the new `gridTable` in Writers.Shared, which is here
8619 improved to better handle 0-width cells.
8620 + Remove space at beginning/end of RST code span (#3496). Otherwise
8621 we get invalid RST. There seems to be no way to escape the space.
8622 + Add header anchors when header has non-standard id (#3937).
8623 + Correctly handle inline code containing backticks, using a `:literal:`
8625 + Don't backslash-escape word-internal punctuation (#3978).
8629 + Don't include variables in metadata blocks. Previously variables set
8630 on the command line were included in e.g. YAML metadata, contrary to
8631 documentation and intentions.
8632 + Improved escaping with `+smart`.
8633 + Fixed grid tables embedded in grid tables (#2834).
8634 + Use span with class 'smallcaps' for SmallCaps, instead of a style
8635 attribute as before (#1592).
8636 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
8637 extension is enabled (#3454). Otherwise in a document starting with
8638 a literal `%` the first line is wrongly interpreted as a title.
8639 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
8640 properly escape things that would otherwise start ordered lists,
8646 + Better handling of tables with empty columns (#3337). We now
8647 calculate the number of columns based on the longest row (or the
8648 length of aligns or widths).
8649 + Escape unordered list markers at beginning of paragraph (#3497), to
8650 avoid false interpretation as a list.
8651 + Escape `|` appropriately.
8652 + Ensure space before list at top level (#3487).
8653 + Avoid spurious blanklines at end of document after tables and list,
8655 + Fixed bugs in simple/multiline list output (#3384).
8656 Previously we got overlong lists with `--wrap=none`. This is fixed.
8657 Previously a multiline list could become a simple list (and would
8658 always become one with `--wrap=none`).
8659 + Don't emit a simple table if `simple_tables` disabled (#3529).
8660 + Case-insensitive reference links (David A Roberts, #3616).
8661 Ensure that we do not generate reference links whose labels differ only
8662 by case. Also allow implicit reference links when the link
8663 text and label are identical up to case.
8664 + Put space before reference link definitions (Mauro Bieg, #3630).
8665 + Better escaping for links (David A. Roberts, #3619). Previously the
8666 Markdown writer would sometimes create links where there were none
8667 in the source. This is now avoided by selectively escaping bracket
8668 characters when they occur in a place where a link might be created.
8669 + Added missing `\n` (David A. Roberts, #3647).
8670 + Fixed duplicated reference links with `--reference-links`
8671 and `--reference-location=section` (#3674). Also ensure that there
8672 are no empty link references `[]`.
8673 + Avoid inline surround-marking with empty content (#3715).
8674 E.g. we don't want `<strong></strong>` to become `****`.
8675 Similarly for emphasis, super/subscript, strikeout.
8676 + Don't allow soft break in header (#3736).
8677 + Make sure `plain`, `markdown_github`, etc. work for raw.
8678 Previously only `markdown` worked. Note: currently a raw block labeled
8679 `markdown_github` will be printed for any `markdown` format.
8680 + Ensure that `+` and `-` are escaped properly so they don't cause
8681 spurious lists (#3773). Previously they were only
8682 if succeeded by a space, not if they were at end of line.
8683 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
8684 even if the table has relative width information (#3734).
8685 + Markdown writer: don't crash on `Str ""`.
8686 + Make `Span` with null attribute transparent. That is, we don't use
8687 brackets or `<span>` tags to mark spans when there are no attributes;
8688 we simply output the contents.
8689 + Escape pipe characters when `pipe_tables` enabled (#3887).
8690 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
8691 we backslash escape these. Otherwise we use entities as before.
8692 + When writing plain, don't use ` ` to separate list and indented
8693 code. There's no need for it in this context, since this isn't to be
8694 interpreted using Markdown rules.
8695 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
8696 HTML links containing classes originally now preserve them when using
8697 javascript email obfuscation.
8698 + Render `SmallCaps` as a native span when `native_spans` are enabled.
8699 + Always write attributes with `bracketed_spans` (d-dorazio).
8703 + Fix handling of nested font commands (#3568). Previously pandoc emitted
8704 incorrect markup for bold + italic, for example, or bold + code.
8705 + Avoid error for definition lists with no definitions (#3832).
8709 + Fix internal links with `writerIdentifierPrefix opt`
8710 (#3397, Mauro Bieg).
8714 + Don't include bookmarks on headers unless non-null id (#3476).
8715 + Support 9 levels of headers (#1642).
8716 + Allow 9 list levels (#3519).
8717 + Don't take `distArchive` from datadir (#3322). The docx writer takes
8718 components from the distribution's version of `reference.docx` when it
8719 can't find them in a user's custom `reference.docx`. Previously, we
8720 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
8721 to be used as the distribution's reference.docx. This led to a
8722 bizarre situation where pandoc would produce a good docx using
8723 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
8724 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
8725 + Fixed handling of soft hyphen (0173) (#3691).
8726 + Better handling of keywords (#3719).
8727 + Cleaner code for handling dir and style attributes for `Div`.
8728 + Use `Set` for dynamic styles to avoid duplicates.
8729 + Removed redundant element from data/docx/word/numbering.xml.
8730 The elements we need are generated when the document is
8731 compiled; this didn't do anything.
8732 + Activate `evenAndOddHeaders` from reference docx (#3901,
8733 Augustín Martín Barbero).
8735 * ODT/OpenDocument writer:
8737 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
8738 + Use more widely available bullet characters (#1400). The old
8739 characters weren't available in some font sets. These seem to work
8740 well on Windows and Linux versions of LibreOffice.
8741 + Wider labels for lists (#2421). This avoids overly narrow labels for
8742 ordered lists with `()` delimiters. However, arguably it creates
8743 overly wide labels for bullets. Also, lists now start flush with
8744 the margin, rather than indented.
8745 + Fixed dropped elements in some ordered lists (#2434).
8749 + Don't render `RawBlock` as code.
8750 + Don't fail with an error on interior headers (e.g. in list) (#3750).
8751 Instead, omit them with an INFO message.
8752 + Add support for "lang" metadata (Alexander Krotov, #3625).
8753 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
8754 produced one paragraph with `<empty-line/>` elements, which are not
8755 allowed inside `<p>` according to FB2 schema.
8756 + Replace `concatMap` with `cMap` (Alexander Krotov).
8757 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
8762 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
8763 + Render raw inline environments when `--mathjax` used (#3816).
8764 We previously did this only with raw blocks, on the assumption
8765 that math environments would always be raw blocks. This has changed
8766 since we now parse them as inline environments.
8767 + Ensure we don't get two style attributes for width and height.
8768 + Report when not rendering raw inline/block.
8769 + Issue warning if no title specified and template used (#3473).
8770 + Info message if `lang` is unspecified (#3486).
8771 + Removed unused parameter in `dimensionsToAttributeList`.
8772 + Avoid two class attributes when adding `uri` class (#3716).
8773 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
8775 + Use revealjs's math plugin for mathjax (#3743). This is a thin
8776 wrapper around mathjax that makes math look better on revealjs.
8777 + Slidy: use h1 for all slides, even if they were originally
8778 level 2 headers (#3566). Otherwise the built-in table of contents
8783 + Don't render LaTeX images with data: URIs (#3636). Note that
8784 `--extract-media` can be used when the input contains data: URIs.
8785 + Make highlighted code blocks work in footnotes (Timm Albers).
8786 + Don't use figure inside table cell (#3836).
8787 + Use proper code for list enumerators (#3891). This should fix problems
8788 with lists that don't use arabic numerals.
8789 + Always add hypertarget when there's a non-empty identifier (#2719).
8790 Previously the hypertargets were only added when there was actually
8791 a link to that identifier.
8792 + Use `%` after hypertarget before code block.
8793 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
8794 fixes formatting problems in beamer citations).
8795 + Don't use `lstinline` in `\item[..]` (#645). If you do, the contents
8796 of item disappear or are misplaced. Use `\texttt` instead.
8797 + Fix problem with escaping in `lstinline` (#1629). Previously the
8798 LaTeX writer created invalid LaTeX when `--listings` was specified and
8799 a code span occurred inside emphasis or another construction.
8800 + Fix error with line breaks after empty content (#2874). LaTeX
8801 requires something before a line break, so we insert a `~` if no
8802 printable content has yet been emitted.
8804 + Fixed detection of otherlangs (#3770). We weren't recursing into
8806 + Handle language in inline code with `--listings` (#3422).
8807 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
8808 The textcomp package allows pdfLaTeX to parse `€` directly, making the
8809 `\euro` command unneeded.
8810 + Fixed footnotes in table captions (#2378). Note that if the table has
8811 a first page header and a continuation page header, the notes will
8812 appear only on the first occurrence of the header.
8813 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
8814 Previously you could link to a header above or below slide level but
8815 not *to* slide level. This commit changes that. Hypertargets are
8816 inserted inside frame titles; technically the reference is to just
8817 after the title, but in normal use (where slides are viewed full
8818 screen in a slide show), this does not matter.
8819 + Remove `\strut` at beginning of table cells (#3436). This fixes a
8820 problem with alignment of lists in table cells. The `\strut` at the
8821 end seems to be enough to avoid the too-close spacing that motivated
8822 addition of the strut in #1573.
8823 + Add partial siunitx Support (Marc Schreiber, #3588).
8827 + Refactored to use BCP47 module.
8828 + Remove unnecessary `$` (Alexander Krotov, #3482).
8829 + Use header identifiers for chapters (#3968).
8833 + `title_page.xhtml` is now put in `text/`.
8834 + Don't strip formatting in TOC (#1611).
8838 + Fix bug for certain links in table cells (#3667).
8839 + Allow 'pre' code in list item (#3916).
8843 + Added warnings for ignored material (#3392).
8844 + Better sanity checks to avoid parsing unintended things as
8845 raw HTML in the Markdown reader (#3257).
8846 + Revise treatment of `li` with `id` attribute (#3596). Previously we
8847 always added an empty div before the list item, but this created
8848 problems with spacing in tight lists. Now we do this: If the list
8849 item contents begin with a `Plain` block, we modify the `Plain`
8850 block by adding a `Span` around its contents. Otherwise, we add a
8851 `Div` around the contents of the list item (instead of adding an
8852 empty `Div` to the beginning, as before).
8853 + Add `details` tag to list of block tags (#3694).
8854 + Removed `button` from block tag list (#3717). It is already in the
8855 `eitherBlockOrInlineTag` list, and should be both places.
8856 + Use `Set`s instead of lists for block tag lookup.
8857 + Rewrote to use `Text` throughout. Effect on memory usage is modest
8859 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
8861 + Ensure that paragraphs are closed properly when the parent block
8862 element closes, even without `</p>` (#3794).
8863 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
8864 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
8865 `<main>` closes `<p>` and behaves like a block element generally
8866 + Support column alignments (#1881). These can be set either
8867 with a `width` attribute or with `text-width` in a `style` attribute.
8868 + Modified state type to be an instance of `HasLogMessages`, so
8869 `registerHeader` can issue warnings.
8870 + `</td>` or `</th>` should close any open block tag (#3991).
8871 + `<td>` should close an open `<th>` or `<td>`.
8872 + `htmlTag` improvements (#3989). We previously failed on cases
8873 where an attribute contained a `>` character. This patch fixes the
8874 bug, which especially affects raw HTML in Markdown.
8878 + Newline is not indentation (Alexander Krotov).
8882 + Allow extra hyphens after `|-` in tables (#2649).
8883 + Allow blank line after table start (#2649).
8884 + Fixed more table issues (#2649).
8885 + Ensure that list starts begin at left margin (#2606). Including when
8886 they're in tables or other list items.
8887 + Make smart double quotes depend on `smart` extension (#3585).
8888 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
8889 + Modified state type to be an instance of `HasLogMessages`, so
8890 `registerHeader` can issue warnings.
8892 * TWiki reader (Alexander Krotov):
8894 + Remove unnecessary `$` (#3597).
8895 + Simplify `linkText` (#3605).
8899 + Minor refactoring, avoiding explicit MediaBag handling.
8900 This all works behind the scenes in CommonState plumbing.
8904 + Don't drop smartTag contents (#2242).
8905 + Handle local namespace declarations (#3365). Previously we didn't
8906 recognize math, for example, when the xmlns declaration occurred on
8907 the element and not the root.
8908 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
8909 does the work of `normalizeSpaces` as well, so we avoid the need for
8911 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
8912 paragraphs styled with "HeadingN" as "nth-level header." But if a
8913 document has a custom style named "Heading0", this will produce a
8914 0-level header, which shouldn't exist. We only parse this style
8915 if N>0. Otherwise we treat it as a normal style name, and
8916 follow its dependencies, if any.
8917 + Add tests for avoiding zero-level header (Jesse Rosenthal).
8921 + Replaced `collectRights` with Rights from `Data.Either`.
8922 + Remove dead code (Albert Krewinkel).
8924 * Org reader (Albert Krewinkel, unless noted).
8926 + Don't allow tables inside list items (John MacFarlane, #3499).
8927 + Disallow tables on list marker lines (#3499).
8928 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
8929 + Allow emphasized text to be followed by `[` (#3577).
8930 + Handle line numbering switch for src blocks.
8931 The line-numbering switch that can be given to source blocks (`-n` with
8932 an start number as an optional parameter) is parsed and translated to a
8933 class/key-value combination used by highlighting and other readers and
8935 + Stop adding rundoc prefix to src params. Source block parameter names
8936 are no longer prefixed with `rundoc`. This was intended to simplify
8937 working with the rundoc project, a babel runner. However, the rundoc
8938 project is unmaintained, and adding those markers is not the reader's
8939 job anyway. The original language that is specified for a source
8940 element is now retained as the `data-org-language` attribute and only
8941 added if it differs from the translated language.
8942 + Allow multi-word arguments to src block params (#3477). The reader now
8943 correctly parses src block parameter list even if parameter arguments
8944 contain multiple words.
8945 + Avoid creating `nullMeta` by applying `setMeta` directly
8947 + Replace `sequence . map` with `mapM`.
8948 + Fix smart parsing behavior. Parsing of smart quotes and special
8949 characters can either be enabled via the `smart` language extension or
8950 the `'` and `-` export options. Smart parsing is active if either the
8951 extension or export option is enabled. Only smart parsing of special
8952 characters (like ellipses and en and em dashes) is enabled by default,
8953 while smart quotes are disabled. Previously, all smart parsing was
8954 disabled unless the language extension was enabled.
8955 + Subject full doc tree to headline transformations (Albert Krewinkel,
8956 #3695). Emacs parses org documents into a tree structure, which is
8957 then post-processed during exporting. The reader is changed to do the
8958 same, turning the document into a single tree of headlines starting
8960 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
8961 cite keys included special characters also at the end. This caused
8962 problems when citations occur right before colons or at the end of
8963 a sentence. With this change, all non alphanumeric characters at
8964 the end of a cite key are ignored. This also adds `,` to the list
8965 of special characters that are legal in cite keys to better mirror
8966 the behaviour of org-export.
8967 + Fix module names in haddock comments. Copy-pasting had lead to
8968 haddock module descriptions containing the wrong module names.
8969 + Recognize babel result blocks with attributes (#3706). Babel
8970 result blocks can have block attributes like captions and names.
8971 Result blocks with attributes were not recognized and were parsed
8972 as normal blocks without attributes.
8973 + Include tags in headlines. The Emacs default is to include tags in the
8974 headline when exporting. Instead of just empty spans, which contain the
8975 tag name as attribute, tags are rendered as small caps and wrapped in
8976 those spans. Non-breaking spaces serve as separators for multiple tags.
8977 + Respect export option for tags (#3713). Tags are appended to
8978 headlines by default, but will be omitted when the `tags` export option
8980 + Use `tag-name` attribute instead of `data-tag-name`.
8981 + Use `org-language` attribute rather than `data-org-language`.
8982 + Modified state type to be an instance of `HasLogMessages`, so
8983 `registerHeader` can issue warnings.
8984 + End footnotes after two blank lines. Footnotes can not only be
8985 terminated by the start of a new footnote or a header, but also by two
8986 consecutive blank lines.
8987 + Update emphasis border chars (#3933). The org reader was updated to
8988 match current org-mode behavior: the set of characters which are
8989 acceptable to occur as the first or last character in an org emphasis
8990 have been changed and now allows all non-whitespace chars at the
8991 inner border of emphasized text (see `org-emphasis-regexp-components`).
8995 + Fixed small bug in list parsing (#3432). Previously the parser didn't
8996 handle properly this case:
9002 + Handle multiline cells in simple tables (#1166).
9003 + Parse list table directive (Keiichiro Shikano, #3432).
9004 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
9005 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
9006 + Reorganize block parsers for ~20% faster parsing.
9007 + Fixed `..include::` directive (#3880).
9008 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
9009 Previously pandoc would sometimes combine two line blocks separated
9010 by blanks, and ignore trailing blank lines within the line block.
9011 + Fix indirect hyperlink targets (#512).
9015 + Allow attributes in reference links to start on next line (#3674).
9016 + Parse YAML metadata in a context that sees footnotes defined in
9017 the body of the document (#1279).
9018 + When splitting pipe table cells, skip tex math (#3481).
9019 You might have a `|` character inside math. (Or for that matter
9020 something that the parser might mistake for raw HTML.)
9021 + Treat span with class `smallcaps` as SmallCaps.
9022 This allows users to specify small caps in Markdown this way:
9023 `[my text]{.smallcaps}` (#1592).
9024 + Fixed internal header links (#2397).
9025 This patch also adds `shortcut_reference_links` to the list
9027 + Treat certain environments as inline
9028 when they occur without space surrounding them (#3309, #2171).
9029 E.g. equation, math. This avoids incorrect vertical space
9031 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
9032 + Allow latex macro definitions indented 1-3 spaces.
9033 Previously they only worked if nonindented.
9034 + Improved parsing of indented raw HTML blocks (#1841).
9035 Previously we inadvertently interpreted indented HTML as
9036 code blocks. This was a regression. We now seek to determine the
9037 indentation level of the contents of an HTML block, and (optionally)
9038 skip that much indentation. As a side effect, indentation may be
9039 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
9040 used. This is better than having things interpreted as indented
9042 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
9043 + Warn for notes defined but not used (#1718).
9044 + Use `anyLineNewline` (Alexander Krotov).
9045 + Interpret YAML metadata as Inlines when possible (#3755). If
9046 the metadata field is all on one line, we try to interpret it as
9047 Inlines, and only try parsing as Blocks if that fails. If it
9048 extends over one line (including possibly the `|` or `>` character
9049 signaling an indented block), then we parse as Blocks. This was
9050 motivated by some German users finding that `date: '22. Juin 2017'`
9051 got parsed as an ordered list.
9052 + Fixed spurious parsing as citation as reference def (#3840).
9053 We now disallow reference keys starting with `@` if the
9054 `citations` extension is enabled.
9055 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
9056 Previously only `[-@roe]` (with brackets) was recognized as
9057 suppress-author, and `-@roe` was treated the same as `@roe`.
9058 + Fixed parsing of fenced code after list when there is no intervening
9060 + Allow raw latex commands starting with `\start` (#3558). Previously
9061 these weren't allowed because they were interpreted as starting
9062 ConTeXt environments, even without a corresponding `\stop`...
9063 + Added `inlines`, `inlines1`.
9064 + Require nonempty alt text for `implicit_figures` (#2844).
9065 A figure with an empty caption doesn't make sense.
9066 + Removed texmath macro material; now all this is handled
9067 in the LaTeX reader functions.
9068 + Fixed bug with indented code following raw LaTeX (#3947).
9072 + Rewrote LaTeX reader with proper tokenization (#1390,
9073 #2118, #3236, #3779, #934, #982). This rewrite is primarily
9074 motivated by the need to get macros working properly. A side benefit
9075 is that the reader is significantly faster. We now tokenize the
9076 input text, then parse the token stream. Macros modify the token
9077 stream, so they should now be effective in any context, including
9078 math. Thus, we no longer need the clunky macro processing
9079 capacities of texmath.
9080 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
9081 + Allow `\newcommand\foo{blah}` without braces.
9082 + Support `\lstinputlisting` (#2116).
9083 + Issue warnings when skipping unknown latex commands (#3392).
9084 + Include contents of `\parbox`.
9085 + Allow `\hspace` and `\vspace` to count as raw block or inline.
9086 Previously we would refuse to parse anything as raw inline if
9087 it was in the `blockCommands` list. Now we allow exceptions
9088 if they're listed under ignoreInlines in inlineCommands.
9089 This should make it easier e.g. to include an `\hspace`
9090 between two side-by-side raw LaTeX tables.
9091 + Don't drop contents of `\hypertarget`.
9092 + Handle spaces before `\cite` arguments.
9093 + Allow newpage, clearpage, pagebreak in inline contexts as well as
9094 block contexts (#3494).
9095 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
9096 + Use `pMacroDefinition` in macro (for more direct parsing).
9097 Note that this means that `macro` will now parse one
9098 macro at a time, rather than parsing a whole group together.
9099 + Fixed failures on `\ref{}`, `\label{}` with `+raw_tex`. Now these
9100 commands are parsed as raw if `+raw_tex`; otherwise, their argument
9101 is parsed as a bracketed string.
9102 + Don't crash on empty `enumerate` environment (#3707).
9103 + Handle escaped `&` inside table cell (#3708).
9104 + Handle block structure inside table cells (#3709). `minipage` is no
9106 + Handle some width specifiers on table columns (#3709). Currently
9107 we only handle the form `0.9\linewidth`. Anything else would have
9108 to be converted to a percentage, using some kind arbitrary assumptions
9110 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
9111 LaTeX reader's treatment of raw commands, but it also affects the
9113 + Fixed regression with starred environment names (#3803).
9114 + Handle optional args in raw `\titleformat` (#3804).
9115 + Improved heuristic for raw block/inline. An unknown command at the
9116 beginning of the line that could be either block or inline is
9117 treated as block if we have a sequence of block commands followed by
9118 a newline or a `\startXXX` command (which might start a raw ConTeXt
9120 + Don't remove macro definitions from the output, even if
9121 `Ext_latex_macros` is set, so that macros will be applied.
9122 Since they're only applied to math in Markdown, removing the macros
9123 can have bad effects. Even for math macros, keeping them should be
9125 + Removed `macro`. It is no longer necessary, since the
9126 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
9127 the need for a separate `latexMacro` parser in the Markdown reader.
9128 + Use `label` instead of `data-label` for label in caption (#3639).
9129 + Fixed space after `\figurename` etc.
9130 + Resolve references to section numbers.
9131 + Fix `\let\a=0` case, with single character token.
9132 + Allow `@` as a letter in control sequences. `@` is commonly used
9133 in macros using `\makeatletter`. Ideally we'd make the tokenizer
9134 sensitive to `\makeatletter` and `\makeatother`, but until then this
9135 seems a good change.
9136 + Track header numbers and correlate with labels.
9137 + Allow `]` inside group in option brackets (#3857).
9138 + lstinline with braces can be used (verb cannot be used with braces)
9139 (Marc Schreiber, #3535).
9140 + Fix keyval function: pandoc did not parse options in braces correctly
9141 (Marc Schreiber, #3642).
9142 + When parsing raw LaTeX commands, include trailing space (#1773).
9143 Otherwise things like `\noindent foo` break and turn into
9144 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
9145 formats that allow `raw_tex`).
9146 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
9148 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
9149 + Allow space before `=` in bracketd options (Ben Firshman).
9150 + Be more forgiving in parsing command options. This was needed, for
9151 example, to make some minted options work.
9152 + Strip off quotes in `\include` filenames.
9154 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
9156 * `Text.Pandoc.PDF`:
9158 + Got `--resource-path` working with PDF output (#852).
9159 + Fetch images when generating PDF via context (#3380).
9160 To do this, we create the temp directory as a subdirectory
9161 of the working directory. Since context mk IV by default looks
9162 for images in the parent directory, this works.
9163 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
9164 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
9165 This reduces code duplication.
9166 + `html2pdf`: use stdin instead of intermediate HTML file
9167 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
9168 doesn't use `TEXINPUTS`.
9170 * `Text.Pandoc.Pretty`:
9172 + Simplified definition of `realLength`.
9173 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
9175 * `Text.Pandoc.MIME`:
9177 + Use `application/javascript` (not `application/x-javascript`).
9178 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
9180 * `Text.Pandoc.ImageSize`:
9182 + Improve SVG image size code (Marc Schreiber, #3580).
9183 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
9185 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
9186 and reduction of memory usage in most of the writers.
9188 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
9190 * `Text.Pandoc.SelfContained`:
9192 + Fixed problem with embedded fonts (#3629).
9193 + Refactored getData from `getDataURI` in `SelfContained`.
9194 + Don't use data URIs for script or style (#3423). Instead, just use
9195 script or style tags with the content inside. The old method with
9196 data URIs prevents certain optimizations outside pandoc. Exception:
9197 data URIs are still used when a script contains `</script>` or a
9198 style contains `</`.
9199 + SelfContained: Handle URL inside material retrieved from a URL
9200 (#3629). This can happen e.g. with an @import of a google web font.
9201 (What is imported is some CSS which contains an url reference
9202 to the font itself.) Also, allow unescaped pipe (|) in URL.
9203 + Load resources from `data-src` (needed for lazy loading in
9204 reveal.js slide shows).
9205 + Handle `data-background-image` attribute on section (#3979).
9207 * `Text.Pandoc.Parsing`:
9209 + Added `indentWith` (Alexander Krotov, #3687).
9210 + Added `stateCitations` to `ParserState`.
9211 + Removed `stateChapters` from `ParserState`.
9212 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
9213 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
9214 + Adjusted type of `insertIncludedFile` so it can be used with token
9216 + Replace old texmath macro stuff from Parsing. Use Macro from
9217 Text.Pandoc.Readers.LaTeX.Types instead.
9218 + Export `insertIncludedFile`.
9219 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
9220 + Replace partial with total function (Albert Krewinkel).
9221 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
9222 `insertIncludeFile` function is generalized to work with all parser
9223 states which are instances of that class.
9224 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
9225 The `insertIncludeFiles` function was generalized and renamed
9226 to `insertIncludedFiles'`; the specialized versions are based on that.
9227 + `many1Till`: Check for the end condition before parsing (Herwig
9228 Stuetz). By not checking for the end condition before the first
9229 parse, the parser was applied too often, consuming too much of the
9230 input. This only affects `many1Till p end` where `p` matches on a
9232 + Provide `parseFromString` (#3690). This is a version of
9233 `parseFromString` specialied to ParserState, which resets
9234 `stateLastStrPos` at the end. This is almost always what we want.
9235 This fixes a bug where `_hi_` wasn't treated as emphasis in the
9236 following, because pandoc got confused about the position of the
9237 last word: `- [o] _hi_`.
9238 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
9239 + Fix `blanklines` documentation (Alexander Krotov, #3843).
9240 + Give less misleading line information with `parseWithString`.
9241 Previously positions would be reported past the end of the chunk.
9242 We now reset the source position within the chunk and report
9243 positions "in chunk."
9244 + Add `anyLineNewline` (Alexander Krotov).
9245 + Provide shared F monad functions for Markdown and Org readers
9246 (Albert Krewinkel). The `F` monads used for delayed evaluation
9247 of certain values in the Markdown and Org readers are based on a
9248 shared data type capturing the common pattern of both `F` types.
9249 + Add `returnF` (Alexander Krotov).
9250 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
9251 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
9252 + Added `readerAbbreviations` to `ParserState`. Markdown reader
9253 now consults this to determine what is an abbreviation.
9254 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
9255 parsers for markdown and rst was combined into one single
9256 parser `gridTable`, slightly changing parsing behavior of both
9257 parsers: (1) The markdown parser now compactifies block content
9258 cell-wise: pure text blocks in cells are now treated as paragraphs
9259 only if the cell contains multiple paragraphs, and as plain blocks
9260 otherwise. Before, this was true only for single-column tables. (2)
9261 The rst parser now accepts newlines and multiple blocks in header
9263 + Generalize tableWith, gridTableWith (Albert Krewinkel).
9264 The parsing functions `tableWith` and `gridTableWith` are generalized
9265 to work with more parsers. The parser state only has to be an
9266 instance of the `HasOptions` class instead of requiring a concrete
9267 type. Block parsers are required to return blocks wrapped into a
9268 monad, as this makes it possible to use parsers returning results
9269 wrapped in `Future`s.
9271 * `Text.Pandoc.Shared`:
9273 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
9274 + `stringify`: handle Quoted better (#3958). Previously we were losing
9275 the quotation marks in Quoted elements.
9277 * `Text.Pandoc.Writers.Shared`:
9279 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
9280 This allows us to add the variables AFTER using the metadata
9281 to generate a YAML header (in the Markdown writer).
9282 + Added `unsmartify` (previously in RST writer).
9283 Undo literal double curly quotes. Previously we left these.
9284 + Generalize type of `metaToJSON` so it can take a Text. Previously a
9285 String was needed as argument; now any ToJSON instance will do.
9286 + Added `gridTable` (previously in Markdown writer).
9287 + `gridTable`: Refactored to use widths in chars.
9288 + `gridTable`: remove unnecessary extra space in cells.
9289 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
9290 values to become lists.
9291 + Pipe tables: impose minimum cell size (see #3526).
9294### Default template changes
9296 * HTML templates (including EPUB and HTML slide show templates):
9298 + Make default.html5 polyglot markup conformant (John Luke Bentley,
9299 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
9300 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
9301 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
9302 + Regularized CSS in html/epub/html slide templates (#3485).
9303 All templates now include `code{white-space: pre-wrap}`
9304 and CSS for `q` if `--html-q-tags` is used. Previously some templates
9305 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
9307 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
9308 + `default.revealjs`: make `history` default to true.
9309 + `default.revealjs`: use lazy loading (#2283).
9310 + `default.revealjs`: add `mathjax` variable and some conditional code
9311 to use the MathJaX plugin.
9312 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
9313 + `default.dzslides`: Load Google Font using HTTPS by default
9316 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
9319 * LaTeX/Beamer template:
9321 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
9322 `default.beamer` has been removed; beamer now uses the
9323 `default.latex` template. Beamer-specific parts are conditional
9324 on the `beamer` variable set by the writer. Note that
9325 `pandoc -D beamer` will return this (combined) template.
9326 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
9327 Beamer loads `xcolor` rather than `color`, and thus the
9328 `dvipsnames` option doesn't take effect. This also provides a wider
9329 range of colour selections with the `svgnames` option.
9330 + Use starred versions of `xcolor` names (Andrew Dunning).
9331 Prevents changes to documents defined using the `dvipsnames` list (e.g.
9332 `Blue` gives a different result with svgnames enabled).
9333 + Load `polyglossia` after header-includes (#3898). It needs to be
9334 loaded as late as possible.
9335 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
9337 + Don't load `fontspec` before `unicode-math` (over there).
9338 The `unicode-math` package loads `fontspec` so explicit loading of
9339 `fontspec` before `unicode-math` is not necessary.
9340 + Use `unicode-math` by default in default.latex template. mathspec will
9341 be used in xelatex if the `mathspec` variable is set; otherwise
9342 unicode-math will be used (Václav Haisman).
9343 + Use `dvipsnames` options when `colorlinks` specified (otherwise
9344 we get an error for `maroon`) (Thomas Hodgson).
9345 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
9346 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
9347 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
9348 clash when loading a package (e.g. `tufte-latex`) that uses
9349 `hyperref` settings different from those in the template.
9350 + Add `natbiboptions` variable (#3768).
9351 + Fix links inside captions in LaTeX output with links-as-notes
9352 (Václav Haisman, #3651). Declare our redefined `\href` robust.
9353 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
9354 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
9355 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
9356 packages. Use existing `CJKmainfont` and `CJKoptions` template
9357 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
9358 and `luatexjapresetoptions` for `luatexja-preset`.
9359 + Added `aspectratio` variable to beamer template (Václav Haisman,
9361 + Modified template.latex to fix XeLaTex being used with tables
9362 (lwolfsonkin, #3661). Reordered `lang` variable handling to
9363 immediately before `bidi`.
9365 * ConTeXt template: Improved font handling: `simplefonts` is now
9366 obsolete in ConTeXt (Pablo Rodríguez).
9369### Documentation improvements
9373 + Add URL for Prince HTML > PDF engine (Ian, #3919).
9374 + Document that content above slide-level will be omitted in
9375 slide shows. See #3460, #2265.
9376 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
9377 + Small clarification in YAML metadata section.
9378 + Document that html4 is technically XHTML 1.0 transitional.
9379 + Remove refs to highlighting-kate (#3672).
9380 + Document ibooks specific epub metadata.
9381 + Clarify that mathml is used for ODT math.
9382 + Mention limitations of Literate Haskell Support (#3410,
9384 + Add documentation of limitations of grid tables (Stephen
9386 + Clarify that meta-json contains transformed values (Jakob Voß,
9387 #3491) Make clear that template variable `meta-json` does not
9388 contain plain text values or JSON output format but field values
9389 transformed to the selected output format.
9393 + Clarify that templates are dual-licensed.
9394 + Clarify that pandoc-types is BSD3 licensed.
9395 + List new files not written by jgm (Albert Krewinkel).
9396 + Update dates in copyright notices (Albert Krewinkel). This follows
9397 the suggestions given by the FSF for GPL licensed software.
9398 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
9402 + Improved instructions for tests with patterns.
9403 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
9407 + Fixed typos (Wandmalfarbe, #3479).
9408 + Add "ask on pandoc-discuss" (Mauro Bieg).
9410 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
9411 end of this document is autogenerated from `data/pandoc.lua`
9412 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
9415 * Add `doc/filters.md`. This is the old scripting tutorial from
9418 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
9419 to using pandoc as a Haskell library.
9422### Build infrastructure improvements
9424 * Removed `data/templates` submodule. Templates are now a subtree
9425 in `data/templates`. This removes the need to do `git submodule
9428 * Renamed `tests` -> `test`.
9430 * Remove `https` flag. Always build with HTTPS support.
9432 * Use `file-embed` instead of `hsb2hs` to embed data files when
9433 `embed_data_files` flag is set. `file-embed` gives us better dependency
9434 tracking: if a data file changes, ghc/stack/cabal know to recompile
9435 the Data module. This also removes `hsb2hs` as a build dependency.
9437 * Add `custom-setup` stanza to pandoc, lowercase field names.
9439 * Add `static` Cabal flag.
9441 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
9442 than -OSX. Changed local names from osx to macos.
9444 * make_macos_package.sh - Use strip to reduce executable size.
9446 * Revised binary linux package. Now a completely static executable
9447 is created, using Docker and alpine. We create both a deb and a
9448 tarball. The old `deb` directory has been replaced with a `linux`
9449 directory. Running `make` in the `linux` directory should
9450 perform the build, putting the binary packages in `artifacts/`.
9452 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
9453 pandoc-data packages will be uninstalled; this package provides
9454 both (#3822). Add latex packages as 'suggested', update
9457 * Remove cpphs build requirement -- it is no longer needed.
9459 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
9461 * Name change OSX -> macOS (ickc, #3869).
9463 * Fix casing of Linux, UNIX, and Windows (ickc).
9465 * `.travis.yml`: create a source dist and do cabal build and test there.
9466 That way we catch errors due to files missing from the data
9467 section of pandoc.cabal.
9471 + Split `make haddock` from `make full`.
9472 + Add BRANCH variable for winpkg.
9473 + Add `lint` target.
9474 + Improve `make full`. Disable optimizations.
9475 Build everything, inc. trypandoc and benchmarks. Use parallel build.
9476 + Allow `make test` to take `TESTARGS`.
9478 * Added new command tests (`Tests.Command`), using small text files
9479 in `test/command/`. Any files added in this directory will be treated
9480 as shell tests (see smart.md for an example). This makes it very easy
9481 to add regression tests etc.
9483 * Test fixes so we can find data files. In old tests & command tests,
9484 we now set the environment variable `pandoc_datadir`. In lua tests,
9485 we set the datadir explicitly.
9487 * Refactored `compareOutput` in docx writer test.
9489 * Consolidated some common functions in `Tests.Helper`.
9491 * Small change to unbalanced bracket test to speed up test suite.
9493 * Speed up Native writer quickcheck tests.
9495 * Use tasty for tests rather than test-framework.
9497 * Add simple Emacs mode to help with Pandoc templates editing.
9498 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
9501## pandoc 1.19.2.4 (2017-09-10)
9503 * Add dependencies on texmath and skylighting to the executable.
9504 This is needed for dependency version numbers to be available,
9507## pandoc 1.19.2.3 (2017-09-09)
9509 * Add CPP to Setup.hs so it works with Cabal >= 2 and < 2.
9511## pandoc 1.19.2.2 (2017-09-08)
9513 * Fix build with GHC 8.2.1 (#3876, Peter Simons). Setup.hs does not
9514 compile with Cabal 2.x, so we require an earlier version via
9515 setup-depends. The following packages need newer versions with
9516 GHC 8.2.1 and had their constraints relaxed accordingly:
9517 executable-path, process, syb, and time.
9519## pandoc 1.19.2.1 (2017-01-31)
9521 * Require skylighting >= 0.1.1.4.
9522 * Adjust test output for skylighting version.
9523 * Relax upper bounds on blaze-html and blaze-markup.
9525## pandoc 1.19.2 (2017-01-29)
9527 * Use skylighting library instead of highlighting-kate for syntax
9528 highlighting. Skylighting is faster and more accurate (#3363).
9529 Later we'll be able to add features like warning messages, dynamic
9530 loading of xml syntax definitions, and dynamic loading of themes.
9532 * Added a new highlight style, `breezeDark`.
9534 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
9535 This allows more languages to be used when using the `--listings`
9538 * OpenDocument writer:
9540 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
9541 + Don't profilerate text styles unnecessarily (#3371).
9542 This change makes the writer create only as many temporary
9543 text styles as are absolutely necessary. It also consolidates
9544 adjacent nodes with the same style.
9546 * Org reader (Albert Krewinkel):
9548 + Allow short hand for single-line raw blocks (Albert Krewinkel,
9549 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
9550 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
9551 + Accept org-ref citations followed by commas (Albert Krewinkel).
9552 Bugfix for an issue which, whenever the citation was immediately
9553 followed by a comma, prevented correct parsing of org-ref citations.
9554 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
9555 `/*strong and emphasized*/`) was interpreted incorrectly in that the
9556 inner markup was not recognized.
9557 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
9559 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
9560 In the past, the docx reader wrote an empty header as an empty list. It
9561 should have the same width as a row (and be filled with empty cells).
9565 + Improved handling of display math (#3362). Sometimes display math is
9566 indented with more than one colon. Previously we handled these cases
9567 badly, generating definition lists and missing the math.
9568 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
9569 behavior when the smart option is parsed to match other readers'
9574 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
9575 (#3341). Previously this did not properly enable escaped line breaks.
9576 + Disallow space between inline code and attributes (#3326, #3323,
9579 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
9581 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
9583 * LaTeX writer: allow tables with empty cells to count as "plain."
9584 This addresses a problem of too-wide tables when empty cells
9585 are used. Thanks to Joost Kremers for reporting the issue.
9587 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
9588 Unprefixed numbers where used by older org-mode versions, but are no
9591 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
9594 * Markdown writer: Fix display math with `--webtex` (#3298).
9596 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
9601 + default.latex: Moved geometry after hyperref (Václav Haisman).
9602 Otherwise PDF sizes can be wrong in some circumstances.
9603 + Copied a few changes from default.latex to default.beamer
9605 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
9606 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
9607 that contain verbatim in notes (#3361). (Note: the beamer template
9608 was updated to match the LaTeX template, but at this point verbatim
9609 in notes seems not to work in beamer.)
9610 + default.latex: Allow passing `microtypeoptions` to microtype
9612 + default.latex: Add hyphen option to url package.
9613 + default.docbook5: Fix namespace declarations (Mauro Bieg).
9615 * Moved `make_osx_package.sh` to `osx/` directory.
9617 * Travis continuous integration:
9619 + Fix false positives with dist build.
9620 + Speed improvements (Kolen Cheung, #3304, #3357).
9624 + Clarify that blank space is needed around footnotes (#3352).
9625 + Fixed typo (#3351, Alexey Rogechev).
9626 + Note that `--wrap=auto` does not work in HTML output.
9627 + Default `--columns` width is 72, not 80.
9628 + Fixed broken links (#3316, Kolen Cheung).
9629 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
9633 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
9634 + Added instructions for extracting binary from OSX, Windows packages.
9636 * CONTRIBUTING.md: Describe labels currently used in issue tracker
9637 (Albert Krewinkel). The labels have changed over time, the list of
9638 labels is updated to reflect the current set of labels used in the
9641 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
9643 * Bumped version bounds for dependencies.
9646## pandoc 1.19.1 (2016-12-10)
9648 * Set `PANDOC_VERSION` environment variable for filters (#2640).
9649 This allows filters to check the pandoc version that produced
9650 the JSON they are receiving.
9652 * Docx reader: Ensure one-row tables don't have header (#3285,
9653 Jesse Rosenthal). Tables in MS Word are set by default to have
9654 special first-row formatting, which pandoc uses to determine whether
9655 or not they have a header. This means that one-row tables will, by
9656 default, have only a header -- which we imagine is not what people
9657 want. This change ensures that a one-row table is not understood to
9658 be a header only. Note that this means that it is impossible to
9659 produce a header-only table from docx, even though it is legal
9660 pandoc. But we believe that in nearly all cases, it will be an
9661 accidental (and unwelcome) result
9665 + Fixed some bad regressions in HTML table parser (#3280).
9666 This regression leads to the introduction of empty rows
9667 in some circumstances.
9668 + Understand `style=width:` as well as `width` in `col` (#3286).
9672 + Print warnings when keys, substitition, notes not found.
9673 Previously the parsers failed and we got raw text. Now we get a
9674 link with an empty URL, or empty inlines in the case of a note or
9677 + Fix hyperlink aliases (#3283).
9679 * Man writer: Ensure that periods are escaped at beginning of line
9682 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
9683 (#3272, Albert Krewinkel). Fix interaction of top-level
9684 divisions `part` or `chapter` with unnumbered headers when
9685 emitting LaTeX. Headers are ensured to be written using
9686 stared commands (like `\subsection*{}`).
9688 * LaTeX template: use comma not semicolon to separate keywords for
9689 `pdfkeywords`. Thanks to Wandmalfarbe.
9691 * Markdown writer: Fixed incorrect word wrapping (#3277).
9692 Previously pandoc would sometimes wrap lines too early due to
9695 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
9696 possible to insert escape codes for content that needs escaping at the
9697 beginning of a line.
9699 * Removed old MathMLInHTML.js from 2004, which should no longer
9700 be needed for MathML with modern browsers.
9702 * Fixed tests with dynamic linking (#2709).
9704 * Makefile: Use stack instead of cabal for targets. This is just
9705 a convenience for developers.
9707 * Fixed bash completion of filenames with space (#2749).
9709 * MANUAL: improved documentation on how to create a custom
9712 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
9714## pandoc 1.19 (2016-12-01)
9716 * Changed resolution of filter paths.
9718 + We now first treat the argument of `--filter` as a full (absolute
9719 or relative) path, looking for a program there. If it's found, we
9721 + If not, and if it is a simple program name or a relative path, we
9722 try resolving it relative to `$DATADIR/filters`.
9723 + If this fails, then we treat it as a program name and look in the
9725 + Removed a hardcoded '/' that may have caused problems with
9728 Previously if you did `--filter foo` and you had `foo` in your path and
9729 also an executable `foo` in your working directory, the one in the path
9730 would be used. Now the one in the working directory is used.
9732 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
9733 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
9734 `foo/bar.hs` relative to the working directory.
9736 * Allow `file://` URIs as arguments (#3196). Also improved default reader
9737 format detection. Previously with a URI ending in .md or .markdown,
9738 pandoc would assume HTML input. Now it treats these as markdown.
9740 * Allow to overwrite top-level division type heuristics (#3258,
9741 Albert Krewinkel). Pandoc uses heuristics to determine the most
9742 reasonable top-level division type when emitting LaTeX or
9743 Docbook markup. It is now possible to overwrite this implicitly set
9744 top-level division via the `top-level-division` command line parameter.
9746 * Text.Pandoc.Options \[API changes\]:
9748 + Removed `writerStandalone` field in `WriterOptions`, made
9749 `writerTemplate` a `Maybe` value. Previously setting
9750 `writerStandalone = True` did nothing unless a template was provided
9751 in writerTemplate. Now a fragment will be generated if
9752 `writerTemplate` is `Nothing`; otherwise, the specified template
9753 will be used and standalone output generated.
9754 + `Division` has been renamed `TopLevelDivision` (#3197). The
9755 `Section`, `Chapter`, and `Part` constructors were renamed to
9756 `TopLevelSection`, `TopLevelChapter`, and
9757 `TopLevelPart`, respectively. An additional `TopLevelDefault`
9758 constructor was added, which is now also the new default value of
9759 the `writerTopLevelDivision` field in `WriterOptions`.
9761 * Improved error if they give wrong arg to `--top-level-division`.
9763 * Use new module from texmath to lookup MS font codepoints in Docx reader.
9764 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
9765 lives in texmath (0.9).
9767 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
9768 when the qnames lacked the docbook namespace URI.
9772 + Improved table parsing (#3027). We now check explicitly for non-1
9773 rowspan or colspan attributes, and fail when we encounter them.
9774 Previously we checked that each row had the same number of cells,
9775 but that could be true even with rowspans/colspans. And there are
9776 cases where it isn't true in tables that we can handle fine -- e.g.
9777 when a tr element is empty. So now we just pad rows with empty cells
9779 + Treat `<math>` as MathML by default unless something else is
9780 explicitly specified in xmlns. Provided it parses as MathML,
9781 of course. Also fixed default which should be to inline math if no
9782 display attribute is used.
9783 + Only treat "a" element as link if it has href (#3226). Otherwise
9786 * Docx reader (Jesse Rosenthal):
9788 + Add a placeholder value for CHART. We wrap `[CHART]` in a
9789 `<span class="chart">`. Note that it maps to inlines because, in
9790 docx, anything in a drawing tag can be part of a larger paragraph.
9791 + Be more specific in parsing images We not only want `w:drawing`,
9792 because that could also include charts. Now we specify
9793 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
9794 a first step toward allowing other sorts of drawing data as well.
9795 + Abstract out function to avoid code repetition.
9796 + Update tests for img title and alt (#3204).
9797 + Handle Alt text and titles in images. We use the "description" field
9798 as alt text and the "title" field as title. These can be accessed
9799 through the "Format Picture" dialog in Word.
9800 + Docx reader utils: handle empty namespace in `elemName`. Previously,
9801 if given an empty namespace `(elemName ns "" "foo")` `elemName`
9802 would output a QName with a `Just ""` namespace. This is never what
9803 we want. Now we output a `Nothing`. If someone *does* want a
9804 `Just ""` in the namespace, they can enter the QName
9807 * ODT reader/writer:
9809 + Inline code when text has a special style (Hubert Plociniczak). When
9810 a piece of text has a text `Source_Text` then we assume that this is
9811 a piece of the document that represents a code that needs to
9812 be inlined. Adapted the writer to also reflect that change.
9813 Previously it was just writing a 'preformatted' text using a
9814 non-distinguishable font style. Code blocks are still not recognized
9815 by the ODT reader. That's a separate issue.
9816 + Infer table's caption from the paragraph (#3224,
9817 Hubert Plociniczak). ODT's reader always put empty captions for the
9818 parsed tables. This commit
9820 1. checks paragraphs that follow the table definition
9821 2. treats specially a paragraph with a style named 'Table'
9822 3. does some postprocessing of the paragraphs that combines tables
9823 followed immediately by captions
9825 The ODT writer used the `TableCaption` style for the caption
9826 paragraph. This commit follows the OpenOffice approach which allows
9827 for appending captions to table but uses a built-in style named
9828 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
9829 should change the style's name from `TableCaption` to `Table`.
9831 * ODT reader: Infer tables' header props from rows (#3199,
9832 Hubert Plociniczak). ODT reader simply provided an empty header list
9833 which meant that the contents of the whole table, even if not empty, was
9834 simply ignored. While we still do not infer headers we at least have to
9835 provide default properties of columns.
9839 + Allow reference link labels starting with `@...` if `citations`
9840 extension disabled (#3209). Example: in
9844 `link text` isn't hyperlinked because `[@a]` is parsed as
9845 a citation. Previously this happened whether or not the `citations`
9846 extension was enabled. Now it happens only if the `citations`
9847 extension is enabled.
9848 + Allow alignments to be specified in Markdown grid tables. For
9851 +-------+---------------+--------------------+
9852 | Right | Left | Centered |
9853 +=========:+:=================+:=============:+
9854 | Bananas | $1.34 | built-in wrapper |
9855 +-------+---------------+--------------------+
9857 + Allow Small Caps elements to be created using bracketed spans (as
9858 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
9862 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
9863 Fixed an error which came up, for example, with `\vspace` inside
9864 a caption. (Captions expect inlines.)
9865 + Improved table handling. We can now parse all of the tables emitted
9866 by pandoc in our tests. The only thing we don't get yet are
9867 alignments and column widths in more complex tables. See #2669.
9868 + Limited support for minipage.
9869 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
9870 + Handle BVerbatim from fancyvrb (#3203).
9871 + Handle hungarumlaut (#3201).
9872 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
9873 (#3184). This allows use of things like `\only<2,3>{my content}` in
9874 Markdown that is going to be converted to beamer.
9876 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
9877 overly long code will appear on every slide.
9879 * Org reader (Albert Krewinkel):
9881 + Respect column width settings (#3246). Table column properties can
9882 optionally specify a column's width with which it is displayed in
9883 the buffer. Some exporters, notably the ODT exporter in org-mode
9884 v9.0, use these values to calculate relative column widths. The org
9885 reader now implements the same behavior. Note that the org-mode
9886 LaTeX and HTML exporters in Emacs don't support this feature yet,
9887 which should be kept in mind by users who use the column
9889 + Allow HTML attribs on non-figure images (#3222). Images which are
9890 the only element in a paragraph can still be given HTML attributes,
9891 even if the image does not have a caption and is hence not a figure.
9892 The following will add set the `width` attribute of the image to
9895 +ATTR\_HTML: :width 50%
9896 =======================
9898 \[\[file:image.jpg\]\]
9900 + Support `ATTR_HTML` for special blocks (#3182). Special
9901 blocks (i.e. blocks with unrecognized names) can be prefixed with an
9902 `ATTR_HTML` block attribute. The attributes defined in that
9903 meta-directive are added to the `Div` which is used to represent the
9905 + Support the `todo` export option. The `todo` export option allows to
9906 toggle the inclusion of TODO keywords in the output. Setting this to
9907 `nil` causes TODO keywords to be dropped from headlines. The default
9908 is to include the keywords.
9909 + Add support for todo-markers. Headlines can have optional
9910 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
9911 or `#+TYP_TODO` meta directive. Multiple such directives can be
9912 given, each adding a new set of recognized todo-markers. If no
9913 custom todo-markers are defined, the default `TODO` and `DONE`
9914 markers are used. Todo-markers are conceptually separate from
9915 headline text and are hence excluded when autogenerating
9916 headline IDs. The markers are rendered as spans and labelled with
9917 two classes: One class is the markers name, the other signals the
9918 todo-state of the marker (either `todo` or `done`).
9922 + Use `\autocites*` when "suppress-author" citation used.
9923 + Ensure that simple tables have simple cells (#2666). If cells
9924 contain more than a single Plain or Para, then we need to set
9925 nonzero widths and put contents into minipages.
9926 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
9930 + Fix calculation of column widths for aligned multiline tables
9931 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
9932 usage for tables when `--columns` is set in such a way that cells
9933 must be very tiny. Now cells are guaranteed to be big enough so that
9934 single words don't need to line break, even if this pushes the line
9935 length above the column width.
9936 + Use bracketed form for native spans when `bracketed_spans`
9938 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
9939 sublist got rendered with a blank line after, while a tight ordered
9940 sublist did not. Now we don't get the blank line in either case.
9941 + Fix escaping of spaces in super/subscript (#3225). Previously two
9942 backslashes were inserted, which gave a literal backslash.
9943 + Adjust widths in Markdown grid tables so that they match
9948 + Give full detail when there are errors converting tex math.
9949 + Handle title text in images (Jesse Rosenthal). We already handled
9950 alt text. This just puts the image "title" into the docx
9952 + Fixed XML markup for empty cells (#3238). Previously the Compact
9953 style wasn't being applied properly to empty cells.
9957 + Updated `renderHtml` import from blaze-html.
9959 * Text.Pandoc.Pretty:
9961 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
9962 caused spurious blank lines in grid tables when we had things like
9963 `blankline $$ blankline`.
9964 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
9965 + Added error message for illegal call to `block` (Björn Peemöller).
9967 * Text.Pandoc.Shared:
9969 + Put `warn` in MonadIO.
9970 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
9971 URL starts with `//` and there is no "base URL" (as there would be
9972 if a URL were used on the command line), then default to http:.
9974 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
9976 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
9977 fixes a crash with `pandoc --version` on unusual systems with no real
9978 user (e.g. SQL Server 2016).
9980 * Added weigh-pandoc for memory usage diagnostics (#3169).
9982 * Use correct mime types for woff and woff2 (#3228).
9984 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
9986 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
9987 1.18 section where it belongs.
9989 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
9992 * Further revisions to manual for `--version` changes (#3244).
9996## pandoc 1.18 (2016-10-26)
9998 * Added `--list-input-formats`, `--list-output-formats`,
9999 `--list-extensions`, `--list-highlight-languages`, and
10000 `--list-highlight-styles` (#3173). Removed list of highlighting
10001 languages from `--version` output. Removed list of input and output
10002 formats from default `--help` output.
10004 * Added `--reference-location=block|section|document` option
10005 (Jesse Rosenthal). This determines whether Markdown link references
10006 and footnotes are placed at the end of the document, the end of the
10007 section, or the end of the top-level block.
10009 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
10010 This determines what a level-1 header corresponds to in LaTeX,
10011 ConTeXt, DocBook, and TEI output. The default is `section`.
10012 The `--chapters` option has been deprecated in favor of
10013 `--top-level-division=chapter`.
10015 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
10016 is now used in parsing RST and Markdown line blocks, DocBook
10017 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
10018 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
10019 are handled specially in the following output formats: AsciiDoc
10020 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
10021 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
10022 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
10023 other output formats, a paragraph with hard linebreaks is emitted.
10025 * Allow binary formats to be written to stdout (but not to tty) (#2677).
10026 Only works on posix, since we use the unix library to check whether
10027 output is to tty. On Windows, pandoc works as before and always requires
10028 an output file parameter for binary formats.
10030 * Changed JSON output format (Jesse Rosenthal). Previously we used
10031 generically generated JSON, but this was subject to change depending
10032 on the version of aeson pandoc was compiled with. To ensure stability,
10033 we switched to using manually written ToJSON and FromJSON
10034 instances, and encoding the API version. **Note:** pandoc filter
10035 libraries will need to be revised to handle the format change.
10036 Here is a summary of the essential changes:
10038 + The toplevel JSON format is now `{"pandoc-api-version" :
10039 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
10040 instead of `[{"unMeta": META}, [BLOCKS]]`.
10041 Decoding fails if the major and minor version numbers don't
10043 + Leaf nodes no longer have an empty array for their "c" value.
10044 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
10045 rather than `{"t":"Space","c":[]}` as before.
10047 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
10048 module to pandoc-types (Jesse Rosenthal). This makes it easier
10049 to use QuickCheck with pandoc types outside of pandoc itself.
10051 * Add `bracketed_spans` Markdown extension, enabled by default
10052 in pandoc `markdown`. This allows you to create a native span
10053 using this syntax: `[Here is my span]{#id .class key="val"}`.
10055 * Added `angle_brackets_escapable` Markdown extension (#2846).
10056 This is needed because github flavored Markdown has a slightly
10057 different set of escapable symbols than original Markdown;
10058 it includes angle brackets.
10060 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
10062 * Print highlighting-kate version in `--version`.
10064 * `Text.Pandoc.Options`:
10066 + `Extension` has new constructors `Ext_brackted_spans` and
10067 `Ext_angle_brackets_escapable` [API change].
10068 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
10069 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
10072 * `--filter`: we now check `$DATADIR/filters` for filters before
10073 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
10074 Voß for the idea). Filters placed in this directory need not
10075 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
10076 or `.rb`, pandoc will run the right interpreter.
10078 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
10079 default (Kolen Cheung).
10081 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
10083 * Execute .js filters with node (Jakob Voß).
10087 + Support `bc..` extended code blocks (#3037). Also, remove trailing
10088 newline in code blocks (consistently with Markdown reader).
10089 + Improve table parsing. We now handle cell and row attributes, mostly
10090 by skipping them. However, alignments are now handled properly.
10091 Since in pandoc alignment is per-column, not per-cell, we
10092 try to devine column alignments from cell alignments.
10093 Table captions are also now parsed, and textile indicators
10094 for thead and tfoot no longer cause parse failure. (However,
10095 a row designated as tfoot will just be a regular row in pandoc.)
10096 + Improve definition list parsing. We now allow multiple terms
10097 (which we concatenate with linebreaks). An exponential parsing
10098 bug (#3020) is also fixed.
10099 + Disallow empty URL in explicit link (#3036).
10103 + Use Div instead of BlockQuote for admonitions (#3031).
10104 The Div has class `admonition` and (if relevant) one of the
10105 following: `attention`, `caution`, `danger`, `error`, `hint`,
10106 `important`, `note`, `tip`, `warning`. **Note:** This will change
10107 the rendering of some RST documents! The word ("Warning", "Attention",
10108 etc.) is no longer added; that must be done with CSS or a filter.
10109 + A Div is now used for `sidebar` as well.
10110 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
10111 space before a footnote marker. We discard those spaces so that footnotes
10112 will be adjacent to the text that comes before it. This is in line with
10113 what rst2latex does.
10114 + Allow empty lines when parsing line blocks (Albert Krewinkel).
10118 + Allow empty lines when parsing line blocks (Albert Krewinkel).
10119 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
10123 + More robust parsing of unknown environments (#3026).
10124 We no longer fail on things like `^` inside options for tikz.
10125 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
10126 Some custom environments give these a meaning, so we should try not to
10127 fall over when we encounter them.
10128 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
10130 * MediaWiki reader:
10132 + Fix for unquoted attribute values in mediawiki tables (#3053).
10133 Previously an unquoted attribute value in a table row
10134 could cause parsing problems.
10135 + Improved treatment of verbatim constructions (#3055).
10136 Previously these yielded strings of alternating Code and Space
10137 elements; we now incorporate the spaces into the Code. Emphasis
10138 etc. is still possible inside these.
10139 + Properly interpret XML tags in pre environments (#3042). They are meant
10140 to be interpreted as literal text.
10142 * EPUB reader: don't add root path to data: URIs (#3150).
10143 Thanks to @lep for the bug report and patch.
10145 * Org reader (Albert Krewinkel):
10147 + Preserve indentation of verse lines (#3064). Leading spaces in verse
10148 lines are converted to non-breaking spaces, so indentation is preserved.
10149 + Ensure image sources are proper links. Image sources as those in plain
10150 images, image links, or figures, must be proper URIs or relative file
10151 paths to be recognized as images. This restriction is now enforced
10152 for all image sources. This also fixes the reader's usage of uncleaned
10153 image sources, leading to `file:` prefixes not being deleted from
10154 figure images. Thanks to @bsag for noticing this bug.
10155 + Trim verse lines properly (Albert Krewinkel).
10156 + Extract meta parsing code to module. Parsing of meta-data is well
10157 separable from other block parsing tasks. Moving into new module to
10158 get small files and clearly arranged code.
10159 + Read markup only for special meta keys. Most meta-keys should be read
10160 as normal string values, only a few are interpreted as marked-up text.
10161 + Allow multiple, comma-separated authors. Multiple authors can be
10162 specified in the `#+AUTHOR` meta line if they are given as a
10163 comma-separated list.
10164 + Give precedence to later meta lines. The last meta-line of any given
10165 type is the significant line. Previously the value of the first line
10166 was kept, even if more lines of the same type were encountered.
10167 + Read LaTeX_header as header-includes. LaTeX-specific header commands
10168 can be defined in `#+LaTeX_header` lines. They are parsed as
10169 format-specific inlines to ensure that they will only show up in LaTeX
10171 + Set documentclass meta from LaTeX_class.
10172 + Set classoption meta from LaTeX_class_options.
10173 + Read HTML_head as header-includes. HTML-specific head content can be
10174 defined in `#+HTML_head` lines. They are parsed as format-specific
10175 inlines to ensure that they will only show up in HTML output.
10176 + Respect `author` export option. The `author` option controls whether
10177 the author should be included in the final markup. Setting
10178 `#+OPTIONS: author:nil` will drop the author from the final meta-data
10180 + Respect `email` export option. The `email` option controls whether the
10181 email meta-field should be included in the final markup. Setting
10182 `#+OPTIONS: email:nil` will drop the email field from the final
10184 + Respect `creator` export option. The `creator` option controls whether
10185 the creator meta-field should be included in the final markup. Setting
10186 `#+OPTIONS: creator:nil` will drop the creator field from the final
10187 meta-data output. Org-mode recognizes the special value `comment` for
10188 this field, causing the creator to be included in a comment. This is
10189 difficult to translate to Pandoc internals and is hence interpreted the
10190 same as other truish values (i.e. the meta field is kept if it's
10192 + Respect unnumbered header property (#3095). Sections the `unnumbered`
10193 property should, as the name implies, be excluded from the automatic
10194 numbering of section provided by some output formats. The Pandoc
10195 convention for this is to add an "unnumbered" class to the header. The
10196 reader treats properties as key-value pairs per default, so a special
10197 case is added to translate the above property to a class instead.
10198 + Allow figure with empty caption (Albert Krewinkel, #3161).
10199 A `#+CAPTION` attribute before an image is enough to turn an image into
10200 a figure. This wasn't the case because the `parseFromString` function,
10201 which processes the caption value, would fail on empty values. Adding
10202 a newline character to the caption value fixes this.
10206 + Use XML convenience functions (Jesse Rosenthal).
10207 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
10208 the code a lot cleaner than the original XML.Light functions, but they
10209 had been used inconsistently. This puts them in wherever applicable.
10210 + Handle anchor spans with content in headers. Previously, we would only
10211 be able to figure out internal links to a header in a docx if the
10212 anchor span was empty. We change that to read the inlines out of the
10213 first anchor span in a header.
10214 + Let headers use existing id. Previously we always generated an id for
10215 headers (since they wouldn't bring one from Docx). Now we let it use an
10216 existing one if possible. This should allow us to recurs through anchor
10218 + Use all anchor spans for header ids. Previously we only used the first
10219 anchor span to affect header ids. This allows us to use all the anchor
10220 spans in a header, whether they're nested or not (#3088).
10221 + Test for nested anchor spans in header. This ensures that anchor spans
10222 in header with content (or with other anchor spans inside) will resolve
10223 to links to a header id properly.
10225 * ODT reader (Hubert Plociniczak)
10227 + Include list's starting value. Previously the starting value of
10228 the lists' items has been hardcoded to 1. In reality ODT's list
10229 style definition can provide a new starting value in one of its
10231 + Infer caption from the text following the image.
10232 Frame can contain other frames with the text boxes.
10233 + Add `fig:` to title for Image with a caption (as expected
10234 by pandoc's writers).
10235 + Basic support for images in ODT documents.
10236 + Don't duplicate text for anchors (#3143). When creating an anchor
10237 element we were adding its representation as well as the original
10238 content, leading to text duplication.
10242 + Include an anchor element when a div or span has an id (#3102).
10243 Note that DocBook does not have a class attribute, but at least this
10244 provides an anchor for internal links.
10248 + Don't use * for unnumbered paragraph, subparagraph. The starred
10249 variants don't exist. This helps with part of #3058...it gets rid of
10250 the spurious `*`s. But we still have numbers on the 4th and 5th level
10252 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
10253 Otherwise they can cause unintended ligatures like `` ?` ``.
10254 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
10255 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
10256 This allows figure placement defaults to be changed by the user
10259 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
10260 TEI doesn't have `<book>` elements but only generic `<divN>` division
10261 elements. Checking the template for a trailing `</book>` is nonsensical.
10263 * MediaWiki writer: transform filename with underscores in images (#3052).
10264 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
10265 for internal links, but it also needs to happen for images.
10267 * ICML writer: replace partial function (!!) in table handling (#3175,
10270 * Man writer: allow section numbers that are not a single digit (#3089).
10272 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
10273 (#3068). In AsciiDoc, you must use a special form of emphasis
10274 (double `__`) for intraword emphasis. Pandoc was previously using
10275 this more than necessary.
10277 * EPUB writer: use stringify instead of plain writer for metadata
10278 (#3066). This means that underscores won't be used for emphasis,
10279 or CAPS for bold. The metadata fields will just have unadorned
10284 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
10285 with a `custom-style` key in the attributes will apply the corresponding
10286 key to the contained blocks or inlines.
10287 + Add ReaderT env to the docx writer (Jesse Rosenthal).
10288 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
10289 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
10290 on the command line. For finer-grained control, you can set
10291 the `dir` attribute in Div or Span elements.
10293 * Org writer (Albert Krewinkel):
10295 + Remove blank line after figure caption. Org-mode only treats an image
10296 as a figure if it is directly preceded by a caption.
10297 + Ensure blank line after figure. An Org-mode figure should be surrounded
10298 by blank lines. The figure would be recognized regardless, but images
10299 in the following line would unintentionally be treated as figures as
10301 + Ensure link targets are paths or URLs. Org-mode treats links as
10302 document internal searches unless the link target looks like a URL or
10303 file path, either relative or absolute. This change ensures that this
10304 is always the case.
10305 + Translate language identifiers. Pandoc and Org-mode use different
10306 programming language identifiers. An additional translation between
10307 those identifiers is added to avoid unexpected behavior. This fixes a
10308 problem where language specific source code would sometimes be output
10310 + Drop space before footnote markers (Albert Krewinkel, #3162).
10311 The writer no longer adds an extra space before footnote markers.
10315 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
10316 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
10318 + Check for the `raw_html` extension before emitting a raw HTML block.
10319 + Abstract out note/ref function (Jesse Rosenthal).
10320 + Add ReaderT monad for environment variables (Jesse Rosenthal).
10322 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
10323 subtitle, author, date (#3119). Note that, as a result of this change,
10324 authors may need to update CSS.
10326 * revealjs template: Added `notes-server` option
10327 (jgm/pandoc-templates#212, Yoan Blanc).
10331 + Restore whitespace between paragraphs. This was
10332 a regression in the last release (jgm/pandoc-templates#207).
10333 + Added `themeoptions` variable (Carsten Gips).
10334 + Added `beamerarticle` variable. This causes the `beamerarticle`
10335 package to be loaded in beamer, to produce an article from beamer
10336 slides. (Carsten Gips)
10337 + Added support for `fontfamilies` structured variable
10339 + Added hypersetup options (Jake Zimmerman).
10343 + Added dummy definition for `\institute`.
10344 This isn't a standard command, and we want to avoid a crash when
10345 `institute` is used with the default template.
10346 + Define default figure placement (Václav Haisman), since pandoc
10347 no longer includes `[htbp]` for figures. Users with custom templates
10348 will want to add this. See #3103.
10349 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
10352 * Moved template compiling/rendering code to a separate library.
10353 `doctemplates`. This allows the pandoc templating system to be
10354 used independently.
10356 * Text.Pandoc.Error: Fix out of index error in `handleError`
10357 (Matthew Pickering). The fix is to not try to show the exact line when
10358 it would cause an out-of-bounds error as a result of included files.
10360 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
10362 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
10363 addresses. Technically `**@user` is a valid email address, but if we
10364 allow things like this, we get bad results in markdown flavors
10365 that autolink raw email addresses (see #2940). So we exclude a few
10366 valid email addresses in order to avoid these more common bad cases.
10368 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
10369 emit the alt text, emphasized. This accords with what the ODT writer
10370 currently does. The user will still get a warning about a nonexistent
10373 * Fix example in API documentation (#3176, Thomas Weißschuh).
10375 * Tell where to get tarball in INSTALL (#3062).
10377 * Rename README to MANUAL.txt and add GitHub-friendly README.md
10378 (Albert Krewinkel, Kolen Cheung).
10380 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
10384 + Put note on structured vars in separate paragraph (#2148, Albert
10385 Krewinkel). Make it clearer that structured author variables require a
10387 + Note that `--katex` works best with `html5` (#3077).
10388 + Fix the LaTeX and EPUB links in manual (Morton Fox).
10389 + Document `biblio-title` variable.
10391 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
10393 * Update KaTeX to v0.6.0 (Kolen Cheung).
10395 * Allow latest dependencies.
10397 * Use texmath 0.8.6.6 (#3040).
10399 * Allow http-client 0.4.30, which is the version in stackage lts.
10400 Previously we required 0.5.
10401 Remove CPP conditionals for earlier versions.
10403 * Remove support for GHC < 7.8 (Jesse Rosenthal).
10405 + Remove Compat.Monoid.
10406 + Remove an inline monad compatibility macro.
10407 + Remove Text.Pandoc.Compat.Except.
10408 + Remove directory compat.
10409 + Change constraint on mtl.
10410 + Remove unnecessary CPP condition in UTF8.
10411 + Bump base lower bound to 4.7.
10412 + Remove 7.6 build from .travis.yaml.
10413 + Bump supported ghc version in CONTRIBUTING.md.
10414 + Add note about GHC version support to INSTALL.
10415 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
10416 + Remove TagSoup compat.
10417 + Add EOL note to time compat module. Because time 1.4 is a boot library
10418 for GHC 7.8, we will support the compatibility module as long as we
10419 support 7.8. But we should be clear about when we will no longer need
10421 + Remove blaze-html CPP conditional.
10422 + Remove unnecessary CPP in custom Prelude.
10424## pandoc 1.17.2 (2016-07-17)
10426 * Added Zim Wiki writer, template and tests. `zimwiki` is now
10427 a valid output format. (Alex Ivkin)
10429 * Changed email-obfuscation default to no obfuscation (#2988).
10430 + `writerEmailObfuscation` in `defaultWriterOptions` is now
10432 + the default for the command-line `--email-obfuscation` option is
10435 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
10439 + Support arbitrary raw inlines (Albert Krewinkel).
10440 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
10441 parlance) to be included as `@@format:raw foreign format text@@`.
10442 + Improve Div handling (Albert Krewinkel). Div blocks handling is
10443 changed to make the output look more like idiomatic org mode:
10444 - Div-wrapped content is output as-is if the div's attribute is the
10446 - Div containers with an id but neither classes nor key-value pairs
10447 are unwrapped and the id is added as an anchor.
10448 - Divs with classes associated with greater block elements are
10449 wrapped in a `#+BEGIN`...`#+END` block.
10450 - The old behavior for Divs with more complex attributes is kept.
10452 * HTML writer: Better support for raw LaTeX environments (#2758).
10453 Previously we just passed all raw TeX through when MathJax
10454 was used for HTML math. This passed through too much.
10455 With this patch, only raw LaTeX environments that MathJax
10456 can handle get passed through.
10457 This patch also causes raw LaTeX environments to be treated
10458 as math, when possible, with MathML and WebTeX output.
10460 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
10461 (#2993). Markdown line breaks involve a newline, and simple and pipe
10462 tables can't contain one.
10464 * Make --webtex work with the Markdown writer (#1177).
10465 This is a convenient option for people using
10466 websites whose Markdown flavors don't provide for math.
10470 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
10471 We treat display math like block quotes, and apply FirstParagraph style
10472 to paragraphs that follow them. These can be styled as the user
10473 wishes. (But, when the user is using indentation, this allows for
10474 paragraphs to continue after display math without indentation.)
10475 + Use actual creation time as doc prop (Jesse Rosenthal).
10476 Previously, we had used the user-supplied date, if available, for Word's
10477 document creation metadata. This could lead to weird results, as in
10478 cases where the user post-dates a document (so the modification might be
10479 prior to the creation). Here we use the actual computer time to set the
10484 + Don't URI-escape image source (#2825). Usually this is a local file,
10485 and replacing spaces with `%20` ruins things.
10486 + Allow 'standout' as a beamer frame option (#3007).
10487 `## Slide title {.standout}`.
10489 * RST reader: Fixed links with no explicit link text. The link
10490 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
10491 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
10492 Closes Debian #828167 -- reported by Christian Heller.
10496 + Fixed attributes (#2984). Attributes can't be followed by
10497 a space. So, `_(class)emph_` but `_(noclass) emph_`.
10498 + Fixed exponential parsing bug (#3020).
10499 + Fix overly aggressive interpretation as images (#2998).
10500 Spaces are not allowed in the image URL in textile.
10504 + Fix `\cite` so it is a NormalCitation not AuthorInText.
10505 + Strip off double quotes around image source if present (#2825).
10506 Avoids interpreting these as part of the literal filename.
10510 + Add semicolon to list of special chars (Albert Krewinkel)
10511 Semicolons are used as special characters in citations syntax. This
10512 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
10513 suffix]`. Previously, parsing would have failed unless there was a space
10514 or other special character as the last <prefix> character.
10515 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
10516 A specification for an official Org-mode citation syntax was drafted by
10517 Richard Lawrence and enhanced with the help of others on the orgmode
10518 mailing list. Basic support for this citation style is added to the
10520 + Support arbitrary raw inlines (Albert Krewinkel).
10521 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
10522 parlance) to be included as `@@format:raw foreign format text@@`.
10523 + Remove partial functions (Albert Krewinkel, #2991).
10524 Partial functions like `head` lead to avoidable errors and should be
10525 avoided. They are replaced with total functions.
10526 + Support figure labels (Albert Krewinkel, #2496, #2999).
10527 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
10528 respective image. This allows e.g. the LaTeX to add proper `\label`
10530 + Improve tag and properties type safety (Albert Krewinkel).
10531 Specific newtype definitions are used to replace stringly typing of tags
10532 and properties. Type safety is increased while readability is improved.
10533 + Parse as headlines, convert to blocks (Albert Krewinkel).
10534 Emacs org-mode is based on outline-mode, which treats documents as trees
10535 with headlines are nodes. The reader is refactored to parse into a
10536 similar tree structure. This simplifies transformations acting on
10537 document (sub-)trees.
10538 * Refactor comment tree handling (Albert Krewinkel).
10539 Comment trees were handled after parsing, as pattern matching on lists
10540 is easier than matching on sequences. The new method of reading
10541 documents as trees allows for more elegant subtree removal.
10542 * Support archived trees export options (Albert Krewinkel).
10543 Handling of archived trees can be modified using the `arch` option.
10544 Archived trees are either dropped, exported completely, or collapsed to
10545 include just the header when the `arch` option is nil, non-nil, or
10546 `headline`, respectively.
10547 * Put export setting parser into module (Albert Krewinkel).
10548 Export option parsing is distinct enough from general block parsing to
10549 justify putting it into a separate module.
10550 * Support headline levels export setting (Albert Krewinkel).
10551 The depths of headlines can be modified using the `H` option. Deeper
10552 headlines will be converted to lists.
10553 * Replace ugly code with view pattern (Albert Krewinkel).
10554 Some less-than-smart code required a pragma switching of overlapping
10555 pattern warnings in order to compile seamlessly. Using view patterns
10556 makes the code easier to read and also doesn't require overlapping
10557 pattern checks to be disabled.
10558 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
10559 Org rules for allowed characters before or after markup chars were not
10560 checked for verbatim text. This resultet in wrong parsing outcomes of
10561 if the verbatim text contained e.g. space enclosed markup characters as
10562 part of the text (`=is_substr = True=`). Forcing the parser to update
10563 the positions of allowed/forbidden markup border characters fixes this.
10565 * LaTeX template: fix for obscure hyperref/xelatex issue.
10566 Here's a minimal case:
10568 \documentclass[]{article}
10569 \usepackage{hyperref}
10574 Without this change, this fails on the second invocation of xelatex.
10575 This affects inputs this like `# %á` with pdf output via xelatex.
10577 * trypandoc: call results 'html' instead of 'result'.
10578 This is for better compatibility with babelmark2.
10580 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
10581 MultiMarkdown was only mentioned as a supported Markdown dialect but not
10582 as a possible input or output format. A brief mention is added
10583 everywhere the other supported markdown dialects are mentioned.
10585 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
10586 Raw HTML is kept when the output format is Emacs Org mode.
10588 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
10590 * Text.Pandoc.Shared:
10592 + Introduce blocksToInlines function (Jesse Rosenthal).
10593 This is a lossy function for converting `[Block] -> [Inline]`. Its main
10594 use, at the moment, is for docx comments, which can contain arbitrary
10595 blocks (except for footnotes), but which will be converted to spans.
10596 This is, at the moment, pretty useless for everything but the basic
10597 `Para` and `Plain` comments. It can be improved, but the docx reader
10598 should probably emit a warning if the comment contains more than this.
10599 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
10600 + Add further formats for `normalizeDate` (Jesse Rosenthal).
10601 We want to avoid illegal dates -- in particular years with greater than
10602 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
10603 `%Y%m`, and finally `%Y`.
10604 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
10605 We only allow years between 1601 and 9999, inclusive. The ISO 8601
10606 actually says that years are supposed to start with 1583, but MS Word
10607 only allows 1601-9999. This should stop corrupted word files if the date
10608 is out of that range, or is parsed incorrectly.
10609 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
10610 Previously we parsed a list of dates, took the first one, and then
10611 tested its year range. That meant that if the first one failed, we
10612 returned nothing, regardless of what the others did. Now we test for
10613 sanity before running `msum` over the list of Maybe values. Anything
10614 failing the test will be Nothing, so will not be a candidate.
10618 + Add simple comment functionality. (Jesse Rosenthal).
10619 This adds simple track-changes comment parsing to the docx reader. It is
10620 turned on with `--track-changes=all`. All comments are converted to
10621 inlines, which can list some information. In the future a warning will be
10622 added for comments with formatting that seems like it will be excessively
10623 denatured. Note that comments can extend across blocks. For that reason
10624 there are two spans: `comment-start` and `comment-end`. `comment-start`
10625 will contain the comment. `comment-end` will always be empty. The two
10626 will be associated by a numeric id.
10627 + Enable warnings in top-level reader (Jesse Rosenthal).
10628 Previously we had only allowed for warnings in the parser. Now we allow
10629 for them in the `Docx.hs` as well. The warnings are simply concatenated.
10630 + Add warning for advanced comment formatting. (Jesse Rosenthal).
10631 We can't guarantee we'll convert every comment correctly, though we'll
10632 do the best we can. This warns if the comment includes something other
10633 than Para or Plain.
10634 + Add tests for warnings. (Jesse Rosenthal).
10635 + Add tests for comments (Jesse Rosenthal).
10636 We test for comments, using all track-changes options. Note that we
10637 should only output comments if `--track-changes=all`. We also test for
10638 emitting warnings if there is complicated formatting.
10640 * README: update to include track-changes comments. (Jesse Rosenthal)
10642 * Improved Windows installer - don't ignore properties set on command-line.
10643 See #2708. Needs testing to see if this resolves the issue.
10646 * Process markdown extensions on command line in L->R order (#2995).
10647 Previously they were processed, very unintuitively, in R->L
10648 order, so that `markdown-tex_math_dollars+tex_math_dollars`
10649 had `tex_math_dollars` disabled.
10651 * Added `secnumdepth` variable to LaTeX template (#2920).
10653 * Include table of contents in README.html in Windows package.
10655 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
10656 In Writers.Shared, we strip leading and trailing spaces for display
10657 math. Since SoftBreak's are treated as spaces, we should strip those
10660 * beamer, latex templates: pass biblatexoptions directly in package load.
10661 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
10663 * CPP workaround for deprecation of `parseUrl` in http-client.
10665 * Removed some redundant class constraints.
10667 * make_oxs_package.sh - use OSX env variable.
10669 * Added `winpkg` target to Makefile. This downloads the windows package
10670 from appveyor and signs it using the key.
10672 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
10673 Raw TeX is kept verbatim when the output format is Emacs Org mode.
10675 * Support math with haddock-library >= 1.4.
10677 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
10678 wouldn't accept the package.
10680 * Update library dependency versions.
10682## pandoc 1.17.1 (2016-06-04)
10684 * New output format: `docbook5` (Ivo Clarysse).
10686 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
10691 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
10692 This allows header attributes to be added to org documents in the form
10693 of `:PROPERTIES:` drawers. All available attributes are stored as
10694 key/value pairs. This reflects the way the org reader handles
10695 `:PROPERTIES:` blocks.
10696 + Add drawer capability (Carlos Sosa). For the implementation of the
10697 Drawer element in the Org Writer, we make use of a generic Block
10698 container with attributes. The presence of a `drawer` class defines
10699 that the `Div` constructor is a drawer. The first class defines the
10700 drawer name to use. The key-value list in the attributes defines
10701 the keys to add inside the Drawer. Lastly, the list of Block elements
10702 contains miscellaneous blocks elements to add inside of the Drawer.
10703 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
10704 reserved for internal use by Org-mode and should not be used.
10705 The `CUSTOM_ID` property is to be used instead, it is converted to the
10706 `ID` property for certain export format.
10710 + Ignore `--incremental` unless output format is beamer (#2843).
10711 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
10712 Allow for optional argument in square brackets.
10713 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
10714 This allows one to access the hyphenation patterns in CTAN's
10716 + Add missing languages from hyph-utf8 (Andrew Dunning).
10717 + Improve use of `\strut` with `\minipage` inside tables
10718 (Jose Luis Duran). This improves spacing in multiline
10720 + Use `{}` around options containing special chars (#2892).
10721 + Avoid lazy `foldl`.
10722 + Don't escape underscore in labels (#2921). Previously they were
10724 + brazilian -> brazil for polyglossia (#2953).
10726 * HTML writer: Ensure mathjax link is added when math appears in footnote
10727 (#2881). Previously if a document only had math in a footnote, the
10728 MathJax link would not be added.
10730 * EPUB writer: set `navpage` variable on nav page.
10731 This allows templates to treat it differently.
10735 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
10736 + Properly handle `ulink`/`link` (Ivo Clarysse).
10740 + Unescape URIs in spine (#2924).
10741 + EPUB reader: normalise link id (Mauro Bieg).
10745 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
10746 `moveTo` and `moveFrom` are track-changes tags that are used when a
10747 block of text is moved in the document. We now recognize these tags and
10748 treat them the same as `insert` and `delete`, respectively. So,
10749 `--track-changes=accept` will show the moved version, while
10750 `--track-changes=reject` will show the original version.
10751 + Tests for track-changes moving (Jesse Rosenthal).
10753 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
10754 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
10755 would error out if zip-archive failed. We change the archive extraction
10756 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
10758 * Markdown, HTML readers: be more forgiving about unescaped `&` in
10759 HTML (#2410). We are now more forgiving about parsing invalid HTML with
10760 unescaped `&` as raw HTML. (Previously any unescaped `&`
10761 would cause pandoc not to recognize the string as raw HTML.)
10765 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
10766 + Added `-s` to markdown-reader-more test.
10768 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
10769 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
10771 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
10774 * RST reader: Support `:class:` option for code block in RST reader
10777 * Org reader (all Albert Krewinkel, except where noted otherwise):
10779 + Stop padding short table rows.
10780 Emacs Org-mode doesn't add any padding to table rows. The first
10781 row (header or first body row) is used to determine the column count,
10782 no other magic is performed.
10783 + Refactor rows-to-table conversion. This refactors
10784 the codes conversing a list table lines to an org table ADT.
10785 The old code was simplified and is now slightly less ugly.
10786 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
10787 This fixes Org mode parsing of some corner cases regarding empty cells
10788 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
10789 two empty cells, but would be parsed as a single cell containing a pipe
10790 character. Empty rows where parsed as alignment rows and dropped from
10792 + Fix spacing after LaTeX-style symbols.
10793 The org-reader was dropping space after unescaped LaTeX-style symbol
10794 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
10795 instead. This seems to be because the LaTeX-reader treats the
10796 command-terminating space as part of the command. Dropping the trailing
10797 space from the symbol-command fixes this issue.
10798 + Print empty table rows. Empty table rows should not
10799 be dropped from the output, so row-height is always set to be at least 1.
10800 + Move parser state into separate module.
10801 The org reader code has become large and confusing. Extracting smaller
10802 parts into submodules should help to clean things up.
10803 + Add support for sub/superscript export options.
10804 Org-mode allows to specify export settings via `#+OPTIONS` lines.
10805 Disabling simple sub- and superscripts is one of these export options,
10806 this options is now supported.
10807 + Support special strings export option Parsing of special strings
10808 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
10810 + Support emphasized text export option. Parsing of emphasized text can
10811 be toggled using the `*` option. This influences parsing of text marked
10812 as emphasized, strong, strikeout, and underline. Parsing of inline math,
10813 code, and verbatim text is not affected by this option.
10814 + Support smart quotes export option. Reading of smart quotes can be
10815 toggled using the `'` option.
10816 + Parse but ignore export options. All known export options are parsed
10818 + Refactor block attribute handling. A parser state attribute was used
10819 to keep track of block attributes defined in meta-lines. Global state
10820 is undesirable, so block attributes are no longer saved as part of the
10821 parser state. Old functions and the respective part of the parser state
10823 + Use custom `anyLine`. Additional state changes need to be made after
10824 a newline is parsed, otherwise markup may not be recognized correctly.
10825 This fixes a bug where markup after certain block-types would not be
10827 + Add support for `ATTR_HTML` attributes (#1906).
10828 Arbitrary key-value pairs can be added to some block types using a
10829 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
10830 when exporting to HTML, but since we cannot make this distinction here,
10831 the attributes are always added. The functionality is now supported
10833 + Add `:PROPERTIES:` drawer support (#1877).
10834 Headers can have optional `:PROPERTIES:` drawers associated with them.
10835 These drawers contain key/value pairs like the header's `id`. The
10836 reader adds all listed pairs to the header's attributes; `id` and
10837 `class` attributes are handled specially to match the way `Attr` are
10838 defined. This also changes behavior of how drawers of unknown type
10839 are handled. Instead of including all unknown drawers, those are not
10840 read/exported, thereby matching current Emacs behavior.
10841 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
10842 + Respect drawer export setting. The `d` export option can be used
10843 to control which drawers are exported and which are discarded.
10844 Basic support for this option is added here.
10845 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
10846 Also fix up tab handling for leading whitespace in code blocks.
10847 + Support new syntax for export blocks. Org-mode version 9
10848 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
10849 where `<FORMAT>` is the format of the block's content, the new
10850 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
10852 + Refactor `BEGIN...END` block parsing.
10853 + Fix handling of whitespace in blocks, allowing content to be indented
10854 less then the block header.
10855 + Support org-ref style citations. The *org-ref* package is an
10856 org-mode extension commonly used to manage citations in org
10857 documents. Basic support for the `cite:citeKey` and
10858 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
10859 + Split code into separate modules, making for cleaner code and
10862 * Added `docbook5` template.
10864 * `--mathjax` improvements:
10866 + Use new CommonHTML output for MathJax (updated default MathJax URL,
10868 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
10869 This is designed for cases where the input is always TeX and maximal
10870 conformity with TeX is desired. It seems to be smaller and load faster
10871 than what we used before. See #2858.
10872 + Load the full MathJax config to maximize loading speed (KolenCheung).
10874 * Bumped upper version bounds to allow use of latest packages
10875 and compilation with ghc 8.
10877 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
10878 #2310, #2310, #2824). This fixes behavior of roots, e.g.
10879 `\sqrt[3]{x}`, and issues with sub/superscript positioning
10880 and matrix column alignment in docx.
10884 + Clarified documentation of `implicit_header_references` (#2904).
10885 + Improved documentation of `--columns` option.
10887 * Added appveyor setup, with artefacts (Jan Schulz).
10889 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
10891 * LaTeX template: support for custom font families (vladipus).
10892 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
10893 can find some other usages. Example usage in YAML metadata:
10896 - name: \cyrillicfont
10897 font: Liberation Serif
10898 - name: \cyrillicfonttt
10899 options: Scale=MatchLowercase
10902 * Create unsigned msi as build artifact in appveyor build.
10904 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
10908## pandoc 1.17.0.3 (2016-03-24)
10910 * LaTeX writer: Fixed position of label in figures (#2813).
10911 Previously the label wasn't in the right place, and `\ref`
10912 wouldn't work properly.
10913 * Added .tei test files to pandoc.cabal so they'll be included
10914 in tarball (#2811).
10915 * Updated copyright dates.
10917## pandoc 1.17.0.2 (2016-03-23)
10919 * Fixed serious regression in `htmlInBalanced`, which caused
10920 newlines to be omitted in some raw HTML blocks in Markdown
10923## pandoc 1.17.0.1 (2016-03-21)
10925 * File scope is no longer used when there are no input files (i.e.,
10926 when input comes from stdin). Previously file scope was triggered
10927 when the `json` reader was specified and input came from `stdin`,
10928 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
10929 thanks to Fedor Sheremetyev for calling the bug to our attention.)
10930 * Improved documentation of templates (#2797).
10932## pandoc 1.17 (2016-03-20)
10934 * Added `--file-scope` option (Jesse Rosenthal).
10935 By default pandoc operates on multiple files by first concatenating
10936 them (around extra line breaks) and then processing the joined file. So
10937 it only parses a multi-file document at the document scope. This has the
10938 benefit that footnotes and links can be in different files, but for
10939 some purposes it is useful to parse the individual files first
10940 and then combine their outputs (e.g. when the files use footnotes
10941 or links with the same labels). The `--file-scope` option causes
10942 pandoc to parse the files first, and then combine the parsed output,
10943 instead of combining before parsing. `--file-scope` is selected
10944 automatically for binary input files (which cannot be concatenated)
10945 and for pandoc json.
10947 * Add TEI Writer (Chris Forster) and `tei` output format.
10949 * Added a general `ByteStringReader` with warnings, used by the docx
10950 reader (API change, Jesse Rosenthal).
10952 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
10954 * Changed type of `Shared.uniqueIdent` argument from
10955 `[String]` to `Set String`. This avoids performance problems in documents
10956 with many identically named headers (API change, #2671).
10958 * Removed `tex_math_single_backslash` from `markdown_github` options
10961 * Make language extensions as well as full language names
10962 trigger syntax highlighting. For example, `py` will now work as
10963 well as `python` (jgm/highlighting-kate#83).
10965 * Added `institute` variable to latex, beamer templates (Fraser
10966 Tweedale, Josef Svenningsson).
10968 * Docx reader (Jesse Rosenthal):
10970 + Handle alternate content. Some word functions (especially graphics)
10971 give various choices for content so there can be backwards compatibility.
10972 + Don't turn numbered headers into lists.
10973 + Docx Reader: Add state to the parser, for warnings
10974 + Update feature checklist in source code.
10975 + Get rid of `Modifiable` typeclass.
10976 + Add tests for adjacent hyperlinks.
10977 + Add a "Link" modifier to `Reducible`. We want to make sure that
10978 links have their spaces removed, and are appropriately smushed
10983 + Fixed behavior of base tag (#2777).
10984 If the base path does not end with slash, the last component
10985 will be replaced. E.g. base = `http://example.com/foo`
10986 combines with `bar.html` to give `http://example.com/bar.html`.
10987 If the href begins with a slash, the whole path of the base
10988 is replaced. E.g. base = `http://example.com/foo/` combines
10989 with `/bar.html` to give `http://example.com/bar.html`.
10990 + Rewrote `htmlInBalanced`. This version avoids an exponential
10991 performance problem with `<script>` tags, and it should be faster
10992 in general (#2730).
10993 + Properly handle an empty cell in a simple table (#2718).
10994 + Handle multiple `<meta>` tags with same name. Put them in a list
10995 in the metadata so they are all preserved, rather than (as before)
10996 throwing out all but one..
11000 + Improved pipe table parsing (#2765).
11001 + Allow `+` separators in pipe table cells. We already allowed
11002 them in the header, but not in the body rows, for some reason.
11003 This gives compatibility with org-mode tables.
11004 + Don't cross line boundary parsing pipe table row.
11005 Previously an Emph element could be parsed across the newline
11006 at the end of the pipe table row.
11007 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
11008 performance (#2730).
11009 + Fixed bug with smart quotes around tex math.
11013 + Handle interior `$` characters in math (#2743). For example,
11015 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
11016 This gives better results when people write e.g. `\TeX{}` in Markdown.
11017 + Properly handle LaTeX "math" environment as inline math (#2171).
11019 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
11022 * Org reader (Albert Krewinkel):
11024 + Prefix even empty figure names with "fig:" (#2643). The
11025 convention used by pandoc for figures is to mark them by prefixing
11026 the name with `fig:`. The org reader failed to do this if a figure
11028 + Refactor link-target processing (#2684).
11030 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
11031 Thanks to @c-foster.
11033 * HTML writer: Don't include alignment attribute for default table columns.
11034 Previously these were given "left" alignment. Better to leave off
11035 alignment attributes altogether (#2694).
11037 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
11038 better compatibility with other Markdown flavors (Henrik Tramberend).
11042 + Use image identifier to create a label and hypertarget for
11043 figures (Mauro Bieg).
11044 + Avoid double toprule in headerless table with caption (#2742).
11045 + Clean up options parser (Jesse Rosenthal).
11046 + Treat `memoir` template with `article` option as article, instead
11047 of treating all `memoir` templates as books.
11048 + Allow more flexible table alignment (Henrik Tramberend, #2665).
11049 New default is not to include `[c]` option (which is the default
11050 anyway if no positioning is specified). Now LaTeX emplates can
11051 control the overall table alignment in a document by setting the
11052 longtable length variables `LTleft` and `LTright`. For example,
11053 `\setlength\LTleft\parindent\setlength\LTright\fill`
11054 will create left-aligned tables that respect paragraph indentation.
11056 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
11058 * Org writer - pass through RawInline with format "org".
11060 * DokuWiki writer: use `$$` for display math.
11062 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
11064 * Make protocol-relative URIs work again (#2737).
11066 * make_osx_package.sh: Use env variable for developer id certs.
11068 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
11071 * Allow `zip-archive` 0.3.
11073 * Allow `aeson` 0.11.
11075## pandoc 1.16.0.2 (2016-01-12)
11077 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
11079 * Fixed regression in latex smart quote parsing (#2645).
11080 In cases where a match was not found for a quote, everything
11081 from the open quote to the end of the paragraph was being dropped.
11083## pandoc 1.16.0.1 (2016-01-10)
11085 * Fixed regression with `--latex-engine` (#2618). In 1.16
11086 `--latex-engine` raises an error if a full path is given.
11088 * Org reader: Fix function dropping subtrees tagged `:noexport`
11089 (Albert Krewinkel, #2628):
11091 * Markdown reader: renormalize table column widths if they exceed 100%
11094 * Textile reader: don't allow block HTML tags in inline contexts.
11095 The reader previously did allow this, following redcloth,
11096 which happily parses
11098 Html blocks can be <div>inlined</div> as well.
11102 <p>Html blocks can be <div>inlined</div> as well.</p>
11104 This is invalid HTML. The above sample now produces;
11106 <p>Html blocks can be</p>
11112 * Improved default template lookup for custom lua scripts (#2625).
11113 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
11114 pandoc would look for the template in
11115 `~/.pandoc/templates/default./path/to/lua/script.lua`.
11116 With this change it will look in the more reasonable
11117 `~/.pandoc/templates/default.script.lua`. This makes it possible to
11118 store default templates for custom writers.
11120 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
11123 * LaTeX writer: restore old treatment of Span (#2624). A Span is
11124 now rendered with surrounding `{}`, as it was before 1.16.
11126 * Entity handling fixes: improved handling of entities like
11127 `⟨` that require a trailing semicolon. Allow uppercase
11128 `x` in numerical hexadecimal character references, working
11129 around a tagsoup bug.
11131 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
11132 memory use on compile. With aeson 0.10 we were getting an out of
11133 memory error on a 2GB Ubuntu 64-bit VM.
11135 * Improved deb package creation script. Made `DPKGVER` work.
11136 Renamed `COMMIT` to `TREE`. You should now be able to do
11137 `TREE=1.16.0.1 DPKGVER=2 make deb`.
11140## pandoc 1.16 (2016-01-02)
11142 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
11144 + Added syntax for link and image attributes to pandoc's Markdown.
11145 + Updated readers and writers to use link and image attributes
11147 + Support image attributes in Docx, Textile, RST readers.
11149 * Renamed link attribute extensions. The old `link_attributes` is
11150 now `mmd_link_attributes`, and `link_attributes` now enables the
11151 new pandoc-style link and image attributes (API change).
11152 Note: this change could break some existing workflows.
11154 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
11155 Added threefold wrapping option.
11157 + Command line option: deprecated `--no-wrap`, added
11158 `--wrap=[auto|none|preserve]`
11159 + Added `WrapOption`, exported from `Text.Pandoc.Options`
11160 + Changed type of `writerWrapText` in `WriterOptions` from
11161 `Bool` to `WrapOption`.
11162 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
11163 + Supported `SoftBreak` in readers and writers.
11165 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
11166 change, Mauro Bieg).
11168 * Added `--dpi` command-line option (Mauro Bieg).
11170 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
11171 This change makes `--no-tex-ligatures` affect the LaTeX reader
11172 as well as the LaTeX and ConTeXt writers. If it is used,
11173 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
11174 literally, rather than parsing ligatures for quotation marks
11175 and dashes. And the LaTeX writer will print unicode quotation
11176 mark and dash characters literally, rather than converting
11177 them to the standard ASCII ligatures. Note that `--smart` has
11178 no effect on the LaTeX reader. `--smart` is still the default
11179 for all input formats when LaTeX or ConTeXt is the output format,
11180 *unless* `--no-tex-ligatures` is used.
11182 Some examples to illustrate the logic:
11185 % echo "'hi'" | pandoc -t latex
11187 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
11189 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
11191 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
11193 % echo "'hi'" | pandoc -f latex
11197 * Removed deprecated options `--offline` and `--html5`.
11199 * Fixed language code for Czech (`cs` not `cz`) (#2597).
11201 * Implemented `east_asian_line_breaks` extension (#2586).
11202 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
11203 to `Extension` (API change). This extension is like
11204 `ignore_line_breaks`, but smarter -- it only ignores line breaks
11205 between two East Asian wide characters. This makes it better suited
11206 for writing with a mix of East Asian and non-East Asian scripts.
11208 * Added support for PDF creation via `wkhtmltopdf`.
11209 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
11210 if you have math.) Margins can be set using the variables
11211 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
11212 Other styling can be done through CSS.
11214 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
11215 We were capturing final colons as in `[@foo: bar]`; the citation id
11216 was being parsed as `@foo:`.
11220 + Fixed image syntax for local files (#2589).
11221 + Changed type of `writeICML` (Mauro Bieg).
11222 API change: It is now `WriterOptions -> Pandoc -> IO String`.
11223 Also handle new image attributes.
11224 + Intersperse line breaks instead of appending them to
11225 every `ParagraphStyleRange` (Mauro Bieg, #2501).
11226 + Add `Cite` style to citations (Mauro Bieg).
11227 + Added figure handling (#2590, Mauro Bieg).
11228 + Better handling of math. Instead of just printing the raw tex,
11229 we now try to fake it with unicode characters.
11231 * HTML writer: Include `example` class for example lists (#2524).
11233 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
11235 + Support for percentage widths/heights
11236 + Use `Attr` instead of title to get dimensions from ODT walker
11237 to `writeOpenDocument`.
11241 + Support anchors in spans and divs with id elements
11242 (jgm/pandoc-citeproc#143).
11243 + Fixed code blocks (#1861).
11245 * Haddock writer: omit formatting inside links, which isn't supported
11246 by Haddock (#2515).
11248 * MediaWiki writer: Fixed spacing issues in table cells.
11250 + Start cell on new line unless it's a single Para or Plain
11252 + For single Para or Plain, insert a space after the `|` to
11253 avoid problems when the text begins with a character like
11256 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
11260 + Add support for GAP highlighting using listings (Raniere Silva).
11261 + Consider `header-includes` content as well as templates
11262 when determining whether to use csquotes (Andreas Lööw).
11263 + Create defaults for geometry using `margin-left` etc.
11264 If `geometry` has no value, but `margin-left`, `margin-right`,
11265 `margin-top`, and/or `-margin-bottom` are given, a default value
11266 for `geometry` is created from these. Note that these variables
11267 already affect PDF production via HTML5 with `wkhtmltopdf`.
11269 * ConTeXt writer: set default layout based on `margin-left`, etc.
11270 This sets up `\setuplayout` based on the variables `margin-left`,
11271 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
11274 * Docx writer: better handling of PDF images. Previously we tried
11275 to get the image size from the image even if an explicit size was
11276 specified. Since we still can't get image size for PDFs, this made
11277 it impossible to use PDF images in docx. Now we don't try to get
11278 the image size when a size is already explicitly specified.
11280 * Markdown writer: use raw HTML for link/image attributes when
11281 the `link_attributes` extension is unset and `raw_html` is set (#2554).
11283 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
11287 + Improved smart quote parsing (#2555). This fixes redering of
11289 + Use curly quotes for unmatched ` (#2555).
11290 + Allow blank space between braced arguments of commands (#2592).
11294 + Improved pipe table relative widths. Previously pipe table
11295 columns got relative widths (based on the header underscore lines)
11296 when the source of one of the rows was greater in width than the
11297 column width. This gave bad results in some cases where much of
11298 the width of the row was due to nonprinting material (e.g. link
11299 URLs). Now pandoc only looks at printable width (the width of a
11300 plain string version of the source), which should give better results.
11301 Thanks to John Muccigrosso for bringing up the issue.
11302 + Fixed parsing bug with macros. Previously macro definitions in
11303 indented code blocks were being parsed as macro definitions, not code.
11305 * Textile reader: skip over attribute in image source (#2515).
11306 We don't have a place yet for styles or sizes on images, but
11307 we can skip the attributes rather than incorrectly taking them
11308 to be part of the filename.
11310 * Docx reader: Handle dummy list items (Jesse Rosenthal).
11311 These come up when people create a list item and then delete the
11312 bullet. It doesn't refer to any real list item, and we used to ignore
11315 * CommonMark reader/writer rewritten to use latest `cmark`.
11317 * Fixed Emoji character definitions (#2523). There were many bugs in the
11320 * `Text.Pandoc.CSS`:
11322 + Added `pickStylesToKVs` function to extract multiple properties at
11323 once (API change, Mauro Bieg).
11324 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
11326 * `trypandoc`: sort drop-down lists.
11330 + Made `\euro` conditional on presence of character.
11331 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
11332 + Moved `header-includes` before setting of title (Thomas Hodgson),
11333 to match the LaTeX template (jgm/pandoc-templates#168).
11334 + Added `section-titles` variable (defaults to true)
11335 to enable/suppress section title pages in beamer
11336 slide shows (Thomas Hodgson).
11337 + Moved beamer themes after fonts, so that themes can
11338 change fonts. (Previously the fonts set were being
11339 clobbered by lmodern.sty.) (Thomas Hodgson).
11341 * Beamer/LaTeX template changes (Thomas Hodgson):
11342 + Added `thanks` variable
11343 + Use `parskip.sty` when `indent` isn't set (fall back to using
11344 `setlength` as before if `parskip.sty` isn't available).
11345 + Use `biblio-style` with biblatex.
11346 + Added `biblatexoptions` variable.
11348 * LaTeX template changes:
11350 + Added `paper` after `$papersize$` variable in latex template.
11351 Thus you can say `papersize: a4` and the latex will contain
11352 `a4paper`. This change may break some existing workflows; if
11353 you currently specify `a4paper`, you'll get `a4paperpaper` which
11354 is meaningless. However, the change seems worth it, as it will
11355 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
11356 and html->pdf via wkhtmltopdf.
11357 + Only pass options to color package if `colorlinks` is set
11359 + Make definition of `\euro` conditional in xelatex/lualatex,
11360 as it is already for pdflatex (Andrew Dunning).
11361 + Removed setting of `subject` in PDF metadata.
11362 This used to be set to the subtitle, but really the subtitle
11363 need not give the subject. Also, `subtitle` can contain formatting,
11364 so we'd need, at least, a plain text version for this.
11365 + Moved `header-includes` before setting of `\title`, `\author`,
11366 etc. This allows these macros to be redefined.
11367 + Use `\subtitle` command for `subtitle`, instead of tacking it
11368 on to the title as before. We give a no-op fallback definition if it
11369 is not defined. This change should produce much better results
11370 in classes that support `\subtitle`. With the default article
11371 class, which does not define `\subtitle`, subtitles will no
11372 longer be printed unless the user defines `\subtitle` and
11373 redefines `\maketitle`.
11374 + Moved redefinitions of `\paragraph` and `\subparagraph` to
11375 before header-includes.
11377 * Context template:
11379 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
11380 needed for things to work on ConTeXt stable from TeXLive 2015.
11381 + Revert use of `\setuphead` in title block (Andrew Dunning,
11384 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
11386 * Fixed man template so disabling hyphenation actually works.
11387 The command needs to come after .TH.
11389 * Added 'navigation' variable to beamer template (#2543).
11390 Valid values are `empty` (the default), `horizontal`, `vertical`,
11391 and `frame`. Note that this changes the default behavior from
11392 `horizontal` to `empty`. Closes #2543.
11394 * Added `toc` to HTML slide format templates (Andrew Dunning),
11395 so that `--toc` creates a contents slide.
11397 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
11399 * Allow pipe tables with no body rows (#2556).
11400 Previously this raised a runtime error.
11402 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
11403 as URL. The Haskell URI parsing routines will accept "C:" as a
11404 scheme, so we rule that out manually. This helps with
11405 `--self-contained` and absolute Windows paths.
11407 * Define a `meta-json` variable for all writers (#2019). This contains
11408 a JSON version of all the metadata, in the format selected for the
11409 writer. So, for example, to get just the YAML metadata, you can run
11410 pandoc with the following custom template: `$meta-json$`. The intent
11411 is to make it easier for static site generators and other tools to get
11414 * Document limitations of --self-contained (#2553).
11416 * Improved Citations section of README (#2551). Added information
11417 about `link-citations` and a link to the pandoc-citeproc man page.
11419 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
11422 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
11424 * Improved implicit pandoc-citeproc inclusion.
11425 The filter pandoc-citeproc is automatically used when
11426 `--bibliography` is specified on the command line, unless
11427 `--natbib` or `--biblatex` is used. However, previously this
11428 only worked if `--bibliography` was spelled out in full, and not
11429 if `--biblio` was used.
11431 * reveal.js: Interpret pauses correctly for all headers (#2530).
11432 Previously, when using headers below the slide level, pauses are left
11433 uninterpreted into pauses. In my opinion, unexpected behavior but
11434 intentional looking at the code.
11436 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
11438 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
11441 * ImageSize: Added functions for converting between image dimensions
11444 * Use lts-3.18 in stack.yaml. This avoids Windows build
11445 issues with the HTTP library.
11447 * Bump version bounds for dependencies.
11449## pandoc 1.15.2.1 (2015-11-16)
11451 * Added two missing test files, and `stack.yaml`, to
11452 `extra-source-files` so they're included in the source tarball.
11454 * reveal.js template: Fixed parallaxBackground options.
11455 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
11456 need integer values, not strings. (Vaughn Iverson)
11458## pandoc 1.15.2 (2015-11-15)
11460 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
11461 ConTeXt rather than LaTeX (#2463).
11463 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
11465 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
11466 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
11469 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
11470 parsing (#2469). Tightened up the inline HTML parser so it disallows
11473 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
11477 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
11478 Paragraphs can be followed by lists, even if there is no blank line
11479 between the two blocks. However, this should only be true if the
11480 paragraph is not within a list, were the preceding block should be
11481 parsed as a plain instead of paragraph (to allow for compact lists).
11482 Thanks to @rgaiacs for bringing this up.
11483 + Allow toggling header args (Albert Krewinkel, #2269).
11484 Org-mode allows to skip the argument of a code block header argument if
11485 it's toggling a value. Argument-less headers are now recognized,
11486 avoiding weird parsing errors.
11487 + Fix markup parsing in headers (Albert Krewinkel, #2504).
11488 Markup as the very first item in a header wasn't recognized. This was
11489 caused by an incorrect parser state: positions at which inline markup
11490 can start need to be marked explicitly by changing the parser state.
11491 This wasn't done for headers. The proper function to update the state
11492 is now called at the beginning of the header parser, fixing this issue.
11493 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
11494 Smart quotes, ellipses, and dashes should behave like normal quotes,
11495 single dashes, and dots with respect to text markup parsing.
11496 + Require whitespace around definition list markers (#2518).
11497 This rule was not checked before, resulting in bugs with footnotes
11498 and some link types.
11502 + Pipe tables with long lines now get relative cell widths (#2471).
11503 If a pipe table contains a line longer than the column width (as set by
11504 `--columns` or 80 by default), relative widths are computed based on the
11505 widths of the separator lines relative to the column width. This should
11506 solve persistent problems with long pipe tables in LaTeX/PDF output, and
11507 give more flexibility for determining relative column widths in other
11508 formats, too. For narrower pipe tables, column widths of 0 are used,
11509 telling pandoc not to specify widths explicitly in output formats that
11511 + Improved parser for `mmd_title_block`. We now allow blank metadata
11512 fields. These were explicitly disallowed before.
11513 + Citation keys can now contain `://`, so URLs and DOIs can be used
11514 as citation keys (jgm/pandoc-citeproc#166).
11516 * Beamer template: fix incompatibility of section slides with natbib.
11517 Natbib (and presumably biblatex) bibliography commands create
11518 their own section. Since these are in frame environments,
11519 we have an incompatibility with the `\AtBeginSection` macro
11520 which creates a special frame when a new section occurs.
11521 (We can't have a frame inside another frame.) This change disables
11522 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
11523 bringing the problem to my attention. This supersedes #145. See
11526 * Textile reader: don't do smart punctuation unless explicitly asked
11527 (#2480). Note that although smart punctuation is part of the textile
11528 spec, it's not always wanted when converting from textile
11529 to, say, Markdown. So it seems better to make this an option.
11531 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
11532 The `comment` environment is handled in a similar way to the
11533 `verbatim` environment, except that its content is discarded.
11535 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
11536 Jesse Rosenthal). This fixes a problem with links in notes.
11538 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
11539 (mb21). For LaTeX, also collect `lang` and `dir` attributes on spans and
11540 divs to set the `lang`, `otherlangs` and `dir` variables if they aren’t set
11545 + Use proper command for `\textarabic` (mb21).
11546 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
11547 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
11548 to link to Div or Span elements. We now don't bother defining `\label`
11549 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
11550 + Avoid footnotes in list of figures (#1506).
11551 + Properly handle footnotes in captions (#1506).
11552 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
11553 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
11554 `toccolor` is set (#2508).
11556 * Textile writer: support start number in ordered lists (#2465).
11558 * OpenDocument writer: Allow customization of opendocument
11559 automatic styles. Automatic styles can now be inserted in the
11560 template, which now provides the enclosing `<office:automatic-styles>`
11563 * Docx writer: insert space between footnote reference and note (#2527).
11564 This matches Word's default behavior.
11566 * EPUB writer: don't download linked media when `data-external` attribute
11567 set (#2473). By default pandoc downloads all linked media and includes it
11568 in the EPUB container. This can be disabled by setting `data-external` on
11569 the tags linking to media that should not be downloaded. Example:
11571 <audio controls="1">
11572 <source src="http://www.sixbarsjail.it/tmp/bach_toccata.mp3"
11573 type="audio/mpeg"></source>
11576 * HTML writer: use width on whole table if col widths sum to < 100%.
11577 Otherwise some browsers display the table with the columns
11578 separated far apart.
11580 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
11581 `abstract` (Andrew Dunning).
11583 * HTML-based templates (Andrew Dunning):
11585 + Use en dash instead of hyphen between title prefix and title.
11586 + Add `keywords` to metadata.
11587 + Add `lang`, `dir`, `quotes` where missing.
11588 + Always make author and date display conditional.
11589 + Updated dzslides template from source.
11591 * Man template: make "generated by" comment conditional.
11593 * LaTeX, Beamer templates:
11595 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
11596 filled by commands that make babel understand the polyglossia-style
11597 language directives (mb21, #137).
11598 + Improved formatting of conditionals; `$for$` is always provided to allow
11599 multiple options (Andrew Dunning, #141).
11600 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
11601 to improve support for LuaTeX (Andrew Dunning, #135).
11602 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
11603 - use same options for all LaTeX engines;
11604 - add `subtitle` and `keywords` to PDF metadata;
11605 - do not override `hyperref` link coloring without user input, effectively making
11606 the `hidelinks` option the default (removed as a separate variable);
11607 - link colors can be enabled (using a slightly darker version of the old
11608 defaults) using a new `colorlinks` variable, automatically used by
11609 the LaTeX writer when custom colors are specified;
11610 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
11611 `colorlinks`, and is only applied if `colorlinks` is disabled.
11613 * ConTeXt template (Andrew Dunning):
11615 + New variables for controlling styles: `linkstyle`, `linkcolor`,
11616 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
11617 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
11618 `monofont`, `mathfont`, `fontsize`.
11619 + Default template no longer supports MkII.
11620 + Improve writing of title block (suppressing numbering of first page).
11621 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
11622 + Support `subtitle`, `abstract`.
11623 + Support list of figures (`lof`), list of tables (`lot`).
11624 + Disable link styling by default.
11625 + Define styles for all section types.
11626 + Enable microtype.
11627 + Improved formatting of conditionals.
11629 * Beamer template: added code to prevent slide breaks inside paragraphs
11630 (#2422, thanks to Nick Bart). This will matter, in practice, only when
11631 `allowframebreaks` is used. It is especially helpful for bibliography
11634 * OpenDocument template: Add `<office:automatic-styles>` tag around
11635 automatic styles. The writer now longer provides this (see #2520).
11637 * Restored Text.Pandoc.Compat.Monoid.
11639 * Do not export (<>) from custom Prelude. The Prelude now matches
11640 base 4.8 Prelude's API.
11642 * Don't use custom prelude with ghc 7.10. Use the custom prelude
11643 only for earlier versions. This change makes `stack ghci` and
11644 `cabal repl` work (#2503), at least with ghc 7.10.
11646 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
11647 This prevents problems building haddocks with "C" locale.
11649 * Change default for old-locale flag to False.
11651 * Use stack in deb, osx, and Windows package generators.
11653 * Added Vagrantfile for building deb in vm.
11654 This should help in automating binary package creation. 'make package'
11655 will make the package. 'make package COMMIT=blah' will make the package
11660 + Consistent capitalization for pandoc and Markdown.
11661 + Fixed `auto_identifiers` examples (Benoit Schweblin).
11662 + Improved documentation of template variables (Andrew Dunning).
11664## pandoc 1.15.1 (2015-10-15)
11666 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
11667 and reexported from `Text.Pandoc` (Alex Vong). This allows
11668 writers to access it. (Alex Vong) (API change)
11670 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
11671 `subscripts` (#2401).
11673 * Added `odt` as input format (MarLinn). Added new module
11674 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
11675 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
11676 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
11677 Partly implemented features: Citations, Tables.
11681 + Add basic tests for each header style (Ophir Lifshitz).
11682 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
11683 + Skip spaces in headers (Ophir Lifshitz).
11684 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
11685 `# Header {id="myid" class="foo bar"}`
11686 is now equivalent to `# Header {#myid .foo .bar}`.
11687 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
11688 (Kristof Bastiaensen)
11689 + Pipe tables: allow indented columns. Previously the left-hand column
11690 could not start with 4 or more spaces indent. This was inconvenient
11691 for right-aligned left columns. Note that the first (header column)
11692 must still have 3 or fewer spaces indentation, or the table will be
11693 treated as an indented code block.
11694 + Fix regression: allow HTML comments containing `--`.
11695 Technically this isn't allowed in an HTML comment, but
11696 we've always allowed it, and so do most other implementations.
11697 It is handy if e.g. you want to put command line arguments
11702 + Don't eat excess whitespace after macros with only optional
11704 + Support longtable (#2411).
11705 + Implement `\Cite` (#2335).
11706 + Support abstract environment. The abstract populates an
11707 `abstract` metadata field.
11708 + Properly handle booktabs lines. Lines aren't part of the
11709 pandoc table model, so we just ignore them (#2307).
11713 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
11714 + Updated for new automatic header attributes.
11715 + Add auto identifiers if not present on headers. This makes
11716 TOC linking work properly.
11717 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
11718 + Test `<ol>` type, class, and inline list-style(-type) CSS
11720 + Better handling of "section" elements (#2438). Previously
11721 `<section>` tags were just parsed as raw HTML blocks. With
11722 this change, section elements are parsed as Div elements with
11723 the class "section".
11725 * MediaWiki reader: handle unquoted table attributes (#2355).
11729 + Added proper support for DocBook `xref` elements (Frerich Raabe).
11730 Added `dbContent` field to reader state, so we can lookup
11732 + Handle `informalexample` (#2319).
11736 + Create special punctuation test (Ophir Lifshitz).
11737 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
11738 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
11739 in `headers.docx` with pandoc's current `styles.xml`, which
11740 contains styles for Heading 1 through 6. Added Heading 4
11741 through 7 to the test document. Note that Heading 7 is not
11742 parsed as a Heading because there is no Heading 7 style.
11744 * RST reader: better handling of indirect roles.
11745 Previously the parser failed on this kind of case
11747 .. role:: indirect(code)
11749 .. role:: py(indirect)
11754 Now it correctly recognizes `:py:` as a code role.
11758 + Add auto identifiers if not present on headers
11759 (#2354, Juliusz Gonera).
11760 + Allow verse blocks to contain empty lines (#2402,
11763 * EPUB reader: stop mangling external URLs (#2284).
11767 + Don't insert `\ ` when complex expression in matched pairs.
11768 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
11769 + Ensure that `\ ` is inserted when needed before Cite and Span
11770 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
11771 + Normalize headers only in "standalone" mode (#2394).
11773 * Haddock writer: escape `*` and `^` (G. Bataille).
11777 + In TOC, add links to headers (#829).
11778 + Use unicode super/subscripts for digits in plain output
11779 (when the `superscripts` and `subscripts` extensions are
11784 + Moved invalid character stripping to `formattedString`.
11785 This avoids an inefficient generic traversal (#2356).
11786 + Use user data directory for `reference.docx` archive.
11787 This allows the test suite to work without installing pandoc first.
11788 It also brings the docx writer in line with the odt writer.
11789 + Tests: docx writer tests now use `../data` for data directory.
11790 This allows tests to be run without installing first.
11791 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
11795 + Fixed detection of 'chapters' from template.
11796 If a documentclass isn't specified in metadata, but the
11797 template has a hardwired bookish documentclass, act as if
11798 `--chapters` was used. This was the default in earlier
11799 versions, but it has been broken for a little while.
11800 + Correctly recognize book documentclass in metadata (#2395).
11801 + Set language-related variables automatically, depending
11802 on the value of the `lang` field, which is now always
11803 assumed to be in BCP47 format (mb21, #1614, #2437).
11804 + Add `\protect` to `\hyperdef` in inline context. This way we
11805 don't get an error when this is used as a moveable argument (#2136).
11806 + Support all frame attributes in Beamer.
11807 + Percent-encode more special characters in URLs (#1640, #2377).
11808 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
11812 + Update KaTeX JS and CSS versions (Emily Eisenberg).
11813 + For dzslides, add `role="note"` for speaker notes (#1693).
11814 + Percent-encode more special characters in URLs (#1640, #2377).
11815 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
11816 + Render Div with class `section` as `<section>` in HTML5.
11820 + In TOC, replace literal `<br/>` with space (#2105).
11821 + With `--webtex`, include image file rather than `data:` URI (#2363).
11823 * Native writer: format Div properly, with blocks separated.
11825 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
11830 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
11831 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
11835 + Beamer: Add `innertheme`, `outertheme` variables
11836 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
11837 Integrate recent font and language updates from LaTeX template;
11838 allow use of `mainfont` variable for changing the slide text
11839 in XeTeX and LuaTeX (Andrew Dunning, #131).
11840 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
11841 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
11842 (Andrew Dunning, #122). Support handling of bidirectional
11843 text (mb21, #120). Improve reliability of superscripts/subscripts
11844 under XeTeX and prevent letters and numbers from appearing on a
11845 different baseline by removing use of the `realscripts` package
11846 (via `xltxtra`). To restore use of OpenType characters for these
11847 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
11848 `header-includes` (Andrew Dunning, #130). Remove redundant
11849 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
11850 `indent`, `subparagraph` variables (Andrew Dunning).
11851 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
11852 #113). Prevent package clash with `tufte-latex` and other classes that
11853 include `hyperref` or `color` (Xavier Olive, #115).
11854 + ConTeXt: Support handling of bidirectional text (mb21, #120).
11855 + LaTeX and ConTeXt: Use more specific language variables.
11856 Instead of directly using `lang`, we now use `babel-lang` and
11857 `polyglossia-lang` and `context-lang`. These variables are set by
11858 the writers to the necessary values, based on the `lang` variable
11859 (which now always takes a value in BCP47 format). (mb21, #114, #129).
11860 + HTML: Support handling of bidirectional text (mb21, #120).
11861 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
11862 Add dir attribute in html5 (Andrew Dunning).
11863 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
11864 Add `width`, `height` variables (Anrew Dunning). Update template
11865 from 3.1 source (Andrew Dunning). All configuration options are now
11866 available as variables, but are only be included if set (reveal.js
11867 uses defaults otherwise).
11868 + man: Added comment stating that the page is autogenerated by pandoc,
11869 giving version. Added `adjusting` and `hyphenate` variables
11872 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
11874 * MediaBag: ensure that `/` is always used as path separator.
11876 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
11878 * Added `--bash-completion` option. This generates a bash completion
11879 script. To use: `eval "$(pandoc --bash-completion)"`.
11881 * Text.Pandoc.Error: Define Typeable and Exception instances
11882 for PandocError (#2386).
11884 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
11885 This makes keys with extra space at the beginning and end
11892 will now be a link to bar (it wasn't before).
11894 * Text.Pandoc: disable `auto_identifiers` for epub.
11895 The epub writer inserts its own auto identifiers;
11896 this is more complex due to splitting into "chapter" files.
11898 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
11899 It now reexports Data.Time.
11901 * Use custom Prelude to avoid compiler warnings.
11903 + The (non-exported) prelude is in prelude/Prelude.hs.
11904 + It exports Monoid and Applicative, like base 4.8 prelude,
11905 but works with older base versions.
11906 + It exports (<>) for mappend.
11907 + It hides 'catch' on older base versions.
11909 * Added a `stack.ymal` and stack install instructions to INSTALL.
11911 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
11913 * Added note to CONTRIBUTING.md about ghc versions and travis.
11915 * Clarify docs on block quotes. The space after `>` is optional (#2346).
11917 * Removed obsolete reference to default.csl (#2372).
11919 * List all styles in manual for `--reference-docx` (Chris Black)
11921 * Don't capitalize header links in man page.
11923 * Added section on repl to CONTRIBUTING.md.
11925 * README: Added space after backslash in image example (#2329).
11927 * Document details of citation locator terms (Nick Bart).
11929 * Fixed some internal links in README (#2309).
11931 * Improve CSL documentation, variables documentations,
11932 links, and cross-references in README. (Andrew Dunning)
11934 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
11936 * Use `newManager` instead of `withManager` in recent `http-client`.
11937 This avoids a deprecation warning.
11939 * Allow building with latest versions of http-types,
11940 HUnit, criterion, syb, aeson.
11942 * Updated benchmark program for new criterion API.
11944 * Setup.hs: rewrite so as not to use process, directory, filepath.
11945 Using anything outside base is dangerous, since older
11946 versions of ghc may link against two different versions.
11948 * Added appveyor (Windows continuous integration) builds.
11950 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
11951 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
11952 `make .travis.yml` regenerates it based on the tested-with
11953 field of the cabal file.
11955## pandoc 1.15.0.6 (2015-07-15)
11957 * `--self-contained`: Fixed overaggressive CSS minimization
11958 (#2301, 2286). Previously `--self-contained` wiped out all
11959 spaces in CSS, including semantically significant spaces.
11960 This was a regression from 1.14.x.
11962 * Markdown reader: don't allow bare URI links or autolinks in link
11963 label (#2300). Added test cases.
11965 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
11966 Previously we disallowed `-` at the end of an autolink,
11967 and disallowed the combination `=-`. This commit liberalizes the
11968 rules for allowing punctuation in a bare URI, and adds test cases.
11969 One potential drawback is that you can no longer put a bare
11970 URI in em dashes like this:
11971 `this uri---http://example.com---is an example.`
11972 But in this respect we now match github's treatment of bare URIs.
11974 * HTML writer: support speaker notes in dzslides.
11975 With this change `<div class="notes">` and also `<div class="notes"
11976 role="note">` will be output if `-t dzslides` is used. So we can
11977 have speaker notes in dzslides too. Thanks to maybegeek.
11979 * Updated dzslides template.
11981 * Improved documentation of options to print system default files (#2298).
11982 `--print-default-data-file` and `--print-default-template`.
11984 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
11985 (Tiziano Müller). MathJax seems currently to be the only maintained
11986 math rendering extension for DokuWiki.
11988 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
11989 div as top-level header (#2294). This fixes a bug with `--section-divs`,
11990 where the final references section added by pandoc-citeproc, enclosed in
11991 its own div, got nested in the div for the section previous to it.
11993 * Allow vector 0.11.
11995 * Require cmark > 0.4.
11997## pandoc 1.15.0.5 (2015-07-10)
11999 * HTML writer: Fixed email javascript obfuscation with `mailto:`
12000 URLs (#2280). This fixes a potential security issue. Because
12001 single quotes weren't being escaped in the link portion, a
12002 specially crafted email address could allow javascript code injection.
12004 * RST reader: allow inline formatting in definition list field
12005 names (Lars-Dominik Braun).
12007 * PDF: Make sure `--latex-engine-opt` goes before the filename
12008 on the command line. LaTeX needs the argument to come after
12009 the options (#1779).
12011 * CommonMark writer: fixed tags used for super/subscript.
12013 * ConTeXt template: activate hanging indent for definition lists
12016 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
12017 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
12018 to include `hsb2hs` in Build-Tools in cabal.
12020 * Improved Windows installer (thanks to nkalvi).
12022 + When per-machine installation is chosen, the system path
12023 is updated instead of the user's.
12024 + An appropriate default is used for per-machine installation
12026 + Admin privileges are no longer required for a per-user install
12028 * Travis: unpack sdist for build to catch packaging bugs.
12030 * Improved documentation on where user templates go (#2272).
12032## pandoc 1.15.0.4 (2015-07-03)
12034 * Added pandoc.1 man page to the repository. It is no longer
12035 built as part of the cabal build process. (This proved too
12036 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
12037 when `README` is changed.
12039 * Copying of the man page now respects `--destdir` (#2262).
12041 * Improved error messages for filters. User is now informed if
12042 the filter requires an interpreter that isn't found in the path,
12043 or if the filter returns an error status.
12045## pandoc 1.15.0.3 (2015-07-02)
12047 * Ensure target directory is created when installing man page.
12049## pandoc 1.15.0.2 (2015-07-02)
12051 * Added files needed for building man page to Extra-Source-Files.
12053## pandoc 1.15.0.1 (2015-07-01)
12055 * Man page is now built and installed as part of the cabal build
12056 process. Removed Makefile target for man page.
12058## pandoc 1.15 (2015-07-01)
12060 * Man page changes:
12062 + Removed `--man1`, `--man5` options (breaking change).
12063 + Removed `Text.Pandoc.ManPages` module (breaking API change).
12064 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
12065 create the man page from README using a custom template and filters.
12066 + Added `man/` directory with template and filters needed to build
12068 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
12069 Now there is just pandoc.1, which has all the content from README.
12070 This change was needed because of the extensive cross-references
12071 between parts of the README.
12072 + Removed old `data/pandoc.1.template` and
12073 `data/pandoc_markdown.5.template`.
12075 * OpenDocument writer: Do not add a carriage return after a hard
12076 line break (Michael Chladek).
12080 + use `\goto` for internal links.
12081 + Added a `%` at end for `\reference` to avoid spurious space.
12083 * Ignore sandbox on 'make quick'
12085## pandoc 1.14.1 (2015-06-30)
12087 * Added `--man1` and `--man5` options to pandoc, allowing
12088 pandoc to generate its own man pages. Man pages are no longer
12089 automatically generated in the build process (the process for
12090 this was too complex and prone to failure, #2190). The
12091 `make-pandoc-man-pages` executable has been removed. The
12092 `man/` directory has been removed, and man page templates
12093 have been moved to `data/`. NOTE TO PACKAGERS: You will no
12094 longer find pandoc's man pages in `man/`, but you can
12095 generate them using `pandoc --man1 > pandoc.1` and `pandoc
12096 --man5 > pandoc_markdown.5`.
12098 * Added new unexported module: `Text.Pandoc.ManPages`.
12100 * `README` now acts like a data file (even though it isn't in
12101 `data/`). So, for example, `pandoc --print-default-data-file README`
12102 will produce the README.) This change was required for the `--man1`
12103 and `--man5` options, since the man pages are produced from the
12104 README, but it may be useful for other purposes as well.
12106 * Allow `reference.docx` and `reference.odt` to be used with
12107 `--print-default-data-file` and to shadow defaults if placed in
12108 the user data directory. Note that as of 1.14, we no longer
12109 include these files as data files; instead, we include their
12110 components. This change causes pandoc to behave as if it has
12111 these data files; they are constructed on demand when needed
12112 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
12114 * Fixed regression in CSS parsing with `--self-contained` (#2224).
12115 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
12116 silently drops big sections of CSS. This commit replaces the
12117 use of css-text with a small but principled CSS preprocessor,
12118 which removes whitespace and comments and replaces `url()` with
12119 base 64 data when possible.
12121 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
12122 This will allow math to work when pages are being viewed locally.
12124 * `Text.Pandoc.Options`: Export `plainExtensions`.
12125 These are the extensions used in `plain` output.
12127 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
12128 math mode; treat them as regular inline text. Normally these will
12129 cause an error in LaTeX, but there are contexts (e.g. `alltt`
12130 environments) where they are allowed.
12132 * HTML reader: allow `<body>` to close `<head>`.
12134 * DocBook reader: support `mediaobject`s and `figures` (#2184, mb21).
12136 * RST reader: Fix reference names with special characters
12137 (Lars-Dominik Braun).
12139 * Textile writer: escape `+` and `-` as entities (#2225).
12141 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
12143 * Plain writer: don't use symbols for super/subscript (#2237).
12144 Simplified code by using `plainExtensions`.
12146 * InDesign writer: Properly escape URLs containing more than one
12147 colon character (gohai).
12149 * Docx writer: Make sure we use dist version of `reference.docx`
12150 (and not the user's version) for certain settings. Taking some
12151 settings values from a user-supplied reference.docx can lead to
12152 corruption. This fixes a regression from the last release (#2249).
12154 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
12155 `getDefaultReferenceODT` (API change). These functions have been
12156 removed from the Docx and ODT writers.
12158 * LaTeX template (Xavier Olive):
12159 + Added `CJKmainfont` and `CJKoptions` variables.
12160 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
12162 * Epub templates: use `author.role`, not `author.type`.
12164 * Bump cmark version to >= 0.3.4.
12166 * Improved Windows installer (#2205, thanks to nkalvi).
12167 Users can now select a per-user or systemwide install, and can set
12168 the installation path. At the end of installation, the install location
12169 is given. The install location is also now given in the list of
12170 installed programs in Control Panel. Cleaner WiX syntax is used for
12173 * Added `download_stats` target to Makefile.
12175## pandoc 1.14.0.4 (2015-06-02)
12177 * Added missing commonmark template.
12179 * Improved try pandoc (moved button, show raw command).
12181## pandoc 1.14.0.3 (2015-06-01)
12183 * Allow compilation with syb 0.5.*.
12185 * Custom writer: fixed some compiler warnings for ghc < 7.10.
12187## pandoc 1.14.0.2 (2015-05-31)
12189 * Allow building with hslua 0.4.
12191## pandoc 1.14.0.1 (2015-05-28)
12193 * Fixed problem with building of `reference.docx` and `reference.odt`
12194 when the `embed_data_files` flag is used. Instead of having a phase
12195 of the build where `reference.docx` and `reference.odt` are created
12196 from their constituent data files, we now construct these archives
12197 from their constituents when a `docx` or `odt` is built. The
12198 constituent files have been moved from `extra-source-files` to
12199 `data-files`, and `reference.docx` and `reference.odt` have been
12200 removed. Users can create their own `reference.docx` or
12201 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
12202 `make-reference-files.hs` has been removed, simplifying the build
12205 * Don't include generated man pages in extra-source-files (#2189).
12207 * Bumped upper bound for aeson.
12209 * ConTeXt writer: create internal link anchors for Div elements with
12210 identifiers. (This is needed for linked citations to work.)
12212## pandoc 1.14 (2015-05-27)
12216 * Added `commonmark` as input and output format.
12218 * Added `--verbose` flag for debugging output in PDF production (#1840,
12221 * Allow wildcards in `--epub-embed-font` arguments (#1939).
12223 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
12225 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
12226 This is enabled by default for those markdown flavors that
12227 support reading shortcut reference links, namely: `markdown`,
12228 `markdown_strict`, `markdown_github`, `markdown_php`.
12229 If the extension is enabled, the reader parses shortcut reference
12230 links like `[foo]`, and the writer creates such links unless doing
12231 so would cause problems. Users of markdown flavors that support
12232 shortcut reference links should not notice a difference in reading
12233 markdown, but the markdown pandoc produces may differ.
12234 If shortcut links are not desired, the extension can be disabled
12237### Behavior changes
12239 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
12240 A "dirty" TOC is created at the beginning of document.
12241 It can be regenerated after the document has been opened.
12243 * An implicit `--filter pandoc-citeproc` is now triggered only when the
12244 `--bibliography` option is used, and not when the `bibliography`
12245 field in metadata is specified (#1849).
12249 + Reference links with `implicit_header_references` are no longer
12250 case-sensitive (#1606).
12251 + Definition lists no longer require indentation for first line (#2087).
12252 Previously the body of the definition (after the `:` or `~` marker)
12253 needed to be in column 4. This commit relaxes that requirement,
12254 to better match the behavior of PHP Markdown Extra. So, now
12255 this is a valid definition list:
12259 + Resolve a potentially ambiguity with table captions:
12269 Is "bar" a definition, or the caption for the table? We'll count
12270 it as a caption for the table.
12271 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
12272 Markdown Extra. Note: If you have been using headerless pipe tables,
12273 this change may cause existing tables to break.
12274 + Allow pipe tables with header but no body (#2017).
12275 + Allow a digit as first character of a citation key (Matthias Troffaes).
12276 See https://github.com/jgm/pandoc-citeproc/issues/97
12280 + Don't limit includes to `.tex` extension (#1882).
12281 If the extension is not `.tex`, it must be given explicitly in
12282 the `\input` or `\include`.
12286 + Allow numbering in the style file. This allows inherited styles
12287 with numbering (lists) (Jesse Rosenthal).
12291 + Support smart punctuation (Craig Bosma).
12292 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
12293 `:noexport:` tag set are not exported. This mirrors org-mode.
12294 + Put header tags into empty spans (Albert Krewinkel, #2160).
12295 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
12296 Instead of being interpreted as part of the headline, the tags are now
12297 put into the attributes of empty spans. Spans without textual content
12298 won't be visible by default, but they are detectable by filters. They
12299 can also be styled using CSS when written as HTML.
12300 + Generalize code block result parsing (Albert Krewinkel).
12301 Previously, only code blocks were recognized as result blocks;
12302 now, any kind of block can be the result.
12304 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
12305 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
12309 + Add "inline" or "display" class to math spans (#1914).
12310 This allows inline and display math to be styled differently.
12311 + Include raw latex blocks if `--mathjax` specified (#1938).
12312 + Require highlighting-kate >= 0.5.14 (#1903).
12313 This ensures that all code blocks will be wrapped in a `div`
12314 with class `sourceCode`. Also, the default highlighting CSS
12315 now adds `div.sourceCode { x-overflow: auto; }`, which means
12316 that code blocks (even with line numbers) will acquire a scroll
12317 bar on screens too small to display them (e.g. mobile phones).
12318 See also jgm/highlighting-kate#65.
12322 + Use a declaration for tight lists (Jose Luis Duran, Joseph
12323 Harriott). Previously, pandoc hard-coded some commands to make
12324 tight lists in LaTeX. Now we use a custom command instead,
12325 allowing the styling to be changed in a macro in the header.
12326 (Note: existing templates may need to be modified to include
12327 the definition of this macro. See the current template.)
12328 + Beamer output: if the header introducing a slide has the
12329 class `fragile`, add the `[fragile]` option to the slide (#2119).
12331 * MediaWiki writer:
12333 + Use `File:` instead of the deprecated `Image:` for images and
12334 other media files (Greg Rundlett).
12338 + Render a `Div (id,_,_) [Para _]` element as a `para` element
12339 with an `id` attribute. This makes links to citations work in
12340 DocBook with pandoc-citeproc.
12344 + Normalize headings to sequential levels (Nikolay Yakimov).
12345 This is pretty much required by docutils.
12346 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
12347 + Better handling of raw latex inline (#1961). We use
12348 `` :raw-latex:`...` `` and add a definition for this role to
12353 + Remove `linear=no` from cover `itemref` (#1609).
12354 + Don't use `sup` element for epub footnotes (#1995).
12355 Instead, just use an a element with class `footnoteRef`.
12356 This allows more styling options, and provides better results
12357 in some readers (e.g. iBooks, where anything inside the a
12358 tag breaks popup footnotes).
12359 + Take TOC title from `toc-title` metadata field.
12363 + Implemented `FirstParagraph` style (Jesse Rosenthal).
12364 Following the ODT writer, we add the `FirstParagraph` style to the
12365 first text paragraph following an image, blockquote, table, heading,
12366 or beginning of document. This allows it to be styled differently.
12367 The default is for it to be the same as `Normal`.
12368 + Added `BodyText` style (Jesse Rosenthal).
12369 We apply a `BodyText` style to all unstyled paragraphs. This is,
12370 essentially, the same as `Normal`, except that since not everything
12371 inherits from `BodyText` (the metadata won't, for example, or
12372 the headers or footnote numbers), we can change the text in the body
12373 without having to make exceptions for everything. If we do want to
12374 change *everything*, we can still do it through `Normal`.
12375 + Altered `Blockquote` style slightly (Jesse Rosenthal).
12376 Since `BlockQuote` derives from `BodyText`, we just want to specify
12377 by default that it won't indent, regardless of what `BodyText` does.
12378 Note that this will not produce any visible difference in the default
12380 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
12381 + Added a style to figure images (Nikolay Yakimov).
12382 Figures with empty captions use style `Figure`.
12383 Figures with nonempty captions use style `Figure with Caption`, which
12384 is based on `Figure`, and additionally has `keepNext` set.
12388 + Added figure captions (Nikolay Yakimov). The following styles are
12390 `Figure` -- for figure with empty caption),
12391 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
12392 `FigureCaption` (based on `Caption`) -- for figure captions.
12393 Also, `TableCaption` (based on `Caption`) is used for table captions.
12397 * New `Text.Pandoc.Error` module with `PandocError` type
12398 (Matthew Pickering).
12400 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
12401 (Matthew Pickering). This allows better handling of errors.
12403 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
12405 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
12407 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
12408 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
12409 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
12412 * New `Ext_shortcut_reference_links` constructor for `Extension`
12413 (Konstantin Zudov).
12419 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
12420 + Check for tex macros after indented code (#1973).
12421 + Rewrote `charsInBalancedBrackets` for efficiency.
12422 + Make sure a closing `</div>` doesn't get included in a
12423 definition list item (#2127).
12424 + Don't parse bracketed text as citation if it might be a link,
12425 image, or footnote (Nikolay Yakimov).
12426 + Require space after key in mmd title block (#2026, Nikolay
12427 Yakimov). Require space after key-value delimiter colon in mmd title
12429 + Require nonempty value in mmd title block (Nikolay Yakimov).
12430 + Disable all metadata block extensions when parsing
12431 metadata field values (#2026, Nikolay Yakimov). Otherwise we
12432 could get a mmd title block inside YAML metadata, for example.
12436 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
12437 + Handle tables with `<th>` in body rows (#1859, mb21).
12438 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
12439 to see if the input starts with `<!--`. If not, it's bogus comment
12440 mode and we fail `htmlTag`.
12441 + Handle `base` tag; if it has an `href` value, this is added to
12442 all relative URLs in links and images.
12446 + Look inside "info" elements for section titles (#1931).
12450 + Parse images in deprecated vml format (Jesse Rosenthal).
12451 + Allow sub/superscript verbatims (Jesse Rosenthal).
12452 Verbatim usually shuts off all other run styles, but we don't want it
12453 to shut off sub/superscript.
12457 + Handle `tabular*` environment (#1850).
12458 Note that the table width is not actually parsed or taken into
12459 account, but pandoc no longer chokes on it.
12460 + Ignore options in `\lstinline` rather than raising error (#1997).
12461 + Add some test cases for simple tables (Mathias Schenner).
12462 + Handle valign argument in tables (Mathias Schenner) (currently
12463 we just ignore this).
12464 + Allow non-empty colsep in tables (Mathias Schenner).
12465 The `tabular` environment allows non-empty column separators
12466 with the "@{...}" syntax. Previously, pandoc would fail to
12467 parse tables if a non-empty colsep was present. With this
12468 commit, these separators are still ignored, but the table gets
12469 parsed. A test case is included.
12470 + Recognize `\newpage` as a block command.
12471 + Allow block content in `\title{}` (#2001).
12472 + Check for block-level newcommand aliases in blockCommand (Nikolay
12474 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
12475 + Properly gobble spaces after `\\` (#2007).
12479 + Handle newlines in table cells, and empty cells (#1919).
12483 + Allow image links with non-image targets (Hans-Peter Deifel).
12484 This matches behavior of Org-Mode for links like
12485 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
12489 + Don't print empty id attributes (thanks to Steve Horne).
12493 + Fixed list-style-type for numbered example lists.
12494 Should be "decimal," not "example" (#1902).
12495 + Do not omit missing `alt` attribute on `img` tag (#1131,
12497 + Allow multiple colgroups in table (#2122).
12498 + In revealjs, ensure that lists in speaker notes don't add "fragment"
12499 classes, which can cause additional keypresses to be needed to
12500 advance a slide (#1394).
12504 + Don't escape `$` in URL (#1913).
12505 + Don't use listings in headers (Matthew Pickering, #1963).
12506 + Recognize book documentclass if set in metadata (#1971).
12507 This sets `--chapters` implicitly if the documentclass in metadata
12508 is a book documentclass. Previously this was done only if a book
12509 documentclass was set in a variable.
12510 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
12511 + Make `mainlang` work when `lang` is in metadata (#2174).
12515 + Fix wrapping by using breakable spaces (Tim Lin).
12519 + Fixed toc depth in RST writer. Previously the depth was being
12520 rendered as a floating point number with a decimal point.
12524 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
12525 compatibility with original Markdown. We now escape `<` and `>`
12526 with entities. Also, we now backslash-escape square brackets.
12527 + Avoid introducing spurious list items through wrapping (#1946).
12528 + Don't emit span tags if plain or raw HTML disabled.
12530 * MediaWiki writer:
12532 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
12536 + Insert some needed blank lines (#1860).
12537 + Avoid wrapping after list marker (#1858).
12541 + Properly handle internal links to IDs in spans, divs (#1884).
12542 + Use plain writer for metadata dc: fields (#2121).
12543 This gives better results when we have, e.g. multiple paragraphs.
12544 Note that tags aren't allowed in these fields.
12545 + Properly handle image links without an extension (#1855).
12546 + Improved chapter splitting and internal link rewriting (#1887,
12547 #2162, #2163). This will ensure that internal links work and
12548 that the references section produced by pandoc-citeproc is
12549 in its own chapter.
12550 + Fixed handling of svg images (#2183).
12554 + Better handling of raw blocks and inlines (#1951).
12555 Previously these were always escaped and printed verbatim.
12556 Now they are ignored unless the format is `icml`, in which
12557 case they are passed through unescaped.
12558 + Fixed image URIs in ICML output (gohai).
12562 + Raise error if loadstring returns an error status.
12563 + Raise `PandocLuaException` instead of using 'error'.
12564 Eventually we'll change the return type so that no exception
12565 is involved, but at least this can be trapped.
12566 + Use UTF-8 aware bytestring conversion.
12567 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
12568 Also factored out ByteString, since it's only used as an intermediate
12573 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
12574 + Filter out illegal XML characters (#1992, Matthew Pickering).
12575 + Added `noProof` to docx syntax highlighting `SourceCode` style.
12576 + Added footnotes id -1 and 0 (Jesse Rosenthal).
12577 Word uses, by default, footnotes with id -1 and 0 for separators. If a
12578 user modifies `reference.docx`, they will end up with a `settings.xml`
12579 file that references these footnotes, but no such footnotes in the
12580 document. This will produce a corruption error. Here we add these to the
12581 document and `settings.xml` file, so future modifications won't break
12583 + Handle lists correctly inside table cells (Jesse Rosenthal).
12584 Previously we didn't transform lists inside table cells.
12585 + Set firstRow information in tables (Nikolay Yakimov).
12586 + Don't replace `SourceCode` style in `reference.docx` if it is defined
12587 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
12588 any `SourceCode` and `*Tok` styles in `reference.docx`.
12589 + Attempt to match international style names (#1607, Nikolay Yakimov).
12590 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
12591 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
12592 `Definition`, `First Paragraph`.
12593 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
12594 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
12595 `Footnote Ref -> Footnote Reference`.
12596 + Added `Caption` style (Nikolay Yakimov).
12597 + Changed these styles' inheritance (Nikolay Yakimov):
12598 `Image Caption <- Caption`, `Table Caption <- Caption`.
12599 + Remove `SourceCode` style from `reference.docx` (#1872).
12600 This is added automatically by the docx writer.
12601 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
12603 * `Text.Pandoc.PDF`
12605 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
12606 + More comprehensible errors on image conversion (#2067).
12607 EPS can't be supported without shelling out to something like
12608 ImageMagick, but at least we can avoid mysterious error messages.
12610 * `Text.Pandoc.Shared`:
12612 + Make safeRead safe (#1801, Matthew Pickering).
12613 + Added `mapLeft`, `hush` (Matthew Pickering).
12615 * `Text.Pandoc.Pretty`:
12617 + Remove partial function (Matthew Pickering).
12619 * `Text.Pandoc.SelfContained`:
12621 + Add `;charset=utf-8` to script mime type if missing (#1842).
12622 + Improved building of data URIs (#1940). Now base64 is used except
12623 for `text/*` mime types.
12624 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
12625 + Properly handle data URIs in css urls (#2129).
12626 Use a proper CSS parser (adds dependency on `text-css`).
12628 * `Text.Pandoc.UTF8`:
12630 + Better handling of bare CRs in input files (#2132).
12631 Previously we just stripped them out; now we convert
12632 other line ending styles to LF line endings.
12634 * `Text.Pandoc.ImageSize`:
12636 + Fixed some exif header parsing bugs (#1834).
12637 + Make imageSize return an Either, not a Maybe (#1834).
12638 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
12639 parse failure (rather than `error`).
12640 + Improved warnings when image size can't be determined.
12641 + Removed error landmines (Matthew Pickering).
12643 * Added woff2 to MIME types (Alfred Wechselberger).
12645 * pandoc: When a binary input format is used, warn that file
12646 arguments past the first one are being ignored (Matthew Pickering).
12648### Template changes
12652 + Degrade gracefully if `\paragraph` not defined.
12653 + Include `grffile` together with `graphicx` (#2074).
12654 This properly handles filenames containing spaces and dots.
12655 + Redefine `\paragraph`, `\subparagraph`... to behave more
12656 like section headers (#1658).
12657 + Import hyperref before polyglossia to avoid an error with xelatex,
12658 "please load package hyperref before bidi package" (Nick Bart).
12659 + Added `toccolor` variable to control link color in toc (Kaixhin).
12661 * LaTeX, Beamer templates:
12663 + Provide `\tightlist`, which is now used by the LaTeX writer.
12664 + Use polyglossia in beamer (#85).
12665 + Use `bibliography` instead of `biblio-files`
12666 (#1661). Also use `\addbibresource` instead of `\bibliography` for
12668 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
12669 variable that is derived from a comma-separated list in `lang`;
12670 the last language is `mainlang` and the others are `otherlang`.
12674 + Use `div`, not `p`, for "rights" on title page.
12675 + Added header-includes, include-before, include-after (#1987).
12677 * OpenDocument template:
12679 + Use `text:p` instead of `text:h` for title.
12680 Using `text:h` causes problems with numbering. Closes #2059.
12681 Thanks to @nkalvi for diagnosing this.
12683 * reveal.js template:
12685 + Link to non-minified css, js. The minified versions no longer
12686 ship with the library.
12687 + Correctly include style CSS (#1949).
12688 + New configurable options options: `center`, `maxScale`, `slideNuber`
12689 (Dmitry Smirnov, pandoc-templates#89).
12690 + Moved custom CSS after theme. This allows custom CSS to modify
12691 themes, instead of being replaced by them.
12692 + Allow `center` to be set to false.
12694### Under the hood improvements
12696 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
12697 Yakimov). Instead the repository now includes the component text files,
12698 and the zipped binaries are built from these using a helper
12699 program, `make-reference-files`. This should make maintenance of
12700 these components easier going forward.
12702 * `Text.Pandoc.Parsing`:
12704 + Added new `<+?>` combinator (Nikolay Yakimov).
12705 + Added `stateHeaderKeys` to `ParserState`.
12707 * `make_deb.sh` fixes:
12709 + Detect architecture.
12710 + Add Installed-Size to debian package control file (#1900).
12711 + Use `fakeroot` to get permissions right.
12712 + Use `mkdir` and `cp` instead of `install`.
12713 + Set permissions of directories to 755.
12714 + Install in `/usr` rather than `/usr/local`.
12715 + Compress man pages.
12716 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
12718 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
12719 to assist with transition to `time` 1.5.
12721 * Updated CONTRIBUTING.md with information about issue tags (Matthew
12724 * Updated travis installs to the new sudo-less syntax (Tim Lin).
12726 * Updated dependency version bounds.
12728 * EPUB tests: don't use `joinPath`, which varies across platforms.
12729 Instead, use a forward-slash to join paths, regardless of the
12730 platform. This matches the way `MediaBag` now works.
12732 * Clarify JSON input and output in usage message (Caleb McDaniel).
12734 * Improved INSTALL instructions.
12736 * Always build man pages. Removed make-pandoc-man-pages flag.
12738 * Makefile: removed man target, now that we generate man pages by default.
12742 + Fixed typos (J. Lewis Muir).
12743 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
12744 + Added note on in-field markup in biblio databases (Nick Bart).
12745 + Fixed misleading example of raw HTML block.
12746 + Various minor formatting and consistency fixes for the program
12747 options (Andreas Lööw).
12748 + Made definition lists for options all "loose" for consistency.
12749 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
12750 `--bib2json` and `--bib2yaml` options (Nick Bart).
12751 + Removed obsolete reference to `mods2yaml` (Nick Bart).
12752 + Added section on syntax highlighting.
12753 + Documented `toccolor` variable.
12755## pandoc 1.13.2.1 (2015-04-15)
12757 * Updated to build with ghc 7.10.1.
12759 * Bumped package upper bounds for filepath, blaze-html, blaze-markup.
12761## pandoc 1.13.2 (2014-12-20)
12763 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
12767 + Better handling of paragraph in div (#1591).
12768 Previously text that ended a div would be parsed as Plain
12769 unless there was a blank line before the closing div tag.
12770 + Don't treat a citation as a reference link label (#1763).
12771 + Fix autolinks with following punctuation (#1811).
12772 The price of this is that autolinked bare URIs can no longer
12773 contain `>` characters, but this is not a big issue.
12774 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
12775 + Allow `startnum` to work without `fancy_lists`. Formerly
12776 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
12778 * RST reader (all Daniel Bergey):
12780 + Parse quoted literal blocks (#65). RST quoted literal blocks are
12781 the same as indented literal blocks (which pandoc already supports)
12782 except that the quote character is preserved in each line.
12783 + Parse RST class directives. The class directive accepts one or more
12784 class names, and creates a Div value with those classes. If the
12785 directive has an indented body, the body is parsed as the children of
12786 the Div. If not, the first block following the directive is made a
12787 child of the Div. This differs from the behavior of rst2xml, which
12788 does not create a Div element. Instead, the specified classes are
12789 applied to each child of the directive. However, most Pandoc Block
12790 constructors to not take an Attr argument, so we can't duplicate this
12792 + Warn about skipped directives.
12793 + Literal role now produces Code. Code role should have "code" class.
12794 + Improved support for custom roles
12796 - Added `sourceCode` to classes for `:code:` role, and anything
12797 inheriting from it.
12798 - Add the name of the custom role to classes if the Inline
12799 constructor supports Attr.
12800 - If the custom role directive does not specify a parent role,
12801 inherit from the `:span:` role.
12803 This differs somewhat from the `rst2xml.py` behavior. If a custom
12804 role inherits from another custom role, Pandoc will attach both
12805 roles' names as classes. `rst2xml.py` will only use the class of
12806 the directly invoked role (though in the case of inheriting from a
12807 `:code:` role with a `:language:` defined, it will also provide the
12808 inherited language as a class).
12809 + Warn about ignored fields in role directives.
12813 + Parse label after caption into a span instead of
12814 inserting an additional paragraph of bracketed text (#1747).
12815 + Parse math environments as inline when possible (#1821).
12816 + Better handling of `\noindent` and `\greektext` (#1783).
12817 + Handle `\texorpdfstring` more gracefully.
12818 + Handle `\cref` and `\sep` (Wikiwide).
12819 + Support `\smartcite` and `\Smartcite` from biblatex.
12823 + Retain display type of MathML output (#1719, Matthew Pickering).
12824 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
12825 + Make `embed` tag either block or inline (#1756).
12829 + Handle `keycombo`, `keycap` (#1815).
12830 + Get string content in inner tags for literal elements (#1816).
12831 + Handle `menuchoice` elements better, with a `>` between (#1817).
12832 + Include `id` on section headers (#1818).
12833 + Document/test "type" as implemented (Brian O'Sullivan).
12834 + Add support for calloutlist and callout (Brian O'Sullivan).
12835 We treat a calloutlist as a bulleted list. This works well in practice.
12836 + Add support for `classname` (Bryan O'Sullivan).
12840 + Fix window path for image lookup (Jesse Rosenthal).
12841 Don't use os-sensitive "combine", since we always want the paths in our
12842 zip-archive to use forward-slashes.
12843 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
12844 When users number their headers, Word understands that as a single item
12845 enumerated list. We make the assumption that such a list is, in fact,
12847 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
12848 There could be new top-level headers after making lists, so we have to
12849 rewrite links after that.
12850 + Use polyglot header list (Jesse Rosenthal).
12851 We're just keeping a list of header formats that different languages
12852 use as their default styles. At the moment, we have English, German,
12853 Danish, and French. We can continue to add to this.
12854 This is simpler than parsing the styles file, and perhaps less
12855 error-prone, since there seems to be some variations, even within a
12856 language, of how a style file will define headers.
12857 + Remove header class properly in other langs (Jesse Rosenthal).
12858 When we encounter one of the polyglot header styles, we want to remove
12859 that from the par styles after we convert to a header. To do that, we
12860 have to keep track of the style name, and remove it appropriately.
12861 + Account for external link URLs with anchors. Previously, if a URL
12862 had an anchor, the reader would incorrectly identify it as an
12863 internal link and return only the anchor as URL. (Caleb McDaniel)
12864 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
12868 + Added state changing blanklines (Jesse Rosenthal).
12869 This allows us to emphasize at the beginning of a new paragraph (or, in
12870 general, after blank lines).
12871 + Fixed bug with bulleted lists:
12877 was being parsed as a list, even though an unindented `*`
12878 should make a heading. See
12879 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
12880 + Org reader: absolute, relative paths in link (#1741, Albert
12881 Krewinkel). The org reader was too restrictive when parsing links;
12882 some relative links and links to files given as absolute paths
12883 were not recognized correctly.
12884 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
12885 This is important for use in gitit, which uses empty links
12887 + Respect indent when parsing Org bullet lists (#1650, Timothy
12888 Humphries). Fixes issue with top-level bullet list parsing.
12889 + Fix indent issue for definition lists (Timothy Humphries,
12890 see #1650, #1698, #1680).
12891 + Parse multi-inline terms correctly in definition list (#1649,
12892 Matthew Pickering).
12893 + Fix rules for emphasis recognition (Albert Krewinkel).
12894 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
12895 strings. This is wrong, as `,` and `'` are forbidden border chars and
12896 may not occur on the inner border of emphasized text.
12897 + Drop COMMENT document trees (Albert Krewinkel).
12898 Document trees under a header starting with the word `COMMENT` are
12899 comment trees and should not be exported. Those trees are dropped
12901 + Properly handle links to `file:target` (Albert Krewinkel).
12902 Org links like `[[file:target][title]]` were not handled correctly,
12903 parsing the link target verbatim. The org reader is changed such that
12904 the leading `file:` is dropped from the link target (see #756, #1812).
12905 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
12906 Org supports special symbols which can be included using LaTeX syntax,
12907 but are actually MathML entities. Examples for this are
12908 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
12909 or `\copy` (the copyright sign ©)
12913 + URI handling improvements. Now we outsource most of the work to
12914 `fetchItem'`. Also, do not include queries in file extensions (#1671).
12918 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
12919 + Handle consecutive linebreaks (#1733).
12920 + Protect graphics in headers (Jesse Rosenthal).
12921 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
12922 + Put `~` before header in list item text (Jesse Rosenthal).
12923 Because of the built-in line skip, LaTeX can't handle a section header
12924 as the first element in a list item.
12925 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
12926 + Better handling of display math in simple tables (#1754).
12927 We convert display math to inline math in simple tables,
12928 since LaTeX can't deal with display math in simple tables.
12929 + Escape spaces in code (#1694, Bjorn Buckwalter).
12931 * MediaWiki writer:
12933 + Fixed links with URL = text. Previously these were rendered as bare
12934 words, even if the URL was not an absolute URL (#1825).
12938 + Don't force all citations into footnotes.
12942 + Add blankline at end of output (#1732, Matthew Pickering).
12946 + Ensure blank line after figure.
12947 + Avoid excess whitespace after last list item (#1777).
12948 + Wrap line blocks with spaces before continuations (#1656).
12949 + Fixed double-rendering of footnotes in RST tables (#1769).
12953 + Better handling of block quotes. This change ensures that
12954 multiple paragraph blockquotes are rendered using native `>`
12955 rather than as HTML (#1738).
12956 + Fix external images (#1739). Preface relative links with ":",
12957 absolute URIs without. (Timothy Humphries)
12961 + Use protocol-relative URL for mathjax.
12962 + Put newline btw img and caption paragraph.
12963 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
12964 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
12965 This adds `KaTeX` to `HTMLMathMethod` (API change).
12966 + Don't double render when `email-obfuscation=none` (#1625, Matthew
12968 + Make header attributes work outside top level (#1711).
12969 Previously they only appeared on top level header elements.
12970 Now they work e.g. in blockquotes.
12974 + Correctly handle images without extensions (#1729).
12975 + Strip querystring in ODT write (#1682, Todd Sifleet).
12979 + Add newline to output.
12983 + Don't add `sourceURL` to absolute URIs (#1669).
12984 + Don't use unsupported `opf:title-type` for epub2.
12985 + Include "landmarks" section in nav document for epub3 (#1757).
12986 + Removed playOrder from navpoint elements in ncx file (#1760).
12987 These aren't required, and they make manual modification of epubs
12989 + Extract title even from structured title.
12990 + Don't include nav node in spine unless `--toc` was requested.
12991 Previously we included it in the spine with `linear="no"`, leading
12992 to odd results in some readers (#1593).
12993 + Fixed absolute URI detection (#1672).
12994 + Correctly resolve relative URIs (#1671).
12995 + Use regular page template for `nav.xhtml`, including doctype (#1759).
12999 + Put docx table captions above tables (#1641, Nikolay Yakimov).
13000 + Get the page width from the reference docx file, and use
13001 it to scale images that are too large to fit (Grégory Bataille).
13002 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
13003 are inferred based on `<w:name val="heading #">` fallback, if there
13004 are no en-US "Heading#" styles
13005 + Look in user data dir for archive `reference.docx`.
13006 + Renumber header and footer relationships to avoid collisions (Jesse
13007 Rosenthal). We previously took the old relationship names of the
13008 headers and footer in secptr. That led to collisions. We now make
13009 a map of available names in the relationships file, and then rename
13014 + Add function toLabel (Mark Szepieniec).
13015 This function can be used to sanitize reference labels so that
13016 they do not contain any of the illegal characters \#[]",{}%()|= .
13017 Currently only Links have their labels sanitized, because they
13018 are the only Elements that use passed labels.
13020 * `Text.Pandoc.Shared`:
13022 + Moved import of `toChunks` outside of CPP conditional (#1590).
13023 + Fix `inDirectory` to reset to the original directory in case
13024 an exception occurs (Freiric Barral).
13028 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
13029 Thanks to bluebirch.
13030 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
13032 + LaTeX template: Add shorthands=off to babel options (#1648).
13033 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
13034 This aids styling, making it possible for example to set 0 margins
13035 on the title page (#1758).
13036 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
13037 Previously we just expected 'title', 'subtitle', 'author', 'date'.
13038 Now we still support those, but also support the format recommended
13039 for epub metadata in the pandoc README:
13046 text: An investigation of metadata
13054 text: doi:10.234234.234/33
13055 publisher: My Press
13056 rights: (c) 2007 John Smith, CC BY-NC
13059 * `Text.Pandoc.Templates.getDefaultTemplate`:
13060 don't fail when called with "fb2" (#1660).
13062 * `Text.Pandoc.Parsing`:
13064 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
13065 For example: `$x = \text{the $n$th root of $y$}` (#1677).
13066 + Change `parseFromString` to fail if not all input is consumed.
13067 (Matthew Pickering)
13068 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
13069 used by more readers (API change, Daniel Bergey).
13071 * `Text.Pandoc.Pretty`:
13073 + Improve performance of `realLength` (Matthew Pickering).
13074 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
13075 were getting at the end of markdown fragments (as well as rst, org,
13078 * `Text.Pandoc.MIME`:
13080 + Add mime type for WebVTT (Jason Ronallo).
13081 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
13082 This is needed for epub3 validation.
13084 * `Text.Pandoc.MediaBag`:
13086 + Fix Windows specific path problems (#1597).
13088 * `Text.Pandoc.Shared`:
13090 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
13092 * Link the test suite using `-threaded`.
13093 This allows the test suite to be run using `+RTS -N`.
13095 * Added `network` dependency under `network-uri` flag in test section.
13097 * Give better error messages when someone tries to convert from
13098 pdf, doc, odt (#1683).
13100 * Added `track` to list of tags treated by `--self-contained` (#1664).
13103## pandoc 1.13.1 (2014-08-30)
13105 * Fixed `--self-contained` with Windows paths (#1558).
13106 Previously `C:\foo.js` was being wrongly interpreted as a URI.
13108 * HTML reader: improved handling of tags that can be block or inline.
13109 Previously a section like this would be enclosed in a paragraph,
13110 with RawInline for the video tags (since video is a tag that can
13111 be either block or inline):
13113 <video controls="controls">
13114 <source src="../videos/test.mp4" type="video/mp4" />
13115 <source src="../videos/test.webm" type="video/webm" />
13117 The videos can not be played back on your system.<br/>
13118 Try viewing on Youtube (requires Internet connection):
13119 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
13124 This change will cause the video and source tags to be parsed
13125 as RawBlock instead, giving better output.
13126 The general change is this: when we're parsing a "plain" sequence
13127 of inlines, we don't parse anything that COULD be a block-level tag.
13131 + Be sensitive to user styles. Note that "Hyperlink" is
13132 "blacklisted," as we don't want the default underline styling to be
13133 inherited by all links by default (Jesse Rosenthal).
13134 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
13135 This makes to docx reader's native output fit with the way the markdown
13136 reader understands its markdown output.
13140 + Header is now parsed only if standalone flag is set (Matthew Pickering).
13141 + The header is now parsed as meta information. The first line is the
13142 `title`, the second is the `author` and third line is the `date`
13143 (Matthew Pickering).
13144 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
13145 + Fixed crash when reading from stdin.
13147 * Textile writer: Extended the range of cases where native textile
13148 tables will be used (as opposed to raw HTML): we now handle any
13149 alignment type, but only for simple tables with no captions.
13151 * EPUB writer: Don't use page-progression-direction in EPUB2, which
13152 doesn't support it. Also, if page-progression-direction not specified
13153 in metadata, don't include the attribute even in EPUB3; not including it
13154 is the same as including it with the value "default", as we did before.
13157 * Org writer: Accept example lines with indentation at the beginning
13162 + Refactor to use Reader monad (Matthew Pickering).
13163 + Avoid using raw HTML in table cells; instead, use `\\`
13164 instead of newlines (Jesse Rosenthal).
13165 + Properly handle HTML table cell alignments, and use spacing
13166 to make the tables look prettier (#1566).
13170 + Bibliography entries get `Bibliography` style (#1559).
13171 + Implement change tracking (Jesse Rosenthal).
13175 + Fixed a bug that caused a table caption to repeat across all pages
13177 + Improved vertical spacing in tables and made it customizable using
13178 standard lengths set by booktab. See
13179 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
13181 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
13182 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
13183 + Made horizontal rules more flexible (Jose Luis Duran).
13185 * Text.Pandoc.MIME:
13187 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
13188 Code cleanups (Artyom Kazak).
13192 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
13195 * Improved OSX build procedure.
13197 * Added `network-uri` flag, to deal with split of `network-uri` from
13200 * Fix build dependencies for the `trypandoc` flag, so that they are
13201 ignored if `trypandoc` flag is set to False (Gabor Pali).
13203 * Updated README to remove outdated claim that `--self-contained`
13204 looks in the user data directory for missing files.
13206## pandoc 1.13.0.1 (2014-08-17)
13210 + Fixed regression which bungled list numbering (#1544), causing
13211 all lists to appear as basic ordered lists.
13212 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
13213 Added a property to all table rows where the sum of column widths
13214 is specified in pct (fraction of 5000). This helps persuade Word
13215 to lay out the table with the widths we specify.
13217 * Fixed a bug in Windows 8 which caused pandoc not to find the
13218 `pandoc-citeproc` filter (#1542).
13220 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
13221 Most significantly, the reader now uses Builder, leading to some
13222 performance improvements.
13224 * HTML reader: Parse appropriately styled span as SmallCaps.
13226 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
13227 `superscript`, and `subscript` extensions, respectively, are
13228 deactivated (#1127).
13230 * Added `trypandoc` flag to build CGI executable used in the online
13233 * Makefile: Added 'quick', 'osxpkg' targets.
13235 * Updated README in templates to indicate templates license.
13236 The templates are dual-licensed, BSD3 and GPL2+.
13238## pandoc 1.13 (15 August 2014)
13242 * Added `docx` as an input format (Jesse Rosenthal). The docx
13243 reader includes conversion of native Word equations to pandoc
13244 LaTeX `Math` elements. Metadata is taken from paragraphs at the
13245 beginning of the document with styles `Author`, `Title`, `Subtitle`,
13246 `Date`, and `Abstract`.
13248 * Added `epub` as an input format (Matthew Pickering). The epub
13249 reader includes conversion of MathML to pandoc LaTeX `Math`
13252 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
13253 Txt2tags is a lightweight markup format described at
13254 <http://txt2tags.org/>.
13256 * Added `dokuwiki` as an output format (Clare Macrae).
13258 * Added `haddock` as an output format.
13260 * Added `--extract-media` option to extract media contained in a zip
13261 container (docx or epub) while adjusting image paths to point to the
13264 * Added a new markdown extension, `compact_definition_lists`, that
13265 restores the syntax for definition lists of pandoc 1.12.x, allowing
13266 tight definition lists with no blank space between items, and
13267 disallowing lazy wrapping. (See below under behavior changes.)
13269 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
13271 * Added extensions `native_spans` and `native_divs` to activate
13272 parsing of material in HTML span or div tags as Pandoc Span
13273 inlines or Div blocks.
13275 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
13276 Textile, and MediaWiki readers. This is an option intended
13277 for debugging parsing problems; ordinary users should not need
13280### Behavior changes
13282 * Changed behavior of the `markdown_attribute` extension, to bring
13283 it in line with PHP markdown extra and multimarkdown. Setting
13284 `markdown="1"` on an outer tag affects all contained tags,
13285 recursively, until it is reversed with `markdown="0"` (#1378).
13287 * Revised markdown definition list syntax (#1429). Both the reader
13288 and writer are affected. This change brings pandoc's definition list
13289 syntax into alignment with that used in PHP markdown extra and
13290 multimarkdown (with the exception that pandoc is more flexible about
13291 the definition markers, allowing tildes as well as colons). Lazily
13292 wrapped definitions are now allowed. Blank space is required
13293 between list items. The space before a definition is used to determine
13294 whether it is a paragraph or a "plain" element. **WARNING: This change
13295 may break existing documents!** Either check your documents for
13296 definition lists without blank space between items, or use
13297 `markdown+compact_definition_lists` for the old behavior.
13299 * `.numberLines` now works in fenced code blocks even if no language
13300 is given (#1287, jgm/highlighting-kate#40).
13302 * Improvements to `--filter`:
13304 + Don't search PATH for a filter with an explicit path.
13305 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
13306 the system path, even if there was a `caps.py` in the working directory.
13307 + Respect shebang if filter is executable (#1389).
13308 + Don't print misleading error message.
13309 Previously pandoc would say that a filter was not found,
13310 even in a case where the filter had a syntax error.
13314 + Parse `div` and `span` elements even without `--parse-raw`,
13315 provided `native_divs` and `native_spans` extensions are set.
13316 Motivation: these now generate native pandoc Div and Span
13317 elements, not raw HTML.
13318 + Parse EPUB-specific elements if the `epub_html_exts`
13319 extension is enabled. These include `switch`, `footnote`,
13320 `rearnote`, `noteref`.
13324 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
13325 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
13326 `\cite{Coffee}`), can be used without any further escaping (Albert
13329 * Textile reader and writer:
13331 + The `raw_tex` extension is no longer set by default. You can
13332 enable it with `textile+raw_tex`.
13336 + Support `equation`, `informalequation`, `inlineequation` elements with
13337 `mml:math` content. This is converted into LaTeX and put into a Pandoc
13340 * Revised `plain` output, largely following the style of Project
13343 + Emphasis is rendered with `_underscores_`, strong emphasis
13345 + Headings are rendered differently, with space to set them off,
13346 not with setext style underlines. Level 1 headers are ALL CAPS.
13347 + Math is rendered using unicode when possible, but without the
13348 distracting emphasis markers around variables.
13349 + Footnotes use a regular `[n]` style.
13353 + Horizontal rules are now a line across the whole page.
13354 + Prettier pipe tables. Columns are now aligned (#1323).
13355 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
13356 no longer emits any raw HTML, including span and div tags
13357 generated by Span and Div elements.
13358 + Use span with style for `SmallCaps` (#1360).
13362 + Autolinks now have class `uri`, and email autolinks have class
13363 `email`, so they can be styled.
13367 + Document formatting is carried over from `reference.docx`.
13368 This includes margins, page size, page orientation, header,
13369 and footer, including images in headers and footers.
13370 + Include abstract (if present) with `Abstract` style (#1451).
13371 + Include subtitle (if present) with `Subtitle` style, rather
13372 than tacking it on to the title (#1451).
13376 + Write empty span elements with an id attribute as org anchors.
13377 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
13381 + Put table captions above tables, to match the conventional
13382 standard. (Previously they appeared below tables.)
13383 + Use `\(..\)` instead of `$..$` for inline math (#1464).
13384 + Use `\nolinkurl` in email autolinks. This allows them to be styled
13385 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
13386 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
13387 curly quotes in the PDF output (#1364).
13388 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
13389 do not appear before the overlays in which their markers appear
13391 + Don't produce a `\label{..}` for a Div or Span element. Do produce
13392 a `\hyperdef{..}` (#1519).
13396 + If the metadata includes `page-progression-direction` (which can be
13397 `ltr` or `rtl`, the `page-progression-direction` attribute will
13398 be set in the EPUB spine (#1455).
13400 * Custom lua writers:
13402 + Custom writers now work with `--template`.
13403 + Removed HTML header scaffolding from `sample.lua`.
13404 + Made citation information available in lua writers.
13406 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
13407 adjacent `RawBlock`s when possible.
13411 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
13413 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
13416 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
13419 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
13422 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
13424 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
13425 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
13426 readers return a pair of a `Pandoc` document and a `MediaBag` with
13427 the media resources they contain. This can be extracted using
13428 `--extract-media`. Writers that incorporate media (PDF, Docx,
13429 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
13430 for resources in the `MediaBag` generated by the reader, in addition to
13431 the file system or web.
13433 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
13434 Renamed `readTeXMath'` to `texMathToInlines`.
13436 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
13437 `readers` now associates names of readers with `Reader`
13438 structures. This allows inclusion of readers, like the docx
13439 reader, that take binary rather than textual input.
13441 * `Text.Pandoc.Shared`:
13443 + Added `capitalize` (Artyom Kazak), and replaced uses of
13444 `map toUpper` (which give bad results for many languages).
13445 + Added `collapseFilePath`, which removes intermediate `.` and
13446 `..` from a path (Matthew Pickering).
13447 + Added `fetchItem'`, which works like `fetchItem` but searches
13448 a `MediaBag` before looking on the net or file system.
13449 + Added `withTempDir`.
13450 + Added `removeFormatting`.
13451 + Added `extractSpaces` (from HTML reader) and generalized its type
13452 so that it can be used by the docx reader (Matthew Pickering).
13454 + Added `normalizeInlines`, `normalizeBlocks`.
13455 + `normalize` is now `Pandoc -> Pandoc` instead of
13456 `Data a :: a -> a`. Some users may need to change their uses of
13457 `normalize` to the newly exported `normalizeInlines` or
13460 * `Text.Pandoc.Options`:
13462 + Added `writerMediaBag` to `WriterOptions`.
13463 + Removed deprecated and no longer used `readerStrict` in
13464 `ReaderOptions`. This is handled by `readerExtensions` now.
13465 + Added `Ext_compact_definition_lists`.
13466 + Added `Ext_epub_html_exts`.
13467 + Added `Ext_native_divs` and `Ext_native_spans`.
13468 This allows users to turn off the default pandoc behavior of
13469 parsing contents of div and span tags in markdown and HTML
13470 as native pandoc Div blocks and Span inlines.
13472 * `Text.Pandoc.Parsing`:
13474 + Generalized `readWith` to `readWithM` (Matthew Pickering).
13475 + Export `runParserT` and `Stream` (Matthew Pickering).
13476 + Added `HasQuoteContext` type class (Matthew Pickering).
13477 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
13478 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
13479 `applyMacros` (Matthew Pickering).
13480 + Added custom `token` (Matthew Pickering).
13481 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
13482 track of the ending tag we're waiting for when we're parsing inside
13484 + Added `stateMarkdownAttribute` to `ParserState`. This is used
13485 to keep track of whether the markdown attribute has been set in
13487 + Generalized type of `registerHeader`, using new type classes
13488 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
13489 Pickering). These allow certain common functions to be reused
13490 even in parsers that use custom state (instead of `ParserState`),
13491 such as the MediaWiki reader.
13492 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
13493 and generalized their types (Matthew Pickering).
13495 * `Text.Pandoc.Pretty`:
13498 + Added `blanklines`, which guarantees a certain number of blank lines
13505 + Fixed parsing of indented code in list items. Indented code
13506 at the beginning of a list item must be indented eight spaces
13507 from the margin (or edge of the container), or four spaces
13508 from the list marker, whichever is greater.
13509 + Fixed small bug in HTML parsing with `markdown_attribute`, which
13510 caused incorrect tag nesting for input like
13511 `<aside markdown="1">*hi*</aside>`.
13512 + Fixed regression with intraword underscores (#1121).
13513 + Improved parsing of inline links containing quote characters (#1534).
13514 + Slight rewrite of `enclosure`/`emphOrStrong` code.
13515 + Revamped raw HTML block parsing in markdown (#1330).
13516 We no longer include trailing spaces and newlines in the
13517 raw blocks. We look for closing tags for elements (but without
13518 backtracking). Each block-level tag is its own `RawBlock`;
13519 we no longer try to consolidate them (though `--normalize` will do so).
13520 + Combine consecutive latex environments. This helps when you have
13521 two minipages which can't have blank lines between them (#690, #1196).
13522 + Support smallcaps through span.
13523 `<span style="font-variant:small-caps;">foo</span>` will be
13524 parsed as a `SmallCaps` inline, and will work in all output
13525 formats that support small caps (#1360).
13526 + Prevent spurious line breaks after list items (#1137). When the
13527 `hard_line_breaks` option was specified, pandoc would formerly
13528 produce a spurious line break after a tight list item.
13529 + Fixed table parsing bug (#1333).
13530 + Handle `c++` and `objective-c` as language identifiers in
13531 github-style fenced blocks (#1318).
13532 + Inline math must have nonspace before final `$` (#1313).
13536 + Handle comments at the end of tables. This resolves the issue
13537 illustrated in <http://stackoverflow.com/questions/24009489>.
13538 + Correctly handle table rows with too few cells. LaTeX seems to
13539 treat them as if they have empty cells at the end (#241).
13540 + Handle leading/trailing spaces in `\emph` better.
13541 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
13542 so that we don't get things like `* hi *` in markdown output.
13543 Also applies to `textbf` and some other constructions (#1146).
13544 + Don't assume preamble doesn't contain environments (#1338).
13545 + Allow (and discard) optional argument for `\caption` (James Aspnes).
13549 + Fixed major parsing problem with HTML tables. Table cells were
13550 being combined into one cell (#1341).
13551 + Fixed performance issue with malformed HTML tables.
13552 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
13553 + Allow space between `<col>` and `</col>`.
13554 + Added `audio` and `source` in `eitherBlockOrInline`.
13555 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
13556 `blockTags` to `eitherBlockOrInline`.
13557 + `map` and `object` were mistakenly in both lists; they have been removed
13559 + Ignore `DOCTYPE` and `xml` declarations.
13561 * MediaWiki reader:
13563 + Don't parse backslash escapes inside `<source>` (#1445).
13564 + Tightened up template parsing.
13565 The opening `{{` must be followed by an alphanumeric or `:`.
13566 This prevents the exponential slowdown in #1033.
13567 + Support "Bild" for images.
13571 + Better handle elements inside code environments. Pandoc's document
13572 model does not allow structure inside code blocks, but at least this way
13573 we preserve the text (#1449).
13574 + Support `<?asciidoc-br?>` (#1236).
13578 + Fixed list parsing. Lists can now start without an intervening
13579 blank line (#1513).
13580 + HTML block-level tags that do not start a line are parsed as
13581 inline HTML and do not interrupt paragraphs (as in RedCloth).
13585 + Make tildes create inline code (#1345). Also relabeled `code` and
13586 `verbatim` parsers to accord with the org-mode manual.
13587 + Respect `:exports` header argument in code blocks (Craig Bosma).
13588 + Fixed tight lists with sublists (#1437).
13592 + Avoid excess whitespace in `nav.xhtml`. This should improve
13593 TOC view in iBooks (#1392).
13594 + Fixed regression on cover image.
13595 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
13596 because the metadata id was not correct. Now we derive the id from the
13597 actual cover image filename, which we preserve rather than using
13599 + Keep newlines between block elements. This allows
13600 easier diff-ability (#1424).
13601 + Use `stringify` instead of custom `plainify`.
13602 + Use `renderTags'` for all tag rendering. This properly handles tags
13603 that should be self-closing. Previously `<hr/>` would appear in EPUB
13604 output as `<hr></hr>` (#1420).
13605 + Better handle HTML media tags.
13606 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
13607 can have only one dc:date, so only the first one is used.
13611 + Correctly handle figures in notes. Notes can't contain figures in
13612 LaTeX, so we fake it to avoid an error (#1053).
13613 + Fixed strikeout + highlighted code (#1294).
13614 Previously strikeout highlighted code caused an error.
13618 + Improved detection of autolinks with URLs containing escapes.
13622 + Improved image embedding: `fetchItem'` is now used to get the
13623 images, and calculated image sizes are indicated in the RTF.
13624 + Avoid extra paragraph tags in metadata (#1421).
13628 + Deactivate "incremental" inside slide speaker notes (#1394).
13629 + Don't include empty items in the table of contents for
13630 slide shows. (These would result from creating a slide
13631 using a horizontal rule.)
13633 * MediaWiki writer:
13635 + Minor renaming of `st` prefixed names.
13639 + Double up emphasis and strong emphasis markers in intraword
13640 contexts, as required by asciidoc (#1441).
13644 + Avoid wrapping that might start a list, blockquote, or header (#1013).
13645 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
13646 + Don't use braced attributes for fenced code (#1416).
13647 If `Ext_fenced_code_attributes` is not set, the first class
13648 attribute will be printed after the opening fence as a bare word.
13649 + Separate adjacent lists of the same kind with an HTML comment (#1458).
13653 + Fixed treatment of data uris for images (#1062).
13657 + Use Compact style for empty table cells (#1353).
13658 Otherwise we get overly tall lines when there are empty
13659 table cells and the other cells are compact.
13660 + Create overrides per-image for `media/` in reference docx.
13661 This should be somewhat more robust and cover more types of images.
13662 + Improved `entryFromArchive` to avoid an unneeded parse.
13663 + Section numbering carries over from reference.docx (#1305).
13664 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
13665 we assign numbers based on the list marker styles.
13667 * `Text.Pandoc.Options`:
13669 + Removed `Ext_fenced_code_attributes` from `markdown_github`
13672 * `Text.Pandoc.ImageSize`:
13674 + Use default instead of failing if image size not found
13675 in exif header (#1358).
13676 + ignore unknown exif header tag rather than crashing.
13677 Some images seem to have tag type of 256, which was causing
13680 * `Text.Pandoc.Shared`:
13682 + `fetchItem`: unescape URI encoding before reading local file (#1427).
13683 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
13684 doing mime lookup, to improve mime type guessing.
13685 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
13686 other things are treated as relative URIs if `sourceURL` is `Just _`,
13687 otherwise as file paths on the local file system.
13688 + `fetchItem` now properly handles links without a protocol (#1477).
13689 + `fetchItem` now escapes characters not allowed in URIs before trying
13691 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
13693 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
13694 needed to resolve relative URLs when we fetch resources (#750).
13696 * `Text.Pandoc.Parsing`
13698 + Simplified `dash` and `ellipsis` (#1419).
13699 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
13700 + Generalized functions to use `ParsecT` (Matthew Pickering).
13701 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
13704### Template changes
13706 * Added haddock template.
13707 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
13708 be "advisory" in HTML5, but kindlegen seems to require them.
13709 * EPUB3: Put title page in section with `epub:type="titlepage"`.
13710 * LaTeX: Made `\subtitle` work properly (#1327).
13711 * LaTeX/Beamer: remove conditional around date (#1321).
13712 * LaTeX: Added `lot` and `lof` variables, which can be set to
13713 get `\listoftables` and `\listoffigures` (#1407). Note that
13714 these variables can be set at the command line with `-Vlot -Vlof`
13715 or in YAML metadata.
13717### Under the hood improvements
13719 * Rewrote normalize for efficiency (#1385).
13721 * Rewrote Haddock reader to use `haddock-library` (#1346).
13723 + This brings pandoc's rendering of haddock markup in line
13724 with the new haddock.
13725 + Fixed line breaks in `@` code blocks.
13726 + alex and happy are no longer build-depends.
13728 * Added `Text.Pandoc.Compat.Directory` to allow building against
13729 different versions of the `directory` library.
13731 + Added `Text.Pandoc.Compat.Except` to allow building against
13732 different versions of `mtl`.
13734 * Code cleanup in some writers, using Reader monad to avoid
13735 passing options parameter around (Matej Kollar).
13737 * Improved readability in `pandoc.hs`.
13739 * Miscellaneous code cleanups (Artyom Kazak).
13741 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
13744 * Changed `http-conduit` flag to `https`. Depend on `http-client`
13745 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
13746 depends on `conduit` via `yaml`.)
13748 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
13749 This change to highlighting-kate means that PHP fragments no longer need
13750 to start with `<?php`. It also fixes a serious bug causing failures with
13753 * Require latest `texmath`. This fixes `\tilde{E}` and allows
13754 `\left` to be used with `]`, `)` etc. (#1319), among many other
13757 * Require latest `zip-archive`. This has fixes for unicode path names.
13759 * Added tests for plain writer.
13761 * `Text.Pandoc.Templates`:
13763 + Fail informatively on template syntax errors.
13764 With the move from parsec to attoparsec, we lost good error
13765 reporting. In fact, since we weren't testing for end of input,
13766 malformed templates would fail silently. Here we revert back to
13767 Parsec for better error messages.
13768 + Use `ordNub` (#1022).
13772 + Made benchmarks compile again (Artyom Kazak).
13773 + Fixed so that the failure of one benchmark does not prevent others
13774 from running (Artyom Kazak).
13775 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
13776 + Changed benchmark to use only the test suite, so that benchmarks
13779 * Windows build script:
13781 + Add `-windows` to file name.
13782 + Use one install command for pandoc, pandoc-citeproc.
13783 + Force install of pandoc-citeproc.
13785 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
13786 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
13787 will extract it into a folder named `SOMETHING.pkg`, which it
13788 will interpret as a defective package (#1308).
13792 + Made headers for all extensions so they have IDs and can be
13793 linked to (Beni Cherniavsky-Paskin).
13794 + Fixed typos (Phillip Alday).
13795 + Fixed documentation of attributes (#1315).
13796 + Clarified documentation on small caps (#1360).
13797 + Better documentation for `fenced_code_attributes` extension
13799 + Documented fact that you can put YAML metadata in a separate file
13803## pandoc 1.12.4.2 (2014-05-14)
13805 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
13807 * Shared: `addMetaValue` now behaves slightly differently:
13808 if both the new and old values are lists, it concatenates their
13809 contents to form a new list.
13813 + Set `bibliography` in metadata from `\bibliography` or
13814 `\addbibresource` command.
13815 + Don't error on `%foo` with no trailing newline.
13819 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
13820 + Fix parsing of blank lines within blocks (Albert Krewinkel).
13821 + Support pandoc citation extension (Albert Krewinkel). This can
13822 be turned off by specifying `org-citation` as the input format.
13826 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
13827 other readers (Albert Krewinkel).
13829 * `Text.Pandoc.Parsing`:
13831 + Added `citeKey` (see above).
13832 + Added `HasLastStrPosition` type class and `updateLastStrPos`
13833 and `notAfterString` functions.
13835 * Updated copyright notices (Albert Krewinkel).
13837 * Added default.icml to data files so it installs with the package.
13841 + The binary is now built with options to ensure that it can be
13842 used with OSX 10.6+.
13843 + Moved OSX package materials to osx directory.
13844 + Added OSX package uninstall script, included in the zip container
13845 (thanks to Daniel T. Staal).
13847## pandoc 1.12.4 (2014-05-07)
13849 * Made it possible to run filters that aren't executable
13850 (#1096). Pandoc first tries to find the executable (searching
13851 the path if path isn't given). If it fails, but the file
13852 exists and has a `.py`, `.pl`, `.rb`, `.hs`, or `.php`
13853 extension, pandoc runs the filter using the appropriate
13854 interpreter. This should make it easier to use filters on
13855 Windows, and make it more convenient for everyone.
13857 * Added Emacs org-mode reader (Albert Krewinkel).
13859 * Added InDesign ICML Writer (mb21).
13861 * MediaWiki reader:
13863 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
13864 + Fixed bug in certain nested lists (#1213). If a level 2 list was
13865 followed by a level 1 list, the first item of the level 1 list
13867 + Handle table rows containing just an HTML comment (#1230).
13871 + Give better location information on errors, pointing to line
13872 numbers within included files (#1274).
13873 + LaTeX reader: Better handling of `table` environment (#1204).
13874 Positioning options no longer rendered verbatim.
13875 + Better handling of figure and table with caption (#1204).
13876 + Handle `@{}` and `p{length}` in tabular. The length is not actually
13877 recorded, but at least we get a table (#1180).
13878 + Properly handle `\nocite`. It now adds a `nocite` metadata
13879 field. Citations there will appear in the bibliography but not
13880 in the text (unless you explicitly put a `$nocite$` variable
13885 + Ensure that whole numbers in YAML metadata are rendered without
13886 decimal points. (This became necessary with changes to aeson
13887 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
13888 + Fixed regression on line breaks in strict mode (#1203).
13889 + Small efficiency improvements.
13890 + Improved parsing of nested `div`s. Formerly a closing `div` tag
13891 would be missed if it came right after other block-level tags.
13892 + Avoid backtracking when closing `</div>` not found.
13893 + Fixed bug in reference link parsing in `markdown_mmd`.
13894 + Fixed a bug in list parsing (#1154). When reading a raw list
13895 item, we now strip off up to 4 spaces.
13896 + Fixed parsing of empty reference link definitions (#1186).
13897 + Made one-column pipe tables work (#1218).
13901 + Better support for attributes. Instead of being ignored, attributes
13902 are now parsed and included in Span inlines. The output will be a bit
13903 different from stock textile: e.g. for `*(foo)hi*`, we'll get
13904 `<em><span class="foo">hi</span></em>` instead of
13905 `<em class="foo">hi</em>`. But at least the data is not lost.
13906 + Improved treatment of HTML spans (%) (#1115).
13907 + Improved link parsing. In particular we now pick up on attributes.
13908 Since pandoc links can't have attributes, we enclose the whole link in
13909 a span if there are attributes (#1008).
13910 + Implemented correct parsing rules for inline markup (#1175, Matthew
13912 + Use Builder (Matthew Pickering).
13916 + Better treatment of `formalpara`. We now emit the title (if present)
13917 as a separate paragraph with boldface text (#1215).
13918 + Set metadata `author` not `authors`.
13919 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
13920 Matthew Pickering).
13921 + Converted current meta information parsing in DocBook to a more
13922 extensible version which is aware of the more recent meta
13923 representation (Matthew Pickering).
13927 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
13929 + Treat processing instructions & declarations as block. Previously
13930 these were treated as inline, and included in paragraph tags in HTML
13931 or DocBook output, which is generally not what is wanted (#1233).
13932 + Updated `closes` with rules from HTML5 spec.
13933 + Use Builder (Matthew Pickering, #1162).
13937 + Remove duplicate `http` in PEP links (Albert Krewinkel).
13938 + Make rst figures true figures (#1168, CasperVector)
13939 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
13940 rST parser now supports: all built-in rST roles, new role definition,
13941 role inheritance, though with some limitations.
13942 + Use `author` rather than `authors` in metadata.
13943 + Better handling of directives. We now correctly handle field
13944 lists that are indented more than three spaces. We treat an
13945 `aafig` directive as a code block with attributes, so it can be
13946 processed in a filter (#1212).
13950 + Mark span contents with label if span has an ID (Albert Krewinkel).
13951 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
13952 + Handle line breaks in simple table cells (#1217).
13953 + Workaround for level 4-5 headers in quotes. These previously produced
13954 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
13955 This adds an `mbox{}` in these contexts to work around the problem.
13956 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
13957 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
13958 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
13959 ligature with LuaLaTeX but `\/` does.
13960 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
13962 * ConTeXt writer: Improved autolinks (#1270).
13966 + Improve handling of hard line breaks in Docbook writer
13967 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
13968 just for the newline character.
13969 + Don't let line breaks inside footnotes influence the enclosing
13970 paragraph (Neil Mayhew).
13971 + Distinguish tight and loose lists in DocBook output, using
13972 `spacing="compact"` (Neil Mayhew, #1250).
13974 * Docx writer: When needed files are not present in the user's
13975 `reference.docx`, fall back on the versions in the `reference.docx`
13976 in pandoc's data files. This fixes a bug that occurs when a
13977 `reference.docx` saved by LibreOffice is used. (#1185)
13981 + Include extension in epub ids. This fixes a problem with duplicate
13982 extensions for fonts and images with the same base name but different
13983 extensions (#1254).
13984 + Handle files linked in raw `img` tags (#1170).
13985 + Handle media in `audio` source tags (#1170).
13986 Note that we now use a `media` directory rather than `images`.
13987 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
13988 will both be incorporated into `content.opf` and the epub container.
13992 + Add colgroup around col tags (#877). Also affects EPUB writer.
13993 + Fixed bug with unnumbered section headings. Unnumbered section
13994 headings (with class `unnumbered`) were getting numbers.
13995 + Improved detection of image links. Previously image links with
13996 queries were not recognized, causing `<embed>` to be used instead
13999 * Man writer: Ensure that terms in definition lists aren't line wrapped
14004 + Use proper escapes to avoid unwanted lists (#980). Previously we used
14005 0-width spaces, an ugly hack.
14006 + Use longer backtick fences if needed (#1206). If the content contains a
14007 backtick fence and there are attributes, make sure longer fences are
14008 used to delimit the code. Note: This works well in pandoc, but github
14009 markdown is more limited, and will interpret the first string of three
14010 or more backticks as ending the code block.
14012 * RST writer: Avoid stack overflow with certain tables (#1197).
14014 * RTF writer: Fixed table cells containing paragraphs.
14018 + Correctly handle UTF-8 in custom lua scripts (#1189).
14019 + Fix bugs with lua scripts with mixed-case filenames and
14020 paths containing `+` or `-` (#1267). Note that `getWriter`
14021 in `Text.Pandoc` no longer returns a custom writer on input
14024 * AsciiDoc writer: Handle multiblock and empty table cells
14025 (#1245, #1246). Added tests.
14027 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
14029 * `Text.Pandoc.Shared`:
14031 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
14032 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
14033 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
14035 + `openURL`: set proxy with value of http_proxy env variable (#1211).
14036 Note: proxies with non-root paths are not supported, due to
14037 limitations in `http-conduit`.
14039 * `Text.Pandoc.PDF`:
14041 + Ensure that temp directories deleted on Windows (#1192). The PDF is
14042 now read as a strict bytestring, ensuring that process ownership will
14043 be terminated, so the temp directory can be deleted.
14044 + Use `/` as path separators in a few places, even on Windows.
14045 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
14046 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
14047 + Changes to error reporting, to handle non-UTF8 error output.
14049 * `Text.Pandoc.Templates`:
14051 + Removed unneeded datatype context (Merijn Verstraaten).
14053 + YAML objects resolve to "true" in conditionals (#1133).
14054 Note: If `address` is a YAML object and you just have `$address$`
14055 in your template, the word `true` will appear, which may be
14056 unexpected. (Previously nothing would appear.)
14058 * `Text.Pandoc.SelfContained`: Handle `poster` attribute in `video`
14061 * `Text.Pandoc.Parsing`:
14063 + Made `F` an instance of Applicative (#1138).
14064 + Added `stateCaption`.
14065 + Added `HasMacros`, simplified other typeclasses.
14066 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
14067 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
14068 + Changed the smart punctuation parser to return `Inlines`
14069 rather than `Inline` (Matthew Pickering).
14070 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
14071 from typeclasses of monads to typeclasses of states. This simplifies
14072 the instance definitions and provides more flexibility. Generalized
14073 type of `getOption` and added a default definition. Removed
14074 `askReaderOption`. Added `extractReaderOption`. Added
14075 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
14076 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
14077 `modifyHeaderMap`. Added `extractIdentifierList` and
14078 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
14079 for `getIdentifierList`, `putIdentifierList`, and
14080 `modifyIdentifierList`. The ultimate goal here is to allow different
14081 parsers to use their own, tailored parser states (instead of
14082 `ParserState`) while still using shared functions.
14084 * Template changes:
14086 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
14087 + LaTeX template: Add `linestretch` and `fontfamily` variables.
14088 + LaTeX template: Conditionalize author and date commands.
14089 + Beamer template: Consistent styles for figure and table captions
14091 + LaTeX and beamer template: Adjust widths correctly for oversized
14092 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
14093 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
14094 `upquote` only after `fontenc` (Yihui Xie).
14095 + Beamer template: Added caption package (#1200).
14096 + Beamer template: changes for better unicode handling (KarolS).
14097 + DocBook template: use `authorgroup` if there are authors.
14098 + revealjs template: Move `include-after` to end (certainlyakey).
14099 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
14101 * Bumped version bounds of dependencies.
14103 * Added a `--trace` command line option, for debugging backtracking
14104 bugs. So far this only works with the markdown reader.
14106 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
14108 * Updated travis script to test with multiple GHC versions.
14110 * Force failure of a Travis build if GHC produces warnings (Albert
14113 * Add `.editorconfig` (Albert Krewinkel).
14114 See <http://editorconfig.org/> for details.
14116 * Give more useful error message if '-t pdf' is specified (#1155).
14118 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
14120 * Allow `html4` as a synonym of `html` as a reader (it already works
14125 + Added an explanation of how to use YAML metadata to
14126 force items to appear in the bibliography without citations in
14127 the text (like LaTeX `\nocite`).
14128 + Added note to `--bibtex/--natbib`: not for use in making PDF
14129 (#1194, thanks to nahoj).
14130 + Added explanatory notes about `--natbib` and `--biblatex`.
14131 + Added specification of legal syntax for citation keys.
14132 + Fixed variable defaults documentation (Albert Krewinkel).
14134 * Removed copyright statements for files that have been removed
14135 (Albert Krewinkel).
14137 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
14138 They aren't needed at runtime. We keep README and COPYRIGHT in data
14139 to ensure that they'll be available on all systems on which pandoc
14142 * Use cabal sandboxes in Windows build script.
14144## pandoc 1.12.3.3 (2014-02-03)
14146 * To changes to source; recompiled tarball with latest alex and
14147 happy, so they will work with GHC 7.8.
14149## pandoc 1.12.3.2 (2014-02-03)
14151 * Bumped version bounds for blaze-html, blaze-markup.
14153 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
14156 * Fixed mediawiki ordered list parsing (#1122).
14158 * HTML reader: Fixed bug reading inline math with `$$` (#225).
14160 * Added support for LaTeX style literate Haskell code blocks in rST
14161 (Merijn Verstraaten).
14163## pandoc 1.12.3.1 (2014-01-14)
14165 * Relaxed version constraint on binary, allowing the use of binary 0.5.
14168## pandoc 1.12.3 (2014-01-10)
14170 * The `--bibliography` option now sets the `biblio-files` variable.
14171 So, if you're using `--natbib` or `--biblatex`, you can just use
14172 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
14174 * Don't run pandoc-citeproc filter if `--bibliography` is
14175 used together with `--natbib` or `--biblatex` (Florian Eitel).
14177 * Template changes:
14179 + Updated beamer template to include booktabs.
14180 + Added `abstract` variable to LaTeX template.
14181 + Put `header-includes` after `title` in LaTeX template (#908).
14182 + Allow use of `\includegraphics[size]` in beamer.
14183 This just required porting a macro definition from the default
14184 LaTeX template to the default beamer template.
14186 * `reference.docx`: Include `FootnoteText` style.
14187 Otherwise Word ignores the style, even when specified in the `pPr`.
14190 * `reference.odt`: Tidied `styles.xml`.
14192 * Relaxed version bounds for dependencies.
14194 * Added `withSocketsDo` around http conduit code in `openURL`,
14195 so it works on Windows (#1080).
14197 * Added `Cite` function to `sample.lua`.
14201 + Fixed regression in title blocks (#1089).
14202 If author field was empty, date was being ignored.
14203 + Allow backslash-newline hard line breaks in grid and
14204 multiline table cells.
14205 + Citation keys may now start with underscores, and may contain
14206 underscores adjacent to internal punctuation.
14210 + Add support for `Verb` macro (jrnold) (#1090).
14211 + Support babel-style quoting: `` "`..."' ``.
14213 * Properly handle script blocks in strict mode. (That is,
14214 `markdown-markdown_in_html_blocks`.) Previously a spurious
14215 `<p>` tag was being added (#1093).
14217 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
14222 + Factored out function for table cell creation.
14223 + Better treatment of footnotes in tables.
14224 Notes now appear in the regular sequence, rather than in the
14225 table cell. (This was a regression in 1.10.)
14227 * HTML reader: Parse name/content pairs from meta tags as metadata.
14230 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
14232 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
14234 * ODT writer: Use mathml for proper rendering of formulas.
14235 Note: LibreOffice's support for this seems a bit buggy. But
14236 it should be better than what we had before.
14238 * RST writer: Ensure no blank line after def in definition list (#992).
14240 * Markdown writer: Don't use tilde code blocks with braced attributes in
14241 `markdown_github` output. A consequence of this change is that the
14242 backtick form will be preferred in general if both are enabled. That
14243 is good, as it is much more widespread than the tilde form. (#1084)
14245 * Docx writer: Fixed problem with some modified reference docx files.
14246 Include `word/_rels/settings.xml.rels` if it exists, as well as other
14247 `rels` files besides the ones pandoc generates explicitly.
14251 + With `--toc`, headers no longer link to themselves (#1081).
14252 + Omit footnotes from TOC entries. Otherwise we get doubled
14253 footnotes when headers have notes!
14257 + Avoid duplicate notes when headings contain notes.
14258 This arose because the headings are copied into the metadata
14259 "title" field, and the note gets rendered twice. We strip the
14260 note now before putting the heading in "title".
14261 + Strip out footnotes from toc entries.
14262 + Fixed bug with `--epub-stylesheet`. Now the contents of
14263 `writerEpubStylesheet` (set by `--epub-stylesheet`)
14264 should again work, and take precedence over a stylesheet specified
14267 * `Text.Pandoc.Pretty`: Added `nestle`. API change.
14269 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
14271 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
14274 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
14275 we could only get size information for JFIF format, which led
14276 to squished images in Word documents. Closes #976.
14278 * Removed old `MarkdownTest_1.0.3` directory (#1104).
14281## pandoc 1.12.2.1 (2013-12-08)
14283 * Markdown reader: Fixed regression in list parser, involving
14284 continuation lines containing raw HTML (or even verbatim raw HTML).
14286## pandoc 1.12.2 (2013-12-07)
14288 * Metadata may now be included in YAML blocks in a markdown document.
14296 text: An investigation of metadata
14304 text: doi:10.234234.234/33
14305 publisher: My Press
14306 rights: (c) 2007 John Smith, CC BY-NC
14307 cover-image: img/mypic.jpg
14308 stylesheet: style.css
14311 Metadata may still be provided using `--epub-metadata`; it will
14312 be merged with the metadata in YAML blocks.
14316 + `meta` tags are now used instead of `opf` attributes for EPUB3.
14317 + Insert "svg" property as needed in opf (EPUB 3).
14318 + Simplify `imageTypeOf` using `getMimeType`.
14319 + Add properties attribute to `cover-image` item for EPUB 3.
14320 + Don't include node for `cover.xhtml` if no cover!
14321 + Ensure that same identifier is used throughout (#1044).
14322 If an identifier is given in metadata, we use that; otherwise
14323 we generate a random uuid.
14324 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
14325 Fixes an issue with Calibre putting the cover at the end of the book
14326 if the spine has `linear="no"`. Apparently this is best practice
14327 for other converters as well:
14328 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
14329 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
14330 + Allow partial dates: `YYYY`, `YYYY-MM`.
14332 * Markdown writer: Fix rendering of tight sublists (#1050).
14333 Previously a spurious blank line was included after a tight sublist.
14335 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
14336 This is reported to be necessary to avoid an error from recent
14337 versions of Libre Office when files contain more than one image
14338 Thanks to wmanley for reporting and diagnosing the problem.
14340 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
14341 Instead, let this be set in the template, using `\setupfloat`.
14342 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
14344 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
14346 * Fixed bug with markdown intraword emphasis. Closes #1066.
14348 * Docbook writer: Hierarchicalize block content in metadata.
14349 Previously headers just disappeared from block-level metadata
14350 when it was used in templates. Now we apply the 'hierarchicalize'
14351 transformation. Note that a block headed by a level-2 header will
14352 turn into a `<sect1>` element.
14354 * OpenDocument writer: Skip raw HTML (#1035).
14355 Previously it was erroneously included as verbatim text.
14357 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
14358 This allows better control of formatting, since the `<a>`
14359 tags have a distinguishing class (#1049).
14363 + Use mime type info returned by fetchItem.
14364 + Fixed core metadata (#1046).
14365 Don't create empty date nodes if no date given.
14366 Don't create multiple `dc:creator` nodes; instead separate by
14368 + Fix URL for core-properties in `_rels/.rels` (#1046).
14370 * Plain writer: don't print `<span>` tags.
14374 + Fix definition lists with internal links in terms (#1032).
14375 This fix puts braces around a term that contains an internal
14376 link, to avoid problems with square brackets.
14377 + Properly escape pdftitle, pdfauthor (#1059).
14378 + Use booktabs package for tables (thanks to Jose Luis Duran).
14380 * Updated beamer template. Now references should work properly
14381 (in a slide) when `--biblatex` or `--natbib` is used.
14385 + Parse contents of curly quotes or matched `"` as quotes.
14386 + Support `\textnormal` as span with class `nodecor`.
14387 This is needed for pandoc-citeproc.
14388 + Improved citation parsing. This fixes a run-time error that occurred
14389 with `\citet{}` (empty list of keys). It also ensures that empty keys
14390 don't get produced.
14392 * MediaWiki reader: Add automatic header identifiers.
14396 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
14398 + Recognize `svg` tags as block level content (thanks to MinRK).
14399 + Parse LaTeX math if appropriate options are set.
14403 + Yaml block must start immediately after `---`. If there's a blank
14404 line after `---`, we interpreted it as a horizontal rule.
14405 + Correctly handle empty bullet list items.
14406 + Stop parsing "list lines" when we hit a block tag.
14407 This fixes exponential slowdown in certain input, e.g.
14408 a series of lists followed by `</div>`.
14410 * Slides: Preserve `<div class="references">` in references slide.
14412 * `Text.Pandoc.Writer.Shared`:
14414 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
14415 attributes, leading to invalid HTML.
14416 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
14417 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
14418 encoded bytestring was returned. We now decode it so it's a proper
14421 * DocBook reader: Handle numerical attributes starting with decimal.
14422 Also use `safeRead` instead of `read`.
14424 * `Text.Pandoc.Parsing`:
14426 + Generalized type of `registerHeader`, using new type classes
14427 `HasReadeOptions`, `HasIdentifierList`, `HasHeaderMap`.
14428 These allow certain common functions to be reused
14429 even in parsers that use custom state (instead of `ParserState`),
14430 such as the MediaWiki reader.
14431 + Moved inlineMath, displayMath from Markdown reader to Parsing.
14432 Generalize their types and export them from Parsing. (API change.)
14434 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
14435 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
14436 in all the writers. Require `texmath >= 0.6.5.2`.
14438 * `Text.Pandoc.MIME`:
14440 + Add entry for `jfif`.
14441 + In looking up extensions, drop the encoding info.
14442 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
14444 * Templates: Changed how array variables are resolved. Previously if
14445 `foo` is an array (which might be because multiple values were set on
14446 the command line), `$foo$` would resolve to the concatenation of the
14447 elements of foo. This is rarely useful behavior. It has been changed
14448 so that the first value is rendered. Of course, you can still iterate
14449 over the values using `$for(foo)$`. This has the result that you can
14450 override earlier settings using `-V` by putting new values later on the
14451 command line, which is useful for many purposes.
14453 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
14455 * Allow "epub2" as synonym for "epub", "html4" for "html".
14457 * Don't look for slidy files in data files with `--self-contained`.
14459 * Allow `https:` command line arguments to be downloaded.
14461 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
14463## pandoc 1.12.1 (2013-10-20)
14465 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
14466 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
14467 "c": "foo"}`. This new format is easier to work with outside of Haskell.
14468 Incidentally, "t" stands for "tag", "c" for "contents".
14470 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
14471 when converting to markdown (#1027).
14475 + Ensure that preamble doesn't contribute to the text of
14477 + Fixed character escaping in `\url{}`. Previously `\~` wasn't handled
14478 properly, among others.
14479 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
14480 bibtex titles, since we need to know what was protected from
14481 titlecase conversions.
14485 + Specially escape non-ascii characters in labels.
14486 Otherwise we can get compile errors and other bugs when
14487 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
14488 + Add link anchors for code blocks with identifiers (#1025).
14490 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
14491 It allows fragments identifiers.
14495 + A Div element with class "notes" is treated as speaker
14496 notes. Currently beamer goes to `\note{}`, revealjs to
14497 `<aside class="notes">`, and the notes are simply suppressed in
14498 other formats (#925).
14499 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
14500 The old version caused a pause to be inserted before the first
14501 material on a slide. This has been fixed.
14502 + Removed data files for s5, slideous, slidy.
14503 Users of s5 and slideous will have to download the needed
14504 files, as has been documented for some time in the README.
14505 By default, slidy code will be sought on the web, as before.
14507 * HTML writer: Insert command to typeset mathjax only in slideous output
14510 * RST writer: Skip spaces after display math. Otherwise we get indentation
14511 problems, and part of the next paragraph may be rendered as part of the
14514 * OpenDocument writer: Fix formatting of strikeout code (#995),
14515 thanks to wilx. don't use `font-face-decls` variable.
14517 * Fixed test suite so it works with cabal sandboxes.
14519## pandoc 1.12.0.2 (2013-09-20)
14521 * Removed an unused dependency (`stringable`) from pandoc.cabal.
14522 This will help packagers, but users should not need to upgrade.
14524## pandoc 1.12.0.1 (2013-09-20)
14526 * Allow `--metadata` to be repeated for the same key to form a list.
14527 This also has the effect that `--bibliography` can be repeated,
14530 * Handle boolean values in `--metadata`. Note that anything not parseable
14531 as a YAML boolean or string is treated as a literal string.
14532 You can get a string value with "yes", or any of the strings interpretable
14533 as booleans, by quoting it:
14535 -M boolvalue=yes -M stringvalue='"yes"'
14537 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
14540 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
14541 in which docx files could not be read by some versions of Word
14542 and LibreOffice (#990).
14544 * Fixed a regression involving slide shows with bibliographies.
14545 The Div container around references messed up the procedure for carving
14546 a document into slides. So we now remove the surrounding Div in
14549 * More informative error message when a filter is not found in path.
14551 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
14552 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
14554 * Don't use unicode_collation in building OSX package:
14555 it adds something like 50MB of dependencies to the package.
14557 * Declare alex and happy as build-tools (#986).
14559## pandoc 1.12 (2013-09-15)
14563 * Much more flexible metadata, including arbitrary fields and structured
14564 values. Metadata can be specified flexibly in pandoc markdown using
14565 YAML metadata blocks, which may occur anywhere in the document:
14568 title: Here is my title.
14570 This is the abstract.
14574 and *inline markup*
14576 tags: [cat, dog, animal]
14579 Metadata fields automatically populate template variables.
14581 * Added `opml` (OPML) as input and output format. The `_note` attribute,
14582 used in OmniOutliner and supported by multimarkdown, is supported.
14583 We treat the contents as markdown blocks under a section header.
14585 * Added `haddock` (Haddock markup) as input format (David Lazar).
14587 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
14588 (Thanks to Jamie F. Olson for the initial patch.)
14589 Nested vertical stacks are used for hierarchical structure.
14590 Results for more than one level of nesting may be odd.
14592 * Custom writers can now be written in lua.
14594 pandoc -t data/sample.lua
14596 will load the script sample.lua and use it as a custom writer.
14597 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
14598 Note that pandoc embeds a lua interpreter, so lua need not be
14599 installed separately.
14601 * New `--filter/-F` option to make it easier to run "filters"
14602 (Pandoc AST transformations that operate on JSON serializations).
14603 Filters are always passed the name of the output format, so their
14604 behavior can be tailored to it. The repository
14605 <https://github.com/jgm/pandocfilters> contains
14606 a python module for writing pandoc filters in python, with
14607 a number of examples.
14609 * Added `--metadata/-M` option.
14610 This is like `--variable/-V`, but actually adds to metadata, not
14613 * Added `--print-default-data-file` option, which allows printing
14614 of any of pandoc's data files. (For example,
14615 `pandoc --print-default-data-file reference.odt` will print
14618 * Added syntax for "pauses" in slide shows:
14626 * New markdown extensions:
14628 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
14629 rather than being treated as hard line breaks or spaces. This is useful
14630 for some East Asian languages, where spaces aren't used between words,
14631 but text is separated into lines for readability.
14632 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
14633 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
14634 only. (Default for `markdown_github`.) (#807)
14635 + `lists_without_preceding_blankline`: Allow lists to start without
14636 preceding blank space. (Default for `markdown_github`.) (#972)
14638### Behavior changes
14640 * `--toc-level` no longer implies `--toc`.
14641 Reason: EPUB users who don't want a visible TOC may still want
14642 to set the TOC level for in the book navigation.
14644 * `--help` now prints in and out formats in alphabetical order, and
14645 says something about PDF output (#720).
14647 * `--self-contained` now returns less verbose output (telling you
14648 which URLs it is fetching, but not giving the full header). In
14649 addition, there are better error messages when fetching a URL fails.
14651 * Citation support is no longer baked in to core pandoc. Users who
14652 need citations will need to install and use a separate filter
14653 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
14654 `csl`, and `citation-abbreviations` from the metadata, though it
14655 may still be specified on the command line as before.
14657 * A `Cite` element is now created in parsing markdown whether or not
14658 there is a matching reference.
14660 * The `pandoc-citeproc` script will put the bibliography at the
14661 end of the document, as before. However, it will be put inside a `Div`
14662 element with class "references", allowing users some control
14663 over the styling of references. A final header, if any, will
14664 be included in the `Div`.
14666 * The markdown writer will not print a bibliography if the
14667 `citations` extension is enabled. (If the citations are formatted
14668 as markdown citations, it is redundant to have a bibliography,
14669 since one will be generated automatically.)
14671 * Previously we used to store the directory of the first input file,
14672 even if it was local, and used this as a base directory for finding
14673 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
14674 users. So we now look for images relative to the current
14675 working directory, even if the first file argument is in another
14676 directory. Note that this change may break some existing workflows.
14677 If you have been assuming that relative links will be interpreted
14678 relative to the directory of the first file argument, you'll need
14679 to make that the current directory before running pandoc. (#942)
14681 * Better error reporting in some readers, due to changes in `readWith`:
14682 the line in which the error occurred is printed, with a caret pointing
14685 * All slide formats now support incremental slide view for definition lists.
14687 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
14688 Parse `:<math>...</math>` as display math. These notations are used with
14689 the MathJax MediaWiki extension.
14691 * All writers: template variables are set automatically from metadata
14692 fields. However, variables specified on the command line with
14693 `--variable` will completely shadow metadata fields.
14695 * If `--variable` is used to set many variables with the same name,
14698 * Man writer: The `title`, `section`, `header`, and `footer` can now
14699 all be set individually in metadata. The `description` variable has been
14700 removed. Quotes have been added so that spaces are allowed in the
14701 title. If you have a title that begins
14703 COMMAND(1) footer here | header here
14705 pandoc will still parse it into a title, section, header, and
14706 footer. But you can also specify these elements explicitly (#885).
14710 + Added support for YAML metadata blocks, which can come anywhere
14711 in the document (not just at the beginning). A document can contain
14712 multiple YAML metadata blocks.
14713 + HTML span and div tags are parsed as pandoc Span and Div elements.
14717 + Allow simple tables to be printed as grid tables,
14718 if other table options are disabled. This means you can do
14719 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
14720 and all tables will render as grid tables.
14721 + Support YAML title block (render fields in alphabetical order
14722 to make output predictable).
14726 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
14727 structured metadata. (Note: existing code that pattern-matches
14728 on `Meta` will have to be revised.) Metadata can now contain
14729 indefinitely many fields, with content that can be a string,
14730 a Boolean, a list of `Inline` elements, a list of `Block`
14731 elements, or a map or list of these.
14733 * A new generic block container (`Div`) has been added to `Block`,
14734 and a generic inline container (`Span`) has been added to `Inline`.
14735 These can take attributes. They will render in HTML, Textile,
14736 MediaWiki, Org, RST and Markdown (with `markdown_in_html`
14737 extension) as HTML `<div>` and `<span>` elements; in other formats
14738 they will simply pass through their contents. But they can be
14739 targeted by scripts.
14741 * `Format` is now a newtype, not an alias for String.
14742 Equality comparisons are case-insensitive.
14744 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
14745 functions that are much faster than the SYB functions from
14746 `Text.Pandoc.Generic`. These functions are now used where possible
14747 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
14748 match the generic traversals `bottomUp` and `queryWith`.)
14750 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
14751 instances for the basic pandoc types. They use GHC generics and
14752 should be faster than the old JSON serialization using
14753 `Data.Aeson.Generic`.
14755 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
14756 This is a souped-up version of `readProcessWithErrorcode` that
14757 uses lazy bytestrings instead of strings and allows setting
14758 environment variables. (Used in `Text.Pandoc.PDF`.)
14760 * New module `Text.Pandoc.Readers.OPML`.
14762 * New module `Text.Pandoc.Writers.OPML`.
14764 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
14765 This is based on Haddock's own lexer/parser.
14767 * New module `Text.Pandoc.Writers.Custom`.
14769 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
14770 Either, for better error handling.
14772 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
14774 * Removed `stripTags` from `Text.Pandoc.XML`.
14776 * `Text.Pandoc.Templates`:
14778 + Simplified `Template` type to a newtype.
14780 + Changed type of `renderTemplate`: it now takes a JSON context
14781 and a compiled template.
14782 + Export `compileTemplate`.
14783 + Export `renderTemplate'` that takes a string instead of a compiled
14785 + Export `varListToJSON`.
14787 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
14791 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
14792 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
14793 `Text.Pandoc.JSON` should be used instead. (Compiling against
14794 pandoc-types instead of pandoc will also produce smaller executables.)
14795 * Removed the deprecated `jsonFilter` function.
14796 + Added `readJSON`, `writeJSON` to the API (#817).
14798 * `Text.Pandoc.Options`:
14800 + Added `Ext_lists_without_preceding_blankline`,
14801 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
14802 `Ext_yaml_metadataBlock` to `Extension`.
14803 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
14804 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
14805 first command-line argument is an absolute URL. (So, relative links
14806 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
14807 + All bibliography-related fields have been removed from
14808 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
14809 `readerReferences`, `readerCitationStyle`.
14811 * The `Text.Pandoc.Biblio` module has been removed. Users of the
14812 pandoc library who want citation support will need to use
14813 `Text.CSL.Pandoc` from `pandoc-citeproc`.
14817 * In markdown, don't autolink a bare URI that is followed by `</a>`
14820 * `Text.Pandoc.Shared`
14822 + `openURL` now follows redirects (#701), properly handles `data:`
14823 URIs, and prints diagnostic output to stderr rather than stdout.
14824 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
14825 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
14826 + Fixed `readDefaultDataFile` so it works on Windows.
14827 + Better error messages for `readDefaultDataFile`. Instead of
14828 listing the last path tried, which can confuse people who are
14829 using `--self-contained`, so now we just list the data file name.
14830 + URL-escape pipe characters. Even though these are legal, `Network.URI`
14831 doesn't regard them as legal in URLs. So we escape them first (#535).
14833 * Mathjax in HTML slide shows: include explicit "Typeset" call.
14834 This seems to be needed for some formats (e.g. slideous) and won't
14835 hurt in others (#966).
14837 * `Text.Pandoc.PDF`
14839 + On Windows, create temdir in working directory, since the system
14840 temp directory path may contain tildes, which can cause
14841 problems in LaTeX (#777).
14842 + Put temporary output directory in `TEXINPUTS` (see #917).
14843 + `makePDF` tries to download images that are not found locally,
14844 if the first argument is a URL (#917).
14845 + If compiling with `pdflatex` yields an encoding error, offer
14846 the suggestion to use `--latex-engine=xelatex`.
14848 * Produce automatic header identifiers in parsing textile, RST,
14849 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
14851 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
14852 before treating as a filename. This fixes `--self-contained` when used
14853 with CSS files that include web fonts using the method described here:
14854 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
14855 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
14857 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
14858 percent-encoding, or a `+` character, as final punctuation.
14860 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
14861 EPS images properly sized on conversion to Word.
14863 * Slidy: Use slidy.js rather than slidy.js.gz.
14864 Reason: some browsers have trouble with the gzipped js file,
14865 at least on the local file system (#795).
14869 + Properly handle blank line at beginning of input (#882).
14870 + Fixed bug in unmatched reference links. The input
14871 `[*infile*] [*outfile*]` was getting improperly parsed:
14872 "infile" was emphasized, but "*outfile*" was literal (#883).
14873 + Allow internal `+` in citation identifiers (#856).
14874 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
14875 + Do not generate blank title, author, or date metadata elements.
14876 Leave these out entirely if they aren't present.
14877 + Allow backtick code blocks not to be preceded by blank line (#975).
14881 + Correctly handle entities.
14882 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
14883 in code blocks, rather than printing them verbatim. Parse attributes
14884 on `<pre>` tag for code blocks.
14886 * HTML reader: Handle non-simple tables (#893). Column widths are read from
14887 `col` tags if present, otherwise divided equally.
14891 + Support alltt environment (#892).
14892 + Support `\textasciitilde`, `\textasciicircum` (#810).
14893 + Treat `\textsl` as emphasized text reader (#850).
14894 + Skip positional options after `\begin{figure}`.
14895 + Support `\v{}` for hacek (#926).
14896 + Don't add spurious ", " to citation suffixes.
14897 This is added when needed in pandoc-citeproc.
14898 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
14899 + Improved support for accented characters (thanks to Scott Morrison).
14900 + Parse label after section command and set id (#951).
14904 + Don't insert paragraphs where docutils doesn't.
14905 `rst2html` doesn't add `<p>` tags to list items (even when they are
14906 separated by blank lines) unless there are multiple paragraphs in the
14907 list. This commit changes the RST reader to conform more closely to
14908 what docutils does (#880).
14909 + Improved metadata. Treat initial field list as metadata when
14910 standalone specified. Previously ALL fields "title", "author",
14911 "date" in field lists were treated as metadata, even if not at
14912 the beginning. Use `subtitle` metadata field for subtitle.
14913 + Fixed 'authors' metadata parsing in reST. Semicolons separate
14918 + Allow space before table rows.
14919 + Fixed regression for `<ref>URL</ref>`.
14920 `<` is no longer allowed in URLs, according to the uri parser
14921 in `Text.Pandoc.Parsing`. Added a test case.
14922 + Correctly handle indented preformatted text without preceding
14923 or following blank line.
14924 + Fixed `|` links inside table cells. Improved attribute parsing.
14925 + Skip attributes on table rows. Previously we just crashed if
14926 rows had attributes, now we ignore them.
14927 + Ignore attributes on headers.
14928 + Allow `Image:` for images (#971).
14929 + Parse an image with caption in a paragraph by itself as a figure.
14933 + Don't use ligatures in escaping inline code.
14934 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
14935 wherein notes were numbered incorrectly in tables (#827).
14936 + Always create labels for sections. Previously the labels were only
14937 created when there were links to the section in the document (#871).
14938 + Stop escaping `|` in LaTeX math.
14939 This caused problems with array environments (#891).
14940 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
14941 `\` will cause major problems if unescaped.
14942 + Write id for code block to label attribute in LaTeX when listings
14943 is used (thanks to Florian Eitel).
14944 + Scale LaTeX tables so they don't exceed columnwidth.
14945 + Avoid problem with footnotes in unnumbered headers (#940).
14947 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
14948 to the slide if it is one of the header classes. It is recommended
14949 that your bibliography slide have this attribute:
14951 # References {.allowframebreaks}
14953 This causes multiple slides to be created if necessary, depending
14954 on the length of the bibliography.
14956 * ConTeXt writer: Properly handle tables without captions. The old output
14957 only worked in MkII. This should work in MkIV as well (#837).
14959 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
14963 + Fixed `--no-highlight` (Alexander Kondratskiy).
14964 + Don't convert to lowercase in email obfuscation (#839).
14965 + Ensure proper escaping in `<title>` and `<meta>` fields.
14969 + Support `--atx-headers` (Max Rydahl Andersen).
14970 + Don't print empty identifier blocks `([[]])` on headers (Max
14975 + Fixing wrong numbered-list indentation in open document format
14976 (Alexander Kondratskiy) (#369).
14977 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
14978 + Minor changes for ODF 1.2 conformance (#939). We leave the
14979 nonconforming `contextual-spacing` attribute, which is provided by
14980 LibreOffice itself and seems well supported.
14984 + Fixed rendering of display math in lists.
14985 In 1.11 and 1.11.1, display math in lists rendered as a new list
14986 item. Now it always appears centered, just as outside of lists,
14987 and in proper display math style, no matter how far indented the
14988 containing list item is (#784).
14989 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
14990 Previously we used `w:cr` (#873).
14991 + Use Compact style for Plain block elements, to
14992 differentiate between tight and loose lists (#775).
14993 + Ignore most components of `reference.docx`.
14994 We take the `word/styles.xml`, `docProps/app.xml`,
14995 `word/theme/theme1.xml`, and `word/fontTable.xml` from
14996 `reference.docx`, ignoring everything else. This should help
14997 with the corruption problems caused when different versions of
14998 Word resave the reference.docx and reorganize things.
14999 + Made `--no-highlight` work properly.
15003 + Don't add `dc:creator` tags if present in EPUB metadata.
15004 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
15005 + Don't put blank title page in reading sequence.
15006 Set `linear="no"` if no title block. Addresses #797.
15007 + Download webtex images and include as data URLs.
15008 This allows you to use `--webtex` in creating EPUBs.
15009 Math with `--webtex` is automatically made self-contained.
15010 + In `data/epub.css`, removed highlighting styles (which
15011 are no longer needed, since styles are added by the HTML
15012 writer according to `--highlighting-style`). Simplified
15014 + If resource not found, skip it, as in Docx writer (#916).
15018 + Properly handle characters above the 0000-FFFF range.
15019 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
15020 + Fixed regression with RTF table of contents.
15021 + Only autolink absolute URIs. This fixes a regression, #830.
15025 + Only autolink absolute URIs. This fixes a regression, #830.
15026 + Don't wrap attributes in fenced code blocks.
15027 + Write full metadata in MMD style title blocks.
15028 + Put multiple authors on separate lines in pandoc titleblock.
15029 Also, don't wrap long author entries, as new lines get treated
15032 * `Text.Pandoc.Templates`:
15034 + Fixed bug retrieving default template for markdown variants.
15035 + Templates can now contain "record lookups" in variables;
15036 for example, `author.institution` will retrieve the `institution`
15037 field of the `author` variable.
15038 + More consistent behavior of `$for$`. When `foo` is not a list,
15039 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
15040 So if `foo` resolves to "", no output should be produced.
15041 See pandoc-templates#39.
15043 * Citation processing improvements (now part of pandoc-citeproc):
15045 + Fixed `endWithPunct` The new version correctly sees a sentence
15046 ending in '.)' as ending with punctuation. This fixes a bug which
15047 led such sentences to receive an extra period at the end: '.).'.
15048 Thanks to Steve Petersen for reporting.
15049 + Don't interfere with Notes that aren't citation notes.
15050 This fixes a bug in which notes not generated from citations were
15051 being altered (e.g. first letter capitalized) (#898).
15052 + Only capitalize footnote citations when they have a prefix.
15053 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
15054 inserted before it before passing to citeproc-hs, so that bare numbers
15055 are treated as page numbers by default. A suffix not beginning with
15056 punctuation has a space added at the beginning (rather than a comma and
15057 space, as was done before for not-author-in-text citations).
15058 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
15059 properly, with '23' treated as a locator of type 'page'.
15060 + Many improvements to citation rendering, due to fixes in citeproc-hs
15061 (thanks to Andrea Rossato).
15062 + Warnings are issued for undefined citations, which are rendered
15064 + Fixed hanging behavior when locale files cannot be found.
15066### Template changes
15068 * DocBook: Use DocBook 4.5 doctype.
15070 * Org: '#+TITLE:' is inserted before the title.
15071 Previously the writer did this.
15073 * LaTeX: Changes to make mathfont work with xelatex.
15074 We need the mathspec library, not just fontspec, for this.
15075 We also need to set options for setmathfont (#734).
15077 * LaTeX: Use `tex-ansi` mapping for `monofont`.
15078 This ensures that straight quotes appear as straight, rather than
15079 being treated as curly. See #889.
15081 * Made `\includegraphics` more flexible in LaTeX template.
15082 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
15084 * LaTeX/Beamer: Added `classoption` variable.
15085 This is intended for class options like `oneside`; it may
15086 be repeated with different options. (Thanks to Oliver Matthews.)
15088 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
15090 * LaTeX: Added `biblio-style` variable (#920).
15092 * DZSlides: title attribute on title section.
15094 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
15096### Under-the-hood improvements
15098 * Markdown reader:Improved strong/emph parsing, using the strategy of
15099 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
15100 no backtracking, and no keeping track of nesting levels. It will give
15101 different results in some edge cases, but these should not affect normal
15104 * Added `Text.Pandoc.Compat.Monoid`.
15105 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
15106 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
15108 * Added `Text.Pandoc.Compat.TagSoupEntity`.
15109 This allows pandoc to compile with `tagsoup` 0.13.x.
15110 Thanks to Dirk Ullrich for the patch.
15112 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
15113 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
15114 handle simple math in bibliography fields.)
15116 * Added `Text.Pandoc.Writers.Shared` for shared functions used
15117 only in writers. `metaToJSON` is used in writers to create a
15118 JSON object for use in the templates from the pandoc metadata
15119 and variables. `getField`, `setField`, and `defField` are
15120 for working with JSON template contexts.
15122 * Added `Text.Pandoc.Asciify` utility module.
15123 This exports functions to create ASCII-only versions of identifiers.
15125 * `Text.Pandoc.Parsing`
15127 + Generalized state type on `readWith` (API change).
15128 + Specialize readWith to `String` input. (API change).
15129 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
15130 with `stateMeta` and `stateMeta'`.
15132 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
15133 bytestrings seemed to cause problems using pandoc on 64-bit Windows
15136 * Factored out `registerHeader` from markdown reader, added to
15137 `Text.Pandoc.Parsing`.
15139 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
15140 Reason: < 0.5 does not provide a monoid instance for Attribute,
15141 which is now needed by the HTML writer (#803).
15143 * Added `http-conduit` flag, which allows fetching https resources.
15144 It also brings in a large number of dependencies (`http-conduit`
15145 and its dependencies), which is why for now it is an optional flag
15148 * Added CONTRIBUTING.md.
15150 * Improved INSTALL instructions.
15152 * `make-windows-installer.bat`: Removed explicit paths for executables.
15154 * `aeson` is now used instead of `json` for JSON.
15156 * Set default stack size to 16M. This is needed for some large
15157 conversions, esp. if pandoc is compiled with 64-bit ghc.
15159 * Various small documentation improvements.
15160 Thanks to achalddave and drothlis for patches.
15162 * Removed comment that chokes recent versions of CPP (#933).
15164 * Removed support for GHC version < 7.2, since pandoc-types now
15165 requires at least GHC 7.2 for GHC generics.
15168## pandoc 1.11.1 (2013-03-17)
15172 + Fixed regression in which parentheses were lost in link URLs.
15173 Added tests. Closes #786.
15174 + Better handling of unmatched double quotes in `--smart` mode.
15175 These occur frequently in fiction, since it is customary not to
15176 close quotes in dialogue if the speaker does not change between
15177 paragraphs. The unmatched quotes now get turned into literal
15178 left double quotes. (No `Quoted` inline is generated, however.)
15179 Closes #99 (again).
15181 * HTML writer: Fixed numbering mismatch between TOC and sections.
15182 `--number-offset` now affects TOC numbering as well
15183 as section numbering, as it should have all along. Closes #789.
15185 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
15186 as markdown citations, even if `--bibliography` was specified, unless
15187 `citation` extension is disabled. Now, formatted citations are always
15188 printed if `--bibliography` was specified. If you want to reformat
15189 markdown keeping pandoc markdown citations intact, don't use
15190 `--bibliography`. Note that citations parsed from LaTeX documents will
15191 be rendered as pandoc markdown citations when `--bibliography` is not
15194 * ODT writer: Fixed regression leading to corrupt ODTs.
15195 This was due to a change in the `Show` instance for
15196 `Text.Pandoc.Pretty.Doc`. Closes #780.
15198 * Fixed spacing bugs involving code block attributes in
15199 RST reader and Markdown writer. Closes #763.
15201 * Windows package: Various improvements due to Fyodor Sheremetyev.
15203 + Automatically set installation path (Program Files or Local App Data).
15204 + Set system PATH environment variable when installing for all users.
15205 + Pandoc can installed for all users using the following command.
15206 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
15208 * Bumped QuickCheck version bound.
15210## pandoc 1.11 (2013-03-09)
15212 * Added `--number-offset` option. (See README for description.)
15214 * Added `--default-image-extension` option. (See README for description.)
15216 * `--number-sections` behavior change: headers with class `unnumbered`
15217 will not be numbered.
15219 * `--version` now reports the default data directory.
15221 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
15223 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
15225 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
15226 a field for `Attr` rather than just `String`. (API change.)
15228 * Added `markdown_github` as input format. This was an accidental
15231 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
15234 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
15238 + Fixed captions with longtable. Thanks to Joost Kremers.
15239 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
15243 + Load microtype after fonts. Microtype needs to know
15244 what fonts are being used. Thanks to dfc for the patch.
15245 + Set `secnumdepth` to 5 if `--number-sections` specified.
15246 This yields behavior equivalent to the other writers, numbering
15247 level 4 and 5 headers too. Closes #753.
15251 + Handle `<colgroup>` tag.
15252 + Preserve all header attributes.
15256 + Parse `\hrule` as `HorizontalRule`. Closes #746.
15257 + Parse starred variants of `\section` etc. as headers with
15258 attribute `unnumbered`.
15259 + Read optional attributes in `lstlisting` and `Verbatim` environments.
15260 We convert these to pandoc standard names, e.g. `numberLines`
15261 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
15262 + Handle language attribute for lstlistings.
15263 + Better support for Verbatim and minted environments. Closes #763.
15267 + `-` in an attribute context = `.unnumbered`. The point of this
15268 is to provide a way to specify unnumbered headers in non-English
15270 + Fixed bug parsing key/value attributes. Parsing failed if you
15271 had an unquoted attribute immediately before the final '}'.
15272 + Make backslash escape work in attributes.
15273 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
15274 pandoc will parse a MMD title block if it sees one, even if
15275 `pandoc_title_blocks` is enabled.
15276 + Refactoring: `litChar` now includes entities, so we don't need
15277 to use `fromEntities` e.g. on titles.
15278 + Allow spaces around borders in pipe tables. Closes #772.
15279 + Allow all punctuation in angle-bracket autolinks. Previously
15280 things like `----` were disallowed, because the uri parser
15281 treated them as trailing punctuation. Closes #768.
15282 + Make `implicit_header_references` work properly when
15283 headers are given explicit identifiers.
15284 + Check for tables before line blocks. Otherwise some pipe
15285 tables get treated as line blocks.
15286 + Allow `&` in emails (for entities).
15287 + Properly handle entities in titles and links. A markdown link
15288 `<http://göogle.com>` should be a link to `http://göogle.com`.
15293 + Handle attributes on headers.
15297 + Add `fig:` as title for images with captions.
15298 This is needed for them to be rendered as figures. Closes #766.
15299 + Never emit an empty paragraph. See #761.
15300 + Handle `\caption` for images in figures. Closes #766.
15301 + Parse `\section*`, etc. as unnumbered sections.
15305 + Support header attributes. The attributes go on
15306 the enclosing `section` or `div` tag if `--section-divs` is specified.
15307 + Fixed a regression (only now noticed) in html+lhs output.
15308 Previously the bird tracks were being omitted.
15312 + Omit lists with no items to avoid LaTeX errors.
15313 + Support line numbering with `--listings`.
15314 If `numberLines` class is present, we add `numbers=left`;
15315 if `startFrom` is present, we add `firstnumber=`. (#763)
15319 + Removed `\placecontent`. This produced a duplicate toc,
15320 in conjunction with `\placelist`.
15321 + Use `\title`, `\subject` etc. for headers with
15322 `unnumbered` class.
15326 + Support header attributes.
15330 + Use grid tables when needed, and if enabled. Closes #740.
15331 + Render citations as pandoc-markdown citations.
15332 Previously citations were rendered as citeproc-formatted citations
15333 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
15334 unless the `citations` extension is disabled.
15335 If you still want formatted citations in your markdown output,
15336 use `pandoc -t markdown-citations`.
15340 + Support `:number-lines:` in code blocks.
15344 + Better treatment of display math. Display math inside a
15345 paragraph is now put in a separate paragraph, so it will render
15346 properly (centered and without extra blank lines around it).
15347 Partially addresses #742.
15348 + Content types and document rels xml files are now created from
15349 scratch, rather than being taken over from `reference.docx`.
15350 This fixes problems that arise when you edit the `reference.docx`
15352 + We also now encode mime types for each individual image rather
15353 than using defaults. This should allow us to handle a wider
15354 range of image types (including PDF). Closes #414.
15355 + Changed style names in `reference docx`.
15356 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
15357 The old names got changed by Word when the `reference.docx` was
15358 edited. Closes #414.
15362 + Fix section numbering. Previously the numbering restarted from 1
15363 in each chapter (with `--number-sections`), though the numbers in
15364 the table of contents were correct.
15365 + Headers with "unnumbered" attribute are not numbered. (Nor do they
15366 cause an increment in running numbering.) Section numbers now work
15367 properly, even when there is material before the first numbered section.
15368 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
15369 but `linear` is set to `no` unless the `--toc` option is specified.
15370 Include `<guide>` element in OPF. This should allow the TOC to
15371 be usable in Kindles when converted with kindlegen. Closes #773.
15373 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
15374 This dramatically reduces the speed penalty that comes from enabling the
15375 `autolink_bare_uris` extension. The penalty is still substantial (in one
15376 test, from 0.33s to 0.44s), but nowhere near what it used to be.
15377 The RST reader is also much faster now, as it autodetects URIs.
15379 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
15380 with class "unnumbered". Unnumbered sections get `[]` for their
15383 * `Text.Pandoc.Pretty`:
15385 + Fixed `chomp` so it works inside `Prefixed` elements.
15386 + Changed `Show` instance so it is better for debugging.
15388 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
15390 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
15392 * Windows installer improvements:
15394 + The installer is now signed with a certificate (thanks to
15395 Fyodor Sheremetyev).
15396 + WiX is used instead of InnoSetup. The installer is now a
15398 + The version number is now auto-detected, and need not be
15399 updated separately.
15401 * OSX installer improvements:
15403 + The package and pandoc executable are now signed with a
15404 certificate (thanks to Fyodor Sheremetyev).
15405 + RTF version of license is used.
15406 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
15409 * Converted COPYING to markdown.
15411 * pandoc.cabal: Require latest versions of highlighting-kate,
15412 texmath, citeproc-hs, zip-archive.
15414## pandoc 1.10.1 (2013-01-23)
15416 * Markdown reader: various optimizations, leading to a
15417 significant performance boost.
15419 * RST reader: Allow anonymous form of inline links:
15420 `` `hello <url>`__ `` Closes #724.
15422 * Mediawiki reader: Don't require newlines after tables.
15423 Thanks to jrunningen for the patch. Closes #733.
15425 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
15426 when output is LaTeX, and applied when it is another format.
15427 Partially addresses #730.
15429 * Markdown and RST readers: Added parser to `block` that skips blank
15430 lines. This fixes a subtle regression involving grid tables with
15431 empty cells. Also added test for grid table with empty cells.
15434 * RST writer: Use `.. code:: language` for code blocks with language.
15437 * DocBook writer: Fixed output for hard line breaks, adding a newline
15438 between `<literallayout>` tags.
15440 * Markdown writer: Use an autolink when link text matches url.
15441 Previously we also checked for a null title, but this
15442 test fails for links produced by citeproc-hs in bibliographies.
15443 So, if the link has a title, it will be lost on conversion
15444 to an autolink, but that seems okay.
15446 * Markdown writer: Set title, author, date variables as before.
15447 These are no longer used in the default template, since we use
15448 titleblock, but we set them anyway for those who use custom templates.
15450 * LaTeX writer: Avoid extra space at start/end of table cell.
15451 Thanks to Nick Bart for the suggestion of using @{}.
15453 * `Text.Pandoc.Parsing`:
15455 + More efficient version of `anyLine`.
15456 + Type of `macro` has changed; the parser now returns `Blocks`
15457 instead of `Block`.
15459 * Relaxed old-time version bound, allowing 1.0.*.
15461 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
15462 should create a symlink as described in the README.
15464## pandoc 1.10.0.5 (2013-01-23)
15466 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
15467 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
15468 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
15470 * Markdown reader: Fixed bug with headerless grid tables.
15471 The 1.10 code assumed that each table header cell contains exactly one
15472 block. That failed for headerless tables (0) and also for tables with
15473 multiple blocks in a header cell. The code is fixed and tests provided.
15474 Thanks to Andrew Lee for pointing out the bug.
15476 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
15478 + Tilde code fences can again take a bare language string
15479 (`~~~ haskell`), not just curly-bracketed attributes
15480 (`~~~ {.haskell}`).
15481 + Backtick code blocks can take the curly-bracketed attributes.
15482 + Backtick code blocks don't *require* a language.
15483 + Consolidated code for the two kinds of fenced code blocks.
15485 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
15487 * Markdown writer: Use proportional font for email autolinks with
15488 obfuscation. Closes #714.
15490 * Corrected name of `blank_before_blockquote` in README. Closes #718.
15492 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
15493 The bug prevented an autolink at the end of a string (e.g.
15494 at the end of a line block line) from counting as a link. Closes #711.
15496 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
15497 This should work on Windows, unlike the TH solution with
15500 * Eliminated use of TH in test suite.
15502 * Added `Text.Pandoc.Data` (non-exported) to hold the association
15503 list of embedded data files, if the `embed_data_files` flag is selected.
15504 This isolates the code that needs special treatment with file-embed or
15507 * Changes to `make-windows-installer.bat`.
15509 + Exit batch file if any of the cabal-dev installs fail.
15510 + There's no longer any need to reinstall `highlighting-kate`.
15511 + Don't start with a `cabal update`; leave that to the user.
15512 + Force reinstall of pandoc.
15514 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
15517## pandoc 1.10.0.4 (2013-01-20)
15519 * Fixed bug with escaped % in LaTeX reader. Closes #710.
15521## pandoc 1.10.0.3 (2013-01-20)
15523 * Added further missing fb2 tests to cabal file.
15525## pandoc 1.10.0.2 (2013-01-20)
15527 * Added fb2 tests to cabal file's extra-source-files.
15529## pandoc 1.10.0.1 (2013-01-20)
15531 * Bump version bounds on test-framework packages.
15533## pandoc 1.10 (2013-01-19)
15537 * New input formats: `mediawiki` (MediaWiki markup).
15539 * New output formats: `epub3` (EPUB v3 with MathML),
15540 `fb2` (FictionBook2 ebooks).
15542 * New `--toc-depth` option, specifying how many levels of
15543 headers to include in a table of contents.
15545 * New `--epub-chapter-level` option, specifying the header
15546 level at which to divide EPUBs into separate files.
15547 Note that this normally affects only performance, not the
15548 visual presentation of the EPUB in a reader.
15550 * Removed the `--strict` option. Instead of using `--strict`,
15551 one can now use the format name `markdown_strict` for either input
15552 or output. This gives more fine-grained control that `--strict`
15553 did, allowing one to convert from pandoc's markdown to strict
15554 markdown or vice versa.
15556 * It is now possible to enable or disable specific syntax
15557 extensions by appending them (with `+` or `-`) to the writer
15558 or reader name. For example,
15560 pandoc -f markdown-footnotes+hard_line_breaks
15562 disables footnotes and enables treating newlines as hard
15563 line breaks. The literate Haskell extensions are now implemented
15564 this way as well, using either `+lhs` or `+literate_haskell`.
15565 For a list of extension names, see the README under
15566 "Pandoc's Markdown."
15568 * The following aliases have been introduced for specific
15569 combinations of markdown extensions: `markdown_phpextra`,
15570 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
15571 work just like regular reader and writer names, and can be modified
15572 with extension modifiers as described above. (Note that conversion
15573 from one markdown dialect to another does not work perfectly,
15574 because there are differences in markdown parsers besides
15575 just the extensions, and because pandoc's internal document model is
15576 not rich enough to capture all of the extensions.)
15578 * New `--html-q-tags` option. The previous default was to use `<q>`
15579 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
15580 Moreover, they are not a robust way of typesetting quotes, since
15581 some user agents don't support them, and some CSS resets (e.g.
15582 bootstrap) prevent pandoc's quotes CSS from working properly.
15583 We now just insert literal quote characters by default in both
15584 `html` and `html5` output, but this option is provided for
15585 those who still want `<q>` tags.
15587 * The markdown reader now prints warnings (to stderr) about
15588 duplicate link and note references. Closes #375.
15590 * Markdown syntax extensions:
15592 + Added pipe tables. Thanks to François Gannaz for the initial patch.
15593 These conform to PHP Markdown Extra's pipe table syntax. A subset
15594 of org-mode table syntax is also supported, which means that you can
15595 use org-mode's nice table editor to create tables.
15597 + Added support for RST-style line blocks. These are
15598 useful for verse and addresses.
15600 + Attributes can now be specified for headers, using the same
15601 syntax as in code blocks. (However, currently only the
15602 identifier has any effect in most writers.) For example,
15606 See [the header above](#foo).
15608 + Pandoc will now act as if link references have been defined
15609 for all headers without explicit identifiers.
15610 So, you can do this:
15614 Link to [My header].
15615 Another link to [it][My header].
15621 + Command macros now work everywhere, including non-math.
15622 Environment macros still not supported.
15623 + `\input` now works, as well as `\include`. TEXINPUTS is used.
15624 Pandoc looks recursively into included files for more included files.
15626### Behavior changes
15628 * The Markdown reader no longer puts the text of autolinks in a
15629 `Code` inline. This means that autolinks will no longer appear
15630 in a monospace font.
15632 * The character `/` can now appear in markdown citation keys.
15634 * HTML blocks in strict_markdown are no longer required to begin
15635 at the left margin. Technically this is required, according to
15636 the markdown syntax document, but `Markdown.pl` and other markdown
15637 processors are more liberal.
15639 * The `-V` option has been changed so that if there are duplicate
15640 variables, those specified later on the command line take precedence.
15642 * Tight lists now work in LaTeX and ConTeXt output.
15644 * The LaTeX writer no longer relien on the `enumerate` package.
15645 Instead, it uses standard LaTeX commands to change the list numbering
15648 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
15649 tables to be split over page boundaries.
15651 * The RST writer now uses a line block to render paragraphs containing
15652 linebreaks (which previously weren't supported at all).
15654 * The markdown writer now applies the `--id-prefix` to footnote IDs.
15657 * The plain writer no longer uses backslash-escaped line breaks
15658 (which are not very "plain").
15660 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
15661 Read bytestring and use `Text`'s decodeUtf8 instead of using
15662 `System.IO.hGetContents`. This way you get a message saying
15663 "invalid UTF-8 stream" instead of "invalid byte sequence."
15664 You are also told which byte caused the problem.
15666 * Docx, ODT, and EPUB writers now download images specified by a URL
15667 instead of skipping them or raising an error.
15671 + The default CSS now left-aligns headers by default, instead of
15672 centering. This is more consistent with the rest of the writers.
15673 + A proper multi-level table of contents is now used in `toc.ncx`.
15674 There is no longer a subsidiary table of contents at the beginning
15676 + Code highlighting now works by default.
15677 + Section divs are used by default for better semantic markup.
15678 + The title is used instead of "Title Page" in the table of contents.
15679 Otherwise we have a hard-coded English string, which looks
15680 strange in ebooks written in other languages. Closes #572.
15684 + Put mathjax in span with class "math". Closes #562.
15685 + Put citations in a span with class "citation." In HTML5, also include
15686 a `data-cite` attribute with a space-separated list of citation
15689 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
15690 This treats both `\r\n` and `\n` as `\n` on input, no matter
15691 what platform we're running on.
15693 * Citation processing is now done in the Markdown and LaTeX
15694 readers, not in `pandoc.hs`. This makes it easier for library users
15697### Template changes
15699 * HTML: Added css to template to preserve spaces in `<code>` tags.
15700 Thanks to Dirk Laurie.
15702 * Beamer: Remove English-centric strings in section pages.
15703 Section pages used to have "Section" and a number as well as the
15704 section title. Now they just have the title. Similarly for part
15705 and subsection. Closes #566.
15707 * LaTeX, ConTeXt: Added papersize variable.
15709 * LaTeX, Beamer templates: Use longtable instead of ctable.
15711 * LaTeX, Beamer templates: Don't require 'float' package for tables.
15712 We don't actually seem to use the '[H]' option.
15714 * Markdown, plain: Fixed titleblock so it is just a single string.
15715 Previously separate title, author, and date variables were used,
15716 but this didn't allow different kinds of title blocks.
15720 + Rationalized templates. Previously there were three different
15721 templates involved in epub production. There is now just one
15722 template, `default.epub` or `default.epub3`. It can now be
15723 overridden using `--template`, just like other templates.
15724 The titlepage is now folded into the default template.
15725 A `titlepage` variable selects it.
15726 + UTF-8, lang tag, meta tags, title element.
15728 * Added scale-to-width feature to beamer template
15732 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
15733 Previously header identifiers were autogenerated by the writers.
15734 Now they are added in the readers (either automatically or explicitly).
15736 * `Text.Pandoc.Builder`:
15738 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
15739 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
15740 custom Monoid instances for `Many Inline` and `Many Block. This
15741 allows `Many` to be made an instance of `Foldable` and `Traversable`.
15742 + The old `Listable` class has been removed.
15743 + The module now exports `isNull`, `toList`, `fromList`.
15744 + The old `Read` and `Show` instances have been removed; derived
15745 instances are now used.
15746 + Added `headerWith`.
15748 * The readers now take a `ReaderOptions` rather than a `ParserState`
15749 as a parameter. Indeed, not all parsers use the `ParserState` type;
15750 some have a custom state. The motivation for this change was to separate
15751 user-specifiable options from the accounting functions of parser state.
15753 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
15754 formerly in `Text.Pandoc.Shared`, and its associated
15755 data types. It also includes a new type `ReaderOptions`, which
15756 contains many options formerly in `ParserState`, and its associated
15759 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
15760 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
15761 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
15762 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
15763 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
15764 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
15765 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
15766 + `ParserState.stateIndentedCodeClasses` ->
15767 `ReaderOptions.readerIndentedCodeClasses`.
15768 + Added `ReaderOptions.readerCitationStyle`.
15770 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
15771 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
15772 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
15773 been renamed `writerEpubMetadata` for consistency.
15775 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
15776 longer stylesheet, fonts, reference files as separate parameters.
15778 * Removed `writerLiterateHaskell` from `WriterOptions`, and
15779 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
15780 by an extension (`Ext_literate_haskell`).
15782 * Removed deprecated `writerXeTeX`.
15784 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
15785 Strict is now handled through extensions.
15787 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
15788 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
15789 and `multimarkdownExtensions`, as well as the `Extensions` type.
15791 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
15794 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
15795 (thanks to Sergey Astanin).
15799 + Added `getReader`, `getWriter` to `Text.Pandoc`.
15800 + `writers` is now an association list `(String, Writer)`.
15801 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
15802 an `IOByteStringWriter`. ALL writers are now in the 'writers'
15803 list, including the binary writers and FB2 writer. This allows
15804 code in `pandoc.hs` to be simplified.
15805 + Changed type of `readers`, so all readers are in IO.
15806 Users who want pure readers can still get them form the reader
15807 modules; this just affects the function `getReader` that looks up
15808 a reader based on the format name. The point of this change is to
15809 make it possible to print warnings from the parser.
15811 * `Text.Pandoc.Parsing`:
15813 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
15814 No other module directly imports Parsec. This will make it easier
15815 to change the parsing backend in the future, if we want to.
15816 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
15817 + Export the type synonym `Parser`.
15818 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
15819 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
15820 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
15821 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
15822 + `ParserState` is no longer an instance of `Show`.
15823 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
15824 + Generalized type of `withQuoteContext`.
15825 + Added `guardEnabled`, `guardDisabled`, `getOption`.
15826 + Removed `failIfStrict`.
15827 + `lookupKeySrc` and `fromKey` are no longer exported.
15829 * `Data.Default` instances are now provided for `ReaderOptions`,
15830 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
15831 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
15832 of `defaultWriterOptions` (which is still defined). Closes #546.
15834 * `Text.Pandoc.Shared`:
15836 + Added `safeRead`.
15837 + Renamed `removedLeadingTrailingSpace` to `trim`,
15838 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
15839 + Count `\r` as space in `trim` functions.
15840 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
15842 + Removed `failUnlessLHS`.
15843 + Export `compactify'`, formerly in Markdown reader.
15844 + Export `isTightList`.
15845 + Do not export `findDataFile`.
15846 + `readDataFile` now returns a strict ByteString.
15847 + Export `readDataFileUTF8` which returns a String, like the
15848 old `readDataFile`.
15849 + Export `fetchItem` and `openURL`.
15851 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
15852 Removed `readImageSize`.
15854 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
15855 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
15858 * `Text.Pandoc.UTF8` is now an exposed module.
15860 * `Text.Pandoc.Biblio`:
15862 + csl parameter now a `String` rather than a `FilePath`.
15863 + Changed type of `processBiblio`. It is no longer in the IO monad.
15864 It now takes a `Maybe Style` argument rather than parameters for CSL
15865 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
15866 the style file and add abbreviations.)
15868 * Markdown reader now exports `readMarkdownWithWarnings`.
15870 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
15875 * Make `--ascii` work properly with `--self-contained`. Closes #568.
15879 + Fixed link parser to avoid exponential slowdowns. Closes #620.
15880 Previously the parser would hang on input like this:
15882 [[[[[[[[[[[[[[[[[[hi
15884 We fixed this by making the link parser parser characters
15885 between balanced brackets (skipping brackets in inline code spans),
15886 then parsing the result as an inline list. One change is that
15888 [hi *there]* bud](/url)
15890 is now no longer parsed as a link. But in this respect pandoc behaved
15891 differently from most other implementations anyway, so that seems okay.
15893 + Look for raw html/latex blocks before tables.
15894 Otherwise the following gets parsed as a table:
15905 + Added support for `:target:` on `.. image::` blocks
15907 + Field list fixes:
15909 - Fixed field lists items with body beginning after a new line
15911 - Allow any char but ':' in names of field lists in RST reader
15913 - Don't allow line breaks in field names.
15914 - Require whitespace after field list field names.
15915 - Don't create empty definition list for metadata field lists.
15916 Previously a field list consisting only of metadata fields (author,
15917 title, date) would be parsed as an empty DefinitionList, which is
15918 not legal in LaTeX and not needed in any format.
15920 + Don't recognize inline-markup starts inside words.
15921 For example, `2*2 = 4*1` should not contain an emphasized
15922 section. Added test case for "Literal symbols". Closes #569.
15923 + Allow dashes as separator in simple tables. Closes #555.
15924 + Added support for `container`, `compound`, `epigraph`,
15925 `rubric`, `highlights`, `pull-quote`.
15926 + Added support for `.. code::`.
15927 + Made directive labels case-insensitive.
15928 + Removed requirement that directives begin at left margin.
15929 This was (correctly) not in earlier releases; docutils doesn't
15930 make the requirement.
15931 + Added support for `replace::` and `unicode::` substitutions.
15932 + Ignore unknown interpreted roles.
15933 + Renamed image parser to `subst`, since it now handles all
15934 substitution references.
15938 + Allow newlines before pipes in table. Closes #654.
15939 + Fixed bug with list items containing line breaks.
15940 Now pandoc correctly handles hard line breaks inside list items.
15941 Previously they broke list parsing.
15942 + Implemented comment blocks.
15943 + Fixed bug affected words ending in hyphen.
15944 + Properly handle links with surrounding brackets.
15945 Square brackets need to be used when the link isn't surrounded by
15946 spaces or punctuation, or when the URL ending may be ambiguous.
15948 + Removed nullBlock. Better to know about parsing problems than
15949 to skip stuff when we get stuck.
15950 + Allow ID attributes on headers.
15951 + Textile reader: Avoid parsing dashes as strikeout.
15952 Previously the input
15959 would be parsed with strikeouts rather than dashes. This fixes
15960 the problem by requiring that a strikeout delimiting - not be
15961 followed by a -. Closes #631.
15962 + Expanded list of `stringBreakers`.
15963 This fixes a bug on input like "(_hello_)" which should
15964 be a parenthesized emphasized "hello".
15965 The new list is taken from the PHP source of textile 2.4.
15966 + Fixed autolinks. Previously the textile reader and writer
15967 incorrectly implemented RST-style autolinks for URLs and email
15968 addresses. This has been fixed. Now an autolink is done this way:
15969 `"$":http://myurl.com`.
15970 + Fixed footnotes bug in textile. This affected notes occurring
15971 before punctuation, e.g. `foo[1].`. Closes #518.
15975 + Better handling of citation commands.
15976 + Better handling of `\noindent`.
15977 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
15979 + Made `rawLaTeXInline` try to parse block commands as well. This
15980 is usually what we want, given how `rawLaTeXInline` is used in
15981 the markdown and textile readers. If a block-level LaTeX command
15982 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
15983 we can treat it as raw inline LaTeX.
15984 + Handle `\slash` command. Closes #605.
15985 + Basic `\enquote` support.
15986 + Fixed parsing of paragraphs beginning with a group. Closes #606.
15987 + Use curly quotes for bare straight quotes.
15988 + Support obeylines environment. Closes #604.
15989 + Guard against "begin", "end" in inlineCommand and
15991 + Better error messages for environments. Now it should tell you that
15992 it was looking for \end{env}, instead of giving "unknown parse error."
15996 + Added HTML 5 tags to list of block-level tags.
15997 + HTML reader: Fixed bug in `htmlBalanced`, which
15998 caused hangs in parsing certain markdown input using
16000 + Parse `<q>` as `Quoted DoubleQuote`.
16001 + Handle nested `<q>` tags properly.
16002 + Modified `htmlTag` for fewer false positives.
16003 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
16004 This makes it more useful in the wikimedia and markdown parsers.
16006 * DocBook reader: Support title in "figure" element. Closes #650.
16008 * MediaWiki writer:
16010 + Remove newline after `<br/>` in translation of `LineBreak`
16011 There's no particular need for a newline (other than making the
16012 generated MediaWiki source look nice to a human), and in fact
16013 sometimes it is incorrect: in particular, inside an enumeration, list
16014 items cannot have embedded newline characters. (Brent Yorgey)
16015 + Use `<code>` not `<tt>` for Code.
16017 * Man writer: Escape `-` as `\-`.
16018 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
16019 signs. That is preferable for use with command-line options. See
16020 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
16021 to Andrea Bolognani for bringing the issue to our attention.
16025 + Improved line block output. Use nonbreaking spaces for
16026 initial indent (otherwise lost in HTML and LaTeX).
16027 Allow multiple paragraphs in a single line block.
16028 Allow soft breaks w continuations in line blocks.
16029 + Properly handle images with no alt text. Closes #678.
16030 + Fixed bug with links with duplicate text. We now (a) use anonymous
16031 links for links with inline URLs, and (b) use an inline link instead
16032 of a reference link if the reference link would require a label that
16033 has already been used for a different link. Closes #511.
16034 + Fixed hyperlinked images. Closes #611. Use `:target:`
16035 field when you have a simple linked image.
16036 + Don't add `:align: center` to figures.
16038 * Texinfo writer: Fixed internal cross-references.
16039 Now we insert anchors after each header, and use `@ref` instead of `@uref`
16040 for links. Commas are now escaped as `@comma{}` only when needed;
16041 previously all commas were escaped. (This change is needed, in part,
16042 because `@ref` commands must be followed by a real comma or period.) Also
16043 insert a blank line in from of `@verbatim` environments.
16047 + Made --id-prefix work in DocBook as well as HTML.
16049 + Don't include empty captions in figures. Closes #581.
16053 + Use `\hspace*` for nonbreaking space after line break,
16054 since `~` spaces after a line break are just ignored.
16056 + Don't escape `_` in URLs or hyperref identifiers.
16057 + Properly escape strings inside `\url{}`. Closes #576.
16058 + Use `[fragile]` only for slides containing code rendered
16059 using listings. Closes #649.
16060 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
16061 highlighting-kate's macros, which redefine `|` as a short verbatim
16062 delimiter. Thanks to Björn Peemöller for raising this issue.
16063 + Use minipage rather than parbox for block containers in tables.
16064 This allows verbatim code to be included in grid tables.
16066 + Prevent paragraphs containing only linebreaks or spaces.
16070 + Included `highlighting-css` for code spans, too.
16071 Previously it was only included if used in a code block. Closes #653.
16072 + Improved line breaks with `<dd>` tags. We now put a newline between
16073 `</dd>` and `<dd>` when there are multiple definitions.
16074 + Changed mathjax cdn url so it doesn't use https. (This caused
16075 problems when used with `--self-contained`.) See #609.
16079 + `--number-sections` now works properly.
16080 + Don't strip meta and link elements in epub metadata.
16081 Patch from aberrancy. Closes #589.
16082 + Fixed a couple validation bugs.
16083 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
16084 of chapters in some readers, which apparently sort ch2 after ch10.
16087 * ODT writer: properly set title property (Arlo O'Keeffe).
16091 + Fixed bug with nested lists. Previously a list like
16098 would come out with a bullet instead of "2."
16099 Thanks to Russell Allen for reporting the bug.
16100 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
16101 This seems to fix a problem viewing pandoc-generated
16102 docx files in LibreOffice.
16103 + Use integer ids for bookmarks. Closes #626.
16104 + Added nsid to abstractNum elements. This helps when merging
16105 word documents with numbered or bulleted lists. Closes #627.
16106 + Use separate footnotes.xml for notes.
16107 This seems to help LibreOffice convert the file, even though
16108 it was valid docx before. Closes #637.
16109 + Use rIdNN identifiers for r:embed in images.
16110 + Avoid reading image files again when we've already processed them.
16111 + Fixed typo in `referenc.docx` that prevented image captions from
16112 working. Thanks to Huashan Chen.
16114 * `Text.Pandoc.Parsing`:
16116 + Fixed bug in `withRaw`, which didn't correctly handle the case
16117 where nothing is parsed.
16118 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
16119 though it still doesn't implement quoted strings in email addresses.
16120 + Revised URI parser. It now allows many more schemes, allows
16121 uppercase URIs, and better handles trailing punctuation and
16122 trailing slashes in bare URIs. Added many tests.
16123 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
16124 etc. parse properly. Formerly we had some English-centric heuristics,
16125 but they are no longer needed. Closes #698.
16127 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
16128 This fixes bug with Chinese commas in markdown and reST tables, and
16129 a bug that caused combining characters to be dropped.
16131 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
16133 * `Text.Pandoc.Biblio`:
16135 + Run `mvPunc` and `deNote` on metadata too.
16136 This fixed a bug with notes on titles using footnote styles.
16137 + Fixed bug in fetching CSL files from CSL data directory.
16139 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
16140 is provided. It should be the URL up to the path.
16142 * Fixed/simplified diff output for tests.
16143 Biblio: Make sure mvPunc and deNote run on metadata too.
16144 This fixed a bug with notes on titles using footnote styles.
16146### Under the hood improvements
16148 * We no longer depend on `utf8-string`. Instead we use functions
16149 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
16151 * Use `safeRead` instead of using `reads` directly (various modules).
16153 * "Implicit figures" (images alone in a paragraph) are now handled
16154 differently. The markdown reader gives their titles the prefix `fig:`; the
16155 writers look for this before treating the image as a figure. Though this
16156 is a bit of a hack, it has two advantages: (i) implicit figures can be
16157 limited to the markdown reader, and (ii) they can be deactivated by turning
16158 off the `implicit_figures` extension.
16160 * `catch` from `Control.Exception` is now used instead of the
16161 old Preface `catch`.
16163 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
16164 and `oneOfStrings` (which is now non-backtracking).
16166 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
16167 Now citeproc-hs is fixed upstream, so this is no longer needed.
16170 * Textile reader: Improved speed of `hyphenedWords`.
16171 This speeds up the textile reader by about a factor of 4.
16173 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
16174 better performance, and automatic normalization.
16176 * Major rewrite of markdown reader:
16178 + Use `Text.Pandoc.Builder` instead of lists. This also
16179 means that everything is normalized automatically.
16180 + Move to a one-pass parsing strategy, returning values in the reader
16181 monad, which are then run (at the end of parsing) against the final
16184 * In HTML writer, we now use `toHtml` instead of pre-escaping.
16185 We work around the problem that blaze-html unnecessarily escapes `'`
16186 by pre-escaping just the `'` characters, instead of the whole string.
16187 If blaze-html later stops escaping `'` characters, we can simplify
16188 `strToHtml` to `toHtml`. Closes #629.
16190 * Moved code for embedding images in RTFs from `pandoc.hs` to the
16191 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
16193 * Moved citation processing from `pandoc.hs` into the readers.
16194 This makes things more convenient for library users.
16196 * The man pages are now built by an executable `make-pandoc-man-pages`,
16197 which has its own stanza in the cabal file so that dependencies can be
16198 handled by Cabal. Special treatment in `Setup.hs` ensures that this
16199 executable never gets installed; it is only used to create the man pages.
16201 * The cabal file has been modified so that the pandoc library is used
16202 in building the pandoc executable. (This required moving `pandoc.hs`
16203 from `src` to `.`.) This cuts compile time in half.
16205 * The `executable` and `library` flags have been removed.
16207 * `-threaded` has been removed from ghc-options.
16209 * Version bounds of dependencies have been raised, and the
16210 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
16213 * We now require base >= 4.2.
16215 * Integrated the benchmark program into cabal. One can now do:
16217 cabal configure --enable-benchmarks && cabal build
16218 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
16220 The benchmark now uses README + testsuite, so benchmark results
16221 from older versions aren't comparable.
16223 * Integrated test suite with cabal.
16224 To run tests, configure with `--enable-tests`, then `cabal test`.
16225 You can specify particular tests using `--test-options='-t markdown'`.
16226 No output is shown unless tests fail. The Haskell test modules
16227 have been moved from `src/` to `tests/`.
16229 * Moved all data files and templates to the `data/` subdirectory.
16231 * Added an `embed_data_files` cabal flag. This causes all
16232 data files to be embedded in the binary, so that the binary
16233 is self-sufficient and can be relocated anywhere, copied on
16234 a USB key, etc. The Windows installer now uses this.
16235 (Since we no longer have the option to build the executable
16236 without the library, this is the only way to get a relocatable
16237 binary on Windows.)
16239 * Removed pcre3.dll from windows package.
16240 It isn't needed unless highlighting-kate is compiled with the
16241 `pcre-light` flag. By default, regex-prce-builtin is used.
16244## pandoc 1.9.4.5 (2012-10-21)
16246 * Raised version bounds on network, base64-bytestring, json,
16247 and template-haskell.
16249## pandoc 1.9.4.4 (2012-10-20)
16251 * Removed `tests` flag and made test suite into a proper cabal
16252 test suite, which can now be enabled using `--enable-tests`
16253 and run with `cabal test`.
16255 * Moved man page creation out of `Setup.hs` and into an
16256 executable built by Cabal, but never installed. This
16257 allows dependencies to be specified, and solves a problem
16258 with 1.9.4.3, which could only be installed if `data-default`
16259 had already been installed.
16261 * Updated `lhs-latex.tex` test for latest highlighting-kate
16262 representation of backticks.
16264## pandoc 1.9.4.3 (2012-10-20)
16266 * Removed `-threaded` from default compile flags.
16268 * Modified modules to compile with GHC 7.6 and latest version of time
16271## pandoc 1.9.4.2 (2012-06-29)
16273 * Don't encode/decode file paths if base >= 4.4.
16274 Prior to base 4.4, filepaths and command line arguments were treated
16275 as unencoded lists of bytes, not unicode strings, so we had to work
16276 around that by encoding and decoding them. This commit adds CPP
16277 checks for the base version that intelligibly enable encoding/decoding
16278 when needed. Fixes a bug with multilingual filenames when pandoc was
16279 compiled with ghc 7.4 (#540).
16281 * Don't generate an empty H1 after hrule slide breaks.
16282 We now use a slide-level header with contents `[Str "\0"]` to mark
16283 an hrule break. This avoids creation of an empty H1 in these
16284 contexts. Closes #484.
16286 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
16288 * In make_osx_package.sh, ensure citeproc-hs is built with the
16289 embed_data_files flag.
16291 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
16293 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
16294 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
16296 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
16299 * Added webm to mime types. Closes #543.
16301 * Added some missing exports and tests to the cabal file
16302 (Alexander V Vershilov).
16304 * Compile with `-rtsopts` and `-threaded` by default.
16306## pandoc 1.9.4.1 (2012-06-08)
16308 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
16310 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
16311 variables. Make TOC links black.
16313 * LaTeX template improvements.
16315 + Don't print date unless one is given explicitly in the document.
16316 + Simplified templates.
16317 + Use fontenc [T1] by default, and lmodern.
16318 + Use microtype if available.
16322 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
16323 Motivation: `@item1 [50]` should be as close as possible to
16325 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
16326 beginning with a citation to be empty. Closes #531.
16328 * Fixed documentation on mixed lists. Closes #533.
16330## pandoc 1.9.4 (2012-06-03)
16332 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
16333 footnotes and captions. We now handle note citations by inserting
16334 footnotes during initial citation processing, and doing a separate
16335 pass later to remove notes inside notes.
16337 * Added 'zenburn' highlight style from highlighting-kate.
16339 * Added Slideous writer. Slideous is an HTML + javascript slide show
16340 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
16344 + Ensure we don't have extra blank lines at ends of cells.
16345 This can cause LaTeX errors, as they are interpreted as new paragraphs.
16346 + More consistent interblock spacing.
16347 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
16348 code in LaTeX. Closes #527.
16349 + Ensure that a Verbatim at the end of a footnote is followed by
16350 a newline. (Fixes a regression in the previous version.)
16351 + In default template, use black for internal links and TOC.
16352 Added commented-out code to use footnotes for links, as would
16353 be suitable in print output.
16355 * Beamer writer: When `--incremental` is used, lists inside
16356 a block quote should appear all at once. (This makes Beamer
16357 output consistent with the HTML slide show formats.)
16361 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
16362 to avoid gobbling spaces after the `%` sign.
16363 + Ensure space after `\stopformula`.
16367 + Use `:` form instead of `~` in definition lists, for better
16368 compatibility with other markdown implementations.
16369 + Don't wrap the term, because it breaks definition lists.
16370 + Use a nonzero space to prevent false recognition
16371 of list marker in ordered lists. Closes #516.
16373 * Org writer: Add space before language name. Closes #523.
16375 * Docx writer: Simplified bullet characters so they work properly
16376 with Word 2007. Closes #520.
16378 * LaTeX reader: Support `\centerline`.
16380 * RST reader: handle figures. Closes #522.
16382 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
16385## pandoc 1.9.3 (2012-05-12)
16387 * Added docbook reader (with contributions from Mauro Bieg).
16389 * Fixed bug in `fromEntities`. The previous version would turn
16390 `hi & low you know;` into `hi &`.
16394 + Don't skip nonbreaking spaces.
16395 Previously a paragraph containing just ` ` would be rendered
16396 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
16397 + Support `<col>` and `<caption>` in tables. Closes #486.
16401 + Don't recognize references inside delimited code blocks.
16402 + Allow list items to begin with lists.
16406 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
16407 + Control sequences can't be followed by a letter.
16408 This fixes a bug where `\begingroup` was parsed as `\begin`
16409 followed by `group`.
16410 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
16411 + Make `\label` and `\ref` sensitive to `--parse-raw`.
16412 If `--parse-raw` is selected, these will be parsed as raw latex
16413 inlines, rather than bracketed text.
16414 + Don't crash on unknown block commands (like `\vspace{10pt}`)
16415 inside `\author`; just skip them. Closes #505.
16419 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
16420 + Added support for LaTeX blocks and inlines (Paul Rivier).
16421 + Better conformance to RedCloth inline parsing (Paul Rivier).
16422 + Parse '+text+' as emphasized (should be underlined, but this
16423 is better than leaving literal plus characters in the output.
16425 * Docx writer: Fixed multi-paragraph list items. Previously they each
16426 got a list marker. Closes #457.
16430 + Added `--no-tex-ligatures` option to avoid replacing
16431 quotation marks and dashes with TeX ligatures.
16432 + Use `fixltx2e` package to provide `\textsubscript`.
16433 + Improve spacing around LaTeX block environments:
16434 quote, verbatim, itemize, description, enumerate.
16436 + Use blue instead of pink for URL links in latex/pdf output.
16438 * ConTeXt writer: Fixed escaping of `%`.
16439 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
16440 Inside URLs, `%` needs to be escaped as `\%`
16441 Thanks to jmarca and adityam for the fix. Closes #492.
16443 * Texinfo writer: Escape special characters in node titles.
16444 This fixes a problem pointed out by Joost Kremers. Pandoc used
16445 to escape an '@' in a chapter title, but not in the corresponding
16446 node title, leading to invalid texinfo.
16448 * Fixed document encoding in texinfo template.
16449 Resolves Debian Bug #667816.
16453 + Don't force delimited code blocks to be flush left.
16454 Fixes bug with delimited code blocks inside lists etc.
16455 + Escape `<` and `$`.
16457 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
16458 Previously we used `\href{\#ident}{text}`, which didn't work on
16459 all systems. Thanks to Dirk Laurie.
16461 * RST writer: Don't wrap link references. Closes #487.
16463 * Updated to use latest versions of blaze-html, mtl.
16466## pandoc 1.9.2 (2012-04-05)
16470 + Made `lstlisting` work as a proper verbatim environment.
16471 + Fixed bug parsing LaTeX tables with one column.
16475 + Use `{}` around `ctable` caption, so that formatting can be used.
16476 + Don't require eurosym package unless document has a €.
16478 * LaTeX template: Added variables for `geometry`, `romanfont`,
16479 `sansfont`, `mathfont`, `mainfont` so users can more easily
16484 + Run latex engine at least two times, to ensure
16485 that PDFs will have hyperlinked bookmarks.
16486 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
16488 * Texinfo writer: retain directories in image paths. (Peter Wang)
16490 * RST writer: Better handling of inline formatting, in accord
16491 with docutils' "inline markup recognition rules" (though we don't
16492 implement the unicode rules fully). Now `hi*there*hi` gets
16493 rendered properly as `hi\ *there*\ hi`, and unnecessary
16494 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
16498 + Parse `\ ` as null, not escaped space.
16499 + Allow `` :math:`...` `` even when not followed by blank
16500 or `\`. This does not implement the complex rule docutils follows,
16501 but it should be good enough for most purposes.
16502 + Add support for the rST default-role directive. (Greg Maslov)
16504 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
16507 * Markdown reader: Properly handle citations nested in other inline
16510 * Markdown writer: don't replace empty alt in image with "image".
16512 * DZSlides: Updated template.html and styles in default template.
16513 Removed bizarre CSS for `q` in dzslides template.
16515 * Avoid repeated `id` attribute in section and header in HTML slides.
16517 * README improvements: new instructions on internal links,
16518 removed misleading note on reST math.
16522 + Fixed Windows installer so that dzslides works.
16523 + Removed stripansi.sh.
16524 + Added .travis.yml for Travis continuous integration support..
16525 + Fixed upper bound for zlib (Sergei Trofimovich).
16526 + Fixed upper bound for test-framework.
16527 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
16530## pandoc 1.9.1.2 (2012-03-09)
16532 * Added `beamer+lhs` as output format.
16534 * Don't escape `<` in `<style>` tags with `--self-contained`.
16535 This fixes a bug which prevented highlighting from working
16536 when using `--self-contained`.
16538 * PDF: run latex engine three times if `--toc` specified.
16539 This fixes page numbers in the table of contents.
16541 * Docx writer: Added TableNormal style to tables.
16543 * LaTeX math environment fixes. `aligned` is now used instead of
16544 the nonexistent `aligned*`. `multline` instead of the nonexistent
16547 * LaTeX writer: Use `\textasciitilde` for literal `~`.
16549 * HTML writer: Don't escape contents of EQ tags with --gladtex.
16550 This fixes a regression from 1.8.
16552 * Use `<q>` tags for Quoted items for HTML5 output.
16553 The quote style can be changed by modifying the template
16554 or including a css file. A default quote style is included.
16556 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
16557 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
16559 * Updated LaTeX template for better language support.
16560 Use `polyglossia` instead of `babel` with xetex.
16561 Set `lang` as documentclass option.
16562 `\setmainlanguage` will use the last of a comma-separated
16563 list of languages. Thanks to François Gannaz.
16565 * Fixed default LaTeX template so `\euro` and `€` work. The
16566 `eurosym` package is needed if you are using pdflatex.
16568 * Fixed escaping of period in man writer (thanks to Michael Thompson).
16570 * Fixed list label positions in beamer.
16572 * Set `mainlang` variable in context writer.
16573 This parallels behavior of latex writer. `mainlang` is the last
16574 of a comma-separated list of languages in lang.
16576 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
16578 * Changed `-V` so that you can specify a key without a value.
16579 Such keys get the value `true`.
16581 * Fixed permissions on installed man pages - thanks Magnus Therning.
16583 * Windows installer: require XP or higher. The installer is
16584 now compiled on a Windows 7 machine, which fixes a problem
16585 using citation functions on Windows 7.
16587 * OSX package: Check for 64-bit Intel CPU before installing.
16590## pandoc 1.9.1.1 (2012-02-11)
16592 * Better handling of raw latex environments in markdown. Now
16598 turns into a raw latex block as expected.
16600 * Improvements to LaTeX reader:
16602 + Skip options after block commands.
16603 + Correctly handle `{\\}` in braced.
16604 + Added a needed 'try'.
16605 + Citations: add `, ` to suffix if it doesn't start with space or
16606 punctuation. Otherwise we get no space between the year and the
16607 suffix in author-date styles.
16609 * Added two needed data files for S5. This fixes a problem with
16610 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
16611 which was no longer being used.
16613 * Fixed some minor problems in `reference.docx`:
16614 name on "Date" style, `xCs` instead of `xIs`.
16616 * Fixed a problem creating docx files using a reference docx
16617 modified using Word. The problem seems to be that Word
16618 modifies `_rels/.rels`, changing the Type of the Relationship to
16619 `docProps/core.xml`. Pandoc now changes this back to the correct
16620 value if it has been altered, fixing the problem.
16622 * Fixed html5 template so it works properly with highlighting.
16624## pandoc 1.9.1 (2012-02-09)
16628 + Fixed regression in 1.9; properly handle escaped $ in latex math.
16629 + Put LaTeX verse environments in blockquotes.
16633 + Limit nesting of strong/emph. This avoids exponential lookahead
16634 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
16635 + Improved attributes syntax (in code blocks/spans): (1)
16636 Attributes can contain line breaks. (2) Values in key-value
16637 attributes can be surrounded by either double or single quotes, or
16638 left unquoted if they contain no spaces.
16640 * Headers no longer wrap in markdown or RST writers.
16642 * Added `stateMaxNestingLevel` to `ParserState`.
16643 We set this to 6, so you can still have `Emph` inside `Emph`,
16644 just not indefinitely.
16646 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
16648 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
16651 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
16653## pandoc 1.9.0.5 (2012-02-06)
16655 * Changed cabal file so that build-depends for the test program
16656 are not required unless the tests flag is used.
16658 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
16659 form ligatures (dashes) in code spans.
16661## pandoc 1.9.0.4 (2012-02-06)
16663 * Raised version bound on test-framework to avoid problems
16664 compiling tests on GHC 7.4.1.
16666 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
16667 so citations don't just disappear unless you process with
16668 citeproc. Ignore `\bibliographystyle`, `\nocite`.
16670 * Simplified tex2pdf; it will always run latex twice to
16671 resolve table of contents and hyperrefs.
16673## pandoc 1.9.0.3 (2012-02-06)
16675 * Require Cabal >= 1.10.
16677 * Tweaked cabal file to meet Cabal 1.10 requirements.
16679## pandoc 1.9.0.2 (2012-02-05)
16681 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
16684## pandoc 1.9 (2012-02-05)
16688 * Added a Microsoft Word `docx` writer. The writer includes support
16689 for highlighted code and for math (which is converted from TeX to OMML,
16690 Office's native math markup language, using texmath's new OMML module).
16691 A new option `--reference-docx` allows the user to customize the
16694 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
16696 * Better support for slide shows:
16698 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
16699 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
16701 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
16702 slide presentations.
16704 + New, flexible rules for dividing documents into sections and slides
16705 (see the "Structuring the slide show" in the User's Guide). These
16706 are backward-compatible with the old rules, but they allow slide
16707 shows to be organized into sections and subsections containing
16710 + A new `--slide-level` option allows users to override defaults
16711 and select a slide level below the first header level with content.
16713 * A new `--self-contained` option produces HTML output that does not
16714 depend on an internet connection or the presence of any external
16715 files. Linked images, CSS, and javascript is downloaded (or fetched
16716 locally) and encoded in `data:` URIs. This is useful for making portable
16717 `HTML slide shows. The --offline` option has been deprecated and is now
16718 `treated as a synonym or --self-contained`.
16720 * Support for PDF output:
16722 + Removed the old `markdown2pdf`.
16723 + `pandoc` can now create PDFs (assuming you have latex and a set of
16724 appropriate packages installed): just specify an output file with the
16726 + A new option `--latex-engine` allows you to specify `pdflatex`,
16727 `xelatex`, or `lualatex` as the processor.
16729 * Highlighting changes:
16731 + Syntax highlighting is now a standard feature; the `highlighting`
16732 flag is no longer needed when compiling.
16733 + A new `--no-highlight` option allows highlighting to be disabled.
16734 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
16735 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
16736 + A new `--highlight-style` option selects between various highlighting
16739 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
16741 * LaTeX `\include` and `\usepackage` commands are now processed,
16742 provided the files are in the working directory.
16744 * EPUB improvements:
16746 + Internal and external links now work in EPUB.
16747 + Raw HTML is allowed.
16748 + New `--epub-embed-font` option.
16749 + Customizable templates for EPUB pages offer more control over
16750 formatting: `epub-page.html`, `epub-coverimage.html`,
16751 `epub-titlepage.html`.
16753 * `--mathml` now works with DocBook.
16755 * Added support for math in RST reader and writer. Inline math uses the
16756 `` :math:`...` `` construct. Display math uses
16760 or if the math is multiline,
16766 These constructions are now supported now by `rst2latex.py`.
16768 * Github syntax for fenced code blocks is supported in pandoc's
16769 markdown. You can now write
16781 * Easier scripting: a new `toJsonFilter` function makes it easier to
16782 write Haskell scripts to manipulate the Pandoc AST.
16783 See [Scripting with pandoc](scripting.html#pandoc-1.9-changes).
16785### Behavior changes
16787 * Fixed parsing of consecutive lists in markdown.
16788 Pandoc previously behaved like Markdown.pl for consecutive
16789 lists of different styles. Thus, the following would be parsed
16790 as a single ordered list, rather than an ordered list followed
16791 by an unordered list:
16799 This change makes pandoc behave more sensibly, parsing this as
16800 two lists. Any change in list type (ordered/unordered) or in
16801 list number style will trigger a new list. Thus, the following
16802 will also be parsed as two lists:
16810 Since we regard this as a bug in Markdown.pl, and not something
16811 anyone would ever rely on, we do not preserve the old behavior
16812 even when `--strict` is selected.
16814 * Dashes work differently with `--smart`: `---` is always em-dash,
16815 and `--` is always en-dash. Pandoc no longer tries to guess when
16816 `-` should be en-dash. *Note:* This may change how existing documents
16817 look when processed with pandoc. A new option, `--old-dashes`,
16818 is provided for legacy documents.
16820 * The markdown writer now uses setext headers for levels 1-2.
16821 The old behavior (ATX headers for all levels) can be restored
16822 using the new `--atx-headers` option.
16824 * Links are now allowed in markdown image captions. They are also
16825 allowed in links, but will appear there as regular text. So,
16827 [link with [link](/url)](/url)
16831 <p><a href="/url">link with link</a></p>
16833 * Improved handling of citations using `citeproc-hs-0.3.4`.
16834 Added `--citation-abbreviations` option.
16836 * Citation keys can no longer end with a punctuation character.
16837 This means that `@item1.` will be parsed as a citation with key
16838 'item1', followed by a period, instead of a citation with key
16839 'item1.', as was the case previously.
16841 * In HTML output, citations are now put in a span with class `citation`.
16843 * The markdown reader now recognizes DocBook block and inline tags.
16844 It was always possible to include raw DocBook tags in a markdown
16845 document, but now pandoc will be able to distinguish block from
16846 inline tags and behave accordingly. Thus, for example,
16852 will not be wrapped in `<para>` tags.
16854 * The LaTeX parser has been completely rewritten; it is now much more
16855 accurate, robust, and extensible. However, there are two important
16856 changes in how it treats unknown LaTeX. (1) Previously, unknown
16857 environments became BlockQuote elements; now, they are treated
16858 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
16859 same as `xyz`. (2) Previously, arguments of unknown commands
16860 were passed through with their braces; now the braces are stripped
16863 * `--smart` is no longer selected automatically with `man` output.
16865 * The deprecated `--xetex` option has been removed.
16867 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
16868 instead. `html5` and `html5+lhs` are now separate output formats.
16870 * Single quotes are no longer escaped in HTML output. They do not
16871 need to be escaped outside of attributes.
16873 * Pandoc will no longer transform leading newlines in code
16874 blocks to `<br/>` tags.
16876 * The ODT writer now sizes images appropriately, using the image
16877 size and DPI information embedded in the image.
16879 * `--standalone` is once again implicitly for a non-text output format
16880 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
16881 and get a standalone ODT file.
16883 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
16886 * The HTML writer now uses `<del>` for strikeout.
16888 * In HTML output with `--section-divs`, the classes `section` and
16889 `level[1,2,..6]` are put on the `div` tags so they can be styled.
16890 In HTML 5 output with `--section-divs`, the classes
16891 `level[1,2,...6]` are put on `section` tags.
16893 * EPUB writer changes:
16895 + The `lang` variable now sets the language
16896 in the metadata (if it is not set, we default to the locale).
16897 + EPUB: UTF-8 is used rather than decimal entities.
16899 * Added `titleslide` class to title slide in S5 template.
16901 * In HTML, EPUB, and docx metadata, the date is normalized into
16902 YYYY-MM-DD format if possible. (This is required for validation.)
16904 * Attributes in highlighted code blocks are now preserved in HTML.
16905 The container element will have the classes, id, and key-value attributes
16906 you specified in the delimited code block. Previously these were stripped
16909 * The reference backlink in the HTML writer no longer has a special
16910 `footnoteBacklink` class.
16912 * The HTML template has been split into `html` and `html5` templates.
16914 * Author and date are treated more consistently in HTML templates.
16915 Authors are now `<h2>`, date `<h3>`.
16917 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
16919 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
16923 * Better support for combining characters and East Asian wide characters
16924 in markdown and reST.
16926 * Better handling of single quotes with `--smart`.
16927 Previously `D'oh l'*aide*` would be parsed with left and right single
16928 quotes instead of apostrophes. This kind of error is now fixed.
16930 * Highlighting: Use `reads` instead of `read` for better error handling.
16931 Fixes crash on `startNum="abc"`.
16933 * Added blank comment after directives in rst template.
16935 * Unescape entities in citation `refId`. The `refId`s coming
16936 from citeproc contain XML numeric entities, and these don't match with the
16937 citation keys parsed by pandoc. Solution is to unescape them.
16939 * HTML reader: Fixed bug parsing tables with both thead and tbody.
16943 + Better handling of escapes in link URLs and titles.
16944 + Fixed backslash escapes in reference links.
16945 + Fixed bug in table/hrule parsing, by checking that the top
16946 line of a table is not followed by a blank line. This bug caused
16947 slowdowns on some files with hrules and tables, as pandoc tried to
16948 interpret the hrules as the tops of multiline tables.
16949 + Fixed bug in code block attribute parser. Previously the ID attribute
16950 got lost if it didn't come first. Now attributes can come in any order.
16952 * RST reader: allow footnotes followed by newline without space characters.
16956 + Ignore empty groups {}, { }.
16957 + LaTeX reader: Handle `\@`.
16958 + LaTeX reader: Don't crash on commands like `\itemsep`.
16959 + LaTeX reader: Better handling of letter environments.
16961 * RST writer: Fixed bug involving empty table cells. isSimple was being
16962 calculated in a way that assumed there were no non-empty cells.
16966 + Made `--toc` work even without `--number-sections`.
16967 + Escape # in link URLs.
16968 + Use buffering for footnotes containing code blocks.
16969 + Changed 'descr' to 'description', fixed alignment.
16973 + Escape euro character.
16974 + Don't escape `~` inside `\href{...}`.
16975 + Escape `#` in href URLs.
16976 + Improved detection of book classes. We now check the
16977 `documentclass` variable, and if that is not set, we look through
16978 the template itself. Also, we have added the KOMA classes scrreprt
16979 and scrbook. You can now make a book using
16980 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
16981 + LHS files now set the "listings" variable, so that the definition
16982 of the `code` environment will be included in the template.
16983 + Links are colored blue by default (this can be changed by
16984 modifying `hyperref` settings in the template).
16985 + Added `lang` variable to LaTeX template.
16989 + Fixed bug in HTML template with html5 and mathml.
16990 + Don't use self-closing img, br, hr tags for HTML5.
16991 + Use `<section>` for footnotes if HTML5.
16992 + Update HTML templates to use Content-Style-Type meta tag.
16993 + Use separate variables for meta-date, meta-author.
16994 This makes footnotes work in author and date fields.
16995 + Use 'vertical-align:middle' in WebTeX math for better alignment.
16997 * S5/slidy writer: Make footnotes appear on separate slide at end.
16999 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
17000 META-INF/manifest.xml for ODT files will have everything it needs, so
17001 that ODT files modified by LibreOffice can be used as `--reference-odt`.
17003 * `Text.Pandoc.Templates`: Return empty string for json template.
17005 * `Text.Pandoc.Biblio`:
17007 + Expand citations recursively inside nested inlines.
17008 + Treat `\160` as space when parsing locator and suffix.
17009 This fixes a bug with "p. 33" when `--smart` is used. Previously
17010 the whole "p. 33" would be included in the suffix, with no locator.
17011 + Put whole author-in-text citation in a Cite. Previously just the
17012 date and other info went in the Cite.
17013 + Don't add comma+space to prefix if it ends in punctuation.
17015 * Updated chicago-author-date.csl. The old version did not work
17016 properly for edited volumes with no author.
17020 + Add date to EPUB titlepage and metadata.
17021 + Added TOC identifier in EPUB page template.
17022 + Don't generate superfluous file `cover-image.jpg`.
17024### Under the hood improvements
17026 * Modified `make_osx_package.sh` to use cabal-dev.
17027 Items are no longer installed as root.
17028 Man pages are zipped and given proper permissions.
17030 * Modified windows installer generator to use cabal-dev.
17032 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
17033 Setup.hs we now invoke 'runghc' in a way that points it to the correct
17034 package databases, instead of always falling back to the default user
17037 * Updated to work with GHC 7.4.1.
17039 * Removed dependency on old-time.
17041 * Removed dependency on dlist.
17043 * New slidy directory for "self-contained."
17045 * TeXMath writer: Use unicode thin spaces for thin spaces.
17047 * Markdown citations: don't strip off initial space in locator.
17051 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
17052 from the native `Inline` type in pandoc-types. Now we use `Str`
17053 elements with unicode.
17055 * Improvements to `Text.Pandoc.Builder`:
17057 + `Inlines` and `Blocks` are now newtypes (not synonyms for
17059 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
17060 and a new `Listable` class, which allows these to be manipulated
17061 to some extent like lists. Monoid append includes automatic
17063 + `+++` has been replaced by `<>` (mappend).
17065 * Use blaze-html instead of xhtml for HTML generation.
17066 This changes the type of `writeHtml`.
17068 * `Text.Pandoc.Shared`:
17070 + Added `warn` and `err`.
17071 + Removed `unescapeURI`, modified `escapeURI`.
17072 (See under [behavior changes], above.)
17074 * Changes in URI escaping: Previously the readers escaped URIs by
17075 converting unicode characters to octets and then percent encoding.
17076 Now unicode characters are left as they are, and `escapeURI` only
17077 percent-encodes space characters. This gives more readable
17078 URIs, and works well with modern user agents. URIs are no longer unescaped
17079 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
17081 * New module `Text.Pandoc.SelfContained`.
17083 * New module `Text.Pandoc.Docx`.
17085 * New module `Text.Pandoc.PDF`.
17087 * Added `writerBeamer` to `WriterOptions`.
17089 * Added `normalizeDate` to `Text.Pandoc.Shared`.
17091 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
17092 This is like `splitWithIndices`, but it is sensitive to distinctions
17093 between wide, combining, and regular characters.
17095 * `Text.Pandoc.Pretty`:
17097 + Added `chomp` combinator.
17098 + Added `beforeNonBreak` combinator. This allows you to include
17099 something conditionally on it being before a nonblank.
17100 Used for RST inline math.
17101 + Added `charWidth` function. All characters marked W or F in the unicode
17102 spec EastAsianWidth.txt get width 2.
17103 + Added `realLength`, based on `charWidth`. `realLength` is now
17104 used in calculating offsets.
17106 * New module `Text.Pandoc.Slides`, for common functions for breaking
17107 a document into slides.
17109 * Removed `Text.Pandoc.S5`, which is no longer needed.
17111 * Removed `Text.Pandoc.CharacterReferences`. Moved
17112 `characterReference` to `Text.Pandoc.Parsing`.
17113 `decodeCharacterReferences` is replaced by `fromEntities`
17114 in `Text.Pandoc.XML`.
17116 * Added `Text.Pandoc.ImageSize`. This is intened for use
17117 in `docx` and `odt` writers, so the size and dpi of images
17120 * Removed `writerAscii` in `WriterOptions`.
17122 * Added `writerHighlight` to `WriterOptions`.
17124 * Added `DZSlides` to `HTMLSlideVariant`.
17126 * `writeEPUB` has a new argument for font files to embed.
17128 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
17129 of whether we're parsing the position immediately after a regular
17130 (non-space, non-symbol) string, which is useful for distinguishing
17131 apostrophes from single quote starts.
17133 * `Text.Pandoc.Parsing`:
17135 + `escaped` now returns a `Char`.
17136 + Removed `charsInBalanced'`, added a character parser as
17137 a parameter of `charsInBalanced`. This is needed for
17138 proper handling of escapes, etc.
17141 * Added `toEntities` to `Text.Pandoc.XML`.
17143 * `Text.Pandoc.Readers.LaTeX`:
17145 + Export `handleIncludes`.
17146 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
17148 * Added `ToJsonFilter` class and `toJsonFilter` function to
17149 `Text.Pandoc`, deprecating the old `jsonFilter` function.
17151 * `Text.Pandoc.Highlighting`:
17153 + Removed `highlightHtml`, `defaultHighlightingCss`.
17154 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
17155 key functions from highlighting-kate.
17156 + Changed types of highlighting function. `highlight` returns a
17157 `Maybe`, not an `Either`.
17160## pandoc 1.8.2.1 (2011-08-01)
17162 * Adjusted Arbitrary instance to help avoid timeouts in tests.
17164 * Added `Tests.Writers.Markdown` to cabal file.
17166 * Relaxed version bounds on pandoc-types, test-framework.
17168## pandoc 1.8.2 (2011-07-30)
17170 * Added script to produce OS X package.
17172 * Made `templates` directory a git submodule. This should make it
17173 easier for people to revise their custom templates when the default
17176 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
17177 **Note:** If you have existing templates in `~/.pandoc/templates`, you
17178 must rename them to conform to the new scheme!
17180 * Default template improvements:
17182 + HTML: Display author and date after title.
17183 + HTML: Made table of contents more customizable. The container
17184 for the TOC is now in the template, so users can insert a header
17185 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
17186 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
17187 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
17188 hard-coding. If you want to put your slidy files in the slidy
17189 subdirectory, for example, you can do
17190 `pandoc -t slidy -V slidy-url=slidy -s`.
17191 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
17192 & writer). Closes #279.
17193 + LaTeX: Set `\emergencystretch` to prevent overfull lines.
17194 + LaTeX: Use different `hyperref` options for `xetex`, fixing
17195 problems with unicode bookmarks (thanks to CircleCode).
17196 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
17197 with `inputenc`. This covers fewer characters but is more
17198 robust with other packages, and `ucs` is unmaintained. Users
17199 who need better unicode support should use xelatex or lualatex.
17201 * If a template specified with `--template` is not found, look for it
17202 in `datadir`. Also, if no extension is provided, supply one based
17203 on the writer. So now you can put your `special.latex` template in
17204 `~/.pandoc/templates`, and use it from any directory via
17205 `pandoc -t latex --template special`.
17207 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
17209 * Fixed smart quotes bug, now handling `'...hi'` properly.
17213 + Partial support for labeled footnotes.
17214 + Improved accuracy of `simpleReferenceName` parser.
17218 + Substitute correct unicode characters for
17219 characters in the 128..159 range, which are often found even in
17220 HTML that purports to be UTF-8.
17222 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
17223 to the title, after a colon and linebreak). Closes #280.
17225 * Leaner `reference.odt`.
17227 * Added unexported module `Text.Pandoc.MIME` for use in
17230 * ODT writer: Construct `manifest.xml` based on archive contents.
17231 This fixes a bug in ODTs containing images. Recent versions of
17232 LibreOffice would reject these as corrupt, because `manifest.xml`
17233 did not contain a reference to the image files.
17237 + Make verbatim environments flush to avoid spurious
17238 blank lines. Closes #277.
17239 + Use `\texttt` and escapes insntead of `\verb!...!`, which
17240 is too fragile (doesn't work in command arguments).
17241 + Use `\enquote{}` for quotes if the template includes
17242 the `csquotes` package. This provides better support for
17243 local quoting styles. (Thanks to Andreas Wagner for the idea.)
17245 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
17246 margin, preventing spurious blank lines.
17250 + Use non-minimized version of `slidy.css` with `--offline`
17251 option, so users can more easily edit it.
17252 + Also fixed a bug in the CSS that prevented proper centering
17253 of title (now reported and fixed upstream).
17257 + Replaced `s5/default/slides.js.{comment,packed}` with
17258 new compressed `s5/default/slides.min.js`.
17259 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
17260 when `--offline` is specified. Using inline CSS didn't
17261 work with Chrome or Safari. This fixes offline
17262 S5 on those browsers.
17264 * HTML writer: Removed English title on footnote backlinks.
17265 This is incongrous in non-English documents.
17269 + Use CALS tables. (Some older docbook software does not work
17270 well with XHTML tables.) Closes #77.
17271 + Use `programlisting` tags (instead of `screen`) for code blocks.
17275 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
17276 of `-interaction=batchmode`, which essentially just ignored errors,
17277 leading to bad results. Better to know when something is wrong.
17278 + Fixed issues with non-UTF-8 output of `pdflatex`.
17279 + Better error reporting.
17281 * `--mathjax` now takes an optional URL argument. If it is not
17282 provided, pandoc links directly to the (secure) mathjax CDN,
17283 as now recommended (thanks to dsanson).
17285 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
17286 since the LaTeX writer now produces a file that can be processed by
17287 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
17289 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
17290 to be used to create the PDF.
17293## pandoc 1.8.1.2 (2011-07-16)
17295 * Added `--epub-cover-image` option.
17297 * Documented `--biblatex` and `--natbib` options.
17299 * Allow `--section-divs` with slidy output. Resolves Issue #296.
17301 * Disallow notes within notes in reST and markdown.
17302 These previously caused infinite looping and stack overflows.
17309 Note references are allowed in reST notes, so this isn't a full
17310 implementation of reST. That can come later. For now we need to
17311 prevent the stack overflows. Partially resolves Issue #297.
17313 * EPUB writer: Allow non-plain math methods.
17315 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
17316 `(@item1; @item2)` because the final paren was being parsed as part of
17319 * Changed URI parser so it doesn't include trailing punctuation.
17320 So, in RST, `http://google.com.` should be parsed as a link followed by a
17321 period. The parser is smart enough to recognize balanced parentheses, as
17322 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
17324 * Markdown+lhs reader: Require space after inverse bird tracks, so that
17325 HTML tags can be used freely at the left margin of a markdown+lhs document.
17326 Thanks to Conal Elliot for the suggestion.
17328 * Markdown reader: Fixed bug in footnote order (reported by CircleCode).
17331 + Fixed bug in in field lists with multi-line items at the
17333 + Added parentheses to RST `specialChars`, so
17334 `(http://google.com)` will be parsed as a link in parens.
17335 Resolves Issue #291.
17336 + Allow `|` followed by newline in RST line block.
17340 + Gobble option & space after linebreak `\\[10pt]`.
17343 + Make it possible to have colons after links. (qerub)
17344 + Make it possible to have colons after links. (Christoffer Sawicki)
17347 + Skip spaces after `<b>`, `<emph>`, etc.
17348 + Handle tbody, thead in simple tables. Closes #274.
17349 + Implicit `Para`s instead of `Plains` in some contexts.
17351 * OpenDocument writer: Use special `First paragraph` style for
17352 first paragraph after most non-paragraph blocks. This allows users to
17353 specify e.g. that only paragraphs after the first paragraph of a block are
17354 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
17356 * LaTeX writer: use `deVerb` on table and picture captions.
17357 Otherwise LaTeX complains about `\verb` inside command argument.
17358 Thanks to bbanier for reporting the bug.
17360 * Markdown writer: Insert HTML comment btw list and indented code block.
17361 This prevents the code block from being interpreted as part of the list.
17363 * EPUB writer: Add a meta element specify the cover.
17364 Some EPUB e-readers, such as the Nook, require a meta element inside the
17365 OPF metadata block to ensure the cover image is properly displayed.
17368 * HTML writer: Use embed tag for images with non-image extensions.
17369 (e.g. PDFs). Closes #264.
17371 * LaTeX writer: Improved tables.
17373 + More space between lines, top-align cells.
17374 + Use ctable package, which allows footnotes and
17375 provides additional options.
17376 + Made cell alignments work in multiline tables.
17377 + Closes #271, #272.
17379 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
17380 Also do this when copying image files into EPUBs and ODTs.
17383 * Changed to github issue tracker.
17385 * Added failing emph/strong markdown test case due to Perry Wagle.
17387 * Slidy improvements:
17388 + Updated to use Slidy2.
17389 + Fixed bug, unclosed div tag.
17390 + Added `duration` variable in template.
17391 Setting this activates the timer.
17392 + Use 'titlepage' instead of 'cover' for title div.
17395## pandoc 1.8.1.1 (2011-02-13)
17397 * `markdown2pdf`: Removed some debugging lines accidentally included
17398 in the 1.8.1 release. With those lines, the temp directory is created
17399 in the working directory, and it is not deleted. This fix restores
17400 the original behavior.
17402## pandoc 1.8.1 (2011-02-13)
17404 * Added `--ascii` option. Currently supported only in HTML writer,
17405 which it causes to use numerical entities instead of UTF-8.
17407 * EPUB writer: `--toc` now works to provide a table of contents
17408 at the beginning of each chapter.
17410 * LaTeX writer: Change figure defaults to `htbp`.
17411 This prevents "too many unprocessed floats." Resolves
17414 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
17417 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
17418 Tanimoto. Resolves Issue #286.
17420 * HTML writer: Put line breaks in section divs.
17422 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
17424## pandoc 1.8.0.3 (2011-02-05)
17426 * Fixed Source-repository stanza in cabal file.
17428## pandoc 1.8.0.2 (2011-02-05)
17432 + Stringify alt text instead of converting to HTML.
17433 + Break lines after block elements, not inside tags.
17434 HTML output now closely resembles that of tidy. Resolves Issue #134.
17436 * Markdown reader: Fixed bug in footnote block parser (pointed out
17437 by Jesse Rosenthal). The problem arose when the blank line
17438 at the end of a footnote block contained indenting spaces.
17440 * Shared: Improved 'normalize' function so it normalizes Spaces too.
17441 In normal form, Space elements only occur to separate two non-Space
17442 elements. So, we never have [Space], or [, ..., Space].
17446 + Improved Arbitrary instance.
17447 + Added timeout for test instances.
17451 + Added section on four-space rule for lists. Resolves Issue #283.
17452 + Clarified optional arguments on math options.
17454 * markdown2pdf: Fixed bug with output file extensions.
17455 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
17456 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
17458## pandoc 1.8.0.1 (2011-01-31)
17460 * Revised Interact.hs so that it works with the CPP macros
17461 in the UTF8 module.
17463 * Revised Setup.hs so that we don't call MakeManPage.hs unless
17464 the man pages are out of date.
17466## pandoc 1.8 (2011-01-30)
17470 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
17471 You can now write, for example,
17473 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
17475 and, when you process your document using `pandoc`, specifying
17476 a citation style using `--csl` and a bibliography using `--bibliography`,
17477 the citation will be replaced by an appropriately formatted
17478 citation, and a list of works cited will be added to the end
17481 This means that you can switch effortlessly between different citation
17482 and bibliography styles, including footnote, numerical, and author-date
17483 formats. The bibliography can be in any of the following formats: MODS,
17484 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
17485 See the README for further details.
17487 Citations are supported in the markdown reader, using a special
17488 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
17489 (Thanks to Nathan Gass for the natbib and biblatex support.)
17491 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
17492 the `textile` reader, an almost complete implementation of the textile
17493 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
17494 Resolves Issue #51.
17496 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
17498 * New `json` reader and writer, for reading and writing a JSON
17499 representation of the native Pandoc AST. These are much faster
17500 than the `native` reader and writer, and should be used for
17501 serializing Pandoc to text. To convert between the JSON representation
17502 and native Pandoc, use `encodeJSON` and `decodeJSON` from
17503 `Text.JSON.Generic`.
17505 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
17506 to write scripts that transform a JSON-encoded pandoc document.
17509 -- removelinks.hs - removes links from document
17511 main = interact $ jsonFilter $ bottomUp removeLink
17512 where removeLink (Link xs _) = Emph xs
17515 To use this to remove links while translating markdown to LaTeX:
17517 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
17519 * Attributes are now allowed in inline `Code` elements, for example:
17521 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
17523 The attribute syntax is the same as for delimited code blocks.
17524 `Code` inline has an extra argument place for attributes, just like
17525 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
17526 is compiled with highlighting support. Resolves Issue #119.
17528 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
17529 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
17530 scripts to transform Pandoc documents. Scripts can now change
17531 how each element is rendered in each output format.
17533 * You can now define LaTeX macros in markdown documents, and pandoc
17534 will apply them to TeX math. For example,
17536 \newcommand{\plus}[2]{#1 + #2}
17539 yields `3+4`. Since the macros are applied in the reader, they
17540 will work in every output format, not just LaTeX.
17542 * LaTeX macros can also be used in LaTeX documents (both in math
17543 and in non-math contexts).
17545 * A new `--mathjax` option has been added for displaying
17546 math in HTML using MathJax. Resolves issue #259.
17548 * Footnotes are now supported in the RST reader. (Note, however,
17549 that unlike docutils, pandoc ignores the numeral or symbol used in
17550 the note; footnotes are put in an auto-numbered ordered list.)
17551 Resolves Issue #258.
17553 * A new `--normalize` option causes pandoc to normalize the AST
17554 before writing the document. This means that, for example,
17555 `*hi**there*` will be rendered as `<em>hithere</em>`
17556 instead of `<em>hi</em><em>there</em>`. This is not the default,
17557 because there is a significant performance penalty.
17559 * A new `--chapters` command-line option causes headers
17560 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
17561 Resolves Issue #265.
17563 * In DocBook output, `<chapter>` is now used for top-level
17564 headers if the template contains `<book>`. Resolves Issue #265.
17566 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
17567 the LaTeX writer to use the listings package for code blocks.
17568 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
17569 Millon for the markdown2pdf patch.)
17571 * `markdown2pdf` now supports `--data-dir`.
17573 * URLs in autolinks now have class "url" so they can be styled.
17575 * Improved prettyprinting in most formats. Lines will be wrapped
17576 more evenly and duplicate blank lines avoided.
17578 * New `--columns` command-line option sets the column width for
17579 line wrapping and relative width calculations for tables.
17581 * Made `--smart` work in HTML, RST, and Textile readers, as well
17584 * Added `--html5` option for HTML5 output.
17586 * Added support for listings package in LaTeX reader
17587 (Puneeth Chaganti).
17589 * Added support for simple tables in the LaTeX reader.
17591 * Added support for simple tables in the HTML reader.
17593 * Significant performance improvements in many readers and writers.
17595### API and program changes
17597 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
17598 auxiliary package, `pandoc-types`. This will make it possible for other
17599 programs to supply output in Pandoc format, without depending on the whole
17602 * Added `Attr` field to `Code`.
17604 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
17605 `RawBlock` and `RawInline`.
17607 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
17608 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
17609 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
17611 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
17613 * `Text.Pandoc` now exports association lists `readers` and `writers`.
17615 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
17616 `readNative` can now read full pandoc documents, block lists, blocks,
17617 inline lists, or inlines. It will interpret `Str "hi"`
17618 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
17619 This should make testing easier.
17621 * Removed deprecated `-C/--custom-header` option.
17622 Use `--template` instead.
17624 * `--biblio-file` has been replaced by `--bibliography`.
17625 `--biblio-format` has been removed; pandoc now guesses the format
17626 from the file extension (see README).
17628 * pandoc will treat an argument as a URI only if it has an
17629 `http(s)` scheme. Previously pandoc would treat some
17630 Windows pathnames beginning with `C:/` as URIs.
17632 * The `--sanitize-html` option and the `stateSanitize` field in
17633 `ParserState` have been removed. Sanitization is better done in the
17634 resulting HTML using `xss-sanitize`, which is based on pandoc's
17635 sanitization, but improved.
17637 * pandoc now adds a newline to the end of its output in fragment
17638 mode (= not `--standalone`).
17640 * Added support for `lang` in `html` tag in the HTML template,
17641 so you can do `pandoc -s -V lang=es`, for example.
17643 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
17644 a boolean argument that selects between "inline" and
17647 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
17648 Images are embedded in RTF output when possible (png, jpeg).
17649 Resolves Issue #275.
17651 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
17652 `pretty` package. Changed all writers that used
17653 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
17655 * Rewrote `writeNative` using the new prettyprinting module. It is
17656 now much faster. The output has been made more consistent and compressed.
17657 `writeNative` is also now sensitive to writerStandalone`, and will simply
17658 `print a block list if writerStandalone` is False.
17660 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
17661 blocks and concatenate them, so a separate module is no longer needed.
17663 * `Text.Pandoc.Shared`:
17665 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
17667 + Added `normalize`.
17668 + Removed unneeded prettyprinting functions:
17669 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
17670 `BlockWrapper`, `wrappedBlocksToDoc`.
17671 + Made `splitBy` take a test instead of an element.
17672 + Added `findDataFile`, refactored `readDataFile`.
17673 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
17674 + Fixed `inlineListToIdentifier` to treat `\160` as ' '.
17676 * `Text.Pandoc.Readers.HTML`:
17678 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
17679 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
17680 `htmlBlockElement`, `htmlComment`
17681 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
17684 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
17685 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
17688 * Ellipses are no longer allowed to contain spaces.
17689 Previously we allowed '. . .', ' . . . ', etc. This caused
17690 too many complications, and removed author's flexibility in
17691 combining ellipses with spaces and periods.
17693 * Allow linebreaks in URLs (treat as spaces). Also, a string of
17694 consecutive spaces or tabs is now parsed as a single space. If you have
17695 multiple spaces in your URL, use `%20%20`.
17697 * `Text.Pandoc.Parsing`:
17699 + Removed `refsMatch`.
17700 + Hid `Key` constructor.
17701 + Removed custom `Ord` and `Eq` instances for `Key`.
17702 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
17703 + Generalized type on `readWith`.
17705 * Small change in calculation of relative widths of table columns.
17706 If the size of the header > the specified column width, use
17707 the header size as 100% for purposes of calculating
17708 relative widths of columns.
17710 * Markdown writer now uses some pandoc-specific features when `--strict`
17711 is not specified: `\` newline is used for a hard linebreak instead of
17712 two spaces then a newline. And delimited code blocks are used when
17713 there are attributes.
17715 * HTML writer: improved gladTeX output by setting ENV appropriately
17716 for display or inline math (Jonathan Daugherty).
17718 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
17722 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
17723 + `\index{}` commands are skipped.
17725 * Added `fontsize` variable to default LaTeX template.
17726 This makes it easy to set the font size using `markdown2pdf`:
17727 `markdown2pdf -V fontsize=12pt input.txt`.
17729 * Fixed problem with strikeout in LaTeX headers when using
17730 hyperref, by adding a command to the default LaTeX template
17731 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
17734 * The `COLUMNS` environment variable no longer has any effect.
17736### Under-the-hood improvements
17738 * Pandoc now compiles with GHC 7. (This alone leads to a
17739 significant performance improvement, 15-20%.)
17741 * Completely rewrote HTML reader using tagsoup as a lexer. The
17742 new reader is faster and more accurate. Unlike the
17743 old reader, it does not get bogged down on some input
17744 (Issues #277, 255). And it handles namespaces in tags
17747 * Replaced `escapeStringAsXML` with a faster version.
17749 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
17750 for a significant performance boost.
17752 * Improved performance of all readers by rewriting parsers.
17754 * Simplified Text.Pandoc.CharacterReferences by using
17755 entity lookup functions from TagSoup.
17757 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
17758 from `System.IO` if base >= 4.2. This gives support for
17759 windows line endings on windows.
17761 * Remove duplications in documentation by generating the
17762 pandoc man page from README, using `MakeManPage.hs`.
17764 * README now includes a full description of markdown syntax,
17765 including non-pandoc-specific parts. A new `pandoc_markdown`
17766 man page is extracted from this, so you can look up markdown
17767 syntax by doing `man pandoc_markdown`.
17769 * Completely revised test framework (with help from Nathan Gass).
17770 The new test framework is built when the `tests` Cabal flag is set. It
17771 includes the old integration tests, but also some new unit and quickcheck
17772 tests. Test output has been much improved, and you can now specify a glob
17773 pattern after `cabal test` to indicate which tests should be run;
17774 for example `cabal test citations` will run all the citation tests.
17776 * Added a shell script, `stripansi.sh`, for filtering ANSI control
17777 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
17779 * Added `Interact.hs` to make it easier to use ghci while developing.
17780 `Interact.hs` loads `ghci` from the `src` directory, specifying
17781 all the options needed to load pandoc modules (including
17782 specific package dependencies, which it gets by parsing
17783 dist/setup-config).
17785 * Added `Benchmark.hs`, testing all readers + writers using criterion.
17787 * Added `stats.sh`, to make it easier to collect and archive
17788 benchmark and lines-of-code stats.
17790 * Added upper bounds to all cabal dependencies.
17792 * Include man pages in extra-source-files. This allows users to
17793 install pandoc from the tarball without needing to build the man
17798 * Filenames are encoded as UTF8. Resolves Issue #252.
17800 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
17801 were just parsed literally, leading to problems in some output formats.
17802 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
17803 Resolves Issue #270.
17805 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
17806 Spaces at end of line were not being stripped properly,
17807 resulting in unintended LineBreaks.
17811 + Allow HTML comments as inline elements in markdown.
17812 So, `aaa <!-- comment --> bbb` can be a single paragraph.
17813 + Fixed superscripts with links: `^[link](/foo)^` gets
17814 recognized as a superscripted link, not an inline note followed by
17816 + Fixed regression, making markdown reference keys case-insensitive again.
17817 Resolves Issue #272.
17818 + Properly handle abbreviations (like `Mr.`) at the end of a line.
17819 + Better handling of intraword underscores, avoiding exponential
17820 slowdowns in some cases. Resolves Issue #182.
17821 + Fixed bug in alignments in tables with blank rows in the header.
17825 + Field lists now allow spaces in field names, and
17826 block content in field values. (Thanks to Lachlan Musicman
17827 for pointing out the bug.)
17828 + Definition list items are now always `Para` instead of
17829 `Plain`, matching behavior of `rst2xml.py`.
17830 + In image blocks, the description is parsed properly and
17831 used for the alt attribute, not also the title.
17832 + Skip blank lines at beginning of file. Resolves
17837 + Improved parsing of preamble.
17838 Previously you'd get unexpected behavior on a document that
17839 contained `\begin{document}` in, say, a verbatim block.
17840 + Allow spaces between `\begin` or `\end` and `{`.
17841 + Support `\L` and `\l`.
17842 + Skip comments inside paragraphs.
17846 + Escape strings in `\href{..}`.
17847 + In nonsimple tables, put cells in `\parbox`.
17849 * OpenDocument writer: don't print raw TeX.
17853 + Fixed bug in `Image`. URI was getting unescaped twice!
17854 + Avoid printing extra blank lines at the end if there are
17855 no notes or references.
17857 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
17858 This avoids unwanted interpretation as an optional argument.
17860 * ConTeXt writer: Fixed problem with inline code. Previously
17861 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
17862 If it contains neither, use `\type{}`; otherwise use `\mono{}`
17863 with an escaped version of the string.
17865 * `:` now allowed in HTML tags. Resolves Issue #274.
17869## pandoc 1.6 (2010-07-24)
17871+ New EPUB and HTML Slidy writers. (Issue #122)
17873 - [EPUB] is a standard ebook format, used in Apple's iBooks for
17874 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
17875 reader, and many other devices, and by online ebook readers like
17876 [bookworm]. (Amazon's Kindle uses a different format, MobiPocket,
17877 but EPUB books can easily be converted to Kindle format.) Now you
17878 can write your book in markdown and produce an ebook with a single
17879 command! I've put up a short [tutorial here].
17880 - [Slidy], like S5, is a system for producing HTML+javascript slide shows.
17882+ All input is assumed to be UTF-8, no matter what the locale and ghc
17883 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
17884 Also, a BOM, if present, is stripped from the input.
17886+ Markdown now supports grid tables, whose cells can contain
17887 arbitrary block elements. (Issue #43)
17889+ Sequentially numbered example lists in markdown with `@` marker.
17891+ Markdown table captions can begin with a bare colon and no longer need
17892 to include the English word "table." Also, a caption can now occur
17893 either before or after the table. (Issue #227)
17895+ New command-line options:
17897 - `--epub-stylesheet` allows you to specify a CSS file that will
17898 be used to style your ebook.
17899 - `--epub-metadata` allows you to specify metadata for the ebook.
17900 - `--offline` causes the generated HTML slideshow to include all
17901 needed scripts and stylesheets.
17902 - `--webtex` causes TeX math to be converted to images using the
17903 Google Charts API (unless a different URL is specified).
17904 - `--section-divs` causes div tags to be added around each section
17905 in an HTML document. (Issue #230, 239)
17907+ Default behavior of S5 writer in standalone mode has changed:
17908 previously, it would include all needed scripts and stylesheets
17909 in the generated HTML; now, only links are included unless
17910 the `--offline` option is used.
17912+ Default behavior of HTML writer has changed. Between 1.2 and 1.5,
17913 pandoc would enclose sections in div tags with identifiers on the
17914 div tags, so that the sections can be manipulated in javascript.
17915 This caused undesirable interactions with raw HTML div tags. So,
17916 starting with 1.6, the default is to put the identifiers directly
17917 on the header tags, and not to include the divs. The `--section-divs`
17918 option selects the 1.2-1.5 behavior.
17922 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
17923 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
17924 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
17925 `writerIncludeAfter`.
17926 - Added `headerShift` to `Text.Pandoc.Shared`.
17927 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
17928 to a new module, `Text.Pandoc.Parsing`.
17929 - Added `stateHasChapters` to `ParserState`.
17930 - Added `HTMLSlideVariant`.
17931 - Made `KeyTable` a map instead of an association list.
17932 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`, `docDate`).
17933 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord` instances.
17934 - Reference keys now have a type of their own (`Key`), with its
17935 own `Ord` instance for case-insensitive comparison.
17936 - Added `Text.Pandoc.Writers.EPUB`.
17937 - Added `Text.Pandoc.UUID`.
17938 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
17939 Removed `saveOpenDocumentAsODT`, added `writeODT`.
17940 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
17941 Removed `prettyPandoc`.
17942 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
17943 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
17944 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
17945 To write S5, you now use `writeHtml` with `writerSlideVariant`
17946 set to `S5Slides` or `SlidySlides`.
17948+ Template changes. If you use custom templates, please update them,
17949 particularly if you use syntax highlighting with pandoc. The old HTML
17950 templates hardcoded highlighting CSS that will no longer work with
17951 the most recent version of highlighting-kate.
17953 - HTML template: avoid empty meta tag if no date.
17954 - HTML template: Use default highlighting CSS from highlighting-kate
17955 instead of hard-coding the CSS into the template.
17956 - HTML template: insert-before text goes before the title, and
17957 immediately after the `<body>` tag, as documented. (Issue #241)
17958 - Added slidy and s5 templates.
17959 - Added amssymb to preamble of latex template. (github Issue 1)
17961+ Removed excess newlines at the end of output. Note: because output
17962 will not contain an extra newline, you may need to make adjustments
17963 if you are inserting pandoc's output into a template.
17965+ In S5 and slidy, horizontal rules now cause a new slide, so you
17966 are no longer limited to one slide per section.
17968+ Improved handling of code in man writer. Inline code is now monospace,
17969 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
17971+ HTML reader parses `<tt>` as Code. (Issue #247)
17973+ html+lhs output now contains bird tracks, even when compiled without
17974 highlighting support. (Issue #242)
17976+ Colons are now no longer allowed in autogenerated XML/HTML identifiers,
17977 since they have a special meaning in XML.
17979+ Code improvements in ODT writer. Remote images are now replaced with
17980 their alt text rather than a broken link.
17982+ LaTeX reader improvements:
17984 - Made latex `\section`, `\chapter` parsers more forgiving of whitespace.
17985 - Parse `\chapter{}` in latex.
17986 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
17987 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
17988 for use in markdown reader.
17989 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
17990 in markdown document.
17992+ LaTeX writer: images are automatically shrunk if they would extend
17993 beyond the page margin.
17995+ Plain, markdown, RST writers now use unicode for smart punctuation.
17997+ Man writer converts math to unicode when possible, as in other writers.
17999+ `markdown2pdf` can now recognize citeproc options.
18001+ Command-line arguments are converted to UTF-8. (Issue #234)
18003+ `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
18004 This allows it to handle a wider range of formulas. Also, if a formula
18005 cannot be converted, it is left in raw TeX; formulas are no longer
18006 partially converted.
18008+ Unicode curly quotes are left alone when parsing smart quotes. (Issue #143)
18010+ Cabal file changes:
18012 - Removed parsec < 3 restriction.
18013 - Added 'threaded' flag for architectures where GHC lacks a threaded
18015 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
18016 - Require highlighting-kate 0.2.7.
18018+ Use explicit imports from `Data.Generics`. Otherwise we have a
18019 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
18021+ New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
18023[EPUB]: http://en.wikipedia.org/wiki/EPUB
18024[Slidy]: http://www.w3.org/Talks/Tools/Slidy
18025[bookworm]: http://bookworm.oreilly.com/
18026[tutorial here]: http://johnmacfarlane.net/pandoc/epub.html
18028## pandoc 1.5.1.1 (2010-03-29)
18030+ Fixed header identifiers (uniqueIdent in Shared) so they
18031 work as advertized in README and are guaranteed to be
18032 valid XHTML names. Thanks to Xyne for reporting the bug.
18034## pandoc 1.5.1 (2010-03-23)
18036+ Fixed treatment of unicode characters in URIs.
18037+ Revised Setup.hs so it works with debian's build process.
18038+ Fixed bug in OpenDocument writer that led to invalid
18039 XML for some input.
18041## pandoc 1.5.0.1 (2010-03-21)
18043+ HTML writer: Fixed error in math writer (with MathML option)
18044 that caused an infinite loop for unparsable MathML.
18046## pandoc 1.5 (2010-03-20)
18048+ Moved repository to [github](http://github.com/jgm/pandoc).
18049+ New `--mathml` option, for display of TeX math as MathML.
18050+ New `--data-dir` option, allowing users to specify a data
18051 directory other than `~/.pandoc`. Files placed in this directory
18052 will be used instead of system defaults.
18053+ New `--base-header-level` option. For example, `--base-header-level=2`
18054 changes level 1 headers to level 2, level 2 to level 3, etc.
18055+ New 'plain' output format: plain text without pictures, hyperlinks,
18056 inline formatting, or anything else that looks even vaguely
18058+ Titles and authors in title blocks can now span multiple lines,
18059 as long as the continuation lines begin with a space character.
18060+ When given an absolute URI as a parameter, pandoc will fetch
18061 the content via HTTP.
18062+ The HTML reader has been made much more forgiving. It no
18063 longer requires well-formed xhtml as input.
18064+ `html2markdown` has been removed; it is no longer necessary, given
18065 the last two changes. `pandoc` can be used by itself to convert
18066 web pages to markdown or other formats.
18067+ `hsmarkdown` has also been removed. Use `pandoc --strict` instead.
18068 Or symlink pandoc's executable to `hsmarkdown`; `pandoc` will then
18069 behave like `hsmarkdown` used to.
18070+ An image in a paragraph by itself is now rendered as a figure
18071 in most writers, with the alt text as the caption.
18072+ Incomplete support for reST tables (simple and grid). Thanks to
18073 Eric Kow. Colspans and rowspans not yet supported.
18074+ In mediawiki, links with relative URLs are now formatted as wikilinks.
18075 Also, headers have been promoted: `= head =` is now level 1 instead of
18077+ The markdown reader now handles "inverse bird tracks" when parsing
18078 literate haskell. These are used for haskell example code that
18079 is not part of the literate program.
18080+ The `-B` and `-A` options now imply `-s` and no longer work in
18082+ Headerless tables are now printed properly in all writers.
18083 In addition, tbody, thead, and cols are used in HTML and Docbook
18085+ Improved build system; removed obsolete Makefile.
18086+ In LaTeX writer, `\chapter` is now used instead of `\section`.
18087 when the documentclass is book, report, or memoir.
18088+ Many small bug fixes. See [changelog] for details.
18090## pandoc 1.4 (2010-01-02)
18092+ New template system replaces old headers, giving users much
18093 more control over pandoc's output in `--standalone` mode.
18094 Added `--template` and `--variable` options. The `--print-default-header`
18095 option is now `--print-default-template`. See README under
18096 "Templates" for details.
18097+ The old `--custom-header` option should still work, but it has
18099+ New `--reference-odt` option allows users to customize styles
18101+ Users may now put custom templates, s5 styles, and a reference
18102 ODT in the `~/.pandoc` directory, where they will override system
18103 defaults. See README for details.
18104+ Unicode is now used whenever possible in HTML and XML output. Entities
18105 are used only where necessary (`>`, `<`, `"`, `&`).
18106+ Authors and dates may now include formatting and notes.
18107+ Added `--xetex` option for `pandoc` and `markdown2pdf`.
18108+ Windows installer now includes highlighting support and
18109 `markdown2pdf` and `hsmarkdown` wrappers.
18110+ Pandoc no longer requires Template Haskell, which should make
18112+ Pandoc can now be built on GHC 6.12, as well as earlier versions.
18113+ See README for other small improvements and bug fixes.
18115## pandoc 1.3 (2009-12-10)
18117+ Added `--id-prefix` option to help prevent duplicate
18118 identifiers when you're generating HTML fragments.
18119+ Added `--indented-code-classes` option, which specifies
18120 default highlighting syntax for indented code blocks.
18121+ `--number-sections` now affects HTML output.
18122+ Improved syntax for markdown definition lists.
18123+ Better looking simple tables.
18124+ Markdown tables without headers are now possible.
18125+ New hard line break syntax: backslash followed by newline.
18126+ Improved performance of markdown reader by ~10% by eliminating the
18127 need for a separate parsing pass for notes.
18128+ Improved syntax highlighting for literate Haskell.
18129+ Support for "..code-block" directive in RST reader.
18130+ Windows binary now includes highlighting support.
18131+ Many bug fixes and small improvements. See [changelog]
18134## pandoc 1.2.1 (2009-07-18)
18136+ Improved the efficiency of the markdown reader's
18137 abbreviation parsing (should give a big performance
18138 boost with `--smart`).
18139+ HTML writer now wraps sections in divs with unique
18140 identifiers, for easier manipulation.
18141+ Improved LaTeX reader's coverage of math modes.
18142+ Added a portable Haskell version of markdown2pdf (thanks
18143 to Paolo Tanimoto).
18144+ Made `--strict` compatible with `--standalone` and `--toc.`
18145+ Many other small improvements and bug fixes.
18146 See [changelog] for details.
18148## pandoc 1.2 (2009-03-01)
18150+ Added support for literate Haskell. lhs support is triggered by
18151 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
18152 Haskell LaTeX. '.lhs' files are treated by default as literate
18154+ Added `--email-obfuscation` option.
18155+ Brought citeproc support up to date for citeproc-hs-0.2.
18156+ Many bugs fixed. See [changelog] for details.
18158## pandoc 1.1 (2008-11-06)
18160+ New `--jsmath` option supporting use of pandoc with [jsMath].
18161+ Classes on HTML table output for better CSS styling.
18162+ Windows installer no longer requires admin privileges.
18163+ Many bugs fixed. See [changelog] for details.
18165## pandoc 1.0 (2008-09-13)
18167+ New writers for MediaWiki, GNU Texinfo (thanks to Peter Wang),
18168 OpenDocument XML (thanks to Andrea Rossato), and ODT (OpenOffice
18170+ New [delimited code blocks](README.html#delimited-code-blocks),
18171 with optional syntax highlighting.
18172+ Reorganized build system: pandoc can now be built using standard
18173 Cabal tools. It can be compiled on Windows without Cygwin.
18174 The tests can also be run without perl or unix tools.
18175+ LaTeXMathML replaces ASCIIMathML for rendering math in HTML.
18176+ Support for "displayed" math.
18177+ Common abbreviations are now handled more intelligently, with
18178 a non-breaking space (and not a sentence-ending space) after
18180+ Code is -Wall clean.
18181+ Many bug fixes and small improvements. See [changelog] for
18184## pandoc 0.46 (2008-01-08)
18186+ Added a `--sanitize-html` option (and a corresponding parameter
18187 in `ParserState` for those using the pandoc libraries in programs).
18188 This option causes pandoc to sanitize HTML (in HTML or Markdown
18189 input) using a whitelist method. Possibly harmful HTML elements
18190 are replaced with HTML comments. This should be useful in the
18191 context of web applications, where pandoc may be used to convert
18192 user input into HTML.
18193+ Made -H, -A, and -B options cumulative: if they are specified
18194 multiple times, multiple files will be included.
18195+ Many bug fixes and small improvements. See [changelog] for full
18198## pandoc 0.45 (2007-12-09)
18200+ Many bug fixes and structural improvements. See [changelog] for
18202+ Improved treatment of math. Math is now rendered using unicode
18203 by default in HTML, RTF, and DocBook output. For more accurate
18204 display of math in HTML, `--gladtex`, `--mimetex`, and `--asciimathml`
18205 options are provided. See the [User's Guide](README.html#math) for
18207+ Removed support for box-style block quotes in markdown.
18208+ More idiomatic ConTeXt output.
18209+ Text wrapping in ConTeXt and LaTeX output.
18210+ Pandoc now correctly handles all standard line endings
18212+ New `--no-wrap` option that disables line wrapping and minimizes
18213 whitespace in HTML output.
18214+ Build process is now compatible with both GHC 6.8 and GHC 6.6.
18215 GHC and GHC_PKG environment variables may be used to specify
18216 which version of the compiler to use, when multiple versions are
18219## pandoc 0.44 (2007-09-03)
18221 [ John MacFarlane ]
18223 * Fixed bug in HTML writer: when --toc was used, anchors were put around
18224 headers, which is invalid XHTML (block content within inline element).
18225 Now the anchors are put inside the header tags. Resolves Issue #23.
18227 * Added xmlns attribute to html element in html writer tests.
18228 This attribute is added by more recent versions of the
18229 xhtml library (>= 3000), and is required for valid XHTML.
18233 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
18234 command instead of 'runhaskell', which, on some platforms (such as s390,
18235 alpha, m68k), throws the following error:
18237 runhaskell Setup.hs configure --prefix=/usr
18238 ghc-6.6.1: not built for interactive use
18240 This causes a serious FTBFS bug. Closes: #440668.
18242## pandoc 0.43 (2007-09-02)
18244 [ John MacFarlane ]
18246 * The focus of this release is performance. The markdown parser
18247 is about five times faster than in 0.42, based on benchmarks
18248 with the TextMate manual.
18250 * Main.hs: Replaced CRFilter and tabFilter with single function
18251 tabFilter, which operates on the whole string rather than breaking
18252 it into lines, and handles dos-style line-endings as well as tabs.
18254 * Added separate LaTeX reader and native reader tests; removed
18257 * Text.Pandoc.Shared:
18259 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
18260 + General code cleanup (to elimante warnings when compiling with -Wall.)
18261 + Added 'wrapped' function, which helps wrap text into paragraphs,
18262 using the prettyprinting library.
18263 + Rewrote charsInBalanced and charsInBalanced'.
18264 - Documented restriction: open and close must be distinct characters.
18265 - Rearranged options for greater efficiency.
18266 - Bug fix: Changed inner call to charsInBalanced inside
18267 charsInBalanced' to charsInBalanced'.
18268 + anyLine now requires that the line end with a newline (not eof).
18269 This is a harmless assumption, since we always add newlines to the
18270 end of a block before parsing with anyLine, and it yields a 10% speed
18272 + Removed unnecessary 'try' in anyLine.
18273 + Removed unneeded 'try' from romanNumeral parser.
18274 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
18275 + Removed unneeded 'try' in parseFromString.
18276 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
18278 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
18279 'try' is not automatically applied to the 'end' parser. Added
18280 'try' in calls to 'enclosed' where needed. Slight speed increase.
18284 + Replaced individual wrapping routines in RST, Man, and Markdown
18285 writers with 'wrapped' from Text.Pandoc.Shared.
18286 + Rewrote LaTeX writer to use the prettyprinting library,
18287 so we get word wrapping, etc.
18288 + Modified latex writer tests for new latex writer using prettyprinter.
18289 + Fixed bug in LaTeX writer: autolinks would not cause
18290 `\usepackage{url}` to be put in the document header. Also, changes
18291 to state in enumerated list items would be overwritten.
18292 + In Markdown writer, escape paragraphs that begin with ordered list
18293 markers, so they don't get interpreted as ordered lists.
18295 * Text.Pandoc.Reades.LaTeX:
18297 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
18298 numeral after "enum" in "setcounter" would consist entirely of
18299 "i"s. 'enumiv' is legitimate.
18300 + LaTeX command and environment names can't contain numbers.
18301 + Rearranged order of parsers in inline for slight speed improvement.
18302 + Added '`' to special characters and 'unescapedChar'.
18304 * Text.Pandoc.Readers.RST:
18306 + Removed unneeded try's in RST reader; also minor code cleanup.
18308 + Rearranged parsers in inline (doubled speed).
18310 * Text.Pandoc.Readers.Markdown:
18312 + Skip notes parsing if running in strict mode. (This yields a nice
18313 speed improvement in strict mode.)
18314 + Simplify autolink parsing code, using Network.URI to test for
18315 URIs. Added dependency on network library to debian/control and
18317 + More perspicuous definition of nonindentSpaces.
18318 + Removed unneeded 'try' in 'rawLine'.
18319 + Combined linebreak and whitespace into a new whitespace parser, to
18320 avoid unnecessary reparsing of space characters.
18321 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
18322 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
18323 + Use lookAhead in parsers for setext headers and definition lists
18324 to see if the next line begins appropriately; if not, don't waste
18325 any more time parsing.
18326 + Don't require blank lines after code block. (It's sufficient to
18327 end code block with a nonindented line.)
18328 + Changed definition of 'emph': italics with '_' must not
18329 be followed by an alphanumeric character. This is to help
18330 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
18331 `[LC<em>TYPE]:my</em>type`.
18332 + Improved Markdown.pl-compatibility in referenceLink: the two parts
18333 of a reference-style link may be separated by one space, but not
18334 more... [a] [link], [not] [a link].
18335 + Fixed markdown inline code parsing so it better accords with
18336 Markdown.pl: the marker for the end of the code section is a clump
18337 of the same number of `'s with which the section began, followed
18338 by a non-` character. So, for example,
18339 ` h ``` i ` -> `<code>h ``` i</code>`.
18340 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
18341 rules are slightly different.
18342 + Rewrote 'para' for greater efficiency.
18343 + Rewrote link parsers for greater efficiency.
18344 + Removed redundant 'referenceLink' in definition of inline (it's
18345 already in 'link').
18346 + Refactored escapeChar so it doesn't need 'try'.
18347 + Refactored hrule for performance in Markdown reader.
18348 + More intelligent rearranging of 'inline' so that most frequently
18349 used parsers are tried first.
18350 + Removed tabchar parser, as whitespace handles tabs anyway.
18352 * Text.Pandoc.CharacterReferences:
18355 + Removed unnecessary 'try's for a speed improvement.
18356 + Removed unnecessary '&' and ';' from the entity table.
18360 + Makefile: Get VERSION from cabal file, not Main.hs.
18361 + Modified MacPorts Portfile:
18362 - Depend on haddock
18363 - Build and install libraries and library documentation in
18364 addition to pandoc executable
18365 - Added template item for md5 sum in Portfile.in.
18366 - Incorporated changes from MacPorts repository (r28278).
18367 + FreeBSD port: Don't try to generate distinfo in Makefile.
18368 It can be made using 'make makesum' in FreeBSD.
18369 + Make both freebsd and macports targets depend on tarball.
18371 * Website and documentation:
18373 + Updated INSTALL instructions.
18374 + Added pandocwiki demo to website.
18375 + Removed local references to Portfile, since pandoc is now in the
18376 MacPorts repository.
18378## pandoc 0.42 (2007-08-26)
18380 [ John MacFarlane ]
18382 * Main.hs: Use utf8 conversion on the extra files loaded with
18383 the -H, -C, -B, and -A options. This fixes problems with unicode
18384 characters in these files.
18386 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
18387 Text.Pandoc.Readers.HTML and without it we get a linking error when
18392 + Added new rule for enhanced markdown ordered lists: if the list
18393 marker is a capital letter followed by a period (including a
18394 single-letter capital roman numeral), then it must be followed by
18395 at least two spaces. The point of this is to avoid accidentally
18396 treating people's initials as list markers: a paragraph might begin,
18397 "B. Russell was an English philosopher," and this shouldn't be
18398 treated as a list. Documented change in README.
18399 + Blocks that start with "p. " and a digit are no longer treated
18400 as ordered lists (it's a page number).
18401 + Added a needed 'try' to listItem.
18402 + Removed check for a following setext header in endline.
18403 A full test is too inefficient (doubles benchmark time), and the
18404 substitute we had before is not 100% accurate.
18405 + Don't use Code elements for autolinks if --strict specified.
18407 * LaTeX writer: When a footnote ends with a Verbatim environment, the
18408 close } of the footnote cannot occur on the same line or an error occurs.
18409 Fixed this by adding a newline before the closing } of every footnote.
18412 + Removed incorrect "{}" around style information in HTML tables.
18413 Column widths now work properly in HTML.
18414 + If --strict option is specified (and --toc is not), don't include
18415 identifiers in headers, for better Markdown compatibility.
18419 + Separated $(web_dest) and website targets.
18420 + In website, index.txt is now constructed from template index.txt.in.
18421 + Added freebsd target to Markefile. This creates the freebsd Makefile
18422 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
18423 from the repository.
18424 + Added macport target to Makefile. Portfile is built from template
18426 + Removed OSX package targets. (Too many difficulties involving
18427 dependencies on dynamic libraries.)
18428 + More complete INSTALL instructions for all architectures.
18431 + Added a programming demo, pandocwiki.
18435 * Do not forget to close pandoc's ITP. Closes: #391666
18437## pandoc 0.41 (2007-08-19)
18439 [ John MacFarlane ]
18441 * Fixed bugs in HTML reader:
18442 + Skip material at end *only if* `</html>` is present (previously,
18443 only part of the document would be parsed if an error was
18444 found; now a proper error message is given).
18445 + Added new constant eitherBlockOrInline with elements that may
18446 count either as block-level or as inline. Modified isInline and
18447 isBlock to take this into account.
18448 + Modified rawHtmlBlock to accept any tag (even an inline tag):
18449 this is innocuous, because rawHtmlBlock is tried only if a regular
18450 inline element can't be parsed.
18451 + Added a necessary 'try' in definition of 'para'.
18453 * Fixed bug in markdown ordered list parsing. The problem was that
18454 anyOrderedListStart did not check for a space following the
18455 ordered list marker. So in 'A.B. 2007' the parser would be
18456 expecting a list item, but would not find one, causing an error.
18457 Fixed a similar bug in the RST reader. Resolves Issue #22.
18459 * Refactored RST and Markdown readers using parseFromString.
18461 * LaTeX reader will now skip anything after \end{document}.
18463 * Fixed blockquote output in markdown writer: previously, block
18464 quotes in indented contexts would be indented only in the first
18467 * Added note to INSTALL about variations in versions of the xhtml
18468 library that can lead to failed tests (thanks to Leif LeBaron).
18470## pandoc 0.4 (2007-01-16)
18472 [ John MacFarlane ]
18474 * Added two new output formats: groff man pages and ConTeXt. By
18475 default, output files with extensions ".ctx" and ".context" are
18476 assumed to be ConTeXt, and output files with single-digit extensions
18477 are assumed to be man pages.
18479 * Enhanced ordered lists (documented in README, under Lists):
18480 + The OrderedList block element now stores information about
18481 list number style, list number delimiter, and starting number.
18482 + The readers parse this information when possible.
18483 + The writers use this information to style ordered lists.
18484 + The enhancement can be disabled using the --strict option.
18486 * Added support for tables (with a new Table block element). Two kinds
18487 of tables are supported: a simple table with one-line rows, and a
18488 more complex variety with multiline rows. All output formats are
18489 supported, but only markdown tables are parsed at the moment. The
18490 syntax is documented in README.
18492 * Added support for definition lists (with a new DefinitionList block
18493 element). All output and input formats are supported. The syntax is
18494 documented in README.
18496 * Added support for superscripts and subscripts (with new Superscript
18497 and Subscript inline elements). All input and output
18498 formats. The syntax is documented in README.
18500 * Added support for strikeout (with a new Strikeout inline element).
18501 All input and output formats are supported. Thanks to Bradley Kuhn,
18502 who contributed a patch. The syntax is documented in README. Resolves
18505 * Added a --toc|--table-of-contents option. This causes an automatically
18506 generated table of contents (or an instruction that creates one) to
18507 be inserted at the beginning of the document. Not supported in S5,
18508 DocBook, or man page writers.
18510 * Modified the -m|--asciimathml option:
18512 + If an optional URL argument is provided, a link is inserted
18513 instead of the contents of the ASCIIMathML.js script.
18514 + Nothing is inserted unless the document actually contains
18517 * Removed Blank block element as unnecessary.
18519 * Removed Key and Note blocks from the Pandoc data structure. All
18520 links are now stored as explicit links, and note contents are
18521 stored with the (inline) notes.
18523 + All link Targets are now explicit (URL, title) pairs; there
18524 is no longer a 'Ref' target.
18525 + Markdown and RST parsers now need to extract data from key and
18526 note blocks and insert them into the relevant inline elements.
18527 Other parsers have been simplified, since there is no longer any need
18528 to construct separate key and note blocks.
18529 + Markdown, RST, and HTML writers need to construct lists of
18530 notes; Markdown and RST writers need to construct lists of link
18531 references (when the --reference-links option is specified); and
18532 the RST writer needs to construct a list of image substitution
18533 references. All writers have been rewritten to use the State monad
18534 when state is required.
18535 + Several functions (generateReference, keyTable,
18536 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
18537 used by them) have been removed from Text.Pandoc.Shared, since
18538 they are no longer needed. New functions and data structures
18539 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
18540 added. The functions inTags, selfClosingTag, inTagsSimple, and
18541 inTagsIndented have been moved to the DocBook writer, since that
18542 is now the only module that uses them. NoteTable is now exported
18543 in Text.Pandoc.Shared.
18544 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
18545 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
18546 + Added writerNotes and writerReferenceLinks to WriterOptions.
18548 * Added Text.Pandoc module that exports basic readers, writers,
18549 definitions, and utility functions. This should export everything
18550 needed for most uses of Pandoc libraries. The haddock documentation
18551 includes a short example program.
18553 * Text.Pandoc.ASCIIMathML is no longer an exported module.
18555 * Added Text.Pandoc.Blocks module to help in printing markdown
18556 and RST tables. This module provides functions for working with
18557 fixed-width blocks of text--e.g., placing them side by side, as
18560 * Refactored to avoid reliance on Haskell's Text.Regex library, which
18561 (a) is slow, and (b) does not properly handle unicode. This fixed
18562 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
18564 + Replaced 'gsub' with a general list function 'substitute'
18565 that does not rely on Text.Regex.
18566 + Rewrote extractTagType in HTML reader so that it doesn't use
18568 + In Markdown reader, replaced email regex test with a custom email
18569 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
18570 with a custom function isSelfClosingTag.
18571 + Modified Docbook writer so that it doesn't rely on Text.Regex for
18572 detecting 'mailto' links.
18573 + Removed escapePreservingRegex and reamped entity-handling
18574 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
18575 avoid reliance on Text.Regex (see below on character reference
18578 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
18580 * Changed handling of XML entities. Entities are now parsed (and unicode
18581 characters returned) in the Markdown and HTML readers, rather than being
18582 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
18583 instead of entities for characters above 128. This makes the HTML and
18584 DocBook output much more readable and more easily editable.
18586 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
18587 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
18588 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
18589 Moved both functions to Text.Pandoc.Writers.Docbook.
18590 + Added characterReference parser to Text.Pandoc.CharacterReferences.
18591 This parses a string and return a unicode character.
18592 + Rewrote decodeCharacterReferences to use the new parser instead of
18594 + Added new charRef parser for Markdown and HTML, which replaces the
18595 old 'entity' parser. Added '&' as a special character in Markdown reader.
18596 + Modified HTML and Markdown readers to call decodeEntities on all raw
18597 strings (e.g. authors, dates, link titles), to ensure that no
18598 unprocessed entities are included in the native representation of
18599 the document. (In the HTML reader, most of this work is done by a
18600 change in extractAttributeName.)
18601 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
18602 since a unicode non-breaking space is impossible to distinguish visually
18603 from a regular space. (Resolves Issue #3.)
18604 + Removed encodeEntitiesNumerical.
18605 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
18606 slight performance boost over the old association list.
18607 + Removed unneeded decodeEntities from 'str' parser in HTML and
18610 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
18611 fromUTF8, for clarity.
18613 * Replaced old haskell98 module names replaced by hierarchical module
18614 names, e.g. List by Data.List. Removed haskell98 from dependencies
18615 in pandoc.cabal, and added mtl (needed for state monad). Substituted
18618 * Refactored and cleaned up character escaping in writers, using
18619 backslashEscapes and escapeStringUsing functions.
18621 * Instead of adding `\n\n` to the end of an input string in Main.hs,
18622 this is now done in the readers. This makes the libraries behave
18623 the way you'd expect from the pandoc program. Resolves Issue #10.
18625 * URLs and email addresses in autolinks are now typeset as Code.
18627 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
18628 doesn't display the whole output unless there's a line ending.
18630 * Major code cleanup in all modules, for greater consistency, concision,
18635 + Fixed several bugs (extractTagType, attribute parsing).
18636 + Remove Null blocks in lists of blocks when possible.
18637 + Allow HTML comments as raw HTML inline.
18641 + Ordered list items may no longer begin with uppercase letters, or
18642 letters greater than 'n'. (This prevents first initials and page
18643 reference, e.g. 'p. 400', from being parsed as beginning lists.)
18644 Also, numbers beginning list items may no longer end with ')',
18645 which is now allowed only after letters. Note: These changes
18646 may cause documents to be parsed differently. Users should take
18648 + Changed autoLink parsing to conform better to Markdown.pl's
18649 behavior. `<google.com>` is not treated as a link, but
18650 `<http://google.com>`, `<ftp://google.com>`, and
18651 `<mailto:google@google.com>` are.
18652 + Cleaned up handling of embedded quotes in link titles. Now these are
18653 stored as a '"' character, not as '"'.
18654 + Use lookAhead parser for the 'first pass' (looking for reference keys),
18655 instead of parsing normally, then using setInput to reset input. This
18656 yields a slight performance boost.
18657 + Fixed several bugs in smart quote recognition.
18658 + Fixed bug in indentSpaces (which didn't properly handle
18659 cases with mixed spaces and tabs).
18660 + Consolidated 'text', 'special', and 'inline' into 'inline'.
18661 + Fixed bug which allowed URL and title to be separated by multiple blank
18662 lines in links and reference keys. They can be on separate lines but
18663 can't have blank lines between them.
18664 + Correctly handle bracketed text inside inline footnotes and links,using
18665 new function inlinesInBalanced. Resolves Issue #14.
18666 + Fixed bug in footnotes: links in footnotes were not being
18667 processed. Solution: three-stage parse. First, get all the
18668 reference keys and add information to state. Next, get all the
18669 notes and add information to state. (Reference keys may be needed
18670 at this stage.) Finally, parse everything else.
18671 + Replaced named constants like 'emphStart' with literals.
18672 + Removed an extra occurrence of escapedChar in definition of inline.
18676 + Allow the URI in a RST hyperlink target to start on the line
18677 after the reference key.
18678 + Added 'try' in front of 'string', where needed, or used a different
18679 parser. This fixes a bug where ````` would not be correctly parsed as
18681 + Fixed slow performance in parsing inline literals in RST reader. The
18682 problem was that ``#`` was seen by 'inline' as a potential link or image.
18683 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
18685 + Use lookAhead instead of getInput/setInput in RST reader. Removed
18686 unneeded getState call, since lookAhead automatically saves and
18687 restores the parser state.
18688 + Allow hyperlink target URIs to be split over multiple lines, and
18689 to start on the line after the reference. Resolves Issue #7.
18690 + Fixed handling of autolinks.
18694 + Replaced `choice [(try (string ...), ...]` idiom with `oneOfStrings`,
18696 + Added clauses for tilde and caret. Tilde is `\ensuremath{\sim}`, and
18697 caret is `\^{}`, not `\^` as before.
18698 + Added parsing for `\url`.
18699 + Parse `\texttt{}` as code, provided there's nothing fancy inside.
18703 + Modified HTML writer to use the Text.XHtml library. This results
18704 in cleaner, faster code, and it makes it easier to use Pandoc in
18705 other projects, like wikis, which use Text.XHtml. Two functions are
18706 now provided, writeHtml and writeHtmlString: the former outputs an
18707 Html structure, the latter a rendered string. The S5 writer is also
18708 changed, in parallel ways (writeS5, writeS5String).
18709 + The Html header is now written programmatically, so it has been
18710 removed from the 'headers' directory. The S5 header is still
18711 needed, but the doctype and some of the meta declarations have
18712 been removed, since they are written programmatically. This change
18713 introduces a new dependency on the xhtml package.
18714 + Fixed two bugs in email obfuscation involving improper escaping
18715 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
18717 + Fixed another bug in email obfuscation: If the text to be obfuscated
18718 contains an entity, this needs to be decoded before obfuscation.
18719 Thanks to thsutton for the patch. Resolves Issue #15.
18720 + Changed the way the backlink is displayed in HTML footnotes.
18721 Instead of appearing on a line by itself, it now generally
18722 appears on the last line of the note. (Exception: when the
18723 note does not end with a Plain or Para block.) This saves space
18725 + Added automatic unique identifiers to headers:
18726 - The identifier is derived from the header via a scheme
18727 documented in README.
18728 - WriterState now includes a list of header identifiers and a table
18729 of contents in addition to notes.
18730 - The function uniqueIdentifiers creates a list of unique identifiers
18731 from a list of inline lists (e.g. headers).
18732 - This list is part of WriterState and gets consumed by blockToHtml
18733 each time a header is encountered.
18734 + Include CSS for .strikethrough class in header only if strikethrough
18735 text appears in the document.
18736 + If the 'strict' option is specified, elements that do not appear in
18737 standard markdown (like definition lists) are passed through as
18739 + Simplified treatment of autolinks, using pattern matching instead of
18744 + Links in markdown output are now printed as inline links by default,
18745 rather than reference links. A --reference-links option has been added
18746 that forces links to be printed as reference links. Resolves Issue #4.
18747 + Use autolinks when possible. Instead of `[site.com](site.com)`,
18752 + Rewrote to use the State monad. The preamble now includes only those
18753 packages that are actually required, given the document's content.
18754 Thus, for example, if strikeout is not used, ulem is not required.
18755 Modified LaTeXHeader accordingly.
18756 + Modified LaTeX writer to insert `\,` between consecutive quotes.
18757 + Removed unused function tableRowColumnWidths.
18758 + Simplified code for escaping special characters.
18759 + Leave extra blank line after `\maketitle`.
18760 + Include empty `\author{}` when no author specified to avoid LaTeX
18762 + Include fancyvrb code in header only if needed -- that is, only
18763 if there is actually code in a footnote.
18764 + Use `\url{}` for autolinks.
18765 + Include [mathletters] option in ucs package, so that basic unicode
18766 Greek letters will work correctly.
18768 * RST writer: Force blank line before lists, so that sublists will
18769 be handled correctly.
18771 * Docbook writer: Fixed a bug: email links with text, like
18772 [foo](me@bar.baz), were being incorrectly treated as autolinks.
18774 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
18775 Text.Pandoc.Shared.
18777 * Text.Pandoc.Shared:
18779 + Added defaultWriterOptions.
18780 + Added writerTableOfContents to WriterOptions.
18781 + Added writerIgnoreNotes option to WriterOptions. This is needed
18782 for processing header blocks for a table of contents, since notes on
18783 headers should not appear in the TOC.
18784 + Added prettyprinting for native Table format.
18785 + Removed some unneeded imports.
18786 + Moved escape and nullBlock parsers from
18787 Text.ParserCombinators.Pandoc, since the latter is for
18788 general-purpose parsers that don't depend on Text.Pandoc.Definition.
18789 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
18790 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
18791 writer, because HTML writer now uses these in constructing a table
18793 + Added clauses for new inline elements (Strikeout, Superscript,
18794 Subscript) to refsMatch.
18795 + Removed backslashEscape; added new functions escapeStringUsing and
18797 + Moved failIfStrict from markdown reader, since it is now used also
18798 by the HTML reader.
18799 + Added a 'try' to the definition of indentSpaces.
18800 + In definition of 'reference', added check to make sure it's not a note
18802 + Added functions: camelCaseToHyphenated, toRomanNumeral,
18803 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
18804 charsInBalanced', withHorizDisplacement, romanNumeral
18805 + Fixed a bug in the anyLine parser. Previously it would parse an empty
18806 string "", but it should fail on an empty string, or we get an error
18807 when it is used inside "many" combinators.
18808 + Removed followedBy' parser, replacing it with the lookAhead parser from
18810 + Added some needed 'try's before multicharacter parsers, especially in
18812 + Removed the 'try' from the 'end' parser in 'enclosed', so that
18813 'enclosed' behaves like 'option', 'manyTill', etc.
18814 + Added lineClump parser, which parses a raw line block up to and
18815 including any following blank lines.
18816 + Renamed parseFromStr to parseFromString.
18817 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
18818 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
18820 + Removed unneeded 'try' in blanklines.
18821 + Removed endsWith function and rewrote calling functions to use
18822 isSuffixOf instead.
18823 + Added >>~ combinator.
18824 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
18827 * Refactored runtests.pl; added separate tests for tables.
18831 + Added -asxhtml flag to tidy in html2markdown. This will
18832 perhaps help the parser, which expects closing tags.
18833 + Modified markdown2pdf to run pdflatex a second time if --toc or
18834 --table-of-contents was specified; otherwise the table of
18835 contents won't appear.
18836 + Modified markdown2pdf to print a helpful message if the 'ulem'
18837 LaTeX package is required and not found.
18839 * Changes to build process:
18841 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
18843 + Removed cabalize and Pandoc.cabal.in. The repository now contains
18844 pandoc.cabal itself.
18845 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
18846 likes the cabal file to have the same name as the tarball.
18847 + Expanded and revised the package description in pandoc.cabal.
18848 Revised the package synopsis.
18849 + The tarball built by 'make tarball' now contains files built from
18850 templates (including man pages and shell scripts), so pandoc can
18851 be built directly using Cabal tools, without preprocessing.
18852 + Executable binaries are now stripped before installing.
18853 + Man pages are now generated from markdown sources, using pandoc's
18855 + Use HTML version of README (instead of RTF) in Mac OS X installer.
18856 + Instead of testing for the existence of a pandoc symlink in build-exec,
18861 + Updated README and man pages with information on new features.
18862 + Updated INSTALL instructions with some useful clarifications and
18864 + Updated web content.
18866 * Added FreeBSD port.
18872 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
18873 libghc6-xhtml-dev. Removed libghc6-html-dev.
18874 + Suggest texlive-latex-recommended | tetex-extra instead of
18875 tetex-bin. This brings in fancyvrb and unicode support.
18878## pandoc 0.3 (2007-01-05)
18880 [ John MacFarlane ]
18882 * Changes in pandoc options:
18884 + Allow options to follow or precede arguments.
18885 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
18886 + Added '--strict' option.
18887 + Added '-o/--output' option.
18888 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
18889 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
18890 error conditions. This is helpful for writing wrappers.
18891 + Added copyright message to '-v' output, modeled after FSF messages.
18892 + Reformatted usage message so that it doesn't wrap illegibly.
18893 + Removed extra blanks after '-h' and '-D' output.
18895 * Added docbook writer.
18897 * Added implicit setting of default input and output format based
18898 on input and output filename extensions. These defaults are
18899 overridden if explicit input and output formats are specified using
18900 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
18903 * Allow ordered list items to begin with (single) letters, as well
18904 as numbers. The list item marker may now be terminated either by
18905 '.' or by ')'. This extension to standard markdown is documented
18908 * Revised footnote syntax. (See README for full details.) The
18909 '[^1]' format now standard in markdown extensions is supported,
18910 as are inline footnotes with this syntax: `^[My note.]`.
18911 The earlier footnote syntax `^(1)` is no longer supported.
18913 * Improved HTML representation of footnotes. All footnotes
18914 are now auto-numbered and appear in an ordered list at the
18915 end of the HTML document. Since the default appearance is now
18916 acceptable, the old footnote styles have been removed from the
18921 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
18922 These readers ran 'runParser' on processed chunks of text to handle
18923 embedded block lists in lists and quotation blocks. But then
18924 any changes made to the parser state in these chunks was lost,
18925 as the state is local to the parser. So, for example, footnotes
18926 didn't work in quotes or list items. The fix: instead of calling
18927 runParser on some raw text, use setInput to make it the input, then
18928 parse it, then use setInput to restore the input to what it was
18929 before. This is shorter and more elegant, and it fixes the problem.
18930 + Fixed bug in notFollowedBy' combinator (adding 'try' before
18931 'parser'). Adjusted code that uses this combinator accordingly.
18932 + Fixed bug in RTF writer that caused improper indentation on
18933 footnotes occurring in indented blocks like lists.
18934 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
18935 and date are parsed correctly. Everything else in the preamble
18937 + Modified escapedChar in LaTeX reader to allow a `\` at the end of a
18938 line to count as escaped whitespace.
18939 + Modified LaTeX reader to produce inline links rather than reference
18940 links. Otherwise, links in footnotes aren't handled properly.
18941 + Fixed handling of titles in links in Markdown reader, so that
18942 embedded quotation marks are now handled properly.
18943 + Fixed Markdown reader's handling of embedded brackets in links.
18944 + Fixed Markdown reader so that it only parses bracketed material
18945 as a reference link if there is actually a corresponding key.
18946 + Revised inline code parsing in Markdown reader to conform to
18947 markdown standard. Now any number of `s can begin inline code,
18948 which will end with the same number of `s. For example, to
18949 have two backticks as code, write ``` `` ```. Modified Markdown
18950 writer accordingly.
18951 + Fixed bug in text-wrapping routine in Markdown and RST writers.
18952 Now LineBreaks no longer cause wrapping problems.
18953 + Supported hexadecimal numerical entity references as well as
18955 + Fixed bug in Markdown reader's handling of underscores and other
18956 inline formatting markers inside reference labels: for example,
18957 in '[A_B]: /url/a_b', the material between underscores was being
18958 parsed as emphasized inlines.
18959 + Changed Markdown reader's handling of backslash escapes so that
18960 only non-alphanumeric characters can be escaped. Strict mode
18961 follows Markdown.pl in only allowing a select group of punctuation
18962 characters to be escaped.
18963 + Modified HTML reader to skip a newline following a `<br>` tag.
18964 Otherwise the newline will be treated as a space at the beginning
18967 * Made handling of code blocks more consistent. Previously, some
18968 readers allowed trailing newlines, while others stripped them.
18969 Now, all readers strip trailing newlines in code blocks. Writers
18970 insert a newline at the end of code blocks as needed.
18972 * Modified readers to make spacing at the end of output more consistent.
18974 * Minor improvements to LaTeX reader:
18976 + `\thanks` now treated like a footnote.
18977 + Simplified parsing of LaTeX command arguments and options.
18978 commandArgs now returns a list of arguments OR options (in
18979 whatever order they appear). The brackets are included, and
18980 a new stripFirstAndLast function is provided to strip them off
18981 when needed. This fixes a problem in dealing with \newcommand
18982 and \newenvironment.
18984 * Revised RTF writer:
18986 + Default font is now Helvetica.
18987 + An `\f0` is added to each `\pard`, so that font resizing works
18990 * Moved handling of "smart typography" from the writers to the Markdown
18991 and LaTeX readers. This allows great simplification of the writers
18992 and more accurate smart quotes, dashes, and ellipses. DocBook can
18993 now use `<quote>`. The '--smart' option now toggles an option in
18994 the parser state rather than a writer option. Several new kinds
18995 of inline elements have been added: Quoted, Ellipses, Apostrophe,
18998 * Changes in HTML writer:
19000 + Include title block in header even when title is null.
19001 + Made javascript obfuscation of emails even more obfuscatory,
19002 by combining it with entity obfuscation.
19004 * Changed default ASCIIMathML text color to black.
19008 + Added --strip-trailing-cr option to diff in runtests.pl, for
19009 compatibility with Windows.
19010 + Added regression tests with footnotes in quote blocks and lists.
19012 * Makefile changes:
19014 + osx-pkg target creates a Mac OS X package (directory). New osx
19015 directory contains files needed for construction of the package.
19016 + osx-dmg target creates a compressed disk image containing the package.
19017 + win-pkg target creates Windows binary package.
19018 + tarball target creates distribution source tarball.
19019 + website target generates pandoc's website automatically, including
19020 demos. New 'web' directory contains files needed for construction
19021 of the website (which will be created as the 'pandoc' subdirectory
19023 + Makefile checks to see if we're running Windows/Cygwin; if so,
19024 a '.exe' extension is added to each executable in EXECS.
19026 * Removed all wrappers except markdown2pdf and html2markdown.
19028 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
19029 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
19030 option and disables other options.
19032 * Added code to html2markdown that tries to determine the character
19033 encoding of an HTML file, by parsing the "Content-type" meta tag.
19035 + If the encoding can't be determined, then if the content is local,
19036 the local encoding is used; if it comes from a URL, UTF-8 is used
19038 + If input is from STDIN, don't try to determine character encoding.
19039 + Encoding can be specified explicitly using '-e' option.
19041 * Improved warning messages in wrappers:
19043 + Print warning if iconv not available
19044 + More user-friendly error messages in markdown2pdf, when
19049 + Renamed 'Text/Pandoc/HtmlEntities' module to
19050 'Text/Pandoc/Entities'. Also changed function names so as
19051 not to be HTML-specific.
19052 + Refactored SGML string escaping functions from HTML and Docbook
19053 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
19054 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
19056 + Removed splitBySpace and replaced it with a general, polymorphic
19058 + Refactored LaTeX reader for clarity (added isArg function).
19059 + Converted some CR's to LF's in src/ui/default/print.css.
19060 + Added license text to top of source files.
19061 + Added module data for haddock to source files.
19062 + Reformatted code for consistency.
19064 * Rewrote documentation and man pages. Split README into INSTALL
19067 * Split LICENSE into COPYING and COPYRIGHT.
19069 * Removed TODO, since we now maintain ToDo on the wiki.
19071 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
19076 * Revamped build process to conform to debian standards and created
19077 a proper debian package. Closes: #391666.
19079 * Modified build process to support GHC 6.6.
19081 + The package can still be compiled using GHC 6.4.2, though because
19082 of dependencies the "make deb" target works only with GHC 6.6+.
19083 + The script 'cabalize' is used to create an appropriate
19084 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
19087 * Refactored template processing (fillTemplates.pl).
19089 * Modified wrapper scripts to make them more robust and portable.
19090 To avoid code duplication and ensure consistency, wrappers are
19091 generated via a templating system from templates in src/wrappers.
19093 + Wrappers now accept multiple filenames, when appropriate.
19094 + Spaces and tabs allowed in filenames.
19095 + getopts shell builtin is used for portable option parsing.
19096 + Improved html2markdown's web grabber code, making it more robust,
19097 configurable and verbose. Added '-e', '-g' options.
19100## pandoc 0.2 (2006-08-14)
19102 * Fixed unicode/utf-8 translation
19104## pandoc 0.1 (2006-08-14)
19106 * 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