1# Revision history for pandoc
3## pandoc 2.12 (UNRELEASED -- PROVISIONAL)
5 * Add new unexported module Text.Pandoc.XML.Light, as well
6 as Text.Pandoc.XML.Light.Types, Text.Pantoc.XML.Light.Proc,
7 Text.Pandoc.XML.Light.Output. (Closes #6001, #6565, #7091).
9 This module exports definitions of `Element` and `Content`
10 that are isomorphic to xml-light's, but with Text
11 instead of String. This allows us to keep most of the code in existing
12 readers that use xml-light, but avoid lots of unnecessary allocation.
14 We also add versions of the functions from xml-light's
15 Text.XML.Light.Output and Text.XML.Light.Proc that operate on our
16 modified XML types, and functions that convert xml-light types to our
17 types (since some of our dependencies, like texmath, use xml-light).
19 We export functions that use xml-conduit's parser to produce an
20 `Element` or `[Content]`. This allows existing pandoc code to use
21 a better parser without much modification.
23 The new parser is used in all places where xml-light's parser was
24 previously used. Benchmarks show a significant performance improvement
25 in parsing XML-based formats (with docbook, opml, jats, and docx
26 almost twice as fast, odt and fb2 more than twice as fast).
28 In addition, the new parser gives us better error reporting than
29 xml-light. We report XML errors, when possible, using the new
30 `PandocXMLError` constructor in `PandocError`.
32 These changes revealed the need for some changes in the tests. The
33 docbook-reader.docbook test lacked definitions for the entities it used;
34 these have been added. And the docx golden tests have been updated,
35 because the new parser does not preserve the order of attributes.
39 + Add `parseOptionsFromArgs` [API change, new exported function].
41 * Text.Pandoc.Citeproc.BibTeX
43 + `Text.Pandoc.Citeproc.writeBibTeXString` now returns
44 `Doc Text` instead of `Text` (#7068).
45 + Correctly handle `pages` (= `page` in CSL) (#7067).
46 + Correctly handle BibLaTeX `langid` (= `language` in CSL, #7067).
47 + In BibTeX output, protect foreign titles since there's no language
49 + Clean up BibTeX parsing (#7049). Previously there was a messy code
50 path that gave strange results in some cases, not passing through raw
51 tex but trying to extract a string content. This was an artefact of
52 trying to handle some special bibtex-specific commands in the BibTeX
53 reader. Now we just handle these in the LaTeX reader and simplify
54 parsing in the BibTeX reader. This does mean that more raw tex will
55 be passed through (and currently this is not sensitive to the
56 `raw_tex` extension; this should be fixed).
58 * Text.Pandoc.Citeproc.MetaValue
60 + Correctly parse "raw" date value in markdown references metadata.
61 (See jgm/citeproc#53.)
65 + Add `getTimestamp` [API change]. This attempts to read the
66 `SOURCE_DATE_EPOCH` environment variable and parse a UTC time
67 from it (treating it as a unix date stamp, see
68 https://reproducible-builds.org/specs/source-date-epoch/). If the
69 variable is not set or can't be parsed as a unix date stamp, then the
70 function returns the current date.
74 + Remove unused variables (Albert Krewinkel)
75 + Export `renderError` [API change].
76 + Refactor `handleError` to use `renderError`. This allows us render
77 error messages without exiting.
79 * Text.Pandoc.Extensions
81 + `Ext_task_lists` is now supported by org (and turned
82 on by default) (Albert Krewinkel, #6336).
83 + Remove `Ext_fenced_code_attributes` from allowed commonmark attributes
84 (#7097). This attribute was listed as allowed, but it didn't actually
85 do anything. Use `attributes` for code attributes and more.
89 + Always load built-in Lua scripts from default data-dir (Albert
90 Krewinkel). The Lua modules `pandoc` and `pandoc.List` are now always
91 loaded from the system's default data directory. Loading from a
92 different directory by overriding the default path, e.g. via
93 `--data-dir`, is no longer supported to avoid unexpected behavior
94 and to address security concerns.
95 + Add module "pandoc.path" (Albert Krewinkel, #6001, #6565).
96 The module allows to work with file paths in a convenient and
97 platform-independent manner.
101 + Disable `smart` extension when building PDF via LaTeX.
102 This is to prevent accidental creation of ligatures like
103 `` ?` `` and `` !` `` (especially in languages with quotations like
104 German), and similar ligature issues. (See jgm/citeproc#54.)
108 + Avoid expensive tree normalization step, as it is not necessary
109 with the new XML parser.
110 + Support `informalfigure` (#7079) (Nils Carlson).
114 + Use Map instead of list for Namespaces. This gives a speedup of
115 about 5-10%. With this and the XML parsing changes, the docx reader
116 is now about twice as fast as in the previous release.
120 + Small performance tweaks.
121 + Also, remove exported class `NamedTag(..)` [API change]. This was just
122 intended to smooth over the transition from String to Text and is no
124 + As a result, the functions `isInlineTag` and `isBlockTag`
125 are no longer polymorphic; they apply to a `Tag Text` [API change].
126 + Do a lookahead to find the right parser to use. This takes
127 benchmarks from 34ms to 23ms, with less allocation.
128 + Fix bad handling of empty `src` attribute in `iframe` (#7099).
129 If `src` is empty, we simply skip the `iframe`.
130 If `src` is invalid or cannot be fetched, we issue a warning
131 nd skip instead of failing with an error.
135 + Avoid tree normalization, which is no longer necessary given the
140 + Code cleanup, removing some unnecessary things.
141 + Rewrite `withRaw` so it doesn't rely on fragile assumptions
142 about token positions (which break when macros are expanded)
143 (#7092). This requires the addition of `sEnableWithRaw` and
144 `sRawTokens` in `LaTeXState`, and a new combinator `disablingWithRaw`
145 to disable collecting of raw tokens in certain contexts.
146 Add `parseFromToks` to Text.Pandoc.Readers.LaTeX.Parsing.
147 Fix parsing of single character tokens so it doesn't mess
148 up the new raw token collecting. These changes slightly increase
149 allocations and have a small performance impact.
150 + Handle some bibtex/biblatex-specific commands that used to be
151 dealt with in pandoc-citeproc (#7049).
152 + Optimize `satisfyTok`, avoiding unnecessary macro expansion steps.
153 Benchmarks after this change show 2/3 of the run time and 2/3 of the
154 allocation of the Feb. 10 benchmarks.
155 + Removed `sExpanded` in state. This isn't actually needed and checking
156 it doesn't change anything.
157 + Improve `braced'`. Remove the parameter, have it parse the
158 opening brace, and make it more efficient.
162 + Improved handling of mmd link attributes in references (#7080).
163 Previously they only worked for links that had titles.
167 + Avoid tree normalization, which is no longer necessary with the
172 + Finer-grained errors on parse failure (#7091).
173 + Give more information if the zip container can't be unpacked.
177 + Support `task_lists` extension (Albert Krewinkel, #6336).
178 + Fix bug in org-ref citation parsing (Albert Krewinkel, #7101).
179 The org-ref syntax allows to list multiple citations separated by
180 comma. Previously commas were accepted as part of the citation id,
181 so all citation lists were parsed as one single citation.
185 + Use `getTimestamp` instead of `getCurrentTime` to fetch timestamp.
186 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
187 + RST reader: fix handling of header in CSV tables (#7064).
188 The interpretation of this line is not affected by the delim option.
192 + Modified the Doc parser to skip leading blank lines. This fixes
193 parsing of documents which start with multiple blank lines (#7095).
194 + Prevent URLs within link aliases to be treated as autolinks
199 + Remove formerly exported functions that are no longer used in the
200 code base: `splitByIndices`, `splitStringByIndicies`, `substitute`,
201 and `underlineSpan` (which had been deprecated in April 2020)
203 + Export `handleTaskListItem` (Albert Krewinkel) [API change].
207 + BibTeX writer: use doclayout and doctemplate. This change allows
208 bibtex/biblatex output to wrap as other formats do,
209 depending on the settings of `--wrap` and `--columns` (#7068).
213 + Output `[]` if no references in input, instead of raising a
214 PandocAppError as before.
218 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
219 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
221 * Text.Pandoc.Writers.EPUB
223 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
224 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds (#7093).
225 This does not suffice to fully enable reproducible in EPUB, since
226 a unique id is still being generated for each build.
227 + Support `belongs-to-collection` metadata (#7063) (Nick Berendsen).
231 + Escape special chars in reference elements (Albert Krewinkel).
232 Prevents the generation of invalid markup if a citation element
233 contains an ampersand or another character with a special meaning
238 + Adjust hypertargets to beginnings of paragraphs (#7078).
239 Use `\vadjust pre` so that the hypertarget takes you to the beginning
240 of the paragraph rather than one line down.
241 This makes a particular difference for links to citations using
242 `--citeproc` and `link-citations: true`.
243 + Change BCP47 lang tag from `jp` to `ja` (Mauro Bieg, #7047).
247 + Handle math right before digit. We insert an HTML comment to
248 avoid a `$` right before a digit, which pandoc will not recognize
253 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
254 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
255 + Update default ODT style (Lorenzo). Previously, the "First paragraph"
256 style inherited from "Standard" but not from "Text body." Now
257 it is adjusted to inherit from "Text body", to avoid some ugly
258 spacing issues. It may be necessary to update a custom `reference.odt`
259 in light of this change.
263 + Support `task_lists` extension (Albert Krewinkel, #6336).
267 + Use `getTimestamp` instead of `getCurrentTime` for timestamp.
268 Setting `SOURCE_DATE_EPOCH` will allow reproducible builds.
270 * JATS templates: tag `author.name` as `string-name` (Albert Krewinkel).
271 The partitioning the components of a name into surname, given names,
272 etc. is not always possible or not available. Using `author.name`
273 allows to give the full name as a fallback to be used when
274 `author.surname` is not available.
276 * Add default templates for bibtex and biblatex, so that
277 the variables `header-include`, `include-before`, `include-after`
278 (or alternatively the command line options
279 `--include-in-header`, `--include-before-body`, `--include-after-body`)
282 * LaTeX template: Update to iftex package (#7073) (Andrew Dunning)
284 * revealjs template: Add 'center' option for vertical slide centering.
287 * Text.Pandoc.XML: Improve efficiency of `fromEntities`.
289 * Test suite: a more robust way of testing the executable.
290 Many of our tests require running the pandoc executable. This is
291 problematic for a few different reasons. First, cabal-install will
292 sometimes run the test suite after building the library but before
293 building the executable, which means the executable isn't in place for
294 the tests. One can work around that by first building, then building and
295 running the tests, but that's fragile. Second, we have to find the
296 executable. So far, we've done that using a function `findPandoc` that
297 attempts to locate it relative to the test executable (which can be
298 located using findExecutablePath). But the logic here is delicate and
299 work with every combination of options. To solve both problems, we add
300 an `--emulate` option to the `test-pandoc` executable. When `--emulate`
301 occurs as the first argument passed to `test-pandoc`, the program simply
302 emulates the regular pandoc executable, using the rest of the arguments
303 (after `--emulate`). Thus, `test-pandoc --emulate -f markdown -t latex`
304 is just like `pandoc -f markdown -t latex`.
305 Since all the work is done by library functions, implementing this
306 emulation just takes a couple lines of code and should be entirely
307 reliable. With this change, we can test the pandoc executable by running
308 the test program itself (locatable using `findExecutablePath`) with the
309 `--emulate` option. This removes the need for the fragile `findPandoc`
310 step, and it means we can run our integration tests even when we're just
311 building the library, not the executable. [Note: part of this change
312 involved simplifying some complex handling to set environment variables
313 for dynamic library paths. I have tested a build with
314 `--enable-dynamic-executable`, and it works, but further testing may be
319 + MANUAL: block-level formatting is not allowed in line blocks (#7107).
320 + Clarify `tex_math_dollars` extension. Note that no blank lines
321 are allowed between the delimiters in display math.
322 + Add MANUAL section on reproducible builds.
323 + Document no template fallback for absolute path (#7077, Nixon
325 + Improve docs for cite-method.
326 + Update README and man page.
328 * Makefile: in `make bench`, create CSV files for comparison and compare
329 against previous benchmark run. Add timestamp to CSV filenames.
331 * doc/lua-filters.md: improve documentation for
332 `pandoc.mediabag.insert`, `pandoc.mediabag.fetch`,
333 `directory`, `normalize` (Albert Krewinkel).
335 * Allow base64-bytestring-1.2.* (Dmitrii Kovanikov)
337 * Require jira-wiki-markup 1.3.3 (Albert Krewinkel)
339 * Require citeproc 0.3.0.7, which correctly titlecases when titles
340 contain non-ASCII characters.
342 * Avoid unnecessary use of NoImplicitPrelude pragma (#7089) (Albert
347 + Use the lighter-weight tasty-bench instead of criterion.
348 + Run writer benchmarks for binary formats too.
349 + Alphabetize benchmarks.
350 + Don't run benchmarks for bibliography formats
351 (yet; we need a special input for them).
352 + Show allocation data
353 + Clean up benchmark code.
354 + Allow specifying patterns using `-p blah'.
358## pandoc 2.11.4 (2021-01-22)
360 * Add `biblatex`, `bibtex` as output formats (closes #7040).
362 * Recognize more extensions as markdown by default (#7034):
363 `mkdn`, `mkd`, `mdwn`, `mdown`, `Rmd`.
365 * Implement defaults file inheritance (#6924, David Martschenko).
366 Allow defaults files to inherit options from other defaults files by
367 specifying them with the following syntax:
368 `defaults: [list of defaults files or single defaults file]`.
370 * Fix infinite HTTP requests when writing epubs from URL source (#7013).
371 Due to a bug in code added to avoid overwriting the cover image
372 if it had the form `fileX.YYY`, pandoc made an endless sequence
373 of HTTP requests when writing epub with input from a URL.
377 + Allow multiple pipe chars in todo sequences (Albert Krewinkel, #7014).
378 Additional pipe chars, used to separate "action" state from "no further
379 action" states, are ignored. E.g., for the following sequence, both
380 `DONE` and `FINISHED` are states with no further action required:
381 `#+TODO: UNFINISHED | DONE | FINISHED`.
382 + Restructure output of captioned code blocks (Albert Krewinkel, #6977).
383 The Div wrapper of code blocks with captions now has the class
384 "captioned-content". The caption itself is added as a Plain block
385 inside a Div of class "caption". This makes it easier to write filters
386 which match on captioned code blocks. Existing filters will need to be
388 + Mark verbatim code with class `verbatim` (Dimitri Sabadie, #6998).
392 + Handle `filecontents` environment (#7003).
393 + Put contents of unknown environments in a Div when `raw_tex` is not
394 enabled (#6997). (When `raw_tex` is enabled, the whole environment is
395 parsed as a raw block.) The class name is the name of the environment.
396 Previously, we just included the contents without the surrounding Div,
397 but having a record of the environment's boundaries and name can be
402 + Allow space around storng/emph delimiters (#6993).
404 * New module Text.Pandoc.Writers.BibTeX, exporting
405 writeBibTeX and writeBibLaTeX. [API change]
409 + Revert table line height increase in 2.11.3 (#6996).
410 In 2.11.3 we started adding `\addlinespace`, which produced less dense
411 tables. This wasn't an intentional change; I misunderstood a comment in
412 the discussion leading up to the change. This commit restores the earlier
413 default table appearance. Note that if you want a less dense table, you
414 can use something like `\def\arraystretch{1.5}` in your header.
418 + Adjust internal links to identifiers defined in raw HTML sections
419 after splitting into chapters (#7000).
420 + Recognize `Format "html4"`, `Format "html5"` as raw HTML.
421 + Adjust internal links to images, links, and tables after splitting into
422 chapters. Previously we only did this for Div and Span and Header
423 elements (see #7000).
427 + Don't justify text inside table cells.
431 + Use `<element-citation>` if `element_citations`
432 extension is enabled (Albert Krewinkel).
433 + Fix citations (Albert Krewinkel, #7018). By default
434 we use formatted citations.
435 + Ensure that `<disp-quote>` is always wrapped in `<p>` (#7041).
439 + Cleaned up raw formats. We now react appropriately
440 to `gfm`, `commonmark`, and `commonmark_x` as raw formats.
444 + Fix bug with dropped content from inside spans with a class in
449 + Handle table header using styles (#7008). Instead of hard-coding
450 the border and header cell vertical alignment, we now let this
451 be determined by the Table style, making use of Word's
452 "conditional formatting" for the table's first row. For
453 headerless tables, we use the tblLook element to tell Word
454 not to apply conditional first-row formatting.
458 + Implement start number on ordered lists (#7009). Previously they always
459 started at 1, but according to the spec the start number is respected.
463 + Fix implicit_figure at end of footnotes (#7006).
465 * ConTeXt template: Remove `\setupthinrules` from default template.
466 The width parameter this used is not actually supported,
467 and the command didn't do anything.
469 * Text.Pandoc.Extensions:
471 + Add `Ext_element_citations` constructor (Albert Krewinkel).
473 * Text.Pandoc.Citeproc.BibTeX: New unexported function
476 * Text.Pandoc.Citeproc:
478 + Use finer grained imports (Albert Krewinkel).
479 + Factor out and export `getStyle` [API change].
480 + Export `getReferences` [API change, #7106].
481 + Factor out getLang.
483 * Text.Pandoc.Parsing: modify `gridTableWith'` for headerless tables.
484 If the table lacks a header, the header row should be an empty
485 list. Previously we got a list of empty cells, which caused
486 an empty header to be emitted instead of no header. In LaTeX/PDF
487 output that meant we got a double top line with space between.
489 * ImageSize: use `viewBox` for SVG if no length, width attributes (#7045).
490 This change allows pandoc to extract size information from more SVGs.
492 * Add simple default.nix.
494 * Use commonmark 0.1.1.3.
496 * Use citeproc 0.3.0.5.
498 * Update default CSL to use latest chicago-author-date.csl.
500 * CONTRIBUTING.md: add note on GNU xargs.
504 + Update description of `-L`/`--lua-filter`.
505 + Document use of citations in note styles (#6828).
507## pandoc 2.11.3.2 (2020-12-29)
509 * HTML reader: use renderTags' from Text.Pandoc.Shared (Albert Krewinkel).
510 A side effect of this change is that empty `<col>` elements are written
511 as self-closing tags in raw HTML blocks.
513 * Asciidoc writer: Add support for writing nested tables (#6972, timo-a).
514 Asciidoc supports one level of nesting. If deeper tables are to be
515 written, they are omitted and a warning is issued.
517 * Docx writer: fix nested tables with captions (#6983).
518 Previously we got unreadable content, because docx seems
519 to want a `<w:p>` element (even an empty one) at the end of
522 * Powerpoint writer: allow arbitrary OOXML in raw inline elements
523 (Albert Krewinkel). The raw text is now included verbatim in the
524 output. Previously is was parsed into XML elements, which prevented
525 the inclusion of partial XML snippets.
527 * LaTeX writer: support colspans and rowspans in tables (#6950,
528 Albert Krewinkel). Note that the multirow package is needed for
529 rowspans. It is included in the latex template under a variable,
530 so that it won't be used unless needed for a table.
532 * HTML writer: don't include p tags in CSL bibliography entries
533 (#6966). Fixes a regression in 2.11.3.
535 * Add `meta-description` variable to HTML templates (#6982). This
536 is populated by the writer by stringifying the `description`
537 field of metadata (Jerry Sky). The `description` meta tag will
538 make the generated HTML documents more complete and SEO-friendly.
540 * Citeproc: fix handling of empty URL variables (`DOI`, etc.).
541 The `linkifyVariables` function was changing these to links
542 which then got treated as non-empty by citeproc, leading
543 to wrong results (e.g. ignoring nonempty URL when empty DOI is present).
546 * Use citeproc 0.3.0.3. Fixes an issue in author-only citations when
547 both an author and translator are present, and an issue with
548 citation group delimiters.
550 * Require texmath 0.12.1. This improves siunitx support in math,
551 fixes bugs with `\*mod` family operators and arrays, and avoids
552 italicizing symbols and operator names in docx output.
554 * Ensure that the perl interpreter used for filters with `.pl`
557 * MANUAL: note that textarea content is never parsed as Markdown
561## pandoc 2.11.3.1 (2020-12-18)
563 * Added some missing files to extra-source-files and data
564 files, so they are included in the sdist tarball. Closes #6961.
565 Cleaned up some extraneous data and test files, and added
566 a CI check to ensure that the test and data files included
567 in the sdist match what is in the git repository.
569 * Use citeproc 0.3.0.1, which avoids removing nonbreaking
570 space at the end of the `initialize-with` attribute. (Some
571 journals require nonbreaking space after initials, and this
572 makes that possible.)
574## pandoc 2.11.3 (2020-12-17)
576 * With `--bibliography` (or `bibliography` in metadata), a
577 URL may now be provided, and pandoc will fetch the resource.
578 In addition, if a file path is provided and it is not
579 found relative to the working directory, the resource
580 path will be searched (#6940).
582 * Add `sourcepos` extension for `commonmark`, `gfm`, `commonmark_x`
583 (#4565). With the `sourcepos` extension set set, `data-pos`
584 attributes are added to the AST by the commonmark reader. No other
585 readers are affected. The `data-pos` attributes are put on elements
586 that accept attributes; for other elements, an enlosing Div or Span
587 is added to hold the attributes.
589 * Change extensions for `commonmark_x`: replace `auto_identifiers`
590 with `gfm_auto_identifiers` (#6863). `commonmark_x` never actually
591 supported `auto_identifiers` (it didn't do anything), because the
592 underlying library implements gfm-style identifiers only. Attempts
593 to add the `auto_identifiers` extension to `commonmark` will now
598 + Split module into several submodules (Albert Krewinkel). Reducing
599 module size should reduce memory use during compilation.
600 + Support advanced table features (Albert Krewinkel):
601 block level content in captions, row and colspans,
602 body headers, row head columns, footers, attributes.
603 + Disable round-trip testing for tables. Information for cell
604 alignment in a column is not preserved during round-trips (Albert
606 + Allow finer grained options for tag omission (Albert Krewinkel).
607 + Simplify list attribute handling (Albert Krewinkel).
608 + Pay attention to `lang` attributes on body element (#6938).
609 These (as well as `lang` attributes on the html element) should update
611 + Retain attribute prefixes and avoid duplicates (#6938).
612 Previously we stripped attribute prefixes, reading `xml:lang` as
613 `lang` for example. This resulted in two duplicate `lang`
614 attributes when `xml:lang` and `lang` were both used. This commit
615 causes the prefixes to be retained, and also avoids invald
616 duplicate attributes.
620 + Refactor `specFor`.
621 + Set input name to `""` to avoid clutter in sourcepos output.
625 + Parse `#+LANGUAGE` into `lang` metadata field (#6845, Albert
627 + Preserve targets of spurious links (#6916, Albert
628 Krewinkel). Links with (internal) targets that the reader doesn't
629 know about are converted into emphasized text. Information on the
630 link target is now preserved by wrapping the text in a Span of class
631 `spurious-link`, with an attribute `target` set to the link's
632 original target. This allows to recover and fix broken or unknown
637 + Table text width support (#6791, Nils Carlson).
638 Table width in relation to text width is not natively supported
639 by docbook but is by the docbook `fo` stylesheets through an XML
640 processing instruction, `<?dbfo table-width="50%"?>`.
644 + Improve parsing of command options (#6869, #6873).
645 In cases where we run into trouble parsing inlines til the
646 closing `]`, e.g. quotes, we return a plain string with the
647 option contents. Previously we mistakenly included the brackets
649 + Preserve center environment (#6852, Igor Pashev).
650 The contents of the `center` environment are put in a `Div`
652 + Don't parse `\rule` with width 0 as horizontal rule. These are
653 sometimes used as spacers in LaTeX.
654 + Don't apply theorem default styling to a figure inside (#6925).
655 If we put an image in italics, then when rendering to Markdown
656 we no longer get an implicit figure.
660 + Handle unknown interwiki links better (#6932).
661 DokuWiki lets the user define his own Interwiki links. Previously
662 pandoc reacted to these by emitting a google search link, which is
663 not helpful. Instead, we now just emit the full URL including the
664 wikilink prefix, e.g. `faquk>FAQ-mathml`. This at least gives users
665 the ability to modify the links using filters.
669 + Properly handle boolean values in writing YAML metadata (#6388).
670 + Ensure that a new csl-block begins on a new line (#6921).
671 This just looks better and doesn't affect the semantics.
675 + Better image handling (#6948). An image alone in its paragraph
676 (but not a figure) is now rendered as an independent image, with an
677 `alt` attribute if a description is supplied. An inline image that
678 is not alone in its paragraph will be rendered, as before, using a
679 substitution. Such an image cannot have a "center", "left", or
680 "right" alignment, so the classes `align-center`, `align-left`, or
681 `align-right` are ignored. However, `align-top`, `align-middle`,
682 `align-bottom` will generate a corresponding `align` attribute.
686 + Keep raw openxml strings verbatim (#6933, Albert Krewinkel).
687 + Use Content instead of Element. This allows us to inject
688 raw OpenXML into the document without reparsing it into an
689 Element, which is necessary if you want to inject an open
691 + Fix bullets/lists indentation, so that the first level is slightly
692 indented to the right instead of right on the margin (cholonam).
693 + Support bold and italic in "complex script" (#6911).
694 Previously bold and italics didn't work properly in LTR
695 text. This commit causes the w:bCs and w:iCs attributes
696 to be used, in addition to w:b and w:i, for bold and
697 italics respectively.
701 + Fix image bounding box for custom widths/heighta (Mauro Bieg, #6936).
705 + Improve table spacing (#6842, #6860).
706 Remove the `\strut` that was added at the end of minipage
707 environments in cells. Replace `\tabularnewline` with
709 + Improve calculation of column spacing (#6883).
710 + Extract table handling into separate module (Albert Krewinkel).
711 + Fix bug with nested `csl-` display Spans (#6921).
712 + Improve longtable output (#6883). Don't create minipages for
713 regular paragraphs. Put width and alignment information in the
714 longtable column descriptors.
716 * OpenDocument writer:
718 + Support for table width as a percentage of text width
719 (#6792, Nils Carson).
720 + Implement Div and Span ident support (#6755, Nils Carson).
721 Spans and Divs containing an ident in the Attr will become bookmarks
722 or sections with idents in OpenDocument format.
723 + Add two extensions, `xrefs_name` and `xrefs_number` (#6774, Nils
724 Carlson). Links to headings, figures and tables inside the
725 document are substituted with cross-references that will use the
726 name or caption of the referenced item for `xrefs_name` or the
727 number for `xrefs_number`. For the `xrefs_number` to be useful
728 heading numbers must be enabled in the generated document and
729 table and figure captions must be enabled using for example the
730 `native_numbering` extension. In order for numbers and reference
731 text to be updated the generated document must be refreshed.
735 + Support advanced table features (Albert Krewinkel).
736 + Support author affiliations (#6687, Albert Krewinkel).
740 + Use correct id attribute consistently (Jan Tojnar).
741 DocBook5 should always use `xml:id` instead of `id`.
742 + Handle admonition titles better (Jan Tojnar).
743 Docbook reader produces a `Div` with `title` class for `<title>`
744 element within an “admonition” element. Markdown writer then turns
745 this into a fenced div with `title` class attribute. Since fenced
746 divs are block elements, their content is recognized as a
747 paragraph by the Markdown reader. This is an issue for Docbook
748 writer because it would produce an invalid DocBook document from
749 such AST – the `<title>` element can only contain “inline”
750 elements. Handle this special case separately by unwrapping
751 the paragraph before creating the `<title>` element.
752 + Add XML namespaces to top-level elements (#6923, Jan Tojnar).
753 Previously, we only added `xmlns` attributes to chapter
754 elements, even when running with `--top-level-division=section`.
755 These namespaces are now added to part and section elements too,
756 when they are the selected top-level divisions.
757 We do not need to add namespaces to documents produced with
758 `--standalone` flag, since those will already have xmlns attribute on
759 the root element in the template.
763 + Fix handling of nested `csl-` display spans (#6921).
764 Previously inner Spans used to represent CSL display attributes were
765 not rendered as div tags as intended.
769 + Include title page in landmarks (#6919).
770 Note that the toc is also included if `--toc` is specified.
771 + Add frontmatter type on body element for nav.xhtml (#6918).
773 * EPUB templates: use preserveAspectRatio="xMidYMid" for cover image (#6895,
774 Shin Sang-jae). This change affects both the epub2 and the epub3
775 templates. It avoids distortion of the cover image by requiring that the
776 aspect ratio be preserved.
780 + Include `csquotes` package if `csquotes` variable set.
781 + Put back `amssymb`. We need it for checkboxes in todo lists,
782 and maybe for other things. In this location it seems compatible
783 with the cases that prompted #6469 and PR #6762.
784 + Disable language-specific shorthands in babel (#6817, #6887).
785 Babel defines "shorthands" for some languages, and these can
786 produce unexpected results. For example, in Spanish, `1.22`
787 gets rendered as `122`, and `et~al.` as `etal`.
788 One would think that babel's `shorthands=off` option (which
789 we were using) would disable these, but it doesn't. So we
790 remove `shorthands=off` and add some code that redefines
791 the shorthands macro. Eventually this will be fixed in babel,
792 I hope, and we can revert to something simpler.
794 * JATS template: allow array of persistent institute ids in `pid`
797 * Text.Pandoc.Parsing: minor code and efficiency improvements.
799 * Text.Pandoc.Extension:
801 + Add `Ext_sourcepos` constructor for `Extension` [API change].
802 + Add `Ext_xrefs_name` and `Ext_xrefs_number` constructors for
803 `Extension` (Nils Carson) [API change].
805 * Text.Pandoc.Citeproc:
807 + Fix truncation of `[Citation]` list in `Cite` inside footnotes (#6890).
808 This affected author-in-text citations in footnotes. It didn't cause
809 problems for the printed output, but for filters that expected the
810 citation id and other information.
811 + Allow the use of both inline and external references (#6951),
812 as with pandoc-citeproc. References defined in the document's
813 metadata take priority over references with the same id defined in
814 an external bibliography.
815 + Use `fetchItem` to get external bibliography (#6940).
816 + Ensure that BCP47 lang codes can be used. We ignore the variants
817 and just use the base lang code and country code when passing off
819 + Citeproc BibTeX parser: revert change in `getRawField`
820 which was made (for reasons forgotten) when transferring
821 this code from pandoc-citeproc. The change led to `--` in
822 URLs being interpreted as en-dashes, which is unwanted (#6874).
824 * Text.Pandoc.ImageSize:
826 + Default to DPI 72 if the format specifies DPI of 0 (#6880).
827 This shouldn't happen, in general, but it can happen with
828 JPEGs that don't conform to the spec. Having a DPI of 0
829 will blow up size calculations (division by 0).
830 + ImageSize: use JuicyPixels to determine size for png, jpeg, and
831 gif, instead of doing our own binary parsing (#6936). This
832 gives more reliable results.
836 + Remove `foldOrElse` (internal module) (Albert Krewinkel).
838 * Use skylighting 0.10.2 (#6625).
840 * Use citeproc 0.3. This fixes issues with references with
841 duplicate ids (jgm/citeproc#36).
843 * Use doctemplates 0.9. This fixes issues with boolean
844 metadata values in the Markdown writer (#6388)
845 and in `meta-json` (#6650). It also fixes
846 issues with nested for loops in templates.
848 * Add translations zh-Hans.yaml and zh-Hant.yaml (#6904, #6909,
849 Kolen Cheung, taotieren).
851 * Add tests: True to cabal.project.
852 This fixes some CI failures for cabal.
854 * Normalize test/tables/*.native (#6888, Kolen Cheung).
856 * Move executable to `app` directory to avoid problems with cabal repl.
858 * CONTRIBUTING: add section "How can I help?" (#6892, Albert Krewinkel).
859 Also adds a paragraph aimed at highlighting the importance of feature
862 * MANUAL: Document that --number-sections works in `ms` (#6935).
865## pandoc 2.11.2 (2020-11-19)
867 * Default to using ATX (`##`-style) headings for Markdown output
868 (#6662, Aner Lucero). Previously we used Setext (underlined) headings
869 by default for levels 1--2.
871 * Add option `--markdown-headings=atx|setext`, and deprecate
872 `--atx-headers` (#6662, Aner Lucero).
874 * Support `markdown-headings` in defaults files.
876 * Fix corner case in YAML metadata parsing (#6823). Previously YAML
877 metadata would sometimes not get recognized if a field ended with a
878 newline followed by spaces.
880 * `--self-contained`: increase coverage (#6854).
881 Previously we only self-contained attributes for certain tag names
882 (`img`, `embed`, `video`, `input`, `audio`, `source`, `track`,
883 `section`). Now we self-contain any occurrence of `src`,
884 `data-src`, `poster`, or `data-background-image`, on any tag; and
885 also `href` on `link` tags.
889 + Fix detection of locators following in-text citations.
890 Prevously, if we had `@foo [p. 33; @bar]`, the `p. 33` would be
891 incorrectly parsed as a prefix of `@bar` rather than a suffix of
893 + Improve period suppression algorithm for citations in notes
894 in note citation styles (#6835).
895 + Don't increment `stateNoteNumber` for example list references.
896 This helps with #6836 (a bug in which example list references
897 disturb calculation of citation note number and affect when
898 `ibid` is triggered).
902 + Move `getNextNumber` from Readers.LaTeX to Readers.LaTeX.Parsing.
903 + Fix negative numbers in siunitx commands. A change in pandoc 2.11
904 broke negative numbers, e.g. `\SI{-33}{\celcius}` or `\num{-3}`.
905 This fixes the regression.
907 * DocBook reader: drop period in formalpara title
908 and put it in a div with class `formalpara-title`, so that
909 people can reformat with filters (#6562).
911 * Man reader: improve handling of `.IP` (#6858). We now better handle
912 `.IP` when it is used with non-bullet, non-numbered lists, creating a
913 definition list. We also skip blank lines like groff itself.
915 * Bibtex reader: fall back on `en-US` if locale for LANG not found.
916 This reproduces earlier pandoc-citeproc behavior (jgm/citeproc#26).
920 + Wrap all tables (Albert Krewinkel).
921 All `<table>` elements are put inside `<table-wrap>` elements, as the
922 former are not valid as immediate child elements of `<body>`.
923 + Move Table handling to separate module (Albert Krewinkel).
924 Adds two new unexported modules:
925 Text.Pandoc.Writers.JATS.Types, Text.Pandoc.Writers.JATS.Table.
929 + Replace org #+KEYWORDS with #+keywords (TEC).
930 As of ~2 years ago, lower case keywords became the standard (though
931 they are handled case insensitive, as always).
932 + Update org supported languages and identifiers according to the
933 current list contained in
934 <https://orgmode.org/worg/org-contrib/babel/languages/index.html>
937 * Only use `filterIpynbOutput` if input format is ipynb (#6841).
938 Before this change content could go missing from divs with class
939 `output`, even when non-ipynb was being converted.
941 * When checking reader/writer name, check base name now that we permit
942 extensions on formats other than markdown.
944 * Text.Pandoc.PDF: Fix `changePathSeparators` for Windows (#6173).
945 Previously a path beginning with a drive, like `C:\foo\bar`, was
946 translated to `C:\/foo/bar`, which caused problems.
947 With this fix, the backslashes are removed.
949 * Text.Pandoc.Logging: Add constructor `ATXHeadingInLHS` constructor
950 to `LogMessage` [API change].
952 * Fix error that is given when people specify `doc` output (#6834,
955 * LaTeX template: add a `\break` after parbox in `CSLRightInline`.
956 This should fix spacing problems between entries with numeric styles.
957 Also fix number of params on `CSLReferences`.
959 * reveal.js template: Put quotes around `controlsLayout`,
960 `controlsBackArrows`, and `display`, since these require strings.
961 Add `showSlideNumber`, `hashOneBasedIndex`, `pause`.
963 * Use citeproc 0.2. This fixes a bug with title case around parentheses.
965 * pandoc.cabal: remove 'static' flag.
966 This isn't really necessary and can be misleading (e.g. on macOS,
967 where a fully static build isn't possible). cabal's new option
968 `--enable-executable-static` does the same. On stack you can add
969 something like this to the options for your executable in package.yaml:
971 ld-options: -static -pthread
973 * Remove obsolete bibutils flag setting in `linux/make_artifacts.sh`.
977 + Correct `link-citation` -> `link-citations`.
978 + Add a sentence about `pagetitle` for HTML (#6843, Alex Toldaiev).
980 * INSTALL.md: Remove references to `pandoc-citeproc` (#6857).
982 * CONTRIBUTING: describe hlint and how it's used (#6840, Albert
985## pandoc 2.11.1.1 (2020-11-07)
987 * Citeproc: improve punctuation in in-text note citations (#6813).
988 Previously in-text note citations inside a footnote would sometimes have
989 the final period stripped, even if it was needed (e.g. on the end of
992 * Use citeproc 0.1.1.1. This improves the decision about when
993 to use `ibid` in cases where citations are used inside
996 * Support `nocase` spans for `csljson` output.
998 * Require latest commonmark, commonmark-extensions.
999 This fixes a bug with `autolink_bare_uris` and commonmark.
1001 * LaTeX reader: better handling of `\\` inside math in table cells (#6811).
1003 * DokuWiki writer: translate language names for code elements
1004 and improve whitespace (#6807).
1006 * MediaWiki writer: use `syntaxhighlight` tag instead of deprecated
1007 `source` for highlighted code (#6810). Also support `startFrom`
1008 attribute and `numberLines`.
1010 * Lint code in PRs and when committing to master (#6790,
1013 * doc/filters.md: describe technical details of filter invocations (#6815,
1017## pandoc 2.11.1 (2020-11-03)
1019 * DocBook Reader: fix duplicate bibliography bug (#6773, Nils Carlson).
1023 + Parse contents of iframes (#6770).
1024 + Parse inline svg as image unless `raw_html` is set in the reader (in
1025 which case the svg is passed through as raw HTML) (#6770).
1029 + Fix bug parsing macro arguments (#6796). If `\cL` is
1030 defined as `\mathcal{L}`, and `\til` as `\tilde{#1}`, then
1031 `\til\cL` should expand to `\tilde{\mathcal{L}}`, but
1032 pandoc was expanding it to `\tilde\mathcal{L}`. This is
1033 fixed by parsing the arguments in "verbatim mode" when the
1034 macro expands arguments at the point of use.
1035 + Properly support optional (cite) argument for
1036 `\blockquote` from `csquotes` (#6802).
1038 * LaTeX writer: Improved calculation of table column widths.
1039 We now have LaTeX do the calculation, using `\tabcolsep`.
1040 So we should now have accurate relative column widths no
1041 matter what the text width. The default template has been modified to load
1042 the calc package if tables are used.
1044 * HTML writer: Fix duplicate "class" attribute for table
1047 * Text.Pandoc.Filter: allow shorter YAML representation of Citeproc
1048 (Albert Krewinkel). The map-based YAML representation of filters expects
1049 `type` and `path` fields. The path field had to be present for all filter
1050 types, but is not used for citeproc filters. The field can now be omitted
1051 when type is "citeproc", as described in the MANUAL.
1053 * Text.Pandoc.Error: Add `PandocBibliographyError` constructor
1054 for `PandocError` [API change]. This ensures that bibliography parsing
1055 errors generate messages that include the bibliography file name --
1056 otherwise it can be quite mysterious where it is coming from.
1058 * Citeproc: properly handle `csl` field with `data:` URI (#6783).
1059 This is used with the JATS writer, so this fixes a regression
1060 in pandoc 2.11 with JATS output and citeproc.
1062 * Allow `citation-abbreviations` in defaults file.
1064 * JATS templates: ensure `jats_publishing` output is valid
1067 * LaTeX template: Fix `CSLRightInline`, so that it does not
1068 run over the right margin.
1070 * HTML template: default CSS tweaks (Mauro Bieg and John
1073 - Fix margin before codeblock
1074 - Add `monobackgroundcolor` variable, making the background color
1075 and padding of code optional.
1076 - Ensure that backgrounds from highlighting styles take precedence over
1078 - Remove list markers from TOC
1079 - Add margin-bottom where needed
1080 - Remove italics from blockquote styling
1081 - Change borders and spacing in tables to be more consistent with other
1084 - Set font-size for print media to 12pt.
1085 - Reduce interline space.
1086 - Reduce interparagraph space.
1087 - Reduce line width.
1088 - Remove the special `line-height: 1` for table cells.
1089 - Remove the special line-height for pre.
1090 - Ensure that there is a bit more space before a heading
1092 - Slightly reduced space after title header.
1093 - Add CSS example to MANUAL
1095 * man template: Change comment that triggers `tbl` from
1096 `.\"t` to `'\" t`, as specified in groff_man(7) (#6803).
1098 * Use latest commonmark, commonmark-extensions.
1099 This fixes a bug with nested blocks in footnotes with the
1100 `footnote` extension to `commonmark`. See jgm/commonmark-hs#63.
1102 * Citeproc: use comma for in-text citations inside footnotes.
1103 When an author-in-text citation like `@foo` occurs in a footnote,
1104 we now render it with: `AUTHOR NAME + COMMA + SPACE + REST`.
1105 Previously we rendered: `AUTHOR NAME + SPACE + "(" + REST + ")"`.
1106 This gives better results. Note that normal citations are still
1107 rendered in parentheses.
1109 * Use latest citeproc:
1111 + citeproc no longer capitalizes notes, so we do it
1112 in pandoc when appropriate.
1115 * Clarify manual on `--track-changes` (#6801).
1117 * Add `doc/jats.md` to document pandoc's handling of JATS
1118 (#6794, Albert Krewinkel).
1120 * Fix code example in lua-filters.md (#6795).
1122## pandoc 2.11.0.4 (2020-10-21)
1124 * Commonmark writer: fix regression with fenced divs (#6768).
1125 Starting with 2.10.1, fenced divs no longer render with
1126 HTML div tags in commonmark output. This is a regression
1127 due to our transition from cmark-gfm. This commit fixes it.
1129 * Use released version of citeproc. (This fixes a mis-step
1130 in the 2.11.0.3 release, which is now deprecated.)
1132 * Use latest sylighting, with support for `groovy`.
1134 * Document that --html-q-tags requires the smart extension on the reader
1137## pandoc 2.11.0.3 (2020-10-20)
1139 * Use latest citeproc (closes #6765). This fixes a problem with
1140 author-in-text citations for references including both an author
1141 and an editor. Previously, both were included in the text, but only
1142 the author should be.
1144 * With `--citeproc`, ensure that the final period is removed when
1145 citations that occur in notes in note-based styles get put in
1146 parentheses. See jgm/citeproc#20.
1148 * Normalize rewritten image paths with `--extract-media` (#6761).
1149 This change will avoid mixed paths like this one when
1150 `--extract-media` is used with a Word file:
1151 ``. Instead we'll get
1152 ``.
1154 * Modify `--version` output. Use space more efficiently and report the
1155 citeproc and ipynb versions, along with skylighting, texmath, and
1156 pandoc-types. Drop the word "default" before "user data directory."
1158 * DocBook reader: bibliomisc and anchor support (#6754, Nils Carlson).
1159 Also ensure that bibliodiv without a title no longer results in
1162 * ConTeXt template: adds `\setupinterlinespace` to fonts larger
1163 than normal (#6763, Denis Maier).
1165 * LaTeX template: Do not load amssymb if not needed (#6469, Angelo Peronio).
1166 See <https://tex.stackexchange.com/a/549938>.
1168 * Relax upper bound on hslua, allow hslua-1.3.* (Albert Krewinkel).
1172 + Improve explanation of "indent" variable (#6767, Cyrus Yip).
1173 + Remove org from list of input formats supporting raw_tex (#6753,
1177## pandoc 2.11.0.2 (2020-10-15)
1179 * Fix handling of `xdata` in bibtex/biblatex bibliographies (#6752).
1181 * Fix some small typos in the API documentation (#6751, Michael Hoffmann).
1183 * Require citeproc 0.1.0.2. This fixes a regression from pandoc-citeproc
1184 involving spacing between components of a reference in certain styles
1187 * Fix typos in comments, doc strings, error messages, and tests
1188 (Albert Krewinkel, #6738).
1190## pandoc 2.11.0.1 (2020-10-13)
1192 * LaTeX reader: support more acronym commands (#6746):
1193 `\acl`, `\aclp`, and capitalized versions of already
1196 * Commonmark reader: add `pipe_table` extension *after* defaults (#6739).
1197 Otherwise we get bad results for non-table, non-paragraph
1198 lines containing pipe characters.
1200 * Markdown writer: Fix autolinks rendering for gfm (#6740).
1201 Previously, autolinks rendered as raw HTML, due to the
1202 `class="uri"` added by pandoc's markdown reader.
1206 + Escape option values in lstlistings environment (#6742).
1207 + Fix handling of `lang` `pt-BR` (#2953). For polyglossia we now
1208 use `\setmainlanguage[variant=brazilian]{portuguese}` and for babel
1209 `\usepackage[shorthands=off,main=brazilian]{babel}`.
1211 * Depend on latest citeproc (0.1.0.1).
1213 + This fixes the citation number issue with ieee.csl and other
1214 styles that do not explicitly sort bibliographies (#6741). (Pandoc
1215 was numbering them by their order in the bibliography file,
1216 rather than the order cited, as required by the CSL spec.)
1217 + Fixes groupin/collapsing with citation items with prefixes.
1219 * default.latex: fix `CSLReference` macro definition.
1221 * Fix MANUAL.txt CSL JSON conversion examples.
1223 * Fix spelling errors in changelog, MANUAL.txt, `doc/org.md` (#6738).
1226## pandoc 2.11 (2020-10-11)
1228 * Add `--citeproc` (`-C`) option to trigger built-in citation processing.
1229 It is no longer necessary to use the external `pandoc-citeproc`
1230 filter. `--citeproc` behaves like a filter and can be positioned
1231 relative to other filters as they appear on the command line.
1233 The new built-in citation processing uses the citeproc library,
1234 a reimplementation of CSL citation processing that fixes many
1235 of the shortcomings of pandoc-citeproc. In general, citation
1236 processing should work much the same as it did with pandoc-citeproc,
1237 but with greater fidelity to CSL styles and better performance.
1238 (The tests from the pandoc-citeproc package have been carried
1239 over to pandoc.) The following differences should be noted:
1241 - At this point, only some of the writers (HTML, ms, LaTeX) properly
1242 interpret CSL display styles. You should get decent output in
1243 all formats (at least as good as with pandoc-citeproc), but
1244 indentation and block-alignment may not be right.
1246 - pandoc-citeproc searches the `~/.csl` directory for `.csl`
1247 styles. Pandoc instead searches the `csl` subdirectory of
1248 the pandoc user data directory (e.g., `~/.pandoc/csl` or
1249 `~/.local/share/pandoc/csl`). Users who already keep
1250 CSL styles in `~/.csl` may find it convenient to add a
1253 - Some of the bibliography formats supported by pandoc-citeproc (via
1254 hs-bibutils) are no longer supported: Copac, EndNote,
1255 ISI, MEDLINE, MODS, and RIS. If you use one of these formats,
1256 you may use the `bibutils` utility to convert to BibLaTeX.
1257 We now support only BibTeX, BibLaTeX, CSL JSON,
1258 and pandoc's YAML/Markdown analogue of CSL JSON.
1260 - pandoc-citeproc would always retrieve the independent parent
1261 of a dependent style by doing an HTTP request. pandoc will
1262 now first seek the independent parent locally (in the resource
1263 path or in the `csl` subdirectory of the pandoc user data
1264 directory) before resorting to HTTP. In addition, you may
1265 omit the `.csl` extension, e.g. `--csl zoology`.
1267 - Using the `--bibliography` option (or including
1268 `bibliography` in YAML metadata) no longer triggers
1269 citation processing implicitly: one must always use the
1270 `--citeproc` option if citation processing is wanted.
1272 * Add `csljson` as and input and output format. This allows pandoc
1273 to convert between `csljson` and other bibliography formats
1274 (e.g. `-f csljson -t markdown -s` or `-f bibtex -t csljson`),
1275 and to generate formatted versions of CSL JSON bibliographies
1276 (e.g., `pandoc -f csljson --citeproc pl.json -o pl.pdf`).
1278 * Added `bibtex`, `biblatex` as input formats. This allows pandoc
1279 to convert between BibLaTeX and BibTeX and other bibliography formats,
1280 and to generated formatted versions of BibTeX/BibLaTeX bibliographies
1281 (e.g., `pandoc -f biblatex --citeproc pl.bib -o pl.pdf`).
1283 * Raise informative errors when YAML metadata parsing fails (#6730).
1284 Previously the command would succeed, returning empty metadata,
1285 with no errors or warnings.
1287 * Sort languages in `--list-highlight-languages` output (#6718,
1288 Albert Krewinkel). Languages were previously sorted by their
1289 long name, which leads to unexpected results).
1291 * Add CSS to default HTML template (#6601, Mauro Bieg). This
1292 greatly improves the default typography in pandoc's HTML
1293 output. The CSS is sensitive to a number of variables
1294 (e.g. `mainfont`, `fontsize`, `linestretch`): see the manual for
1295 details. To restore the earlier, more spartan output, you can
1296 disable this with `-M document-css=false`.
1298 * Support `--toc-depth` option for ODT writer (#6696, niszet).
1300 * Fix issues with Windows UNC paths with some options (#5127).
1302 * Remove `fenced_code_blocks` and `backtick_code_blocks` from allowed
1303 `commonmark` and `gfm` extensions. These shouldn't really be counted
1304 as extensions, because they can't be disabled in commonmark.
1305 Adjust markdown writer to check for the commonmark variant in addition
1308 * Add these extensions to `gfm` and `commonmark`:
1309 `fenced_code_blocks`, `backtick_code_blocks`, `fenced_code_attributes`.
1310 These can't really be disabled in the reader, but they need to be enabled
1311 in the writer or we just get indented code.
1313 * Make sure proper set of extensions is recognized for `commonmark_x`.
1315 * Allow `gfm_auto_identifiers`, `ascii_identifiers` extensions for `docx`.
1319 + Add `Maybe FilePath` parameter to `yamlToMeta` [API change].
1320 + Export `yamlToRefs` [API change], a version of `yamlToMeta`
1321 specialized to references.
1322 + Set `citationNoteNum` accurately in citations.
1323 + Revise abbreviation support. Don't insert a nonbreaking space after a
1324 potential abbreviation if it comes right before a note or citation.
1325 This causes problems for citeproc's moving of note citations.
1329 + Support missing siunitx commands (#6658).
1330 + Support `squared`, `cubed`, `tothe` in siunitx (#6657).
1331 + Improved uncertainty handling in slunitx.
1332 + Factored out siunitx stuff into separate unexposed module.
1333 + Fix improper empty cell filtering (#6689, Christian Despres).
1334 + Fix parsing of "show name" in `\newtheorem` (#6734).
1335 Previously we were just treating it as a string and
1336 ignoring accents and formatting.
1337 + Prevent wrong nesting of `\multirow` and `\multicolumn` table
1338 cells (#6603, Laurent P. René de Cotret).
1339 + Table cell parser not consuming spaces correctly (#6596,
1340 Laurent P. René de Cotret).
1341 + Change `SIRange` to `SIrange` (#6617, Emerson Harkin).
1342 + Allow blank lines inside `\author` (#6324).
1346 + Don't squelch space at end of emphasis and other inline elements;
1347 instead, move it outside the element (#6719).
1348 + Implement table cell alignment (#6698, Nils Carlson).
1349 + Implement column span support for tables (#6492, Nils Carlson).
1350 + Update list of block level tags (#6610).
1355 + Don't squelch space at end of emphasis and other inline elements;
1356 instead, move it outside the element (#6719).
1360 + Apply `.. class::` directly to following Header rather than creating
1361 a surrounding Div (#6699).
1365 + Allow empty dates in comments and tracked changes (#6726, Diego
1370 + Be less aggressive about using quotes for YAML values,
1371 allowing e.g. a quotation mark or bracket as long as it's not at the
1372 beginning of the line.
1373 + Use double quotes for YAML metadata (#6727).
1374 + Sort YAML metadata keys in Markdown output case-insensitive.
1379 + Support asciidoctor's block figures (#6538, argent0).
1383 + Fix spacing issue with list in definition list.
1384 When a list occurs at the beginning of a definition list definition,
1385 it can start on the same line as the label, which looks bad.
1386 Fix that by starting such lists with an `\item[]`.
1390 + Support intermediate table headers (#5314, Albert Krewinkel).
1391 + Support attributes on all table elements (Albert Krewinkel).
1392 + Render table footers if present (#6314, Albert Krewinkel).
1393 + Fix addition of `doc-biblioentry` role.
1394 + Support colspans and rowspans in HTML tables (#6312, Albert Krewinkel).
1398 + Support internal document links (#5541, Leonard Rosenthol).
1399 + Changed default link state to invisible (#6676, Leonard Rosenthol).
1403 + Better handle list items whose contents are lists (#5948, Michael
1404 Hoffmann). If the first element of a bulleted or ordered list is
1405 another list, then that first item would previously disappear if the
1406 target format is docx.
1407 + Separate adjacent tables (#4315). Word combines adjacent tables,
1408 so to prevent this we insert an empty paragraph between two
1413 + Don't force blank line after headings (#6554).
1415 * OpenDocument writer:
1417 + Implement table cell alignment (#6700 Nils Carson, Mauro Bieg).
1418 + New table cell support with row and column spans (#6682, Nils Carson).
1419 + Syntax highlighting for inline code (#6711, niszet).
1421 * Add Text.Pandoc.Citeproc module, exporting `processCitations`
1422 [API change]. This depends on several other, unexported
1423 modules under Text.Pandoc.Citeproc.
1425 * Add module Text.Pandoc.Writers.CslJson, exporting `writeCslJson`.
1428 * Add module Text.Pandoc.Readers.CslJson, exporting `readCslJson`.
1431 * Add module Text.Pandoc.Readers.BibTeX, exporting `readBibTeX` and
1432 `readBibLaTeX`. [API change]
1434 * Text.Pandoc.Filter: Add `CiteprocFilter` constructor to Filter.
1435 [API change] This runs the processCitations transformation.
1436 We need to treat it like a filter so it can be placed
1437 in the sequence of filter runs (after some, before others).
1438 In FromYAML, this is parsed from `citeproc` or `{type: citeproc}`,
1439 so this special filter may be specified either way in a defaults file
1440 (or by `citeproc: true`, though this gives no control of positioning
1441 relative to other filters).
1443 * Add new exported module Text.Pandoc.Writers.AnnotatedTable [API change]
1444 (#6655, Christian Despres). This module (which should generally
1445 be imported qualified to avoid name conflicts) provides a
1446 `Table` type that mirrors the structure of a pandoc `Table`,
1447 but with added inferred information so that the writers do not have to
1448 lay out tables themselves. The `toTable` and `fromTable` functions convert
1449 between an annotated `Table` and a regular pandoc `Table`. In addition to
1450 producing a `Table` with coherent and well-formed annotations, the
1451 `toTable` function also normalizes its input table like the table
1452 builder does. Tests ensure that `toTable` normalizes tables exactly
1453 like the table builder, and that its annotations are coherent.
1455 * Text.Pandoc.Logging:
1457 + Remove unused `CouldNotParseYamlMetadata` constructor for `LogMessage`
1459 + Add `CiteprocWarning` constructor to `LogMessage` [API change].
1461 * Text.Pandoc.Readers.Metadata: export `yamlBsToRefs` [API change].
1462 These allow specifying an id filter so we parse only references
1463 that are used in the document.
1465 * Text.Pandoc.Parsing:
1467 + Export ParseError [API change].
1468 + Add `stateInNote` and `stateNoteNumber` to `ParserState`
1469 [API change]. These are used to populate note numbers for citation
1472 * Fix apparent typos in sample.lua (#6729, William Lupton).
1473 Also make the writer less aggressive in escaping quotes.
1475 * Text.Pandoc.Options:
1477 + `defaultMathJaxURL`: use `tex-chtml-full` instead of `tex-mml-chtml`
1478 (#6599, Kolen Cheung). This drops the MathML support (which we
1479 don't need for HTML math rendering) and includes the full JavaScript,
1480 which makes it possible to use `--self-contained` (though there may
1481 still be issues if the required math fonts aren't available). This
1482 change should also reduce latency in pages with lots of formulas.
1483 + Add `/tex-chtml-full.js` to `defaultMathJaxURL` (#6593) Previously we
1484 added this in processing command line options, but not in processing
1485 defaults files, which was inconsistent.
1487 * epub.css: Fix cover page selectors and add note explaining their use
1490 * Add data files needed for Text.Pandoc.Citeproc: these include
1491 `default.csl` in the data directory and a `citeproc` directory that
1492 is only used at compile-time for biblatex localizations. Note that we've
1493 added `file-embed` as a mandatory rather than a conditional
1494 dependency, because of the biblatex localization files.
1498 + Add SimpleTable for backwards compatibility (#6575, Albert Krewinkel).
1499 A new type `SimpleTable` is made available to Lua filters. It is
1500 similar to the `Table` type in pandoc versions before 2.10;
1501 conversion functions from and to the new Table type are provided.
1502 Old filters using tables now require minimal changes and can use, e.g.,
1504 if PANDOC_VERSION > {2,10,1} then
1505 pandoc.Table = pandoc.SimpleTable
1510 function Table (tbl)
1511 tbl = pandoc.utils.to_simple_table(tbl)
1513 return pandoc.utils.from_simple_table(tbl)
1516 to work with the current pandoc version.
1518 + Make `attr` argument optional in `Table` constructor (Albert Krewinkel).
1519 This changes the Lua API. It is highly unlikely for this change to affect
1520 existing filters, since the documentation for the new Table constructor
1521 (and type) was incomplete and partly wrong before. The Lua API is now
1522 more consistent, as all constructors for elements with attributes now
1523 take attributes as the last parameter.
1527 * Add a dedicated Citations section which consolidates the information
1528 the manual used to contain about citation processing, and incorporates
1529 some information formerly found in the pandoc-citeproc man page.
1530 + Add note about lualatex using `selnolig`.
1531 + Remove duplicate `seriespage` (#6568, Blake Eryx).
1532 + Remove lists of support extensions for markdown variants (#6604).
1533 Instead, offer the advice to use `--list-extensions=FORMAT`.
1534 + Fix position of attributes in header (Albert Krewinkel).
1535 + Delete obsolete section on compact and loose lists (#6684).
1538 * doc/lua-filters.md:
1540 + Add info on how to debug Lua filters (#6732, Ian Max Andolina).
1541 + Document Underline type and constructor (Albert Krewinkel).
1542 + Document `body` field (Albert Krewinkel).
1543 + Add missing header attribute
1544 + Add missing Link.title field (Albert Krewinkel).
1545 + Make the setting-the-date example conditional (the-solipsist).
1546 This makes the example a bit more realistic.
1547 + Remove outdated link table example.
1551 + Add section on tables (Albert Krewinkel).
1552 + Add section on handling of unknown directives (Albert Krewinkel).
1554 * CONTRIBUTING.md: fix typo (#6584, Dmitry Volodin).
1556 * Use golden test framework for command tests. This means that
1557 `--accept` can be used to update expected output.
1559 * Use the `smart` extension when generating pandoc's man page (#6613).
1561 * Release-candidate: don't build windows i386.
1562 So far we haven't been able to figure out how to get
1563 stack to use a 32-bit ghc.
1565 * Use `null` instead of deprecated `Builder.isNull`.
1569 + Fix macospkg target to fetch target from S3 artifacts.
1570 + Fix pandoc-templates target to include all partials.
1572 * Remove duplicated dependency in pandoc.cabal (#6591, Felix Yan).
1574 * Sort build depends in pandoc.cabal alphabetically (#6691,
1577 * Add .travis.yml for macos release candidate build (#6622).
1578 We need to build the release candidate on Travis rather
1579 than GitHub actions, because GH has macos 10.15, and
1580 binaries compiled on that OS will not work with 10.13.
1581 This build is only triggered on `rc/*` branches.
1583 * Remove instructions for building pandoc-citeproc from CI and
1584 release binary build instructions. We will no longer distribute
1587 * Fix math rendering in trypandoc (this broke after
1588 commit d8ad766d17603784b86fc5c2e1b22864125d04d1).
1590 * Use latest versions of skylighting, commonmark (#6589),
1591 comonmark-extensions, commonmark-pandoc, texmath.
1593 * Relax version bounds for hslua, hslua-module-text, bytestring.
1595 * Use released pandoc-types 1.22. This changes the JSON
1596 encoding slightly for the new table types introduced
1597 in 1.21, so they're more consistent with the rest.
1598 Developers of libraries for pandoc filters will want
1601 * Fix hlint suggestions, update hlint.yaml (#6680, Christian Despres).
1603 * Code cleanup (#6678, Joseph C. Sible).
1605 * Add haddocks to functions in Text.Pandoc.Writers.Shared (Albert
1608 * Remove duplicate `tshow` definition.
1610 * Linux release candidate build: use ghc-musl container. This simplifies
1611 our build process (over using a customized alpine container).
1614## pandoc 2.10.1 (2020-07-23)
1616 * Add `commonmark_x` output format. This is `commonmark` with a number
1617 of useful pandoc extensions enabled.
1619 * Many more extensions now work with `commonmark` and `gfm`.
1621 * Add generic `attributes` extension. This allows attributes to
1622 be added to any block or inline element in a uniform way. Since
1623 the Pandoc AST doesn't include attributes on each element type,
1624 the attributes will sometimes be added by creating a surrounding
1625 Div or Span container. Currently this extension is only
1626 compatible with the `commonmark` and `gfm` readers.
1628 To add an attribute to a block-level element, e.g. a paragraph,
1629 put it before the block:
1632 This is a paragraph.
1634 Multiple attributes may be used and will be combined:
1637 {.blue .warning key="val"}
1638 This is a paragraph.
1640 To add an attribute to an inline-level element, put it
1641 immediately after the element:
1643 *emphasized text*{.special}
1646 * Support `--number-sections` for docx output (#1413).
1650 + Support `\SIRange` reader (#6418, Emerson Harkin).
1651 + Support table col-span and row-span (#6311, Laurent P. René de Cotret).
1652 Supports `\multirow` and `\multicolumn`.
1653 + Support amsthm: `\newtheorem`, `\theoremstyle`, and theorem and
1654 proof environments, including labels and references. The only thing
1655 that is unsupported is the second optional argument, which causes
1656 numbering to be reset after the specified series is incremented.
1657 + Moved some code to T.P.LaTeX.Parsing. We need to reduce the size
1658 of the LaTeX reader to ease compilation on resource-limited systems.
1662 + Fix csv tables with multiline cells (#6549).
1663 + Fix spurious newlines in some attributes from directives.
1664 + Avoid extra newline in included code blocks.
1666 * Commonmark reader:
1668 + Switch from cmark-gfm to commonmark-hs for commonmark and gfm
1669 parsing. This avoids depending on a C library
1670 and allows us to support more pandoc extensions for
1671 `commonmark` and `gfm`.
1675 + Parse releaseinfo as metadata (#6542).
1679 + Only use `bCs/iCs` on runs with `rtl` or `cs` property (#6514, Nikolay
1681 + Code cleanup/refactoring (Nikolay Yakimov).
1683 * Org reader (Albert Krewinkel):
1685 + Respect export setting which disables entities
1686 MathML-like entities, e.g., `\alpha`, can be disabled with the
1687 `#+OPTION: e:nil` export setting (Albert Krewinkel).
1688 + Respect export setting disabling footnotes. Footnotes can be removed
1689 from the final document with the `#+OPTION: f:nil` export setting.
1690 + Respect tables-excluding export setting. Tables can be removed from
1691 the final document with the `#+OPTION: |:nil` export setting.
1695 + Move `asciify` out of `escapeString`. Otherwise `unsmartify`
1696 doesn't catch quotes that have already been turned to entities.
1697 + Add `writeCommonmark` (new exported function, API change).
1698 + Use unicode super/subscript characters when possible if the
1699 `superscript` or `subscript` extension or `raw_html` aren't available.
1700 + Render caption as following paragraph when `table_caption` extension
1702 + Use numerical labels for reference links that are longer
1703 than 999 characters or contain square brackets, for conformity
1704 with commonmark (#6560).
1706 * Commonmark writer:
1708 + Instead of using cmark-gfm, use `writeCommonmark` from the
1709 Markdown writer. This function calls the markdown writer
1710 with appropriate extensions and a few small modifications
1711 (e.g. not requiring backslashes before spaces inside
1712 super/subscripts). With this change `comonmark` and
1713 `gfm` output can be used with a wider selection of
1716 * Jira writer: keep image caption as alt attribute (#6529, Albert
1721 + Improve alt-text/caption handling for HTML5 (#6491, Albert Krewinkel).
1722 Screen readers read an image's `alt` attribute and the figure caption,
1723 both of which come from the same source in pandoc. The figure caption is
1724 hidden from screen readers with the `aria-hidden` attribute. This
1725 improves accessibility. For HTML4, where `aria-hidden` is not allowed,
1726 pandoc still uses an empty `alt` attribute to avoid duplicate contents.
1730 + Fix code highlighting with blank lines. Previously blank lines
1731 were simply omitted from highlighted code.
1732 + Escape starting periods in ms writer code blocks (#6505, Michael
1733 Hoffmann). If a line of ms code block output starts with a period (.),
1734 it should be prepended by `\&` so that it is not interpreted as a roff
1737 * Text.Pandoc.Extensions:
1739 + Add `raw_markdown` extension (which only affects `ipynb`
1741 + Trim down `githubMarkdownExtensions`.
1742 Previously it included all of the following, which make
1743 sense for the legacy `markdown_github` but not for `gfm`,
1744 since they are part of base commonmark and thus
1745 can't be turned off in `gfm`:
1747 - `Ext_all_symbols_escapable`
1748 - `Ext_backtick_code_blocks`
1749 - `Ext_fenced_code_blocks`
1750 - `Ext_space_in_atx_header`
1751 - `Ext_intraword_underscores`
1752 - `Ext_lists_without_preceding_blankline`
1753 - `Ext_shortcut_reference_links`
1755 These have been removed from `githubMarkdownExtensions`, though
1756 they're still turned on for legacy `markdown_github`.
1757 + Add `Ext_attributes` constructor for `Extension` [API change].
1759 * LaTeX template: use selnolig to selectively suppress ligatures with
1762 * Benchmark bytestring readers (Nikolay Yakimov).
1766 + Update using-the-pandoc-api.md (favonia).
1767 + Fix Typos in lua-filters.md (tajmone).
1768 + Rewrite Raw HTML/TeX section in MANUAL.txt to avoid duplicate
1769 headings for the extensions.
1770 + Fix typo in MANUAL.txt (Benjamin Wuethrich).
1771 + Remove duplicate 'titlepage' in MANUAL.txt (Blake Eryx).
1772 + CONTRIBUTING.md: Advertise the official nightlies in GitHub actions.
1773 Replaces #6500, thanks to @ickc.
1777## pandoc 2.10 (2020-06-29)
1779 * Use pandoc-types 1.21. This adds two things:
1781 + A native Underline constructor for Inline (#6277, Vaibhav Sagar).
1782 + More expressive types for tables (#1024, Christian Despres).
1783 Tables can now take attributes; and rowspans and colspans,
1784 column headers, multiple row headers, table head and foot
1785 can all be represented. (Note, however, that reader and
1786 writer support for these features is still lacking, so
1787 most users won't see any differences in table conversion
1788 yet. These changes just lay the foundation for further
1791 * Support new Underline element in readers and writers (#6277,
1794 * Support new Table type (Christian Despres).
1795 The Builder.simpleTable now only adds a row to the TableHead
1796 when the given header row is not null. This uncovered an
1797 inconsistency in the readers: some would unconditionally
1798 emit a header filled with empty cells, even if the header
1799 was not present. Now every reader has the conditional
1800 behaviour. Only the XWiki writer depended on the header row
1801 being always present; it now pads its head as necessary.
1803 * Add an option to disable certificate validation (#6156, Cédric Couralet,
1804 Cécile Chemin, Juliette Fourcot). This commit adds the option
1805 `--no-check-certificate`, which disables certificate checking when
1806 resources are fetched by HTTP.
1808 * Unify defaults and markdown metadata parsers (#6328, Nikolay
1809 Yakimov). Clean up code in Text.Pandoc.Readers.Metadata and
1810 properly handle errors in `yamlToMeta`. This fixes parsing
1811 of Boolean fields in metadata withinin defaults files and reduces
1816 + Implement `<procedure>` (#6442, Mathieu Boespflug).
1817 + Implement `<phrase>` (#6438, Mathieu Boespflug).
1818 + Treat envar and systemitem like code (#6435, Mathieu Boespflug).
1819 + Implement `<replaceable>` (#6437, Mathieu Boespflug)
1820 + Map `<simplesect>` to unnumbered section (#6436, Mathieu Boespflug).
1824 + Handle "label" element in section title (#6288).
1825 + Parse abstract element into metadata field of same name
1826 (#6480, Albert Krewinkel).
1828 * Jira reader (Albert Krewinkel):
1830 + Resolve multiple parsing problems, including issues with empty
1831 table cells, faulty recognition of closing emphasis characters, and
1832 parsing of image attributes (#6212, #6219, #6220).
1833 + Two consecutive markup chars are now parsed verbatim (#6343);
1834 styled text must not be empty.
1835 + Newlines are no longer allowed within styled text (#6325).
1836 + Links to anchors are now parsed as links (#6407).
1837 + Retain image attributes (#6234). Jira images attributes as in
1838 `!image.jpg|align=right!` are retained as key-value pairs. Thumbnail
1839 images, such as `!example.gif|thumbnail!`, are marked by a
1840 `thumbnail` class in their attributes.
1841 + Use Underline for inserted text (#6237). Previously, the span was
1842 marked with the non-standard class `inserted`.
1843 + Improve icon conversion for `(/)`, `(x)`, `(!)`, `(?)`
1844 `(+)`, `(-)`, `(off)`, `(*)`. (#6236, #6264).
1845 + Support citations, attachment links, and user links (#6231, #6238,
1847 + Resolve parsing issues of blockquote, color (#6233, #6235).
1851 + Parse attributes into table attributes.
1852 + Support `<bdo>` (#5794, Tristan de Cacqueray).
1853 + Add `summary` to list of block-level HTML tags (#6385).
1854 This improves support for summary/details inside Markdown.
1855 NOTE: you need to include a blank line before the closing
1856 `</details>`, if you want the last part of the content to
1857 be parsed as a paragraph.
1858 + Fix parsing unclosed th elements in a table (#6247).
1860 * Commonmark reader: Implement `implicit_figures` extension (#6350).
1864 + Fix inline code in lists (#6284, Nikolay Yakimov).
1865 Previously inline code containing list markers was sometimes
1867 + Don't require blank line after grid table (#6481).
1868 This allows grid tables to be enclosed in fenced divs with no
1869 intervening blank lines.
1873 + Don't parse beyond `\end{document}` (#6380).
1874 This required some internal changes to `\subfile` handling.
1875 + Better handling of `\lettrine`. SmallCaps instead of Span
1876 for the part after the initial capital. Ensure that both
1877 arguments are parsed, so that in Markdown both
1878 are treated as raw LateX. (Closes #6258.)
1880 * Org reader (Albert Krewinkel):
1882 + Recognize images with uppercase extensions (#6472).
1883 + Keep unknown keyword lines as raw org. The lines of unknown
1884 keywords, like `#+SOMEWORD: value` are no longer read as metadata,
1885 but kept as raw `org` blocks. This ensures that more information
1886 is retained when round-tripping org-mode files; additionally,
1887 this change makes it possible to support non-standard org
1888 extensions via filters.
1889 + Unify keyword handling. Handling of export settings and other
1890 keywords (like `#+LINK`) has been combined and unified.
1891 + Support `LATEX_HEADER_EXTRA` and `HTML_HEAD_EXTRA`
1892 settings. These export settings are treated like their non-extra
1893 counterparts, i.e., the values are added to the `header-includes`
1895 + Allow multiple `#+SUBTITLE` export settings. The values of all
1896 lines are read as inlines and collected in the `subtitle`
1898 + Read `#+INSTITUTE` values as text with markup. The value is
1899 stored in the `institute` metadata field and used in the
1900 default beamer presentation template.
1901 + The behavior of the `#+AUTHOR` and `#+KEYWORD` export
1902 settings has changed: Org now allows multiple such lines
1903 and adds a space between the contents of each line. Pandoc
1904 now always parses these settings as meta inlines; setting
1905 values are no longer treated as comma-separated lists.
1906 Note that a Lua filter can be used to restore the previous
1908 + Read description lines as inlines (#6485). `#+DESCRIPTION` lines
1909 are now treated as text with markup. If multiple such
1910 lines are given, then all lines are read and separated by soft
1912 + Honor tex export option (#4070). The `tex` export option can be set
1913 with `#+OPTION: tex:nil` and allows three settings:
1914 `t` (the default) causes LaTeX fragments to be parsed as TeX or added
1915 as raw TeX. `nil` removes all LaTeX fragments from the document.
1916 `verbatim` treats LaTeX as text.
1921 + Pass arbitrary attributes through in code blocks (#6465).
1922 Exceptions: name (which becomes the id), class (which becomes the
1923 classes), and number-lines (which is treated specially to fit
1924 with pandoc highlighting).
1925 + Handle `date::` directive (#6276).
1927 * Textile reader: support `pre.` for code blocks (#6454).
1931 + Implement `raw_markdown` extension (#5408). Specifying
1932 `-f ipynb+raw_markdown` will cause Markdown cells
1933 to be represented as raw Markdown blocks, instead of being
1934 parsed. This is not what you want when going from `ipynb`
1935 to other formats, but it may be useful when going from `ipynb`
1936 to Markdown or to `ipynb`, to avoid semantically insignificant
1937 changes in the contents of the Markdown cells that might
1938 otherwise be introduced.
1939 + Handle application/pdf output as image (#6430).
1940 + Properly handle image/svg+xml as an image (#6430).
1944 + Distinguish between docx parsing and docx container unpacking errors.
1948 + Fix `gfm_auto_identifiers` so that `-` is not replaced by `_` (#6335).
1952 + Add nested syntax highlighting (#6256, Vlad Hanciuta).
1953 Nested syntaxes are specified like this:
1959 The preformatted code block parser has been extended to check if the
1960 first attribute of the block is not a `key=value` pair, and in that
1961 case it will be considered as a class.
1964 * Jira writer (Albert Krewinkel):
1966 + Always escape braces (#6478). Braces are now always escaped, even
1967 within words or when surrounded by whitespace. Jira and
1968 Confluence treat braces specially.
1969 + Convert Underline to inserted text (`+inserted+`).
1970 + Add image attributes (#6234). Image attributes are added
1971 to the output as image parameters. If the image has a
1972 class "thumbnail", then a thumbnail image is generated;
1973 all other attributes are discarded in this case.
1977 + Ensure that `-M csquotes` works even in fragment mode (#6265).
1978 + Escape `^` specially for listings (#6460).
1979 + Create hypertarget for links with identifier (#6360).
1980 + Distinguish between single and double quotes when using enquote
1981 package (#6457, dbecher-ito).
1982 + Add support for customizable alignment of columns in beamer (#6331,
1984 + Add support for customizable alignment of columns in beamer
1985 (#4805, #4150, andrebauer).
1989 + Use CSS in favor of `<br>` for display math (#6372)
1990 Some CSS to ensure that display math is
1991 displayed centered and on a new line is now included
1992 in the default HTML-based templates; this may be
1993 overridden if the user wants a different behavior.
1997 + Clean-up Div handling (Albert Krewinkel).
2001 + Enable column and row bands for tables (#6371).
2002 This change will not have any effect with the default style.
2003 However, it enables users to use a style (via a reference.docx)
2004 that turns on row and/or column bands.
2006 * OpenDocument (and ODT) writer:
2008 + Add custom-style "Abstract" in metadata abstract.
2009 This ensures that the abstract is rendered with style Abstract.
2010 + Enable custom-style attribute on a Div.
2011 This allows you to apply a custom style to contained paragraphs.
2015 + Add id of figure to enclosed image.
2016 + Add personname element to docbook author (#6244).
2020 + Properly handle cover-image containing spaces (#6391).
2024 + Ensure consistent padding for pipe tables (#6240).
2025 + Avoid unnecessary escapes before intraword `_` when
2026 `intraword_underscores` extension is enabled (#6296).
2030 + Properly handle images with same alt text (#6194).
2031 Previously we created duplicate references for these in rendering RST.
2035 + Add blank line after Div (#6308).
2039 + Support Haddock tables (Joe Hermaszewski).
2040 See this PR on Haddock for details on the table format:
2041 <https://github.com/haskell/haddock/pull/718>.
2043 * PowerPoint writer (Jesse Rosenthal):
2045 + Write math input verbatim in speaker notes (#6301).
2046 OMML in speaker notes would lead to corrupt PowerPoint output. We now
2047 output the OMML verbatim as LaTeX in the speaker notes.
2049 * LaTeX template: Make polyglossia package options list-aware
2050 (#6444, Frederik Elwert).
2052 * Reveal.js template:
2054 + Update template for reveal.js 4.0.0 (#6390, Salim B).
2055 + Update template with newly available options (#6347, Jake Zimmerman).
2056 + Use CDN version of revealjs v4 by default (#6408).
2058 * opendocument template: Add abstract and subtitle to opendocument
2061 * reference.odt: clean up styles. Add Abstract.
2062 Change Author, Date to centered paragraphs with no character
2065 * epub.css: wrap overlong lines in highlighted code blocks (#6242).
2066 This fixes a problem in iBooks v2.4 with our earlier
2067 horizontally scrolling code blocks. The problem seems to
2068 be a bug in iBooks, not pandoc, but since iBooks is a major
2069 target we're changing pandoc's default behavior so that
2070 pandoc-produced epubs work on that platform.
2074 + Use `--enable-local-file-access` in invoking `wkhtmltopdf` (#6474).
2075 `wkhtmltopdf` changed in recent versions to require this for
2076 access to local files. This fixes PDF via HTML5 with `--css`.
2077 + Send verbose output to stderr, not stdout (#6483).
2079 * Text.Pandoc.MIME: Fix MIME type for TrueType fonts in EPUBs
2080 (#6464, Michael Reed).
2082 * Text.Pandoc.Shared:
2084 + `makeSections`: omit number attribute when unnumbered class
2085 is present (#6339). Previously the attribute was included but given
2086 an empty value, and this caused the table of contents creation
2087 functions in Text.Pandoc.Writers.Shared to think these items had
2088 numbers, which meant that they were included in the TOC even if the
2089 `unlisted` class was used.
2090 + Deprecate `underlineSpan` in Shared in favor of
2091 `Text.Pandoc.Builder.underline` (Vaibhav Sagar).
2092 + `renderTags'`: use self-closing tag for col element (#6295).
2094 * Text.Pandoc.UUID: Fix `getRandomUUID`, which previously would
2095 return the same value twice in a row. Make `getRandomUUID`
2096 polymorphic in PandocMonad. Remove `getUUID` (#6228, Joseph C. Sible).
2098 * Text.Pandoc.Class: Generalize `PandocIO` functions to `MonadIO`.
2100 * Fixed Katex standalone script (#6399, Lucas Escot).
2101 Global macros are now persistent when using the HTML Writer with the
2104 * Lua subsystem (Albert Krewinkel):
2106 + Use new type PandocLua for all pandoc Lua operations (API change).
2107 The new type `PandocLua` is an instance of the `PandocMonad` typeclass
2108 and can thus be used in a way similar to `PandocIO`.
2109 + Use PandocError for exceptions in Lua subsystem (API change).
2110 The PandocError type is used throughout the Lua subsystem. All Lua
2111 functions throw an exception of this type if an error occurs. The
2112 `LuaException` type is removed and no longer exported from
2113 `Text.Pandoc.Lua`. In its place, a new constructor `PandocLuaError`
2114 is added to PandocError.
2116 * Lua filters: improve error messages for failing filters (#6332,
2117 Albert Krewinkel). Print the Lua error properly instead of
2118 displaying their `show` string.
2120 * Use latest skylighting. This fixes a bug with lua multiline
2121 comments (and may improve handling of other syntaxes as well).
2122 IT also adds `aria-hidden="true"` to the empty a elements, which
2123 helps people who use screen readers.
2125 * Use latest texmath.
2127 * Require latest doctemplates 0.8.2.
2128 This adds support for template pipes `first`, `rest`,
2129 `last`, `allbutlast`.
2131 * Revert 0e48a02 and dependency on base-noprelude, which hasn't
2132 been updated for ghc 8.10 (see #6187).
2134 * Dependency adjustments:
2136 + Allow haddock-library 1.9.x.
2137 + Allow hslua 1.1 (#6243, Felix Yan).
2138 + Allow base64-bytestring 1.1.
2139 + Use latest jira-wiki-markup.
2140 + Allow http-client 0.7.
2141 + Allow tasty 1.3.x.
2142 + Allow aeson 1.5 (#6400, Felix Yan).
2143 + Remove unused dependency `vector` (#6462, Laurent P. René de Cotret).
2144 + Bump QuickCheck upper bound.
2146 * Significant code cleanup and simplification (Joseph C. Sible, #6223,
2147 #6209, #6225, #6229, #6226, #6340).
2149 * Remove unnecessary hlint ignores (#6341, Joseph C. Sible).
2151 * Remove obsolete RelaxedPolyRec extension (#6487, Nikolay Yakimov).
2153 * trypandoc improvements (Mike Tzou):
2155 + Add standalone option to the command text (#6210).
2156 + Update third party libraries.
2160 + Clarify template partial naming (#6476, Mauro Bieg).
2161 + Describe `jira` as "Jira/Confluence wiki markup" (#6351, Albert
2162 Krewinkel). In the past, Jira's wiki markup was also used by -- and
2163 could be imported into -- Atlassian Confluence.
2164 + Add link to print-css.rocks (#6272, Mauro Bieg).
2165 + Clarify pipe table column width adjustment (#6254).
2166 + Fix ATX header syntax.
2167 + Fix misleading note about image size conversions (#6353).
2168 + Update links to reveal.js documentation (#6386, Salim B).
2169 + Separate adjacent verbatim code blocks (#6307, tom-audm).
2173 + Document behavior of `smart` extension (#4387, Albert Krewinkel).
2174 + Describe all supported export options in detail.
2178 + Fix description of BulletList Lua type (Levi Gruspe).
2179 + Use pandoc.system module in TikZ example (Albert
2180 Krewinkel). Showcase temporary directory handling with
2181 `with_temporary_directory` and `with_working_directory`.
2183 * INSTALL.md: fix FreeBSD port link (#6422, Mo).
2184 The FreeBSD port was renamed from pandoc to hs-pandoc in 2010.
2185 The old pandoc port is still at version 1.5.1.1
2187 * Propagate `(DY)LD_LIBRARY_PATH` in tests (#6376, Lila).
2189 * Bump `cabal-version` to 2.2 (#6377).
2191 * Make it possible to compile using Stack on NixOS (#6439, Mathieu
2194 * CI action to check for commit message length (Nikolay Yakimov, #6398).
2197## pandoc 2.9.2.1 (2020-03-23)
2199 * Markdown reader: Fix table alignment when heading begins with t (#6153).
2200 Due to a typo (`t` instead of `\t`) we were center aligning column
2201 headings that begin with a lowercase `t`!
2203 * Text.Pandoc.Readers.Roff:
2205 + Fix parsing of `\.` in man/ms readers (#6175).
2206 Previously due to a typo it was being parsed as `` ` ``.
2207 + Fix parsing of `\'` in man/ms readers (#6175). It was being parsed
2210 * Jira reader (Albert Krewinkel):
2212 + Fix parsing of tables without preceding blankline (#6198).
2213 A bug was fixed which caused faulty parsing if a table was not
2214 preceded by a newline and the first table cell had no space
2215 after the initial `|` characters.
2216 + Fix parsing of strikeout, emphasis (#6196). A bug was fixed which
2217 caused non-emphasized text containing digits and/or non-special
2218 symbols (like dots) to sometimes be parsed incorrectly.
2219 + Support colored inline text, indented lists (#6183, #6184).
2223 + Fix definition lists so indent even when paragraph indent is
2224 set to 0 (as is the default). Also ensure indent for display math
2225 that falls back to TeX.
2226 + Use `.QS/.QE` instead of `.RS/.RE` for block quotes.
2228 * EPUB writer: fix regression on detection of front/back/bodymatter
2229 (#6170). This bug caused sections with epub:type `dedication` to be
2230 misplaced in bodymatter instead of frontmatter as specified
2231 in the manual. The same problem would affect other epub:types.
2232 The pattern matching needed to be changed with the use of
2235 * AsciiDoc writer: remove redundant `otherwise` guard in
2236 `inlineToAsciiDoc` (#6146, Ryan Scott).
2238 * Text.Pandoc.Class:
2240 + Fix missing import when data files are not embedded (Albert Krewinkel).
2241 + Subdivide Text.Pandoc.Class into small unexported modules
2242 and ensure that all functions have Haddock documentation (#6106,
2244 + Finer grained imports of Text.Pandoc.Class submodules (#6203, Albert
2247 * Text.Pandoc.XML: Add to list of HTML5 attributes:
2248 `allow`, `autocapitalize`, `decoding`, `enterkeyhint`,
2249 `imagesizes`, `imagesrcset`, `loading`.
2251 * Use implicit Prelude (#6187, Albert Krewinkel).
2252 The previous behavior was introduced as a fix for #4464. It seems that
2253 this change alone did not fix the issue, and `stack ghci` and `cabal
2254 repl` only work with GHC 8.4.1 or newer, as no custom Prelude is loaded
2255 for these versions. Given this, it seems cleaner to revert to the
2258 * Always use custom prelude (#6187, Albert Krewinkel).
2259 Previously, the custom prelude was used only with older GHC versions, as
2260 a workaround for problems with ghci. The ghci problems are resolved by
2261 replacing package `base` with `base-noprelude`, allowing for consistent
2262 use of the custom prelude across all GHC versions.
2264 * Remove outdated checks for no longer supported base versions
2267 * PDF via wkhtmltopdf: put user-specified options last (#6171).
2268 Certain options (e.g. `cover`) need to come after flags on
2271 * Text.Pandoc.App: set resource path at the beginning so it can affect
2272 things like include-in-header (#5982).
2274 * Change macOS release candidate CI process so that notarized
2275 packages can be produced (#6169).
2277 * Make MANUAL more explicit about nonbreaking space handling by
2278 `all_symbols_escapable` (#6154, Fabien Schurter).
2280 * trypandoc (Mike Tzou):
2282 + Add checkbox for standalone option (#6189).
2283 + Use strict mode for JavaScript code (#6188).
2284 + Fetch resources over https (#6188).
2285 + Remove unnecessary attributes on style, script elements (#6188).
2287 * Use details tag to make GitHub releases changelog collapsible.
2289 * Update filter code in doc/filters.md so it works with latest pandoc
2292 * linux/Dockerfile: upgrade to alpine 3.11 (#6180, Albert Krewinkel).
2293 This is used to build the static linux binaries.
2296## pandoc 2.9.2 (2020-02-15)
2298 * Add `csv` as an input format (#6100). The CSV table is converted into a
2299 pandoc simple table. A new module Text.Pandoc.Readers.CSV
2300 exports `readCSV` [API change].
2302 * Introduce new format variants for JATS writer (#6014, Albert Krewinkel):
2304 - `jats_archiving` for the "Archiving and Interchange Tag Set",
2305 - `jats_publishing` for the "Journal Publishing Tag Set", and
2306 - `jats_articleauthoring` for the "Article Authoring Tag Set."
2308 The `jats` output format is now an alias for `jats_archiving`.
2309 The module Text.Pandoc.Writers.JATS now exports
2310 `writeJatsArchiving`, `writeJatsPublishing`, and
2311 `writeJatsArticleAuthoring`, as well as the legacy
2312 `writeJATS` [API change].
2314 * `--defaults`: Support `bibliography` and `csl` fields.
2315 Move `addMeta` from Text.Pandoc.App.CommandLineOptions to
2316 Text.Pandoc.App.Opt (internal change).
2318 * Add timing info for filters in `--verbose` mode (#6112).
2319 When verbose mode is specified (verbosity == INFO), print a
2320 notice when running a filter and when a filter completes (including
2325 + Allow `&` in LaTeX citation keys (#6110).
2326 + Improve caption and label parsing.
2327 + Don't emit empty Span elements for labels.
2328 + Put tables with labels in a surrounding Div.
2329 + Resolve `\ref` to table numbers (#6137).
2330 + Skip comments in more places where this is needed (#6114).
2331 + Allow beamer overlays for all commands in all raw tex (#6043).
2332 This affects parsing of raw tex in LaTeX and in Markdown and
2334 + Improve parsing of raw environments (#6034). If parsing fails
2335 in a raw environment (e.g. due to special characters like unescaped
2336 `_`), try again as a verbatim environment, which is less sensitive to
2337 special characters. This allows us to capture special environments
2338 that change catcodes as raw tex when `-f latex+raw_tex` is used.
2342 + Add highlight directive (#6140, Lucas Escot).
2346 + Prevent triple `[[[` which confuses MediaWiki (#6119).
2350 + Don't parse `data-id` as `id` attribute. And similarly don't
2351 parse any `data-X` as `X` when `X` is a valid HTML attribute.
2355 + Simplify parsing of sub- and superscripts (#6127, Albert Krewinkel).
2356 Speeds up parsing of single-word, markup-less sub- and superscripts.
2360 + Group biblatex citations even with prefix and suffix (#5849, Ethan
2361 Riley). Previously biblatex citations were only grouped if there
2362 was no prefix. This patch allows them to be grouped in subgroups split
2363 by prefixes and suffixes, which allows better citation sorting.
2364 + Fix regression in handling of columns in beamer slides (#6033).
2365 Columns in title slides were causing problems with
2367 + Fix duplicate frame classes in LaTeX/Beamer output (#6107).
2371 + Fix duplicate attributes on headings (#6062), regression from 2.7.x.
2372 + Fix `--number-offset` with HTML TOC. Eventually it would be worth
2373 adding a parameter to `makeSections` so this could be done at that
2374 level; then it would also affect other writers that construct
2376 + reveal.js: restore old behavior for 2D nesting (#6032).
2377 The fix to #6030 actually changed behavior, so that the
2378 2D nesting occurred at slide level N-1 and N, instead of
2379 at the top-level section. This commit restores the v2.7.3 behavior.
2380 If there are more than 2 levels, the top level is horizontal
2381 and the rest are collapsed to vertical.
2382 + reveal.js: ensure that pauses work even in title slides (#5819).
2386 + Fix regression: spurious dots in markdown_mmd metadata output (#6133).
2390 + Fix regression with Compact style on tight lists (#6072).
2391 Starting in 2.8, the docx writer no longer distinguishes between tight
2392 and loose lists, since the Compact style is omitted. This is a
2393 side-effect of the fix to #5670, as explained in the changelog. This
2394 patch fixes the problem by extending the exception currently offered to
2395 Plain blocks inside tables to Plain blocks inside list items.
2399 + Fix output of table headers (Albert Krewinkel, #6035).
2401 * Add Text.Pandoc.Image with unexported svgToPng.
2403 * Text.Pandoc.XML: Export `html5Attributes`, `html4Attributes`,
2404 `rdfaAttributes` (formerly unexported in Text.Pandoc.Writers.HTML).
2407 * Text.Pandoc.Shared: Export a new function `findM` (#6125,
2410 * Text.Pandoc.Logging: Add `RunningFilter`, `FilterCompleted`
2411 constructors to LogMessage [API change].
2413 * Text.Pandoc.CSV: fix bug in CSV parser; previously an extra blank record
2414 would sometimes be inserted at the end.
2416 * LaTeX template: add space option to xeCJK with PassOptionsToPackage
2417 (#6002). Otherwise we can get a clash with documentclasses that
2418 already load the package.
2422 + Allow filtering of element lists (#6038, Albert Krewinkel). Lists of
2423 Inline and Block elements can now be filtered via `Inlines` and
2424 `Blocks` functions, respectively. This is helpful if a filter
2425 conversion depends on the order of elements rather than a single
2426 element. For example, the following filter can be used to remove all
2427 spaces before a citation:
2429 function isSpaceBeforeCite (spc, cite)
2430 return spc and spc.t == 'Space'
2431 and cite and cite.t == 'Cite'
2434 function Inlines (inlines)
2435 for i = #inlines-1,1,-1 do
2436 if isSpaceBeforeCite(inlines[i], inlines[i+1]) then
2443 + Add methods `insert`, `remove`, and `sort` to pandoc.List
2444 (Albert Krewinkel). Example of use:
2446 local numbers = pandoc.List {2, 3, 1}
2447 numbers:sort() -- numbers is now {1, 2, 3}
2448 + Make `pandoc.List` a callable constructor (Albert Krewinkel).
2449 It is now possible to construct a new List via
2450 `pandoc.List()` instead of `pandoc.List:new()`.
2451 + Add tests for pandoc.List module (Albert Krewinkel).
2453 * Text.Pandoc.App.CommandLineOptions: Change `setVariable` to use `Text`
2454 instead of `String`. This avoids some unnecessary unpacking.
2456 * Use versioned directory for windows release zipfile.
2457 Also remove old `make-windows-installer.bat`, superseded by GitHub
2458 actions workflow, and modify `pandoc.wxs` for new paths.
2460 * Extensive code cleanup (#6141, #6128, #6129, #6130, #6123,
2461 #6105, 6102, #6117, #6124, #6115, #6116, #6111, Joseph C. Sible).
2463 * Fix hlint warnings (Albert Krewinkel).
2465 * Use latest doclayout, doctemplates (#6031). The new version of
2466 doclayout fixes a memory leak that affected `--include-in-header` with
2467 large files (and possibly other cases involving extremely long lines).
2469 * Use latest texmath.
2471 * Use latest skylighting and fix test suite (#6086).
2473 * sample.lua: Fix typo in descriptive comments (#6136, Caleb Maclennan).
2474 Fix typo in error message (#6135).
2476 * Add Docker and GH Actions instructions/links to INSTALL.md.
2478 * Update filter documentation (#6065). Improve cabal v2 instructions.
2479 Remove example using pandoc API directly (we have other
2480 docs for that and it was outdated).
2484 + Cross-link constructors and types (Albert Krewinkel).
2485 Thanks to @bpj for the idea.
2486 + Sort pandoc.List methods alphabetically (Albert Krewinkel).
2487 + Unify, fix anchors and internal links (#6061, Albert Krewinkel).
2488 Links and anchors now follow consistent conventions, like
2489 lowercase-only anchor names. This breaks some links to specific
2490 sections in the document, but will make it much easier to link
2491 documentation in the future.
2492 + Clarify filter function execution order (#6059, Albert Krewinkel).
2494 * In docs, update URLs and use `https:` wherever possible (#6090,
2497## pandoc 2.9.1.1 (2020-01-05)
2501 + Fix parsing bug affected indented code after raw HTML (#6009, #5360).
2505 + Fix regression in beamer slide structure with certain slide levels
2507 + Allow framebreaks for beamer's TOC (Heiko Schlittermann, #6012)
2508 + Properly handle unnumbered headings level 4+ (#6018).
2509 Previously the `\paragraph` command was used instead of
2510 `\paragraph*` for unnumbered level 4 headings.
2514 + Fix revealjs slide structure regression with certain slide levels
2516 + Add newlines to make slide show output more readable.
2520 + Remove extra spaces from table cells (Albert Krewinkel, #6024).
2522 * JATS template: Update JATS dtd (Arfon Smith, #6020). Use the archiving
2523 and interchange DTD rather than the more restrictive journal publishing
2524 DTD (which doesn't permit ext-link as a valid child).
2526 * Text.Pandoc.PDF: Fix `runTeXProgram` so that the input source is always
2527 overwritten (#6027). Previously it wasn't overridden if the file already
2528 existed, which led to bad results on subsequent runs when
2529 `pdf-engine-opt=-output-directory=` was used to specify an explicit temp
2532 * Text.Pandoc.BCP47: Change `getLang` to handle block-level contents
2533 (#6008). Some readers (e.g. RST) will populate the `lang` metadata field
2534 with block-level content. `getLang` has been modified to handle this.
2535 Previously in these cases the LaTeX writer would not properly set the
2536 "main language" of the document.
2538 * Fix `test/tables.org` (Albert Krewinkel).
2540 * Use HTTPS in copyright message (Felix Yan, #6010)
2543## pandoc 2.9.1 (2019-12-23)
2545 * Add Jira reader (Albert Krewinkel, #5556).
2547 * Jira writer: use jira-wiki-markup renderer (Albert Krewinkel,
2548 #5926). The following improvements are included in this change:
2550 + non-jira raw blocks are fully discarded instead of showing
2552 + table cells can contain multiple blocks;
2553 + unnecessary blank lines are removed from the output;
2554 + markup chars within words are properly surrounded by
2556 + preserving soft linebreaks via `--wrap=preserve` is
2559 Note that backslashes are rendered as HTML entities, as there
2560 appears no alternative to produce a plain backslash if it is
2561 followed by markup. This may cause problems when used with
2562 confluence, where rendering seems to fail in this case.
2564 * Fix regression with `--number-sections`. Starting with 2.8,
2565 `--number-sections` also had the effect of `--section-divs`,
2566 even if `--section-divs` was not specified.
2568 * Improved table of contents generation in markdown, RTF,
2569 commonmark, better handling cases where section headings are
2572 * Ensure that later default file values for `variable` replace
2573 earlier ones (5988).
2575 * HTML reader: Add `nav` to list of block-level tags.
2577 * Org reader (Albert Krewinkel):
2579 + Wrap named table in Div, using name as id (#5984).
2580 Tables which are given a name via `#+NAME:` or `#+LABEL:`
2581 are wrapped in an additional Div, with the name set as the
2583 + Report parsing errors properly.
2584 + Fix parsing problem for colons in headline (#5993).
2586 * Text.Pandoc.PDF: Ensure UTF8 when printing source in
2587 `--verbose` mode, avoiding an error on platforms that
2588 default to something other than UTF-8 (#5997).
2590 * Text.Pandoc.Templates: Strip directory before trying to find
2591 partial in data files (#5987).
2593 * Text.Pandoc.Shared: Improve `makeSections` so we don't get
2594 doubled "number" attributes in EPUB output (or anywhere
2597 * Added tests for `--toc` and `--section-divs`.
2599 * Text.Pandoc.MIME: Added glsl MIME type for WebGL maps (#6000,
2602 * MANUAL: A bit clearer explanation for `--base-header-level`.
2603 We now say exactly how to translate between the deprecated
2604 `--base-header-level` and `--shift-heading-level-by`.
2608 + Remove spurious dot in title (#5996, Mauro Bieg).
2609 + Replace metadata example with image centering (#6004,
2610 Albert Krewinkel). Thanks to @efx for proposing this filter.
2613## pandoc 2.9 (2019-12-11)
2615 * Text.Pandoc.Templates [API change]
2617 + Add Monad wrappers `WithDefaultPartials` and `WithPartials`.
2618 Wrapping these around an instance of `PandocMonad` gives
2619 us different instances of `TemplateMonad`, with different
2620 search behavior in retrieving partials.
2621 To compile a template and limit partial search to pandoc's
2622 data files, use `runWithDefaultPartials (compileTemplate ...)`.
2623 To compile a template and allow partials to be found locally
2624 (either on the file system or via HTTP, in the event that
2625 the main template has an absolute URL), ue
2626 `runWithPartials (compileTemplate ...)`.
2627 + Export `getTemplate`, which seeks a template locally,
2628 or via HTTP if the template has an absolute URL, falling
2629 back to the data files if not found.
2630 + Export `compileDefaultTemplate` -- does `getDefaultTemplate`
2631 and compiles the result, raising an error on failure.
2633 * Text.Pandoc.Class [API change]
2635 + Remove `TemplateMonad` instances for `PandocIO` and `PandocPure`.
2636 These were too limiting and caused a bug whereby a local
2637 partial could be used even when the default template was requested.
2638 We now rely on instances provided in the Templates module.
2640 * Text.Pandoc.App.OutputSettings: Simplify template retrieval code.
2642 * ConTeXt template: Adjust to title formatting (#5949, Denis Maier).
2643 Add `\setupinterlinespace` to `title`, `subtitle`, `date` and `author`
2644 elements: otherwise longer titles that run over multiple lines will look
2645 squashed as `\tfd` etc. won't adapt the line spacing to the font size.
2647 * reveal.js template: Add title-slide-attributes variable (#5981,
2650 * More informative JSON parse error (#5973).
2652 * Use external emojis package (forked from pandoc). Removed emoji data
2653 in Text.Pandoc.Emoji.
2655 * Fix regression in `makeSections` (#5965).
2656 Previously `hierarchicalize` (the ancestor of `makeSections`) would put
2657 header attributes on the containing Div. In 2.8 this behavior changed,
2658 which broke some tools depending on pandoc. Here we roll back this change,
2659 so that attributes again migrate from the header to the containing Div when
2660 `makeSections` is run. Note that attributes are retained on the header as
2661 well (unlike before) -- with the exception of the `id` attribute, which of
2662 course cannot be duplicated.
2664 * Fix `--toc-depth` regression in 2.8 (#5967).
2666 * Use doctemplates 0.8. Rename template 'filters' as 'pipes'
2667 to avoid confusion with the other notion of filter used by pandoc.
2669 * Fix README.md so that relative links from manual become absolute.
2670 Previously they'd be broken links when viewed on GitHub or Hackage.
2671 So we add the base URL for the pandoc manual.
2673 * Document display math syntax in manual.
2675## pandoc 2.8.1 (2019-12-05)
2677 * Add `ascii_identifiers` as a supported extension for `markdown`.
2678 This fixes a regression in 2.8.
2680 * Fix regression with behavior of `--variable` (#5962).
2681 Previously `-Vfoo=1 -Vfoo=2` would produce a list value for foo;
2682 with 2.8 it produced just `2`. This commit restores the earlier
2685 * Roll back part of of `--shift-heading-level-by` change (#5957).
2686 With positive heading shifts, starting in 2.8 this option
2687 caused metadata titles to be removed and changed to regular
2688 headings. This behavior is incompatible with the old
2689 behavior of `--base-header-level` and breaks old workflows,
2690 so we have rolled back the change. Note that there is now an
2691 asymmetry in positive and negative heading level shifts:
2692 With positive shifts, the metadata title stays the same and
2693 does not get changed to a heading in the body, while with
2694 negative shifts, a heading can be converted into the
2697 * Text.Pandoc.Shared: Fix `makeSections` so it doesn't turn
2698 column Divs into sections.
2700 * HTML writer: add task-list class to ul if all elements are
2701 task list items. This will allow styling unordered task
2702 lists in a way that omits the bullet.
2704 * HTML-based templates: Add CSS to suppress bullet on unordered task lists.
2706 * ConTeXt template: Fix `\startcslreferences` and use ConTeXt syntax
2707 conventions (#5945, Denis Maier). The old version had a too large
2708 a skip at the beginning of the reference list.
2710 * LaTeX template: keep the `\author{}` command even if author is not
2711 specified (#5961, Yihui Xie). Avoids a LaTeX warning.
2713 * Generate Emoji module with TH.
2715 + Add Text.Pandoc.Emoji.TH.
2716 + Replace long literal list in Text.Pandoc.Emoji with one-liner
2717 generating it from `emoji.json` using TH.
2718 + Add Makefile target to download `emoji.json`.
2719 + Remove `tools/emoji.hs`.
2721 * Increase GC allocation space for compilation in cabal.project.
2723 * Clean up manual on PDF generation backend options (#5940).
2725 * Update release checklist to include code signing step and update
2726 Windows release-candidate builds (#5950).
2729## pandoc 2.8.0.1 (2019-11-26)
2731 * List `pdf` in `--list-output-formats`.
2732 * EPUB writer: Fix regression with `--css` (#5937). In 2.8 `--css`
2733 would not have an effect on EPUB output.
2734 * RST writer: Use grid tables for one-column tables, since
2735 simple tables clash with heading syntax in this case (#5936).
2736 * Add unexported module Text.Pandoc.Readers.Metadata (see #5914).
2737 * Use doctemplates 0.7.2, which adds the `nowrap` filter to
2739 * Update default man template using `nowrap` for .TH heading (#5929).
2740 * HTML templates: Add support for `toc-title` variable (#5930,
2742 * Remove `grffile` (LaTeX package) requirement in MANUAL.txt
2743 (#5927, Ian Max Andolina).
2744 * Use skylighting 0.8.3.
2746## pandoc 2.8 (2019-11-22)
2748 * Improvements in templates system (from doctemplates):
2750 + Pandoc templates now support a number of new features that
2751 have been added in doctemplates: notably, `elseif`, `it`,
2752 partials, filters, and syntax to control nesting and reflowing of
2753 text. These changes make pandoc more suitable out of the
2754 box for generating plain-text documents from data in YAML
2755 metadata. It can create enumerated lists and even tabular
2757 + We now used templates parameterized on doclayout Doc types.
2758 The main impact of this change is better reflowing of
2759 content interpolated into templates. Previously,
2760 interpolated variables were rendered independently and
2761 interpolated as strings, which could lead to overly long
2762 lines. Now the templates interpolated as Doc values which
2763 may include breaking spaces, and reflowing occurs after
2764 template interpolation rather than before.
2765 + Remove code from the LaTeX, Docbook, and JATS writers that
2766 looked in the template for strings to determine whether it
2767 is a book or an article, or whether csquotes is used. This
2768 was always kludgy and unreliable.
2769 + Change template code to use new API for doctemplates.
2771 * Add `--defaults`/`-d` option. This adds the ability to specify
2772 a collection of default values for options in a YAML file. For
2773 example, one might define a set of defaults for letters,
2774 and then do `pandoc -d letter myletter.md -o myletter.pdf`.
2775 See the documentation of this feature in MANUAL.txt.
2777 * Raise error on unsupported extensions (#4338).
2779 * The `--list-extensions[=FORMAT]` option now lists only
2780 extensions that affect the given FORMAT.
2782 * Add `-L` option as shortcut for `--lua-filter`.
2784 * Add `--shift-heading-level-by` option and deprecate
2785 `--base-heading-level` (#5615). The new option does
2786 everything the old one does, but also allows negative shifts.
2787 It also promotes the document metadata (if not null) to a
2788 level-1 heading with a +1 shift, and demotes an initial
2789 level-1 heading to document metadata with a -1 shift. This
2790 supports converting documents that use an initial level-1
2791 heading for the document title.
2793 * Allow `--metadata-file` to be used repeatedly to include
2794 multiple metadata files (Owen McGrath, #5702). Values in
2795 files specified first will be overridden by those in later
2798 * `--ascii` now uses numerical hex character references (#5718).
2800 * Allow PDF output to stdout (#5751). PDF output now behaves like other
2801 binary formats: it will not be output to the terminal, but can be
2802 sent to stdout using either `-o -` or a pipe. The intermediate format
2803 will be determined based on the setting of `--pdf-engine`.
2805 * Make some writers sensitive to 'unlisted' class on headings (#1762).
2806 If this is present on a heading with the 'unnumbered' class,
2807 the heading won't appear in the TOC. This class has no
2808 effect if 'unnumbered' is not also specified. This affects HTML-based
2809 writers (including slide shows and EPUB), LateX (including beamer), RTF,
2810 and PowerPoint. Other writers do not yet support `unlisted`.
2812 * Fix `gfm_auto_identifiers` behavior with emojis (#5813). Note that
2813 we also now use emoji names for emojis when `ascii_identifiers`
2816 * When `--ipynb-output` is used with the default "best" format, strip
2817 ANSI escape codes for non-ipynb output (#5633). These cause problems
2818 in many formats, including LaTeX.
2820 * Don't look for template files remotely for remote input (#5579).
2821 Previously pandoc would look for the template at a remote URL when a
2822 URL was used for the input file, instead of taking it from the
2825 * Allow combining `-Vheader-includes` and `--include-in-header` (#5904).
2826 Previously `header-includes` set as a variable would be
2827 clobbered by material included using `--include-in-header`.
2829 * Change merge behavior for metadata. Previously, if a document
2830 contained two YAML metadata blocks that set the same field, the
2831 conflict would be resolved in favor of the first. Now it is resolved
2832 in favor of the second (due to a change in pandoc-types).
2833 This makes the behavior more uniform with other things in pandoc
2834 (such as reference links and `--metadata-file`).
2836 * Don't add a newline to fragment output if there's already one.
2838 * Change exit codes and document in MANUAL.txt:
2840 + `PandocAppError` was 1, is now 4
2841 + `PandocOptionError` was 2, is now 6
2842 + `PandocMakePDFError` was 65, is now 66
2844 * Switch to new pandoc-types and use Text instead of String [API change].
2845 (Christian Despres, #5884).
2849 + Better handling of `<q>` with cite attribute (#5798, Ole Martin Ruud).
2850 If a `<q>` tag has a `cite` attribute, we interpret it as a Quoted
2851 element with an inner Span.
2852 + Add support for HTML `<samp>` element (#5792, Amogh Rathore).
2853 The `<samp>` element is parsed as Code with class `sample`.
2854 + Add support for HTML `<var>` element (#5799, Amogh Rathore).
2855 The `<var>` element is parsed as Code with class `variable`.
2856 + Add support for `<mark>` elements (Florian B, #5797). Parse
2857 `<mark>` elements from HTML as Spans with class `mark`.
2858 + Add support for `<kbd>` elements, parsing them as Span with class
2859 `kbd` (Daniele D'Orazio, #5796).
2860 + Add support for `<dfn>`, parsing this as a Span with class `dfn`
2861 (#5882, Florian Beeres).
2865 + Headers: don't parse content over newline boundary (#5714).
2866 + Handle inline code more eagerly within lists (Brian Leung, #5627).
2867 + Removed some needless lookaheads.
2868 + Don't parse footnote body unless extension enabled.
2869 + Fix small super/subscript issue (#5878). Superscripts and subscripts
2870 cannot contain spaces, but newlines were previously allowed
2871 (unintentionally). This led to bad interactions in some cases
2872 with footnotes. With this change newlines are also not allowed inside
2874 + Use `take1WhileP` for `str`, table row. This yields a small but
2875 measurable performance improvement.
2880 + Fix parsing of optional arguments that contain braced text (#5740).
2881 + Don't try to parse includes if `raw_tex` is set (#5673).
2882 When the `raw_tex` extension is set, we just carry through
2883 `\usepackage`, `\input`, etc. verbatim as raw LaTeX.
2884 + Properly handle optional arguments for macros (#5682).
2885 + Fix `\\` in `\parbox` inside a table cell (#5711).
2886 + Improve `withRaw` so it can handle cases where the token string is
2887 modified by a parser (e.g. accent when it only takes part of a Word
2888 token) (#5686). This fixes a bug that caused the ends of
2889 certain documents to be dropped.
2890 + Handle `\passthrough` macro used by latex writer (#5659).
2891 + Support tex `\tt` command (#5654).
2892 + Search for image with list of extensions like latex does, if an
2893 extension is not provided (#4933).
2894 + Handle `\looseness` command values better (#4439).
2895 + Add `mbox` and `hbox` handling (Vasily Alferov, #5586).
2896 When `+raw_tex` is enabled, these are passed through literally.
2897 Otherwise, they are handled in a way that emulates LaTeX's behavior.
2898 + Properly handle `\providecommand` and `\provideenvironment` (#5635).
2899 They are now ignored if the corresponding command or environment
2901 + Support epigraph command in LaTeX Reader (oquechy, #3523).
2902 + Ensure that expanded macros in raw LaTeX end with a space
2903 if the original did (#4442).
2904 + Treat `ly` environment from lilypond as verbatim (Urs Liska, #5671).
2905 + Add `tikzcd` to list of special environments (Eigil Rischel).
2906 This allows it to be processed by filters, in the same way that
2907 one can do for `tikzpicture`.
2911 + Better support for `while`.
2912 + More improvements in parsing conditionals.
2913 + Fix problem parsing comments before macro.
2914 + Improve handling of groups.
2915 + Better parsing of groups (#5410). We now allow groups
2916 where the closing `\\}` isn't at the beginning of a line.
2920 + Keep `name` property in `imgAttr` (Brian Leung, #5619).
2921 + Fixed parsing of indented blocks (#5753). We were requiring
2922 consistent indentation, but this isn't required by RST.
2923 + Use title, not admonition-title, for admonition title.
2924 This puts RST reader into alignment with docbook reader.
2925 + Don't strip final underscore from absolute URI (#5763).
2926 + Avoid spurious warning when resolving links to internal anchors
2927 ending with `_` (#5763).
2931 + Accept `ATTR_LATEX` in block attributes (Albert Krewinkel, #5648).
2932 Attributes for LaTeX output are accepted as valid block attributes;
2933 however, their values are ignored.
2934 + Modify handling of example blocks (Brian Leung, #5717).
2935 + Allow the `-i` switch to ignore leading spaces (Brian Leung).
2936 + Handle awkwardly-aligned code blocks within lists (Brian Leung).
2937 Code blocks in Org lists must have their `#+BEGIN_` aligned in a
2938 reasonable way, but their other components can be
2939 positioned otherwise.
2940 + Fix parsing of empty comment lines (#5856, Albert Krewinkel).
2941 Comment lines in Org-mode can be completely empty.
2943 * Muse reader (Alexander Krotov):
2945 + Add RTL support (#5551).
2946 + Do not allow closing asterisks to be followed by `*`.
2947 + Do not split series of asterisks into symbols and emphasis (#5821).
2948 + Do not terminate emphasis on `*` not followed by space.
2952 + Parse markup inside monospace ('') (#5916, Alexander Krotov).
2956 + Move style-parsing-specific code to a new unexported module,
2957 Text.Pandoc.Readers.Docx.Parse.Styles (Nikolay Yakimov).
2958 + Move StyleMap to docx writer (Nikolay Yakimov).
2959 + Only use LTR when it is overriding BiDi setting (#5723, Jesse
2960 Rosenthal). The left-to-right direction setting in docx is used
2961 in the spec only for overriding an explicit right-to-left setting.
2962 We only process it when it happens in a paragraph set with BiDi.
2963 This is especially important for docs exported from Google Docs,
2964 which explicitly (and unnecessarily) set `rtl=0` for every paragraph.
2965 + Fix list number resumption for sublists (#4324).
2966 The first list item of a sublist should not resume numbering
2967 from the number of the last sublist item of the same level,
2968 if that sublist was a sublist of a different list item.
2972 + Richer parse for admonitions (Michael Peyton Jones, #1234).
2973 Instead of parsing admonitions as blockquotes, we now parse
2974 them as Divs with an appropriate class. We also handle titles
2975 for admonitions as a nested Div with the "title" class.
2976 + Fix nesting of chapters and sections (#5864, Florian Klink,
2977 Félix Baylac-Jacqué).
2978 + Fix bug with entities in mathphrase element (#5885).
2982 + Skip optional `{{table}}` template (#5757).
2986 + Fix dollar-math parsing to ensure that space is left between a
2987 control sequence and a following letter (#5836).
2988 + In `untokenize`, ensure space between control sequence
2989 and following letter (#5836).
2990 + Don't omit macro definitions defined in the preamble.
2991 These were formerly omitted (though they still affected macro
2992 resolution if `latex_macros` was set). Now they are included in
2994 + Parse macro definitions as raw LaTeX when `latex_macros` is
2995 disabled. (When `latex_macros` is enabled, we omit them, since
2996 pandoc is applying the macros itself.)
2997 + Fix a hang/memory leak in certain circumstances (#5845).
2998 + Text.Pandoc.Readers.LaTeX.Parsing: add `[Tok]` parameter to
2999 `rawLaTeXParser`. This allows us to repeat retokenizing
3000 unnecessarily in e.g. `rawLaTeXBlock`.
3001 + Add KOMA-Script metadata commands (#5910, Andrew Dunning).
3002 Add all titling commands to existing definition for `\dedication`.
3003 + Parse `\micro` siunitx unit command (#5921, Jose Luis Duran).
3007 + Ensure proper nesting when we have long ordered list markers (#5705).
3008 + Make `plain` output plainer (#5741). Previously we used the following
3009 Project Gutenberg conventions for plain output: extra space before and
3010 after level 1 and 2 headings, all-caps for strong emphasis,
3011 underscores surrounding regular emphasis. Now these
3012 conventions are used only when the `gutenberg` extension is
3013 enabled. By default, Strong and Emph are rendered without
3014 special formatting, and headings are rendered without
3015 special formatting, and with only one blank line following.
3016 To restore the former behavior, use `-t plain+gutenberg`.
3017 + Prefer using raw_attribute when enabled (#4311).
3018 The `raw_attribute` will be used to mark raw bits, even HTML
3019 and LaTeX, and even when `raw_html` and `raw_tex` are
3020 enabled, as they are by default. To get the old behavior,
3021 disable `raw_attribute` in the writer.
3022 + Prefer `pipe_tables` to raw HTML even when we must
3023 lose width information (#2608, #4497).
3024 + Improve escaping in list items (#5918).
3028 + Don't include `+` in code blocks for regular asciidoc.
3029 This is asciidoctor-specific.
3030 + Handle admonitions (#5690).
3034 + Add thin space when needed in LaTeX quote ligatures (#5684).
3035 + Use `\hspace{0pt}` for 0-width space U+200B (#5756).
3036 + Use `cslreferences` environment for csl bibliographies.
3037 This allows bibliographies to receive special formatting.
3038 The template now contains definition of this environment (enabled
3039 only when CSL is used). It also defines a `\cslhangindent` length.
3040 This is set to 2em by default when the bibliography style specifies
3041 a hanging indent. To override the length, you can use e.g.
3042 `\setlength{\cslhangindent}{7em}` in header-includes.
3043 See jgm/pandoc-citeproc#410.
3044 + Strip off `{}` around locator for biblatex/natbib output (#5722).
3045 + Fix line breaks at start of paragraph (#3324).
3046 Previously we just omitted these. Now we render them
3047 using `\hfill\break` instead of `\\`. This is a revision
3048 of a PR by @sabine (#5591) who should be credited with the idea.
3049 + We no longer look in the template or header-includes to see if a
3050 book or article documentclass is used, or to see whether the
3051 `csquotes` package is used. To use `csquotes` for LaTeX, set
3052 `csquotes` in your variables or metadata. To specify a book
3053 style, use the `documentclass` variable or
3054 `--top-level-division`.
3055 + Fix horizontal rule (#5801). We change to use 0.5pt rather than
3056 `\linethickness`, which apparently only ever worked "by accident"
3057 and no longer works with recent updates to texlive.
3061 + Add option to include source files in ConTeXt PDFs (Tristan
3062 Stenner, #5578). The metadata field or variable
3063 (`includesource`) can be set to attach the source documents
3064 to the resulting PDF.
3065 + Customizable type of PDF/A for the ConTeXt writer (Karl
3066 Pettersson, #5608). The `pdfa` variable may now be set in metadata.
3067 Also updated color profile settings in accordance with ConTeXt wiki,
3068 and made ICC profile and output intent for PDF/A customizable
3069 using `pdfaiccprofile` and `pdfaintent`.
3070 + Unit tests: adjust code property to avoid an irrelevant
3071 failure involving inline code with two consecutive newlines.
3072 + Set `csl-hanging-indent` variable if needed.
3073 + Use special environment for CSL references.
3074 + Use braces, not start/stop, for inline language tags.
3075 This prevents unwanted gobbling of spaces.
3079 + Use numeric character references with `--ascii` (#5718).
3080 Previously we used named character references with html5 output.
3081 But these aren't valid XML, and we aim to produce html5 that is
3082 also valid XHTML (polyglot markup). (This is also needed for epub3.)
3083 + Ensure that line numbers in code blocks get id-prefix (#5650).
3084 + Ensure TeX formulas are rendered correctly (Philip Pesca,
3085 #5658). The web service passed in to `--webtex` may render
3086 formulas using inline or display style by default.
3087 Prefixing formulas with the appropriate command ensures
3088 they are rendered correctly.
3089 + Render inline formulas correctly with `--webtex` (Philip
3090 Pesca, #5655). We add `\textstyle` to the beginning of the
3091 formula to ensure it will be rendered in inline style.
3092 + Pass through `aria-` attributes to HTML5 (#5642).
3093 + Render a Quoted element with an inner Span with
3094 `cite` attribute using a `<q>` tag (#5798, Ole Martin Ruud).
3095 + Render a Span with class `mark` using the `<mark>` element
3096 (Florian Beeres, #5797).
3097 + Render Span with class `dfn` using `<dfn>` element
3098 (Florian Beeres, #5882).
3099 + Render Span with class `kbd` using `<kbd>` element (Daniele
3101 + Render Code with class `variable` using `<var>` element
3102 (Amogh Rathore, #5799).
3103 + Render Code with class `sample` using `<samp>` element
3104 (Amogh Rathore, #5799).
3108 + Improve splitting into chapters (#5761), using `makeSection`.
3109 + Avoid issuing warning multiple times when title not set (see #5760).
3110 + Use svg tag wrapper for cover image (#5638). In addition, the
3111 code generating the image has been moved to the template, to make it
3112 more customizable. NOTE: Those who use custom EPUB
3113 templates will need to adjust their templates, adding the
3114 code to generate the cover image. (Previously this was just
3115 inserted into 'body'.)
3116 + Improve toChapters, making it work better if there are Divs
3118 + Add support for EPUB2 covers (blmage, #3992).
3119 + Do not override existing "fileN" medias when writing to EPUB format
3121 + Ensure that `lang` variable is set on all chapters (so that it
3122 will add an `xml:lang` attribute on the `html` element).
3126 + Removed remnants of `admonition-title`.
3127 + Fix handling of `:align:` on figures and images (#4420).
3128 When the image has the `align-right` (etc.) class, we now use
3129 an `:align:` attribute.
3130 + Improve spacing for tables with no width information (#5899).
3131 If a simple table would be too wide, we use a grid table.
3132 + Fix backslash escaping after strings (Albert Krewinkel, #5906).
3133 The check whether a complex inline element following a string must
3134 be escaped, now depends on the last character of the string instead
3136 + Ensure there's a blank line before tables (#5898).
3140 + Handle mixed lists without HTML fallback (#5107).
3144 + Fix multiline table (Zihang Chen, #5683).
3148 + Add RTL support (Alexander Krotov, #5551).
3152 + Suppress non-absolute link URLs (#5770). Absolute URLs are
3153 still printed in parentheses following the link text, but relative
3154 URLs are suppressed (just as internal links starting with '#'
3156 + Improved definition list term output. Now we boldface code but
3157 not other things. This matches the most common style in man pages
3158 (particularly option lists).
3162 + Use `.LP` instead of `.PP` for line block (#5588).
3163 + Use boldface for definition terms in DefinitionLists.
3167 + Do not emit empty `<fn-group>` (Mauro Bieg, #5595).
3168 + Update template to v1.1dtd (#5632, Arfon Smith).
3169 + Update `data/jats.csl` to avoid commas between editor
3170 name-part elements. (#5629)
3171 + Add `abstract` to template (Mauro Bieg).
3175 + Don't strip hash from internal links (#5922).
3179 + Remove escapeStringForJira for code blocks (Jan-Otto Kröpke).
3180 + Remove extraneous newline after single-line block quotes
3181 (#5858, Albert Krewinkel).
3182 + Improve escaping of special characters, using backslash escapes
3183 instead of HTML entities (#5858, Albert Krewinkel).
3185 * OpenDocument writer:
3187 + Avoid duplicate attributes (#4634). We use the innermost
3188 attribute in nested cases.
3189 + If `native_numbering` extension is set, use native OpenDocument
3190 enumeration for figures and tables (Nils Carlson).
3191 + Place caption before table (#5681, Dmitry Pogodin).
3195 + Add a test for MathML formulas in ODT documents (blmage).
3196 + Improve the parsing of frames in ODT documents (blmage).
3200 + Make handling of styles more robust in localized versions
3201 of Word (Nikolay Yakimov, #5523, #5052, #5074). We now use
3202 style names, not ids, for assigning semantic meaning, since
3203 the ids can change depending on the locale. Style name
3204 comparisons are case-insensitive, since those are
3205 case-insensitive in Word. Since docx style names can have
3206 spaces in them, and pandoc-markdown classes can't, anywhere
3207 when style name is used as a class name, spaces are
3208 replaced with ASCII dashes `-`. Code styles, i.e. "Source
3209 Code" and "Verbatim Char" now honor style inheritance. Docx
3210 Reader now honours "Compact" style (used in
3211 Pandoc-generated docx). The side-effect is that "Compact"
3212 style no longer shows up in docx+styles output. Styles
3213 inherited from "Compact" will still show up.
3214 + Re-use Readers.Docx.Parse for StyleMap (#5766, Nikolay Yakimov).
3215 + Internal improvements and code simplification (Nikolay Yakimov).
3216 + Preserve built-in styles in DOCX with custom style (Ben Steinberg,
3217 #5670). This change prevents custom styles on divs and spans
3218 from overriding styles on certain elements inside them, like
3219 headings, blockquotes, and links. On those elements, the
3220 "native" style is required for the element to display correctly.
3221 This change also allows nesting of custom styles; in order to do so,
3222 it removes the default "Compact" style applied to Plain blocks,
3223 except when inside a table.
3224 + Add `proofState` to list of elements carried over from
3225 settings.xml in the reference.docx (Krystof Beuermann, #5703).
3226 + Change order of `ilvl` and `numId` in `document.xml` (Agustín
3227 Martín Barbero, #5645). Also, make list para properties go first.
3228 This reordering of properties shouldn't be necessary but
3229 it seems Word Online does not understand the docx correctly otherwise.
3231 * PowerPoint writer:
3233 + Code formatting is now context dependent (Jeroen de Haas, #5573).
3234 This commit alters the way in which the Powerpoint writer treats
3235 inline code and code blocks. Inline code is now formatted at
3236 the same size as the surrounding text. Code blocks are now given
3237 a margin and font size according to their level.
3238 Furthermore this commit allows changing the font with which code is
3239 formatted via the `monofont` option.
3240 + Start numbering at appropriate numbers (Jesse Rosenthal, #5709).
3241 Starting numbers for ordered lists were previously ignored. Now
3242 we specify the number if it is something other than 1.
3244 * Text.Pandoc.Parsing:
3246 + Add `manyChar`, `many1Char`, `manyTillChar`, `many1TillChar`,
3247 `many1Till`, `manyUntil`, `mantyUntilChar`: these are like their
3248 unsuffixed counterparts but pack some or all of their output
3249 (Christian Despres, #5884).
3250 + Add `stateAllowLineBreaks` to `ParserState` [API change].
3251 + Fix inline parsing in grid table cells (#5708).
3252 + Change type of `setLastStrPos` so it takes a `Maybe SourcePos`
3253 rather than a `SourcePos` [API change].
3254 + Make `parseFromString'` and `gridTableWith` and
3255 `gridTableWith'` polymorphic in the parser state,
3256 constraining it with `HasLastStrPosition` [API change].
3257 + `parseFromString'`: reset `stateLastStrPos` to `Nothing` before parse.
3258 + Rename takeWhileP -> take1WhileP and clean it up.
3259 (It doesn't match the empty sequence.)
3263 + For PDFs via HTML, ensure temp file is deleted even if the pdf
3264 program is not found (#5720).
3265 + Better detection of a Cygwin environment (#5451).
3266 + Don't assume tex log file is UTF8-encoded (#5872).
3267 Fall back to latin1 if it can't be read as UTF-8.
3269 * Text.Pandoc.Extensions:
3271 + Export new function `getAllExtensions`, which returns the
3272 extensions that affect a given format (whether enabled by default
3273 or not) [API change].
3274 + Change type of `parseFormatSpec` from
3275 `Either ParseError (String, Extensions -> Extensions)`
3276 to `Either ParseError (String, [Extension], [Extension])`
3278 + Add `Ext_gutenberg` constructor to `Extension` [API change].
3279 + Add `Ext_native_numbering` constructor to `Extension` [API change]
3282 * Text.Pandoc.Readers, Text.Pandoc.Writers:
3284 + Change type of `getReader` and `getWriter` so they return
3285 a value in the PandocMonad instance rather than an Either
3286 [API change]. Exceptions for unknown formats and unsupported
3287 extensions are now raised by these functions.
3291 + Change `optMetadataFile` type from `Maybe FilePath` to `[FilePath]`
3292 (Owen McGrath, #5702) [API change].
3294 * Text.Pandoc.Logging:
3296 + Add `CouldNotDeduceFormat` constructor to `LogMessage` [API change].
3297 Issue this warning when we're falling back to markdown or
3298 html because we don't recognize the extension of the input or
3300 + Clarify warning for missing title (#5760).
3301 + Add `UnusualConversion` constructor to `LogMessage` [API change]
3302 (Mauro Bieg, #5736). Emit warning on `-f latex -o out.pdf`.
3306 + Improve function documentation (Albert Krewkinkel).
3307 + Traverse nested blocks and inlines in correct order (Albert
3308 Krewinkel, #5667). Traversal methods are updated to use the new
3309 Walk module so that sequences with nested Inline (or Block) elements
3310 are traversed in the order in which they appear in the linearized
3312 + New unexported module `Text.Pandoc.Lua.Walk` (Albert Krewinkel).
3313 Lua filters must be able to traverse sequences of AST
3314 elements and to replace elements by splicing sequences back
3315 in their place. Special `Walkable` instances can be used for
3316 this; those are provided in a new module
3317 `Text.Pandoc.Lua.Walk`.
3318 + `Attr` values can now be given as normal Lua tables (Albert
3319 Krewinkel, #5744). This can be used as a convenient alternative
3320 to constructing `Attr` values with `pandoc.Attr`. Identifiers
3321 are taken from the `id` field, classes must be given as
3322 space separated words in the `class` field. All remaining fields
3323 are included as attributes. With this change, the following lines
3324 now create equal elements:
3326 pandoc.Span('test', {id = 'test', class = 'a b', check = 1})
3327 pandoc.Span('test', pandoc.Attr('test', {'a','b'}, {check = 1}))
3329 This also works when using the *attr* setter:
3331 local span = pandoc.Span 'text'
3332 span.attr = {id = 'test', class = 'a b', check = 1}
3334 Furthermore, the *attributes* field of AST elements can now be a
3335 plain key-value table even when using the `attributes` accessor:
3337 local span = pandoc.Span 'test'
3338 span.attributes = {check = 1} -- works as expected now
3340 + Export `make_sections`, remove `hierarchicalize`. Lua filters that
3341 use `hierarchicalize` will need to be rewritten to use
3343 + Add a `clone()` method to all AST elements (Albert Krewinkel, #5568).
3344 + Fix Lua function names in pandoc.system (niszet). Change
3345 `get_current_directory` to `get_working_directory` and
3346 `with_temp_directory` to `with_temporary_directory`, to
3347 conform to the manual.
3349 * Text.Pandoc.Error:
3351 + Add constructors `PandocUnknownReaderError`,
3352 `PandocUnknownWriterError`, `PandocUnsupportedExtensionError`.
3354 + Better message for `PandocShouldNeverHappenError`.
3355 + Better message for `PandocTemplateError`.
3357 * Text.Pandoc.Emoji:
3359 + Update emoji list (#5666). Done using new `tools/emojis.hs`,
3360 which uses the list from the gem GitHub uses. Future updates
3361 can be done with this tool.
3365 + Pass value of `--dpi` to `rsvg-convert` when converting SVG to PDF
3366 in the process of creating a PDF (#5721).
3368 * Text.Pandoc.Shared:
3370 + Replace `Element` and `makeHierarchical` with `makeSections`.
3371 Now that we have Divs, we can use them to represent the
3372 structure of sections, and we don't need a special Element type.
3373 `makeSections` reorganizes a block list, adding Divs with class
3374 `section` around sections, and adding numbering if needed.
3375 This change also fixes some longstanding issues recognizing section
3376 structure when the document contains Divs (#3057, see also #997).
3377 + Remove `Element` type [API change]
3378 + Remove `makeHierarchicalize` [API change]
3379 + Add `makeSections` [API change]
3380 + Export `deLink` [API change]
3381 + Make `filterIpynbOutput` strip ANSI escapes from code in output
3382 for non-ipynb formats, when the default "best" option is used with
3383 `--ipynb-output` (#5633).
3384 + Fix `camelCaseToHyphenated` so it handles `ABCDef` better.
3385 + Improve `isTight` (#5857). If a list has an empty item,
3386 this should not count against its being a tight list.
3387 + Export `htmlSpanLikeElements` [API change] (Daniele D'Orazio, #5796).
3388 This is a mapping of HTML span-like elements that are internally
3389 represented as a Span with a single class.
3390 + Change the implementation of `htmlSpanLikeElements` to retain
3391 classes and attributes (#5882, Florian Beeres).
3393 * Text.Pandoc.Slides: recognize content in Divs when determining
3396 * Text.Pandoc.SelfContained:
3398 + Omit content-type on type attribute for `<style>` (#5725).
3399 It doesn't seem to be valid for HTML5, and as a result Chrome
3400 ignores the style element.
3402 * Text.Pandoc.Pretty has been removed [API change].
3403 We now use the new external doclayout module instead.
3405 * Text.Pandoc.Writers.Shared:
3407 + Remove `metaToJSON`, `metaToJSON'` [API change].
3408 + Modify `addVariablesToContext`, `defField`, `setField`, `getField`,
3409 `resetField` to work with Context rather than JSON values. [API change]
3410 + Export new function `endsWithPlain` [API change].
3411 + Change `gridTables` so it does better at keeping the widths of
3412 columns (#4320) and does better at figuring out column widths
3413 when no widths are given (#5899).
3415 * Text.Pandoc.Options
3417 + Change type of `writerTemplate` to `Maybe Template` instead
3419 + Change To/FromJSON instances for `HTMLMathMethod`, `CiteMethod`,
3420 `ObfuscationMethod`, `TrackChanges`, `WrapOption`,
3421 `TopLevelDivision`, `ReferenceLocation`, `HTMLSlideVariant` (#5790).
3422 In each case we use lowercase (or hyphenated lowercase) for
3423 constructors to line up more closely with command-line option
3424 values. This is a breaking change for those who manually decode or
3425 encode JSON for these data types (e.g. for `ReaderOptions` or
3428 * Text.Pandoc.Filters:
3430 + Add `FromYAML` instance for `Filter`.
3431 + `applyFilters`: Add and apply filters in order (not reversed)
3432 This changes `applyFilters` from Text.Pandoc.Filter so
3433 that it does a left fold rather than a right fold, applying
3434 the filters in the order listed.
3438 + Change `toEntities` to emit numerical hex character references
3441 * Text.Pandoc.Highlighting:
3443 + Add additional listings languages (Wandmalfarbe).
3445 * Text.Pandoc.MediaBag:
3447 + Some of the types using Strings were switched to use FilePath instead
3448 (Christian Despres, #5884).
3450 * Text.Pandoc.Templates:
3452 + Don't import/export `varListToJSON` [API change]. It is removed in
3453 doctemplates >= 0.3.
3454 + Change type of `renderTemplate'` [API change]. Return value is
3455 now Text rather than being polymorphic. This makes room for
3456 upcoming removal of the `TemplateTarget` class from doctemplates.
3458 * Text.Pandoc.App.Opt [API changes]:
3460 + More convenient To/FromJSON instances. Make the field names
3461 like `strip-empty-paragraphs` rather than `optStripEmptyParagraphs`.
3462 Anyone who is using JSON serialization of Opt will need to adjust
3464 + Change `optHighlightStyle` to a `Maybe String` instead of
3465 `Maybe Style`. Do the parsing/loading of themes later, after
3467 + Remove `optBaseHeaderLevel` from `Opt`. We now just use
3468 `optShiftHeadingLevelBy`, to avoid redundancy.
3469 + Change `optShiftHeadingLevel` to `optShiftHeadingLevelBy` to
3471 + Custom FromJSON instance for `LineEnding`, so either `CRLF`
3472 or `crlf` will work.
3473 + Change `optVariables` from `[(String, String)]` to `Context Text`.
3474 + Change `optMetadata` to `Meta`, to allow structured values.
3475 The current behavior of the `--metadata` option stays the same.
3476 + Rename `optReader`, `optWriter` as `optFrom`, `optTo`.
3477 + Add `FromYAML` instances to `Opt` and to all subsidiary types.
3478 + Rename `optMetadataFile` to `optMetadataFiles`.
3479 + Rename `optPDFEngineArgs` to `optPDFEngineOpts`.
3480 + Rename `optWrapText` to `optWrap`.
3481 + Add `IpynbOutput` enumerated type: use this instead of
3482 a string for `optIpynbOutput`.
3483 + Change optInputFiles to a `Maybe [FilePath]` (#5888) [API change].
3484 `Nothing` means: nothing specified.
3485 `Just []` means: an empty list specified (e.g. in defaults).
3486 + List fields in Opt so they aren't reversed (#5881) [API change].
3487 Previously `optIncludeInHeader`, etc. were in reverse order.
3488 + The `sourcefile` variable is now always a list. It used to be
3489 sometimes a string, sometimes a list (when there was more than one).
3493 + default.latex: added code for `cslreferences` environment,
3494 to be used for pandoc-citeproc references. A `csl-hanging-indent`
3495 variable (set automatically if there is a `hanging-ident`
3496 class on the references Div) controls whether contents of this
3497 environment receive a hanging indent.
3498 + default.latex: Add `space` as default option for xeCJK, so that
3499 spaces between words are preserved (#5855, jeongminkim-islab).
3500 This is necessary for Korean.
3501 + default.latex: Remove include of `grffile` (#5848).
3502 This package used to be needed for proper handling of image filenames
3503 containing periods (in addition to the period before the extension).
3504 It no longer works with the latest LaTeX kernel and graphicx,
3505 so we have removed it. Future versions of graphicx will handle
3506 these filenames without the need for `grffile`.
3507 + default.context: add a saner default for page numbers.
3508 Previously they appeared centered at the top of the page;
3509 now we put them centered at the bottom, unless the `pagenumbering`
3511 + default.context: define a start-stop-pair `cslreferences` to
3512 allow for hanging indents in the bibliography (#5875, Denis Maier).
3513 + default.ms: update defaults. Use Palatino font, use slightly
3514 wider interparagraph space, don't indent paragraphs,
3515 and put page numbers on the bottom. This brings ms output
3516 closer to default LaTeX output.
3517 + default.revealjs: add navigationMode (Mauro Bieg, #5657).
3518 + default.muse: handle multiple authors better.
3519 + docbook4, docbook5 templates: add indentation to body.
3520 + HTML-based templates: use `styles.html` partial to avoid
3522 + HTML-based templates: change indentation of styles in template.
3524 * reference.docx (#5820):
3526 + Change Block Text (block quote) style so that the same font
3527 is used as in the body text, and the block text is indented
3529 + All headings now have a uniform color.
3530 + Level-1 headings no longer set `w:themeShade="B5"`.
3531 + Level-2 headings are now 14 point rather than 16 point.
3532 + Level-3 headings are now 12 point rather than 14 point.
3533 + Level-4 headings are italic rather than bold.
3535 * epub.css: Add CSS for hanging-indent div to support pandoc-citeproc's
3536 new hanging indents.
3540 + Repeat ghc-options in all stanzas.
3541 + Remove conditionals for ghc < 8 (Albert Krewinkel, #5693).
3542 + Compile with `-Wcpp-undef` and `-fhide-source-paths` when possible
3544 + Add cabal.project to extra-source-files (Albert Krewinkel).
3545 + Add dependency on skylighting-core (#5729). Even though it shouldn't
3546 be needed, some tools require it.
3547 + Require latest pandoc-types, texmath, skylighting, haddock-library.
3548 + Ensure TemplateHaskell is added to other-extensions when it is
3549 used (Vanessa McHale, #5728).
3550 + Remove `derive_json_via_th` flag; always use TH. This cuts down
3551 on code duplication and reduces the chance for errors. See #4083.
3557 + Remove references to obsolete flag (#5694).
3559 * Benchmarks: fix failure on ipynb.
3561 * Use MathJax 3 (zorkow).
3563 * KaTeX math: respect `classoption=fleqn` variable,
3564 bump KaTeX version to 0.11.1 (#5815, Mauro Bieg).
3566 * Fix redundant constraint compiler warnings (Pete Ryland, #5625).
3568 * Use throwError instead of fail when appropriate.
3570 * Use Prelude.fail to avoid ambiguity with fail from GHC.Base.
3572 * Add `diff-zip.sh` to tools (John MacFarlane, Agustín Martín Barbero).
3573 This is intended to make it easier to test differences in zip
3574 containers, like epub, docx, or odt.
3576 * Add `.gitattributes` (#5747). This ensures that the golden files
3577 in `test/fb2/reader/` don't have newlines converted. This should fix
3578 a test failure on GitHub CI with Windows.
3580 * Reorder options in `--help`.
3582 * Revise code for HsYAML-0.2.0.0 (@vijayphoenix, #5704).
3584 * Remove blank line in code example in Haddocks (Leif Metcalf, #5679).
3586 * Fix trypandoc with `getReader`/`getWriter` changes.
3588 * Allow building pandoc with GHC 8.8.
3590 * linux tarball: add architecture `-amd64` to filename.
3591 Now it will be: `pandoc-VERSION-linux-ARCH.tar.gz`.
3595 + Add section for exit codes.
3596 + Document some pptx limitations in slide show section:
3597 No incremental display (#5689). No pause with `. . .` (#5701).
3598 + reveal.js flags (Mauro Bieg, #5653).
3599 + Document addition of `data-` prefix to unknown attributes in HTML5.
3600 + Link to YAML spec (Mauro Bieg, #5687).
3601 + Fix capitalization of "Linux" (#5859, Marcus Stollsteimer).
3602 + Use a table for exit codes.
3603 + Put all template variable docs into one section.
3604 + Use ATX headers consistently.
3605 + Add fuller documentation of templates (#5779), including
3606 new template syntax, partials, etc.
3607 + Add documentation for the variable `hyperrefoptions` (Wandmalfarbe).
3608 + Clarify when macro definitions are passed as raw latex.
3609 In Markdown input, they are always passed through. In LaTeX, only if
3610 `latex_macros` is disabled.
3611 + Clarify that `--dpi` provides a default and doesn't override
3612 dpi values specified in the images themselves (#5721).
3613 + Document how to use custom writers with `--standalone` (#5866).
3614 + Clarify `--preserve-tabs` default.
3618 + Fix instructions for libicu.
3619 + Add Void Linux instructions (Volodymyr Kozachnyskyi).
3623 + Add information on tests (Agustín Martín Barbero, #5652).
3624 + Add information about command test naming to CONTRIBUTING (Florian B).
3626 * Fix typos in changelog and comments (#5896, Brian Wignall).
3628 * doc/lua-filters.md:
3630 + Fix mistakes in mediabag module docs (#5851, Albert Krewinkel).
3631 + Improve metadata replacement example in lua-filters doc (#5851).
3632 + Mention which Lua version is shipped with pandoc (Albert Krewinkel,
3635## pandoc 2.7.3 (2019-06-11)
3637 * Add `jira` (Atlassian's Jira wiki markup) as output format (#2497,
3640 * Add `tex_math_dollars` to `multimarkdownExtensions` (#5512).
3641 This form is now supported in multimarkdown,
3642 in addition to `tex_math_double_backslash`.
3644 * Fix `--self-contained` so it works when output format has extensions.
3645 Previously if you used `--self-contained` with `html-smart` or
3646 `html+smart`, it wouldn't work.
3648 * Add template variable `curdir` with working directory
3649 from which pandoc is run (#5464).
3651 * Markdown reader: don't create implicit reference for empty header
3654 * Muse reader: allow images inside link descriptions (Alexander Krotov).
3656 * HTML reader: epub related fixes.
3658 + With epub extensions, check for `epub:type` in addition to `type`.
3659 + Fix problem with noteref parsing which caused block-level
3660 content to be eaten with the noteref.
3661 + Rename `pAnyTag` to `pAny`.
3662 + Refactor note resolution.
3663 + Trim definition list terms (Alexander Krotov).
3667 + Add braces when resolving `\DeclareMathOperator`
3668 (#5441). These seem to be needed for xelatex but not pdflatex.
3669 + Allow newlines in `\mintinline`.
3670 + Pass through unknown listings language as class (#5540).
3671 Previously if the language was not in the list of languages supported
3672 by listings, it would not be added as a class, so highlighting
3673 would not be triggered.
3674 + `rawLaTeXInline`: Include trailing `{}`s in raw latex commands (#5439).
3675 This change affects the markdown reader and other readers that allow raw
3676 LaTeX. Previously, trailing `{}` would be included for unknown
3677 commands, but not for known commands. However, they are sometimes used
3678 to avoid a trailing space after the command. The chances that a `{}`
3679 after a LaTeX command is not part of the command are very small.
3681 * MediaWiki reader: handle multiple attributes in table row (#5471,
3684 * Docx reader: Add support for `w:rtl` (#5545). Elements with this
3685 property are put into Span inlines with `dir="rtl"`.
3687 * DocBook reader: Issue `IgnoredElement` warnings.
3689 * Org reader (Albert Krewinkel):
3691 + Fix planning elements in headers level 3 and higher
3692 (#5494). Planning info is now always placed before
3693 the subtree contents. Previously, the planning info was placed after
3694 the content if the header's subtree was converted to a list, which
3695 happens with headers of level 3 and higher per default.
3696 + Omit, but warn about unknown export options. Unknown export
3697 options are properly ignored and omitted from the output.
3698 + Prefer plain symbols over math symbols (#5483).
3699 Symbols like `\alpha` are output plain and unemphasized, not as math.
3700 + Recognize emphasis after TODO/DONE keyword (#5484).
3704 + Skip unknown elements rather than throwing errors (#5560).
3705 Sometimes custom elements are used (e.g. `id` element
3706 inside `author`); previously the reader would halt with an error.
3707 Now it skips the element and issues an `IgnoredElement` warning.
3708 + Parse notes (#5493, Alexander Krotov).
3709 + Internal improvements (Alexander Krotov).
3711 * OpenDocument writer: Roll back automatic figure/table numbering
3712 (#5474). This was added in pandoc 2.7.2, but it makes it impossible
3713 to use pandoc-crossref. So this has been rolled back for now,
3714 until we find a good solution to make this behavior optional
3715 (or a creative way to let pandoc-crossref and this feature
3718 * New module Text.Pandoc.Writers.Jira, exporting `writeJira` [API
3719 change] (Albert Krewinkel).
3723 + Don't include 'landmarks' if there aren't any.
3724 Previously we could get an empty ol element, which caused
3725 validation errors with epubcheck.
3726 + Ensure unique ids for styleesheets in content.opf (#5463).
3727 + Make stylesheet link compatible with kindlegen (#5466,
3728 Eric Schrijver). Pandoc omitted `type="text/css"` from both
3729 `<style>` and `<rel="stylesheet">` elements in all templates, which
3730 is valid according to the spec. However, Amazon’s kindlegen software
3731 relies on this attribute on `<link>` elements when detecting
3732 stylesheets to include.
3736 + Output video and audio elements depending on file
3737 extension of the image path (Mauro Bieg).
3738 + Emit empty alt tag in figures (#5518, Mauro Bieg).
3739 The same text is already in the <figcaption> and
3740 screen-readers would read it twice, see #4737.
3741 + Don't add variation selector if it's already there.
3742 This fixes round-trip failures.
3743 + Prevent gratuitous emojification on iOS (#5469).
3744 iOS chooses to render a number of Unicode entities, including '↩', as
3745 big colorful emoji. This can be defeated by appending Unicode
3746 VARIATION SELECTOR-15'/'VARIATION SELECTOR-16'. So we now append this
3747 character when escaping strings, for both '↩' and '↔'. If other
3748 characters prove problematic, they can simply be added to
3749 `needsVariationSelector`. + Add `class="heading"` to level 7+ Headers
3750 rendered as `<p>` elements (#5457).
3752 * RST writer: treat Span with no attributes as transparent (#5446).
3753 Previously an Emph inside a Span was being treated as
3754 nested markup and ignored. With this patch, the Span
3759 + Include inline code attributes with `--listings` (#5420).
3760 + Don't produce columns environment unless beamer (#5485).
3761 + Fix footnote in image caption. Regression: the fix for #4683 broke
3763 + Don't highlight code in headings (#5574). This causes
3765 + Use `\mbox` to get proper behavior inside `\sout` (#5529).
3767 * EPUB writer: Fix document section assignments (#5546).
3768 For example, introduction should go in bodymatter, not frontmatter, and
3769 epigraph, conclusion, and afterward should go in bodymatter, not
3770 backmatter. For the full list of assignments, see the manual.
3774 + Add backslashes to avoid unwanted interpretation of
3775 definition list terms as other kinds of block (#554).
3776 + Ensure the code fence is long enough (#5519).
3777 Previously too few backticks were used when the code block
3778 contained an indented line of backticks. (Ditto tildes.)
3779 + Handle labels with integer names (Jesse Rosenthal, #5495).
3780 Previously if labels had integer names, it could produce a conflict
3781 with auto-labeled reference links. Now we test for a conflict and
3782 find the next available integer. This involves adding a new state
3783 variable `stPrevRefs` to keep track of refs used in other document
3784 parts when using `--reference-location=block|section`
3786 * Textile writer: fix closing tag for math output (Albert Krewinkel).
3787 Opening and closing tag for math output match now.
3789 * Org writer: always indent src blocks content by 2 spaces (#5440, Albert
3790 Krewinkel). Emacs always uses two spaces when indenting the content of
3791 src blocks, e.g., when exiting a `C-c '` edit-buffer. Pandoc used to
3792 indent contents by the space-equivalent of one tab, but now always uses
3797 + Use `` `+...+` `` form for inline code.
3798 The old `` `a__b__c` `` yields emphasis inside code in asciidoc.
3799 To get a pure literal code span, use `` `+a__b__c+` ``.
3800 + Use proper smart quotes with asciidoctor (#5487).
3801 Asciidoctor has a different format for smart quotes.
3802 + Use doubled ## when necessary for spans (#5566).
3803 + Ensure correct nesting of strong/emph (#5565): strong
3804 must be the outer element.
3808 + Wrap elements with p when needed (#5570). The JATS spec restricts
3809 what elements can go inside `fn` and `list-item`. So we wrap other
3810 elements inside `<p specific-use="wrapper">` when needed.
3811 + Properly handle footnotes (#5511) according to "best practice."
3812 (Group them at the end in `<fn-group>` and use `<xref>` elements
3814 + Fix citations with PMID so they validate (#5481). This includes
3815 an update to data/jats.csl.
3816 + Ensure validity of `<pub-date>` by parsing the date and
3817 extracting year, month, and day, as expected. Also add an
3818 iso-8601-date attribute automatically.
3819 + Don't use `<break>` element for LineBreak. It is only
3820 allowed in a few special contexts, and not in `<p>` elements.
3821 + Don't make `<string-name>` a child of `<string>`, which is illegal.
3825 + Do not wrap note references into `<sup>` and brackets
3826 (Alexander Krotov). Existing FB2 readers, such as FBReader, already
3827 display links with type="note" as a superscript.
3828 + Use genre metadata field (#5478).
3830 * Muse writer: do not escape empty line after `<br>` (Alexander Krotov).
3832 * Add unicode code point in "Missing character" warning (#5538).
3833 If the character isn't in the console font, the message is pretty useless,
3834 so we show the code point for anything non-ASCII.
3836 * Lua: add Version type to simplify comparisons (Albert Krewinkel).
3837 Version specifiers like `PANDOC_VERSION` and `PANDOC_API_VERSION` are
3838 turned into `Version` objects. The objects simplify version-appropriate
3839 comparisons while maintaining backward-compatibility.
3840 A function `pandoc.types.Version` is added as part of the newly
3841 introduced module `pandoc.types`, allowing users to create version
3844 * pandoc lua module (Albert Krewinkel):
3846 - Fix deletion of nonexistent attributes (#5569).
3847 - Better tests for Attr and AttributeList.
3849 * pandoc.mediabag lua module (Albert Krewinkel):
3851 + Add function `delete` for deleting a single item.
3852 + Add function `empty` for removing all entries.
3853 + Add function `items` for iterating over mediabag.
3855 * Text.Pandoc.Class: Fix handling of `file:` URL scheme in
3856 `downloadOrRead` (#5517, Mauro Bieg). Previously `file:/`
3857 URLs were handled wrongly and pandoc attempted to make HTTP
3858 requests, which failed.
3860 * Text.Pandoc.MIME: add `mediaCategory` [API change] (Mauro Bieg).
3862 * Text.Pandoc.Shared:
3864 + Add `onlySimpleTableCells` [API change]
3865 (Mauro Bieg) and use this to consolidate simple-table detection
3866 (#5524). This fixes an inconsistency in the HTML reader, which did not
3867 treat tables with `<p>` inside cells as simple.
3868 + `metaToJSON`: treat digits starting with 0 as a string, not a number
3869 (#5479). This fixes a regression in YAML metadata in pandoc 2.7.2.
3871 * Text.Pandoc.Logging: Add `IgnoredElement` constructor for
3872 `LogMessage`. `SkippedConetnt` doesn't work for some XML-based
3873 readers which don't have access to parsec source positions.
3875 * Text.Pandoc.Asciify: Add Turkish undotted-i (#5433, Mauro Bieg).
3877 * Improve output of Lua tests (#5499, Albert Krewinkel).
3878 This makes use of tasty-lua, a package to write tests in Lua
3879 and integrate the results into Tasty output. Test output becomes
3880 more informative: individual tests and test groups become visible
3881 in test output. Failures are reported with helpful error messages.
3883 * Lua: add `pandoc.system` module (#5468, Albert Krewinkel).
3884 The `system` Lua module provides utility functions to interact with the
3885 operating- and file system. E.g.
3886 `print(pandoc.system.get_current_directory())`
3889 pandoc.system.with_temporary_directory('tikz', function (dir)
3890 -- write and compile a TikZ file with pdflatex
3894 * LaTeX template: Add pdflang to hypersetup if lang is set (#5443).
3896 * beamer template: Fix using Beamer with geometry (#5505, Daniel Maslowski).
3897 Beamer already loads geometry, so we need to use the `\geometry`
3898 command to set geometry options.
3900 * EPUB2/3 templates: Move inline styles to default epub.css (#5466).
3901 NOTE: Those who use a custom CSS stylesheet with EPUB should
3904 code{ white-space: pre-wrap; }
3905 span.smallcaps{ font-variant: small-caps; }
3906 span.underline{ text-decoration: underline; }
3907 q { quotes: "“" "”" "‘" "’"; }
3908 div.column{ display: inline-block; vertical-align: top; width: 50%; }
3910 * reveal.js template:
3912 + Updates for revealjs 3.8.0 (#5435, ebiim).
3913 + Remove reference to head.min.js (#5448, Winnie Hellmann).
3914 NOTE: users will need to update reveal.js to at least 3.8.0
3915 for their presentations generated with this version of pandoc
3920 + Replace `</>` with literal `/` (#5451).
3921 We use forward-slash for a directory separator in tmpDir,
3922 even on Windows (because that's what tex likes). So we
3923 should not put a backslash between the tmpDir and the
3924 filename on Windows. This is harmless enough in normal
3925 Windows setups, but it breaks on Cygwin.
3926 Thanks to @cc2x for noticing and diagnosing the problem.
3927 + Allow use of `-output-directory` in `--pdf-engine-opt` (#5462).
3928 This is currently possible with `mklatex` and `-outdir`, but
3929 was not yet possible with xelatex and `-output-directory`.
3930 + For PDF via ms/pdfroff, make TOC appear at beginning and in
3931 PDF bookmarks (#5553). Previously the TOC appeared at the end
3932 of the document, and was not bookmarked. To keep it at the end,
3933 add `--pdf-engine-opt=--no-toc-relocation` to your command line.
3935 * Fix broken links in documents (#5473, Shim Myeongseob).
3936 Also, use absolute links to pandoc.org when possible, so that
3937 the links can be followed by people viewing these documents
3940 * Improved sample lua tikz filter in lua-filters docs (#5445,
3941 Matthew Doty). There are three changes:
3943 + It only processes elements which begin with `\begin{tikzpicture}`
3944 + It uses pdf2svg instead of imagemagick to preserve fidelity
3945 + The images produced have transparent backgrounds
3949 + Add note about `title-meta`, `author-meta`, `date-meta` (#5486).
3950 + Fix typo (#5489, Christian Krause).
3952 * add test/tables.xwiki to git and pandoc.cabal (#5498, Mauro Bieg).
3954 * Disable missing-home-modules warning in `stack.yaml`.
3955 Otherwise `stack ghci` fails.
3958## pandoc 2.7.2 (2019-04-05)
3960 * Add XWiki writer (#1800, Derek Chen-Becker).
3961 Add `Text.Pandoc.Writers.XWiki`, exporting `writeXWiki` [API change].
3963 * Dokuwiki Reader: parse single curly brace (#5416, Mauro Bieg).
3965 * Vimwiki reader: improve handling of internal links (#5414).
3966 We no longer append `.html` to link targets, and we add a title
3967 `wikilink`. This mirrors behavior of other wiki readers. Generally
3968 the `.html` extension is not wanted. It may be important for output
3969 to HTML in certain circumstances, but it can always be added using a
3970 filter that matches on links with title `wikilink`.
3972 If your workflow requires the current behavior, here is a lua filter
3973 that will add the `.html` extension:
3977 if el.title == 'wikilink' then
3978 el.target = el.target .. ".html"
3985 + Use format `ipynb` for raw cell where no format given.
3986 + Avoid introducing spurious `.0` on integers in metadata.
3988 * Markdown reader: fenced div takes priority over setext header.
3990 * HTML reader: read `data-foo` attribute into `foo` (#5392).
3991 The HTML writer adds the `data-` prefix for HTML5 for nonstandard
3992 attributes. But the attributes are represented in the AST without
3993 the `data-` prefix, so we should strip this when reading HTML.
3995 * LaTeX reader: Improve autolink detection (#5340).
3997 * PowerPoint writer (Jesse Rosenthal):
3999 + Expand builtin reference doc to model all layouts.
4000 The previous built-in reference doc had only title and content
4001 layouts. Add in a section-header slide and a two-content slide, so
4002 users can more easily modify it to build their own templates.
4003 + Always open up in slide view. When editing a
4004 template/reference-doc, the user might be in Master view, but when
4005 producing a slide show, it is assumed that slide view will be
4007 + Remove `handoutsMasterList` from template presentation.xml
4008 + Fix numerous errors in templating (#5402). Previously, some templates
4009 produced by Office 365 (MacOS) would not render with `--reference-doc`
4010 correctly. We now apply correct shapes for content, and build
4011 shape trees correctly.
4012 + Make default placeholder type for template lookup.
4013 + Apply speaker notes to metadata slide if applicable.
4014 + Test for speaker notes after breaking header.
4015 + Correctly handle notes after section-title header.
4016 Previously, if notes came after a section-title header (ie, a level-1
4017 header in a slide-level=2 presentation), they would go on the next
4018 slide. This keeps them on the slide with the header.
4019 + Internal improvements.
4023 + Use format `ipynb` for raw cell where no format given.
4024 According to nbformat docs, this is supposed to render in every
4025 format. We don't do that, but we at least preserve it as a raw
4026 block in markdown, so you can round-trip.
4027 + Consolidate adjacent raw blocks. Sometimes pandoc creates two
4028 HTML blocks, e.g. one for the open tag and one for a close tag.
4029 If these aren't consolidated, only one will show up in output cell.
4030 + Fixed carry-over of nbformat from metadata.
4031 + Preserve `nbformat_minor` if it's given. This helps with round-tripping.
4035 + Avoid inadvertently creating ?` or !` ligatures (#5407).
4036 These are upside down ? and !, resp.
4037 + Fix footnotes in table caption and cells (#5367). This fixes a
4038 bug wherein footnotes appeared in the wrong order, and with
4039 duplicate numbers, when in table captions and cells.
4040 We now use regular `\footnote` commands, even in the table
4041 caption and the minipages containing cells. Apparently
4042 longtable knows how to handle this.
4044 * HTML writer: Don't add data- prefix to RDFa attributes (#5403).
4046 * JATS writer: Ensure that plain strings go inside `<pub-id>` tag (#5397).
4050 + Better rendering of numbers (#5398). If the number is integral,
4051 we render it as an integral not a float.
4052 + Proper rendering of empty map in YAML metadata (#5398). Should
4053 be `{}`, not empty string.
4054 + Properly escape attributes in Markdown writer (#5369).
4055 + Be sure implicit figures work in list contexts (#5368).
4056 Previously they would sometimes not work: e.g., when they
4057 occurred in final paragraphs in lists that were originally
4058 parsed as Plain and converted later using PlainToPara.
4060 * Docx writer: Use `w:br` without attributes for line breaks (#5377).
4061 We previously added the attribute `type="textWrapping"`, but
4062 this causes problems on Word Online.
4064 * LaTeX template (Andrew Dunning):
4066 + Ensure correct heading/table order (#5365). Improve workaround
4067 (#1658) for tables following headings. The new solution works whether
4068 or not the `indent` variable is enabled.
4069 + Remove `subparagraph` variable. The default is now to use run-in
4070 style for level 4 and 5 headings (`\paragraph` and `\subparagraph`).
4071 To get the previous default behavior (where these were formatted as
4072 blocks, like `\subsubsection`), set the `block-headings` variable.
4073 + Add pandoc to PDF metadata (#5388).
4074 + Group graphics-related code (#5389).
4075 + Move `\setstretch` after front matter (#5179). Ensures that
4076 `\maketitle`, `\tableofcontents`, and so forth are not affected by
4077 changes to line spacing.
4079 * Update data/jats.csl to avoid commas between name-part elements
4082 * Add support for golang (`go`) with `--listings` (#5427).
4084 * Text.Pandoc.Shared - improve `metaToJSON` behavior with numbers.
4085 We now do a better job marshalling numbers from MetaString
4086 or MetaInlines into JSON Number.
4088 * Text.Pandoc.Writers.Shared: `metaValueToJSON`: use Number Values for
4089 integers. Pandoc's MetaValue doesn't have a distinguished number type,
4090 so numbers are put in MetaStrings. If the MetaString consists
4091 entirely of digits, we convert it to a Number. We should probably
4092 consider adding a MetaNumber constructor to MetaValue, for better
4093 round-tripping with JSON etc. This change aids round-tripping in
4094 ipynb metadata fields, like `toc_depth`.
4096 * Text.Pandoc.Class: `fetchItem`: don't treat UNC paths as
4097 protocol-relative URLs (#5127). These are paths beginning `//?/UNC/...`.
4099 * Text.Pandoc.ImageSize: Improve `pdfSize` so it handles
4100 a wider range of PDFs (#4322, with help from Richard Davis).
4102 * Text.Pandoc.Pretty: avoid stack overflow by using strict sum (#5401).
4104 * Fix harmless error in file-scope code (#5422).
4108 + Improve 'header' and 'heading' usage (#5423, Andrew
4109 Dunning). The term 'header' was being used where 'heading'
4110 is more appropriate.
4111 + Add paragraph on options affecting markdown in ipynb.
4113 * stack.yaml - remove -Wmissing-home-modules
4114 This seems to cause problems with stack ghci. Remove RTS options.
4116 * Add ghc-options to cabal.project.
4118 * appveyor.yml - use ghc 8.6.4. Fixes segfault issues on Windows (#5037).
4120 * linux build process: Remove clone of pandoc-citeproc (#5366).
4121 It wasn't being used; cabal.project specifies the version to use.
4123## pandoc 2.7.1 (2019-03-14)
4125 * Add tectonic as an option for --pdf-engine (#5345, Cormac Relf).
4126 Runs tectonic on STDIN instead of a temporary .tex file, so that it
4127 looks in the working directory for `\include` and `\input` like the rest
4128 of the engines. Allows overriding the output directory
4129 args with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`.
4131 * Allow `-o/--output` to be used with `--print-default-data-file`,
4132 `--print-highlighting-style`, `--print-default-template`.
4133 Note that `-o` must occur BEFORE the `--print*` command on the command
4134 line (this is documented, #5357).
4138 + Support `\underline`, `\ul`, `\uline` (#5359, Paul
4139 Tilley). These are parsed as a Span with class `underline`, as
4141 + Ensure that `\Footcite` and `\Footcites` get put in a note.
4145 + Remove sensitivity to `raw_html`, `raw_tex` extensions.
4146 We now include every output format. Pruning is handled by
4148 + Better handling of cell metadata. We now include even complex cell
4149 metadata in the Div's attributes (as JSON, in complex cases, or
4150 as plain strings in simple cases).
4154 + Recurse into native divs for output cell data (#5354).
4155 + Render cell metadata fields from div attributes.
4157 * Docx writer: avoid extra copy of abstractNum and num elements
4158 in numbering.xml. This caused pandoc-produced docx files to
4159 be uneditable using Word Online (#5358).
4161 * Markdown writer: improve handling of raw blocks/inline.
4162 We now emit raw content using `raw_attribute` when no more
4163 direct method is available. Use of `raw_attribute` can be
4164 forced by disabling `raw_html` and `raw_tex`.
4166 * LaTeX writer: Add classes for frontmatter support (#5353, Andrew Dunning)
4167 and remove frontmatter from `scrreprt`.
4171 + Improve readability (#5363, Andrew Dunning).
4172 + Robust section numbering removal (#5351, Andrew Dunning).
4173 Ensures that section numbering does not reappear with custom
4174 section levels. See <https://tex.stackexchange.com/questions/473653/>.
4175 + Better handling of front/main/backmatter (#5348).
4176 In pandoc 2.7 we assumed that every class with chapters would accept
4177 `\frontmatter`, `\mainmatter`, and `\backmatter`. This is not so (e.g.
4178 report does not). So pandoc 2.7 breaks on report class by including an
4179 unsupported command. Instead of the `book-class` variable, we use two
4180 variables, `has-chapters` and `has-frontmatter`, and set these
4181 intelligently in the writer.
4183 * Text.Pandoc.Shared: Improve `filterIpynbOutput`. Ensure that
4184 images are prioritized over text. `best` should include everything
4187 * Tests.Old: specify `--data-dir=../data` to ensure tests can find
4188 data files even if they haven't been installed. Remove old
4189 `pandoc_datadir` environment variable, which hasn't done anything for a
4192 * MANUAL.txt: Add recommendation to use `raw_attribute` with ipynb (#5354).
4194 * Use cmark-gfm-hs 0.1.8 (note that 0.1.7 is buggy).
4196 * Use latest pandoc-citeproc, texmath.
4199## pandoc 2.7 (2019-03-03)
4201 * Use XDG data directory for user data directory (#3582). Instead of
4202 `$HOME/.pandoc`, the default user data directory is now
4203 `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
4204 `$HOME/.local/share` but can be overridden by setting the
4205 environment variable. If this directory is missing, then
4206 `$HOME/.pandoc` is searched instead, for backwards compatibility.
4207 However, we recommend moving local pandoc data files from
4208 `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the
4209 default user data directory remains the same.
4211 * Slide show formats behavior change: content under headers
4212 less than slide level is no longer ignored, but included in
4213 the title slide (for HTML slide shows) or in a slide after
4214 the title slide (for beamer). This change makes possible
4215 2D reveal.js slideshows with content in the top slide on
4216 each stack (#4317, #5237).
4218 * Add command line option `--ipynb-output=all|none|best` (#5339).
4219 Output cells in ipynb notebooks often contain several different
4220 versions of an output, with different MIME types, e.g. an HTML
4221 table and a plain-text fallback. Specifying `--ipynb-output=best`
4222 (the default) ensures that the best version for the output format
4223 is used. `all` includes all versions, and `none` suppresses them
4224 all, leaving output cells empty.
4226 * `asciidoctor` is now an output format separate from `asciidoc`,
4227 to accommodate some minor implementation-specific differences
4228 (currently just in the treatment of display math).
4230 * Add `latexmk` as an option for `--pdf-engine` (#3195).
4231 Note that you can use `--pdf-engine-opt=-outdir=bar` to specify
4232 a persistent temp directory.
4236 + Improve tight/loose list handling (#5285). Previously the
4237 algorithm allowed list items with a mix of Para and Plain, which
4239 + Add newline when parsing blocks in YAML (#5271). Otherwise last
4240 block gets parsed as a Plain rather than a Para. This is a
4241 regression in pandoc 2.x. This patch restores pandoc 1.19
4243 + Make `yamlToMeta` respect extensions (#5272, Mauro Bieg).
4244 This adds a `ReaderOptions` parameter to `yamlToMeta` [API change].
4245 + Fix bug parsing fenced code blocks (#5304). Previously parsing
4246 would break if the code block contained a string of backticks of
4247 sufficient length followed by something other than end of line.
4249 * LaTeX reader: don't let `\egroup` match `{`. `braced` now actually
4250 requires nested braces. Otherwise some legitimate command and
4251 environment definitions can break.
4253 * Docx reader (Jesse Rosenthal):
4255 + Rename `getDocumentPath` as `getDocumentXmlPath`.
4256 + Use field notation for setting `ReaderEnv`.
4257 + Figure out `document.xml` path once at the beginning of parsing, and
4258 add it to the environment, so we can avoid repeated lookups.
4259 + Dynamically determine main document xml path (#5277).
4260 The desktop Word program places the main document file in
4261 `word/document.xml`, but the online word places it in
4262 `word/document2.xml`. This file path is actually stated in the root
4263 `_rels/.rels` file, in the `Relationship` element with an
4264 `http://../officedocument` type.
4265 + Fix paths in archive to prevent Windows failure (#5277).
4266 Some paths in archives are absolute (have an opening slash) which, for
4267 reasons unknown, produces a failure in the test suite on MS
4268 Windows. This fixes that by removing the leading slash if it exists.
4269 + Add comments to aid code readability.
4270 + Trim space inside the last inline (#5273).
4271 + Unwrap sdt elements in footnotes and comments (#5302).
4273 * Muse reader (Alexander Krotov):
4275 + Test that block level markup does not break `<verbatim>`.
4276 + Add secondary note support.
4278 * ipynb reader: handle images referring to attachments. Previously
4279 we didn't strip off the attachment: prefix, so even though the
4280 attachment was available in the mediabag, pandoc couldn't find it.
4284 + Fix parsing of figures (#5321). This ensures that a figure
4285 containing a single image is parsed as a pandoc "implicit
4286 figure" (i.e., a Para with a single Image whose title attribute
4287 begins with `fig:`). More complex figures will still be parsed
4289 + Support `fig-group` block element (#5317).
4290 + Handle citations with multiple references (#5310). The `rid`
4291 attribute can have a space-separated list of ids.
4293 * AsciiDoc Writer: Add `writeAsciiDoctor` [API change, Tarik Graba].
4294 Handle display math appropriately for Asciidoctor.
4296 * JATS writer: wrap figure caption in `<p>` to fix validation (#5290,
4301 + Implement WAI-ARIA roles for (end)notes, citations, and
4302 bibliography (#4213). Note that doc-biblioref is only used when
4303 link-citations produces links, since it belongs on links.
4304 + Include content (including speaker notes) in title slides
4309 + Ensure final newline.
4310 + Only include metadata under `jupyter` field.
4311 + Don't create attachments for images with absolute URIs,
4312 including data: URIs (#5303).
4313 + Keep plain text fallbacks in output even if a richer format is
4314 included (#5293). We don't know what output format will be needed.
4315 See the `--ipynb-output` command line option for a way to control
4316 what formats are included in the output.
4318 * Markdown writer: use `markdown="1"` when appropriate for Divs:
4319 when `native_divs` and `markdown_in_html_blocks` are disabled
4320 but `raw_html` and `markdown_attribute` are enabled.
4324 + Use right fold for `escapeString`. This is more elegant than
4325 the explicit recursive code we were using.
4326 + Avoid `{}` after control sequences when escaping.
4327 `\ldots{}.` doesn't behave as well as `\ldots.` with the latex
4328 ellipsis package. This patch causes pandoc to avoid emitting
4329 the `{}` when it is not necessary. Now `\ldots` and other
4330 control sequences used in escaping will be followed by either
4331 a `{}`, a space, or nothing, depending on context.
4332 + For beamer, include contents under headers superordinate to
4333 slidelevel (#4317). Currently we keep the fancy title slide, and
4334 add a new slide with the same title and whatever content was
4337 * Powerpoint writer (Jesse Rosenthal): support underlines.
4338 Use span with single class "underline" as in docx writer.
4340 * Muse writer: escape secondary notes (Alexander Krotov).
4342 * FB2 writer: add section identifiers support (#5229, John KetzerX).
4344 * Make `--fail-if-warnings` work for PDF output (#5343).
4346 * Lua filters (Albert Krewinkel):
4348 + Load module `pandoc` before calling `init.lua` (#5287). The file
4349 `init.lua` in pandoc's data directory is run as part of pandoc's
4350 Lua initialization process. Previously, the `pandoc` module was
4351 loaded in `init.lua`, and the structure for marshaling was
4352 set up after. This allowed simple patching of element
4353 marshaling, but made using `init.lua` more difficult. Now, all
4354 required modules are now loaded before calling `init.lua`. The
4355 file can be used entirely for user customization. Patching
4356 marshaling functions, while discouraged, is still possible via
4358 + All Lua modules bundled with pandoc, i.e., `pandoc.List`,
4359 `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the
4360 `pandoc` module. They are assigned to the fields `List`, `mediabag`,
4361 `utils`, and `text`, respectively.
4363 * Text.Pandoc.Lua (Albert Krewinkel):
4365 + Split `StackInstances` into smaller Marshaling modules.
4366 + Get `CommonState` from Lua global. This allows more control over
4367 the common state from within Lua scripts.
4371 + Support the `subject` metadata variable (#5289, Pascal Wagler).
4372 + Add `\frontmatter`, `\mainmatter`, `\backmatter`
4373 for book classes (#5306).
4375 * epub3 template: Add titlepage class to section (#5269).
4377 * HTML5 template: Add ARIA role `doc-toc` for table of contents (#4213).
4379 * Make `--metadata-file` use selected extensions (#5279, #5272, Mauro Bieg).
4381 * Text.Pandoc.Shared:
4383 + Remove `withTempDir` [API change].
4384 + Add new exported function `defaultUserDataDirs` [API change].
4385 + Add `filterIpynbOutput` [API change].
4386 + `compactify`: Avoid lists with a mix of Plain and Para elements
4389 * Text.Pandoc.Translations: reorder alphabetically and remove `Author`
4390 (#5334, Mauro Bieg).
4392 * Text.Pandoc.Extensions:
4394 + More carefully groom ipynb default extensions.
4395 + Add `all_symbols_escapable` to `githubMarkdownExtensions`.
4399 + Use system temp directory when possible (#1192). Previously we
4400 created temp dirs in the working directory, partly (a) because
4401 there were problems using the system temp directory on Windows,
4402 when their pathnames included tildes, and partly (b) because
4403 programs like `epstopdf.pl` would not be allowed to write to
4404 directories outside the working directory in restricted mode. We
4405 now (a) use the system temp dir except when the path includes
4406 tildes, and (b) set `TEXMFOUTPUT` when creating the PDF, so that
4407 subsidiary programs can use the system temp directory. This
4408 addresses problems that occurred when pandoc was used in a
4409 synced directory (such as Dropbox).
4410 + Change types of subsidiary functions to PandocIO, to allow
4411 warnings to be threaded through (#5343).
4413 * Text.Pandoc.MIME: add WebP (#5267, Mauro Bieg).
4415 * Tests: avoid calling `findPandoc` multiple times.
4417 * Old tests: remove need for temp files by using `pipeProcess`.
4419 * Added simple ipynb reader/writer tests (#5274).
4421 * Rearrange `--help` output in a more rational way, with common
4422 options at the beginning and options grouped by function (#5336).
4424 * trypandoc: Add JATS and other missing formats (Arfon Smith, #5291).
4426 * Add missing copyright notices and remove license boilerplate (#4592,
4429 * Use latest basement/foundation on 32bit windows.
4431 * Use latest skylighting (#5328). Custom syntax definitions no
4432 longer try to load `language.dtd`.
4434 * Require texmath 0.11.2.1
4436 * Use latest pandoc-citeproc (0.16.1.1).
4440 + Clarify variable substitution indentation in templates (#5338,
4441 Agustín Martín Barbero).
4442 + Reorder custom-styles section (#5324, Mauro Bieg).
4444## pandoc 2.6 (2019-01-30)
4446 * Support ipynb (Jupyter notebook) as input and output format.
4448 + Add `ipynb` as input and output format (extension `.ipynb`).
4449 + Added Text.Pandoc.Readers.Ipynb [API change].
4450 + Added Text.Pandoc.Writers.Ipynb [API change].
4451 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
4453 + Depend on ipynb library.
4454 + Note: there is no template for ipynb.
4456 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
4457 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
4460 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
4461 extension. Task lists are supported from markdown and gfm input.
4462 They should work, to some degree, in all output formats, though in
4463 most formats you'll get a bullet list with a unicode character for
4464 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
4465 box is used as the list marker. API changes:
4467 + Added constructor `Ext_task_lists` to `Extension`.
4468 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
4471 * Allow some command line options to take URL in addition to FILE.
4472 `--include-in-header`, `--include-before-body`, `--include-after-body`.
4476 + Handle empty `start` attribute (see #5162).
4477 + Treat `textarea` as a verbatim environment (#5241) and preserve
4482 + Change treatment of `number-lines` directive (Brian Leung,
4483 #5207). Directives of this type without numeric inputs should
4484 not have a `startFrom` attribute; with a blank value, the
4485 writers can produce extra whitespace.
4486 + Removed superfluous `sourceCode` class on code blocks (#5047).
4487 + Handle `sourcecode` directive as synonynm for `code` (#5204).
4491 + Remove `sourceCode` class for literate Haskell code blocks
4492 (#5047). Reverse order of `literate` and `haskell` classes on
4493 code blocks when parsing literate Haskell, so `haskell` is
4495 + Treat `<textarea>` as a verbatim environment (#5241).
4499 + Handle `minlevel` option differently (#5190, Brian Leung).
4500 When `minlevel` exceeds the original minimum level observed in
4501 the file to be included, every heading should be shifted
4503 + Allow for case of `:minlevel == 0` (#5190).
4504 + Fix treatment of links to images (#5191, Albert Krewinkel).
4505 Links with descriptions which are pointing to images are no
4506 longer parsed as inline images, but as links.
4507 + Add support for #+SELECT_TAGS (Brian Leung).
4508 + Separate filtering logic from conversion function (Brian Leung).
4510 * TWiki reader: Fix performance issue with underscores (#3921).
4512 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
4513 We may not still be exactly matching mediawiki's algorithm.
4517 + Remove `sourceCode` class for literate Haskell code blocks
4518 (#5047). Reverse order of `literate` and `haskell` classes on
4519 code blocks when parsing literate Haskell, so `haskell` is
4521 + Support `\DeclareMathOperator` (#5149).
4522 + Support `\inputminted` (#5103).
4523 + Support `\endinput` (#5233).
4524 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
4525 was interpreted as a file extension, leading pandoc not to add
4526 `.tex` (and thus not to find the file). The new behavior matches
4531 + Use `mapLeft` from Shared instead of defining own.
4533 * Docx reader (Jesse Rosenthal):
4535 + Handle level overrides (#5134).
4539 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
4540 Also supports additional core properties: `subject`, `lang`,
4541 `category`, `description`.
4542 + Make Level into a real type, instead of an alias for a tuple
4545 * ICML writer (Mauro Bieg):
4547 + Support custom-styles (#5137, see #2106).
4548 + Support unnumbered headers (#5140).
4550 * Texinfo writer: Use header identifier for anchor if present (#4731).
4551 Previously we were overwriting an existing identifier with a new one.
4553 * Org writer: Preserve line-numbering for example and code blocks
4556 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
4557 in HTML and PDF as a unicode minus sign.
4559 * Ms writer: Ensure we have a newline after .EN in display math (#5251).
4561 * RST writer: Don't wrap simple table header lines (#5128).
4563 * Asciidoc writer: Shorter delimiters for tables, blockquotes
4564 (#4364). This matches asciidoctor reference docs.
4566 * Dokuwiki writer: Remove automatic `:` prefix before internal image
4567 links (#5183, Damien Clochard). This prevented users from making
4568 relative image links.
4570 * Zimwiki writer: remove automatic colon prefix before internal
4571 images (#5183, Damien Clochard).
4573 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
4574 (#5105). Captions used to have the word 'caption' prepended; this
4575 has been removed. Also, 'thumb' is used instead of 'frame' to
4576 allow images to be resized.
4580 + Ensure that we don't get > 2 levels of section nesting,
4581 even with slide level > 2 (#5168).
4582 + If slide level == N but there is no N-level header, make
4583 sure the next header with level > N gets treated as a slide
4584 and put in a section, rather than remaining loose (#5168).
4588 + Make `plain` RawBlocks pass through in `plain` output.
4589 + Include needed whitespace after HTML figure (#5121).
4590 We use HTML for a figure in markdown dialects that can't
4591 represent it natively.
4593 * Commonmark writer:
4595 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
4596 + Implement `--toc` (`writerTableOfContents`)
4597 in commonmark/gfm writers (#5172).
4601 + Ensure that picture transforms are done on metadata too.
4602 + Small fixes to `nav.xhtml`:
4603 Add 'landmarks' id attribute to the landmarks nav.
4604 Replace old default CSS removing numbers from ol.toc li
4605 with new rules that match `nav#toc ol, nav#landmarks ol`.
4606 We keep the `toc` class on `ol` for backwards compatibility.
4610 + Make raw content marked `beamer` pass through in `beamer`
4611 output (pandoc/lua-filters#40).
4612 + Beamer: avoid duplicated `fragile` property in some cases
4614 + Add `#` special characters for listings (#4939).
4615 This character needs special handling in `\lstinline`.
4617 * RTF writer: use `toTableOfContents` from Shared to replace
4618 old duplicated code.
4622 + Support custom properties. Also supports additional core
4623 properties: `subject`, `category`, `description` (#5252,
4624 Agustín Martín Barbero).
4625 + Use `toTableOfContents` from Shared to replace old duplicated code.
4627 * ODT writer (Augustín Martín Barbero):
4629 + Fix typo in custom properties (#2839).
4630 + Improve standard properties, including the following core
4631 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
4632 `keywords`, `initial-creator` (from authors), `creation-date`
4633 (actual creation date) (#5252).
4637 + Allow '-' in filenames for custom lua writers (#5187).
4638 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
4639 + sample.lua: Add a missing `>` (MichaWiedenmann).
4641 * reveal.js template: Add `zoomKey` config (#4249).
4643 * HTML5 template: Remove unnecessary type="text/css" on style and
4644 link for HTML5 (#5146).
4646 * LaTeX template (Andrew Dunning, except where noted):
4648 + Prevent fontspec from scaling `mainfont` to match the default
4649 font, Latin Modern. A main font set to 12pt could
4650 previously appear between 11pt to 13pt depending on its design.
4651 To return to the earlier rendering, use `-V
4652 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
4653 + Display monospaced fonts without TeX ligatures when using
4654 `--pdf-engine=lualatex`. It now matches the behaviour of other
4655 engines (#5212, #5218).
4656 + Remove the deprecated `romanfont` variable. The functionality of
4657 `mainfont` is identical (#5218).
4658 + Render `\subtitle` with the standard document classes.
4659 Previously, `subtitle` only appeared when using the KOMA-Script
4660 classes or Beamer (#5213, #5244).
4661 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
4662 several language selection problems, notably with retaining
4663 French spacing conventions when switching to a verbatim
4664 environment or another language; and in printing Greek text
4665 without hyphenation (#5193).
4666 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
4667 available, improving the appearance of URLs by allowing them to
4668 break at additional points (#5193).
4669 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
4670 to correct heading levels in PDF bookmarks: see the [KOMA-Script
4671 3.26 release notes](https://komascript.de/release3.26) (#5193).
4672 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
4673 avoid a possible error when using additional packages alongside
4674 footnotes in tables (#5193, closes #4861).
4675 + Remove obsolete `fixltx2e` package, which has no functionality
4676 with TeX Live 2015 or later (#5193).
4677 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
4678 + Restrict `institute` variable to Beamer (#5219).
4679 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
4680 package if available to make footnotes in tables compatible
4681 with `hyperref` (#5234).
4682 + Number parts and chapters in book classes only if the
4683 `numbersections` variable is set, for consistency with other
4684 output formats. To return to the previous behaviour, use
4685 `-V numbersections -V secnumdepth=0` (#5235).
4686 + Reindent file (#5193).
4687 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
4688 + Set default listings language for lua, assembler (#5227, John
4689 MacFarlane). Otherwise we get an error when trying to compile code
4690 with lua or assembler code. To change the default dialect
4691 (currently 5.3 for lua and x86masm for assembler), you can use
4692 `--include-in-header` to inject something like
4693 `\lstset{defaultdialect=[5.2]Lua}`.
4695 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
4696 in an instance of PandocMonad, like the other readers and
4697 writers. [API change]
4699 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
4700 in an instance of PandocMonad, like the other readers and
4701 writers. [API change]
4703 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
4704 for `PandocError`. [API change]
4706 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
4707 This is refactored out from the Markdown writer.
4708 It can be used in other writers to create a table of contents.
4710 * Improve error messages for UTF-8 decoding errors. Now we give
4711 the filename and byte offset (#4765).
4713 * Text.Pandoc.XML: Strip out illegal XML characters in
4714 `escapeXMLString` (#5119).
4716 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
4717 The implementation of `pipeProcess` was rewritten to fix sporadic
4718 failures caused by prematurely closed pipes.
4720 * Use `safeRead` instead of `read` everywhere in the code
4721 (John MacFarlane, Mauro Bieg, #5162, #5180).
4723 * Text.Pandoc.SelfContained: Decompress `.svgz` when
4724 converting to `data:` URI (#5163, Alexander Krotov).
4726 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
4727 (#5175, Alexander Krotov). [API change]
4729 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
4730 When pandoc is compiled with ghc 8.6, Windows paths are treated
4731 differently, and paths beginning `\\server` no longer work.
4732 This commit rewrites such patsh to `\\?\UNC\server` which works.
4733 The change operates at the level of argument parsing, so it
4734 only affects the command line program.
4736 * Simplify/fix reading of `--metadata` values on command line
4737 to avoid problems relating to hvr/HsYAML#7 (#5177).
4739 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
4740 Krewinkel). Incorrect types to pandoc element constructors are
4741 automatically converted to the correct types when possible. This was
4742 already done for most constructors, but conversions are now also done
4743 for nested types (like lists of lists).
4745 * Removed custom Setup.hs, use build-type: simple. The only thing we
4746 gained from the custom build was automatic installation of the man
4747 page when using 'cabal install'. But custom builds cause problems,
4748 e.g., with cross-compilation. Installation of the man page is
4749 better handled by packagers. Note to packagers (e.g. Debian): it
4750 may be necessary to add a step installing the man page with the
4753 * Allow latest http-client, tasty, zip-archive, Glob.
4755 * Require skylighting >= 0.7.5, adding support for sml, J,
4758 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
4759 works well with cabal v2.
4763 + Use button for installer links (John MacFarlane, Mauro Bieg,
4765 + Fix links and bump required stack version (max).
4766 + Improve installation notes on associated software (Andrew
4767 Dunning). Includes explanation of how to install related tools
4768 with package managers (since the method of installing
4769 `rsvg-convert` is not obvious).
4771 * doc/org.md: improve documentation of org features (Albert
4774 * doc/lua-filters.md: use 3rd level headers for module fields.
4778 + Clarify automatic identifiers (#5201). We remove
4779 non-alphanumerics. This includes, e.g., emojis.
4780 + Fix example for Div with id (Geoffrey Ely).
4781 + Update list of LaTeX packages used.
4782 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
4783 + Mention `raw_attribute` in documentation for `raw_html` and
4784 `raw_tex` (#5240, thanks to @eiro).
4785 + Clarify that `$sep$` must come right before `$endfor$` in templates
4787 + Document metadata support for docx, odt, pptx writers (Agustín
4789 + Reorganize template variables (#5249, Andrew Dunning).
4790 Add additional headings to categorize variables, and
4791 alphabetize when there is large number; add more examples.
4792 + Document `date-meta` template variable (#5260, Tristan Stenner).
4794 * trypandoc: Fix CSS and viewport.
4796## pandoc 2.5 (2018-11-27)
4798 * Text.Pandoc.App: split into several unexported submodules (Albert
4799 Krewinkel): Text.Pandoc.App.FormatHeuristics,
4800 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
4801 Text.Pandoc.App.OutputSettings. This is motivated partly by the
4802 desire to reduce recompilations when something is modified,
4803 since App previously depended on virtually every other module.
4805 * Text.Pandoc.Extensions
4807 + Semantically, `gfm_auto_identifiers` is now a modifier of
4808 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
4809 be turned on, and then the type of identifier produced depends on
4810 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
4811 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
4812 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
4813 GitHub doesn't seem to strip non-ascii characters any more.
4815 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
4817 + Test AST object equality via Haskell (#5092). Equality of Lua
4818 objects representing pandoc AST elements is tested by unmarshalling
4819 the objects and comparing the result in Haskell.
4820 A new function `equals` which performs this test has been added to the
4821 `pandoc.utils` module.
4822 + Improve stringify. Meta value strings (MetaString)
4823 and booleans (MetaBool) are now converted to the literal string and the
4824 lowercase boolean name, respectively. Previously, all values of these
4825 types were converted to the empty string.
4827 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
4828 already exists (Alexander Krotov).
4830 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
4831 or beginning of line (#5050).
4833 * Text.Pandoc.Readers.Markdown
4835 + Fix parsing of citations, quotes, and underline emphasis
4836 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
4837 and underline emphasis were no longer recognized after certain
4838 symbols, like parentheses (#5099, #5053).
4839 + In pandoc 2.4, a soft break after an abbreviation would be
4840 relocated before it to allow for insertion of a nonbreaking
4841 space after the abbreviation. This behavior is here reverted.
4842 A soft break after an abbreviation will remain, and no nonbreaking
4843 space will be added. Those who care about this issue should take care not
4844 to end lines with an abbreviation, or to insert nonbreaking spaces
4847 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
4848 `<body>` (Alexander Krotov). Some libraries include custom elements
4851 * Text.Pandoc.Readers.HTML
4853 + Allow `tfoot` before body rows (#5079).
4854 + Parse `<small>` as a Span with class "small" (#5080).
4855 + Allow thead containing a row with `td` rather than `th` (#5014).
4857 * Text.Pandoc.Readers.LaTeX
4859 + Cleaned up handling of dimension arguments. Allow decimal points,
4861 + Don't allow arguments for verbatim, etc.
4862 + Allow space before bracketed options.
4863 + Allow optional arguments after `\\` in tables.
4864 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
4865 but know that these font changing commands take no arguments.
4867 * Text.Pandoc.Readers.Muse
4869 + Trim whitespace before parsing grid table cells (Alexander Krotov).
4870 + Add grid tables support (Alexander Krotov).
4872 * Text.Pandoc.Shared
4874 + For bibliography match Div with id `refs`, not class `references`.
4875 This was a mismatch between pandoc's docx, epub, latex, and markdown
4876 writers and the behavior of pandoc-citeproc, which actually looks for a
4877 div with id `refs` rather than one with class `references`.
4878 + Exactly match GitHub's identifier generating algorithm (#5057).
4879 + Add parameter for `Extensions` to `uniqueIdent` and
4880 `inlineListToIdentifier` (#5057). [API change]
4881 This allows these functions to be sensitive to the settings of
4882 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
4883 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
4884 also means that `gfm_auto_identifiers` can now be used in all formats.
4886 * Text.Pandoc.Writers.AsciiDoc
4888 + Use `.`+ as list markers to support nested ordered lists (#5087).
4889 + Support list number styles (#5089).
4890 + Render Spans using `[#id .class]#contents#` (#5080).
4892 * Text.Pandoc.Writers.CommonMark
4894 + Respect `--ascii` (#5043, quasicomputational).
4895 + Make sure `--ascii` affects quotes, super/subscript.
4897 * Text.Pandoc.Writers.Docx
4899 + Fix bookmarks to headers with long titles (#5091).
4900 Word has a 40 character limit for bookmark names. In addition, bookmarks
4901 must begin with a letter. Since pandoc's auto-generated identifiers may
4902 not respect these constraints, some internal links did not work. With
4903 this change, pandoc uses a bookmark name based on the SHA1 hash of the
4904 identifier when the identifier isn't a legal bookmark name.
4905 + Add bookmarks to code blocks (Nikolay Yakimov).
4906 + Add bookmarks to images (Nikolay Yakimov).
4907 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
4909 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
4912 <meta name="calibre:series" content="Classics on War and Politics"/>
4914 are now included from an epub XML metadata file. You can also include
4915 this information in your YAML metadata, like so:
4918 series: Classics on War and Policitics
4920 In addition, ibooks-specific metadata can now be included via an XML
4921 file. (Previously, it could only be included via YAML metadata, see
4924 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `"` outside of
4927 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
4928 This avoids splitting up the output unnecessarily into separate elements.
4930 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
4931 if `writerIncremental` is True (#5072).
4933 * Text.Pandoc.Writers.Muse (Alexander Krotov).
4935 + Output tables as grid tables if they have multi-line cells.
4936 + Indent simple tables only on the top level.
4937 + Output tables with one column as grid tables.
4938 + Add support for `--reference-location`.
4939 + Internal improvements.
4941 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
4942 #5095). This was a regression in pandoc 2.4.
4944 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
4946 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
4948 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
4949 when there are several choices for a particular character.
4951 * data/abbreviations
4953 + Add additional abbreviations (Andrew Dunning)
4954 Many of these borrowed from the Chicago Manual of Style 10.42,
4955 'Scholarly abbreviations'.
4959 + Asciidoc template: add :lang: to title header is lang is set in
4962 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
4963 Disabling the flag will cause derivation of ToJSON and FromJSON
4964 instances via GHC Generics instead of Template Haskell. The flag is
4965 enabled by default, as deriving via Generics can be slow (see #4083).
4969 + Tweaked drop-down lists.
4970 + Put link to site in footer.
4971 + Preselect output format.
4972 + Update on change of in or out format.
4973 + Add man input format.
4977 + Fix outdated description of latex_macros extension.
4978 + Clarified placement of bibliography.
4979 + Added "A note on security."
4980 + Fix note on curly brace syntx for locators.
4981 + Document new explicit syntax for citeproc locators.
4982 + Remove confusing cross-links for some extensions.
4983 + Don't put pandoc in code ticks in heading.
4984 + Document that `--ascii` works for gfm and commonmark too.
4985 + Add `man` to `--from` options.
4987 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
4990## pandoc 2.4 (2018-11-03)
4994 * New input format `man` (Yan Pashkovsky, John MacFarlane).
4998 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
4999 via the new `writerPreferAscii` field in `WriterOptions`.
5000 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
5001 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
5002 Previously the to-ascii translation was done in Text.Pandoc.App,
5003 and thus not available to those using the writer functions
5006 * `--ascii` now works with Markdown output. HTML5 character reference
5009 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
5010 guaranteed, but the writer will use commands like `\"{a}` and `\l`
5011 whenever possible, to avoid emitting a non-ASCII character.
5013 * For HTML5 output, `--ascii` now uses HTML5 character reference
5014 entities rather than numerical entities.
5016 * Improved detection of format based on extension (in Text.Pandoc.App).
5017 We now ensure that if someone tries to convert a file for a
5018 format that has a pandoc writer but not a reader, it won't just
5019 default to markdown.
5021 * Add viz. to abbreviations file (#5007, Nick Fleisher).
5023 * AsciiDoc writer: always use single-line section headers,
5024 instead of the old underline style (#5038). Previously the single-line
5025 style would be used if `--atx-headers` was specified, but
5026 now it is always used.
5028 * RST writer: Use simple tables when possible (#4750).
5030 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
5031 quasicomputational). Previously, the writer would unconditionally
5032 emit HTML output for subscripts, superscripts, strikeouts (if the
5033 strikeout extension is disabled) and small caps, even with
5034 `raw_html` disabled. Now there are plain-text (and, where
5035 possible, fancy Unicode) fallbacks for all of these corresponding
5036 (mostly) to the Markdown fallbacks, and the HTML output is only
5037 used when `raw_html` is enabled.
5039 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
5040 This allows raw openxml blocks and inlines to be used in the pptx
5041 writer. Caveats: (1) It's up to the user to write
5042 well-formed openxml. The chances for corruption, especially with
5043 such a brittle format as pptx, is high. (2) Because of
5044 the tricky way that blocks map onto shapes, if you are using
5045 a raw block, it should be the only block on a slide
5046 (otherwise other text might end up overlapping it). (3) The
5047 pptx ooxml namespace abbreviations are different from the
5048 docx ooxml namespaces. Again, it's up to the user to get it
5049 right. Unzipped document and ooxml specification should be
5052 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
5053 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
5054 we tell katex to convert the contents of span elements with
5055 class "math". Since math has already been identified, this
5056 avoids wasted time parsing for LaTeX delimiters. Note, however,
5057 that this may yield unexpected results if you have span elements
5058 with class "math" that don't contain LaTeX math.
5059 Also, use latest version of KaTeX by default (0.9.0).
5061 * The man writer now produces ASCII-only output, using groff escapes,
5066 + Add title, author and date to metadata; any remaining
5067 metadata fields are added as `meta:user-defined` tags.
5068 + Implement table caption numbering (#4949, Nils Carlson).
5069 Captioned tables are numbered and labeled with format "Table 1:
5070 caption", where "Table" is replaced by a translation, depending
5071 on the value of `lang` in metadata. Uncaptioned tables are not
5073 + OpenDocument writer: Implement figure numbering in captions (#4944,
5074 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
5075 The format in the caption is "Figure 1: caption" and so on
5076 (where "Figure" is replaced by a translation, depending on the
5077 value of `lang` in the metadata). Captioned figures are numbered
5078 consecutively and uncaptioned figures are not enumerated. This
5079 is necessary in order for LibreOffice to generate an
5080 Illustration Index (Table of Figures) for included figures.
5082 * RST reader: Pass through fields in unknown directives as div attributes
5083 (#4715). Support `class` and `name` attributes for all directives.
5085 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
5086 Brian Leung). Headers with the corresponding tags should not
5087 appear in the output.
5089 * Log warnings about missing title attributes now include a
5090 suggestion about how to fix the problem (#4909).
5092 * Lua filter changes (Albert Krewinkel):
5094 + Report traceback when an error occurs. A proper Lua traceback is
5095 added if either loading of a file or execution of a filter
5096 function fails. This should be of help to authors of Lua filters
5097 who need to debug their code.
5099 + Allow access to pandoc state (#5015). Lua filters and custom
5100 writers now have read-only access to most fields of pandoc's
5101 internal state via the global variable `PANDOC_STATE`.
5103 + Push ListAttributes via constructor (Albert Krewinkel).
5104 This ensures that ListAttributes, as present in OrderedList elements,
5105 have additional accessors (viz. `start`, `style`, and `delimiter`).
5107 + Rename ReaderOptions fields, use snake_case. Snake case is used
5108 in most variable names, using camelCase for these fields was an
5109 oversight. A metatable is added to ensure that the old field
5110 names remain functional.
5112 + Iterate over AST element fields when using `pairs`. This makes
5113 it possible to iterate over all ield names of an AST element by
5114 using a generic `for` loop with pairs`:
5116 for field_name, field_content in pairs(element) do
5120 Raw table fields of AST elements should be considered an
5121 implementation detail and might change in the future. Accessing
5122 element properties should always happen through the fields
5123 listed in the Lua filter docs.
5125 Note that the iterator currently excludes the `t`/`tag` field.
5127 + Ensure that MetaList elements behave like Lists. Methods usable
5128 on Lists can also be used on MetaList objects.
5130 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
5131 object to the constructor `pandoc.MetaList` now returns the
5132 passed list as a MetaList. This is consistent with the
5133 constructor behavior when passed an (untagged) list.
5135 * Custom writers: Custom writers have access to the global variable
5136 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
5137 a userdata wrapper around the full pandoc AST and exposes two
5138 fields, `meta` and `blocks`. The field content is only
5139 marshaled on-demand, performance of scripts not accessing the
5140 fields remains unaffected.
5144 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
5146 * Text.Pandoc.Shared:
5148 + Export `splitSentences`. This was previously duplicated in the Man and
5150 + Add `ToString` typeclass (Alexander Krotov).
5152 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
5154 * Text.Pandoc.Parsing
5156 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
5157 + Generalize `readWithM` from `[Char]` to any `Char` Stream
5158 that is a `ToString` instance (Alexander Krotov).
5160 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
5162 * Text.Pandoc.XML: add `toHtml5Entities`.
5164 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
5167 * Text.Pandoc.Writers.Shared
5169 + Add exported functions `toSuperscript` and
5170 `toSubscript` (quasicomputational, #4528).
5171 + Remove exported functions `metaValueToInlines`,
5172 `metaValueToString`. Add new exported functions
5173 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
5174 `lookupMetaString`. Use these whenever possible for uniformity
5175 in writers (Mauro Bieg, #4907). (Note that
5176 removed function `metaValueToInlines` was in previous
5178 + Add `metaValueToString`.
5182 + Expose more useful internals (Albert Krewinkel):
5184 - `runFilterFile` to run a Lua filter from file;
5185 - data type `Global` and its constructors; and
5186 - `setGlobals` to add globals to a Lua environment.
5188 This module also contains `Pushable` and `Peekable` instances
5189 required to get pandoc's data types to and from Lua. Low-level
5190 Lua operation remain hidden in Text.Pandoc.Lua.
5192 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
5194 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
5195 `apply` (Albert Krewinkel).
5197### Bug fixes and under-the-hood improvements
5199 * Text.Pandoc.Parsing
5201 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
5202 + Rewrite `uri` without `withRaw` (Alexander Krotov).
5203 + Generalize `parseFromString` and `parseFromString'` to any
5204 streams with Char token (Alexander Krotov)
5205 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
5207 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
5210 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
5215 + Work around HXT limitation for --syntax-definition with windows
5217 + Always preserve tabs for man format. We need it for tables.
5218 + Split command line parsing code into a separate unexported
5219 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
5221 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
5224 * New unexported module Text.Pandoc.RoffChar, provided character
5225 escape tables for roff formats.
5227 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
5228 accept processing instructions (#3123, regression since 2.0).
5230 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
5231 account for empty lists (Alexander Krotov).
5233 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
5234 headerless table (#4382).
5236 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
5237 blocks (Brian Leung).
5239 * Text.Pandoc.Readers.Vimwiki:
5241 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
5243 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
5245 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
5246 `[Char]` (Alexander Krotov).
5248 * Text.Pandoc.Readers.LaTeX
5250 + Allow space at end of math after `\` (#5010).
5251 + Add support for `nolinkurl` command (#4992, Brian Leung).
5252 + Simplified type on `doMacros'`.
5253 + Tokenize before pulling tokens, rather than after (#4408). This
5254 has some performance penalty but is more reliable.
5255 + Make macroDef polymorphic and allow in inline context.
5256 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
5257 I have actually seen tex like this in the wild.
5258 + Improved parsing of `\def`, `\let`. We now correctly parse:
5268 + Improve parsing of `\def` argspec.
5269 + Skip `\PackageError` commands (see #4408).
5270 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
5271 so no raw tex should result unless we explicitly say `+raw_tex`.
5272 Previously some raw commands did make it through.
5273 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
5274 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
5275 Text.Pandoc.Readers.LaTeX.Lang (unexported).
5276 + Simplified accent code using unicode-transforms.
5277 New dependency on unicode-transforms package for normalization.
5278 + Allow verbatim blocks ending with blank lines (#4624).
5279 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
5280 This collects some of the general-purpose code from the LaTeX reader,
5281 with the aim of making the module smaller.
5283 * Text.Pandoc.Readers.Markdown
5285 + Fix awkward soft break movements before abbreviations (#4635).
5286 + Add updateStrPos in a couple places where needed.
5288 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
5289 (#4947). These are variants for "complex scripts" like Arabic
5290 and are now treated just like b, i (bold, italic).
5292 * Text.Pandoc.Readers.Muse (Alexander Krotov)
5294 + Try to parse lists before trying to parse table.
5295 This ensures that tables inside lists are parsed correctly.
5296 + Forbid whitespace after opening and before closing markup
5298 + Parse page breaks.
5299 + Simplify `museToPandocTable` to get rid of partial functions.
5300 + Allow footnotes to start with empty line.
5301 + Make sure that the whole text is parsed.
5302 + Allow empty headers. Previously empty headers caused parser to
5303 terminate without parsing the rest of the document.
5304 + Allow examples to be indented with tabs.
5305 + Remove indentation from examples indicated by `{{{` and `}}}`.
5306 + Fix parsing of empty cells.
5307 + Various changes to internals.
5308 + Rewrite some parsers in applicative style.
5309 + Avoid tagsoup dependency.
5310 + Allow table caption to contain `+`.
5312 * Text.Pandoc.Writers.LaTeX
5314 + Add newline if math ends in a comment (#4880). This prevents the
5315 closing delimiter from being swalled up in the comment.
5316 + With `--listings`, don't pass through org-babel attributes (#4889).
5317 + With `--biblatex`, use `\autocite` when possible (#4960).
5318 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
5319 we don't have prefixes and suffixes, we use instead
5320 `\autocite{a1,a2,a3}`.
5321 + Fix description lists contining highlighted code (#4662).
5323 * Text.Pandoc.Writers.Man
5325 + Don't wrap `.SH` and `.SS` lines (#5019).
5326 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
5327 one paragraph definitions.
5328 + Moved common groff functions to Text.Pandoc.Writers.Groff.
5329 * Fix strong/code combination on man (should be `\f[CB]` not
5330 `\f[BC]`, see #4973).
5331 + Man writer: use `\f[R]` instead of `\f[]` to reset font
5332 (Alexander Krotov, #4973).
5333 + Move `splitSentences` to Text.Pandoc.Shared.
5335 * Text.Pandoc.Writers.Docx
5337 + Add framework for custom properties (#3034). So far, we don't
5338 actually write any custom properties, but we have the
5339 infrastructure to add this.
5341 + Handle tables in table cells (#4953). Although this is not
5342 documented in the spec, some versions of Word require a `w:p`
5343 element inside every table cell. Thus, we add one when the
5344 contents of a cell do not already include one (e.g. when a table
5345 cell contains a table).
5347 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
5348 Adjust header levels so that n+1 level headers are only
5349 found under n level headers, and the top level is 1.
5351 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
5352 alignment (#4385). This change eliminates the large gap we used
5353 to have between bullet and text, and also ensures that numbers
5354 in numbered lists will be right-aligned.
5356 * Text.Pandoc.Writers.ZimWiki
5358 + Number ordered list items sequentially, rather than always
5360 + Remove extra indentation on lists (#4963).
5362 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
5363 `stylesheet` (Mauro Bieg, #4990).
5365 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
5366 normal content (#4629). Otherwise a raw block can prevent a
5367 paragraph from being recognized as such.
5369 * Text.Pandoc.Writers.Ms
5371 + Removed old `escapeBar`. We don't need this now that we use
5373 + Moved common code to Text.Pandoc.Writers.Roff and to
5374 Text.Pandoc.RoffChar.
5375 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
5376 with the man writer).
5378 * Text.Pandoc.Writers.Muse (Alexander Krotov).
5380 + Add support for grid tables.
5381 + Fix Muse writer style.
5382 + Use `length` instead of `realLength` to calculate definition
5383 indentation. Muse parsers don't take character width into
5384 account when calculating indentation.
5385 + Do not insert newline before lists.
5386 + Use lightweight markup after `</em>` tag.
5388 * New unexported module Text.Pandoc.Writers.Roff, providing functions
5389 useful for all roff format writers (man, ms).
5393 + Move globals handling to separate module Text.Pandoc.Lua.Global
5396 + Lua filter internals: push Shared.Element as userdata (Albert
5397 Krewinkel). Hierarchical Elements were pushed to Lua as plain
5398 tables. This is simple, but has the disadvantage that marshaling
5399 is eager: all child elements will be marshaled as part of the
5400 object. Using a Lua userdata object instead allows lazy access
5401 to fields, causing content marshaling just (but also each time)
5402 when a field is accessed. Filters which do not traverse the full
5403 element contents tree become faster as a result.
5405### Default template changes
5409 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
5410 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
5412 * AsciiDoc template: use single-line style for title.
5414 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
5417 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
5420 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
5422 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
5425### Documentation improvements
5429 + Add chromeos install instructions (#4958) (Evan Pratten).
5430 + Add note about TinyTeX.
5434 + Change `groff` -> `roff`.
5435 + Implement `--ascii` for Markdown writer.
5436 + Clarify LaTeX image dimensions output (Mauro Bieg).
5438 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
5440 * doc/getting-started.md: Added title to test1.md to avoid warning.
5442 * doc/lua-filters.md: merge type references into main document,
5443 fix description of Code.text (Albert Krewinkel).
5445### Build infrastructure improvements
5449 + Makefile: added quick-cabal, full-cabal targets.
5450 + Make .msi download targets insensitive to order of appveyor builds.
5452 * Update benchmarks for ghc 8.6.1.
5456 + Enable more compiler warnings (Albert Krewinkel).
5457 + Make base lower bound 4.8.
5458 + Bump upper bound for QuickCheck.
5459 + Bump upper bound for binary.
5460 + Updated version bounds for containers and haddock-library (#4974).
5461 + Added docx/docPropos/custom.xml to cabal data-files.
5462 + Require skylighting 0.7.4 (#4920).
5463 + New dependency on unicode-transforms package for normalization.
5465 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
5467 * Added `tools/changelog-helper.sh`.
5469 * Added test/grofftest.sh for testing the man reader on real man pages.
5471## pandoc 2.3.1 (2018-09-28)
5475 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
5476 This eliminates a regression introduced after pandoc 2.1.1, which
5477 caused inline constructions containing newlines not to be recognized.
5478 + Fix bug with internal link targets (#4919). They were gobbling up
5479 indented content underneath.
5481 * Markdown reader: distinguish autolinks in the AST. With this change,
5482 autolinks are parsed as Links with the `uri` class. (The same is true
5483 for bare links, if the `autolink_bare_uris` extension is enabled.)
5484 Email autolinks are parsed as Links with the `email` class. This
5485 allows the distinction to be represented in the AST.
5489 + Force inline code blocks to honor export options (Brian Leung).
5490 + Parse empty argument array in inline src blocks (Brian Leung).
5492 * Muse reader (Alexander Krotov):
5494 + Added additional tests.
5495 + Do not allow code markup to be followed by digit.
5496 + Remove heading level limit.
5497 + Simplify `<literal>` tag parsers
5498 + Parse Text instead of String. Benchmark shows 7% improvement.
5499 + Get rid of HTML parser dependency.
5500 + Various code improvements.
5502 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
5503 We do this in the LaTeX writer, and it avoids problems.
5504 Note that `/` works as a LaTeX path separator on Windows.
5508 + Add support for multiprenote and multipostnote arguments
5509 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
5510 the first prefix of a multicite, and the multipostnotes follow the
5512 + Fix a use of `last` that might take empty list. If you ran with
5513 `--biblatex` and have an empty document (metadata but no blocks),
5514 pandoc would previously raise an error because of the use of
5515 `last` on an empty list.
5517 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
5518 MonadFail instance (Jonas Scholl).
5520 * ODT Writer: Improve table header row style handling (Nils Carlson).
5521 This changes the way styles for cells in the header row
5522 and normal rows are handled in ODT tables.
5523 Previously a new (but identical) style was generated for
5524 every table, specifying the style of the cells within the table.
5525 After this change there are two style definitions for table cells,
5526 one for the cells in the header row, one for all other cells.
5527 This doesn't change the actual styles, but makes post-processing
5528 changes to the table styles much simpler as it is no longer
5529 necessary to introduce new styles for header rows and there are
5530 now only two styles where there was previously one per table.
5534 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
5535 class was added to autolinks by the HTML writer, but it had to
5536 guess what was an autolink and could not distinguish
5537 `[http://example.com](http://example.com)` from
5538 `<http://example.com>`. It also incorrectly recognized
5539 `[pandoc](pandoc)` as an autolink. Now the HTML writer
5540 simply passes through the `uri` attribute if it is present,
5541 but does not add anything.
5542 + Avoid adding extra section nestings for revealjs.
5543 Previously revealjs title slides at level (slidelevel - 1)
5544 were nested under an extra section element, even when
5545 the section contained no additional (vertical) content.
5546 That caused problems for some transition effects.
5547 + Omit unknown attributes in EPUB2 output. For example,
5548 `epub:type` attributes should not be passed through,
5549 or the epub produced will not validate.
5551 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
5552 The JATS spec does not allow these.
5554 * Textile writer: don't represent `uri` class explicitly
5555 for autolinks (#4913).
5557 * Lua filters (Albert Krewinkel):
5559 + Cleanup filter execution code.
5560 + Better error on test failure.
5562 * HTML, Muse reader tests: reduce time taken by round-trip test.
5564 * Added cabal.project.
5566 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
5568 * Use hslua v1.0.0 (Albert Krewinkel).
5570 * Fix `translations/ru` to use modern Russian orthography
5573 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
5574 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
5576## pandoc 2.3 (2018-09-16)
5578 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
5579 users to specify metadata in a YAML file, regardless of the
5580 input format (#1960).
5582 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
5584 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
5587 * Text.Pandoc.Readers.LaTeX.Types:
5589 + New type `ArgSpec` (API change).
5590 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
5595 + Use `tex` instead of `latex` for raw tex-ish content. We can't
5596 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
5597 use `tex` always. Note that if `context` or `latex` specifically
5598 is desired, you can still force that in a markdown document by
5599 using the raw attribute. Note that this change may affect some
5600 filters, if they assume that raw tex parsed by the Markdown reader
5601 will be RawBlock (Format `latex`). In most cases it should be
5602 trivial to modify the filters to accept `tex` as well.
5603 + Refactor and reorganize YAML code (Mauro Bieg).
5604 + Make `example_lists` work for interrupted lists
5605 without `startnum` (#4908).
5609 + Parse `<script type="math/tex` tags as math (#4877).
5610 These are used by MathJax in some configurations.
5611 + Extract spaces inside links instead of trimming them
5612 (Alexander Krotov, #4845).
5613 + Added round-trip tests (Alexander Krotov).
5614 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
5615 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
5616 (which is helpful for translation HTML documents using MathJaX).
5618 * Org reader (Albert Krewinkel):
5620 + Respect export option `p` for planning info. Inclusion of planning info
5621 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
5622 `p` export option: setting the option to `t` will add all planning
5623 information in a *Plain* block below the respective headline.
5624 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
5626 + Strip planning info from output. Planning info is parsed, but not
5627 included in the output (as is the default with Emacs Org-mode, #4867).
5631 + Handle parameter patterns for `\def` (#4768, #4771).
5632 For example: `\def\foo#1[#2]{#1 and #2}`.
5633 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
5634 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
5635 argument as the content.
5636 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
5637 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
5638 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
5639 will be parsed as a regular Quoted inline (not using the quotes
5640 appropriate to the foreign language).
5641 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
5642 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
5643 `\textcircled`. Also fall back to combining characters when composed
5644 characters are not available.
5645 + Resolve `\ref` for figure numbers.
5646 + Support `mintinline` (#4365, Marc Schreiber).
5647 + Fix siunitx unit commands so they are only recognized in
5648 siunitx contexts (#4842). For example, `\l` outside of an
5649 siunitx context should be l-slash, not l (for liter).
5650 + Fix double `unnumbered` class (#4838). The `unnumbered` class
5651 was being included twice for starred sections.
5653 * RST reader: Don't skip link definitions after comments (#4860).
5655 * Muse reader (Alexander Krotov):
5657 + Close the `</quote>` in indented tag test.
5658 There is already a separate test for unclosed `</quote>`.
5659 + Autonumber sections in the correct order. Parsing now stops
5660 at each section header to ensure the header is registered before
5661 parsing of the next section starts.
5662 + Move duplicate code into `headingStart` function.
5663 + Allow newline after opening `*` or `**`.
5664 + Don't allow digits after closing marker in lightweight markup
5665 This change makes reader more compatible with Emacs Muse.
5666 + Parse `<verse>` tag in one pass instead of using
5667 `parseFromString`. This change makes it possible to have
5668 verbatim `</verse>` tag inside verse.
5670 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
5671 (#4336). This allows pandoc to parse ODT document produced by KDE's
5674 * Muse writer (Alexander Krotov):
5676 + Output headers without asterisks if not on the top level.
5677 + Never wrap definition list terms.
5678 + Set `envInsideBlock = True` when rendering notes.
5679 + Use `""` instead of `[]` for empty String.
5680 + Check for whitespace in the beginning and end of Str's.
5681 + Escape `-`, `;` and `>` in the beginning of strings.
5682 + Escape list markers in the beginning of notes.
5683 + Normalize inline list before testing if tags should be used.
5684 + Use tags instead of lightweight markup for empty strings.
5685 + Use lightweight markup when possible.
5686 + Escape empty strings. This guarantees that `conditionalEscapeString`
5687 never returns empty string.
5688 + Wrap conditionalEscapeString result into `Muse` type.
5689 This removes the need to pass `envInsideLinkDescription` to it.
5690 + Separate `shouldEscapeString` function.
5691 + Simplify inline list rendering.
5692 + Replace newlines in strings with spaces.
5696 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
5697 + Properly handle display math in spans (#4826). This isn't a
5698 complete solution, since other nestings of display math may still
5699 cause problems, but it should work for what is by far the most
5704 + Always output `<dt>` element, even if it is empty (#4883,
5706 + Don't prefix `epub:` attributes with `data-`.
5708 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
5709 recognize these escapes.
5711 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
5712 Image scaling was broken when a width was set to a percentage.
5714 * EPUB writer: set `epub:type` on body element in each chapter,
5715 depending on the `epub:type` of the first section (#4823). This
5716 only affects epub3. See
5717 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
5719 * FB2 writer: put `coverpage` element between title and date rather than in
5720 `document-info` element (#4854).
5722 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
5724 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
5725 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
5726 tex is now used. Previously we'd "fake it with unicode" and fall
5727 back to tex when that didn't work. But newer haddock versions
5732 + Ensure that title element is always present, even if empty (#4839).
5733 + Put author tags in the template, rather than adding them in
5736 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
5737 `linkcolor` only affects internal links, and `urlcolor` only
5738 affects linked URLs. For external links, the option to use is
5741 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
5745 + Use `.. raw:: latex` for `tex` content.
5746 + Use `.. container` for generic Divs, instead of raw HTML.
5747 + Render Divs with admonition classes as admonitions (#4833).
5748 Also omit Div with class `admonition-title`. These are generated
5749 by the RST reader and should be omitted on round-trip.
5751 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
5752 (#4855, Antonio Terceiro).
5754 * HTML5 template: add the `title-block-header` identifier to the
5755 `header` element, to make it easier to style precisely (#4767,
5758 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
5759 José de Mattos Neto).
5761 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
5762 (#4853, Wandmalfarbe).
5764 * TEI template: improve `publicationStmt`. Add support for
5765 `publisher`, `address`, `pubPlace`, and `date` variables.
5767 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
5769 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
5771 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
5775 + Clarify that `--biblatex/--natbib` don't work directly for PDF
5777 + Document `epub:type` attribute (Mauro Bieg, #4901)
5778 + Clarify when `--resource-path` has an effect.
5779 + More detail on customization in syntax highlighting section.
5780 + Document encoding issue with `--listings` (#4871, Damien Clochard).
5781 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
5782 + Use https for context wiki links (#4910).
5786 + Link to lua-filters repository (#4874).
5787 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
5789 * lua-filters.md: add links to filters, and to lua-filters repository
5794 + Indicate that cabal >= 2.0 is needed.
5795 + Added chocolatey installation method (#4844, Miodrag Milić).
5797 * Travis: exclude round-trip tests, except for nightly test which can fail.
5799 * Use latest texmath, pandoc-citeproc.
5801 * Use a patched version of foundation until
5802 https://github.com/haskell-foundation/foundation/pull/503
5805 * Clean up appveyor build and Windows package creation.
5806 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
5807 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
5809 * Remove obsolete RELEASE-CHECKLIST.md.
5811 * Added additional compiler warnings in Makefile and CI builds.
5813## pandoc 2.2.3.2 (2018-08-07)
5815 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
5816 This fixes a regression in 2.2.3, which cause boolean values to
5817 be parsed as MetaInlines instead of MetaBool.
5819 We here record another undocumented (but desirable) change in 2.2.3:
5820 numerical metadata fields are now parsed as MetaInlines rather than
5823## pandoc 2.2.3.1 (2018-08-06)
5825 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
5826 (#4817). This fixes a regression in 2.2.3 which caused embedded
5827 mappings (e.g. mappings in sequences) not to work in YAML metadata.
5829## pandoc 2.2.3 (2018-08-05)
5831 * RST reader: improve parsing of inline interpreted text roles (#4811).
5833 + Use a Span with class "title-reference" for the default
5834 title-reference role.
5835 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
5836 and `Str`s for `title-reference`.
5837 + Use Code with class "interpreted-text" instead of Span and Str for
5838 unknown roles. (The RST writer has also been modified to round-trip
5840 + Disallow blank lines in interpreted text.
5841 + Backslash-escape now works in interpreted text.
5842 + Backticks followed by alphanumerics no longer end interpreted text.
5843 + Remove support for nested inlines (Francesco Occhipinti).
5844 RST does not allow nested emphasis, links, or other inline
5845 constructs. This fixes several bugs (#4581, #4561, #4792).
5847 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
5848 Krewinkel). Emphasis was not parsed when it followed directly after
5849 some block types (e.g., lists).
5851 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
5852 keys. Previously in 2.2.2 you could not do
5864 With this change, both forms work.
5866 * DocBook reader: metadata handling improvements.
5867 Now we properly parse title and subtitle elements that are direct
5868 children of book and article (as well as children of bookinfo,
5869 articleinfo, or info). We also now use the `subtitle` metadata
5870 field for subtitles, rather than tacking the subtitle on to the
5875 + Allow images to be directly nested within links (#4810, Francesco
5877 + Use `titleblock` instead of `title` variable for title block (#4803,
5878 Francesco Occhipinti). `titleblock` contains a properly formatted
5879 title and subtitle (using top-level headers). `title` and
5880 `subtitle` variables are still available and just contain the
5881 title and subtitle text. Note that this change will require an
5882 update to custom rst templates.
5883 + Render Code with class "interpreted-text" as interpreted text role.
5885 * MediaWiki writer: Avoid extra blank line in tables with empty cells
5886 (#4794). Note that the old output is semantically identical, but the
5887 new output looks better.
5889 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
5890 Krewinkel). Exposes a function converting which flattenes a list of
5891 blocks into a list of inlines. An example use case would be the
5892 conversion of Note elements into other inlines.
5894 * RST template: use `titleblock` instead of `title`. Users of
5895 custom RST templates will want to update this.
5897 * LaTeX template: Moved some beamer code in default.latex template.
5898 This change allows beamer themes to change the template and font (as
5899 Metropolis does) (#4450).
5901 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
5903 * Added test case for #4669 to repository.
5905 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
5909 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
5910 + Clarify when `csquotes` is used in LaTeX writer (#4514).
5911 + Add `commonmark` to list of output formats where `raw_tex` has an
5915## pandoc 2.2.2.1 (2018-07-19)
5917 * Fix regression finding templates in user data directory (#4777).
5918 Under version 2.2.1 and prior pandoc found latex templates in the
5919 templates directory under the data directory, but this broke in 2.2.2.
5921 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
5922 `rawLaTeXInline` (#4781). (This primarily affects the markdown
5923 reader, and other readers that accept raw tex.)
5924 Starting in 2.2.2, everything after an `\input` (or `\include`)
5925 in a markdown file would be parsed as raw LaTeX.
5929 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
5930 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
5931 Unlike `tags`, `keywords` is used in some of the writers
5932 and default templates.
5934 * Add missing `rollingLinks` option to revealjs template (#4778,
5937## pandoc 2.2.2 (2018-07-16)
5939 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
5940 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
5942 Note: HsYAML implements YAML 1.2, in which the valid true
5943 values are `true`, `True`, `TRUE`. This means a change in
5944 the semantics of YAML metadata that could affect users:
5945 `y`, `yes`, and `on` no longer count as true values.
5947 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
5950 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
5951 Anders Waldenborg). Non-ascii characters were not stripped from
5952 identifiers even if the `ascii_identifiers` extension was
5953 enabled (which is is by default for gfm).
5955 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
5956 Remove trailing Space from list items. Parse lists that have no space
5961 + Treat `lilypond` as a verbatim environment (#4725).
5962 + Parse figure label into Image id (#4700, Mauro Bieg).
5963 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
5964 + Allow spaces around `\graphicspath` arguments (#4698).
5965 + Handle includes without surrounding blanklines (#4553).
5966 In addition, `\input` can now be used in an inline context,
5967 e.g. to provide part of a paragraph, as it can in LaTeX.
5968 + In `rawLaTeXBlock`, handle macros that resolve to a
5969 `\begin` or `\end` (#4667).
5970 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
5971 Note that this only affected LaTeX in markdown.
5972 + Tighten up reading of beamer overlay specifications (#4669).
5973 Ideally we'd turn these on only when reading beamer, but currently
5974 beamer is not distinguished from latex as an input format.
5975 This commit also activates parsing of overlay specifications
5976 after commands in general (e.g. `\item`), since they can occur
5977 in many contexts in beamer.
5978 + Parse more siunitx unit commands (#4296, #4773).
5979 + Be more forgiving in key/value option parsing (#4761).
5983 + Allow empty code spans, e.g. `` ` ` ``.
5984 + Emojis are now wrapped in Spans with class `emoji` and
5985 attribute `data-emoji` (Anders Waldenborg, #4743).
5986 This allows the writer to handle them in a special way
5987 (e.g. using a special font, or just rendering the
5990 * Muse reader (Alexander Krotov, except where indicated):
5992 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
5993 + Add support for floating images.
5994 + Add support for images with specified width.
5995 + Parse image URLs without "guard" and "takeExtension".
5996 + Split link and image parsing into separate functions.
5997 + Parse links starting with "URL:" explicitly instead of trying to strip
5998 "URL:" prefix after parsing.
6000 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
6003 * Markdown writer: Preserve `implicit_figures` with attributes, even if
6004 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
6006 * Markdown and commonmark/github writers now respect the `emoji`
6007 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
6008 `:smile:` as `:smile:` rather than converting it to a smile
6011 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
6013 * ODT/OpenDocument writer: Make internal links work (#4358).
6014 This adds proper bookmarks to the headers with non-null IDs.
6016 * EPUB writer: Properly escape pagetitle. Previously we weren't
6017 escaping `&` and other XML characters in the pagetitle, so a title
6018 containing a `&` would be invalid.
6020 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
6025 + Don't treat 'example' as a syntax name (#4748).
6026 This fixes conversions from org with example blocks.
6027 + Support `--number-sections` via the `section-numbering`
6028 directive in standalone output.
6030 * reveal.js writer and template: reuse mathjax URL
6031 provided by the argument to `--mathjax` or the normal pandoc default,
6032 rather than a hard-coded one in the template (#4701).
6036 + Properly handle footnotes in table captions (#4683).
6037 Refactored code from figure captions to use in both places.
6038 + In beamer output, fix single digit column percentage (#4690, Mauro
6041 * FB2 writer (Alexander Krotov):
6043 + Convert Plain to Para in annotation (#2424).
6044 + Fix order of items in title-info (#2424).
6046 * Custom writer: fix error message on script failure (Albert Krewinkel).
6047 Error messages produced by Lua were not displayed by Pandoc.
6049 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
6050 inline containing the emoji character and some attributes with metadata
6051 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
6052 Anders Waldenborg, #4743).
6056 + Revert fix for #4484 (only compress images on last run, #4755).
6057 This will mean some increase in the time it takes to
6058 produce an image-heavy PDF with xelatex, but it will
6059 make tables of contents correct, which is more important.
6060 + Fix logic error in `runTeXProgram`. We were running the tex program
6061 one more time than requested. This should speed up PDF production.
6063 * Allow `--template` to take a URL as argument.
6065 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
6066 highlighting style (#4687, Adrian Sieber, API change).
6068 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
6069 installer the recommended method, and note that on some older versions of
6070 macOS, homebrew installs from source and takes a lot of disk space
6075 + Clarify EPUB linked media (#4756, Mauro Bieg)
6076 + Update manual for "true" YAML values. Now that we're using HsYAML and
6077 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
6078 `y`, `yes`, `on` no longer count as true values.
6079 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
6080 + Update manual on how math is rendered in LaTeX.
6081 + Add proxy description (#4131, Mauro Bieg).
6082 + Clarify that `--toc` requires `--standalone` (#4703).
6083 + Update citation styles link (#4699, wiefling).
6085 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
6086 (kaizshang91). Note that it will not take effect when readers/writers
6087 are called as libraries (#4674).
6089 * Improved translations/fr (#4766, lux-lth).
6091 * Removed inadvertently added `.orig` files from repository (#4648).
6093 * Remove `network-uri` flag and use 'Network.Socket'.
6094 This removes a compiler warning. There is no need for the old
6095 `network-uri` flag, since network 2.6 was released in 2014.
6097 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
6099 * Bump upper bounds for dependent packages.
6101 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
6102 confused because of the way ghc 7.10 is excluded in foundation's
6103 cabal file. This can be removed when haskell-foundation/foundation#500
6106 * Require cabal-version >= 2.0. This is needed for haddock-library.
6111## pandoc 2.2.1 (2018-05-10)
6113 * Restored and undeprecated gladtex for HTML math (#4607).
6115 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
6116 [API change, reverts removal in v2.2]
6117 + Restored and undeprecated `--gladtex` option, removed in v2.2.
6119 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
6121 * Org reader: Fix image filename recognition (Albert Krewinkel).
6122 Use a function from the filepath library to check whether a string is a
6123 valid file name. The custom validity checker that was used before gave
6124 wrong results (e.g. for absolute file paths on Windows,
6125 kawabata/ox-pandoc#52).
6127 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
6131 + Strip links from headers when creating TOC (#4340).
6132 Otherwise the TOC entries will not link to the sections.
6133 + Fix regression with tex math environments in HTML + MathJax (#4639).
6135 * Muse writer (Alexander Krotov): Add support for left-align and
6136 right-align classes (#4542).
6138 * Docx writer: Support underline (#4633).
6140 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
6141 `singleQuoteStart` and `doubleQuoteStart` (#4637).
6143 * `test-pandoc-utils.lua`: more robust testing on both windows
6144 and \*nix. Previously the pipe tests were only run if
6145 `\bin/false` and `/bin/sed` were present, which they aren't
6146 in default MacOS and Windows systems. Fixed by using `tr`
6147 and `false`, which should always be in the path on a \*nix
6148 system, and `find` and `echo` for Windows.
6150 * Text.Pandoc.Shared: add `uriPathToPath`.
6151 This adjusts the path from a file: URI in a way that is sensitive
6152 to Windows/Linux differences. Thus, on Windows,
6153 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
6154 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
6156 * Use `uriPathToPath` with file: URIs (#4613).
6158 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
6161 * Text.Pandoc.Class: Catch IO errors when writing media files
6162 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
6164 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
6166 * MANUAL (Mauro Bieg):
6168 + Clarify truthiness in template variables (#2281).
6169 + Clarify pipe table width calculation (#4520).
6171 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
6172 CMU Serif gives better typographic results than the previous
6173 Greek fallback DejaVu Serif.
6175 * Make HTML template polyglot (#4606, OvidiusCicero), by making
6176 `<link rel="stylesheet" href="$css$">` self-closing.
6178 * Use texmath 0.11, allowing better translation of non-ASCII
6179 characters in math (#4642).
6182## pandoc 2.2 (2018-04-27)
6184 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
6186 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
6187 and for `ms` and `man`.
6189 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
6190 `--asciimathml` options.
6192 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
6193 Krotov, API change).
6197 + Allow empty key-value attributes, like `title=""` (#2944).
6198 + Handle table w/o following blank line in fenced div (#4560).
6199 + Remove "fallback" for `doubleQuote` parser. Previously the
6200 parser tried to be efficient -- if no end double quote was found,
6201 it would just return the contents. But this could backfire in a
6202 case `**this should "be bold**`, since the fallback would return
6203 the content `"be bold**` and the closing boldface delimiter
6204 would never be encountered.
6205 + Improve computation of the relative width of the last column in a
6206 multiline table, so we can round-trip tables without constantly
6207 shrinking the last column.
6211 + Fix images with space in file path (#4344).
6215 + Properly resolve section numbers with `\ref` and chapters (#4529).
6216 + Parse sloppypar environment (#4517, Marc Schreiber).
6217 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
6218 Previously there were some bugs in how macros were handled.
6219 + Support `\MakeUppercase`, `\MakeLowercase`, `\uppercase`,
6220 `\lowercase`, and also `\MakeTextUppercase` and
6221 `\MakeTextLowercase` from textcase (#4959).
6225 + Fixed tables with no body rows (#4513).
6226 Previously these raised an exception.
6230 + Improve table parsing (#4508). This fixes detection of table
6231 attributes and also handles `!` characters in cells.
6235 + Properly handle title in `section` element (#4526).
6236 Previously we just got `section_title` for `section` (though `sect1`,
6237 `sect2`, etc. were handled properly).
6238 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
6242 + Combine adjacent CodeBlocks with the same attributes into
6243 a single CodeBlock. This prevents a multiline codeblock in
6244 Word from being read as different paragraphs.
6248 + Allow < 3 spaces indent under directives (#4579).
6249 + Fix anonymous redirects with backticks (#4598).
6251 * Muse reader (Alexander Krotov):
6253 + Add support for Text::Amuse multiline headings.
6254 + Add `<math>` tag support.
6255 + Add support for `<biblio>` and `<play>` tags.
6256 + Allow links to have empty descriptions.
6257 + Require block `<literal>` tags to be on separate lines.
6258 + Allow `-` in anchors.
6259 + Allow verse to be indented.
6260 + Allow nested footnotes.
6261 + Internal improvements.
6263 * Muse writer (Alexander Krotov):
6265 + Escape `>` only at the beginning of a line.
6266 + Escape `]` in image title.
6267 + Escape `]` brackets in URLs as `%5D`.
6268 + Only escape brackets when necessary.
6269 + Escape ordered list markers.
6270 + Do not escape list markers unless preceded by space.
6271 + Escape strings starting with space.
6272 + Escape semicolons and markers after line break.
6273 + Escape `;` to avoid accidental comments.
6274 + Don't break headers, line blocks and tables with line breaks.
6275 + Correctly output empty headings.
6276 + Escape horizontal rule only if at the beginning of the line.
6277 + Escape definition list terms starting with list markers.
6278 + Place header IDs before header.
6279 + Improve span writing.
6280 + Do not join Spans in normalization.
6281 + Don't align ordered list items.
6282 + Remove key-value pairs from attributes before normalization.
6283 + Enable `--wrap=preserve` for all tests by default.
6284 + Reduced `<verbatim>` tags in output.
6289 + Use more consistent indentation (#4563). Previously we
6290 used an odd mix of 3- and 4-space indentation. Now we use 3-space
6291 indentation, except for ordered lists, where indentation must
6292 depend on the width of the list marker.
6293 + Flatten nested inlines (#4368, Francesco Occhipinti).
6294 Nested inlines are not valid RST syntax, so we flatten them following
6295 some readability criteria discussed in #4368.
6299 + Ensure that `pagetitle` is always set, even when structured titles
6300 are used. This prevents spurious warnings about empty title
6303 * FB2 writer (Alexander Krotov):
6305 + Output links inline instead of producing notes. Previously all links
6306 were turned into footnotes with unclickable URLs inside.
6307 + Allow emphasis and notes in titles.
6308 + Don't intersperse paragraph with empty lines.
6309 + Convert metadata value `abstract` to book annotation.
6310 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
6311 FB2 does not have a way to represent line breaks inside paragraphs;
6312 previously we used `<empty-line />` elements, but these are not allowed
6315 * Powerpoint writer (Jesse Rosenthal):
6317 + Handle Quoted Inlines (#4532).
6318 + Simplify code with `ParseXml`.
6319 + Allow fallback options when looking for placeholder type.
6320 + Check reference-doc for all layouts.
6321 + Simplify speaker notes logic.
6322 + Change notes state to a simpler per-slide value.
6323 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
6324 means no speaker notes.
6325 + Add tests for improved speaker notes.
6326 + Handle speaker notes earlier in the conversion process.
6327 + Keep notes with related blocks (#4477). Some blocks automatically
6328 split slides (imgs, tables, `column` divs). We assume that any
6329 speaker notes immediately following these are connected to these
6330 elements, and keep them with the related blocks, splitting after them.
6331 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
6332 It contained a nonfree ICC color calibration profile and is not needed
6333 for production of a powerpoint document.
6337 + Include a blank line at the end of the row in a single-row multiline
6338 table, to prevent it from being interpreted as a simple table (#4578).
6340 * CommonMark writer:
6342 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
6343 enabled (#4527, quasicomputational).
6347 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
6351 + In beamer, don't use format specifier for default ordered lists
6352 (#4556). This gives better results for styles that put ordered list
6353 markers in boxes or circles.
6354 + Update `\lstinline` delimiters (#4369, Tim Parenti).
6358 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
6359 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
6360 since the header font is automatically bold (#4552).
6361 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
6362 + Create pdf anchor for a Div with an identifier (#4515).
6363 + Escape `/` character in anchor ids (#4515).
6364 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
6369 + Don't escape U+2019 as `'` (#4550).
6371 * Text.Pandoc.Options:
6373 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
6374 `Text.Pandoc.Options.HTMLMathMethod` [API change].
6376 * Text.Pandoc.Class:
6378 + `writeMedia`: unescape URI-escaping in file path. This avoids
6379 writing things like `file%20one.png` to the file system.
6381 * Text.Pandoc.Parsing:
6383 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
6385 + `uri`: don't treat `*` characters at end as part of URI (#4561).
6389 + Use the alias `application/eps` for EPS (#2067).
6390 This will ensure that we retain the eps extension after reading the
6391 image into a mediabag and writing it again.
6395 + Use `withTempDir` in `html2pdf`.
6396 + With `xelatex`, don't compress images til the last run (#4484).
6397 This saves time for image-heavy documents.
6398 + Don't try to convert EPS files (#2067). `pdflatex` converts them
6399 itself, and JuicyPixels can't do it.
6400 + For `pdflatex`, use a temp directory in the working directory.
6401 Otherwise we can have problems with the EPS conversion pdflatex
6402 tries to do, which can't operate on a file above the working
6403 directory without `--shell-escape`.
6405 * Changes to tests to accommodate changes in pandoc-types.
6406 In <https://github.com/jgm/pandoc-types/pull/36> we changed
6407 the table builder to pad cells. This commit changes tests
6408 (and two readers) to accord with this behavior.
6410 * Set default extensions for `beamer` same as `latex`.
6414 + Add `beameroption` variable (#4359, Étienne Bersac).
6415 + Use `pgfpages` package; this is needed for notes on second
6416 screen in beamer (Étienne Bersac).
6417 + Add `background-image` variable (#4601, John Muccigrosso).
6419 * reveal.js template: Add `background-image` variable (#4600,
6422 * ms template: Fix date. Previously `.ND` was used, but this only
6423 works if you have a title page, which we don't. Thanks to @teoric.
6425 * Removed pragmas for unused extensions (#4506, Anabra).
6427 * Fix bash completion for `--print-default-data-file` (#4549).
6428 Previously this looked in the filesystem, even if pandoc
6429 was compiled with `embed_data_files` (and sometimes it looked
6430 in a nonexistent build directory). Now the bash completion
6431 script just includes a hard-coded list of data file names.
6435 + Clarify template vs metadata variables (#4501, Mauro Bieg).
6436 + Fix raw content example (#4479, Mauro Bieg).
6437 + Specify that you use html for raw output in epub.
6438 + Add examples for raw docx blocks (#4472, Tristan Stenner).
6439 The documentation states that the target format name should match
6440 the output format, which isn't the case for `docx`/`openxml` and
6442 + Don't say that `empty_paragraphs` affects markdown output (#4540).
6443 + Consolidate input/output format documentation (#4577, Mauro Bieg).
6445 * New README template. Take in/out formats from manual.
6447 * Fix example in lua-filters docs (#4459, HeirOfNorton).
6449 * Use the `-threaded` GHC flag when building benchmarks (#4587,
6450 Francesco Occhipinti).
6452 * Bump temporary upper bound to 1.4.
6454 * Use pandoc-citeproc 0.14.3.1.
6456 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
6458 * Removed old lib directory. This was used for something long ago,
6459 but plays no role now.
6461 * Removed unneeded data file `LaTeXMathML.js`.
6463 * Create 64- and 32-bit versions of Windows binary packages.
6465## pandoc 2.1.3 (2018-03-18)
6467 * Docx reader (Jesse Rosenthal):
6469 + Add tests for nested smart tags.
6470 + Parse nested smart tags.
6471 + Make unwrapSDT into a general `unwrap` function that can unwrap both
6472 nested SDT tags and smartTags. This makes the SmartTags constructor in
6473 the Docx type unnecessary, so we remove it (#4446).
6474 + Remove unused `docxWarnings` (Alexander Krotov).
6476 * RST reader: Allow unicode bullet characters (#4454).
6478 * Haddock reader: Better table handling, using haddock-library's
6479 new table support, if compiled against a version that
6480 includes it. Note that tables with col/rowspans will not
6481 translate well into Pandoc.
6483 * Muse reader (Alexander Krotov):
6485 + Various internal improvements.
6486 + Require closing tag to have the same indentation as opening.
6487 + Do not reparse blocks inside unclosed block tag (#4425).
6488 + Parse `<class>` tag (supported by Emacs Muse).
6489 + Do not produce empty Str element for unindented verse lines.
6493 + Add support to parse unit string of `\SI` command (closes #4296,
6496 * Haddock writer: In the writer, we now render tables always as
6497 grid tables, since Haddock supports these.
6499 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
6501 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
6502 docx writer. We want decimal for the top level, not lower roman.
6506 + Strip whitespace at beginning and ending of inline containers
6507 (#4327, Francesco Occhipinti).
6508 + Filter out empty inline containers (#4434). There is nothing in
6509 RST that corresponds to e.g. `Emph []`, so we just ignore elements
6510 like this (Francesco Occhipinti).
6512 * Muse writer (Alexander Krotov):
6514 + Support spans with anchors.
6515 + Replace smallcaps with emphasis before normalization.
6516 + Output smallcaps as emphasis.
6517 + Expand Cite before list normalization.
6518 + Write empty inline lists as `<verbatim></verbatim>`.
6519 + Remove empty Str from the beginning of inline lists during normalization.
6520 + Escape "-" to avoid creating bullet lists.
6521 + Fix math expansion for more than one expression per paragraph.
6522 + Expand math before inline list normalization.
6524 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
6528 + Asciify pdf anchors, since unicode anchors don't work (#4436).
6529 Internal links should be converted automatically, so this shouldn't
6530 affect users directly.
6531 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
6533 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
6534 (#4307). If it's in the title, then we get a titlebar on slides with
6535 the `plain` attribute, when the id is non-null. This fixes a regression
6538 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
6540 * JATS writer: Remove extraneous, significant whitespace (#4335,
6543 * html2pdf: inject base tag with current working directory (#4413, Mauro
6544 Bieg). This helps ensure that linked resources are included.
6546 * Add Semigroup instances for everything for which we defined a
6547 Monoid instance previously (API change):
6549 + Text.Pandoc.Class.FileTree.
6550 + Text.Pandoc.Translations.Translations.
6551 + Text.Pandoc.Extensions.Extensions.
6552 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
6553 + Text.Pandoc.Pretty.Doc.
6554 + Text.Pandoc.MediaBag.MediaBag.
6556 * Add custom Prelude to give clean code for Monoid and Semigroup
6557 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
6558 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
6559 in all source files, and Prelude is explicitly imported
6560 (this is necessary for ghci to work properly with the custom prelude).
6562 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
6564 + Export `stripLeadingTrailingSpace`.
6565 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
6566 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
6567 expand cells, even if it results in cells that don't respect relative
6568 widths or surpass page column width. This change affects RST,
6569 Markdown, and Haddock writers.
6571 * Raise error if someone tries to print docx, odt, etc. template (#4441).
6573 * LaTeX template: Provide `bidi` package's option using
6574 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
6575 clash when `polyglossia` loads it first and then it is loaded again
6578 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
6579 Menke). Instructions on how to install the ICC profiles on ConTeXt
6580 standalone can be found in the wiki:
6581 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
6582 If the ICC profiles are not available the log will contain error
6585 * Use latest pandoc-types, skylighting
6587 * Use latest pandoc-citeproc in binary package.
6589 * Bump upper bound for time, criterion, haddock-library, exceptions,
6590 http-types, aeson, haddock-library.
6592 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
6594 * pandoc.cabal: fix up other-extensions and language fields.
6595 Language is now consistently `Haskell2010`, and other-extensions
6596 is consistently `NoImplicitPrelude`. Everything else to be specified
6597 in the module header as needed.
6599 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
6600 This is no longer necessary since we no longer support ghc 7.8.
6602 * Make `weigh-pandoc` into a benchmark program.
6603 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
6604 automatically when you build (and run) benchmarks.
6606 * MANUAL: add instructions for background images reveal.js (#4325, John
6609 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
6611## pandoc 2.1.2 (2018-03-02)
6615 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
6616 "nonindent spaces" before the opening and closing `:::`, but this
6617 interfered with list parsing, so now we require the fences to be flush with
6618 the margin of the containing block.
6620 * Commonmark reader:
6622 + `raw_html` is now on by default. It can be disabled explicitly
6623 using `-f commonmark-raw_html`.
6625 * Org reader (Albert Krewinkel):
6627 + Move citation tests to separate module.
6628 + Allow changing emphasis syntax (#4378). The characters allowed before
6629 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
6630 `#+pandoc-emphasis-post`, respectively. This allows to change which
6631 strings are recognized as emphasized text on a per-document or even
6632 per-paragraph basis. Example:
6634 #+pandoc-emphasis-pre: "-\t ('\"{"
6635 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
6639 + Fixed comments inside citations (#4374).
6640 + Fix regression in package options including underscore (#4424).
6641 + Make `--trace` work.
6642 + Fixed parsing of `tabular*` environment (#4279).
6646 + Fix regression in parsing of headers with trailing space (#4280).
6648 * Muse reader (Alexander Krotov):
6650 + Enable `<literal>` tags even if amuse extension is enabled.
6651 Amusewiki disables <literal> tags for security reasons.
6652 If user wants similar behavior in pandoc, RawBlocks and RawInlines
6653 can be removed or replaced with filters.
6654 + Remove space prefix from `<literal>` tag contents.
6655 + Do not consume whitespace while looking for closing end tag.
6656 + Convert alphabetical list markers to decimal in round-trip test.
6657 Alphabetical lists are an addition of Text::Amuse.
6658 They are not present in Emacs Muse and can be ambiguous
6659 when list starts with "i.", "c." etc.
6660 + Allow `<quote>` and other tags to be indented.
6661 + Allow single colon in definition list term.
6662 + Fix parsing of verse in lists.
6663 + Improved parsing efficiency. Avoid `parseFromString`.
6664 Lists are parsed in linear instead of exponential time now.
6665 + Replace ParserState with MuseState.
6666 + Prioritize lists with roman numerals over alphabetical lists.
6667 This is to make sure "i." starts a roman numbered list,
6668 instead of a list with letter "i" (followed by "j", "k", ...").
6669 + Fix directive parsing.
6670 + Parse definition lists with multiple descriptions.
6671 + Parse next list item before parsing more item contents.
6672 + Fixed a bug: headers did not terminate lists.
6673 + Move indentation parsing from `definitionListItem` to `definitionList`.
6674 + Paragraph indentation does not indicate nested quote.
6675 Muse allows indentation to indicate quotation or alignment,
6676 but only on the top level, not within a <quote> or list.
6677 + Require that block tags are on separate lines.
6678 Text::Amuse already explicitly requires it anyway.
6679 + Fix matching of closing inline tags.
6680 + Various internal changes.
6681 + Fix parsing of nested definition lists.
6682 + Require only one space for nested definition list indentation.
6683 + Do not remove trailing whitespace from `<code>`.
6684 + Fix parsing of trailing whitespace. Newline after whitespace now
6685 results in softbreak instead of space.
6687 * Docx reader (Jesse Rosenthal, except where noted):
6689 + Handle nested sdt tags (#4415).
6690 + Don't look up dependant run styles if `+styles` is enabled.
6691 + Move pandoc inline styling inside custom-style span.
6692 + Read custom styles (#1843). This will read all paragraph and
6693 character classes as divs and spans, respectively. Dependent styles
6694 will still be resolved, but will be wrapped with appropriate style
6695 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
6696 This can be used in conjunction with the `custom-style` feature in the
6697 docx writer for a pandoc-docx editing workflow. Users can convert from
6698 an input docx, reading the custom-styles, and then use that same input
6699 docx file as a reference-doc for producing an output docx file. Styles
6700 will be maintained across the conversion, even if pandoc doesn't
6702 + Small change to Fields hyperlink parser. Previously, unquoted string
6703 required a space at the end of the line (and consumed it). Now we
6704 either take a space (and don't consume it), or end of input.
6705 + Pick table width from the longest row or header (Francesco Occhipinti,
6708 * Muse writer (Alexander Krotov):
6710 + Change verse markup: `> ` instead of `<verse>` tag.
6711 + Remove empty strings during inline normalization.
6712 + Don't indent nested definition lists.
6713 + Use unicode quotes for quoted text.
6714 + Write image width specified in percent in Text::Amuse mode.
6715 + Don't wrap displayMath into `<verse>`.
6716 + Escape nonbreaking space (`~~`).
6717 + Join code with different attributes during normalization.
6718 + Indent lists inside Div.
6719 + Support definitions with multiple descriptions.
6721 * Powerpoint writer (Jesse Rosenthal):
6723 + Use table styles This will use the default table style in the
6724 reference-doc file. As a result they will be easier when using
6725 in a template, and match the color scheme.
6726 + Remove empty slides. Because of the way that slides were split, these
6727 could be accidentally produced by comments after images. When animations
6728 are added, there will be a way to add an empty slide with either
6729 incremental lists or pauses.
6730 + Implement syntax highlighting. Note that background colors can't
6731 be implemented in PowerPoint, so highlighting styles that require
6732 these will be incomplete.
6733 + New test framework for pptx. We now compare the output of the
6734 Powerpoint writer with files that we know to (a) not be corrupt,
6735 and (b) to show the desired output behavior (details below).
6736 + Add `notesMaster` to `presentation.xml` if necessary.
6737 + Ignore links and (end)notes in speaker notes.
6738 + Output speaker notes.
6739 + Read speaker note templates conditionally. If there are speaker
6740 notes in the presentation, we read in the notesMasters templates
6741 from the reference pptx file.
6742 + Fix deletion track changes (#4303, Jesse Rosenthal).
6744 * Markdown writer: properly escape @ to avoid capture as citation
6749 + Put hypertarget inside figure environment (#4388).
6750 This works around a problem with the endfloat package and
6751 makes pandoc's output compatible with it.
6752 + Fix image height with percentage (#4389). This previously caused
6753 the image to be resized to a percentage of textwidth, rather than
6756 * ConTeXt writer (Henri Menke):
6758 + New section syntax and support `--section-divs` (#2609).
6759 `\section[my-header]{My Header}` ->
6760 `\section[title={My Header},reference={my-header}]`.
6761 The ConTeXt writer now supports the `--section-divs` option to
6762 write sections in the fenced style, with `\startsection` and
6764 + xtables: correct wrong usage of caption (Henri Menke).
6768 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
6769 + Use new golden framework (Jesse Rosenthal).
6770 + Make more deterministic to facilitate testing (Jesse Rosenthal).
6771 - `getUniqueId` now calls to the state to get an incremented digit,
6772 instead of calling to P.uniqueHash.
6773 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
6774 seed (1848), so our randoms should be the same each time.
6775 + Fix ids in comment writing (Jesse Rosenthal). Comments from
6776 `--track-changes=all` were producing corrupt docx, because the
6777 writer was trying to get id from the `(ID,_,_)` field of
6778 the attributes, and ignoring the "id" entry in the key-value pairs. We
6781 * Ms writer: Added papersize variable.
6785 + Use `height` instead of `depth` for images (#4331).
6786 + Ensure that id prefix is always used.
6787 + Don't emit `role` attribute; that was a leftover from the
6789 + Use 'xml:id', not 'id' attribute (#4371).
6793 + Do not output implicit heading IDs (#4363, Alexander
6794 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
6798 + Remove `blockToRST'` moving its logic into `fixBlocks`
6799 (Francesco Occhipinti).
6800 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
6802 * RST template: remove definition of 'math' role as raw.
6803 This used to be needed prior to v 0.8 of docutils, but
6804 now math support is built-in.
6806 * Slides: Use divs to set incremental/non-incremental (#4381,
6807 Jesse Rosenthal). The old method (list inside blockquote) still
6808 works, but we are encouraging the use of divs with class
6809 `incremental` or `nonincremental`.
6811 * Text.Pandoc.ImageSize:
6813 + Make image size detection for PDFs more robust (#4322).
6814 + Determine image size for PDFs (#4322).
6815 + EMF Image size support (#4375, Andrew Pritchard).
6817 * Text.Pandoc.Extensions:
6819 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
6820 the docx reader (defaulting to off) to read pargraph and character
6821 styles not understood by pandoc (as divs and spans, respectively).
6822 + Made `Ext_raw_html` default for `commonmark` format.
6824 * Text.Pandoc.Parsing:
6826 + Export `manyUntil` (Alexander Krotov, API change).
6827 + Export improved `sepBy1` (Alexander Krotov).
6828 + Export list marker parsers: `upperRoman`, `lowerRoman`,
6829 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
6831 * Tests/Lua: fix tests on windows (Albert Krewinkel).
6833 * Lua: register script name in global variable (#4393). The name of the Lua
6834 script which is executed is made available in the global Lua variable
6835 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
6837 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
6838 There is very little pptx-specific in these tests, so we abstract out
6839 the basic testing function so it can be used for docx as well. This
6840 should allow us to catch some errors in the docx writer that slipped
6841 by the roundtrip testing.
6843 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
6844 functions used to construct AST element values are stored in the Lua
6845 registry for quicker access. Getting a value from the registry is much
6846 faster than getting a global value (partly to idiosyncrasies of hslua);
6847 this change results in a considerable performance boost.
6851 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
6852 + `doc/lua-filters.md`: document global vars set for filters
6854 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
6855 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
6856 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
6857 Rosenthal). Blockquoted lists are still described, but fenced divs are
6858 presented in preference.
6859 + MANUAL.txt: document header and footer variables (newmana).
6860 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
6861 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
6863 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
6865 * Use latest texmath.
6867 * Use latest pandoc-citeproc.
6869 * Allow exceptions 0.9.
6871 * Require aeson-pretty 0.8.5 (#4394).
6873 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
6875 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
6877 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
6879 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
6882## pandoc 2.1.1 (2018-01-18)
6886 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
6887 blank line. See lierdakil/pandoc-crossref#160.
6888 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
6889 The change both improves performance and fixes a regression whereby
6890 normal citations inside inline notes and figure captions were not
6895 + Better handling for headers with an anchor (#4240). Instead of creating a
6896 Div containing the header, we put the id directly on the header.
6897 This way header promotion will work properly.
6898 + Add aligned environment when needed in math (#4254). `rst2latex.py`
6899 uses an `align*` environment for math in `.. math::` blocks, so this
6900 math may contain line breaks. If it does, we put the math in an
6901 `aligned` environment to simulate `rst2latex.py`'s behavior.
6905 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
6909 + Advance source position at end of stream.
6910 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
6911 extension is set (#4246). This reverts to earlier behavior and is
6912 probably safer on the whole, since some macros only modify things in
6913 included packages, which pandoc's macro expansion can't modify.
6914 + Fixed pos calculation in tokenizing escaped space.
6915 + Allow macro definitions inside macros (#4253). Previously we went into
6916 an infinite loop with
6918 \newcommand{\noop}[1]{#1}
6919 \noop{\newcommand{\foo}[1]{#1}}
6922 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
6923 widths for the body were different from widths for the header in some
6926 * Docx reader (Jesse Rosenthal):
6928 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
6929 hyperlink found in older versions of word. The changes introduced for
6930 this, though, create a framework for parsing further fields in MS Word
6931 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
6932 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
6933 contains a simple parsec parser. At the moment, only simple hyperlink
6934 fields are accepted, but that can be extended in the future.
6936 * Muse reader (Alexander Krotov):
6938 + Parse `~~` as non-breaking space in Text::Amuse mode.
6939 + Refactor list parsing.
6941 * Powerpoint writer (Jesse Rosenthal):
6943 + Change reference to `notesSlide` to `endNotesSlide`.
6944 + Move image sizing into `picProps`.
6945 + Improve table placement.
6946 + Make our own `_rels/.rels` file.
6947 + Import reference-doc images properly.
6948 + Move `Presentation.hs` out of `PandocMonad`.
6949 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
6950 defines the Presentation datatype and goes Pandoc->Presentation;
6951 T.P.W.Pandoc.Output goes Presentation->Archive.
6952 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
6953 + Avoid overlapping blocks in column output.
6954 + Position images correctly in two-column layout.
6955 + Make content shape retrieval environment-aware.
6956 + Improve image handling. We now determine image and caption placement
6957 by getting the dimensions of the content box in a given layout.
6958 This allows for images to be correctly sized and positioned in a
6959 different template. Note that images without captions and headers are
6960 no longer full-screened. We can't do this dependably in different
6961 layouts, because we don't know where the header is (it could be to
6962 the side of the content, for example).
6963 + Read presentation size from reference file. Our presentation size is
6964 now dependent on the reference/template file we use.
6965 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
6966 subheaders will be printed in bold and given a bit of extra space
6967 before them. Note that at the moment, no distinction is made between
6968 levels of headers above the slide header, though that can be changed.
6969 + Check for required files. Since we now import from reference/dist
6970 file by glob, we need to make sure that we're getting the files we
6971 need to make a non-corrupt Powerpoint. This performs that check.
6972 + Improve templating using `--reference-doc`. Templating should work
6973 much more reliably now.
6974 + Include Notes slide in TOC.
6975 + Set notes slide header to slide-level.
6976 + Add table of contents. This is triggered by the `--toc` flag. Note
6977 that in a long slide deck this risks overrunning the text box. The user
6978 can address this by setting `--toc-depth=1`.
6979 + Set notes slide number correctly.
6980 + Clean up adding metadata slide. We want to count the slide numbers
6981 correctly if it's in there.
6982 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
6983 an anchor link. In powerpoint these are links to slides, so we keep
6984 track of a map relating anchors to the slides they occur on.
6985 + Make the slide number available to the blocks. For anchors,
6986 block-processing functions need to know what slide number
6987 they're in. We make the `envCurSlideId` available to blocks.
6988 + Move `curSlideId` to environment.
6989 + Allow setting `toc-title` in metadata.
6990 + Link notes to endnotes slide.
6994 + Fix cell width calculation (#4265). Previously we could get
6995 ever-lengthening cell widths when a table was run repeatedly through
6996 `pandoc -f markdown -t markdown`.
7000 + Escape `&` in lstinline (Robert Schütz).
7004 + Use xtables instead of Tables (#4223, Henri Menke).
7005 Default to xtables for context output. Natural Tables are used
7006 if the new `ntb` extension is set.
7010 + Fixed footnote backlinks with `--id-prefix` (#4235).
7012 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
7015 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
7016 (Jesse Rosenthal, API change).
7018 * Lua filters (Albert Krewinkel):
7020 + Make `PANDOC_READER_OPTIONS` available.
7021 The options which were used to read the document are made available to
7022 Lua filters via the `PANDOC_READER_OPTIONS` global.
7023 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
7024 on a Pandoc document.
7025 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
7026 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
7027 + Improve error messages. Provide more context about the task
7028 which caused an error.
7030 * data/pandoc.lua (Albert Krewinkel):
7032 + Accept singleton inline as a list. Every constructor which accepts a
7033 list of inlines now also accepts a single inline element for
7035 + Accept single block as singleton list. Every constructor which accepts
7036 a list of blocks now also accepts a single block element for
7037 convenience. Furthermore, strings are accepted as shorthand for
7038 `{pandoc.Str "text"}` in constructors.
7039 + Add attr, listAttributes accessors. Elements with
7040 attributes got an additional `attr` accessor. Attributes were
7041 accessible only via the `identifier`, `classes`, and `attributes`,
7042 which was in conflict with the documentation, which indirectly states
7043 that such elements have the an `attr` property.
7044 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
7045 module is closely tied to the pandoc version, which is available via
7047 + Fix access to Attr components. Accessing an Attr value (e.g.,
7048 ` Attr().classes`) was broken; the more common case of accessing it via
7049 an Inline or Block element was unaffected by this.
7051 * Move `metaValueToInlines` to from Docx writer to
7052 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
7057 + Clarify otherlangs in LaTeX (#4072).
7058 + Clarify `latex_macros` extension.
7059 + Recommend use of `raw_attribute` extension in header includes (#4253).
7061 * Allow latest QuickCheck, tasty, criterion.
7063 * Remove custom prelude and ghc 7.8 support.
7065 * Reduce compiler noise (exact paths for compiled modules).
7067## pandoc 2.1 (2018-01-07)
7069 * Allow filters and lua filters to be interspersed (#4196). Previously
7070 we ran all lua filters before JSON filters. Now we run filters in
7071 the order they are presented on the command line, whether lua or JSON.
7072 There are two incompatible API changes: The type of `applyFilters`
7073 has changed, and `applyLuaFilters` has been removed. `Filter` is
7076 * Use latest skylighting and omit the `missingIncludes` check, fixing
7077 a major performance regression in earlier releases of the 2.x series
7078 (#4226). Behavior change: If you use a custom syntax definition that
7079 refers to a syntax you haven't loaded, pandoc will now complain when
7080 it is highlighting the text, rather than doing a check at the start.
7081 This change dramatically speeds up invocations of pandoc on short
7084 * Text.Pandoc.Class: make `FileTree` opaque (don't export
7085 `FileTree` constructor). This forces users to interact with it using
7086 `insertInFileTree` and `getFileInfo`, which normalize file names.
7090 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
7091 direct, avoiding `parseFromString`. And it performs significantly
7092 better; unfortunately, parsing time still increases exponentially
7094 + Avoid parsing raw tex unless `\` + letter seen. This seems to
7095 help with the performance problem, #4216.
7097 * LaTeX reader: Simplified a check for raw tex command.
7099 * Muse reader (Alexander Krotov):
7101 + Enable round trip test (#4107).
7102 + Automatically translate `#cover` into `#cover-image`.
7103 Amusewiki uses #cover directive to specify cover image.
7105 * Docx reader (Jesse Rosenthal):
7107 + Allow for insertion/deletion of paragraphs (#3927).
7108 If the paragraph has a deleted or inserted paragraph break (depending
7109 on the track-changes setting) we hold onto it until the next
7110 paragraph. This takes care of accept and reject. For this we introduce
7111 a new state which holds the ils from the previous para if necessary.
7112 For `--track-changes=all`, we add an empty span with class
7113 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
7114 prior to the break to be inserted or deleted.
7115 + Remove unused anchors (#3679). Docx produces a lot of anchors with
7116 nothing pointing to them---we now remove these to produce cleaner
7117 output. Note that this has to occur at the end of the process
7118 because it has to follow link/anchor rewriting.
7119 + Read multiple children of `w:sdtContents`.
7120 + Combine adjacent anchors. There isn't any reason to have numerous
7121 anchors in the same place, since we can't maintain docx's
7122 non-nesting overlapping. So we reduce to a single anchor.
7125 * Muse writer (Alexander Krotov): don't escape URIs from AST
7129 + Removed redundant subtitle in title (Sebastian Talmon).
7130 + `firstRow` table definition compatibility for Word 2016 (Sebastian
7131 Talmon). Word 2016 seems to use a default value of "1" for table
7132 headers, if there is no firstRow definition (although a default
7133 value of 0 is documented), so all tables get the first Row formatted
7134 as header. Setting the parameter to 0 if the table has no header
7135 row fixes this for Word 2016
7136 + Fix custom styles with spaces in the name (#3290).
7138 * Powerpoint writer (Jesse Rosenthal):
7140 + Ignore Notes div for parity with other slide outputs.
7141 + Set default slidelevel correctly. We had previously defaulted to
7142 slideLevel 2. Now we use the correct behavior of defaulting to the
7143 highest level header followed by content. We change an expected test
7144 result to match this behavior.
7145 + Split blocks correctly for linked images.
7146 + Combine adjacent runs.
7147 + Make inline code inherit code size. Previously (a) the code size
7148 wasn't set when we force size, and (b) the properties was set from
7149 the default, instead of inheriting.
7150 + Simplify `replaceNamedChildren` function.
7151 + Allow linked images. The following markdown:
7152 `[](http://www.example.com)`
7153 will now produce a linked image in the resulting PowerPoint file.
7154 + Fix error with empty table cell. We require an empty `<a:p>` tag,
7155 even if the cell contains no paragraphs---otherwise PowerPoint
7156 complains of corruption.
7157 + Implement two-column slides. This uses the columns/column div
7158 format described in the pandoc manual. At the moment, only two
7159 columns (half the screen each) are allowed. Custom widths are not
7163 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
7165 * Lua filters (Albert Krewinkel):
7167 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
7168 + The current pandoc-types version is made available to Lua programs in
7169 the global `PANDOC_API_VERSION`. It contains the version as a list of
7171 + The pandoc version available as a global `PANDOC_VERSION` (a list
7173 + `data/pandoc.lua`: make `Attr` an `AstElement`.
7174 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
7175 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
7176 not set a metatable on the returned value, which made it difficult
7177 to amend objects of these types with new behavior. They are now
7178 subtypes of AstElement, meaning that all their objects can gain
7179 new features when a method is added to the behavior object
7180 (e.g., `pandoc.Pandoc.behavior`).
7181 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
7182 between a type and the behavioral properties of an instance of that
7183 type. The behavior of a type (and all its subtypes) can now be
7184 amended by adding methods to that types `behavior` object, without
7185 exposing the type objects internals. E.g.:
7187 pandoc.Inline.behavior.frob = function () print'42' end
7188 local str = pandoc.Str'hello'
7189 str.frob() -- outputs '42'
7191 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
7192 of a given type (e.g., all inline elements) was difficult, as the
7193 table used to lookup unknown methods would be reset every time a
7194 new element of that type was created, preventing recursive property
7195 lookup. This is was changed in that all methods and attributes of
7196 supertypes are now available to their subtypes.
7197 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
7198 fields were named like the Haskell fields, not like the documented,
7199 shorter version. The names are changed to match the documentation
7200 and Citations are given a shared metatable to enable simple
7202 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
7203 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
7204 difficult to handle failures while getting lists or a Map from Lua.
7205 A bug in pandoc, which made it necessary to always pass a tag when
7206 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
7207 module's constructor functions for these values is now optional
7208 (if still recommended).
7209 + Stop exporting `pushPandocModule` (API change). The introduction
7210 of `runPandocLua` renders direct use of this function obsolete.
7211 + Update generation of module docs for lua filters.
7212 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
7213 MacFarlane). I'm sure this was intended in the first place,
7214 but currently only `Meta` is supported.
7216 * Improve benchmarks.
7218 + Set the default extensions properly.
7219 + Improve benchmark argument parsing. You can now say
7220 `make bench BENCHARGS="markdown latex reader"` and both the
7221 markdown and latex readers will be benchmarked.
7223 * MANUAL.txt simplify and add more structure (Mauro Bieg).
7225 * Generate README.md from template and MANUAL.txt.
7226 `make README.md` will generate the README.md after changes
7227 to MANUAL.txt have been made.
7229 * Update copyright notices to include 2018 (Albert Krewinkel).
7231## pandoc 2.0.6 (2017-12-28)
7233 * Added `jats` as an input format.
7235 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
7236 change) (Hamish Mackenzie).
7237 + Improved citation handling in JATS reader. JATS citations
7238 are now converted to pandoc citations, and JATS ref-lists
7239 are converted into a `references` field in metadata, suitable
7240 for use with pandoc-citeproc. Thus a JATS article with embedded
7241 bibliographic information can be processed with pandoc and
7242 pandoc-citeproc to produce a formatted bibliography.
7244 * Allow `--list-extensions` to take an optional FORMAT argument.
7245 This lists the extensions set by default for the selected FORMAT.
7246 The extensions are now alphabetized, and the `+` or `-`
7247 indicating the default setting comes before, rather than after,
7252 + Preserve original whitespace between blocks.
7253 + Recognize `\placeformula` as context.
7254 + Be pickier about table captions. A caption starts with a `:` which
7255 can't be followed by punctuation. Otherwise we can falsely interpret
7256 the start of a fenced div, or even a table header line like
7257 `:--:|:--:`, as a caption.
7258 + Always use four space rule for example lists. It would be awkward
7259 to indent example list contents to the first non-space character after
7260 the label, since example list labels are often long. Thanks to
7261 Bernhard Fisseni for the suggestion.
7262 + Improve raw tex parsing. Note that the Markdown reader is also
7263 affected by the `latex_macros` extension changes described below
7264 under the LaTeX reader.
7268 + `latex_macros` extension changes (#4179). Don't pass through macro
7269 definitions themselves when `latex_macros` is set. The macros
7270 have already been applied. If `latex_macros` is enabled, then
7271 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
7272 a macro definition, and will update pandoc's internal macro map
7273 accordingly, but the empty string will be returned.
7274 + Export `tokenize`, `untokenize` (API change).
7275 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
7276 + Refactored `inlineCommand`.
7277 + Fix bug in tokenizer. Material following `^^` was
7278 dropped if it wasn't a character escape. This only affected
7279 invalid LaTeX, so we didn't see it in the wild, but it appeared
7280 in a QuickCheck test failure.
7281 + Fix regression in LateX tokenization (#4159). This mainly affects the
7282 Markdown reader when parsing raw LaTeX with escaped spaces.
7283 + Add tests of LaTeX tokenizer.
7284 + Support `\foreignlanguage` from babel.
7285 + Be more tolerant of `&` character (#4208). This allows us to parse
7286 unknown tabular environments as raw LaTeX.
7288 * Muse reader (Alexander Krotov):
7290 + Parse anchors immediately after headings as IDs.
7291 + Require that note references does not start with 0.
7292 + Parse empty comments correctly.
7294 * Org reader (Albert Krewinkel):
7296 + Fix asterisks-related parsing error (#4180).
7297 + Support minlevel option for includes (#4154). The level of headers
7298 in included files can be shifted to a higher level by specifying a
7299 minimum header level via the `:minlevel` parameter. E.g.
7300 `#+include: "tour.org" :minlevel 1` will shift the headers in
7301 tour.org such that the topmost headers become level 1 headers.
7302 + Break-up org reader test file into multiple modules.
7306 + Enable raw HTML and other extensions by default for notes
7307 (#4164). This fixes a regression in 2.0. Note that extensions can
7308 now be individually disabled, e.g. `-f opml-smart-raw_html`.
7312 + Allow empty list items (#4193).
7313 + More accurate parsing of references (#4156). Previously we erroneously
7314 included the enclosing backticks in a reference ID (#4156). This
7315 change also disables interpretation of syntax inside references, as
7316 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
7320 + Continue lists after interruption (#4025, Jesse Rosenthal).
7321 Docx expects that lists will continue where they left off after an
7322 interruption and introduces a new id if a list is starting again. So
7323 we keep track of the state of lists and use them to define a "start"
7324 attribute, if necessary.
7325 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
7326 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
7331 + Don't linkify table of contents.
7335 + Fix anchors for headers (#4188). We were missing an `_`.
7337 * PowerPoint writer (Jesse Rosenthal):
7339 + Treat lists inside BlockQuotes as lists. We don't yet produce
7340 incremental lists in PowerPoint, but we should at least treat lists
7341 inside BlockQuotes as lists, for compatibility with other slide formats.
7342 + Add ability to force size. This replaces the more specific
7343 `blockQuote runProp`, which only affected the size of blockquotes. We
7344 can use this for notes, etc.
7345 + Implement notes. This currently prints all notes on a final slide.
7346 Note that at the moment, there is a danger of text overflowing the
7347 note slide, since there is no logic for adding further slides.
7348 + Implement basic definition list functionality to PowerPoint writer.
7349 + Don't look for default template file for Powerpoint (#4181).
7350 + Add pptx to isTextFormat list. This is used to check standalone
7351 and not writing to the terminal.
7352 + Obey slide level option (Jesse Rosenthal).
7357 + Ensure that `distArchive` is the one that comes with pandoc
7358 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
7359 dir) would be used instead, and this could cause problems because a
7360 user-modified docx sometimes lacks vital sections that we count
7361 on the `distArchive` to supply.
7365 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
7366 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
7367 Alexander Krotov). Otherwise they can be interpreted as footnote
7370 * Muse writer (Alexander Krotov):
7372 + Don't wrap note references to the next line (#4172).
7376 + Use br elements in line blocks instead of relying on CSS
7377 (#4162). HTML-based templates have had the custom CSS for
7378 `div.line-block` removed. Those maintaining custom templates will want
7379 to remove this too. We still enclose line blocks in a div with class
7384 + Use `\renewcommand` for `\textlatin` with babel (#4161).
7385 This avoids a clash with a deprecated `\textlatin` command defined
7387 + Allow fragile=singleslide attribute in beamer slides (#4169).
7388 + Use `\endhead` after `\toprule` in headerless tables (#4207).
7392 + Add cover image specified by `cover-image` meta (Alexander Krotov,
7395 * JATS writer (Hamish Mackenzie):
7397 + Support writing `<fig>` and `<table-wrap>` elements
7398 with `<title>` and `<caption>` inside them by using Divs with class set
7399 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
7400 title is included as a Heading so the constraint on where Heading can
7401 occur is also relaxed.
7402 + Leave out empty alt attributes on links.
7403 + Deduplicate image mime type code.
7404 + Make `<p>` optional in `<td>` and `<th>` (#4178).
7405 + Self closing tags for empty xref (#4187).
7406 + Improve support for code language.
7410 + Use init file to setup Lua interpreter (Albert Krewinkel).
7411 The same init file (`data/init`) that is used to setup the Lua
7412 interpreter for Lua filters is also used to setup the interpreter of
7414 + Define instances for newtype wrapper (Albert Krewinkel). The custom
7415 writer used its own `ToLuaStack` instance definitions, which made
7416 it difficult to share code with Lua filters, as this could result
7417 in conflicting instances. A `Stringify` wrapper is introduced to
7419 + Added tests for custom writer.
7420 + Fixed definition lists and tables in `data/sample.lua`.
7422 * Fixed regression: when target is PDF, writer extensions were being
7423 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
7424 did not work properly.
7426 * Lua modules (Albert Krewinkel):
7428 + Add `pandoc.utils` module, to hold utility functions.
7429 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
7430 define the `pandoc` lua module.
7431 + Make a Haskell module for each Lua module. Move definitions for the
7432 `pandoc.mediabag` modules to a separate Haskell module.
7433 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
7434 + Add function `pandoc.utils.hierarchicalize` (convert list of
7435 Pandoc blocks into (hierarchical) list of Elements).
7436 + Add function `pandoc.utils.normalize_date` (parses a date and
7437 converts it (if possible) to "YYYY-MM-DD" format).
7438 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
7439 of numbers below 4000 into roman numerals).
7440 + Add function `pandoc.utils.stringify` (converts any AST element
7441 to a string with formatting removed).
7442 + `data/init.lua`: load `pandoc.utils` by default
7443 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
7444 utility functions are converted from hybrid lua/haskell functions
7445 into full Haskell functions. This avoids the need for intermediate
7446 `_pipe`/`_read` helper functions, which have dropped.
7447 + pandoc.lua: re-add missing MetaMap function. This was a bug
7448 introduced in version 2.0.4.
7450 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
7451 a pure way to insert an ersatz file into a `FileTree`. In addition, we
7452 normalize paths both on insertion and on lookup.
7454 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
7456 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
7458 * Text.Pandoc.Extensions: Alphabetical order constructors for
7459 `Extension`. This makes them appear in order in `--list-extensions`.
7461 * Allow lenient decoding of latex error logs, which are not always
7462 properly UTF8-encoded (#4200).
7464 * Update latex template to work with recent versions of beamer.
7465 The old template produced numbered sections with some recent
7466 versions of beamer. Thanks to Thomas Hodgson.
7468 * Updated reference.docx (#4175). Instead of just "Hello, world", the
7469 document now contains exemplars of most of the styles that have an
7470 effect on pandoc documents. This makes it easier to see the effect
7473 * Removed `default.theme` data file (#4096). It is no longer needed now
7474 that we have `--print-highlight-style`.
7476 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
7477 We still need this for the alpine static linux build, since
7478 we don't have ghc 8.2.2 for that yet.
7480 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
7481 can put flag settings for pandoc-citeproc there.
7483 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
7484 make releases easier.
7488 + Add note on what formats have `+smart` by default.
7489 + Use native syntax for custom-style (#4174, Mauro Bieg).
7490 + Introduce dedicated Extensions section, since some extensions
7491 affect formats other than markdown (Mauro Bieg, #4204).
7492 + Clarify default html output for `--section-divs` (Richard Edwards).
7494 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
7495 Closes jgm/pandoc-website#16.
7497 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
7499## pandoc 2.0.5 (2017-12-12)
7501 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
7502 generated with `--print-highlight-style` (#4133). Improve JSON
7503 serialization of styles.
7505 * Fix CSS issues involving line numbers (#4128).
7506 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
7507 Highlighting CSS no longer sets a generic color for pre and code; we only
7508 set these for class `sourceCode`.
7510 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
7512 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
7513 It works following the standard Pandoc conventions for making other
7514 sorts of slides. Caveats:
7516 + Syntax highlighting is not yet implemented. (This is difficult
7517 because there are no character classes in Powerpoint.)
7518 + Footnotes and Definition lists are not yet implemented. (Notes will
7519 usually take the form of a final slide.
7520 + Image placement and auto-resizing has a few glitches.
7521 + Reference powerpoint files don't work dependably from the command
7522 line. This will be implemented, but at the moment users are advised
7523 to change themes from within Powerpoint.
7525 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
7526 This is for functions used by both Powerpoint and Docx writers.
7528 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
7530 * Add `empty_paragraphs` extension.
7532 + Deprecate `--strip-empty-paragraphs` option. Instead we now
7533 use an `empty_paragraphs` extension that can be enabled on
7534 the reader or writer. By default, disabled.
7535 + Add `Ext_empty_paragraphs` constructor to `Extension`.
7536 + Revert "Docx reader: don't strip out empty paragraphs."
7537 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
7538 + Implement `empty_paragraphs` extension in docx reader and writer,
7539 opendocument writer, html reader and writer.
7540 + Add tests for `empty_paragraphs` extension.
7544 + Don't parse native div as table caption (#4119).
7545 + Improved computation of column widths in pipe tables.
7546 Pipe tables with lines longer than the text width (as set
7547 by `--columns`) are now scaled to text width, with the relative
7548 widths of columns determined by the ratios between the
7549 header lines. Previously we computed column widths using
7550 the ratio of header line lengths to column width, so that
7551 tables with narrow header lines were extremely thin, which
7552 was very rarely the desired result.
7554 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
7555 as long as it's not followed by a blank line. This has been fixed at the
7558 * Muse reader (Alexander Krotov):
7560 + Add test for `#disable-tables` directive in Emacs mode.
7561 + Don't allow emphasis to be preceded by letter.
7562 + Add underline support in Emacs Muse mode..
7563 + Support multiline directives in Amusewiki mode
7565 * Man writer: omit internal links (#4136). That is, just print the link
7566 text without the URL.
7568 * Markdown reader: accept processing instructions as raw HTML (#4125).
7570 * Lua filters (Albert Krewinkel):
7572 + Use script to initialize the interpreter. The file `init.lua` is
7573 used to initialize the Lua interpreter which is used in Lua filters.
7574 This gives users the option to require libraries which they want to
7575 use in all of their filters, and to extend default modules.
7576 + Fix package loading for Lua 5.1. The list of package searchers is
7577 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
7578 in Lua 5.2 and later.
7579 + Refactor lua module handling. The integration with Lua's package/module
7580 system is improved: A pandoc-specific package searcher is prepended to
7581 the searchers in `package.searchers`. The modules `pandoc` and
7582 `pandoc.mediabag` can now be loaded via `require`.
7583 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
7584 function which makes using Haskell functions as package loaders much
7587 * reveal.js template: add title-slide identifier to title slide (#4120).
7588 This allows it to be styled more easily.
7590 * LaTeX template: Added support for `pagestyle` variable (#4135,
7593 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
7597## pandoc 2.0.4 (2017-12-03)
7599 * Add `--print-highlight-style` option. This generates a JSON version
7600 of a highlighting style, which can be saved as a `.theme` file, modified,
7601 and used with `--highlight-style` (#4106, #4096).
7603 * Add `--strip-empty-paragraphs` option. This works for any input format.
7604 It is primarily intended for use with docx and odt documents where
7605 empty paragraphs have been used for inter-paragraph spaces.
7607 * Support `--webtex` for `gfm` output.
7609 * Recognize `.muse` file extension.
7611 * Support beamer `\alert` in LaTeX reader. Closes #4091.
7613 * Docx reader: don't strip out empty paragraphs (#2252).
7614 Users who have a conversion pipeline from docx may want to consider adding
7615 `--strip-empty-paragraphs` to the command line.
7617 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
7619 * Muse reader (Alexander Krotov):
7621 + Parse markup in definition list terms.
7622 + Allow definition to end with EOF.
7623 + Make code blocks round trip.
7624 + Drop common space prefix from list items.
7625 + Add partial round trip test.
7626 + Don't interpret XML entities.
7628 + Parse `~~` as non-breaking space in Emacs mode.
7629 + Correctly remove indentation from notes. Exactly one space is
7630 required and considered to be part of the marker.
7631 + Allow list items to be empty.
7632 + Add ordered list test.
7633 + Add more multiline definition tests.
7634 + Don't allow blockquotes within lists.
7635 + Fix reading of multiline definitions.
7636 + Add inline `<literal>` support.
7637 + Concatenate inlines of the same type
7639 * Docx writer: allow empty paragraphs (#2252).
7641 * CommonMark/gfm writer:
7643 + Use raw html for native divs/spans (#4113). This allows a pandoc
7644 markdown native div or span to be rendered in gfm using raw html tags.
7645 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
7646 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
7648 * Muse writer (Alexander Krotov):
7650 + Test that inline math conversion result is normalized.
7651 Without normalization this test produced
7652 `<em>a</em><em>b</em><em>c</em>`.
7653 + Improve inline list normalization and move to writer.
7654 + Escape hash symbol.
7655 + Escape `----` to avoid accidental horizontal rules.
7656 + Escape only `</code>` inside code tag.
7657 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
7661 + Allow specifying just width or height for image size.
7662 Previously both needed to be specified (unless the image was
7663 being resized to be smaller than its original size).
7664 If height but not width is specified, we now set width to
7665 textwidth. If width but not height is specified, we now set
7666 height to textheight. Since we have `keepaspectratio`, this
7667 yields the desired result.
7668 + Escape `~` and `_` in code with `--listings` (#4111).
7670 * HTML writer: export `tagWithAttributes`. This is a helper allowing
7671 other writers to create single HTML tags.
7673 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
7674 converting the case as needed in LaTeX and ConTeXt writers.
7676 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
7677 so that it no longer produces empty `Para`'s as an artifact.
7679 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
7680 This gives us automatic normalization, so we don't get
7681 for example two consecutive Spaces.
7683 * Include default CSS for 'underline' class in HTML-based templates.
7685 * revealjs template: add `tex2jax` configuration for the
7686 math plugin. With the next release of reveal.js, this will
7687 fix the problem of `$`s outside of math contexts being
7688 interpreted as math delimiters (#4027).
7690 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
7692 + Add basic lua List module (#4099, #4081). The List module is
7693 automatically loaded, but not assigned to a global variable. It can be
7694 included in filters by calling `List = require 'List'`. Lists of blocks,
7695 lists of inlines, and lists of classes are now given `List` as a metatable,
7696 making working with them more convenient. E.g., it is now possible to
7697 concatenate lists of inlines using Lua's concatenation operator `..`
7698 (requires at least one of the operants to have `List` as a metatable):
7700 function Emph (emph)
7701 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
7702 return pandoc.Span(emph.content .. s)
7705 The `List` metatable is assigned to the tables which get passed to
7706 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
7707 enables the use of the resulting objects as lists.
7708 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
7709 Pandoc and Meta elements are now pushed by calling the respective
7710 constructor functions of the pandoc Lua module. This makes serialization
7711 consistent with the way blocks and inlines are pushed to lua and allows
7712 to use List methods with the `blocks` value.
7713 + Add documentation for pandoc.List in `lua-filters.md`.
7715 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
7716 `&` (but not a valid entity) following them (#4094, #4088).
7718 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
7719 when `numberLines` is used (#4103).
7721 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
7722 requiring a leading 0 on single-digit days.
7724 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
7727 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
7728 Previously we only mentioned `--latexmathml`, even if `-m` was
7731 * Changelog: fix description of lua filters in 2.0 release
7732 (Albert Krewinkel). Lua filters were initially run *after* conventional
7733 (JSON) filters. However, this was changed later to make it easier to deal
7734 with files in the mediabag. The changelog is updated to describe that
7735 feature of the 2.0 release correctly.
7737 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
7738 #4085). This reduces compile time and memory usage significantly.
7740 * `lua-filters.md`: Added tikz filter example.
7742 * Create alternative zip file for macOS binaries.
7744 * Create alternative zip file for Windows binaries.
7746 * Update INSTALL.md since we now provide zips for binaries.
7748 * Relax `http-types` dependency (Justus Sagemüller, #4084).
7750 * Add `epub.md`, `getting-started.md` to docs. These used to live in
7753 * Add `packages` target to Makefile.
7755 * Bump bounds for binary, http-types, tasty-hunit
7757## pandoc 2.0.3 (2017-11-20)
7759 * Lua filters: preload text module (Albert Krewinkel, #4077).
7760 The `text` module is preloaded in lua. The module contains some UTF-8
7761 aware string functions, implemented in Haskell. The module is loaded on
7764 text = require 'text'
7766 s.text = text.upper(s.text)
7770 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
7771 #4071). Attribute lists are represented as associative lists in Lua. Pure
7772 associative lists are awkward to work with. A metatable is attached to
7773 attribute lists, allowing to access and use the associative list as if
7774 the attributes were stored in as normal key-value pair in table.
7775 Note that this changes the way `pairs` works on attribute lists. Instead
7776 of producing integer keys and two-element tables, the resulting iterator
7777 function now returns the key and value of those pairs. Use `ipairs` to
7778 get the old behavior. Warning: the new iteration mechanism only works if
7779 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
7781 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
7782 This fixes a bug where pandoc would stop parsing a URI with an
7783 empty attribute: for example, `&a=&b=` wolud stop at `a`.
7784 (The uri parser tries to guess which punctuation characters
7785 are part of the URI and which might be punctuation after it.)
7787 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
7789 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
7791 + Reimplemented `isEnabled` function from `Options.hs` to accept both
7792 `ReaderOptions` and `WriterOptions`.
7793 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
7795 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
7796 behavior for `muse`. New `Ext_amuse` constructor for
7797 `Extension`. Note: this is switched on by default; for
7798 Emacs behavior, use `muse-amuse`.
7800 * Muse reader (Alexander Krotov):
7802 + Count only one space as part of list item marker.
7803 + Produce SoftBreaks on newlines. Now wrapping can be preserved
7804 with `--wrap=preserve`.
7805 + Add Text::Amuse footnote extensions. Footnote end is indicated by
7806 indentation, so footnotes can be placed anywhere in the text,
7807 not just at the end of it.
7808 + Accept Emacs Muse definition lists when `-amuse`.
7809 Emacs Muse does not require indentation.
7813 + Ensure we don't produce level 0 headers (#4076), even for chapter
7814 sections in epubs. This causes problems because writers aren't set
7816 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
7817 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
7818 `markdown` or `html` `+tex_math_single_backslash`.
7820 * MANUAL: clarify that math extensions work with HTML.
7821 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
7822 will work with HTML as well as Markdown.
7824 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
7827 * RST reader: better support for 'container' directive (#4066).
7828 Create a div, incorporate name attribute and classes.
7832 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
7833 `rr`. We now expand it like a macro.
7834 + Allow optional args for parbox (#4056).
7835 + Allow optional arguments on `\footnote` (#4062).
7837 * EPUB writer: Fixed path for cover image (#4069). It was previously
7838 `media/media/imagename`, and should have been `media/imagename`.
7840 * Markdown writer: fix bug with doubled footnotes in grid tables
7843 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
7844 Otherwise we seem to get an error; biblatex wants polyglossia
7845 language to be defined.
7847 * Added examples to lua filters documentation.
7850## pandoc 2.0.2 (2017-11-12)
7852 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
7853 `--mimetex`, `--jsmath`.
7855 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
7856 leading to invalid XML in default JATS output with pandoc-citeproc.
7858 * `lua-filters.md`: use real-world man page filter as example.
7860 * Add lua filter functions `walk_inline` and `walk_block`
7861 in the pandoc module, to apply filters inside particular
7862 inline and block elements.
7864 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
7865 into new internal module `Text.Pandoc.Lua.Filter`.
7869 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
7870 This brings our handling of them into alignment with CommonMark's.
7871 + Fix YAML metadata with "chomp" (`|-`). Previously if a
7872 YAML block under `|-` contained a blank line, pandoc would
7873 not parse it as metadata.
7875 * Removed `etc.` from abbreviations file. Often `etc.` ends a
7876 sentence, and we want the period to be treated as a
7877 sentence-ending period.
7879 * Fix regression with `--metadata` (#4054). Values specified with
7880 `--metadata` should replace a metadata value set in the document
7881 itself, rather than creating a list including a new value.
7885 + Fix EPUB OCF structure. #3720 had been improperly implemented.
7886 + Fix modified paths for raw HTML tags (src, poster, etc.)
7887 (#4050, #4055). This had not been updated for the new EPUB
7888 container layout, with a separate text/ subdirectory.
7889 + Fix image paths with empty `--epub-subdirectory`.
7891 * Miscellaneous code cleanup (Alexander Krotov).
7893 * Use pandoc-types 1.17.3, which adds `Walkable` instances
7894 for `[Block] Block` and `[Inline] Inline`.
7896 * Remove obsolete `stack.full.yaml` (#4052).
7898 * Change to using pandoc-citeproc 0.12.1 in binary packages.
7900 * Consolidate math output method documentation (#4049, Mauro Bieg).
7902 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
7904 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
7905 Haskell filters. This is easier and faster.
7907 * Improved `INSTALL.md`.
7909 * Update commands to extract deb archive on Linux (#4043, Salim B).
7912## pandoc 2.0.1.1 (2017-11-04)
7914 * Improved fix to #3989 (parsing of HTML tags containing
7915 `>` in an attribute or comment). The previous fix (in 2.0.1) only
7916 worked in certain cases.
7918 * FB2 writer (Alexander Krotov):
7920 + Add `unrecognised` genre to `<title-info>`
7921 (Alexander Krotov). XML schema requires at least one genre.
7922 + Remove `<annotation>` from `<body>`.
7924 * CommonMark writer: fix strikethrough for `gfm` (#4038).
7926 * Use texmath 0.10, which adds support for a wider range of
7927 symbols and fixes default column alignments in MathML
7930 * Highlighting fixes, using skylighting 0.4.3.2:
7933 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
7934 + Ensure that code lines don't get duplicate identifiers (#4031).
7935 The line identifiers are built using the code block's identifier
7936 as a prefix. If the code block has null identifier, we use
7939 * Added a few abbreviations to `data/abbreviations`,
7940 and sorted the list (#3984, Wandmalfarbe).
7942 * Improved support for columns in HTML writer (#4028).
7944 + Remove `width` attribute from the `div`.
7945 + Remove space between `<div class="column">` elements,
7946 since this prevents columns whose widths sum to 100%
7947 (the space takes up space).
7948 + Move as much as possible of the CSS to the template.
7949 + Ensure that all the HTML-based templates (including epub)
7950 contain the CSS for columns.
7951 + Columns default to 50% width unless they are given a width
7952 attribute. So if you want two equal-width columns, you
7953 can use a div with class `column` and no `width` attribute.
7955 * SelfContained: use `base64` for css links with media attribute (#4026).
7956 This fixes `--self-contained` with S5.
7958 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
7960 * INSTALL.md: MacOS instructions needed xar -f (adam234).
7964 + Clarify that --setext-headers doesn't affect gfm output (#4035).
7965 + Clarify what is needed to open and close a div in `fenced_divs`
7966 (#4039, Tristano Ajmone).
7967 + Removed reference to `default.beamer` in docs (#4024).
7968 Also added mention of other templates affecting PDF output
7969 with different settings.
7972## pandoc 2.0.1 (2017-10-31)
7974 * Fixed regression in parsing of HTML comments in markdown and other
7975 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
7976 The parser stopped at the first `>` character, even if it wasn't
7977 the end of the comment.
7979 * Creole reader (Sascha Wilde):
7981 + Fix some minor typos and formatting.
7982 + Add additional test on nowiki-block after para.
7983 + Fix lists with trailing white space.
7985 * LaTeX reader: handle `%` comment right after command.
7986 For example, `\emph%`.
7988 * Markdown reader: make sure fenced div closers work in lists.
7989 Previously the following failed:
7996 and you needed a blank line before the closing `:::`.
7998 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
7999 enabled, Divs will be rendered as fenced divs.
8001 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
8004 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
8005 Note: this change may require some changes in CSS rules.
8006 `footnoteRef` has become `footnote-ref`, `titleslide` has
8007 become `title-slide`, and `footnoteBack` has become `footnote-back`.
8009 * JATS writer: Properly pass through author metadata (#4020).
8011 * FB2 writer (Alexander Krotov):
8013 + Write blocks outside of `<p>` in definitions.
8014 + Make bullet lists consistent with ordered lists, repeating
8015 the marker for the outer list rather than indenting sublists,
8016 since indentation does not work in readers.
8017 + Add new style FB2 tests.
8019 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
8020 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
8023 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
8025 * Fix broken reference links in manual (Andrew Dunning, #4014)
8027 * Fixed example of slide columns structure in changelog (#4015).
8028 Also documented this feature in MANUAL.txt.
8031## pandoc 2.0.0.1 (2017-10-30)
8035 + Fixed filepaths for nonstandard epub-subdirectory values.
8036 + Ensure that epub2 is recognized as a non-text format,
8037 so that a template is used.
8038 + Don't include "prefix" attribute for ibooks for epub2.
8039 It doesn't validate.
8040 + Fix stylesheet paths; previously we had an incorrect
8041 stylesheet path for the cover page and nav page.
8045 + Insert space when needed in macro expansion (#4007).
8046 Sometimes we need to insert a space after a control sequence
8047 to prevent it merging with a following letter.
8048 + Allow unbraced arguments for macros (#4007).
8049 + Allow body of macro definition to be unbraced (#4007).
8051 * Linux package build: ensure that pandoc-citeproc is statically linked.
8053 * trypandoc: add native, ms.
8056## pandoc 2.0 (2017-10-29)
8060 * New output format `ms` (groff ms). Complete support, including
8061 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
8062 texmath's new eqn writer to convert math to eqn format, so a ms file
8063 produced with this writer should be processed with `groff -ms -e` if
8066 * New output format `jats` (Journal Article Tag Suite). This is an XML
8067 format used in archiving and publishing articles. Note that a
8068 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
8069 unless a stylesheet is specified using `--css`.
8071 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
8072 This uses bindings to GitHub's fork of cmark, so it should parse
8073 gfm exactly as GitHub does (excepting certain postprocessing
8074 steps, involving notifications, emojis, etc.). `markdown_github`
8075 has been deprecated in favor of `gfm`.
8077 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
8079 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
8080 This uses bindings to GitHub's fork of cmark. `markdown_github`
8081 has been deprecated in favor of `gfm`.
8083 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
8085 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
8087 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
8088 Note that there is a new data file, `data/vimwiki.css`, which can
8089 be used to display the HTML produced by this reader and
8090 pandoc's HTML writer in the style of vimwiki's own HTML
8093 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
8095 * New syntax for Divs, with `fenced_divs` extension enabled by
8096 default (#168). This gives an attractive, plain-text way to create
8097 containers for block-level content.
8099 * Added new syntax for including raw content in any output format,
8100 enabled by the `raw_attribute` extension (which is on by default
8101 for `markdown` and `multimarkdown`). The syntax is the same as
8102 for fenced code blocks or code inlines, only with `{=FORMAT}` for
8103 attributes, where `FORMAT` is the name of the output format
8104 (e.g., `ms`, `html`).
8106 * Implement multicolumn support for slide formats (#1710).
8107 The structure expected is:
8109 :::::::::::::: {.columns}
8110 ::: {.column width="40%"}
8113 ::: {.column width="60%"}
8118 Support has been added for beamer and all HTML slide formats.
8120 * Allows line comments in templates, beginning with `$--` (#3806).
8121 (Requires doctemplates 0.2.1.)
8123 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
8124 (Stefan Dresselhaus, #3663, #2097).
8126 * Add `--log` option to save log messages in JSON format to a file (#3392).
8128 * Add `--request-header` option, to set request headers when pandoc
8129 makes HTTP requests to fetch external resources. For example:
8130 `--request-header User-Agent:blah`.
8132 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
8133 option works like `--filter` but takes pathnames of special lua filters
8134 and uses the lua interpreter baked into pandoc, so that no external
8135 interpreter is needed. Note that lua filters are all applied after
8136 regular filters, regardless of their position on the command line.
8137 For documentation of lua filters, see `doc/lua-filters.md`.
8139 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
8140 This contains a JSON representation of `ReaderOptions`, so filters
8143 * Support creation of pdf via groff `ms` and pdfroff.
8144 `pandoc -t ms -o output.pdf input.txt`.
8146 * Support for PDF generation via HTML and `weasyprint` or `prince`
8147 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
8149 * Added `--epub-subdirectory` option (#3720). This specifies the
8150 subdirectory in the OCF container that holds the EPUB specific content.
8151 We now put all EPUB related content in an `EPUB/` subdirectory by default
8152 (later this will be configurable).
8157 com.apple.ibooks.display-options.xml
8159 EPUB/ <<--configurable-->>
8160 fonts/ <<--static-->>
8162 media/ <<--static-->>
8165 styles/ <<--static-->>
8169 text/ <<--static-->>
8173 * Added `--resource-path=SEARCHPATH` command line option (#852).
8174 SEARCHPATH is separated by the usual character, depending on OS
8175 (: on unix, ; on windows). Default resource path is just working
8176 directory. However, the working directory must be explicitly
8177 specified if the `--resource-path` option is used.
8179 * Added --abbreviations=FILE option for custom abbreviations file
8180 (#256). Dfault abbreviations file (`data/abbreviations`) contains
8181 a list of strings that will be recognized by pandoc's
8182 Markdown parser as abbreviations. (A nonbreaking space will
8183 be inserted after the period, preventing a sentence space in
8184 formats like LaTeX.) Users can override the default by putting a file
8185 abbreviations in their user data directory (`~/.pandoc` on *nix).
8187 * Allow a theme file as argument to `--highlight-style`.
8188 Also include a sample, `default.theme`, in `data/`.
8190 * Allow `--syntax-definition` option for dynamic loading of syntax
8191 highlighting definitions (#3334).
8193 * Lists in `markdown` by default now use the CommonMark variable
8194 nesting rules (#3511). The indentation required for a block-level
8195 item to be included in a list item is no longer fixed, but is
8196 determined by the first line of the list item. To be included in
8197 the list item, a block must be indented to the level of the first
8198 non-space content after the list marker. Exception: if are 5 or more
8199 spaces after the list marker, then the content is interpreted as an
8200 indented code block, and continuation paragraphs must be indented
8201 two spaces beyond the end of the list marker. See the CommonMark
8202 spec for more details and examples.
8204 Documents that adhere to the four-space rule should, in most cases,
8205 be parsed the same way by the new rules. Here are some examples
8206 of texts that will be parsed differently:
8211 will be parsed as a list item with a sublist; under the four-space
8212 rule, it would be a list with two items.
8218 Here we have an indented code block under the list item, even though it
8219 is only indented six spaces from the margin, because it is four spaces
8220 past the point where a continuation paragraph could begin. With the
8221 four-space rule, this would be a regular paragraph rather than a code
8228 Here the code block will start with two spaces, whereas under
8229 the four-space rule, it would start with `code`. With the four-space
8230 rule, indented code under a list item always must be indented eight
8231 spaces from the margin, while the new rules require only that it
8232 be indented four spaces from the beginning of the first non-space
8233 text after the list marker (here, `a`).
8235 This change was motivated by a slew of bug reports from people
8236 who expected lists to work differently (#3125, #2367, #2575, #2210,
8237 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
8238 of CommonMark (now used by GitHub, for example). Those who
8239 prefer the old behavior can use `-f markdown+four_space_rule`.
8241 * Added `four_space_rule` extension. This triggers the old pandoc
8242 parsing rule for content nested under list items (the "four space
8245 * Added `spaced_reference_links` extension (#2602). It allows whitespace
8246 between the two parts of a reference link: e.g.
8252 This was previously enabled by default; now it is forbidden by default.
8254 * Add `space_in_atx_header` extension (#3512). This is enabled by default
8255 in pandoc and GitHub markdown but not the other flavors.
8256 This requirse a space between the opening #'s and the header
8257 text in ATX headers (as CommonMark does but many other implementations
8258 do not). This is desirable to avoid falsely capturing things ilke
8266 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
8269 * Allow ibooks-specific metadata in epubs (#2693). You can now have
8270 the following fields in your YAML metadata, and it will be treated
8271 appropriately in the generated EPUB:
8276 specified-fonts: false
8277 ipad-orientation-lock: portrait-only
8278 iphone-orientation-lock: landscape-only
8280 scroll-axis: vertical
8286 * Reader functions no longer presuppose that CRs have been
8287 stripped from the input. (They strip CRs themselves, before
8288 parsing, to simplify the parsers.)
8290 * Added support for translations (localization) (#3559).
8291 Currently this only affects the LaTeX reader, for things
8292 like `\figurename`. Translation data files for 46 languages
8293 can be found in `data/translations`.
8295 * Make `--ascii` work with DocBook output too.
8297 * Rename `--latex-engine` to `--pdf-engine`,
8298 and `--latex-engine-opt` to `--pdf-engine-opt`.
8300 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
8301 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
8302 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
8303 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
8305 * With `--filter` R filters are now recognized, even if they are
8306 not executable (#3940, #3941, Andrie de Vries).
8308 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
8310 * Make epub an alias for epub3, not epub2.
8312 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
8313 Multiple stylesheets may be used. Stylesheets will be taken both from
8314 `--css` and from the `stylesheet` metadata field (which can contain
8315 either a file path or a list of them).
8317 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
8318 The argument was for a bridge JavaScript that used to be necessary
8319 in 2004. We have removed the script already.
8321 * `--katex` improvements. The latest version is used, and the
8322 autoload script is loaded by default.
8324 * Change MathJax CDN default since old one is shutting down (#3544).
8325 Note: The new URL requires a version number, which we'll have
8326 to update manually in subsequent pandoc releases in order to
8327 take advantage of mathjax improvements.
8329 * `--self-contained`: don't incorporate elements with `data-external="1"`
8330 (#2656). You can leave an external link as it is by adding the attribute
8331 data-external="1" to the element. Pandoc will then not try to
8332 incorporate its content when `--self-contained` is used. This is
8333 similar to a feature already supported by the EPUB writer.
8335 * Allow `--extract-media` to work with non-binary input formats
8336 (#1583, #2289). If `--extract-media` is supplied with a non-binary
8337 input format, pandoc will attempt to extract the contents of all
8338 linked images, whether in local files, data: uris, or external uris.
8339 They will be named based on the sha1 hash of the contents.
8341 * Make `papersize: a4` work regardless of the case of `a4`.
8342 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
8344 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
8346 * Underlined elements are now treated consistently by readers
8347 (#2270, hftf); they are always put in a Span with class `underline`.
8348 This allows the user to treat them differently from other emphasis,
8349 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
8352 * Improved behavior of `auto_identifiers` when there are explicit ids
8353 (#1745). Previously only autogenerated ids were added to the list
8354 of header identifiers in state, so explicit ids weren't taken
8355 into account when generating unique identifiers. Duplicated
8356 identifiers could result. This simple fix ensures that explicitly given
8357 identifiers are also taken into account.
8359 * Use `table-of-contents` for contents of toc, make `toc` a boolean
8360 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
8361 This allows you to set `toc: true` in the metadata; this
8362 previously produced strange results in some output formats.
8363 For backwards compatibility, `toc` is still set to the
8364 toc contents. But it is recommended that you update templates
8365 to use `table-of-contents` for the toc contents and `toc`
8368 * Change behavior with binary format output to stdout.
8369 Previously, for binary formats, output to stdout was disabled
8370 unless we could detect that the output was being piped (and not
8371 sent to the terminal). Unfortunately, such detection is not
8372 possible on Windows, leaving windows users no way to pipe binary
8373 output. So we have changed the behavior in the following way:
8375 + Output to stdout is allowed when it can be determined that
8376 the output is being piped (on non-Windows platforms).
8377 + If the `-o` option is not used, binary output is never sent
8378 to stdout by default; instead, an error is raised.
8379 + If `-o -` is used, binary output is sent to stdout, regardless
8380 of whether it is being piped. This works on Windows too.
8382 * Better error behavior: uses of `error` have been replaced by
8383 raising of `PandocError`, which can be trapped and handled by the
8386 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
8387 GitHub has two Markdown modes, one for long-form documents like READMEs
8388 and one for short things like issue comments. In issue comments, a line
8389 break is treated as a hard line break. In README, wikis, etc., it is
8390 treated as a space as in regular Markdown. Since pandoc is more likely to
8391 be used to convert long-form documents from GitHub Markdown,
8392 `-hard_line_breaks` is a better default.
8394 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
8396 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
8397 Previously they would be transmitted to the template without any
8398 escaping. Note that `--M title='*foo*'` yields a different result from
8404 In the latter case, we have emphasis; in the former case, just
8405 a string with literal asterisks (which will be escaped
8406 in formats, like Markdown, that require it).
8408 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
8410 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
8411 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
8412 it is valid HTML5. HTML4 is not affected. This will allow us to use
8413 custom attributes in pandoc without producing invalid HTML. (With help
8414 from Wandmalfarbe, #3817.)
8416 * Plain writer: improved super/subscript rendering. We now
8417 handle more non-digit characters for which there are
8418 sub/superscripted unicode characters. When unicode
8419 sub/superscripted characters are not available, we use
8420 `_(..)` or `^(..)` (#3518).
8422 * Docbook, JATS, TEI writers: print INFO message when omitting interior
8423 header (#3750). This only applies to section headers inside list items,
8424 e.g., which were otherwise silently omitted.
8426 * Change to `--reference-links` in Markdown writer (#3701). With
8427 `--reference-location` of `section` or `block`, pandoc will now repeat
8428 references that have been used in earlier sections. The Markdown
8429 reader has also been modified, so that *exactly* repeated references
8430 do not generate a warning, only references with the same label but
8431 different targets. The idea is that, with references after every block,
8432 one might want to repeat references sometimes.
8434 * ODT/OpenDocument writer:
8436 + Support `lang` attribute (#1667).
8437 + Added support for `--toc` (#2836). Thanks to @anayrat.
8441 + `lang` meta, see #1667 (Mauro Bieg, #3515).
8442 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
8443 + Use `Table` rather than `Table Normal` for table style (#3275).
8444 `Table Normal` is the default table style and can't be modified.
8445 + Pass through comments (#2994). We assume that comments are defined as
8446 parsed by the docx reader:
8448 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
8449 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
8450 have a comment <span class="comment-end" id="0"></span>on it.
8452 We assume also that the id attributes are unique and properly
8453 matched between comment-start and comment-end.
8454 + Bookmark improvements. Bookmark start/end now surrounds content rather
8455 than preceding it. Bookmarks generated for Div with id
8456 (jgm/pandoc-citeproc#205).
8457 + Add `keywords` metadata to docx document properties (Ian).
8459 * RST writer: support unknown interpreted text roles by
8460 parsing them as `Span` with `role` attributes (#3407). This
8461 way they can be manipulated in the AST.
8465 + Line block: Use class instead of style attribute (#1623). We now
8466 issue `<div class="line-block">` and include a default definition
8467 for `line-block` in the default templates, instead of hard-coding a
8469 + Add class `footnoteBack` to footnote back references (Timm Albers).
8470 This allows for easier CSS styling.
8471 + Render SmallCaps as span with smallcaps class (#1592), rather than
8472 using a style attribute directly. This gives the user more flexibility
8473 in styling small caps in CSS.
8474 + With reveal.js we use `data-src` instead of `src` for images for
8476 + Special-case `.stretch` class for images in reveal.js (#1291).
8477 Now in reveal.js, an image with class `stretch` in a paragraph
8478 by itself will stretch to fill the whole screen, with no
8479 caption or figure environment.
8481 * Added warnings for non-rendered blocks to writers.
8483 * Writers now raise an error on template failure.
8485 * When creating a PDF via LaTeX, warn if the font is missing some
8488 * Remove initial check for PDF-creating program (#3819).
8489 Instead, just try running it and raise the exception if it
8490 isn't found at that point. This improves things for users of Cygwin
8491 on Windows, where the executable won't be found by `findExecutable`
8492 unless `.exe` is added. The same exception is raised as before, but
8495 * Readers issue warning for duplicate header identifiers (#1745).
8496 Autogenerated header identifiers are given suffixes so as not to clash
8497 with previously used header identifiers. But they may still coincide with
8498 an explicit identifier that is given for a header later in the document,
8499 or with an identifier on a div, span, link, or image. We now issue
8500 a warning in this case, so users can supply an explicit identifier.
8502 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
8503 and `raw_html` extensions.
8507 + Don't allow backslash + newline to affect block structure (#3730).
8508 Note that as a result of this change, the following, which formerly
8509 produced a header with two lines separated by a line break, will
8510 now produce a header followed by a paragraph:
8515 This may affect some existing documents that relied on
8516 this undocumented and unintended behavior. This change makes pandoc
8517 more consistent with other Markdown implementations, and with itself
8518 (since the two-space version of a line break doesn't work inside ATX
8519 headers, and neither version works inside Setext headers).
8522 * Org reader (Albert Krewinkel, unless noted):
8524 + Support `table.el` tables (#3314).
8525 + Support macros (#3401).
8526 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
8527 Recognized include types are `example`, `export`, `src`, and
8528 normal org file inclusion. Advanced features like line numbers
8529 and level selection are not implemented yet.
8530 + Interpret more meta value as inlines. The values of the following
8531 meta variables are now interpreted using org-markup instead of
8532 treating them as pure strings: `keywords` (comma-separated list of
8533 inlines), `subtitle` (inline values), `nocite` (inline values, can
8535 + Support `\n` export option (#3940). This turns all newlines in the
8536 text into hard linebreaks.
8540 + Improved admonition support (#223). We no longer add an
8541 `admonition` class, we just use the class for the type of admonition,
8542 `note` for example. We put the word corresponding to the label in
8543 a paragraph inside a `Div` at the beginning of the admonition with
8544 class `admonition-title`. This is about as close as we can get to
8546 + Initial support of `.. table` directive. This allows adding captions
8548 + Support `.. line-block` directive. This is deprecated but may still
8549 be in older documents.
8550 + Support scale and align attributes of images (#2662).
8551 + Implemented implicit internal header links (#3475).
8552 + Support RST-style citations (#853). The citations appear at the end
8553 of the document as a definition list in a special div with id
8554 `citations`. Citations link to the definitions.
8555 + Recurse into bodies of unknown directives (#3432).
8556 In most cases it's better to preserve the content than
8557 to emit it. This isn't guaranteed to have good results;
8558 it will fail spectacularly for unknown raw or verbatim directives.
8559 + Handle chained link definitions (#262). For example,
8562 .. _goodbye: example.com
8564 Here both `hello` and `goodbye` should link to `example.com`.
8565 + Support anchors (#262). E.g.
8573 This is supported by putting "paragraph" in a `Div` with id `hello`.
8574 + Support `:widths:` attribute for table directive.
8575 + Implement csv-table directive (#3533). Most attributes are supported,
8576 including `:file:` and `:url:`.
8577 + Support unknown interpreted text roles by parsing them as Span
8578 with "role" attributes (#3407). This way they can be manipulated in
8581 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
8585 + Implemented `\graphicspath` (#736).
8586 + Properly handle column prefixes/suffixes. For example, in
8587 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
8588 each cell will be interpreted as if it has a `$`
8589 before its content and a `$` after (math mode).
8590 + Handle komascript `\dedication` (#1845). It now adds a
8591 `dedication` field to metadata. It is up to the user to supply
8592 a template that uses this variable.
8593 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
8594 `sf`, `bf` (#3488). Spans with a class are used when there is
8596 + Expand `\newenvironment` macros (#987).
8597 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
8598 + Better support for subfigure package (#3577).
8599 A figure with two subfigures turns into two pandoc
8600 figures; the subcaptions are used and the main caption
8601 ignored, unless there are no subcaptions.
8602 + Add support for `\vdots` (Marc Schreiber, #3607).
8603 + Add basic support for hyphenat package (Marc Schreiber, #3603).
8604 + Add basic `\textcolor` support (Marc Schreiber).
8605 + Add support for `tabularx` environment (Marc Schreiber, #3632).
8606 + Better handling of comments inside math environments (#3113).
8607 This solves a problem with commented out `\end{eqnarray}` inside
8608 an eqnarray (among other things).
8609 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
8610 is selected (#3692). Otherwise skip with a warning. This is better
8611 than trying to parse it as text!
8612 + Add `\colorbox` support (Marc Schreiber).
8613 + Set identifiers on Spans used for `\label`.
8614 + Have `\setmainlanguage` set `lang` in metadata.
8615 + Support etoolbox's `\ifstrequal`.
8616 + Support `plainbreak`, `fancybreak` et al from the memoir class
8617 (bucklereed, #3833).
8618 + Support `\let`. Also, fix regular macros so they're expanded at the
8619 point of use, and NOT also the point of definition. `\let` macros,
8620 by contrast, are expanded at the point of definition. Added an
8621 `ExpansionPoint` field to `Macro` to track this difference.
8622 + Support simple `\def` macros. Note that we still don't support
8623 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
8624 + Support `\chaptername`, `\partname`, `\abstractname`, etc. (#3559,
8626 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
8627 attributes, so they can be handled in filters (Marc Schreiber, #3639)
8628 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
8629 #3589). Acronyms are not resolved by the reader, but acronym and
8630 glossary information is put into attributes on Spans so that they
8631 can be processed in filters.
8632 + Use `Link` instead of `Span` for `\ref`. This makes more sense
8633 semantically and avoids unnecessary `Span [Link]` nestings when
8634 references are resolved.
8635 + Rudimentary support for `\hyperlink`.
8636 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
8637 + Support `\lq`, `\rq`.
8638 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
8640 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
8641 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
8642 + Support `\k` ogonek accent.
8643 + Improve handling of accents. Handle ogonek, and fall back correctly
8644 with forms like `\"{}`.
8645 + Better support for ogonek accents.
8646 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
8647 + Support for `xspace` (Marc Schreiber, #3797).
8648 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
8650 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
8651 level 0 headers, and parts as level -1 headers. After parsing, we
8652 check for the lowest header level, and if it's less than 1 we bump
8653 everything up so that 1 is the lowest header level. So `\part` will
8654 always produce a header; no command-line options are needed.
8655 + Add block version of `\textcolor` (Marc Schreiber).
8656 + `\textcolor` works as inline and block command (Marc Schreiber).
8657 + `\textcolor` will be parse as span at the beginning of a paragraph
8659 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
8660 + Improved handling of include files in LaTeX reader (#3971).
8661 Previously `\include` wouldn't work if the included file
8662 contained, e.g., a begin without a matching end.
8663 + Support `\expandafter` (#3983).
8664 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
8665 as a synonym for `\newcommand`.
8666 + Handle `\lettrine` (Mauro Bieg).
8668 * Math improvements due to updates in texmath:
8670 + Improved handling of accents and upper/lower delimiters.
8671 + Support for output in GNU eqn format (used with *roff).
8672 + Allow `\boldsymbol` + a token without braces, and similarly
8673 with other styling commands.
8674 + Improve parsing of `\mathop` to allow multi-character operator names.
8675 + Add thin space after math operators when "faking it with
8678 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
8679 instance for `a -> [a]` (pandoc-types). Note that behavior
8680 will be slightly different, since `bottomUp`'s treatment of
8681 a function `[a] -> [a]` is to apply it to each sublist of a
8682 list, while walk applies it only to maximal sublists.
8683 Usually the latter behavior is what is wanted, and the
8684 former can be simulated when needed. But there may be
8685 existing filters that need to be rewritten in light of the
8686 new behavior. Performance should be improved.
8688 * There are some changes to syntax highlighting due to revisions
8689 in the `skylighting` library:
8691 + Support for `powershell` has been added, and many syntax
8692 definitions have been updated.
8693 + Background colors have been added to the `kate` style.
8694 + The way highlighted code blocks are formatted in HTML has
8695 been changed (David Baynard), in ways that may require
8696 changes in hard-coded CSS affecting highlighting.
8697 (If you haven't included hard-coded highlighting CSS in
8698 your template, you needn't change anything.)
8703 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
8704 This contains definitions of the `PandocMonad` typeclass, the
8705 `PandocIO` and `PandocPure` monads, and associated functions.
8707 * Changed types of all writers and readers.
8709 + We now use `Text` instead of `String` in the interface (#3731).
8710 (We have not yet changed the internals of most readers to work
8711 with `Text`, but making this change in the API now opens up a
8712 path to doing that.)
8713 + The result is now of form `m a` with constraint `PandocMonad m`.
8714 Readers and writers can be combined to form monadic values which
8715 can be run using either `runIO` or `runPure`. If `runIO` is used,
8716 then both readers and writers will be able to do IO when needed
8717 (for include files, for example); if `runPure` is used,
8718 then the functions are pure and will not touch IO.
8719 + Where previously you used
8720 `writeRST def (readMarkdown def "[foo](url)")`, now you
8722 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
8724 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
8725 contains reader helper functions formerly defined in the
8726 top-level `Text.Pandoc` module.
8728 + Changed `StringReader` -> `TextReader`.
8729 + `getReader` now returns a pair of a reader and
8730 `Extensions`, instead of building the extensions into the
8731 reader (#3659). The calling code must explicitly set
8732 `readerExtensions` using the `Extensions` returned. The
8733 point of the change is to make it possible for the calling
8734 code to determine what extensions are being used.
8736 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
8737 This contains writer helper functions formerly defined in the
8738 top-level `Text.Pandoc` module.
8740 + Changed `StringWriter` -> `TextWriter`.
8741 + `getWriter` now returns a pair of a reader and
8742 `Extensions`, instead of building the extensions into the
8743 reader (#3659). The calling code must explicitly set
8744 `readerExtensions` using the `Extensions` returned. The
8745 point of the change is to make it possible for the calling
8746 code to determine what extensions are being used.
8748 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
8751 * New module `Text.Pandoc.App`. This abstracts out the functionality
8752 of the command line program (`convertWithOpts`), so it can be reproduced
8753 e.g. in a desktop or web application. Instead of exiting, we throw errors
8754 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
8755 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
8756 The module also exports some utility functions for parsing options
8757 and running filters.
8759 * New module `Text.Pandoc.Logging` (exported module) (#3392).
8760 This now contains the `Verbosity` definition previously in
8761 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
8762 eventually be used instead of raw strings for warnings. This will enable
8763 us, among other things, to provide machine-readable warnings if desired.
8764 Include ToJSON instance and showLogMessage. This gives us the possibility
8765 of both machine-readable and human-readable output for log messages.
8767 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
8769 * New module `Text.Pandoc.Translations`, exporting `Term`,
8770 `Translations`, `readTranslations`.
8772 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
8773 `TokType`, `Line`, `Column`.
8775 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
8777 * Expose some previously private modules (#3260). These are often
8778 helpful to people writing their own reader or writer modules:
8780 + `Text.Pandoc.Writers.Shared`
8781 + `Text.Pandoc.Parsing`
8782 + `Text.Pandoc.Asciify`
8783 + `Text.Pandoc.Emoji`
8784 + `Text.Pandoc.ImageSize`
8785 + `Text.Pandoc.Highlighting`
8787 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
8788 Extension parsing and processing functions were defined in the top-level
8789 `Text.Pandoc` module. These functions are moved to the Extensions
8790 submodule as to enable reuse in other submodules.
8792 * Add `Ext_raw_attribute` constructor for `Extension`.
8794 * Add `Ext_fenced_divs` constructor for `Extension'.
8796 * Add `Ext_four_space_rule` constructor in `Extension`.
8798 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
8800 * Add `Monoid` instance for `Extensions`.
8802 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
8804 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
8806 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
8808 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
8810 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
8812 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
8814 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
8816 * Export `setVerbosity` from `Text.Pandoc`.
8818 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
8820 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
8822 * `Text.Pandoc.UTF8`:
8824 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
8825 Define `toString`, `toStringLazy` in terms of them.
8826 + Add new functions parameterized on `Newline`: `writeFileWith`,
8827 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
8829 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
8831 * `Text.Pandoc.Highlighting`:
8833 + `highlighting` now returns an Either rather than Maybe.
8834 This allows us to display error information returned by the skylighting
8835 library. Display a warning if the highlighting library throws an error.
8836 + Add parameter for `SyntaxMap` to `highlight`.
8838 * `Text.Pandoc.Writers.Math`:
8840 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
8841 we only need to update these in one place.
8843 * `Text.Pandoc.SelfContained`:
8845 + Removed `WriterOptions` parameter from `makeSelfContained`.
8846 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
8847 the need to pass MediaBag around and improves exceptions. It also
8848 opens up the possibility of using makeSelfContained purely.
8849 + Export `makeDataURI`.
8851 * `Text.Pandoc.ImageSize`:
8853 + Export `lengthToDim`, new function `scaleDimension`.
8854 + Export `inEm` from ImageSize (#3450).
8855 + Change `showFl` and `show` instance for `Dimension` so
8856 extra decimal places are omitted.
8857 + Added `Em` as a constructor of `Dimension`.
8858 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
8860 * `Text.Pandoc.Templates`:
8862 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
8863 and raises a proper `PandocTemplateError` if there are problems, rather
8864 than failing with uncatchable `error`.
8865 + Change signature of `getDefaultTemplate`. Now it runs in any instance
8866 of `PandocMonad`, and returns a `String` rather than an `Either` value.
8867 And it no longer takes a `datadir` parameter, since this can be
8868 retrieved from `CommonState`.
8870 * `Text.Pandoc.Options`:
8872 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
8873 The EPUB writer now takes its EPUB subdirectory from this option.
8874 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
8875 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
8876 + Add `writerSyntaxMap` to `WriterOptions`.
8877 + Removed `writerEpubStylesheet` from `WriterOptions`.
8878 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
8879 in `CommonState` in `PandocMonad` instances. (And thus it can be used
8881 + Changed `writerEpubMetadata` to a `Maybe String`.
8882 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
8883 the `latex_macros` reader extension.
8884 + FromJSON/ToJSON instances for `ReaderOptions`.
8885 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
8886 one string (for the KaTeX base URL), rather than two.
8887 + Removed `writerSourceURL` from `WriterOptions`. We now use
8888 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
8890 * `Text.Pandoc.Shared`:
8892 + `tabFilter` now takes a `Text`, not `String`.
8893 + `openURL`: Changed type from an Either. Now it will just raise
8894 an exception to be trapped later.
8895 + Remove `normalizeSpaces` (#1530).
8896 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
8897 + Export a new function `crFilter`.
8898 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
8899 + Provide custom `isURI` that rejects unknown schemes.
8900 (Albert Krewinkel, #2713). We also export the set of known
8901 `schemes`. The new function replaces the function of the same name
8902 from `Network.URI`, as the latter did not check whether a scheme is
8903 well-known. All official IANA schemes (as of 2017-05-22) are
8904 included in the set of known schemes. The four non-official schemes
8905 `doi`, `isbn`, `javascript`, and `pmid` are kept.
8907 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
8908 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
8909 where they are defined in terms of `PandocMonad`
8910 primitives and have different signatures.
8911 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
8912 + Add `underlineSpan`.
8914 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
8916 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
8917 With the new API one can simply use `getLog` after running
8920 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
8921 and `rawLaTeXBlock`. (Both now return a `String`, and they are
8922 polymorphic in state.)
8925### Bug fixes and under-the-hood improvements
8927 * TEI writer: Added identifiers on `<div>` elements.
8929 * DokuWiki reader: Better handling for code block in list item (#3824).
8931 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
8933 * ZimWiki writer: Removed internal formatting from note and table cells,
8934 because ZimWiki does not support it (Alex Ivkin, #3446).
8938 + Updated list of syntax highlighting languages (#3461).
8939 Now `r` gets you `<source>` rather than `<code>` (among others).
8940 + Add display attribute on `<math>` tags (#3452). This allows display
8941 math to be rendered properly.
8942 + Remove newline before `</ref>` (#2652).
8943 + Don't softbreak lines inside list items (#3531).
8947 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
8948 + Add unit tests (Alexander Krotov).
8949 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
8950 + Do not strip `#` from Org anchor links (Alexander Krotov).
8952 * CommonMark writer:
8954 + Avoid excess blank lines at end of output.
8955 + Prefer pipe tables to HTML tables even if it means losing relative
8956 column width information (#3734).
8957 + Support table, strikethrough extensions, when enabled (as with gfm).
8958 Note that we bypass the commonmark writer from cmark and construct our
8959 own pipe tables, with better results.
8960 + Properly support `--wrap=none`.
8961 + Use smallcaps class for `SmallCaps` (#1592).
8962 + Omit "fig:" prefix in image titles. This is used internally to
8963 indicate internal figures.
8967 + Properly handle table captions.
8968 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
8969 + Implemented `+/-smart` and improved escaping with `+smart`.
8970 + Add empty comments when needed to avoid including a blockquote
8971 in the indented content of a preceding block (#3675).
8972 + Improve grid table output, fix bug with empty rows (#3516).
8973 Uses the new `gridTable` in Writers.Shared, which is here
8974 improved to better handle 0-width cells.
8975 + Remove space at beginning/end of RST code span (#3496). Otherwise
8976 we get invalid RST. There seems to be no way to escape the space.
8977 + Add header anchors when header has non-standard id (#3937).
8978 + Correctly handle inline code containing backticks, using a `:literal:`
8980 + Don't backslash-escape word-internal punctuation (#3978).
8984 + Don't include variables in metadata blocks. Previously variables set
8985 on the command line were included in e.g. YAML metadata, contrary to
8986 documentation and intentions.
8987 + Improved escaping with `+smart`.
8988 + Fixed grid tables embedded in grid tables (#2834).
8989 + Use span with class 'smallcaps' for SmallCaps, instead of a style
8990 attribute as before (#1592).
8991 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
8992 extension is enabled (#3454). Otherwise in a document starting with
8993 a literal `%` the first line is wrongly interpreted as a title.
8994 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
8995 properly escape things that would otherwise start ordered lists,
9001 + Better handling of tables with empty columns (#3337). We now
9002 calculate the number of columns based on the longest row (or the
9003 length of aligns or widths).
9004 + Escape unordered list markers at beginning of paragraph (#3497), to
9005 avoid false interpretation as a list.
9006 + Escape `|` appropriately.
9007 + Ensure space before list at top level (#3487).
9008 + Avoid spurious blanklines at end of document after tables and list,
9010 + Fixed bugs in simple/multiline list output (#3384).
9011 Previously we got overlong lists with `--wrap=none`. This is fixed.
9012 Previously a multiline list could become a simple list (and would
9013 always become one with `--wrap=none`).
9014 + Don't emit a simple table if `simple_tables` disabled (#3529).
9015 + Case-insensitive reference links (David A Roberts, #3616).
9016 Ensure that we do not generate reference links whose labels differ only
9017 by case. Also allow implicit reference links when the link
9018 text and label are identical up to case.
9019 + Put space before reference link definitions (Mauro Bieg, #3630).
9020 + Better escaping for links (David A. Roberts, #3619). Previously the
9021 Markdown writer would sometimes create links where there were none
9022 in the source. This is now avoided by selectively escaping bracket
9023 characters when they occur in a place where a link might be created.
9024 + Added missing `\n` (David A. Roberts, #3647).
9025 + Fixed duplicated reference links with `--reference-links`
9026 and `--reference-location=section` (#3674). Also ensure that there
9027 are no empty link references `[]`.
9028 + Avoid inline surround-marking with empty content (#3715).
9029 E.g. we don't want `<strong></strong>` to become `****`.
9030 Similarly for emphasis, super/subscript, strikeout.
9031 + Don't allow soft break in header (#3736).
9032 + Make sure `plain`, `markdown_github`, etc. work for raw.
9033 Previously only `markdown` worked. Note: currently a raw block labeled
9034 `markdown_github` will be printed for any `markdown` format.
9035 + Ensure that `+` and `-` are escaped properly so they don't cause
9036 spurious lists (#3773). Previously they were only
9037 if succeeded by a space, not if they were at end of line.
9038 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
9039 even if the table has relative width information (#3734).
9040 + Markdown writer: don't crash on `Str ""`.
9041 + Make `Span` with null attribute transparent. That is, we don't use
9042 brackets or `<span>` tags to mark spans when there are no attributes;
9043 we simply output the contents.
9044 + Escape pipe characters when `pipe_tables` enabled (#3887).
9045 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
9046 we backslash escape these. Otherwise we use entities as before.
9047 + When writing plain, don't use ` ` to separate list and indented
9048 code. There's no need for it in this context, since this isn't to be
9049 interpreted using Markdown rules.
9050 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
9051 HTML links containing classes originally now preserve them when using
9052 javascript email obfuscation.
9053 + Render `SmallCaps` as a native span when `native_spans` are enabled.
9054 + Always write attributes with `bracketed_spans` (d-dorazio).
9058 + Fix handling of nested font commands (#3568). Previously pandoc emitted
9059 incorrect markup for bold + italic, for example, or bold + code.
9060 + Avoid error for definition lists with no definitions (#3832).
9064 + Fix internal links with `writerIdentifierPrefix opt`
9065 (#3397, Mauro Bieg).
9069 + Don't include bookmarks on headers unless non-null id (#3476).
9070 + Support 9 levels of headers (#1642).
9071 + Allow 9 list levels (#3519).
9072 + Don't take `distArchive` from datadir (#3322). The docx writer takes
9073 components from the distribution's version of `reference.docx` when it
9074 can't find them in a user's custom `reference.docx`. Previously, we
9075 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
9076 to be used as the distribution's reference.docx. This led to a
9077 bizarre situation where pandoc would produce a good docx using
9078 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
9079 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
9080 + Fixed handling of soft hyphen (0173) (#3691).
9081 + Better handling of keywords (#3719).
9082 + Cleaner code for handling dir and style attributes for `Div`.
9083 + Use `Set` for dynamic styles to avoid duplicates.
9084 + Removed redundant element from data/docx/word/numbering.xml.
9085 The elements we need are generated when the document is
9086 compiled; this didn't do anything.
9087 + Activate `evenAndOddHeaders` from reference docx (#3901,
9088 Augustín Martín Barbero).
9090 * ODT/OpenDocument writer:
9092 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
9093 + Use more widely available bullet characters (#1400). The old
9094 characters weren't available in some font sets. These seem to work
9095 well on Windows and Linux versions of LibreOffice.
9096 + Wider labels for lists (#2421). This avoids overly narrow labels for
9097 ordered lists with `()` delimiters. However, arguably it creates
9098 overly wide labels for bullets. Also, lists now start flush with
9099 the margin, rather than indented.
9100 + Fixed dropped elements in some ordered lists (#2434).
9104 + Don't render `RawBlock` as code.
9105 + Don't fail with an error on interior headers (e.g. in list) (#3750).
9106 Instead, omit them with an INFO message.
9107 + Add support for "lang" metadata (Alexander Krotov, #3625).
9108 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
9109 produced one paragraph with `<empty-line/>` elements, which are not
9110 allowed inside `<p>` according to FB2 schema.
9111 + Replace `concatMap` with `cMap` (Alexander Krotov).
9112 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
9117 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
9118 + Render raw inline environments when `--mathjax` used (#3816).
9119 We previously did this only with raw blocks, on the assumption
9120 that math environments would always be raw blocks. This has changed
9121 since we now parse them as inline environments.
9122 + Ensure we don't get two style attributes for width and height.
9123 + Report when not rendering raw inline/block.
9124 + Issue warning if no title specified and template used (#3473).
9125 + Info message if `lang` is unspecified (#3486).
9126 + Removed unused parameter in `dimensionsToAttributeList`.
9127 + Avoid two class attributes when adding `uri` class (#3716).
9128 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
9130 + Use revealjs's math plugin for mathjax (#3743). This is a thin
9131 wrapper around mathjax that makes math look better on revealjs.
9132 + Slidy: use h1 for all slides, even if they were originally
9133 level 2 headers (#3566). Otherwise the built-in table of contents
9138 + Don't render LaTeX images with data: URIs (#3636). Note that
9139 `--extract-media` can be used when the input contains data: URIs.
9140 + Make highlighted code blocks work in footnotes (Timm Albers).
9141 + Don't use figure inside table cell (#3836).
9142 + Use proper code for list enumerators (#3891). This should fix problems
9143 with lists that don't use arabic numerals.
9144 + Always add hypertarget when there's a non-empty identifier (#2719).
9145 Previously the hypertargets were only added when there was actually
9146 a link to that identifier.
9147 + Use `%` after hypertarget before code block.
9148 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
9149 fixes formatting problems in beamer citations).
9150 + Don't use `lstinline` in `\item[..]` (#645). If you do, the contents
9151 of item disappear or are misplaced. Use `\texttt` instead.
9152 + Fix problem with escaping in `lstinline` (#1629). Previously the
9153 LaTeX writer created invalid LaTeX when `--listings` was specified and
9154 a code span occurred inside emphasis or another construction.
9155 + Fix error with line breaks after empty content (#2874). LaTeX
9156 requires something before a line break, so we insert a `~` if no
9157 printable content has yet been emitted.
9159 + Fixed detection of otherlangs (#3770). We weren't recursing into
9161 + Handle language in inline code with `--listings` (#3422).
9162 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
9163 The textcomp package allows pdfLaTeX to parse `€` directly, making the
9164 `\euro` command unneeded.
9165 + Fixed footnotes in table captions (#2378). Note that if the table has
9166 a first page header and a continuation page header, the notes will
9167 appear only on the first occurrence of the header.
9168 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
9169 Previously you could link to a header above or below slide level but
9170 not *to* slide level. This commit changes that. Hypertargets are
9171 inserted inside frame titles; technically the reference is to just
9172 after the title, but in normal use (where slides are viewed full
9173 screen in a slide show), this does not matter.
9174 + Remove `\strut` at beginning of table cells (#3436). This fixes a
9175 problem with alignment of lists in table cells. The `\strut` at the
9176 end seems to be enough to avoid the too-close spacing that motivated
9177 addition of the strut in #1573.
9178 + Add partial siunitx Support (Marc Schreiber, #3588).
9182 + Refactored to use BCP47 module.
9183 + Remove unnecessary `$` (Alexander Krotov, #3482).
9184 + Use header identifiers for chapters (#3968).
9188 + `title_page.xhtml` is now put in `text/`.
9189 + Don't strip formatting in TOC (#1611).
9193 + Fix bug for certain links in table cells (#3667).
9194 + Allow 'pre' code in list item (#3916).
9198 + Added warnings for ignored material (#3392).
9199 + Better sanity checks to avoid parsing unintended things as
9200 raw HTML in the Markdown reader (#3257).
9201 + Revise treatment of `li` with `id` attribute (#3596). Previously we
9202 always added an empty div before the list item, but this created
9203 problems with spacing in tight lists. Now we do this: If the list
9204 item contents begin with a `Plain` block, we modify the `Plain`
9205 block by adding a `Span` around its contents. Otherwise, we add a
9206 `Div` around the contents of the list item (instead of adding an
9207 empty `Div` to the beginning, as before).
9208 + Add `details` tag to list of block tags (#3694).
9209 + Removed `button` from block tag list (#3717). It is already in the
9210 `eitherBlockOrInlineTag` list, and should be both places.
9211 + Use `Set`s instead of lists for block tag lookup.
9212 + Rewrote to use `Text` throughout. Effect on memory usage is modest
9214 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
9216 + Ensure that paragraphs are closed properly when the parent block
9217 element closes, even without `</p>` (#3794).
9218 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
9219 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
9220 `<main>` closes `<p>` and behaves like a block element generally
9221 + Support column alignments (#1881). These can be set either
9222 with a `width` attribute or with `text-width` in a `style` attribute.
9223 + Modified state type to be an instance of `HasLogMessages`, so
9224 `registerHeader` can issue warnings.
9225 + `</td>` or `</th>` should close any open block tag (#3991).
9226 + `<td>` should close an open `<th>` or `<td>`.
9227 + `htmlTag` improvements (#3989). We previously failed on cases
9228 where an attribute contained a `>` character. This patch fixes the
9229 bug, which especially affects raw HTML in Markdown.
9233 + Newline is not indentation (Alexander Krotov).
9237 + Allow extra hyphens after `|-` in tables (#2649).
9238 + Allow blank line after table start (#2649).
9239 + Fixed more table issues (#2649).
9240 + Ensure that list starts begin at left margin (#2606). Including when
9241 they're in tables or other list items.
9242 + Make smart double quotes depend on `smart` extension (#3585).
9243 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
9244 + Modified state type to be an instance of `HasLogMessages`, so
9245 `registerHeader` can issue warnings.
9247 * TWiki reader (Alexander Krotov):
9249 + Remove unnecessary `$` (#3597).
9250 + Simplify `linkText` (#3605).
9254 + Minor refactoring, avoiding explicit MediaBag handling.
9255 This all works behind the scenes in CommonState plumbing.
9259 + Don't drop smartTag contents (#2242).
9260 + Handle local namespace declarations (#3365). Previously we didn't
9261 recognize math, for example, when the xmlns declaration occurred on
9262 the element and not the root.
9263 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
9264 does the work of `normalizeSpaces` as well, so we avoid the need for
9266 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
9267 paragraphs styled with "HeadingN" as "nth-level header." But if a
9268 document has a custom style named "Heading0", this will produce a
9269 0-level header, which shouldn't exist. We only parse this style
9270 if N>0. Otherwise we treat it as a normal style name, and
9271 follow its dependencies, if any.
9272 + Add tests for avoiding zero-level header (Jesse Rosenthal).
9276 + Replaced `collectRights` with Rights from `Data.Either`.
9277 + Remove dead code (Albert Krewinkel).
9279 * Org reader (Albert Krewinkel, unless noted).
9281 + Don't allow tables inside list items (John MacFarlane, #3499).
9282 + Disallow tables on list marker lines (#3499).
9283 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
9284 + Allow emphasized text to be followed by `[` (#3577).
9285 + Handle line numbering switch for src blocks.
9286 The line-numbering switch that can be given to source blocks (`-n` with
9287 an start number as an optional parameter) is parsed and translated to a
9288 class/key-value combination used by highlighting and other readers and
9290 + Stop adding rundoc prefix to src params. Source block parameter names
9291 are no longer prefixed with `rundoc`. This was intended to simplify
9292 working with the rundoc project, a babel runner. However, the rundoc
9293 project is unmaintained, and adding those markers is not the reader's
9294 job anyway. The original language that is specified for a source
9295 element is now retained as the `data-org-language` attribute and only
9296 added if it differs from the translated language.
9297 + Allow multi-word arguments to src block params (#3477). The reader now
9298 correctly parses src block parameter list even if parameter arguments
9299 contain multiple words.
9300 + Avoid creating `nullMeta` by applying `setMeta` directly
9302 + Replace `sequence . map` with `mapM`.
9303 + Fix smart parsing behavior. Parsing of smart quotes and special
9304 characters can either be enabled via the `smart` language extension or
9305 the `'` and `-` export options. Smart parsing is active if either the
9306 extension or export option is enabled. Only smart parsing of special
9307 characters (like ellipses and en and em dashes) is enabled by default,
9308 while smart quotes are disabled. Previously, all smart parsing was
9309 disabled unless the language extension was enabled.
9310 + Subject full doc tree to headline transformations (Albert Krewinkel,
9311 #3695). Emacs parses org documents into a tree structure, which is
9312 then post-processed during exporting. The reader is changed to do the
9313 same, turning the document into a single tree of headlines starting
9315 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
9316 cite keys included special characters also at the end. This caused
9317 problems when citations occur right before colons or at the end of
9318 a sentence. With this change, all non alphanumeric characters at
9319 the end of a cite key are ignored. This also adds `,` to the list
9320 of special characters that are legal in cite keys to better mirror
9321 the behaviour of org-export.
9322 + Fix module names in haddock comments. Copy-pasting had lead to
9323 haddock module descriptions containing the wrong module names.
9324 + Recognize babel result blocks with attributes (#3706). Babel
9325 result blocks can have block attributes like captions and names.
9326 Result blocks with attributes were not recognized and were parsed
9327 as normal blocks without attributes.
9328 + Include tags in headlines. The Emacs default is to include tags in the
9329 headline when exporting. Instead of just empty spans, which contain the
9330 tag name as attribute, tags are rendered as small caps and wrapped in
9331 those spans. Non-breaking spaces serve as separators for multiple tags.
9332 + Respect export option for tags (#3713). Tags are appended to
9333 headlines by default, but will be omitted when the `tags` export option
9335 + Use `tag-name` attribute instead of `data-tag-name`.
9336 + Use `org-language` attribute rather than `data-org-language`.
9337 + Modified state type to be an instance of `HasLogMessages`, so
9338 `registerHeader` can issue warnings.
9339 + End footnotes after two blank lines. Footnotes can not only be
9340 terminated by the start of a new footnote or a header, but also by two
9341 consecutive blank lines.
9342 + Update emphasis border chars (#3933). The org reader was updated to
9343 match current org-mode behavior: the set of characters which are
9344 acceptable to occur as the first or last character in an org emphasis
9345 have been changed and now allows all non-whitespace chars at the
9346 inner border of emphasized text (see `org-emphasis-regexp-components`).
9350 + Fixed small bug in list parsing (#3432). Previously the parser didn't
9351 handle properly this case:
9357 + Handle multiline cells in simple tables (#1166).
9358 + Parse list table directive (Keiichiro Shikano, #3432).
9359 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
9360 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
9361 + Reorganize block parsers for ~20% faster parsing.
9362 + Fixed `..include::` directive (#3880).
9363 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
9364 Previously pandoc would sometimes combine two line blocks separated
9365 by blanks, and ignore trailing blank lines within the line block.
9366 + Fix indirect hyperlink targets (#512).
9370 + Allow attributes in reference links to start on next line (#3674).
9371 + Parse YAML metadata in a context that sees footnotes defined in
9372 the body of the document (#1279).
9373 + When splitting pipe table cells, skip tex math (#3481).
9374 You might have a `|` character inside math. (Or for that matter
9375 something that the parser might mistake for raw HTML.)
9376 + Treat span with class `smallcaps` as SmallCaps.
9377 This allows users to specify small caps in Markdown this way:
9378 `[my text]{.smallcaps}` (#1592).
9379 + Fixed internal header links (#2397).
9380 This patch also adds `shortcut_reference_links` to the list
9382 + Treat certain environments as inline
9383 when they occur without space surrounding them (#3309, #2171).
9384 E.g. equation, math. This avoids incorrect vertical space
9386 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
9387 + Allow latex macro definitions indented 1-3 spaces.
9388 Previously they only worked if nonindented.
9389 + Improved parsing of indented raw HTML blocks (#1841).
9390 Previously we inadvertently interpreted indented HTML as
9391 code blocks. This was a regression. We now seek to determine the
9392 indentation level of the contents of an HTML block, and (optionally)
9393 skip that much indentation. As a side effect, indentation may be
9394 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
9395 used. This is better than having things interpreted as indented
9397 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
9398 + Warn for notes defined but not used (#1718).
9399 + Use `anyLineNewline` (Alexander Krotov).
9400 + Interpret YAML metadata as Inlines when possible (#3755). If
9401 the metadata field is all on one line, we try to interpret it as
9402 Inlines, and only try parsing as Blocks if that fails. If it
9403 extends over one line (including possibly the `|` or `>` character
9404 signaling an indented block), then we parse as Blocks. This was
9405 motivated by some German users finding that `date: '22. Juin 2017'`
9406 got parsed as an ordered list.
9407 + Fixed spurious parsing as citation as reference def (#3840).
9408 We now disallow reference keys starting with `@` if the
9409 `citations` extension is enabled.
9410 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
9411 Previously only `[-@roe]` (with brackets) was recognized as
9412 suppress-author, and `-@roe` was treated the same as `@roe`.
9413 + Fixed parsing of fenced code after list when there is no intervening
9415 + Allow raw latex commands starting with `\start` (#3558). Previously
9416 these weren't allowed because they were interpreted as starting
9417 ConTeXt environments, even without a corresponding `\stop`...
9418 + Added `inlines`, `inlines1`.
9419 + Require nonempty alt text for `implicit_figures` (#2844).
9420 A figure with an empty caption doesn't make sense.
9421 + Removed texmath macro material; now all this is handled
9422 in the LaTeX reader functions.
9423 + Fixed bug with indented code following raw LaTeX (#3947).
9427 + Rewrote LaTeX reader with proper tokenization (#1390,
9428 #2118, #3236, #3779, #934, #982). This rewrite is primarily
9429 motivated by the need to get macros working properly. A side benefit
9430 is that the reader is significantly faster. We now tokenize the
9431 input text, then parse the token stream. Macros modify the token
9432 stream, so they should now be effective in any context, including
9433 math. Thus, we no longer need the clunky macro processing
9434 capacities of texmath.
9435 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
9436 + Allow `\newcommand\foo{blah}` without braces.
9437 + Support `\lstinputlisting` (#2116).
9438 + Issue warnings when skipping unknown latex commands (#3392).
9439 + Include contents of `\parbox`.
9440 + Allow `\hspace` and `\vspace` to count as raw block or inline.
9441 Previously we would refuse to parse anything as raw inline if
9442 it was in the `blockCommands` list. Now we allow exceptions
9443 if they're listed under ignoreInlines in inlineCommands.
9444 This should make it easier e.g. to include an `\hspace`
9445 between two side-by-side raw LaTeX tables.
9446 + Don't drop contents of `\hypertarget`.
9447 + Handle spaces before `\cite` arguments.
9448 + Allow newpage, clearpage, pagebreak in inline contexts as well as
9449 block contexts (#3494).
9450 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
9451 + Use `pMacroDefinition` in macro (for more direct parsing).
9452 Note that this means that `macro` will now parse one
9453 macro at a time, rather than parsing a whole group together.
9454 + Fixed failures on `\ref{}`, `\label{}` with `+raw_tex`. Now these
9455 commands are parsed as raw if `+raw_tex`; otherwise, their argument
9456 is parsed as a bracketed string.
9457 + Don't crash on empty `enumerate` environment (#3707).
9458 + Handle escaped `&` inside table cell (#3708).
9459 + Handle block structure inside table cells (#3709). `minipage` is no
9461 + Handle some width specifiers on table columns (#3709). Currently
9462 we only handle the form `0.9\linewidth`. Anything else would have
9463 to be converted to a percentage, using some kind arbitrary assumptions
9465 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
9466 LaTeX reader's treatment of raw commands, but it also affects the
9468 + Fixed regression with starred environment names (#3803).
9469 + Handle optional args in raw `\titleformat` (#3804).
9470 + Improved heuristic for raw block/inline. An unknown command at the
9471 beginning of the line that could be either block or inline is
9472 treated as block if we have a sequence of block commands followed by
9473 a newline or a `\startXXX` command (which might start a raw ConTeXt
9475 + Don't remove macro definitions from the output, even if
9476 `Ext_latex_macros` is set, so that macros will be applied.
9477 Since they're only applied to math in Markdown, removing the macros
9478 can have bad effects. Even for math macros, keeping them should be
9480 + Removed `macro`. It is no longer necessary, since the
9481 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
9482 the need for a separate `latexMacro` parser in the Markdown reader.
9483 + Use `label` instead of `data-label` for label in caption (#3639).
9484 + Fixed space after `\figurename` etc.
9485 + Resolve references to section numbers.
9486 + Fix `\let\a=0` case, with single character token.
9487 + Allow `@` as a letter in control sequences. `@` is commonly used
9488 in macros using `\makeatletter`. Ideally we'd make the tokenizer
9489 sensitive to `\makeatletter` and `\makeatother`, but until then this
9490 seems a good change.
9491 + Track header numbers and correlate with labels.
9492 + Allow `]` inside group in option brackets (#3857).
9493 + lstinline with braces can be used (verb cannot be used with braces)
9494 (Marc Schreiber, #3535).
9495 + Fix keyval function: pandoc did not parse options in braces correctly
9496 (Marc Schreiber, #3642).
9497 + When parsing raw LaTeX commands, include trailing space (#1773).
9498 Otherwise things like `\noindent foo` break and turn into
9499 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
9500 formats that allow `raw_tex`).
9501 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
9503 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
9504 + Allow space before `=` in bracketd options (Ben Firshman).
9505 + Be more forgiving in parsing command options. This was needed, for
9506 example, to make some minted options work.
9507 + Strip off quotes in `\include` filenames.
9509 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
9511 * `Text.Pandoc.PDF`:
9513 + Got `--resource-path` working with PDF output (#852).
9514 + Fetch images when generating PDF via context (#3380).
9515 To do this, we create the temp directory as a subdirectory
9516 of the working directory. Since context mk IV by default looks
9517 for images in the parent directory, this works.
9518 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
9519 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
9520 This reduces code duplication.
9521 + `html2pdf`: use stdin instead of intermediate HTML file
9522 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
9523 doesn't use `TEXINPUTS`.
9525 * `Text.Pandoc.Pretty`:
9527 + Simplified definition of `realLength`.
9528 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
9530 * `Text.Pandoc.MIME`:
9532 + Use `application/javascript` (not `application/x-javascript`).
9533 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
9535 * `Text.Pandoc.ImageSize`:
9537 + Improve SVG image size code (Marc Schreiber, #3580).
9538 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
9540 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
9541 and reduction of memory usage in most of the writers.
9543 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
9545 * `Text.Pandoc.SelfContained`:
9547 + Fixed problem with embedded fonts (#3629).
9548 + Refactored getData from `getDataURI` in `SelfContained`.
9549 + Don't use data URIs for script or style (#3423). Instead, just use
9550 script or style tags with the content inside. The old method with
9551 data URIs prevents certain optimizations outside pandoc. Exception:
9552 data URIs are still used when a script contains `</script>` or a
9553 style contains `</`.
9554 + SelfContained: Handle URL inside material retrieved from a URL
9555 (#3629). This can happen e.g. with an @import of a google web font.
9556 (What is imported is some CSS which contains an url reference
9557 to the font itself.) Also, allow unescaped pipe (|) in URL.
9558 + Load resources from `data-src` (needed for lazy loading in
9559 reveal.js slide shows).
9560 + Handle `data-background-image` attribute on section (#3979).
9562 * `Text.Pandoc.Parsing`:
9564 + Added `indentWith` (Alexander Krotov, #3687).
9565 + Added `stateCitations` to `ParserState`.
9566 + Removed `stateChapters` from `ParserState`.
9567 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
9568 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
9569 + Adjusted type of `insertIncludedFile` so it can be used with token
9571 + Replace old texmath macro stuff from Parsing. Use Macro from
9572 Text.Pandoc.Readers.LaTeX.Types instead.
9573 + Export `insertIncludedFile`.
9574 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
9575 + Replace partial with total function (Albert Krewinkel).
9576 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
9577 `insertIncludeFile` function is generalized to work with all parser
9578 states which are instances of that class.
9579 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
9580 The `insertIncludeFiles` function was generalized and renamed
9581 to `insertIncludedFiles'`; the specialized versions are based on that.
9582 + `many1Till`: Check for the end condition before parsing (Herwig
9583 Stuetz). By not checking for the end condition before the first
9584 parse, the parser was applied too often, consuming too much of the
9585 input. This only affects `many1Till p end` where `p` matches on a
9587 + Provide `parseFromString` (#3690). This is a version of
9588 `parseFromString` specialied to ParserState, which resets
9589 `stateLastStrPos` at the end. This is almost always what we want.
9590 This fixes a bug where `_hi_` wasn't treated as emphasis in the
9591 following, because pandoc got confused about the position of the
9592 last word: `- [o] _hi_`.
9593 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
9594 + Fix `blanklines` documentation (Alexander Krotov, #3843).
9595 + Give less misleading line information with `parseWithString`.
9596 Previously positions would be reported past the end of the chunk.
9597 We now reset the source position within the chunk and report
9598 positions "in chunk."
9599 + Add `anyLineNewline` (Alexander Krotov).
9600 + Provide shared F monad functions for Markdown and Org readers
9601 (Albert Krewinkel). The `F` monads used for delayed evaluation
9602 of certain values in the Markdown and Org readers are based on a
9603 shared data type capturing the common pattern of both `F` types.
9604 + Add `returnF` (Alexander Krotov).
9605 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
9606 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
9607 + Added `readerAbbreviations` to `ParserState`. Markdown reader
9608 now consults this to determine what is an abbreviation.
9609 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
9610 parsers for markdown and rst was combined into one single
9611 parser `gridTable`, slightly changing parsing behavior of both
9612 parsers: (1) The markdown parser now compactifies block content
9613 cell-wise: pure text blocks in cells are now treated as paragraphs
9614 only if the cell contains multiple paragraphs, and as plain blocks
9615 otherwise. Before, this was true only for single-column tables. (2)
9616 The rst parser now accepts newlines and multiple blocks in header
9618 + Generalize tableWith, gridTableWith (Albert Krewinkel).
9619 The parsing functions `tableWith` and `gridTableWith` are generalized
9620 to work with more parsers. The parser state only has to be an
9621 instance of the `HasOptions` class instead of requiring a concrete
9622 type. Block parsers are required to return blocks wrapped into a
9623 monad, as this makes it possible to use parsers returning results
9624 wrapped in `Future`s.
9626 * `Text.Pandoc.Shared`:
9628 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
9629 + `stringify`: handle Quoted better (#3958). Previously we were losing
9630 the quotation marks in Quoted elements.
9632 * `Text.Pandoc.Writers.Shared`:
9634 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
9635 This allows us to add the variables AFTER using the metadata
9636 to generate a YAML header (in the Markdown writer).
9637 + Added `unsmartify` (previously in RST writer).
9638 Undo literal double curly quotes. Previously we left these.
9639 + Generalize type of `metaToJSON` so it can take a Text. Previously a
9640 String was needed as argument; now any ToJSON instance will do.
9641 + Added `gridTable` (previously in Markdown writer).
9642 + `gridTable`: Refactored to use widths in chars.
9643 + `gridTable`: remove unnecessary extra space in cells.
9644 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
9645 values to become lists.
9646 + Pipe tables: impose minimum cell size (see #3526).
9649### Default template changes
9651 * HTML templates (including EPUB and HTML slide show templates):
9653 + Make default.html5 polyglot markup conformant (John Luke Bentley,
9654 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
9655 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
9656 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
9657 + Regularized CSS in html/epub/html slide templates (#3485).
9658 All templates now include `code{white-space: pre-wrap}`
9659 and CSS for `q` if `--html-q-tags` is used. Previously some templates
9660 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
9662 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
9663 + `default.revealjs`: make `history` default to true.
9664 + `default.revealjs`: use lazy loading (#2283).
9665 + `default.revealjs`: add `mathjax` variable and some conditional code
9666 to use the MathJaX plugin.
9667 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
9668 + `default.dzslides`: Load Google Font using HTTPS by default
9671 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
9674 * LaTeX/Beamer template:
9676 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
9677 `default.beamer` has been removed; beamer now uses the
9678 `default.latex` template. Beamer-specific parts are conditional
9679 on the `beamer` variable set by the writer. Note that
9680 `pandoc -D beamer` will return this (combined) template.
9681 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
9682 Beamer loads `xcolor` rather than `color`, and thus the
9683 `dvipsnames` option doesn't take effect. This also provides a wider
9684 range of colour selections with the `svgnames` option.
9685 + Use starred versions of `xcolor` names (Andrew Dunning).
9686 Prevents changes to documents defined using the `dvipsnames` list (e.g.
9687 `Blue` gives a different result with svgnames enabled).
9688 + Load `polyglossia` after header-includes (#3898). It needs to be
9689 loaded as late as possible.
9690 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
9692 + Don't load `fontspec` before `unicode-math` (over there).
9693 The `unicode-math` package loads `fontspec` so explicit loading of
9694 `fontspec` before `unicode-math` is not necessary.
9695 + Use `unicode-math` by default in default.latex template. mathspec will
9696 be used in xelatex if the `mathspec` variable is set; otherwise
9697 unicode-math will be used (Václav Haisman).
9698 + Use `dvipsnames` options when `colorlinks` specified (otherwise
9699 we get an error for `maroon`) (Thomas Hodgson).
9700 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
9701 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
9702 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
9703 clash when loading a package (e.g. `tufte-latex`) that uses
9704 `hyperref` settings different from those in the template.
9705 + Add `natbiboptions` variable (#3768).
9706 + Fix links inside captions in LaTeX output with links-as-notes
9707 (Václav Haisman, #3651). Declare our redefined `\href` robust.
9708 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
9709 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
9710 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
9711 packages. Use existing `CJKmainfont` and `CJKoptions` template
9712 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
9713 and `luatexjapresetoptions` for `luatexja-preset`.
9714 + Added `aspectratio` variable to beamer template (Václav Haisman,
9716 + Modified template.latex to fix XeLaTex being used with tables
9717 (lwolfsonkin, #3661). Reordered `lang` variable handling to
9718 immediately before `bidi`.
9720 * ConTeXt template: Improved font handling: `simplefonts` is now
9721 obsolete in ConTeXt (Pablo Rodríguez).
9724### Documentation improvements
9728 + Add URL for Prince HTML > PDF engine (Ian, #3919).
9729 + Document that content above slide-level will be omitted in
9730 slide shows. See #3460, #2265.
9731 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
9732 + Small clarification in YAML metadata section.
9733 + Document that html4 is technically XHTML 1.0 transitional.
9734 + Remove refs to highlighting-kate (#3672).
9735 + Document ibooks specific epub metadata.
9736 + Clarify that mathml is used for ODT math.
9737 + Mention limitations of Literate Haskell Support (#3410,
9739 + Add documentation of limitations of grid tables (Stephen
9741 + Clarify that meta-json contains transformed values (Jakob Voß,
9742 #3491) Make clear that template variable `meta-json` does not
9743 contain plain text values or JSON output format but field values
9744 transformed to the selected output format.
9748 + Clarify that templates are dual-licensed.
9749 + Clarify that pandoc-types is BSD3 licensed.
9750 + List new files not written by jgm (Albert Krewinkel).
9751 + Update dates in copyright notices (Albert Krewinkel). This follows
9752 the suggestions given by the FSF for GPL licensed software.
9753 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
9757 + Improved instructions for tests with patterns.
9758 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
9762 + Fixed typos (Wandmalfarbe, #3479).
9763 + Add "ask on pandoc-discuss" (Mauro Bieg).
9765 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
9766 end of this document is autogenerated from `data/pandoc.lua`
9767 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
9770 * Add `doc/filters.md`. This is the old scripting tutorial from
9773 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
9774 to using pandoc as a Haskell library.
9777### Build infrastructure improvements
9779 * Removed `data/templates` submodule. Templates are now a subtree
9780 in `data/templates`. This removes the need to do `git submodule
9783 * Renamed `tests` -> `test`.
9785 * Remove `https` flag. Always build with HTTPS support.
9787 * Use `file-embed` instead of `hsb2hs` to embed data files when
9788 `embed_data_files` flag is set. `file-embed` gives us better dependency
9789 tracking: if a data file changes, ghc/stack/cabal know to recompile
9790 the Data module. This also removes `hsb2hs` as a build dependency.
9792 * Add `custom-setup` stanza to pandoc, lowercase field names.
9794 * Add `static` Cabal flag.
9796 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
9797 than -OSX. Changed local names from osx to macos.
9799 * make_macos_package.sh - Use strip to reduce executable size.
9801 * Revised binary linux package. Now a completely static executable
9802 is created, using Docker and alpine. We create both a deb and a
9803 tarball. The old `deb` directory has been replaced with a `linux`
9804 directory. Running `make` in the `linux` directory should
9805 perform the build, putting the binary packages in `artifacts/`.
9807 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
9808 pandoc-data packages will be uninstalled; this package provides
9809 both (#3822). Add latex packages as 'suggested', update
9812 * Remove cpphs build requirement -- it is no longer needed.
9814 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
9816 * Name change OSX -> macOS (ickc, #3869).
9818 * Fix casing of Linux, UNIX, and Windows (ickc).
9820 * `.travis.yml`: create a source dist and do cabal build and test there.
9821 That way we catch errors due to files missing from the data
9822 section of pandoc.cabal.
9826 + Split `make haddock` from `make full`.
9827 + Add BRANCH variable for winpkg.
9828 + Add `lint` target.
9829 + Improve `make full`. Disable optimizations.
9830 Build everything, inc. trypandoc and benchmarks. Use parallel build.
9831 + Allow `make test` to take `TESTARGS`.
9833 * Added new command tests (`Tests.Command`), using small text files
9834 in `test/command/`. Any files added in this directory will be treated
9835 as shell tests (see smart.md for an example). This makes it very easy
9836 to add regression tests etc.
9838 * Test fixes so we can find data files. In old tests & command tests,
9839 we now set the environment variable `pandoc_datadir`. In lua tests,
9840 we set the datadir explicitly.
9842 * Refactored `compareOutput` in docx writer test.
9844 * Consolidated some common functions in `Tests.Helper`.
9846 * Small change to unbalanced bracket test to speed up test suite.
9848 * Speed up Native writer quickcheck tests.
9850 * Use tasty for tests rather than test-framework.
9852 * Add simple Emacs mode to help with Pandoc templates editing.
9853 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
9856## pandoc 1.19.2.4 (2017-09-10)
9858 * Add dependencies on texmath and skylighting to the executable.
9859 This is needed for dependency version numbers to be available,
9862## pandoc 1.19.2.3 (2017-09-09)
9864 * Add CPP to Setup.hs so it works with Cabal >= 2 and < 2.
9866## pandoc 1.19.2.2 (2017-09-08)
9868 * Fix build with GHC 8.2.1 (#3876, Peter Simons). Setup.hs does not
9869 compile with Cabal 2.x, so we require an earlier version via
9870 setup-depends. The following packages need newer versions with
9871 GHC 8.2.1 and had their constraints relaxed accordingly:
9872 executable-path, process, syb, and time.
9874## pandoc 1.19.2.1 (2017-01-31)
9876 * Require skylighting >= 0.1.1.4.
9877 * Adjust test output for skylighting version.
9878 * Relax upper bounds on blaze-html and blaze-markup.
9880## pandoc 1.19.2 (2017-01-29)
9882 * Use skylighting library instead of highlighting-kate for syntax
9883 highlighting. Skylighting is faster and more accurate (#3363).
9884 Later we'll be able to add features like warning messages, dynamic
9885 loading of xml syntax definitions, and dynamic loading of themes.
9887 * Added a new highlight style, `breezeDark`.
9889 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
9890 This allows more languages to be used when using the `--listings`
9893 * OpenDocument writer:
9895 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
9896 + Don't profilerate text styles unnecessarily (#3371).
9897 This change makes the writer create only as many temporary
9898 text styles as are absolutely necessary. It also consolidates
9899 adjacent nodes with the same style.
9901 * Org reader (Albert Krewinkel):
9903 + Allow short hand for single-line raw blocks (Albert Krewinkel,
9904 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
9905 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
9906 + Accept org-ref citations followed by commas (Albert Krewinkel).
9907 Bugfix for an issue which, whenever the citation was immediately
9908 followed by a comma, prevented correct parsing of org-ref citations.
9909 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
9910 `/*strong and emphasized*/`) was interpreted incorrectly in that the
9911 inner markup was not recognized.
9912 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
9914 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
9915 In the past, the docx reader wrote an empty header as an empty list. It
9916 should have the same width as a row (and be filled with empty cells).
9920 + Improved handling of display math (#3362). Sometimes display math is
9921 indented with more than one colon. Previously we handled these cases
9922 badly, generating definition lists and missing the math.
9923 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
9924 behavior when the smart option is parsed to match other readers'
9929 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
9930 (#3341). Previously this did not properly enable escaped line breaks.
9931 + Disallow space between inline code and attributes (#3326, #3323,
9934 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
9936 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
9938 * LaTeX writer: allow tables with empty cells to count as "plain."
9939 This addresses a problem of too-wide tables when empty cells
9940 are used. Thanks to Joost Kremers for reporting the issue.
9942 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
9943 Unprefixed numbers where used by older org-mode versions, but are no
9946 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
9949 * Markdown writer: Fix display math with `--webtex` (#3298).
9951 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
9956 + default.latex: Moved geometry after hyperref (Václav Haisman).
9957 Otherwise PDF sizes can be wrong in some circumstances.
9958 + Copied a few changes from default.latex to default.beamer
9960 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
9961 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
9962 that contain verbatim in notes (#3361). (Note: the beamer template
9963 was updated to match the LaTeX template, but at this point verbatim
9964 in notes seems not to work in beamer.)
9965 + default.latex: Allow passing `microtypeoptions` to microtype
9967 + default.latex: Add hyphen option to url package.
9968 + default.docbook5: Fix namespace declarations (Mauro Bieg).
9970 * Moved `make_osx_package.sh` to `osx/` directory.
9972 * Travis continuous integration:
9974 + Fix false positives with dist build.
9975 + Speed improvements (Kolen Cheung, #3304, #3357).
9979 + Clarify that blank space is needed around footnotes (#3352).
9980 + Fixed typo (#3351, Alexey Rogechev).
9981 + Note that `--wrap=auto` does not work in HTML output.
9982 + Default `--columns` width is 72, not 80.
9983 + Fixed broken links (#3316, Kolen Cheung).
9984 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
9988 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
9989 + Added instructions for extracting binary from OSX, Windows packages.
9991 * CONTRIBUTING.md: Describe labels currently used in issue tracker
9992 (Albert Krewinkel). The labels have changed over time, the list of
9993 labels is updated to reflect the current set of labels used in the
9996 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
9998 * Bumped version bounds for dependencies.
10001## pandoc 1.19.1 (2016-12-10)
10003 * Set `PANDOC_VERSION` environment variable for filters (#2640).
10004 This allows filters to check the pandoc version that produced
10005 the JSON they are receiving.
10007 * Docx reader: Ensure one-row tables don't have header (#3285,
10008 Jesse Rosenthal). Tables in MS Word are set by default to have
10009 special first-row formatting, which pandoc uses to determine whether
10010 or not they have a header. This means that one-row tables will, by
10011 default, have only a header -- which we imagine is not what people
10012 want. This change ensures that a one-row table is not understood to
10013 be a header only. Note that this means that it is impossible to
10014 produce a header-only table from docx, even though it is legal
10015 pandoc. But we believe that in nearly all cases, it will be an
10016 accidental (and unwelcome) result
10020 + Fixed some bad regressions in HTML table parser (#3280).
10021 This regression leads to the introduction of empty rows
10022 in some circumstances.
10023 + Understand `style=width:` as well as `width` in `col` (#3286).
10027 + Print warnings when keys, substitition, notes not found.
10028 Previously the parsers failed and we got raw text. Now we get a
10029 link with an empty URL, or empty inlines in the case of a note or
10032 + Fix hyperlink aliases (#3283).
10034 * Man writer: Ensure that periods are escaped at beginning of line
10037 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
10038 (#3272, Albert Krewinkel). Fix interaction of top-level
10039 divisions `part` or `chapter` with unnumbered headers when
10040 emitting LaTeX. Headers are ensured to be written using
10041 stared commands (like `\subsection*{}`).
10043 * LaTeX template: use comma not semicolon to separate keywords for
10044 `pdfkeywords`. Thanks to Wandmalfarbe.
10046 * Markdown writer: Fixed incorrect word wrapping (#3277).
10047 Previously pandoc would sometimes wrap lines too early due to
10050 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
10051 possible to insert escape codes for content that needs escaping at the
10052 beginning of a line.
10054 * Removed old MathMLInHTML.js from 2004, which should no longer
10055 be needed for MathML with modern browsers.
10057 * Fixed tests with dynamic linking (#2709).
10059 * Makefile: Use stack instead of cabal for targets. This is just
10060 a convenience for developers.
10062 * Fixed bash completion of filenames with space (#2749).
10064 * MANUAL: improved documentation on how to create a custom
10067 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
10069## pandoc 1.19 (2016-12-01)
10071 * Changed resolution of filter paths.
10073 + We now first treat the argument of `--filter` as a full (absolute
10074 or relative) path, looking for a program there. If it's found, we
10076 + If not, and if it is a simple program name or a relative path, we
10077 try resolving it relative to `$DATADIR/filters`.
10078 + If this fails, then we treat it as a program name and look in the
10080 + Removed a hardcoded '/' that may have caused problems with
10083 Previously if you did `--filter foo` and you had `foo` in your path and
10084 also an executable `foo` in your working directory, the one in the path
10085 would be used. Now the one in the working directory is used.
10087 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
10088 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
10089 `foo/bar.hs` relative to the working directory.
10091 * Allow `file://` URIs as arguments (#3196). Also improved default reader
10092 format detection. Previously with a URI ending in .md or .markdown,
10093 pandoc would assume HTML input. Now it treats these as markdown.
10095 * Allow to overwrite top-level division type heuristics (#3258,
10096 Albert Krewinkel). Pandoc uses heuristics to determine the most
10097 reasonable top-level division type when emitting LaTeX or
10098 Docbook markup. It is now possible to overwrite this implicitly set
10099 top-level division via the `top-level-division` command line parameter.
10101 * Text.Pandoc.Options \[API changes\]:
10103 + Removed `writerStandalone` field in `WriterOptions`, made
10104 `writerTemplate` a `Maybe` value. Previously setting
10105 `writerStandalone = True` did nothing unless a template was provided
10106 in writerTemplate. Now a fragment will be generated if
10107 `writerTemplate` is `Nothing`; otherwise, the specified template
10108 will be used and standalone output generated.
10109 + `Division` has been renamed `TopLevelDivision` (#3197). The
10110 `Section`, `Chapter`, and `Part` constructors were renamed to
10111 `TopLevelSection`, `TopLevelChapter`, and
10112 `TopLevelPart`, respectively. An additional `TopLevelDefault`
10113 constructor was added, which is now also the new default value of
10114 the `writerTopLevelDivision` field in `WriterOptions`.
10116 * Improved error if they give wrong arg to `--top-level-division`.
10118 * Use new module from texmath to lookup MS font codepoints in Docx reader.
10119 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
10120 lives in texmath (0.9).
10122 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
10123 when the qnames lacked the docbook namespace URI.
10127 + Improved table parsing (#3027). We now check explicitly for non-1
10128 rowspan or colspan attributes, and fail when we encounter them.
10129 Previously we checked that each row had the same number of cells,
10130 but that could be true even with rowspans/colspans. And there are
10131 cases where it isn't true in tables that we can handle fine -- e.g.
10132 when a tr element is empty. So now we just pad rows with empty cells
10134 + Treat `<math>` as MathML by default unless something else is
10135 explicitly specified in xmlns. Provided it parses as MathML,
10136 of course. Also fixed default which should be to inline math if no
10137 display attribute is used.
10138 + Only treat "a" element as link if it has href (#3226). Otherwise
10141 * Docx reader (Jesse Rosenthal):
10143 + Add a placeholder value for CHART. We wrap `[CHART]` in a
10144 `<span class="chart">`. Note that it maps to inlines because, in
10145 docx, anything in a drawing tag can be part of a larger paragraph.
10146 + Be more specific in parsing images We not only want `w:drawing`,
10147 because that could also include charts. Now we specify
10148 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
10149 a first step toward allowing other sorts of drawing data as well.
10150 + Abstract out function to avoid code repetition.
10151 + Update tests for img title and alt (#3204).
10152 + Handle Alt text and titles in images. We use the "description" field
10153 as alt text and the "title" field as title. These can be accessed
10154 through the "Format Picture" dialog in Word.
10155 + Docx reader utils: handle empty namespace in `elemName`. Previously,
10156 if given an empty namespace `(elemName ns "" "foo")` `elemName`
10157 would output a QName with a `Just ""` namespace. This is never what
10158 we want. Now we output a `Nothing`. If someone *does* want a
10159 `Just ""` in the namespace, they can enter the QName
10162 * ODT reader/writer:
10164 + Inline code when text has a special style (Hubert Plociniczak). When
10165 a piece of text has a text `Source_Text` then we assume that this is
10166 a piece of the document that represents a code that needs to
10167 be inlined. Adapted the writer to also reflect that change.
10168 Previously it was just writing a 'preformatted' text using a
10169 non-distinguishable font style. Code blocks are still not recognized
10170 by the ODT reader. That's a separate issue.
10171 + Infer table's caption from the paragraph (#3224,
10172 Hubert Plociniczak). ODT's reader always put empty captions for the
10173 parsed tables. This commit
10175 1. checks paragraphs that follow the table definition
10176 2. treats specially a paragraph with a style named 'Table'
10177 3. does some postprocessing of the paragraphs that combines tables
10178 followed immediately by captions
10180 The ODT writer used the `TableCaption` style for the caption
10181 paragraph. This commit follows the OpenOffice approach which allows
10182 for appending captions to table but uses a built-in style named
10183 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
10184 should change the style's name from `TableCaption` to `Table`.
10186 * ODT reader: Infer tables' header props from rows (#3199,
10187 Hubert Plociniczak). ODT reader simply provided an empty header list
10188 which meant that the contents of the whole table, even if not empty, was
10189 simply ignored. While we still do not infer headers we at least have to
10190 provide default properties of columns.
10194 + Allow reference link labels starting with `@...` if `citations`
10195 extension disabled (#3209). Example: in
10197 \[link text\]\[@a\]
10199 `link text` isn't hyperlinked because `[@a]` is parsed as
10200 a citation. Previously this happened whether or not the `citations`
10201 extension was enabled. Now it happens only if the `citations`
10202 extension is enabled.
10203 + Allow alignments to be specified in Markdown grid tables. For
10206 +-------+---------------+--------------------+
10207 | Right | Left | Centered |
10208 +=========:+:=================+:=============:+
10209 | Bananas | $1.34 | built-in wrapper |
10210 +-------+---------------+--------------------+
10212 + Allow Small Caps elements to be created using bracketed spans (as
10213 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
10217 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
10218 Fixed an error which came up, for example, with `\vspace` inside
10219 a caption. (Captions expect inlines.)
10220 + Improved table handling. We can now parse all of the tables emitted
10221 by pandoc in our tests. The only thing we don't get yet are
10222 alignments and column widths in more complex tables. See #2669.
10223 + Limited support for minipage.
10224 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
10225 + Handle BVerbatim from fancyvrb (#3203).
10226 + Handle hungarumlaut (#3201).
10227 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
10228 (#3184). This allows use of things like `\only<2,3>{my content}` in
10229 Markdown that is going to be converted to beamer.
10231 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
10232 overly long code will appear on every slide.
10234 * Org reader (Albert Krewinkel):
10236 + Respect column width settings (#3246). Table column properties can
10237 optionally specify a column's width with which it is displayed in
10238 the buffer. Some exporters, notably the ODT exporter in org-mode
10239 v9.0, use these values to calculate relative column widths. The org
10240 reader now implements the same behavior. Note that the org-mode
10241 LaTeX and HTML exporters in Emacs don't support this feature yet,
10242 which should be kept in mind by users who use the column
10244 + Allow HTML attribs on non-figure images (#3222). Images which are
10245 the only element in a paragraph can still be given HTML attributes,
10246 even if the image does not have a caption and is hence not a figure.
10247 The following will add set the `width` attribute of the image to
10250 +ATTR\_HTML: :width 50%
10251 =======================
10253 \[\[file:image.jpg\]\]
10255 + Support `ATTR_HTML` for special blocks (#3182). Special
10256 blocks (i.e. blocks with unrecognized names) can be prefixed with an
10257 `ATTR_HTML` block attribute. The attributes defined in that
10258 meta-directive are added to the `Div` which is used to represent the
10260 + Support the `todo` export option. The `todo` export option allows to
10261 toggle the inclusion of TODO keywords in the output. Setting this to
10262 `nil` causes TODO keywords to be dropped from headlines. The default
10263 is to include the keywords.
10264 + Add support for todo-markers. Headlines can have optional
10265 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
10266 or `#+TYP_TODO` meta directive. Multiple such directives can be
10267 given, each adding a new set of recognized todo-markers. If no
10268 custom todo-markers are defined, the default `TODO` and `DONE`
10269 markers are used. Todo-markers are conceptually separate from
10270 headline text and are hence excluded when autogenerating
10271 headline IDs. The markers are rendered as spans and labelled with
10272 two classes: One class is the markers name, the other signals the
10273 todo-state of the marker (either `todo` or `done`).
10277 + Use `\autocites*` when "suppress-author" citation used.
10278 + Ensure that simple tables have simple cells (#2666). If cells
10279 contain more than a single Plain or Para, then we need to set
10280 nonzero widths and put contents into minipages.
10281 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
10285 + Fix calculation of column widths for aligned multiline tables
10286 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
10287 usage for tables when `--columns` is set in such a way that cells
10288 must be very tiny. Now cells are guaranteed to be big enough so that
10289 single words don't need to line break, even if this pushes the line
10290 length above the column width.
10291 + Use bracketed form for native spans when `bracketed_spans`
10293 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
10294 sublist got rendered with a blank line after, while a tight ordered
10295 sublist did not. Now we don't get the blank line in either case.
10296 + Fix escaping of spaces in super/subscript (#3225). Previously two
10297 backslashes were inserted, which gave a literal backslash.
10298 + Adjust widths in Markdown grid tables so that they match
10303 + Give full detail when there are errors converting tex math.
10304 + Handle title text in images (Jesse Rosenthal). We already handled
10305 alt text. This just puts the image "title" into the docx
10307 + Fixed XML markup for empty cells (#3238). Previously the Compact
10308 style wasn't being applied properly to empty cells.
10312 + Updated `renderHtml` import from blaze-html.
10314 * Text.Pandoc.Pretty:
10316 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
10317 caused spurious blank lines in grid tables when we had things like
10318 `blankline $$ blankline`.
10319 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
10320 + Added error message for illegal call to `block` (Björn Peemöller).
10322 * Text.Pandoc.Shared:
10324 + Put `warn` in MonadIO.
10325 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
10326 URL starts with `//` and there is no "base URL" (as there would be
10327 if a URL were used on the command line), then default to http:.
10329 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
10331 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
10332 fixes a crash with `pandoc --version` on unusual systems with no real
10333 user (e.g. SQL Server 2016).
10335 * Added weigh-pandoc for memory usage diagnostics (#3169).
10337 * Use correct mime types for woff and woff2 (#3228).
10339 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
10341 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
10342 1.18 section where it belongs.
10344 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
10347 * Further revisions to manual for `--version` changes (#3244).
10351## pandoc 1.18 (2016-10-26)
10353 * Added `--list-input-formats`, `--list-output-formats`,
10354 `--list-extensions`, `--list-highlight-languages`, and
10355 `--list-highlight-styles` (#3173). Removed list of highlighting
10356 languages from `--version` output. Removed list of input and output
10357 formats from default `--help` output.
10359 * Added `--reference-location=block|section|document` option
10360 (Jesse Rosenthal). This determines whether Markdown link references
10361 and footnotes are placed at the end of the document, the end of the
10362 section, or the end of the top-level block.
10364 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
10365 This determines what a level-1 header corresponds to in LaTeX,
10366 ConTeXt, DocBook, and TEI output. The default is `section`.
10367 The `--chapters` option has been deprecated in favor of
10368 `--top-level-division=chapter`.
10370 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
10371 is now used in parsing RST and Markdown line blocks, DocBook
10372 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
10373 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
10374 are handled specially in the following output formats: AsciiDoc
10375 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
10376 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
10377 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
10378 other output formats, a paragraph with hard linebreaks is emitted.
10380 * Allow binary formats to be written to stdout (but not to tty) (#2677).
10381 Only works on posix, since we use the unix library to check whether
10382 output is to tty. On Windows, pandoc works as before and always requires
10383 an output file parameter for binary formats.
10385 * Changed JSON output format (Jesse Rosenthal). Previously we used
10386 generically generated JSON, but this was subject to change depending
10387 on the version of aeson pandoc was compiled with. To ensure stability,
10388 we switched to using manually written ToJSON and FromJSON
10389 instances, and encoding the API version. **Note:** pandoc filter
10390 libraries will need to be revised to handle the format change.
10391 Here is a summary of the essential changes:
10393 + The toplevel JSON format is now `{"pandoc-api-version" :
10394 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
10395 instead of `[{"unMeta": META}, [BLOCKS]]`.
10396 Decoding fails if the major and minor version numbers don't
10398 + Leaf nodes no longer have an empty array for their "c" value.
10399 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
10400 rather than `{"t":"Space","c":[]}` as before.
10402 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
10403 module to pandoc-types (Jesse Rosenthal). This makes it easier
10404 to use QuickCheck with pandoc types outside of pandoc itself.
10406 * Add `bracketed_spans` Markdown extension, enabled by default
10407 in pandoc `markdown`. This allows you to create a native span
10408 using this syntax: `[Here is my span]{#id .class key="val"}`.
10410 * Added `angle_brackets_escapable` Markdown extension (#2846).
10411 This is needed because github flavored Markdown has a slightly
10412 different set of escapable symbols than original Markdown;
10413 it includes angle brackets.
10415 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
10417 * Print highlighting-kate version in `--version`.
10419 * `Text.Pandoc.Options`:
10421 + `Extension` has new constructors `Ext_brackted_spans` and
10422 `Ext_angle_brackets_escapable` [API change].
10423 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
10424 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
10427 * `--filter`: we now check `$DATADIR/filters` for filters before
10428 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
10429 Voß for the idea). Filters placed in this directory need not
10430 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
10431 or `.rb`, pandoc will run the right interpreter.
10433 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
10434 default (Kolen Cheung).
10436 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
10438 * Execute .js filters with node (Jakob Voß).
10442 + Support `bc..` extended code blocks (#3037). Also, remove trailing
10443 newline in code blocks (consistently with Markdown reader).
10444 + Improve table parsing. We now handle cell and row attributes, mostly
10445 by skipping them. However, alignments are now handled properly.
10446 Since in pandoc alignment is per-column, not per-cell, we
10447 try to devine column alignments from cell alignments.
10448 Table captions are also now parsed, and textile indicators
10449 for thead and tfoot no longer cause parse failure. (However,
10450 a row designated as tfoot will just be a regular row in pandoc.)
10451 + Improve definition list parsing. We now allow multiple terms
10452 (which we concatenate with linebreaks). An exponential parsing
10453 bug (#3020) is also fixed.
10454 + Disallow empty URL in explicit link (#3036).
10458 + Use Div instead of BlockQuote for admonitions (#3031).
10459 The Div has class `admonition` and (if relevant) one of the
10460 following: `attention`, `caution`, `danger`, `error`, `hint`,
10461 `important`, `note`, `tip`, `warning`. **Note:** This will change
10462 the rendering of some RST documents! The word ("Warning", "Attention",
10463 etc.) is no longer added; that must be done with CSS or a filter.
10464 + A Div is now used for `sidebar` as well.
10465 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
10466 space before a footnote marker. We discard those spaces so that footnotes
10467 will be adjacent to the text that comes before it. This is in line with
10468 what rst2latex does.
10469 + Allow empty lines when parsing line blocks (Albert Krewinkel).
10473 + Allow empty lines when parsing line blocks (Albert Krewinkel).
10474 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
10478 + More robust parsing of unknown environments (#3026).
10479 We no longer fail on things like `^` inside options for tikz.
10480 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
10481 Some custom environments give these a meaning, so we should try not to
10482 fall over when we encounter them.
10483 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
10485 * MediaWiki reader:
10487 + Fix for unquoted attribute values in mediawiki tables (#3053).
10488 Previously an unquoted attribute value in a table row
10489 could cause parsing problems.
10490 + Improved treatment of verbatim constructions (#3055).
10491 Previously these yielded strings of alternating Code and Space
10492 elements; we now incorporate the spaces into the Code. Emphasis
10493 etc. is still possible inside these.
10494 + Properly interpret XML tags in pre environments (#3042). They are meant
10495 to be interpreted as literal text.
10497 * EPUB reader: don't add root path to data: URIs (#3150).
10498 Thanks to @lep for the bug report and patch.
10500 * Org reader (Albert Krewinkel):
10502 + Preserve indentation of verse lines (#3064). Leading spaces in verse
10503 lines are converted to non-breaking spaces, so indentation is preserved.
10504 + Ensure image sources are proper links. Image sources as those in plain
10505 images, image links, or figures, must be proper URIs or relative file
10506 paths to be recognized as images. This restriction is now enforced
10507 for all image sources. This also fixes the reader's usage of uncleaned
10508 image sources, leading to `file:` prefixes not being deleted from
10509 figure images. Thanks to @bsag for noticing this bug.
10510 + Trim verse lines properly (Albert Krewinkel).
10511 + Extract meta parsing code to module. Parsing of meta-data is well
10512 separable from other block parsing tasks. Moving into new module to
10513 get small files and clearly arranged code.
10514 + Read markup only for special meta keys. Most meta-keys should be read
10515 as normal string values, only a few are interpreted as marked-up text.
10516 + Allow multiple, comma-separated authors. Multiple authors can be
10517 specified in the `#+AUTHOR` meta line if they are given as a
10518 comma-separated list.
10519 + Give precedence to later meta lines. The last meta-line of any given
10520 type is the significant line. Previously the value of the first line
10521 was kept, even if more lines of the same type were encountered.
10522 + Read LaTeX_header as header-includes. LaTeX-specific header commands
10523 can be defined in `#+LaTeX_header` lines. They are parsed as
10524 format-specific inlines to ensure that they will only show up in LaTeX
10526 + Set documentclass meta from LaTeX_class.
10527 + Set classoption meta from LaTeX_class_options.
10528 + Read HTML_head as header-includes. HTML-specific head content can be
10529 defined in `#+HTML_head` lines. They are parsed as format-specific
10530 inlines to ensure that they will only show up in HTML output.
10531 + Respect `author` export option. The `author` option controls whether
10532 the author should be included in the final markup. Setting
10533 `#+OPTIONS: author:nil` will drop the author from the final meta-data
10535 + Respect `email` export option. The `email` option controls whether the
10536 email meta-field should be included in the final markup. Setting
10537 `#+OPTIONS: email:nil` will drop the email field from the final
10539 + Respect `creator` export option. The `creator` option controls whether
10540 the creator meta-field should be included in the final markup. Setting
10541 `#+OPTIONS: creator:nil` will drop the creator field from the final
10542 meta-data output. Org-mode recognizes the special value `comment` for
10543 this field, causing the creator to be included in a comment. This is
10544 difficult to translate to Pandoc internals and is hence interpreted the
10545 same as other truish values (i.e. the meta field is kept if it's
10547 + Respect unnumbered header property (#3095). Sections the `unnumbered`
10548 property should, as the name implies, be excluded from the automatic
10549 numbering of section provided by some output formats. The Pandoc
10550 convention for this is to add an "unnumbered" class to the header. The
10551 reader treats properties as key-value pairs per default, so a special
10552 case is added to translate the above property to a class instead.
10553 + Allow figure with empty caption (Albert Krewinkel, #3161).
10554 A `#+CAPTION` attribute before an image is enough to turn an image into
10555 a figure. This wasn't the case because the `parseFromString` function,
10556 which processes the caption value, would fail on empty values. Adding
10557 a newline character to the caption value fixes this.
10561 + Use XML convenience functions (Jesse Rosenthal).
10562 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
10563 the code a lot cleaner than the original XML.Light functions, but they
10564 had been used inconsistently. This puts them in wherever applicable.
10565 + Handle anchor spans with content in headers. Previously, we would only
10566 be able to figure out internal links to a header in a docx if the
10567 anchor span was empty. We change that to read the inlines out of the
10568 first anchor span in a header.
10569 + Let headers use existing id. Previously we always generated an id for
10570 headers (since they wouldn't bring one from Docx). Now we let it use an
10571 existing one if possible. This should allow us to recurs through anchor
10573 + Use all anchor spans for header ids. Previously we only used the first
10574 anchor span to affect header ids. This allows us to use all the anchor
10575 spans in a header, whether they're nested or not (#3088).
10576 + Test for nested anchor spans in header. This ensures that anchor spans
10577 in header with content (or with other anchor spans inside) will resolve
10578 to links to a header id properly.
10580 * ODT reader (Hubert Plociniczak)
10582 + Include list's starting value. Previously the starting value of
10583 the lists' items has been hardcoded to 1. In reality ODT's list
10584 style definition can provide a new starting value in one of its
10586 + Infer caption from the text following the image.
10587 Frame can contain other frames with the text boxes.
10588 + Add `fig:` to title for Image with a caption (as expected
10589 by pandoc's writers).
10590 + Basic support for images in ODT documents.
10591 + Don't duplicate text for anchors (#3143). When creating an anchor
10592 element we were adding its representation as well as the original
10593 content, leading to text duplication.
10597 + Include an anchor element when a div or span has an id (#3102).
10598 Note that DocBook does not have a class attribute, but at least this
10599 provides an anchor for internal links.
10603 + Don't use * for unnumbered paragraph, subparagraph. The starred
10604 variants don't exist. This helps with part of #3058...it gets rid of
10605 the spurious `*`s. But we still have numbers on the 4th and 5th level
10607 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
10608 Otherwise they can cause unintended ligatures like `` ?` ``.
10609 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
10610 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
10611 This allows figure placement defaults to be changed by the user
10614 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
10615 TEI doesn't have `<book>` elements but only generic `<divN>` division
10616 elements. Checking the template for a trailing `</book>` is nonsensical.
10618 * MediaWiki writer: transform filename with underscores in images (#3052).
10619 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
10620 for internal links, but it also needs to happen for images.
10622 * ICML writer: replace partial function (!!) in table handling (#3175,
10625 * Man writer: allow section numbers that are not a single digit (#3089).
10627 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
10628 (#3068). In AsciiDoc, you must use a special form of emphasis
10629 (double `__`) for intraword emphasis. Pandoc was previously using
10630 this more than necessary.
10632 * EPUB writer: use stringify instead of plain writer for metadata
10633 (#3066). This means that underscores won't be used for emphasis,
10634 or CAPS for bold. The metadata fields will just have unadorned
10639 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
10640 with a `custom-style` key in the attributes will apply the corresponding
10641 key to the contained blocks or inlines.
10642 + Add ReaderT env to the docx writer (Jesse Rosenthal).
10643 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
10644 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
10645 on the command line. For finer-grained control, you can set
10646 the `dir` attribute in Div or Span elements.
10648 * Org writer (Albert Krewinkel):
10650 + Remove blank line after figure caption. Org-mode only treats an image
10651 as a figure if it is directly preceded by a caption.
10652 + Ensure blank line after figure. An Org-mode figure should be surrounded
10653 by blank lines. The figure would be recognized regardless, but images
10654 in the following line would unintentionally be treated as figures as
10656 + Ensure link targets are paths or URLs. Org-mode treats links as
10657 document internal searches unless the link target looks like a URL or
10658 file path, either relative or absolute. This change ensures that this
10659 is always the case.
10660 + Translate language identifiers. Pandoc and Org-mode use different
10661 programming language identifiers. An additional translation between
10662 those identifiers is added to avoid unexpected behavior. This fixes a
10663 problem where language specific source code would sometimes be output
10665 + Drop space before footnote markers (Albert Krewinkel, #3162).
10666 The writer no longer adds an extra space before footnote markers.
10670 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
10671 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
10673 + Check for the `raw_html` extension before emitting a raw HTML block.
10674 + Abstract out note/ref function (Jesse Rosenthal).
10675 + Add ReaderT monad for environment variables (Jesse Rosenthal).
10677 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
10678 subtitle, author, date (#3119). Note that, as a result of this change,
10679 authors may need to update CSS.
10681 * revealjs template: Added `notes-server` option
10682 (jgm/pandoc-templates#212, Yoan Blanc).
10686 + Restore whitespace between paragraphs. This was
10687 a regression in the last release (jgm/pandoc-templates#207).
10688 + Added `themeoptions` variable (Carsten Gips).
10689 + Added `beamerarticle` variable. This causes the `beamerarticle`
10690 package to be loaded in beamer, to produce an article from beamer
10691 slides. (Carsten Gips)
10692 + Added support for `fontfamilies` structured variable
10694 + Added hypersetup options (Jake Zimmerman).
10698 + Added dummy definition for `\institute`.
10699 This isn't a standard command, and we want to avoid a crash when
10700 `institute` is used with the default template.
10701 + Define default figure placement (Václav Haisman), since pandoc
10702 no longer includes `[htbp]` for figures. Users with custom templates
10703 will want to add this. See #3103.
10704 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
10707 * Moved template compiling/rendering code to a separate library.
10708 `doctemplates`. This allows the pandoc templating system to be
10709 used independently.
10711 * Text.Pandoc.Error: Fix out of index error in `handleError`
10712 (Matthew Pickering). The fix is to not try to show the exact line when
10713 it would cause an out-of-bounds error as a result of included files.
10715 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
10717 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
10718 addresses. Technically `**@user` is a valid email address, but if we
10719 allow things like this, we get bad results in markdown flavors
10720 that autolink raw email addresses (see #2940). So we exclude a few
10721 valid email addresses in order to avoid these more common bad cases.
10723 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
10724 emit the alt text, emphasized. This accords with what the ODT writer
10725 currently does. The user will still get a warning about a nonexistent
10728 * Fix example in API documentation (#3176, Thomas Weißschuh).
10730 * Tell where to get tarball in INSTALL (#3062).
10732 * Rename README to MANUAL.txt and add GitHub-friendly README.md
10733 (Albert Krewinkel, Kolen Cheung).
10735 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
10739 + Put note on structured vars in separate paragraph (#2148, Albert
10740 Krewinkel). Make it clearer that structured author variables require a
10742 + Note that `--katex` works best with `html5` (#3077).
10743 + Fix the LaTeX and EPUB links in manual (Morton Fox).
10744 + Document `biblio-title` variable.
10746 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
10748 * Update KaTeX to v0.6.0 (Kolen Cheung).
10750 * Allow latest dependencies.
10752 * Use texmath 0.8.6.6 (#3040).
10754 * Allow http-client 0.4.30, which is the version in stackage lts.
10755 Previously we required 0.5.
10756 Remove CPP conditionals for earlier versions.
10758 * Remove support for GHC < 7.8 (Jesse Rosenthal).
10760 + Remove Compat.Monoid.
10761 + Remove an inline monad compatibility macro.
10762 + Remove Text.Pandoc.Compat.Except.
10763 + Remove directory compat.
10764 + Change constraint on mtl.
10765 + Remove unnecessary CPP condition in UTF8.
10766 + Bump base lower bound to 4.7.
10767 + Remove 7.6 build from .travis.yaml.
10768 + Bump supported ghc version in CONTRIBUTING.md.
10769 + Add note about GHC version support to INSTALL.
10770 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
10771 + Remove TagSoup compat.
10772 + Add EOL note to time compat module. Because time 1.4 is a boot library
10773 for GHC 7.8, we will support the compatibility module as long as we
10774 support 7.8. But we should be clear about when we will no longer need
10776 + Remove blaze-html CPP conditional.
10777 + Remove unnecessary CPP in custom Prelude.
10779## pandoc 1.17.2 (2016-07-17)
10781 * Added Zim Wiki writer, template and tests. `zimwiki` is now
10782 a valid output format. (Alex Ivkin)
10784 * Changed email-obfuscation default to no obfuscation (#2988).
10785 + `writerEmailObfuscation` in `defaultWriterOptions` is now
10787 + the default for the command-line `--email-obfuscation` option is
10790 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
10794 + Support arbitrary raw inlines (Albert Krewinkel).
10795 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
10796 parlance) to be included as `@@format:raw foreign format text@@`.
10797 + Improve Div handling (Albert Krewinkel). Div blocks handling is
10798 changed to make the output look more like idiomatic org mode:
10799 - Div-wrapped content is output as-is if the div's attribute is the
10801 - Div containers with an id but neither classes nor key-value pairs
10802 are unwrapped and the id is added as an anchor.
10803 - Divs with classes associated with greater block elements are
10804 wrapped in a `#+BEGIN`...`#+END` block.
10805 - The old behavior for Divs with more complex attributes is kept.
10807 * HTML writer: Better support for raw LaTeX environments (#2758).
10808 Previously we just passed all raw TeX through when MathJax
10809 was used for HTML math. This passed through too much.
10810 With this patch, only raw LaTeX environments that MathJax
10811 can handle get passed through.
10812 This patch also causes raw LaTeX environments to be treated
10813 as math, when possible, with MathML and WebTeX output.
10815 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
10816 (#2993). Markdown line breaks involve a newline, and simple and pipe
10817 tables can't contain one.
10819 * Make --webtex work with the Markdown writer (#1177).
10820 This is a convenient option for people using
10821 websites whose Markdown flavors don't provide for math.
10825 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
10826 We treat display math like block quotes, and apply FirstParagraph style
10827 to paragraphs that follow them. These can be styled as the user
10828 wishes. (But, when the user is using indentation, this allows for
10829 paragraphs to continue after display math without indentation.)
10830 + Use actual creation time as doc prop (Jesse Rosenthal).
10831 Previously, we had used the user-supplied date, if available, for Word's
10832 document creation metadata. This could lead to weird results, as in
10833 cases where the user post-dates a document (so the modification might be
10834 prior to the creation). Here we use the actual computer time to set the
10839 + Don't URI-escape image source (#2825). Usually this is a local file,
10840 and replacing spaces with `%20` ruins things.
10841 + Allow 'standout' as a beamer frame option (#3007).
10842 `## Slide title {.standout}`.
10844 * RST reader: Fixed links with no explicit link text. The link
10845 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
10846 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
10847 Closes Debian #828167 -- reported by Christian Heller.
10851 + Fixed attributes (#2984). Attributes can't be followed by
10852 a space. So, `_(class)emph_` but `_(noclass) emph_`.
10853 + Fixed exponential parsing bug (#3020).
10854 + Fix overly aggressive interpretation as images (#2998).
10855 Spaces are not allowed in the image URL in textile.
10859 + Fix `\cite` so it is a NormalCitation not AuthorInText.
10860 + Strip off double quotes around image source if present (#2825).
10861 Avoids interpreting these as part of the literal filename.
10865 + Add semicolon to list of special chars (Albert Krewinkel)
10866 Semicolons are used as special characters in citations syntax. This
10867 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
10868 suffix]`. Previously, parsing would have failed unless there was a space
10869 or other special character as the last <prefix> character.
10870 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
10871 A specification for an official Org-mode citation syntax was drafted by
10872 Richard Lawrence and enhanced with the help of others on the orgmode
10873 mailing list. Basic support for this citation style is added to the
10875 + Support arbitrary raw inlines (Albert Krewinkel).
10876 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
10877 parlance) to be included as `@@format:raw foreign format text@@`.
10878 + Remove partial functions (Albert Krewinkel, #2991).
10879 Partial functions like `head` lead to avoidable errors and should be
10880 avoided. They are replaced with total functions.
10881 + Support figure labels (Albert Krewinkel, #2496, #2999).
10882 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
10883 respective image. This allows e.g. the LaTeX to add proper `\label`
10885 + Improve tag and properties type safety (Albert Krewinkel).
10886 Specific newtype definitions are used to replace stringly typing of tags
10887 and properties. Type safety is increased while readability is improved.
10888 + Parse as headlines, convert to blocks (Albert Krewinkel).
10889 Emacs org-mode is based on outline-mode, which treats documents as trees
10890 with headlines are nodes. The reader is refactored to parse into a
10891 similar tree structure. This simplifies transformations acting on
10892 document (sub-)trees.
10893 * Refactor comment tree handling (Albert Krewinkel).
10894 Comment trees were handled after parsing, as pattern matching on lists
10895 is easier than matching on sequences. The new method of reading
10896 documents as trees allows for more elegant subtree removal.
10897 * Support archived trees export options (Albert Krewinkel).
10898 Handling of archived trees can be modified using the `arch` option.
10899 Archived trees are either dropped, exported completely, or collapsed to
10900 include just the header when the `arch` option is nil, non-nil, or
10901 `headline`, respectively.
10902 * Put export setting parser into module (Albert Krewinkel).
10903 Export option parsing is distinct enough from general block parsing to
10904 justify putting it into a separate module.
10905 * Support headline levels export setting (Albert Krewinkel).
10906 The depths of headlines can be modified using the `H` option. Deeper
10907 headlines will be converted to lists.
10908 * Replace ugly code with view pattern (Albert Krewinkel).
10909 Some less-than-smart code required a pragma switching of overlapping
10910 pattern warnings in order to compile seamlessly. Using view patterns
10911 makes the code easier to read and also doesn't require overlapping
10912 pattern checks to be disabled.
10913 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
10914 Org rules for allowed characters before or after markup chars were not
10915 checked for verbatim text. This resultet in wrong parsing outcomes of
10916 if the verbatim text contained e.g. space enclosed markup characters as
10917 part of the text (`=is_substr = True=`). Forcing the parser to update
10918 the positions of allowed/forbidden markup border characters fixes this.
10920 * LaTeX template: fix for obscure hyperref/xelatex issue.
10921 Here's a minimal case:
10923 \documentclass[]{article}
10924 \usepackage{hyperref}
10929 Without this change, this fails on the second invocation of xelatex.
10930 This affects inputs this like `# %á` with pdf output via xelatex.
10932 * trypandoc: call results 'html' instead of 'result'.
10933 This is for better compatibility with babelmark2.
10935 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
10936 MultiMarkdown was only mentioned as a supported Markdown dialect but not
10937 as a possible input or output format. A brief mention is added
10938 everywhere the other supported markdown dialects are mentioned.
10940 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
10941 Raw HTML is kept when the output format is Emacs Org mode.
10943 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
10945 * Text.Pandoc.Shared:
10947 + Introduce blocksToInlines function (Jesse Rosenthal).
10948 This is a lossy function for converting `[Block] -> [Inline]`. Its main
10949 use, at the moment, is for docx comments, which can contain arbitrary
10950 blocks (except for footnotes), but which will be converted to spans.
10951 This is, at the moment, pretty useless for everything but the basic
10952 `Para` and `Plain` comments. It can be improved, but the docx reader
10953 should probably emit a warning if the comment contains more than this.
10954 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
10955 + Add further formats for `normalizeDate` (Jesse Rosenthal).
10956 We want to avoid illegal dates -- in particular years with greater than
10957 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
10958 `%Y%m`, and finally `%Y`.
10959 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
10960 We only allow years between 1601 and 9999, inclusive. The ISO 8601
10961 actually says that years are supposed to start with 1583, but MS Word
10962 only allows 1601-9999. This should stop corrupted word files if the date
10963 is out of that range, or is parsed incorrectly.
10964 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
10965 Previously we parsed a list of dates, took the first one, and then
10966 tested its year range. That meant that if the first one failed, we
10967 returned nothing, regardless of what the others did. Now we test for
10968 sanity before running `msum` over the list of Maybe values. Anything
10969 failing the test will be Nothing, so will not be a candidate.
10973 + Add simple comment functionality. (Jesse Rosenthal).
10974 This adds simple track-changes comment parsing to the docx reader. It is
10975 turned on with `--track-changes=all`. All comments are converted to
10976 inlines, which can list some information. In the future a warning will be
10977 added for comments with formatting that seems like it will be excessively
10978 denatured. Note that comments can extend across blocks. For that reason
10979 there are two spans: `comment-start` and `comment-end`. `comment-start`
10980 will contain the comment. `comment-end` will always be empty. The two
10981 will be associated by a numeric id.
10982 + Enable warnings in top-level reader (Jesse Rosenthal).
10983 Previously we had only allowed for warnings in the parser. Now we allow
10984 for them in the `Docx.hs` as well. The warnings are simply concatenated.
10985 + Add warning for advanced comment formatting. (Jesse Rosenthal).
10986 We can't guarantee we'll convert every comment correctly, though we'll
10987 do the best we can. This warns if the comment includes something other
10988 than Para or Plain.
10989 + Add tests for warnings. (Jesse Rosenthal).
10990 + Add tests for comments (Jesse Rosenthal).
10991 We test for comments, using all track-changes options. Note that we
10992 should only output comments if `--track-changes=all`. We also test for
10993 emitting warnings if there is complicated formatting.
10995 * README: update to include track-changes comments. (Jesse Rosenthal)
10997 * Improved Windows installer - don't ignore properties set on command-line.
10998 See #2708. Needs testing to see if this resolves the issue.
11001 * Process markdown extensions on command line in L->R order (#2995).
11002 Previously they were processed, very unintuitively, in R->L
11003 order, so that `markdown-tex_math_dollars+tex_math_dollars`
11004 had `tex_math_dollars` disabled.
11006 * Added `secnumdepth` variable to LaTeX template (#2920).
11008 * Include table of contents in README.html in Windows package.
11010 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
11011 In Writers.Shared, we strip leading and trailing spaces for display
11012 math. Since SoftBreak's are treated as spaces, we should strip those
11015 * beamer, latex templates: pass biblatexoptions directly in package load.
11016 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
11018 * CPP workaround for deprecation of `parseUrl` in http-client.
11020 * Removed some redundant class constraints.
11022 * make_oxs_package.sh - use OSX env variable.
11024 * Added `winpkg` target to Makefile. This downloads the windows package
11025 from appveyor and signs it using the key.
11027 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
11028 Raw TeX is kept verbatim when the output format is Emacs Org mode.
11030 * Support math with haddock-library >= 1.4.
11032 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
11033 wouldn't accept the package.
11035 * Update library dependency versions.
11037## pandoc 1.17.1 (2016-06-04)
11039 * New output format: `docbook5` (Ivo Clarysse).
11041 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
11046 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
11047 This allows header attributes to be added to org documents in the form
11048 of `:PROPERTIES:` drawers. All available attributes are stored as
11049 key/value pairs. This reflects the way the org reader handles
11050 `:PROPERTIES:` blocks.
11051 + Add drawer capability (Carlos Sosa). For the implementation of the
11052 Drawer element in the Org Writer, we make use of a generic Block
11053 container with attributes. The presence of a `drawer` class defines
11054 that the `Div` constructor is a drawer. The first class defines the
11055 drawer name to use. The key-value list in the attributes defines
11056 the keys to add inside the Drawer. Lastly, the list of Block elements
11057 contains miscellaneous blocks elements to add inside of the Drawer.
11058 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
11059 reserved for internal use by Org-mode and should not be used.
11060 The `CUSTOM_ID` property is to be used instead, it is converted to the
11061 `ID` property for certain export format.
11065 + Ignore `--incremental` unless output format is beamer (#2843).
11066 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
11067 Allow for optional argument in square brackets.
11068 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
11069 This allows one to access the hyphenation patterns in CTAN's
11071 + Add missing languages from hyph-utf8 (Andrew Dunning).
11072 + Improve use of `\strut` with `\minipage` inside tables
11073 (Jose Luis Duran). This improves spacing in multiline
11075 + Use `{}` around options containing special chars (#2892).
11076 + Avoid lazy `foldl`.
11077 + Don't escape underscore in labels (#2921). Previously they were
11079 + brazilian -> brazil for polyglossia (#2953).
11081 * HTML writer: Ensure mathjax link is added when math appears in footnote
11082 (#2881). Previously if a document only had math in a footnote, the
11083 MathJax link would not be added.
11085 * EPUB writer: set `navpage` variable on nav page.
11086 This allows templates to treat it differently.
11090 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
11091 + Properly handle `ulink`/`link` (Ivo Clarysse).
11095 + Unescape URIs in spine (#2924).
11096 + EPUB reader: normalise link id (Mauro Bieg).
11100 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
11101 `moveTo` and `moveFrom` are track-changes tags that are used when a
11102 block of text is moved in the document. We now recognize these tags and
11103 treat them the same as `insert` and `delete`, respectively. So,
11104 `--track-changes=accept` will show the moved version, while
11105 `--track-changes=reject` will show the original version.
11106 + Tests for track-changes moving (Jesse Rosenthal).
11108 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
11109 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
11110 would error out if zip-archive failed. We change the archive extraction
11111 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
11113 * Markdown, HTML readers: be more forgiving about unescaped `&` in
11114 HTML (#2410). We are now more forgiving about parsing invalid HTML with
11115 unescaped `&` as raw HTML. (Previously any unescaped `&`
11116 would cause pandoc not to recognize the string as raw HTML.)
11120 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
11121 + Added `-s` to markdown-reader-more test.
11123 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
11124 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
11126 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
11129 * RST reader: Support `:class:` option for code block in RST reader
11132 * Org reader (all Albert Krewinkel, except where noted otherwise):
11134 + Stop padding short table rows.
11135 Emacs Org-mode doesn't add any padding to table rows. The first
11136 row (header or first body row) is used to determine the column count,
11137 no other magic is performed.
11138 + Refactor rows-to-table conversion. This refactors
11139 the codes conversing a list table lines to an org table ADT.
11140 The old code was simplified and is now slightly less ugly.
11141 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
11142 This fixes Org mode parsing of some corner cases regarding empty cells
11143 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
11144 two empty cells, but would be parsed as a single cell containing a pipe
11145 character. Empty rows where parsed as alignment rows and dropped from
11147 + Fix spacing after LaTeX-style symbols.
11148 The org-reader was dropping space after unescaped LaTeX-style symbol
11149 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
11150 instead. This seems to be because the LaTeX-reader treats the
11151 command-terminating space as part of the command. Dropping the trailing
11152 space from the symbol-command fixes this issue.
11153 + Print empty table rows. Empty table rows should not
11154 be dropped from the output, so row-height is always set to be at least 1.
11155 + Move parser state into separate module.
11156 The org reader code has become large and confusing. Extracting smaller
11157 parts into submodules should help to clean things up.
11158 + Add support for sub/superscript export options.
11159 Org-mode allows to specify export settings via `#+OPTIONS` lines.
11160 Disabling simple sub- and superscripts is one of these export options,
11161 this options is now supported.
11162 + Support special strings export option Parsing of special strings
11163 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
11165 + Support emphasized text export option. Parsing of emphasized text can
11166 be toggled using the `*` option. This influences parsing of text marked
11167 as emphasized, strong, strikeout, and underline. Parsing of inline math,
11168 code, and verbatim text is not affected by this option.
11169 + Support smart quotes export option. Reading of smart quotes can be
11170 toggled using the `'` option.
11171 + Parse but ignore export options. All known export options are parsed
11173 + Refactor block attribute handling. A parser state attribute was used
11174 to keep track of block attributes defined in meta-lines. Global state
11175 is undesirable, so block attributes are no longer saved as part of the
11176 parser state. Old functions and the respective part of the parser state
11178 + Use custom `anyLine`. Additional state changes need to be made after
11179 a newline is parsed, otherwise markup may not be recognized correctly.
11180 This fixes a bug where markup after certain block-types would not be
11182 + Add support for `ATTR_HTML` attributes (#1906).
11183 Arbitrary key-value pairs can be added to some block types using a
11184 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
11185 when exporting to HTML, but since we cannot make this distinction here,
11186 the attributes are always added. The functionality is now supported
11188 + Add `:PROPERTIES:` drawer support (#1877).
11189 Headers can have optional `:PROPERTIES:` drawers associated with them.
11190 These drawers contain key/value pairs like the header's `id`. The
11191 reader adds all listed pairs to the header's attributes; `id` and
11192 `class` attributes are handled specially to match the way `Attr` are
11193 defined. This also changes behavior of how drawers of unknown type
11194 are handled. Instead of including all unknown drawers, those are not
11195 read/exported, thereby matching current Emacs behavior.
11196 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
11197 + Respect drawer export setting. The `d` export option can be used
11198 to control which drawers are exported and which are discarded.
11199 Basic support for this option is added here.
11200 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
11201 Also fix up tab handling for leading whitespace in code blocks.
11202 + Support new syntax for export blocks. Org-mode version 9
11203 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
11204 where `<FORMAT>` is the format of the block's content, the new
11205 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
11207 + Refactor `BEGIN...END` block parsing.
11208 + Fix handling of whitespace in blocks, allowing content to be indented
11209 less then the block header.
11210 + Support org-ref style citations. The *org-ref* package is an
11211 org-mode extension commonly used to manage citations in org
11212 documents. Basic support for the `cite:citeKey` and
11213 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
11214 + Split code into separate modules, making for cleaner code and
11217 * Added `docbook5` template.
11219 * `--mathjax` improvements:
11221 + Use new CommonHTML output for MathJax (updated default MathJax URL,
11223 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
11224 This is designed for cases where the input is always TeX and maximal
11225 conformity with TeX is desired. It seems to be smaller and load faster
11226 than what we used before. See #2858.
11227 + Load the full MathJax config to maximize loading speed (KolenCheung).
11229 * Bumped upper version bounds to allow use of latest packages
11230 and compilation with ghc 8.
11232 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
11233 #2310, #2310, #2824). This fixes behavior of roots, e.g.
11234 `\sqrt[3]{x}`, and issues with sub/superscript positioning
11235 and matrix column alignment in docx.
11239 + Clarified documentation of `implicit_header_references` (#2904).
11240 + Improved documentation of `--columns` option.
11242 * Added appveyor setup, with artefacts (Jan Schulz).
11244 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
11246 * LaTeX template: support for custom font families (vladipus).
11247 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
11248 can find some other usages. Example usage in YAML metadata:
11251 - name: \cyrillicfont
11252 font: Liberation Serif
11253 - name: \cyrillicfonttt
11254 options: Scale=MatchLowercase
11257 * Create unsigned msi as build artifact in appveyor build.
11259 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
11263## pandoc 1.17.0.3 (2016-03-24)
11265 * LaTeX writer: Fixed position of label in figures (#2813).
11266 Previously the label wasn't in the right place, and `\ref`
11267 wouldn't work properly.
11268 * Added .tei test files to pandoc.cabal so they'll be included
11269 in tarball (#2811).
11270 * Updated copyright dates.
11272## pandoc 1.17.0.2 (2016-03-23)
11274 * Fixed serious regression in `htmlInBalanced`, which caused
11275 newlines to be omitted in some raw HTML blocks in Markdown
11278## pandoc 1.17.0.1 (2016-03-21)
11280 * File scope is no longer used when there are no input files (i.e.,
11281 when input comes from stdin). Previously file scope was triggered
11282 when the `json` reader was specified and input came from `stdin`,
11283 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
11284 thanks to Fedor Sheremetyev for calling the bug to our attention.)
11285 * Improved documentation of templates (#2797).
11287## pandoc 1.17 (2016-03-20)
11289 * Added `--file-scope` option (Jesse Rosenthal).
11290 By default pandoc operates on multiple files by first concatenating
11291 them (around extra line breaks) and then processing the joined file. So
11292 it only parses a multi-file document at the document scope. This has the
11293 benefit that footnotes and links can be in different files, but for
11294 some purposes it is useful to parse the individual files first
11295 and then combine their outputs (e.g. when the files use footnotes
11296 or links with the same labels). The `--file-scope` option causes
11297 pandoc to parse the files first, and then combine the parsed output,
11298 instead of combining before parsing. `--file-scope` is selected
11299 automatically for binary input files (which cannot be concatenated)
11300 and for pandoc json.
11302 * Add TEI Writer (Chris Forster) and `tei` output format.
11304 * Added a general `ByteStringReader` with warnings, used by the docx
11305 reader (API change, Jesse Rosenthal).
11307 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
11309 * Changed type of `Shared.uniqueIdent` argument from
11310 `[String]` to `Set String`. This avoids performance problems in documents
11311 with many identically named headers (API change, #2671).
11313 * Removed `tex_math_single_backslash` from `markdown_github` options
11316 * Make language extensions as well as full language names
11317 trigger syntax highlighting. For example, `py` will now work as
11318 well as `python` (jgm/highlighting-kate#83).
11320 * Added `institute` variable to latex, beamer templates (Fraser
11321 Tweedale, Josef Svenningsson).
11323 * Docx reader (Jesse Rosenthal):
11325 + Handle alternate content. Some word functions (especially graphics)
11326 give various choices for content so there can be backwards compatibility.
11327 + Don't turn numbered headers into lists.
11328 + Docx Reader: Add state to the parser, for warnings
11329 + Update feature checklist in source code.
11330 + Get rid of `Modifiable` typeclass.
11331 + Add tests for adjacent hyperlinks.
11332 + Add a "Link" modifier to `Reducible`. We want to make sure that
11333 links have their spaces removed, and are appropriately smushed
11338 + Fixed behavior of base tag (#2777).
11339 If the base path does not end with slash, the last component
11340 will be replaced. E.g. base = `http://example.com/foo`
11341 combines with `bar.html` to give `http://example.com/bar.html`.
11342 If the href begins with a slash, the whole path of the base
11343 is replaced. E.g. base = `http://example.com/foo/` combines
11344 with `/bar.html` to give `http://example.com/bar.html`.
11345 + Rewrote `htmlInBalanced`. This version avoids an exponential
11346 performance problem with `<script>` tags, and it should be faster
11347 in general (#2730).
11348 + Properly handle an empty cell in a simple table (#2718).
11349 + Handle multiple `<meta>` tags with same name. Put them in a list
11350 in the metadata so they are all preserved, rather than (as before)
11351 throwing out all but one..
11355 + Improved pipe table parsing (#2765).
11356 + Allow `+` separators in pipe table cells. We already allowed
11357 them in the header, but not in the body rows, for some reason.
11358 This gives compatibility with org-mode tables.
11359 + Don't cross line boundary parsing pipe table row.
11360 Previously an Emph element could be parsed across the newline
11361 at the end of the pipe table row.
11362 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
11363 performance (#2730).
11364 + Fixed bug with smart quotes around tex math.
11368 + Handle interior `$` characters in math (#2743). For example,
11370 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
11371 This gives better results when people write e.g. `\TeX{}` in Markdown.
11372 + Properly handle LaTeX "math" environment as inline math (#2171).
11374 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
11377 * Org reader (Albert Krewinkel):
11379 + Prefix even empty figure names with "fig:" (#2643). The
11380 convention used by pandoc for figures is to mark them by prefixing
11381 the name with `fig:`. The org reader failed to do this if a figure
11383 + Refactor link-target processing (#2684).
11385 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
11386 Thanks to @c-foster.
11388 * HTML writer: Don't include alignment attribute for default table columns.
11389 Previously these were given "left" alignment. Better to leave off
11390 alignment attributes altogether (#2694).
11392 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
11393 better compatibility with other Markdown flavors (Henrik Tramberend).
11397 + Use image identifier to create a label and hypertarget for
11398 figures (Mauro Bieg).
11399 + Avoid double toprule in headerless table with caption (#2742).
11400 + Clean up options parser (Jesse Rosenthal).
11401 + Treat `memoir` template with `article` option as article, instead
11402 of treating all `memoir` templates as books.
11403 + Allow more flexible table alignment (Henrik Tramberend, #2665).
11404 New default is not to include `[c]` option (which is the default
11405 anyway if no positioning is specified). Now LaTeX emplates can
11406 control the overall table alignment in a document by setting the
11407 longtable length variables `LTleft` and `LTright`. For example,
11408 `\setlength\LTleft\parindent\setlength\LTright\fill`
11409 will create left-aligned tables that respect paragraph indentation.
11411 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
11413 * Org writer - pass through RawInline with format "org".
11415 * DokuWiki writer: use `$$` for display math.
11417 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
11419 * Make protocol-relative URIs work again (#2737).
11421 * make_osx_package.sh: Use env variable for developer id certs.
11423 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
11426 * Allow `zip-archive` 0.3.
11428 * Allow `aeson` 0.11.
11430## pandoc 1.16.0.2 (2016-01-12)
11432 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
11434 * Fixed regression in latex smart quote parsing (#2645).
11435 In cases where a match was not found for a quote, everything
11436 from the open quote to the end of the paragraph was being dropped.
11438## pandoc 1.16.0.1 (2016-01-10)
11440 * Fixed regression with `--latex-engine` (#2618). In 1.16
11441 `--latex-engine` raises an error if a full path is given.
11443 * Org reader: Fix function dropping subtrees tagged `:noexport`
11444 (Albert Krewinkel, #2628):
11446 * Markdown reader: renormalize table column widths if they exceed 100%
11449 * Textile reader: don't allow block HTML tags in inline contexts.
11450 The reader previously did allow this, following redcloth,
11451 which happily parses
11453 Html blocks can be <div>inlined</div> as well.
11457 <p>Html blocks can be <div>inlined</div> as well.</p>
11459 This is invalid HTML. The above sample now produces;
11461 <p>Html blocks can be</p>
11467 * Improved default template lookup for custom lua scripts (#2625).
11468 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
11469 pandoc would look for the template in
11470 `~/.pandoc/templates/default./path/to/lua/script.lua`.
11471 With this change it will look in the more reasonable
11472 `~/.pandoc/templates/default.script.lua`. This makes it possible to
11473 store default templates for custom writers.
11475 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
11478 * LaTeX writer: restore old treatment of Span (#2624). A Span is
11479 now rendered with surrounding `{}`, as it was before 1.16.
11481 * Entity handling fixes: improved handling of entities like
11482 `⟨` that require a trailing semicolon. Allow uppercase
11483 `x` in numerical hexadecimal character references, working
11484 around a tagsoup bug.
11486 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
11487 memory use on compile. With aeson 0.10 we were getting an out of
11488 memory error on a 2GB Ubuntu 64-bit VM.
11490 * Improved deb package creation script. Made `DPKGVER` work.
11491 Renamed `COMMIT` to `TREE`. You should now be able to do
11492 `TREE=1.16.0.1 DPKGVER=2 make deb`.
11495## pandoc 1.16 (2016-01-02)
11497 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
11499 + Added syntax for link and image attributes to pandoc's Markdown.
11500 + Updated readers and writers to use link and image attributes
11502 + Support image attributes in Docx, Textile, RST readers.
11504 * Renamed link attribute extensions. The old `link_attributes` is
11505 now `mmd_link_attributes`, and `link_attributes` now enables the
11506 new pandoc-style link and image attributes (API change).
11507 Note: this change could break some existing workflows.
11509 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
11510 Added threefold wrapping option.
11512 + Command line option: deprecated `--no-wrap`, added
11513 `--wrap=[auto|none|preserve]`
11514 + Added `WrapOption`, exported from `Text.Pandoc.Options`
11515 + Changed type of `writerWrapText` in `WriterOptions` from
11516 `Bool` to `WrapOption`.
11517 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
11518 + Supported `SoftBreak` in readers and writers.
11520 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
11521 change, Mauro Bieg).
11523 * Added `--dpi` command-line option (Mauro Bieg).
11525 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
11526 This change makes `--no-tex-ligatures` affect the LaTeX reader
11527 as well as the LaTeX and ConTeXt writers. If it is used,
11528 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
11529 literally, rather than parsing ligatures for quotation marks
11530 and dashes. And the LaTeX writer will print unicode quotation
11531 mark and dash characters literally, rather than converting
11532 them to the standard ASCII ligatures. Note that `--smart` has
11533 no effect on the LaTeX reader. `--smart` is still the default
11534 for all input formats when LaTeX or ConTeXt is the output format,
11535 *unless* `--no-tex-ligatures` is used.
11537 Some examples to illustrate the logic:
11540 % echo "'hi'" | pandoc -t latex
11542 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
11544 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
11546 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
11548 % echo "'hi'" | pandoc -f latex
11552 * Removed deprecated options `--offline` and `--html5`.
11554 * Fixed language code for Czech (`cs` not `cz`) (#2597).
11556 * Implemented `east_asian_line_breaks` extension (#2586).
11557 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
11558 to `Extension` (API change). This extension is like
11559 `ignore_line_breaks`, but smarter -- it only ignores line breaks
11560 between two East Asian wide characters. This makes it better suited
11561 for writing with a mix of East Asian and non-East Asian scripts.
11563 * Added support for PDF creation via `wkhtmltopdf`.
11564 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
11565 if you have math.) Margins can be set using the variables
11566 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
11567 Other styling can be done through CSS.
11569 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
11570 We were capturing final colons as in `[@foo: bar]`; the citation id
11571 was being parsed as `@foo:`.
11575 + Fixed image syntax for local files (#2589).
11576 + Changed type of `writeICML` (Mauro Bieg).
11577 API change: It is now `WriterOptions -> Pandoc -> IO String`.
11578 Also handle new image attributes.
11579 + Intersperse line breaks instead of appending them to
11580 every `ParagraphStyleRange` (Mauro Bieg, #2501).
11581 + Add `Cite` style to citations (Mauro Bieg).
11582 + Added figure handling (#2590, Mauro Bieg).
11583 + Better handling of math. Instead of just printing the raw tex,
11584 we now try to fake it with unicode characters.
11586 * HTML writer: Include `example` class for example lists (#2524).
11588 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
11590 + Support for percentage widths/heights
11591 + Use `Attr` instead of title to get dimensions from ODT walker
11592 to `writeOpenDocument`.
11596 + Support anchors in spans and divs with id elements
11597 (jgm/pandoc-citeproc#143).
11598 + Fixed code blocks (#1861).
11600 * Haddock writer: omit formatting inside links, which isn't supported
11601 by Haddock (#2515).
11603 * MediaWiki writer: Fixed spacing issues in table cells.
11605 + Start cell on new line unless it's a single Para or Plain
11607 + For single Para or Plain, insert a space after the `|` to
11608 avoid problems when the text begins with a character like
11611 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
11615 + Add support for GAP highlighting using listings (Raniere Silva).
11616 + Consider `header-includes` content as well as templates
11617 when determining whether to use csquotes (Andreas Lööw).
11618 + Create defaults for geometry using `margin-left` etc.
11619 If `geometry` has no value, but `margin-left`, `margin-right`,
11620 `margin-top`, and/or `-margin-bottom` are given, a default value
11621 for `geometry` is created from these. Note that these variables
11622 already affect PDF production via HTML5 with `wkhtmltopdf`.
11624 * ConTeXt writer: set default layout based on `margin-left`, etc.
11625 This sets up `\setuplayout` based on the variables `margin-left`,
11626 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
11629 * Docx writer: better handling of PDF images. Previously we tried
11630 to get the image size from the image even if an explicit size was
11631 specified. Since we still can't get image size for PDFs, this made
11632 it impossible to use PDF images in docx. Now we don't try to get
11633 the image size when a size is already explicitly specified.
11635 * Markdown writer: use raw HTML for link/image attributes when
11636 the `link_attributes` extension is unset and `raw_html` is set (#2554).
11638 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
11642 + Improved smart quote parsing (#2555). This fixes redering of
11644 + Use curly quotes for unmatched ` (#2555).
11645 + Allow blank space between braced arguments of commands (#2592).
11649 + Improved pipe table relative widths. Previously pipe table
11650 columns got relative widths (based on the header underscore lines)
11651 when the source of one of the rows was greater in width than the
11652 column width. This gave bad results in some cases where much of
11653 the width of the row was due to nonprinting material (e.g. link
11654 URLs). Now pandoc only looks at printable width (the width of a
11655 plain string version of the source), which should give better results.
11656 Thanks to John Muccigrosso for bringing up the issue.
11657 + Fixed parsing bug with macros. Previously macro definitions in
11658 indented code blocks were being parsed as macro definitions, not code.
11660 * Textile reader: skip over attribute in image source (#2515).
11661 We don't have a place yet for styles or sizes on images, but
11662 we can skip the attributes rather than incorrectly taking them
11663 to be part of the filename.
11665 * Docx reader: Handle dummy list items (Jesse Rosenthal).
11666 These come up when people create a list item and then delete the
11667 bullet. It doesn't refer to any real list item, and we used to ignore
11670 * CommonMark reader/writer rewritten to use latest `cmark`.
11672 * Fixed Emoji character definitions (#2523). There were many bugs in the
11675 * `Text.Pandoc.CSS`:
11677 + Added `pickStylesToKVs` function to extract multiple properties at
11678 once (API change, Mauro Bieg).
11679 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
11681 * `trypandoc`: sort drop-down lists.
11685 + Made `\euro` conditional on presence of character.
11686 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
11687 + Moved `header-includes` before setting of title (Thomas Hodgson),
11688 to match the LaTeX template (jgm/pandoc-templates#168).
11689 + Added `section-titles` variable (defaults to true)
11690 to enable/suppress section title pages in beamer
11691 slide shows (Thomas Hodgson).
11692 + Moved beamer themes after fonts, so that themes can
11693 change fonts. (Previously the fonts set were being
11694 clobbered by lmodern.sty.) (Thomas Hodgson).
11696 * Beamer/LaTeX template changes (Thomas Hodgson):
11697 + Added `thanks` variable
11698 + Use `parskip.sty` when `indent` isn't set (fall back to using
11699 `setlength` as before if `parskip.sty` isn't available).
11700 + Use `biblio-style` with biblatex.
11701 + Added `biblatexoptions` variable.
11703 * LaTeX template changes:
11705 + Added `paper` after `$papersize$` variable in latex template.
11706 Thus you can say `papersize: a4` and the latex will contain
11707 `a4paper`. This change may break some existing workflows; if
11708 you currently specify `a4paper`, you'll get `a4paperpaper` which
11709 is meaningless. However, the change seems worth it, as it will
11710 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
11711 and html->pdf via wkhtmltopdf.
11712 + Only pass options to color package if `colorlinks` is set
11714 + Make definition of `\euro` conditional in xelatex/lualatex,
11715 as it is already for pdflatex (Andrew Dunning).
11716 + Removed setting of `subject` in PDF metadata.
11717 This used to be set to the subtitle, but really the subtitle
11718 need not give the subject. Also, `subtitle` can contain formatting,
11719 so we'd need, at least, a plain text version for this.
11720 + Moved `header-includes` before setting of `\title`, `\author`,
11721 etc. This allows these macros to be redefined.
11722 + Use `\subtitle` command for `subtitle`, instead of tacking it
11723 on to the title as before. We give a no-op fallback definition if it
11724 is not defined. This change should produce much better results
11725 in classes that support `\subtitle`. With the default article
11726 class, which does not define `\subtitle`, subtitles will no
11727 longer be printed unless the user defines `\subtitle` and
11728 redefines `\maketitle`.
11729 + Moved redefinitions of `\paragraph` and `\subparagraph` to
11730 before header-includes.
11732 * Context template:
11734 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
11735 needed for things to work on ConTeXt stable from TeXLive 2015.
11736 + Revert use of `\setuphead` in title block (Andrew Dunning,
11739 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
11741 * Fixed man template so disabling hyphenation actually works.
11742 The command needs to come after .TH.
11744 * Added 'navigation' variable to beamer template (#2543).
11745 Valid values are `empty` (the default), `horizontal`, `vertical`,
11746 and `frame`. Note that this changes the default behavior from
11747 `horizontal` to `empty`. Closes #2543.
11749 * Added `toc` to HTML slide format templates (Andrew Dunning),
11750 so that `--toc` creates a contents slide.
11752 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
11754 * Allow pipe tables with no body rows (#2556).
11755 Previously this raised a runtime error.
11757 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
11758 as URL. The Haskell URI parsing routines will accept "C:" as a
11759 scheme, so we rule that out manually. This helps with
11760 `--self-contained` and absolute Windows paths.
11762 * Define a `meta-json` variable for all writers (#2019). This contains
11763 a JSON version of all the metadata, in the format selected for the
11764 writer. So, for example, to get just the YAML metadata, you can run
11765 pandoc with the following custom template: `$meta-json$`. The intent
11766 is to make it easier for static site generators and other tools to get
11769 * Document limitations of --self-contained (#2553).
11771 * Improved Citations section of README (#2551). Added information
11772 about `link-citations` and a link to the pandoc-citeproc man page.
11774 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
11777 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
11779 * Improved implicit pandoc-citeproc inclusion.
11780 The filter pandoc-citeproc is automatically used when
11781 `--bibliography` is specified on the command line, unless
11782 `--natbib` or `--biblatex` is used. However, previously this
11783 only worked if `--bibliography` was spelled out in full, and not
11784 if `--biblio` was used.
11786 * reveal.js: Interpret pauses correctly for all headers (#2530).
11787 Previously, when using headers below the slide level, pauses are left
11788 uninterpreted into pauses. In my opinion, unexpected behavior but
11789 intentional looking at the code.
11791 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
11793 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
11796 * ImageSize: Added functions for converting between image dimensions
11799 * Use lts-3.18 in stack.yaml. This avoids Windows build
11800 issues with the HTTP library.
11802 * Bump version bounds for dependencies.
11804## pandoc 1.15.2.1 (2015-11-16)
11806 * Added two missing test files, and `stack.yaml`, to
11807 `extra-source-files` so they're included in the source tarball.
11809 * reveal.js template: Fixed parallaxBackground options.
11810 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
11811 need integer values, not strings. (Vaughn Iverson)
11813## pandoc 1.15.2 (2015-11-15)
11815 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
11816 ConTeXt rather than LaTeX (#2463).
11818 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
11820 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
11821 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
11824 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
11825 parsing (#2469). Tightened up the inline HTML parser so it disallows
11828 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
11832 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
11833 Paragraphs can be followed by lists, even if there is no blank line
11834 between the two blocks. However, this should only be true if the
11835 paragraph is not within a list, were the preceding block should be
11836 parsed as a plain instead of paragraph (to allow for compact lists).
11837 Thanks to @rgaiacs for bringing this up.
11838 + Allow toggling header args (Albert Krewinkel, #2269).
11839 Org-mode allows to skip the argument of a code block header argument if
11840 it's toggling a value. Argument-less headers are now recognized,
11841 avoiding weird parsing errors.
11842 + Fix markup parsing in headers (Albert Krewinkel, #2504).
11843 Markup as the very first item in a header wasn't recognized. This was
11844 caused by an incorrect parser state: positions at which inline markup
11845 can start need to be marked explicitly by changing the parser state.
11846 This wasn't done for headers. The proper function to update the state
11847 is now called at the beginning of the header parser, fixing this issue.
11848 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
11849 Smart quotes, ellipses, and dashes should behave like normal quotes,
11850 single dashes, and dots with respect to text markup parsing.
11851 + Require whitespace around definition list markers (#2518).
11852 This rule was not checked before, resulting in bugs with footnotes
11853 and some link types.
11857 + Pipe tables with long lines now get relative cell widths (#2471).
11858 If a pipe table contains a line longer than the column width (as set by
11859 `--columns` or 80 by default), relative widths are computed based on the
11860 widths of the separator lines relative to the column width. This should
11861 solve persistent problems with long pipe tables in LaTeX/PDF output, and
11862 give more flexibility for determining relative column widths in other
11863 formats, too. For narrower pipe tables, column widths of 0 are used,
11864 telling pandoc not to specify widths explicitly in output formats that
11866 + Improved parser for `mmd_title_block`. We now allow blank metadata
11867 fields. These were explicitly disallowed before.
11868 + Citation keys can now contain `://`, so URLs and DOIs can be used
11869 as citation keys (jgm/pandoc-citeproc#166).
11871 * Beamer template: fix incompatibility of section slides with natbib.
11872 Natbib (and presumably biblatex) bibliography commands create
11873 their own section. Since these are in frame environments,
11874 we have an incompatibility with the `\AtBeginSection` macro
11875 which creates a special frame when a new section occurs.
11876 (We can't have a frame inside another frame.) This change disables
11877 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
11878 bringing the problem to my attention. This supersedes #145. See
11881 * Textile reader: don't do smart punctuation unless explicitly asked
11882 (#2480). Note that although smart punctuation is part of the textile
11883 spec, it's not always wanted when converting from textile
11884 to, say, Markdown. So it seems better to make this an option.
11886 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
11887 The `comment` environment is handled in a similar way to the
11888 `verbatim` environment, except that its content is discarded.
11890 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
11891 Jesse Rosenthal). This fixes a problem with links in notes.
11893 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
11894 (mb21). For LaTeX, also collect `lang` and `dir` attributes on spans and
11895 divs to set the `lang`, `otherlangs` and `dir` variables if they aren’t set
11900 + Use proper command for `\textarabic` (mb21).
11901 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
11902 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
11903 to link to Div or Span elements. We now don't bother defining `\label`
11904 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
11905 + Avoid footnotes in list of figures (#1506).
11906 + Properly handle footnotes in captions (#1506).
11907 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
11908 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
11909 `toccolor` is set (#2508).
11911 * Textile writer: support start number in ordered lists (#2465).
11913 * OpenDocument writer: Allow customization of opendocument
11914 automatic styles. Automatic styles can now be inserted in the
11915 template, which now provides the enclosing `<office:automatic-styles>`
11918 * Docx writer: insert space between footnote reference and note (#2527).
11919 This matches Word's default behavior.
11921 * EPUB writer: don't download linked media when `data-external` attribute
11922 set (#2473). By default pandoc downloads all linked media and includes it
11923 in the EPUB container. This can be disabled by setting `data-external` on
11924 the tags linking to media that should not be downloaded. Example:
11926 <audio controls="1">
11927 <source src="http://www.sixbarsjail.it/tmp/bach_toccata.mp3"
11928 type="audio/mpeg"></source>
11931 * HTML writer: use width on whole table if col widths sum to < 100%.
11932 Otherwise some browsers display the table with the columns
11933 separated far apart.
11935 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
11936 `abstract` (Andrew Dunning).
11938 * HTML-based templates (Andrew Dunning):
11940 + Use en dash instead of hyphen between title prefix and title.
11941 + Add `keywords` to metadata.
11942 + Add `lang`, `dir`, `quotes` where missing.
11943 + Always make author and date display conditional.
11944 + Updated dzslides template from source.
11946 * Man template: make "generated by" comment conditional.
11948 * LaTeX, Beamer templates:
11950 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
11951 filled by commands that make babel understand the polyglossia-style
11952 language directives (mb21, #137).
11953 + Improved formatting of conditionals; `$for$` is always provided to allow
11954 multiple options (Andrew Dunning, #141).
11955 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
11956 to improve support for LuaTeX (Andrew Dunning, #135).
11957 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
11958 - use same options for all LaTeX engines;
11959 - add `subtitle` and `keywords` to PDF metadata;
11960 - do not override `hyperref` link coloring without user input, effectively making
11961 the `hidelinks` option the default (removed as a separate variable);
11962 - link colors can be enabled (using a slightly darker version of the old
11963 defaults) using a new `colorlinks` variable, automatically used by
11964 the LaTeX writer when custom colors are specified;
11965 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
11966 `colorlinks`, and is only applied if `colorlinks` is disabled.
11968 * ConTeXt template (Andrew Dunning):
11970 + New variables for controlling styles: `linkstyle`, `linkcolor`,
11971 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
11972 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
11973 `monofont`, `mathfont`, `fontsize`.
11974 + Default template no longer supports MkII.
11975 + Improve writing of title block (suppressing numbering of first page).
11976 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
11977 + Support `subtitle`, `abstract`.
11978 + Support list of figures (`lof`), list of tables (`lot`).
11979 + Disable link styling by default.
11980 + Define styles for all section types.
11981 + Enable microtype.
11982 + Improved formatting of conditionals.
11984 * Beamer template: added code to prevent slide breaks inside paragraphs
11985 (#2422, thanks to Nick Bart). This will matter, in practice, only when
11986 `allowframebreaks` is used. It is especially helpful for bibliography
11989 * OpenDocument template: Add `<office:automatic-styles>` tag around
11990 automatic styles. The writer now longer provides this (see #2520).
11992 * Restored Text.Pandoc.Compat.Monoid.
11994 * Do not export (<>) from custom Prelude. The Prelude now matches
11995 base 4.8 Prelude's API.
11997 * Don't use custom prelude with ghc 7.10. Use the custom prelude
11998 only for earlier versions. This change makes `stack ghci` and
11999 `cabal repl` work (#2503), at least with ghc 7.10.
12001 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
12002 This prevents problems building haddocks with "C" locale.
12004 * Change default for old-locale flag to False.
12006 * Use stack in deb, osx, and Windows package generators.
12008 * Added Vagrantfile for building deb in vm.
12009 This should help in automating binary package creation. 'make package'
12010 will make the package. 'make package COMMIT=blah' will make the package
12015 + Consistent capitalization for pandoc and Markdown.
12016 + Fixed `auto_identifiers` examples (Benoit Schweblin).
12017 + Improved documentation of template variables (Andrew Dunning).
12019## pandoc 1.15.1 (2015-10-15)
12021 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
12022 and reexported from `Text.Pandoc` (Alex Vong). This allows
12023 writers to access it. (Alex Vong) (API change)
12025 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
12026 `subscripts` (#2401).
12028 * Added `odt` as input format (MarLinn). Added new module
12029 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
12030 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
12031 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
12032 Partly implemented features: Citations, Tables.
12036 + Add basic tests for each header style (Ophir Lifshitz).
12037 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
12038 + Skip spaces in headers (Ophir Lifshitz).
12039 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
12040 `# Header {id="myid" class="foo bar"}`
12041 is now equivalent to `# Header {#myid .foo .bar}`.
12042 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
12043 (Kristof Bastiaensen)
12044 + Pipe tables: allow indented columns. Previously the left-hand column
12045 could not start with 4 or more spaces indent. This was inconvenient
12046 for right-aligned left columns. Note that the first (header column)
12047 must still have 3 or fewer spaces indentation, or the table will be
12048 treated as an indented code block.
12049 + Fix regression: allow HTML comments containing `--`.
12050 Technically this isn't allowed in an HTML comment, but
12051 we've always allowed it, and so do most other implementations.
12052 It is handy if e.g. you want to put command line arguments
12057 + Don't eat excess whitespace after macros with only optional
12059 + Support longtable (#2411).
12060 + Implement `\Cite` (#2335).
12061 + Support abstract environment. The abstract populates an
12062 `abstract` metadata field.
12063 + Properly handle booktabs lines. Lines aren't part of the
12064 pandoc table model, so we just ignore them (#2307).
12068 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
12069 + Updated for new automatic header attributes.
12070 + Add auto identifiers if not present on headers. This makes
12071 TOC linking work properly.
12072 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
12073 + Test `<ol>` type, class, and inline list-style(-type) CSS
12075 + Better handling of "section" elements (#2438). Previously
12076 `<section>` tags were just parsed as raw HTML blocks. With
12077 this change, section elements are parsed as Div elements with
12078 the class "section".
12080 * MediaWiki reader: handle unquoted table attributes (#2355).
12084 + Added proper support for DocBook `xref` elements (Frerich Raabe).
12085 Added `dbContent` field to reader state, so we can lookup
12087 + Handle `informalexample` (#2319).
12091 + Create special punctuation test (Ophir Lifshitz).
12092 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
12093 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
12094 in `headers.docx` with pandoc's current `styles.xml`, which
12095 contains styles for Heading 1 through 6. Added Heading 4
12096 through 7 to the test document. Note that Heading 7 is not
12097 parsed as a Heading because there is no Heading 7 style.
12099 * RST reader: better handling of indirect roles.
12100 Previously the parser failed on this kind of case
12102 .. role:: indirect(code)
12104 .. role:: py(indirect)
12109 Now it correctly recognizes `:py:` as a code role.
12113 + Add auto identifiers if not present on headers
12114 (#2354, Juliusz Gonera).
12115 + Allow verse blocks to contain empty lines (#2402,
12118 * EPUB reader: stop mangling external URLs (#2284).
12122 + Don't insert `\ ` when complex expression in matched pairs.
12123 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
12124 + Ensure that `\ ` is inserted when needed before Cite and Span
12125 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
12126 + Normalize headers only in "standalone" mode (#2394).
12128 * Haddock writer: escape `*` and `^` (G. Bataille).
12132 + In TOC, add links to headers (#829).
12133 + Use unicode super/subscripts for digits in plain output
12134 (when the `superscripts` and `subscripts` extensions are
12139 + Moved invalid character stripping to `formattedString`.
12140 This avoids an inefficient generic traversal (#2356).
12141 + Use user data directory for `reference.docx` archive.
12142 This allows the test suite to work without installing pandoc first.
12143 It also brings the docx writer in line with the odt writer.
12144 + Tests: docx writer tests now use `../data` for data directory.
12145 This allows tests to be run without installing first.
12146 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
12150 + Fixed detection of 'chapters' from template.
12151 If a documentclass isn't specified in metadata, but the
12152 template has a hardwired bookish documentclass, act as if
12153 `--chapters` was used. This was the default in earlier
12154 versions, but it has been broken for a little while.
12155 + Correctly recognize book documentclass in metadata (#2395).
12156 + Set language-related variables automatically, depending
12157 on the value of the `lang` field, which is now always
12158 assumed to be in BCP47 format (mb21, #1614, #2437).
12159 + Add `\protect` to `\hyperdef` in inline context. This way we
12160 don't get an error when this is used as a moveable argument (#2136).
12161 + Support all frame attributes in Beamer.
12162 + Percent-encode more special characters in URLs (#1640, #2377).
12163 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
12167 + Update KaTeX JS and CSS versions (Emily Eisenberg).
12168 + For dzslides, add `role="note"` for speaker notes (#1693).
12169 + Percent-encode more special characters in URLs (#1640, #2377).
12170 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
12171 + Render Div with class `section` as `<section>` in HTML5.
12175 + In TOC, replace literal `<br/>` with space (#2105).
12176 + With `--webtex`, include image file rather than `data:` URI (#2363).
12178 * Native writer: format Div properly, with blocks separated.
12180 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
12185 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
12186 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
12190 + Beamer: Add `innertheme`, `outertheme` variables
12191 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
12192 Integrate recent font and language updates from LaTeX template;
12193 allow use of `mainfont` variable for changing the slide text
12194 in XeTeX and LuaTeX (Andrew Dunning, #131).
12195 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
12196 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
12197 (Andrew Dunning, #122). Support handling of bidirectional
12198 text (mb21, #120). Improve reliability of superscripts/subscripts
12199 under XeTeX and prevent letters and numbers from appearing on a
12200 different baseline by removing use of the `realscripts` package
12201 (via `xltxtra`). To restore use of OpenType characters for these
12202 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
12203 `header-includes` (Andrew Dunning, #130). Remove redundant
12204 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
12205 `indent`, `subparagraph` variables (Andrew Dunning).
12206 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
12207 #113). Prevent package clash with `tufte-latex` and other classes that
12208 include `hyperref` or `color` (Xavier Olive, #115).
12209 + ConTeXt: Support handling of bidirectional text (mb21, #120).
12210 + LaTeX and ConTeXt: Use more specific language variables.
12211 Instead of directly using `lang`, we now use `babel-lang` and
12212 `polyglossia-lang` and `context-lang`. These variables are set by
12213 the writers to the necessary values, based on the `lang` variable
12214 (which now always takes a value in BCP47 format). (mb21, #114, #129).
12215 + HTML: Support handling of bidirectional text (mb21, #120).
12216 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
12217 Add dir attribute in html5 (Andrew Dunning).
12218 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
12219 Add `width`, `height` variables (Anrew Dunning). Update template
12220 from 3.1 source (Andrew Dunning). All configuration options are now
12221 available as variables, but are only be included if set (reveal.js
12222 uses defaults otherwise).
12223 + man: Added comment stating that the page is autogenerated by pandoc,
12224 giving version. Added `adjusting` and `hyphenate` variables
12227 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
12229 * MediaBag: ensure that `/` is always used as path separator.
12231 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
12233 * Added `--bash-completion` option. This generates a bash completion
12234 script. To use: `eval "$(pandoc --bash-completion)"`.
12236 * Text.Pandoc.Error: Define Typeable and Exception instances
12237 for PandocError (#2386).
12239 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
12240 This makes keys with extra space at the beginning and end
12247 will now be a link to bar (it wasn't before).
12249 * Text.Pandoc: disable `auto_identifiers` for epub.
12250 The epub writer inserts its own auto identifiers;
12251 this is more complex due to splitting into "chapter" files.
12253 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
12254 It now reexports Data.Time.
12256 * Use custom Prelude to avoid compiler warnings.
12258 + The (non-exported) prelude is in prelude/Prelude.hs.
12259 + It exports Monoid and Applicative, like base 4.8 prelude,
12260 but works with older base versions.
12261 + It exports (<>) for mappend.
12262 + It hides 'catch' on older base versions.
12264 * Added a `stack.ymal` and stack install instructions to INSTALL.
12266 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
12268 * Added note to CONTRIBUTING.md about ghc versions and travis.
12270 * Clarify docs on block quotes. The space after `>` is optional (#2346).
12272 * Removed obsolete reference to default.csl (#2372).
12274 * List all styles in manual for `--reference-docx` (Chris Black)
12276 * Don't capitalize header links in man page.
12278 * Added section on repl to CONTRIBUTING.md.
12280 * README: Added space after backslash in image example (#2329).
12282 * Document details of citation locator terms (Nick Bart).
12284 * Fixed some internal links in README (#2309).
12286 * Improve CSL documentation, variables documentations,
12287 links, and cross-references in README. (Andrew Dunning)
12289 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
12291 * Use `newManager` instead of `withManager` in recent `http-client`.
12292 This avoids a deprecation warning.
12294 * Allow building with latest versions of http-types,
12295 HUnit, criterion, syb, aeson.
12297 * Updated benchmark program for new criterion API.
12299 * Setup.hs: rewrite so as not to use process, directory, filepath.
12300 Using anything outside base is dangerous, since older
12301 versions of ghc may link against two different versions.
12303 * Added appveyor (Windows continuous integration) builds.
12305 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
12306 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
12307 `make .travis.yml` regenerates it based on the tested-with
12308 field of the cabal file.
12310## pandoc 1.15.0.6 (2015-07-15)
12312 * `--self-contained`: Fixed overaggressive CSS minimization
12313 (#2301, 2286). Previously `--self-contained` wiped out all
12314 spaces in CSS, including semantically significant spaces.
12315 This was a regression from 1.14.x.
12317 * Markdown reader: don't allow bare URI links or autolinks in link
12318 label (#2300). Added test cases.
12320 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
12321 Previously we disallowed `-` at the end of an autolink,
12322 and disallowed the combination `=-`. This commit liberalizes the
12323 rules for allowing punctuation in a bare URI, and adds test cases.
12324 One potential drawback is that you can no longer put a bare
12325 URI in em dashes like this:
12326 `this uri---http://example.com---is an example.`
12327 But in this respect we now match github's treatment of bare URIs.
12329 * HTML writer: support speaker notes in dzslides.
12330 With this change `<div class="notes">` and also `<div class="notes"
12331 role="note">` will be output if `-t dzslides` is used. So we can
12332 have speaker notes in dzslides too. Thanks to maybegeek.
12334 * Updated dzslides template.
12336 * Improved documentation of options to print system default files (#2298).
12337 `--print-default-data-file` and `--print-default-template`.
12339 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
12340 (Tiziano Müller). MathJax seems currently to be the only maintained
12341 math rendering extension for DokuWiki.
12343 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
12344 div as top-level header (#2294). This fixes a bug with `--section-divs`,
12345 where the final references section added by pandoc-citeproc, enclosed in
12346 its own div, got nested in the div for the section previous to it.
12348 * Allow vector 0.11.
12350 * Require cmark > 0.4.
12352## pandoc 1.15.0.5 (2015-07-10)
12354 * HTML writer: Fixed email javascript obfuscation with `mailto:`
12355 URLs (#2280). This fixes a potential security issue. Because
12356 single quotes weren't being escaped in the link portion, a
12357 specially crafted email address could allow javascript code injection.
12359 * RST reader: allow inline formatting in definition list field
12360 names (Lars-Dominik Braun).
12362 * PDF: Make sure `--latex-engine-opt` goes before the filename
12363 on the command line. LaTeX needs the argument to come after
12364 the options (#1779).
12366 * CommonMark writer: fixed tags used for super/subscript.
12368 * ConTeXt template: activate hanging indent for definition lists
12371 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
12372 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
12373 to include `hsb2hs` in Build-Tools in cabal.
12375 * Improved Windows installer (thanks to nkalvi).
12377 + When per-machine installation is chosen, the system path
12378 is updated instead of the user's.
12379 + An appropriate default is used for per-machine installation
12381 + Admin privileges are no longer required for a per-user install
12383 * Travis: unpack sdist for build to catch packaging bugs.
12385 * Improved documentation on where user templates go (#2272).
12387## pandoc 1.15.0.4 (2015-07-03)
12389 * Added pandoc.1 man page to the repository. It is no longer
12390 built as part of the cabal build process. (This proved too
12391 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
12392 when `README` is changed.
12394 * Copying of the man page now respects `--destdir` (#2262).
12396 * Improved error messages for filters. User is now informed if
12397 the filter requires an interpreter that isn't found in the path,
12398 or if the filter returns an error status.
12400## pandoc 1.15.0.3 (2015-07-02)
12402 * Ensure target directory is created when installing man page.
12404## pandoc 1.15.0.2 (2015-07-02)
12406 * Added files needed for building man page to Extra-Source-Files.
12408## pandoc 1.15.0.1 (2015-07-01)
12410 * Man page is now built and installed as part of the cabal build
12411 process. Removed Makefile target for man page.
12413## pandoc 1.15 (2015-07-01)
12415 * Man page changes:
12417 + Removed `--man1`, `--man5` options (breaking change).
12418 + Removed `Text.Pandoc.ManPages` module (breaking API change).
12419 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
12420 create the man page from README using a custom template and filters.
12421 + Added `man/` directory with template and filters needed to build
12423 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
12424 Now there is just pandoc.1, which has all the content from README.
12425 This change was needed because of the extensive cross-references
12426 between parts of the README.
12427 + Removed old `data/pandoc.1.template` and
12428 `data/pandoc_markdown.5.template`.
12430 * OpenDocument writer: Do not add a carriage return after a hard
12431 line break (Michael Chladek).
12435 + use `\goto` for internal links.
12436 + Added a `%` at end for `\reference` to avoid spurious space.
12438 * Ignore sandbox on 'make quick'
12440## pandoc 1.14.1 (2015-06-30)
12442 * Added `--man1` and `--man5` options to pandoc, allowing
12443 pandoc to generate its own man pages. Man pages are no longer
12444 automatically generated in the build process (the process for
12445 this was too complex and prone to failure, #2190). The
12446 `make-pandoc-man-pages` executable has been removed. The
12447 `man/` directory has been removed, and man page templates
12448 have been moved to `data/`. NOTE TO PACKAGERS: You will no
12449 longer find pandoc's man pages in `man/`, but you can
12450 generate them using `pandoc --man1 > pandoc.1` and `pandoc
12451 --man5 > pandoc_markdown.5`.
12453 * Added new unexported module: `Text.Pandoc.ManPages`.
12455 * `README` now acts like a data file (even though it isn't in
12456 `data/`). So, for example, `pandoc --print-default-data-file README`
12457 will produce the README.) This change was required for the `--man1`
12458 and `--man5` options, since the man pages are produced from the
12459 README, but it may be useful for other purposes as well.
12461 * Allow `reference.docx` and `reference.odt` to be used with
12462 `--print-default-data-file` and to shadow defaults if placed in
12463 the user data directory. Note that as of 1.14, we no longer
12464 include these files as data files; instead, we include their
12465 components. This change causes pandoc to behave as if it has
12466 these data files; they are constructed on demand when needed
12467 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
12469 * Fixed regression in CSS parsing with `--self-contained` (#2224).
12470 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
12471 silently drops big sections of CSS. This commit replaces the
12472 use of css-text with a small but principled CSS preprocessor,
12473 which removes whitespace and comments and replaces `url()` with
12474 base 64 data when possible.
12476 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
12477 This will allow math to work when pages are being viewed locally.
12479 * `Text.Pandoc.Options`: Export `plainExtensions`.
12480 These are the extensions used in `plain` output.
12482 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
12483 math mode; treat them as regular inline text. Normally these will
12484 cause an error in LaTeX, but there are contexts (e.g. `alltt`
12485 environments) where they are allowed.
12487 * HTML reader: allow `<body>` to close `<head>`.
12489 * DocBook reader: support `mediaobject`s and `figures` (#2184, mb21).
12491 * RST reader: Fix reference names with special characters
12492 (Lars-Dominik Braun).
12494 * Textile writer: escape `+` and `-` as entities (#2225).
12496 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
12498 * Plain writer: don't use symbols for super/subscript (#2237).
12499 Simplified code by using `plainExtensions`.
12501 * InDesign writer: Properly escape URLs containing more than one
12502 colon character (gohai).
12504 * Docx writer: Make sure we use dist version of `reference.docx`
12505 (and not the user's version) for certain settings. Taking some
12506 settings values from a user-supplied reference.docx can lead to
12507 corruption. This fixes a regression from the last release (#2249).
12509 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
12510 `getDefaultReferenceODT` (API change). These functions have been
12511 removed from the Docx and ODT writers.
12513 * LaTeX template (Xavier Olive):
12514 + Added `CJKmainfont` and `CJKoptions` variables.
12515 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
12517 * Epub templates: use `author.role`, not `author.type`.
12519 * Bump cmark version to >= 0.3.4.
12521 * Improved Windows installer (#2205, thanks to nkalvi).
12522 Users can now select a per-user or systemwide install, and can set
12523 the installation path. At the end of installation, the install location
12524 is given. The install location is also now given in the list of
12525 installed programs in Control Panel. Cleaner WiX syntax is used for
12528 * Added `download_stats` target to Makefile.
12530## pandoc 1.14.0.4 (2015-06-02)
12532 * Added missing commonmark template.
12534 * Improved try pandoc (moved button, show raw command).
12536## pandoc 1.14.0.3 (2015-06-01)
12538 * Allow compilation with syb 0.5.*.
12540 * Custom writer: fixed some compiler warnings for ghc < 7.10.
12542## pandoc 1.14.0.2 (2015-05-31)
12544 * Allow building with hslua 0.4.
12546## pandoc 1.14.0.1 (2015-05-28)
12548 * Fixed problem with building of `reference.docx` and `reference.odt`
12549 when the `embed_data_files` flag is used. Instead of having a phase
12550 of the build where `reference.docx` and `reference.odt` are created
12551 from their constituent data files, we now construct these archives
12552 from their constituents when a `docx` or `odt` is built. The
12553 constituent files have been moved from `extra-source-files` to
12554 `data-files`, and `reference.docx` and `reference.odt` have been
12555 removed. Users can create their own `reference.docx` or
12556 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
12557 `make-reference-files.hs` has been removed, simplifying the build
12560 * Don't include generated man pages in extra-source-files (#2189).
12562 * Bumped upper bound for aeson.
12564 * ConTeXt writer: create internal link anchors for Div elements with
12565 identifiers. (This is needed for linked citations to work.)
12567## pandoc 1.14 (2015-05-27)
12571 * Added `commonmark` as input and output format.
12573 * Added `--verbose` flag for debugging output in PDF production (#1840,
12576 * Allow wildcards in `--epub-embed-font` arguments (#1939).
12578 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
12580 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
12581 This is enabled by default for those markdown flavors that
12582 support reading shortcut reference links, namely: `markdown`,
12583 `markdown_strict`, `markdown_github`, `markdown_php`.
12584 If the extension is enabled, the reader parses shortcut reference
12585 links like `[foo]`, and the writer creates such links unless doing
12586 so would cause problems. Users of markdown flavors that support
12587 shortcut reference links should not notice a difference in reading
12588 markdown, but the markdown pandoc produces may differ.
12589 If shortcut links are not desired, the extension can be disabled
12592### Behavior changes
12594 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
12595 A "dirty" TOC is created at the beginning of document.
12596 It can be regenerated after the document has been opened.
12598 * An implicit `--filter pandoc-citeproc` is now triggered only when the
12599 `--bibliography` option is used, and not when the `bibliography`
12600 field in metadata is specified (#1849).
12604 + Reference links with `implicit_header_references` are no longer
12605 case-sensitive (#1606).
12606 + Definition lists no longer require indentation for first line (#2087).
12607 Previously the body of the definition (after the `:` or `~` marker)
12608 needed to be in column 4. This commit relaxes that requirement,
12609 to better match the behavior of PHP Markdown Extra. So, now
12610 this is a valid definition list:
12614 + Resolve a potentially ambiguity with table captions:
12624 Is "bar" a definition, or the caption for the table? We'll count
12625 it as a caption for the table.
12626 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
12627 Markdown Extra. Note: If you have been using headerless pipe tables,
12628 this change may cause existing tables to break.
12629 + Allow pipe tables with header but no body (#2017).
12630 + Allow a digit as first character of a citation key (Matthias Troffaes).
12631 See https://github.com/jgm/pandoc-citeproc/issues/97
12635 + Don't limit includes to `.tex` extension (#1882).
12636 If the extension is not `.tex`, it must be given explicitly in
12637 the `\input` or `\include`.
12641 + Allow numbering in the style file. This allows inherited styles
12642 with numbering (lists) (Jesse Rosenthal).
12646 + Support smart punctuation (Craig Bosma).
12647 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
12648 `:noexport:` tag set are not exported. This mirrors org-mode.
12649 + Put header tags into empty spans (Albert Krewinkel, #2160).
12650 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
12651 Instead of being interpreted as part of the headline, the tags are now
12652 put into the attributes of empty spans. Spans without textual content
12653 won't be visible by default, but they are detectable by filters. They
12654 can also be styled using CSS when written as HTML.
12655 + Generalize code block result parsing (Albert Krewinkel).
12656 Previously, only code blocks were recognized as result blocks;
12657 now, any kind of block can be the result.
12659 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
12660 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
12664 + Add "inline" or "display" class to math spans (#1914).
12665 This allows inline and display math to be styled differently.
12666 + Include raw latex blocks if `--mathjax` specified (#1938).
12667 + Require highlighting-kate >= 0.5.14 (#1903).
12668 This ensures that all code blocks will be wrapped in a `div`
12669 with class `sourceCode`. Also, the default highlighting CSS
12670 now adds `div.sourceCode { x-overflow: auto; }`, which means
12671 that code blocks (even with line numbers) will acquire a scroll
12672 bar on screens too small to display them (e.g. mobile phones).
12673 See also jgm/highlighting-kate#65.
12677 + Use a declaration for tight lists (Jose Luis Duran, Joseph
12678 Harriott). Previously, pandoc hard-coded some commands to make
12679 tight lists in LaTeX. Now we use a custom command instead,
12680 allowing the styling to be changed in a macro in the header.
12681 (Note: existing templates may need to be modified to include
12682 the definition of this macro. See the current template.)
12683 + Beamer output: if the header introducing a slide has the
12684 class `fragile`, add the `[fragile]` option to the slide (#2119).
12686 * MediaWiki writer:
12688 + Use `File:` instead of the deprecated `Image:` for images and
12689 other media files (Greg Rundlett).
12693 + Render a `Div (id,_,_) [Para _]` element as a `para` element
12694 with an `id` attribute. This makes links to citations work in
12695 DocBook with pandoc-citeproc.
12699 + Normalize headings to sequential levels (Nikolay Yakimov).
12700 This is pretty much required by docutils.
12701 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
12702 + Better handling of raw latex inline (#1961). We use
12703 `` :raw-latex:`...` `` and add a definition for this role to
12708 + Remove `linear=no` from cover `itemref` (#1609).
12709 + Don't use `sup` element for epub footnotes (#1995).
12710 Instead, just use an a element with class `footnoteRef`.
12711 This allows more styling options, and provides better results
12712 in some readers (e.g. iBooks, where anything inside the a
12713 tag breaks popup footnotes).
12714 + Take TOC title from `toc-title` metadata field.
12718 + Implemented `FirstParagraph` style (Jesse Rosenthal).
12719 Following the ODT writer, we add the `FirstParagraph` style to the
12720 first text paragraph following an image, blockquote, table, heading,
12721 or beginning of document. This allows it to be styled differently.
12722 The default is for it to be the same as `Normal`.
12723 + Added `BodyText` style (Jesse Rosenthal).
12724 We apply a `BodyText` style to all unstyled paragraphs. This is,
12725 essentially, the same as `Normal`, except that since not everything
12726 inherits from `BodyText` (the metadata won't, for example, or
12727 the headers or footnote numbers), we can change the text in the body
12728 without having to make exceptions for everything. If we do want to
12729 change *everything*, we can still do it through `Normal`.
12730 + Altered `Blockquote` style slightly (Jesse Rosenthal).
12731 Since `BlockQuote` derives from `BodyText`, we just want to specify
12732 by default that it won't indent, regardless of what `BodyText` does.
12733 Note that this will not produce any visible difference in the default
12735 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
12736 + Added a style to figure images (Nikolay Yakimov).
12737 Figures with empty captions use style `Figure`.
12738 Figures with nonempty captions use style `Figure with Caption`, which
12739 is based on `Figure`, and additionally has `keepNext` set.
12743 + Added figure captions (Nikolay Yakimov). The following styles are
12745 `Figure` -- for figure with empty caption),
12746 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
12747 `FigureCaption` (based on `Caption`) -- for figure captions.
12748 Also, `TableCaption` (based on `Caption`) is used for table captions.
12752 * New `Text.Pandoc.Error` module with `PandocError` type
12753 (Matthew Pickering).
12755 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
12756 (Matthew Pickering). This allows better handling of errors.
12758 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
12760 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
12762 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
12763 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
12764 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
12767 * New `Ext_shortcut_reference_links` constructor for `Extension`
12768 (Konstantin Zudov).
12774 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
12775 + Check for tex macros after indented code (#1973).
12776 + Rewrote `charsInBalancedBrackets` for efficiency.
12777 + Make sure a closing `</div>` doesn't get included in a
12778 definition list item (#2127).
12779 + Don't parse bracketed text as citation if it might be a link,
12780 image, or footnote (Nikolay Yakimov).
12781 + Require space after key in mmd title block (#2026, Nikolay
12782 Yakimov). Require space after key-value delimiter colon in mmd title
12784 + Require nonempty value in mmd title block (Nikolay Yakimov).
12785 + Disable all metadata block extensions when parsing
12786 metadata field values (#2026, Nikolay Yakimov). Otherwise we
12787 could get a mmd title block inside YAML metadata, for example.
12791 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
12792 + Handle tables with `<th>` in body rows (#1859, mb21).
12793 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
12794 to see if the input starts with `<!--`. If not, it's bogus comment
12795 mode and we fail `htmlTag`.
12796 + Handle `base` tag; if it has an `href` value, this is added to
12797 all relative URLs in links and images.
12801 + Look inside "info" elements for section titles (#1931).
12805 + Parse images in deprecated vml format (Jesse Rosenthal).
12806 + Allow sub/superscript verbatims (Jesse Rosenthal).
12807 Verbatim usually shuts off all other run styles, but we don't want it
12808 to shut off sub/superscript.
12812 + Handle `tabular*` environment (#1850).
12813 Note that the table width is not actually parsed or taken into
12814 account, but pandoc no longer chokes on it.
12815 + Ignore options in `\lstinline` rather than raising error (#1997).
12816 + Add some test cases for simple tables (Mathias Schenner).
12817 + Handle valign argument in tables (Mathias Schenner) (currently
12818 we just ignore this).
12819 + Allow non-empty colsep in tables (Mathias Schenner).
12820 The `tabular` environment allows non-empty column separators
12821 with the "@{...}" syntax. Previously, pandoc would fail to
12822 parse tables if a non-empty colsep was present. With this
12823 commit, these separators are still ignored, but the table gets
12824 parsed. A test case is included.
12825 + Recognize `\newpage` as a block command.
12826 + Allow block content in `\title{}` (#2001).
12827 + Check for block-level newcommand aliases in blockCommand (Nikolay
12829 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
12830 + Properly gobble spaces after `\\` (#2007).
12834 + Handle newlines in table cells, and empty cells (#1919).
12838 + Allow image links with non-image targets (Hans-Peter Deifel).
12839 This matches behavior of Org-Mode for links like
12840 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
12844 + Don't print empty id attributes (thanks to Steve Horne).
12848 + Fixed list-style-type for numbered example lists.
12849 Should be "decimal," not "example" (#1902).
12850 + Do not omit missing `alt` attribute on `img` tag (#1131,
12852 + Allow multiple colgroups in table (#2122).
12853 + In revealjs, ensure that lists in speaker notes don't add "fragment"
12854 classes, which can cause additional keypresses to be needed to
12855 advance a slide (#1394).
12859 + Don't escape `$` in URL (#1913).
12860 + Don't use listings in headers (Matthew Pickering, #1963).
12861 + Recognize book documentclass if set in metadata (#1971).
12862 This sets `--chapters` implicitly if the documentclass in metadata
12863 is a book documentclass. Previously this was done only if a book
12864 documentclass was set in a variable.
12865 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
12866 + Make `mainlang` work when `lang` is in metadata (#2174).
12870 + Fix wrapping by using breakable spaces (Tim Lin).
12874 + Fixed toc depth in RST writer. Previously the depth was being
12875 rendered as a floating point number with a decimal point.
12879 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
12880 compatibility with original Markdown. We now escape `<` and `>`
12881 with entities. Also, we now backslash-escape square brackets.
12882 + Avoid introducing spurious list items through wrapping (#1946).
12883 + Don't emit span tags if plain or raw HTML disabled.
12885 * MediaWiki writer:
12887 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
12891 + Insert some needed blank lines (#1860).
12892 + Avoid wrapping after list marker (#1858).
12896 + Properly handle internal links to IDs in spans, divs (#1884).
12897 + Use plain writer for metadata dc: fields (#2121).
12898 This gives better results when we have, e.g. multiple paragraphs.
12899 Note that tags aren't allowed in these fields.
12900 + Properly handle image links without an extension (#1855).
12901 + Improved chapter splitting and internal link rewriting (#1887,
12902 #2162, #2163). This will ensure that internal links work and
12903 that the references section produced by pandoc-citeproc is
12904 in its own chapter.
12905 + Fixed handling of svg images (#2183).
12909 + Better handling of raw blocks and inlines (#1951).
12910 Previously these were always escaped and printed verbatim.
12911 Now they are ignored unless the format is `icml`, in which
12912 case they are passed through unescaped.
12913 + Fixed image URIs in ICML output (gohai).
12917 + Raise error if loadstring returns an error status.
12918 + Raise `PandocLuaException` instead of using 'error'.
12919 Eventually we'll change the return type so that no exception
12920 is involved, but at least this can be trapped.
12921 + Use UTF-8 aware bytestring conversion.
12922 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
12923 Also factored out ByteString, since it's only used as an intermediate
12928 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
12929 + Filter out illegal XML characters (#1992, Matthew Pickering).
12930 + Added `noProof` to docx syntax highlighting `SourceCode` style.
12931 + Added footnotes id -1 and 0 (Jesse Rosenthal).
12932 Word uses, by default, footnotes with id -1 and 0 for separators. If a
12933 user modifies `reference.docx`, they will end up with a `settings.xml`
12934 file that references these footnotes, but no such footnotes in the
12935 document. This will produce a corruption error. Here we add these to the
12936 document and `settings.xml` file, so future modifications won't break
12938 + Handle lists correctly inside table cells (Jesse Rosenthal).
12939 Previously we didn't transform lists inside table cells.
12940 + Set firstRow information in tables (Nikolay Yakimov).
12941 + Don't replace `SourceCode` style in `reference.docx` if it is defined
12942 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
12943 any `SourceCode` and `*Tok` styles in `reference.docx`.
12944 + Attempt to match international style names (#1607, Nikolay Yakimov).
12945 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
12946 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
12947 `Definition`, `First Paragraph`.
12948 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
12949 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
12950 `Footnote Ref -> Footnote Reference`.
12951 + Added `Caption` style (Nikolay Yakimov).
12952 + Changed these styles' inheritance (Nikolay Yakimov):
12953 `Image Caption <- Caption`, `Table Caption <- Caption`.
12954 + Remove `SourceCode` style from `reference.docx` (#1872).
12955 This is added automatically by the docx writer.
12956 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
12958 * `Text.Pandoc.PDF`
12960 + Don't suggest "Try xelatex" if xelatex already in use (mb21, #1832).
12961 + More comprehensible errors on image conversion (#2067).
12962 EPS can't be supported without shelling out to something like
12963 ImageMagick, but at least we can avoid mysterious error messages.
12965 * `Text.Pandoc.Shared`:
12967 + Make safeRead safe (#1801, Matthew Pickering).
12968 + Added `mapLeft`, `hush` (Matthew Pickering).
12970 * `Text.Pandoc.Pretty`:
12972 + Remove partial function (Matthew Pickering).
12974 * `Text.Pandoc.SelfContained`:
12976 + Add `;charset=utf-8` to script mime type if missing (#1842).
12977 + Improved building of data URIs (#1940). Now base64 is used except
12978 for `text/*` mime types.
12979 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
12980 + Properly handle data URIs in css urls (#2129).
12981 Use a proper CSS parser (adds dependency on `text-css`).
12983 * `Text.Pandoc.UTF8`:
12985 + Better handling of bare CRs in input files (#2132).
12986 Previously we just stripped them out; now we convert
12987 other line ending styles to LF line endings.
12989 * `Text.Pandoc.ImageSize`:
12991 + Fixed some exif header parsing bugs (#1834).
12992 + Make imageSize return an Either, not a Maybe (#1834).
12993 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
12994 parse failure (rather than `error`).
12995 + Improved warnings when image size can't be determined.
12996 + Removed error landmines (Matthew Pickering).
12998 * Added woff2 to MIME types (Alfred Wechselberger).
13000 * pandoc: When a binary input format is used, warn that file
13001 arguments past the first one are being ignored (Matthew Pickering).
13003### Template changes
13007 + Degrade gracefully if `\paragraph` not defined.
13008 + Include `grffile` together with `graphicx` (#2074).
13009 This properly handles filenames containing spaces and dots.
13010 + Redefine `\paragraph`, `\subparagraph`... to behave more
13011 like section headers (#1658).
13012 + Import hyperref before polyglossia to avoid an error with xelatex,
13013 "please load package hyperref before bidi package" (Nick Bart).
13014 + Added `toccolor` variable to control link color in toc (Kaixhin).
13016 * LaTeX, Beamer templates:
13018 + Provide `\tightlist`, which is now used by the LaTeX writer.
13019 + Use polyglossia in beamer (#85).
13020 + Use `bibliography` instead of `biblio-files`
13021 (#1661). Also use `\addbibresource` instead of `\bibliography` for
13023 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
13024 variable that is derived from a comma-separated list in `lang`;
13025 the last language is `mainlang` and the others are `otherlang`.
13029 + Use `div`, not `p`, for "rights" on title page.
13030 + Added header-includes, include-before, include-after (#1987).
13032 * OpenDocument template:
13034 + Use `text:p` instead of `text:h` for title.
13035 Using `text:h` causes problems with numbering. Closes #2059.
13036 Thanks to @nkalvi for diagnosing this.
13038 * reveal.js template:
13040 + Link to non-minified css, js. The minified versions no longer
13041 ship with the library.
13042 + Correctly include style CSS (#1949).
13043 + New configurable options options: `center`, `maxScale`, `slideNuber`
13044 (Dmitry Smirnov, pandoc-templates#89).
13045 + Moved custom CSS after theme. This allows custom CSS to modify
13046 themes, instead of being replaced by them.
13047 + Allow `center` to be set to false.
13049### Under the hood improvements
13051 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
13052 Yakimov). Instead the repository now includes the component text files,
13053 and the zipped binaries are built from these using a helper
13054 program, `make-reference-files`. This should make maintenance of
13055 these components easier going forward.
13057 * `Text.Pandoc.Parsing`:
13059 + Added new `<+?>` combinator (Nikolay Yakimov).
13060 + Added `stateHeaderKeys` to `ParserState`.
13062 * `make_deb.sh` fixes:
13064 + Detect architecture.
13065 + Add Installed-Size to debian package control file (#1900).
13066 + Use `fakeroot` to get permissions right.
13067 + Use `mkdir` and `cp` instead of `install`.
13068 + Set permissions of directories to 755.
13069 + Install in `/usr` rather than `/usr/local`.
13070 + Compress man pages.
13071 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
13073 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
13074 to assist with transition to `time` 1.5.
13076 * Updated CONTRIBUTING.md with information about issue tags (Matthew
13079 * Updated travis installs to the new sudo-less syntax (Tim Lin).
13081 * Updated dependency version bounds.
13083 * EPUB tests: don't use `joinPath`, which varies across platforms.
13084 Instead, use a forward-slash to join paths, regardless of the
13085 platform. This matches the way `MediaBag` now works.
13087 * Clarify JSON input and output in usage message (Caleb McDaniel).
13089 * Improved INSTALL instructions.
13091 * Always build man pages. Removed make-pandoc-man-pages flag.
13093 * Makefile: removed man target, now that we generate man pages by default.
13097 + Fixed typos (J. Lewis Muir).
13098 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
13099 + Added note on in-field markup in biblio databases (Nick Bart).
13100 + Fixed misleading example of raw HTML block.
13101 + Various minor formatting and consistency fixes for the program
13102 options (Andreas Lööw).
13103 + Made definition lists for options all "loose" for consistency.
13104 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
13105 `--bib2json` and `--bib2yaml` options (Nick Bart).
13106 + Removed obsolete reference to `mods2yaml` (Nick Bart).
13107 + Added section on syntax highlighting.
13108 + Documented `toccolor` variable.
13110## pandoc 1.13.2.1 (2015-04-15)
13112 * Updated to build with ghc 7.10.1.
13114 * Bumped package upper bounds for filepath, blaze-html, blaze-markup.
13116## pandoc 1.13.2 (2014-12-20)
13118 * TWiki Reader: add new new twiki reader (API chaneg, Alexander Sulfrian).
13122 + Better handling of paragraph in div (#1591).
13123 Previously text that ended a div would be parsed as Plain
13124 unless there was a blank line before the closing div tag.
13125 + Don't treat a citation as a reference link label (#1763).
13126 + Fix autolinks with following punctuation (#1811).
13127 The price of this is that autolinked bare URIs can no longer
13128 contain `>` characters, but this is not a big issue.
13129 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
13130 + Allow `startnum` to work without `fancy_lists`. Formerly
13131 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
13133 * RST reader (all Daniel Bergey):
13135 + Parse quoted literal blocks (#65). RST quoted literal blocks are
13136 the same as indented literal blocks (which pandoc already supports)
13137 except that the quote character is preserved in each line.
13138 + Parse RST class directives. The class directive accepts one or more
13139 class names, and creates a Div value with those classes. If the
13140 directive has an indented body, the body is parsed as the children of
13141 the Div. If not, the first block following the directive is made a
13142 child of the Div. This differs from the behavior of rst2xml, which
13143 does not create a Div element. Instead, the specified classes are
13144 applied to each child of the directive. However, most Pandoc Block
13145 constructors to not take an Attr argument, so we can't duplicate this
13147 + Warn about skipped directives.
13148 + Literal role now produces Code. Code role should have "code" class.
13149 + Improved support for custom roles
13151 - Added `sourceCode` to classes for `:code:` role, and anything
13152 inheriting from it.
13153 - Add the name of the custom role to classes if the Inline
13154 constructor supports Attr.
13155 - If the custom role directive does not specify a parent role,
13156 inherit from the `:span:` role.
13158 This differs somewhat from the `rst2xml.py` behavior. If a custom
13159 role inherits from another custom role, Pandoc will attach both
13160 roles' names as classes. `rst2xml.py` will only use the class of
13161 the directly invoked role (though in the case of inheriting from a
13162 `:code:` role with a `:language:` defined, it will also provide the
13163 inherited language as a class).
13164 + Warn about ignored fields in role directives.
13168 + Parse label after caption into a span instead of
13169 inserting an additional paragraph of bracketed text (#1747).
13170 + Parse math environments as inline when possible (#1821).
13171 + Better handling of `\noindent` and `\greektext` (#1783).
13172 + Handle `\texorpdfstring` more gracefully.
13173 + Handle `\cref` and `\sep` (Wikiwide).
13174 + Support `\smartcite` and `\Smartcite` from biblatex.
13178 + Retain display type of MathML output (#1719, Matthew Pickering).
13179 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
13180 + Make `embed` tag either block or inline (#1756).
13184 + Handle `keycombo`, `keycap` (#1815).
13185 + Get string content in inner tags for literal elements (#1816).
13186 + Handle `menuchoice` elements better, with a `>` between (#1817).
13187 + Include `id` on section headers (#1818).
13188 + Document/test "type" as implemented (Brian O'Sullivan).
13189 + Add support for calloutlist and callout (Brian O'Sullivan).
13190 We treat a calloutlist as a bulleted list. This works well in practice.
13191 + Add support for `classname` (Bryan O'Sullivan).
13195 + Fix window path for image lookup (Jesse Rosenthal).
13196 Don't use os-sensitive "combine", since we always want the paths in our
13197 zip-archive to use forward-slashes.
13198 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
13199 When users number their headers, Word understands that as a single item
13200 enumerated list. We make the assumption that such a list is, in fact,
13202 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
13203 There could be new top-level headers after making lists, so we have to
13204 rewrite links after that.
13205 + Use polyglot header list (Jesse Rosenthal).
13206 We're just keeping a list of header formats that different languages
13207 use as their default styles. At the moment, we have English, German,
13208 Danish, and French. We can continue to add to this.
13209 This is simpler than parsing the styles file, and perhaps less
13210 error-prone, since there seems to be some variations, even within a
13211 language, of how a style file will define headers.
13212 + Remove header class properly in other langs (Jesse Rosenthal).
13213 When we encounter one of the polyglot header styles, we want to remove
13214 that from the par styles after we convert to a header. To do that, we
13215 have to keep track of the style name, and remove it appropriately.
13216 + Account for external link URLs with anchors. Previously, if a URL
13217 had an anchor, the reader would incorrectly identify it as an
13218 internal link and return only the anchor as URL. (Caleb McDaniel)
13219 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
13223 + Added state changing blanklines (Jesse Rosenthal).
13224 This allows us to emphasize at the beginning of a new paragraph (or, in
13225 general, after blank lines).
13226 + Fixed bug with bulleted lists:
13232 was being parsed as a list, even though an unindented `*`
13233 should make a heading. See
13234 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
13235 + Org reader: absolute, relative paths in link (#1741, Albert
13236 Krewinkel). The org reader was too restrictive when parsing links;
13237 some relative links and links to files given as absolute paths
13238 were not recognized correctly.
13239 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
13240 This is important for use in gitit, which uses empty links
13242 + Respect indent when parsing Org bullet lists (#1650, Timothy
13243 Humphries). Fixes issue with top-level bullet list parsing.
13244 + Fix indent issue for definition lists (Timothy Humphries,
13245 see #1650, #1698, #1680).
13246 + Parse multi-inline terms correctly in definition list (#1649,
13247 Matthew Pickering).
13248 + Fix rules for emphasis recognition (Albert Krewinkel).
13249 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
13250 strings. This is wrong, as `,` and `'` are forbidden border chars and
13251 may not occur on the inner border of emphasized text.
13252 + Drop COMMENT document trees (Albert Krewinkel).
13253 Document trees under a header starting with the word `COMMENT` are
13254 comment trees and should not be exported. Those trees are dropped
13256 + Properly handle links to `file:target` (Albert Krewinkel).
13257 Org links like `[[file:target][title]]` were not handled correctly,
13258 parsing the link target verbatim. The org reader is changed such that
13259 the leading `file:` is dropped from the link target (see #756, #1812).
13260 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
13261 Org supports special symbols which can be included using LaTeX syntax,
13262 but are actually MathML entities. Examples for this are
13263 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
13264 or `\copy` (the copyright sign ©)
13268 + URI handling improvements. Now we outsource most of the work to
13269 `fetchItem'`. Also, do not include queries in file extensions (#1671).
13273 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
13274 + Handle consecutive linebreaks (#1733).
13275 + Protect graphics in headers (Jesse Rosenthal).
13276 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
13277 + Put `~` before header in list item text (Jesse Rosenthal).
13278 Because of the built-in line skip, LaTeX can't handle a section header
13279 as the first element in a list item.
13280 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
13281 + Better handling of display math in simple tables (#1754).
13282 We convert display math to inline math in simple tables,
13283 since LaTeX can't deal with display math in simple tables.
13284 + Escape spaces in code (#1694, Bjorn Buckwalter).
13286 * MediaWiki writer:
13288 + Fixed links with URL = text. Previously these were rendered as bare
13289 words, even if the URL was not an absolute URL (#1825).
13293 + Don't force all citations into footnotes.
13297 + Add blankline at end of output (#1732, Matthew Pickering).
13301 + Ensure blank line after figure.
13302 + Avoid excess whitespace after last list item (#1777).
13303 + Wrap line blocks with spaces before continuations (#1656).
13304 + Fixed double-rendering of footnotes in RST tables (#1769).
13308 + Better handling of block quotes. This change ensures that
13309 multiple paragraph blockquotes are rendered using native `>`
13310 rather than as HTML (#1738).
13311 + Fix external images (#1739). Preface relative links with ":",
13312 absolute URIs without. (Timothy Humphries)
13316 + Use protocol-relative URL for mathjax.
13317 + Put newline btw img and caption paragraph.
13318 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
13319 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
13320 This adds `KaTeX` to `HTMLMathMethod` (API change).
13321 + Don't double render when `email-obfuscation=none` (#1625, Matthew
13323 + Make header attributes work outside top level (#1711).
13324 Previously they only appeared on top level header elements.
13325 Now they work e.g. in blockquotes.
13329 + Correctly handle images without extensions (#1729).
13330 + Strip querystring in ODT write (#1682, Todd Sifleet).
13334 + Add newline to output.
13338 + Don't add `sourceURL` to absolute URIs (#1669).
13339 + Don't use unsupported `opf:title-type` for epub2.
13340 + Include "landmarks" section in nav document for epub3 (#1757).
13341 + Removed playOrder from navpoint elements in ncx file (#1760).
13342 These aren't required, and they make manual modification of epubs
13344 + Extract title even from structured title.
13345 + Don't include nav node in spine unless `--toc` was requested.
13346 Previously we included it in the spine with `linear="no"`, leading
13347 to odd results in some readers (#1593).
13348 + Fixed absolute URI detection (#1672).
13349 + Correctly resolve relative URIs (#1671).
13350 + Use regular page template for `nav.xhtml`, including doctype (#1759).
13354 + Put docx table captions above tables (#1641, Nikolay Yakimov).
13355 + Get the page width from the reference docx file, and use
13356 it to scale images that are too large to fit (Grégory Bataille).
13357 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
13358 are inferred based on `<w:name val="heading #">` fallback, if there
13359 are no en-US "Heading#" styles
13360 + Look in user data dir for archive `reference.docx`.
13361 + Renumber header and footer relationships to avoid collisions (Jesse
13362 Rosenthal). We previously took the old relationship names of the
13363 headers and footer in secptr. That led to collisions. We now make
13364 a map of available names in the relationships file, and then rename
13369 + Add function toLabel (Mark Szepieniec).
13370 This function can be used to sanitize reference labels so that
13371 they do not contain any of the illegal characters \#[]",{}%()|= .
13372 Currently only Links have their labels sanitized, because they
13373 are the only Elements that use passed labels.
13375 * `Text.Pandoc.Shared`:
13377 + Moved import of `toChunks` outside of CPP conditional (#1590).
13378 + Fix `inDirectory` to reset to the original directory in case
13379 an exception occurs (Freiric Barral).
13383 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
13384 Thanks to bluebirch.
13385 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
13387 + LaTeX template: Add shorthands=off to babel options (#1648).
13388 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
13389 This aids styling, making it possible for example to set 0 margins
13390 on the title page (#1758).
13391 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
13392 Previously we just expected 'title', 'subtitle', 'author', 'date'.
13393 Now we still support those, but also support the format recommended
13394 for epub metadata in the pandoc README:
13401 text: An investigation of metadata
13409 text: doi:10.234234.234/33
13410 publisher: My Press
13411 rights: (c) 2007 John Smith, CC BY-NC
13414 * `Text.Pandoc.Templates.getDefaultTemplate`:
13415 don't fail when called with "fb2" (#1660).
13417 * `Text.Pandoc.Parsing`:
13419 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
13420 For example: `$x = \text{the $n$th root of $y$}` (#1677).
13421 + Change `parseFromString` to fail if not all input is consumed.
13422 (Matthew Pickering)
13423 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
13424 used by more readers (API change, Daniel Bergey).
13426 * `Text.Pandoc.Pretty`:
13428 + Improve performance of `realLength` (Matthew Pickering).
13429 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
13430 were getting at the end of markdown fragments (as well as rst, org,
13433 * `Text.Pandoc.MIME`:
13435 + Add mime type for WebVTT (Jason Ronallo).
13436 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
13437 This is needed for epub3 validation.
13439 * `Text.Pandoc.MediaBag`:
13441 + Fix Windows specific path problems (#1597).
13443 * `Text.Pandoc.Shared`:
13445 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
13447 * Link the test suite using `-threaded`.
13448 This allows the test suite to be run using `+RTS -N`.
13450 * Added `network` dependency under `network-uri` flag in test section.
13452 * Give better error messages when someone tries to convert from
13453 pdf, doc, odt (#1683).
13455 * Added `track` to list of tags treated by `--self-contained` (#1664).
13458## pandoc 1.13.1 (2014-08-30)
13460 * Fixed `--self-contained` with Windows paths (#1558).
13461 Previously `C:\foo.js` was being wrongly interpreted as a URI.
13463 * HTML reader: improved handling of tags that can be block or inline.
13464 Previously a section like this would be enclosed in a paragraph,
13465 with RawInline for the video tags (since video is a tag that can
13466 be either block or inline):
13468 <video controls="controls">
13469 <source src="../videos/test.mp4" type="video/mp4" />
13470 <source src="../videos/test.webm" type="video/webm" />
13472 The videos can not be played back on your system.<br/>
13473 Try viewing on Youtube (requires Internet connection):
13474 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
13479 This change will cause the video and source tags to be parsed
13480 as RawBlock instead, giving better output.
13481 The general change is this: when we're parsing a "plain" sequence
13482 of inlines, we don't parse anything that COULD be a block-level tag.
13486 + Be sensitive to user styles. Note that "Hyperlink" is
13487 "blacklisted," as we don't want the default underline styling to be
13488 inherited by all links by default (Jesse Rosenthal).
13489 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
13490 This makes to docx reader's native output fit with the way the markdown
13491 reader understands its markdown output.
13495 + Header is now parsed only if standalone flag is set (Matthew Pickering).
13496 + The header is now parsed as meta information. The first line is the
13497 `title`, the second is the `author` and third line is the `date`
13498 (Matthew Pickering).
13499 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
13500 + Fixed crash when reading from stdin.
13502 * Textile writer: Extended the range of cases where native textile
13503 tables will be used (as opposed to raw HTML): we now handle any
13504 alignment type, but only for simple tables with no captions.
13506 * EPUB writer: Don't use page-progression-direction in EPUB2, which
13507 doesn't support it. Also, if page-progression-direction not specified
13508 in metadata, don't include the attribute even in EPUB3; not including it
13509 is the same as including it with the value "default", as we did before.
13512 * Org writer: Accept example lines with indentation at the beginning
13517 + Refactor to use Reader monad (Matthew Pickering).
13518 + Avoid using raw HTML in table cells; instead, use `\\`
13519 instead of newlines (Jesse Rosenthal).
13520 + Properly handle HTML table cell alignments, and use spacing
13521 to make the tables look prettier (#1566).
13525 + Bibliography entries get `Bibliography` style (#1559).
13526 + Implement change tracking (Jesse Rosenthal).
13530 + Fixed a bug that caused a table caption to repeat across all pages
13532 + Improved vertical spacing in tables and made it customizable using
13533 standard lengths set by booktab. See
13534 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
13536 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
13537 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
13538 + Made horizontal rules more flexible (Jose Luis Duran).
13540 * Text.Pandoc.MIME:
13542 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
13543 Code cleanups (Artyom Kazak).
13547 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
13550 * Improved OSX build procedure.
13552 * Added `network-uri` flag, to deal with split of `network-uri` from
13555 * Fix build dependencies for the `trypandoc` flag, so that they are
13556 ignored if `trypandoc` flag is set to False (Gabor Pali).
13558 * Updated README to remove outdated claim that `--self-contained`
13559 looks in the user data directory for missing files.
13561## pandoc 1.13.0.1 (2014-08-17)
13565 + Fixed regression which bungled list numbering (#1544), causing
13566 all lists to appear as basic ordered lists.
13567 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
13568 Added a property to all table rows where the sum of column widths
13569 is specified in pct (fraction of 5000). This helps persuade Word
13570 to lay out the table with the widths we specify.
13572 * Fixed a bug in Windows 8 which caused pandoc not to find the
13573 `pandoc-citeproc` filter (#1542).
13575 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
13576 Most significantly, the reader now uses Builder, leading to some
13577 performance improvements.
13579 * HTML reader: Parse appropriately styled span as SmallCaps.
13581 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
13582 `superscript`, and `subscript` extensions, respectively, are
13583 deactivated (#1127).
13585 * Added `trypandoc` flag to build CGI executable used in the online
13588 * Makefile: Added 'quick', 'osxpkg' targets.
13590 * Updated README in templates to indicate templates license.
13591 The templates are dual-licensed, BSD3 and GPL2+.
13593## pandoc 1.13 (15 August 2014)
13597 * Added `docx` as an input format (Jesse Rosenthal). The docx
13598 reader includes conversion of native Word equations to pandoc
13599 LaTeX `Math` elements. Metadata is taken from paragraphs at the
13600 beginning of the document with styles `Author`, `Title`, `Subtitle`,
13601 `Date`, and `Abstract`.
13603 * Added `epub` as an input format (Matthew Pickering). The epub
13604 reader includes conversion of MathML to pandoc LaTeX `Math`
13607 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
13608 Txt2tags is a lightweight markup format described at
13609 <http://txt2tags.org/>.
13611 * Added `dokuwiki` as an output format (Clare Macrae).
13613 * Added `haddock` as an output format.
13615 * Added `--extract-media` option to extract media contained in a zip
13616 container (docx or epub) while adjusting image paths to point to the
13619 * Added a new markdown extension, `compact_definition_lists`, that
13620 restores the syntax for definition lists of pandoc 1.12.x, allowing
13621 tight definition lists with no blank space between items, and
13622 disallowing lazy wrapping. (See below under behavior changes.)
13624 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
13626 * Added extensions `native_spans` and `native_divs` to activate
13627 parsing of material in HTML span or div tags as Pandoc Span
13628 inlines or Div blocks.
13630 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
13631 Textile, and MediaWiki readers. This is an option intended
13632 for debugging parsing problems; ordinary users should not need
13635### Behavior changes
13637 * Changed behavior of the `markdown_attribute` extension, to bring
13638 it in line with PHP markdown extra and multimarkdown. Setting
13639 `markdown="1"` on an outer tag affects all contained tags,
13640 recursively, until it is reversed with `markdown="0"` (#1378).
13642 * Revised markdown definition list syntax (#1429). Both the reader
13643 and writer are affected. This change brings pandoc's definition list
13644 syntax into alignment with that used in PHP markdown extra and
13645 multimarkdown (with the exception that pandoc is more flexible about
13646 the definition markers, allowing tildes as well as colons). Lazily
13647 wrapped definitions are now allowed. Blank space is required
13648 between list items. The space before a definition is used to determine
13649 whether it is a paragraph or a "plain" element. **WARNING: This change
13650 may break existing documents!** Either check your documents for
13651 definition lists without blank space between items, or use
13652 `markdown+compact_definition_lists` for the old behavior.
13654 * `.numberLines` now works in fenced code blocks even if no language
13655 is given (#1287, jgm/highlighting-kate#40).
13657 * Improvements to `--filter`:
13659 + Don't search PATH for a filter with an explicit path.
13660 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
13661 the system path, even if there was a `caps.py` in the working directory.
13662 + Respect shebang if filter is executable (#1389).
13663 + Don't print misleading error message.
13664 Previously pandoc would say that a filter was not found,
13665 even in a case where the filter had a syntax error.
13669 + Parse `div` and `span` elements even without `--parse-raw`,
13670 provided `native_divs` and `native_spans` extensions are set.
13671 Motivation: these now generate native pandoc Div and Span
13672 elements, not raw HTML.
13673 + Parse EPUB-specific elements if the `epub_html_exts`
13674 extension is enabled. These include `switch`, `footnote`,
13675 `rearnote`, `noteref`.
13679 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
13680 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
13681 `\cite{Coffee}`), can be used without any further escaping (Albert
13684 * Textile reader and writer:
13686 + The `raw_tex` extension is no longer set by default. You can
13687 enable it with `textile+raw_tex`.
13691 + Support `equation`, `informalequation`, `inlineequation` elements with
13692 `mml:math` content. This is converted into LaTeX and put into a Pandoc
13695 * Revised `plain` output, largely following the style of Project
13698 + Emphasis is rendered with `_underscores_`, strong emphasis
13700 + Headings are rendered differently, with space to set them off,
13701 not with setext style underlines. Level 1 headers are ALL CAPS.
13702 + Math is rendered using unicode when possible, but without the
13703 distracting emphasis markers around variables.
13704 + Footnotes use a regular `[n]` style.
13708 + Horizontal rules are now a line across the whole page.
13709 + Prettier pipe tables. Columns are now aligned (#1323).
13710 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
13711 no longer emits any raw HTML, including span and div tags
13712 generated by Span and Div elements.
13713 + Use span with style for `SmallCaps` (#1360).
13717 + Autolinks now have class `uri`, and email autolinks have class
13718 `email`, so they can be styled.
13722 + Document formatting is carried over from `reference.docx`.
13723 This includes margins, page size, page orientation, header,
13724 and footer, including images in headers and footers.
13725 + Include abstract (if present) with `Abstract` style (#1451).
13726 + Include subtitle (if present) with `Subtitle` style, rather
13727 than tacking it on to the title (#1451).
13731 + Write empty span elements with an id attribute as org anchors.
13732 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
13736 + Put table captions above tables, to match the conventional
13737 standard. (Previously they appeared below tables.)
13738 + Use `\(..\)` instead of `$..$` for inline math (#1464).
13739 + Use `\nolinkurl` in email autolinks. This allows them to be styled
13740 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
13741 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
13742 curly quotes in the PDF output (#1364).
13743 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
13744 do not appear before the overlays in which their markers appear
13746 + Don't produce a `\label{..}` for a Div or Span element. Do produce
13747 a `\hyperdef{..}` (#1519).
13751 + If the metadata includes `page-progression-direction` (which can be
13752 `ltr` or `rtl`, the `page-progression-direction` attribute will
13753 be set in the EPUB spine (#1455).
13755 * Custom lua writers:
13757 + Custom writers now work with `--template`.
13758 + Removed HTML header scaffolding from `sample.lua`.
13759 + Made citation information available in lua writers.
13761 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
13762 adjacent `RawBlock`s when possible.
13766 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
13768 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
13771 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
13774 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
13777 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
13779 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
13780 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
13781 readers return a pair of a `Pandoc` document and a `MediaBag` with
13782 the media resources they contain. This can be extracted using
13783 `--extract-media`. Writers that incorporate media (PDF, Docx,
13784 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
13785 for resources in the `MediaBag` generated by the reader, in addition to
13786 the file system or web.
13788 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
13789 Renamed `readTeXMath'` to `texMathToInlines`.
13791 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
13792 `readers` now associates names of readers with `Reader`
13793 structures. This allows inclusion of readers, like the docx
13794 reader, that take binary rather than textual input.
13796 * `Text.Pandoc.Shared`:
13798 + Added `capitalize` (Artyom Kazak), and replaced uses of
13799 `map toUpper` (which give bad results for many languages).
13800 + Added `collapseFilePath`, which removes intermediate `.` and
13801 `..` from a path (Matthew Pickering).
13802 + Added `fetchItem'`, which works like `fetchItem` but searches
13803 a `MediaBag` before looking on the net or file system.
13804 + Added `withTempDir`.
13805 + Added `removeFormatting`.
13806 + Added `extractSpaces` (from HTML reader) and generalized its type
13807 so that it can be used by the docx reader (Matthew Pickering).
13809 + Added `normalizeInlines`, `normalizeBlocks`.
13810 + `normalize` is now `Pandoc -> Pandoc` instead of
13811 `Data a :: a -> a`. Some users may need to change their uses of
13812 `normalize` to the newly exported `normalizeInlines` or
13815 * `Text.Pandoc.Options`:
13817 + Added `writerMediaBag` to `WriterOptions`.
13818 + Removed deprecated and no longer used `readerStrict` in
13819 `ReaderOptions`. This is handled by `readerExtensions` now.
13820 + Added `Ext_compact_definition_lists`.
13821 + Added `Ext_epub_html_exts`.
13822 + Added `Ext_native_divs` and `Ext_native_spans`.
13823 This allows users to turn off the default pandoc behavior of
13824 parsing contents of div and span tags in markdown and HTML
13825 as native pandoc Div blocks and Span inlines.
13827 * `Text.Pandoc.Parsing`:
13829 + Generalized `readWith` to `readWithM` (Matthew Pickering).
13830 + Export `runParserT` and `Stream` (Matthew Pickering).
13831 + Added `HasQuoteContext` type class (Matthew Pickering).
13832 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
13833 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
13834 `applyMacros` (Matthew Pickering).
13835 + Added custom `token` (Matthew Pickering).
13836 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
13837 track of the ending tag we're waiting for when we're parsing inside
13839 + Added `stateMarkdownAttribute` to `ParserState`. This is used
13840 to keep track of whether the markdown attribute has been set in
13842 + Generalized type of `registerHeader`, using new type classes
13843 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
13844 Pickering). These allow certain common functions to be reused
13845 even in parsers that use custom state (instead of `ParserState`),
13846 such as the MediaWiki reader.
13847 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
13848 and generalized their types (Matthew Pickering).
13850 * `Text.Pandoc.Pretty`:
13853 + Added `blanklines`, which guarantees a certain number of blank lines
13860 + Fixed parsing of indented code in list items. Indented code
13861 at the beginning of a list item must be indented eight spaces
13862 from the margin (or edge of the container), or four spaces
13863 from the list marker, whichever is greater.
13864 + Fixed small bug in HTML parsing with `markdown_attribute`, which
13865 caused incorrect tag nesting for input like
13866 `<aside markdown="1">*hi*</aside>`.
13867 + Fixed regression with intraword underscores (#1121).
13868 + Improved parsing of inline links containing quote characters (#1534).
13869 + Slight rewrite of `enclosure`/`emphOrStrong` code.
13870 + Revamped raw HTML block parsing in markdown (#1330).
13871 We no longer include trailing spaces and newlines in the
13872 raw blocks. We look for closing tags for elements (but without
13873 backtracking). Each block-level tag is its own `RawBlock`;
13874 we no longer try to consolidate them (though `--normalize` will do so).
13875 + Combine consecutive latex environments. This helps when you have
13876 two minipages which can't have blank lines between them (#690, #1196).
13877 + Support smallcaps through span.
13878 `<span style="font-variant:small-caps;">foo</span>` will be
13879 parsed as a `SmallCaps` inline, and will work in all output
13880 formats that support small caps (#1360).
13881 + Prevent spurious line breaks after list items (#1137). When the
13882 `hard_line_breaks` option was specified, pandoc would formerly
13883 produce a spurious line break after a tight list item.
13884 + Fixed table parsing bug (#1333).
13885 + Handle `c++` and `objective-c` as language identifiers in
13886 github-style fenced blocks (#1318).
13887 + Inline math must have nonspace before final `$` (#1313).
13891 + Handle comments at the end of tables. This resolves the issue
13892 illustrated in <http://stackoverflow.com/questions/24009489>.
13893 + Correctly handle table rows with too few cells. LaTeX seems to
13894 treat them as if they have empty cells at the end (#241).
13895 + Handle leading/trailing spaces in `\emph` better.
13896 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
13897 so that we don't get things like `* hi *` in markdown output.
13898 Also applies to `textbf` and some other constructions (#1146).
13899 + Don't assume preamble doesn't contain environments (#1338).
13900 + Allow (and discard) optional argument for `\caption` (James Aspnes).
13904 + Fixed major parsing problem with HTML tables. Table cells were
13905 being combined into one cell (#1341).
13906 + Fixed performance issue with malformed HTML tables.
13907 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
13908 + Allow space between `<col>` and `</col>`.
13909 + Added `audio` and `source` in `eitherBlockOrInline`.
13910 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
13911 `blockTags` to `eitherBlockOrInline`.
13912 + `map` and `object` were mistakenly in both lists; they have been removed
13914 + Ignore `DOCTYPE` and `xml` declarations.
13916 * MediaWiki reader:
13918 + Don't parse backslash escapes inside `<source>` (#1445).
13919 + Tightened up template parsing.
13920 The opening `{{` must be followed by an alphanumeric or `:`.
13921 This prevents the exponential slowdown in #1033.
13922 + Support "Bild" for images.
13926 + Better handle elements inside code environments. Pandoc's document
13927 model does not allow structure inside code blocks, but at least this way
13928 we preserve the text (#1449).
13929 + Support `<?asciidoc-br?>` (#1236).
13933 + Fixed list parsing. Lists can now start without an intervening
13934 blank line (#1513).
13935 + HTML block-level tags that do not start a line are parsed as
13936 inline HTML and do not interrupt paragraphs (as in RedCloth).
13940 + Make tildes create inline code (#1345). Also relabeled `code` and
13941 `verbatim` parsers to accord with the org-mode manual.
13942 + Respect `:exports` header argument in code blocks (Craig Bosma).
13943 + Fixed tight lists with sublists (#1437).
13947 + Avoid excess whitespace in `nav.xhtml`. This should improve
13948 TOC view in iBooks (#1392).
13949 + Fixed regression on cover image.
13950 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
13951 because the metadata id was not correct. Now we derive the id from the
13952 actual cover image filename, which we preserve rather than using
13954 + Keep newlines between block elements. This allows
13955 easier diff-ability (#1424).
13956 + Use `stringify` instead of custom `plainify`.
13957 + Use `renderTags'` for all tag rendering. This properly handles tags
13958 that should be self-closing. Previously `<hr/>` would appear in EPUB
13959 output as `<hr></hr>` (#1420).
13960 + Better handle HTML media tags.
13961 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
13962 can have only one dc:date, so only the first one is used.
13966 + Correctly handle figures in notes. Notes can't contain figures in
13967 LaTeX, so we fake it to avoid an error (#1053).
13968 + Fixed strikeout + highlighted code (#1294).
13969 Previously strikeout highlighted code caused an error.
13973 + Improved detection of autolinks with URLs containing escapes.
13977 + Improved image embedding: `fetchItem'` is now used to get the
13978 images, and calculated image sizes are indicated in the RTF.
13979 + Avoid extra paragraph tags in metadata (#1421).
13983 + Deactivate "incremental" inside slide speaker notes (#1394).
13984 + Don't include empty items in the table of contents for
13985 slide shows. (These would result from creating a slide
13986 using a horizontal rule.)
13988 * MediaWiki writer:
13990 + Minor renaming of `st` prefixed names.
13994 + Double up emphasis and strong emphasis markers in intraword
13995 contexts, as required by asciidoc (#1441).
13999 + Avoid wrapping that might start a list, blockquote, or header (#1013).
14000 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
14001 + Don't use braced attributes for fenced code (#1416).
14002 If `Ext_fenced_code_attributes` is not set, the first class
14003 attribute will be printed after the opening fence as a bare word.
14004 + Separate adjacent lists of the same kind with an HTML comment (#1458).
14008 + Fixed treatment of data uris for images (#1062).
14012 + Use Compact style for empty table cells (#1353).
14013 Otherwise we get overly tall lines when there are empty
14014 table cells and the other cells are compact.
14015 + Create overrides per-image for `media/` in reference docx.
14016 This should be somewhat more robust and cover more types of images.
14017 + Improved `entryFromArchive` to avoid an unneeded parse.
14018 + Section numbering carries over from reference.docx (#1305).
14019 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
14020 we assign numbers based on the list marker styles.
14022 * `Text.Pandoc.Options`:
14024 + Removed `Ext_fenced_code_attributes` from `markdown_github`
14027 * `Text.Pandoc.ImageSize`:
14029 + Use default instead of failing if image size not found
14030 in exif header (#1358).
14031 + ignore unknown exif header tag rather than crashing.
14032 Some images seem to have tag type of 256, which was causing
14035 * `Text.Pandoc.Shared`:
14037 + `fetchItem`: unescape URI encoding before reading local file (#1427).
14038 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
14039 doing mime lookup, to improve mime type guessing.
14040 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
14041 other things are treated as relative URIs if `sourceURL` is `Just _`,
14042 otherwise as file paths on the local file system.
14043 + `fetchItem` now properly handles links without a protocol (#1477).
14044 + `fetchItem` now escapes characters not allowed in URIs before trying
14046 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
14048 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
14049 needed to resolve relative URLs when we fetch resources (#750).
14051 * `Text.Pandoc.Parsing`
14053 + Simplified `dash` and `ellipsis` (#1419).
14054 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
14055 + Generalized functions to use `ParsecT` (Matthew Pickering).
14056 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
14059### Template changes
14061 * Added haddock template.
14062 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
14063 be "advisory" in HTML5, but kindlegen seems to require them.
14064 * EPUB3: Put title page in section with `epub:type="titlepage"`.
14065 * LaTeX: Made `\subtitle` work properly (#1327).
14066 * LaTeX/Beamer: remove conditional around date (#1321).
14067 * LaTeX: Added `lot` and `lof` variables, which can be set to
14068 get `\listoftables` and `\listoffigures` (#1407). Note that
14069 these variables can be set at the command line with `-Vlot -Vlof`
14070 or in YAML metadata.
14072### Under the hood improvements
14074 * Rewrote normalize for efficiency (#1385).
14076 * Rewrote Haddock reader to use `haddock-library` (#1346).
14078 + This brings pandoc's rendering of haddock markup in line
14079 with the new haddock.
14080 + Fixed line breaks in `@` code blocks.
14081 + alex and happy are no longer build-depends.
14083 * Added `Text.Pandoc.Compat.Directory` to allow building against
14084 different versions of the `directory` library.
14086 + Added `Text.Pandoc.Compat.Except` to allow building against
14087 different versions of `mtl`.
14089 * Code cleanup in some writers, using Reader monad to avoid
14090 passing options parameter around (Matej Kollar).
14092 * Improved readability in `pandoc.hs`.
14094 * Miscellaneous code cleanups (Artyom Kazak).
14096 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
14099 * Changed `http-conduit` flag to `https`. Depend on `http-client`
14100 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
14101 depends on `conduit` via `yaml`.)
14103 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
14104 This change to highlighting-kate means that PHP fragments no longer need
14105 to start with `<?php`. It also fixes a serious bug causing failures with
14108 * Require latest `texmath`. This fixes `\tilde{E}` and allows
14109 `\left` to be used with `]`, `)` etc. (#1319), among many other
14112 * Require latest `zip-archive`. This has fixes for unicode path names.
14114 * Added tests for plain writer.
14116 * `Text.Pandoc.Templates`:
14118 + Fail informatively on template syntax errors.
14119 With the move from parsec to attoparsec, we lost good error
14120 reporting. In fact, since we weren't testing for end of input,
14121 malformed templates would fail silently. Here we revert back to
14122 Parsec for better error messages.
14123 + Use `ordNub` (#1022).
14127 + Made benchmarks compile again (Artyom Kazak).
14128 + Fixed so that the failure of one benchmark does not prevent others
14129 from running (Artyom Kazak).
14130 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
14131 + Changed benchmark to use only the test suite, so that benchmarks
14134 * Windows build script:
14136 + Add `-windows` to file name.
14137 + Use one install command for pandoc, pandoc-citeproc.
14138 + Force install of pandoc-citeproc.
14140 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
14141 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
14142 will extract it into a folder named `SOMETHING.pkg`, which it
14143 will interpret as a defective package (#1308).
14147 + Made headers for all extensions so they have IDs and can be
14148 linked to (Beni Cherniavsky-Paskin).
14149 + Fixed typos (Phillip Alday).
14150 + Fixed documentation of attributes (#1315).
14151 + Clarified documentation on small caps (#1360).
14152 + Better documentation for `fenced_code_attributes` extension
14154 + Documented fact that you can put YAML metadata in a separate file
14158## pandoc 1.12.4.2 (2014-05-14)
14160 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
14162 * Shared: `addMetaValue` now behaves slightly differently:
14163 if both the new and old values are lists, it concatenates their
14164 contents to form a new list.
14168 + Set `bibliography` in metadata from `\bibliography` or
14169 `\addbibresource` command.
14170 + Don't error on `%foo` with no trailing newline.
14174 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
14175 + Fix parsing of blank lines within blocks (Albert Krewinkel).
14176 + Support pandoc citation extension (Albert Krewinkel). This can
14177 be turned off by specifying `org-citation` as the input format.
14181 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
14182 other readers (Albert Krewinkel).
14184 * `Text.Pandoc.Parsing`:
14186 + Added `citeKey` (see above).
14187 + Added `HasLastStrPosition` type class and `updateLastStrPos`
14188 and `notAfterString` functions.
14190 * Updated copyright notices (Albert Krewinkel).
14192 * Added default.icml to data files so it installs with the package.
14196 + The binary is now built with options to ensure that it can be
14197 used with OSX 10.6+.
14198 + Moved OSX package materials to osx directory.
14199 + Added OSX package uninstall script, included in the zip container
14200 (thanks to Daniel T. Staal).
14202## pandoc 1.12.4 (2014-05-07)
14204 * Made it possible to run filters that aren't executable
14205 (#1096). Pandoc first tries to find the executable (searching
14206 the path if path isn't given). If it fails, but the file
14207 exists and has a `.py`, `.pl`, `.rb`, `.hs`, or `.php`
14208 extension, pandoc runs the filter using the appropriate
14209 interpreter. This should make it easier to use filters on
14210 Windows, and make it more convenient for everyone.
14212 * Added Emacs org-mode reader (Albert Krewinkel).
14214 * Added InDesign ICML Writer (mb21).
14216 * MediaWiki reader:
14218 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
14219 + Fixed bug in certain nested lists (#1213). If a level 2 list was
14220 followed by a level 1 list, the first item of the level 1 list
14222 + Handle table rows containing just an HTML comment (#1230).
14226 + Give better location information on errors, pointing to line
14227 numbers within included files (#1274).
14228 + LaTeX reader: Better handling of `table` environment (#1204).
14229 Positioning options no longer rendered verbatim.
14230 + Better handling of figure and table with caption (#1204).
14231 + Handle `@{}` and `p{length}` in tabular. The length is not actually
14232 recorded, but at least we get a table (#1180).
14233 + Properly handle `\nocite`. It now adds a `nocite` metadata
14234 field. Citations there will appear in the bibliography but not
14235 in the text (unless you explicitly put a `$nocite$` variable
14240 + Ensure that whole numbers in YAML metadata are rendered without
14241 decimal points. (This became necessary with changes to aeson
14242 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
14243 + Fixed regression on line breaks in strict mode (#1203).
14244 + Small efficiency improvements.
14245 + Improved parsing of nested `div`s. Formerly a closing `div` tag
14246 would be missed if it came right after other block-level tags.
14247 + Avoid backtracking when closing `</div>` not found.
14248 + Fixed bug in reference link parsing in `markdown_mmd`.
14249 + Fixed a bug in list parsing (#1154). When reading a raw list
14250 item, we now strip off up to 4 spaces.
14251 + Fixed parsing of empty reference link definitions (#1186).
14252 + Made one-column pipe tables work (#1218).
14256 + Better support for attributes. Instead of being ignored, attributes
14257 are now parsed and included in Span inlines. The output will be a bit
14258 different from stock textile: e.g. for `*(foo)hi*`, we'll get
14259 `<em><span class="foo">hi</span></em>` instead of
14260 `<em class="foo">hi</em>`. But at least the data is not lost.
14261 + Improved treatment of HTML spans (%) (#1115).
14262 + Improved link parsing. In particular we now pick up on attributes.
14263 Since pandoc links can't have attributes, we enclose the whole link in
14264 a span if there are attributes (#1008).
14265 + Implemented correct parsing rules for inline markup (#1175, Matthew
14267 + Use Builder (Matthew Pickering).
14271 + Better treatment of `formalpara`. We now emit the title (if present)
14272 as a separate paragraph with boldface text (#1215).
14273 + Set metadata `author` not `authors`.
14274 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
14275 Matthew Pickering).
14276 + Converted current meta information parsing in DocBook to a more
14277 extensible version which is aware of the more recent meta
14278 representation (Matthew Pickering).
14282 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
14284 + Treat processing instructions & declarations as block. Previously
14285 these were treated as inline, and included in paragraph tags in HTML
14286 or DocBook output, which is generally not what is wanted (#1233).
14287 + Updated `closes` with rules from HTML5 spec.
14288 + Use Builder (Matthew Pickering, #1162).
14292 + Remove duplicate `http` in PEP links (Albert Krewinkel).
14293 + Make rst figures true figures (#1168, CasperVector)
14294 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
14295 rST parser now supports: all built-in rST roles, new role definition,
14296 role inheritance, though with some limitations.
14297 + Use `author` rather than `authors` in metadata.
14298 + Better handling of directives. We now correctly handle field
14299 lists that are indented more than three spaces. We treat an
14300 `aafig` directive as a code block with attributes, so it can be
14301 processed in a filter (#1212).
14305 + Mark span contents with label if span has an ID (Albert Krewinkel).
14306 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
14307 + Handle line breaks in simple table cells (#1217).
14308 + Workaround for level 4-5 headers in quotes. These previously produced
14309 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
14310 This adds an `mbox{}` in these contexts to work around the problem.
14311 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
14312 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
14313 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
14314 ligature with LuaLaTeX but `\/` does.
14315 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
14317 * ConTeXt writer: Improved autolinks (#1270).
14321 + Improve handling of hard line breaks in Docbook writer
14322 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
14323 just for the newline character.
14324 + Don't let line breaks inside footnotes influence the enclosing
14325 paragraph (Neil Mayhew).
14326 + Distinguish tight and loose lists in DocBook output, using
14327 `spacing="compact"` (Neil Mayhew, #1250).
14329 * Docx writer: When needed files are not present in the user's
14330 `reference.docx`, fall back on the versions in the `reference.docx`
14331 in pandoc's data files. This fixes a bug that occurs when a
14332 `reference.docx` saved by LibreOffice is used. (#1185)
14336 + Include extension in epub ids. This fixes a problem with duplicate
14337 extensions for fonts and images with the same base name but different
14338 extensions (#1254).
14339 + Handle files linked in raw `img` tags (#1170).
14340 + Handle media in `audio` source tags (#1170).
14341 Note that we now use a `media` directory rather than `images`.
14342 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
14343 will both be incorporated into `content.opf` and the epub container.
14347 + Add colgroup around col tags (#877). Also affects EPUB writer.
14348 + Fixed bug with unnumbered section headings. Unnumbered section
14349 headings (with class `unnumbered`) were getting numbers.
14350 + Improved detection of image links. Previously image links with
14351 queries were not recognized, causing `<embed>` to be used instead
14354 * Man writer: Ensure that terms in definition lists aren't line wrapped
14359 + Use proper escapes to avoid unwanted lists (#980). Previously we used
14360 0-width spaces, an ugly hack.
14361 + Use longer backtick fences if needed (#1206). If the content contains a
14362 backtick fence and there are attributes, make sure longer fences are
14363 used to delimit the code. Note: This works well in pandoc, but github
14364 markdown is more limited, and will interpret the first string of three
14365 or more backticks as ending the code block.
14367 * RST writer: Avoid stack overflow with certain tables (#1197).
14369 * RTF writer: Fixed table cells containing paragraphs.
14373 + Correctly handle UTF-8 in custom lua scripts (#1189).
14374 + Fix bugs with lua scripts with mixed-case filenames and
14375 paths containing `+` or `-` (#1267). Note that `getWriter`
14376 in `Text.Pandoc` no longer returns a custom writer on input
14379 * AsciiDoc writer: Handle multiblock and empty table cells
14380 (#1245, #1246). Added tests.
14382 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
14384 * `Text.Pandoc.Shared`:
14386 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
14387 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
14388 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
14390 + `openURL`: set proxy with value of http_proxy env variable (#1211).
14391 Note: proxies with non-root paths are not supported, due to
14392 limitations in `http-conduit`.
14394 * `Text.Pandoc.PDF`:
14396 + Ensure that temp directories deleted on Windows (#1192). The PDF is
14397 now read as a strict bytestring, ensuring that process ownership will
14398 be terminated, so the temp directory can be deleted.
14399 + Use `/` as path separators in a few places, even on Windows.
14400 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
14401 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
14402 + Changes to error reporting, to handle non-UTF8 error output.
14404 * `Text.Pandoc.Templates`:
14406 + Removed unneeded datatype context (Merijn Verstraaten).
14408 + YAML objects resolve to "true" in conditionals (#1133).
14409 Note: If `address` is a YAML object and you just have `$address$`
14410 in your template, the word `true` will appear, which may be
14411 unexpected. (Previously nothing would appear.)
14413 * `Text.Pandoc.SelfContained`: Handle `poster` attribute in `video`
14416 * `Text.Pandoc.Parsing`:
14418 + Made `F` an instance of Applicative (#1138).
14419 + Added `stateCaption`.
14420 + Added `HasMacros`, simplified other typeclasses.
14421 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
14422 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
14423 + Changed the smart punctuation parser to return `Inlines`
14424 rather than `Inline` (Matthew Pickering).
14425 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
14426 from typeclasses of monads to typeclasses of states. This simplifies
14427 the instance definitions and provides more flexibility. Generalized
14428 type of `getOption` and added a default definition. Removed
14429 `askReaderOption`. Added `extractReaderOption`. Added
14430 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
14431 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
14432 `modifyHeaderMap`. Added `extractIdentifierList` and
14433 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
14434 for `getIdentifierList`, `putIdentifierList`, and
14435 `modifyIdentifierList`. The ultimate goal here is to allow different
14436 parsers to use their own, tailored parser states (instead of
14437 `ParserState`) while still using shared functions.
14439 * Template changes:
14441 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
14442 + LaTeX template: Add `linestretch` and `fontfamily` variables.
14443 + LaTeX template: Conditionalize author and date commands.
14444 + Beamer template: Consistent styles for figure and table captions
14446 + LaTeX and beamer template: Adjust widths correctly for oversized
14447 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
14448 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
14449 `upquote` only after `fontenc` (Yihui Xie).
14450 + Beamer template: Added caption package (#1200).
14451 + Beamer template: changes for better unicode handling (KarolS).
14452 + DocBook template: use `authorgroup` if there are authors.
14453 + revealjs template: Move `include-after` to end (certainlyakey).
14454 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
14456 * Bumped version bounds of dependencies.
14458 * Added a `--trace` command line option, for debugging backtracking
14459 bugs. So far this only works with the markdown reader.
14461 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
14463 * Updated travis script to test with multiple GHC versions.
14465 * Force failure of a Travis build if GHC produces warnings (Albert
14468 * Add `.editorconfig` (Albert Krewinkel).
14469 See <http://editorconfig.org/> for details.
14471 * Give more useful error message if '-t pdf' is specified (#1155).
14473 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
14475 * Allow `html4` as a synonym of `html` as a reader (it already works
14480 + Added an explanation of how to use YAML metadata to
14481 force items to appear in the bibliography without citations in
14482 the text (like LaTeX `\nocite`).
14483 + Added note to `--bibtex/--natbib`: not for use in making PDF
14484 (#1194, thanks to nahoj).
14485 + Added explanatory notes about `--natbib` and `--biblatex`.
14486 + Added specification of legal syntax for citation keys.
14487 + Fixed variable defaults documentation (Albert Krewinkel).
14489 * Removed copyright statements for files that have been removed
14490 (Albert Krewinkel).
14492 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
14493 They aren't needed at runtime. We keep README and COPYRIGHT in data
14494 to ensure that they'll be available on all systems on which pandoc
14497 * Use cabal sandboxes in Windows build script.
14499## pandoc 1.12.3.3 (2014-02-03)
14501 * To changes to source; recompiled tarball with latest alex and
14502 happy, so they will work with GHC 7.8.
14504## pandoc 1.12.3.2 (2014-02-03)
14506 * Bumped version bounds for blaze-html, blaze-markup.
14508 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
14511 * Fixed mediawiki ordered list parsing (#1122).
14513 * HTML reader: Fixed bug reading inline math with `$$` (#225).
14515 * Added support for LaTeX style literate Haskell code blocks in rST
14516 (Merijn Verstraaten).
14518## pandoc 1.12.3.1 (2014-01-14)
14520 * Relaxed version constraint on binary, allowing the use of binary 0.5.
14523## pandoc 1.12.3 (2014-01-10)
14525 * The `--bibliography` option now sets the `biblio-files` variable.
14526 So, if you're using `--natbib` or `--biblatex`, you can just use
14527 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
14529 * Don't run pandoc-citeproc filter if `--bibliography` is
14530 used together with `--natbib` or `--biblatex` (Florian Eitel).
14532 * Template changes:
14534 + Updated beamer template to include booktabs.
14535 + Added `abstract` variable to LaTeX template.
14536 + Put `header-includes` after `title` in LaTeX template (#908).
14537 + Allow use of `\includegraphics[size]` in beamer.
14538 This just required porting a macro definition from the default
14539 LaTeX template to the default beamer template.
14541 * `reference.docx`: Include `FootnoteText` style.
14542 Otherwise Word ignores the style, even when specified in the `pPr`.
14545 * `reference.odt`: Tidied `styles.xml`.
14547 * Relaxed version bounds for dependencies.
14549 * Added `withSocketsDo` around http conduit code in `openURL`,
14550 so it works on Windows (#1080).
14552 * Added `Cite` function to `sample.lua`.
14556 + Fixed regression in title blocks (#1089).
14557 If author field was empty, date was being ignored.
14558 + Allow backslash-newline hard line breaks in grid and
14559 multiline table cells.
14560 + Citation keys may now start with underscores, and may contain
14561 underscores adjacent to internal punctuation.
14565 + Add support for `Verb` macro (jrnold) (#1090).
14566 + Support babel-style quoting: `` "`..."' ``.
14568 * Properly handle script blocks in strict mode. (That is,
14569 `markdown-markdown_in_html_blocks`.) Previously a spurious
14570 `<p>` tag was being added (#1093).
14572 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
14577 + Factored out function for table cell creation.
14578 + Better treatment of footnotes in tables.
14579 Notes now appear in the regular sequence, rather than in the
14580 table cell. (This was a regression in 1.10.)
14582 * HTML reader: Parse name/content pairs from meta tags as metadata.
14585 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
14587 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
14589 * ODT writer: Use mathml for proper rendering of formulas.
14590 Note: LibreOffice's support for this seems a bit buggy. But
14591 it should be better than what we had before.
14593 * RST writer: Ensure no blank line after def in definition list (#992).
14595 * Markdown writer: Don't use tilde code blocks with braced attributes in
14596 `markdown_github` output. A consequence of this change is that the
14597 backtick form will be preferred in general if both are enabled. That
14598 is good, as it is much more widespread than the tilde form. (#1084)
14600 * Docx writer: Fixed problem with some modified reference docx files.
14601 Include `word/_rels/settings.xml.rels` if it exists, as well as other
14602 `rels` files besides the ones pandoc generates explicitly.
14606 + With `--toc`, headers no longer link to themselves (#1081).
14607 + Omit footnotes from TOC entries. Otherwise we get doubled
14608 footnotes when headers have notes!
14612 + Avoid duplicate notes when headings contain notes.
14613 This arose because the headings are copied into the metadata
14614 "title" field, and the note gets rendered twice. We strip the
14615 note now before putting the heading in "title".
14616 + Strip out footnotes from toc entries.
14617 + Fixed bug with `--epub-stylesheet`. Now the contents of
14618 `writerEpubStylesheet` (set by `--epub-stylesheet`)
14619 should again work, and take precedence over a stylesheet specified
14622 * `Text.Pandoc.Pretty`: Added `nestle`. API change.
14624 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
14626 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
14629 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
14630 we could only get size information for JFIF format, which led
14631 to squished images in Word documents. Closes #976.
14633 * Removed old `MarkdownTest_1.0.3` directory (#1104).
14636## pandoc 1.12.2.1 (2013-12-08)
14638 * Markdown reader: Fixed regression in list parser, involving
14639 continuation lines containing raw HTML (or even verbatim raw HTML).
14641## pandoc 1.12.2 (2013-12-07)
14643 * Metadata may now be included in YAML blocks in a markdown document.
14651 text: An investigation of metadata
14659 text: doi:10.234234.234/33
14660 publisher: My Press
14661 rights: (c) 2007 John Smith, CC BY-NC
14662 cover-image: img/mypic.jpg
14663 stylesheet: style.css
14666 Metadata may still be provided using `--epub-metadata`; it will
14667 be merged with the metadata in YAML blocks.
14671 + `meta` tags are now used instead of `opf` attributes for EPUB3.
14672 + Insert "svg" property as needed in opf (EPUB 3).
14673 + Simplify `imageTypeOf` using `getMimeType`.
14674 + Add properties attribute to `cover-image` item for EPUB 3.
14675 + Don't include node for `cover.xhtml` if no cover!
14676 + Ensure that same identifier is used throughout (#1044).
14677 If an identifier is given in metadata, we use that; otherwise
14678 we generate a random uuid.
14679 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
14680 Fixes an issue with Calibre putting the cover at the end of the book
14681 if the spine has `linear="no"`. Apparently this is best practice
14682 for other converters as well:
14683 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
14684 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
14685 + Allow partial dates: `YYYY`, `YYYY-MM`.
14687 * Markdown writer: Fix rendering of tight sublists (#1050).
14688 Previously a spurious blank line was included after a tight sublist.
14690 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
14691 This is reported to be necessary to avoid an error from recent
14692 versions of Libre Office when files contain more than one image
14693 Thanks to wmanley for reporting and diagnosing the problem.
14695 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
14696 Instead, let this be set in the template, using `\setupfloat`.
14697 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
14699 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
14701 * Fixed bug with markdown intraword emphasis. Closes #1066.
14703 * Docbook writer: Hierarchicalize block content in metadata.
14704 Previously headers just disappeared from block-level metadata
14705 when it was used in templates. Now we apply the 'hierarchicalize'
14706 transformation. Note that a block headed by a level-2 header will
14707 turn into a `<sect1>` element.
14709 * OpenDocument writer: Skip raw HTML (#1035).
14710 Previously it was erroneously included as verbatim text.
14712 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
14713 This allows better control of formatting, since the `<a>`
14714 tags have a distinguishing class (#1049).
14718 + Use mime type info returned by fetchItem.
14719 + Fixed core metadata (#1046).
14720 Don't create empty date nodes if no date given.
14721 Don't create multiple `dc:creator` nodes; instead separate by
14723 + Fix URL for core-properties in `_rels/.rels` (#1046).
14725 * Plain writer: don't print `<span>` tags.
14729 + Fix definition lists with internal links in terms (#1032).
14730 This fix puts braces around a term that contains an internal
14731 link, to avoid problems with square brackets.
14732 + Properly escape pdftitle, pdfauthor (#1059).
14733 + Use booktabs package for tables (thanks to Jose Luis Duran).
14735 * Updated beamer template. Now references should work properly
14736 (in a slide) when `--biblatex` or `--natbib` is used.
14740 + Parse contents of curly quotes or matched `"` as quotes.
14741 + Support `\textnormal` as span with class `nodecor`.
14742 This is needed for pandoc-citeproc.
14743 + Improved citation parsing. This fixes a run-time error that occurred
14744 with `\citet{}` (empty list of keys). It also ensures that empty keys
14745 don't get produced.
14747 * MediaWiki reader: Add automatic header identifiers.
14751 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
14753 + Recognize `svg` tags as block level content (thanks to MinRK).
14754 + Parse LaTeX math if appropriate options are set.
14758 + Yaml block must start immediately after `---`. If there's a blank
14759 line after `---`, we interpreted it as a horizontal rule.
14760 + Correctly handle empty bullet list items.
14761 + Stop parsing "list lines" when we hit a block tag.
14762 This fixes exponential slowdown in certain input, e.g.
14763 a series of lists followed by `</div>`.
14765 * Slides: Preserve `<div class="references">` in references slide.
14767 * `Text.Pandoc.Writer.Shared`:
14769 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
14770 attributes, leading to invalid HTML.
14771 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
14772 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
14773 encoded bytestring was returned. We now decode it so it's a proper
14776 * DocBook reader: Handle numerical attributes starting with decimal.
14777 Also use `safeRead` instead of `read`.
14779 * `Text.Pandoc.Parsing`:
14781 + Generalized type of `registerHeader`, using new type classes
14782 `HasReadeOptions`, `HasIdentifierList`, `HasHeaderMap`.
14783 These allow certain common functions to be reused
14784 even in parsers that use custom state (instead of `ParserState`),
14785 such as the MediaWiki reader.
14786 + Moved inlineMath, displayMath from Markdown reader to Parsing.
14787 Generalize their types and export them from Parsing. (API change.)
14789 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
14790 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
14791 in all the writers. Require `texmath >= 0.6.5.2`.
14793 * `Text.Pandoc.MIME`:
14795 + Add entry for `jfif`.
14796 + In looking up extensions, drop the encoding info.
14797 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
14799 * Templates: Changed how array variables are resolved. Previously if
14800 `foo` is an array (which might be because multiple values were set on
14801 the command line), `$foo$` would resolve to the concatenation of the
14802 elements of foo. This is rarely useful behavior. It has been changed
14803 so that the first value is rendered. Of course, you can still iterate
14804 over the values using `$for(foo)$`. This has the result that you can
14805 override earlier settings using `-V` by putting new values later on the
14806 command line, which is useful for many purposes.
14808 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
14810 * Allow "epub2" as synonym for "epub", "html4" for "html".
14812 * Don't look for slidy files in data files with `--self-contained`.
14814 * Allow `https:` command line arguments to be downloaded.
14816 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
14818## pandoc 1.12.1 (2013-10-20)
14820 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
14821 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
14822 "c": "foo"}`. This new format is easier to work with outside of Haskell.
14823 Incidentally, "t" stands for "tag", "c" for "contents".
14825 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
14826 when converting to markdown (#1027).
14830 + Ensure that preamble doesn't contribute to the text of
14832 + Fixed character escaping in `\url{}`. Previously `\~` wasn't handled
14833 properly, among others.
14834 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
14835 bibtex titles, since we need to know what was protected from
14836 titlecase conversions.
14840 + Specially escape non-ascii characters in labels.
14841 Otherwise we can get compile errors and other bugs when
14842 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
14843 + Add link anchors for code blocks with identifiers (#1025).
14845 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
14846 It allows fragments identifiers.
14850 + A Div element with class "notes" is treated as speaker
14851 notes. Currently beamer goes to `\note{}`, revealjs to
14852 `<aside class="notes">`, and the notes are simply suppressed in
14853 other formats (#925).
14854 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
14855 The old version caused a pause to be inserted before the first
14856 material on a slide. This has been fixed.
14857 + Removed data files for s5, slideous, slidy.
14858 Users of s5 and slideous will have to download the needed
14859 files, as has been documented for some time in the README.
14860 By default, slidy code will be sought on the web, as before.
14862 * HTML writer: Insert command to typeset mathjax only in slideous output
14865 * RST writer: Skip spaces after display math. Otherwise we get indentation
14866 problems, and part of the next paragraph may be rendered as part of the
14869 * OpenDocument writer: Fix formatting of strikeout code (#995),
14870 thanks to wilx. don't use `font-face-decls` variable.
14872 * Fixed test suite so it works with cabal sandboxes.
14874## pandoc 1.12.0.2 (2013-09-20)
14876 * Removed an unused dependency (`stringable`) from pandoc.cabal.
14877 This will help packagers, but users should not need to upgrade.
14879## pandoc 1.12.0.1 (2013-09-20)
14881 * Allow `--metadata` to be repeated for the same key to form a list.
14882 This also has the effect that `--bibliography` can be repeated,
14885 * Handle boolean values in `--metadata`. Note that anything not parseable
14886 as a YAML boolean or string is treated as a literal string.
14887 You can get a string value with "yes", or any of the strings interpretable
14888 as booleans, by quoting it:
14890 -M boolvalue=yes -M stringvalue='"yes"'
14892 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
14895 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
14896 in which docx files could not be read by some versions of Word
14897 and LibreOffice (#990).
14899 * Fixed a regression involving slide shows with bibliographies.
14900 The Div container around references messed up the procedure for carving
14901 a document into slides. So we now remove the surrounding Div in
14904 * More informative error message when a filter is not found in path.
14906 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
14907 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
14909 * Don't use unicode_collation in building OSX package:
14910 it adds something like 50MB of dependencies to the package.
14912 * Declare alex and happy as build-tools (#986).
14914## pandoc 1.12 (2013-09-15)
14918 * Much more flexible metadata, including arbitrary fields and structured
14919 values. Metadata can be specified flexibly in pandoc markdown using
14920 YAML metadata blocks, which may occur anywhere in the document:
14923 title: Here is my title.
14925 This is the abstract.
14929 and *inline markup*
14931 tags: [cat, dog, animal]
14934 Metadata fields automatically populate template variables.
14936 * Added `opml` (OPML) as input and output format. The `_note` attribute,
14937 used in OmniOutliner and supported by multimarkdown, is supported.
14938 We treat the contents as markdown blocks under a section header.
14940 * Added `haddock` (Haddock markup) as input format (David Lazar).
14942 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
14943 (Thanks to Jamie F. Olson for the initial patch.)
14944 Nested vertical stacks are used for hierarchical structure.
14945 Results for more than one level of nesting may be odd.
14947 * Custom writers can now be written in lua.
14949 pandoc -t data/sample.lua
14951 will load the script sample.lua and use it as a custom writer.
14952 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
14953 Note that pandoc embeds a lua interpreter, so lua need not be
14954 installed separately.
14956 * New `--filter/-F` option to make it easier to run "filters"
14957 (Pandoc AST transformations that operate on JSON serializations).
14958 Filters are always passed the name of the output format, so their
14959 behavior can be tailored to it. The repository
14960 <https://github.com/jgm/pandocfilters> contains
14961 a python module for writing pandoc filters in python, with
14962 a number of examples.
14964 * Added `--metadata/-M` option.
14965 This is like `--variable/-V`, but actually adds to metadata, not
14968 * Added `--print-default-data-file` option, which allows printing
14969 of any of pandoc's data files. (For example,
14970 `pandoc --print-default-data-file reference.odt` will print
14973 * Added syntax for "pauses" in slide shows:
14981 * New markdown extensions:
14983 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
14984 rather than being treated as hard line breaks or spaces. This is useful
14985 for some East Asian languages, where spaces aren't used between words,
14986 but text is separated into lines for readability.
14987 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
14988 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
14989 only. (Default for `markdown_github`.) (#807)
14990 + `lists_without_preceding_blankline`: Allow lists to start without
14991 preceding blank space. (Default for `markdown_github`.) (#972)
14993### Behavior changes
14995 * `--toc-level` no longer implies `--toc`.
14996 Reason: EPUB users who don't want a visible TOC may still want
14997 to set the TOC level for in the book navigation.
14999 * `--help` now prints in and out formats in alphabetical order, and
15000 says something about PDF output (#720).
15002 * `--self-contained` now returns less verbose output (telling you
15003 which URLs it is fetching, but not giving the full header). In
15004 addition, there are better error messages when fetching a URL fails.
15006 * Citation support is no longer baked in to core pandoc. Users who
15007 need citations will need to install and use a separate filter
15008 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
15009 `csl`, and `citation-abbreviations` from the metadata, though it
15010 may still be specified on the command line as before.
15012 * A `Cite` element is now created in parsing markdown whether or not
15013 there is a matching reference.
15015 * The `pandoc-citeproc` script will put the bibliography at the
15016 end of the document, as before. However, it will be put inside a `Div`
15017 element with class "references", allowing users some control
15018 over the styling of references. A final header, if any, will
15019 be included in the `Div`.
15021 * The markdown writer will not print a bibliography if the
15022 `citations` extension is enabled. (If the citations are formatted
15023 as markdown citations, it is redundant to have a bibliography,
15024 since one will be generated automatically.)
15026 * Previously we used to store the directory of the first input file,
15027 even if it was local, and used this as a base directory for finding
15028 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
15029 users. So we now look for images relative to the current
15030 working directory, even if the first file argument is in another
15031 directory. Note that this change may break some existing workflows.
15032 If you have been assuming that relative links will be interpreted
15033 relative to the directory of the first file argument, you'll need
15034 to make that the current directory before running pandoc. (#942)
15036 * Better error reporting in some readers, due to changes in `readWith`:
15037 the line in which the error occurred is printed, with a caret pointing
15040 * All slide formats now support incremental slide view for definition lists.
15042 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
15043 Parse `:<math>...</math>` as display math. These notations are used with
15044 the MathJax MediaWiki extension.
15046 * All writers: template variables are set automatically from metadata
15047 fields. However, variables specified on the command line with
15048 `--variable` will completely shadow metadata fields.
15050 * If `--variable` is used to set many variables with the same name,
15053 * Man writer: The `title`, `section`, `header`, and `footer` can now
15054 all be set individually in metadata. The `description` variable has been
15055 removed. Quotes have been added so that spaces are allowed in the
15056 title. If you have a title that begins
15058 COMMAND(1) footer here | header here
15060 pandoc will still parse it into a title, section, header, and
15061 footer. But you can also specify these elements explicitly (#885).
15065 + Added support for YAML metadata blocks, which can come anywhere
15066 in the document (not just at the beginning). A document can contain
15067 multiple YAML metadata blocks.
15068 + HTML span and div tags are parsed as pandoc Span and Div elements.
15072 + Allow simple tables to be printed as grid tables,
15073 if other table options are disabled. This means you can do
15074 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
15075 and all tables will render as grid tables.
15076 + Support YAML title block (render fields in alphabetical order
15077 to make output predictable).
15081 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
15082 structured metadata. (Note: existing code that pattern-matches
15083 on `Meta` will have to be revised.) Metadata can now contain
15084 indefinitely many fields, with content that can be a string,
15085 a Boolean, a list of `Inline` elements, a list of `Block`
15086 elements, or a map or list of these.
15088 * A new generic block container (`Div`) has been added to `Block`,
15089 and a generic inline container (`Span`) has been added to `Inline`.
15090 These can take attributes. They will render in HTML, Textile,
15091 MediaWiki, Org, RST and Markdown (with `markdown_in_html`
15092 extension) as HTML `<div>` and `<span>` elements; in other formats
15093 they will simply pass through their contents. But they can be
15094 targeted by scripts.
15096 * `Format` is now a newtype, not an alias for String.
15097 Equality comparisons are case-insensitive.
15099 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
15100 functions that are much faster than the SYB functions from
15101 `Text.Pandoc.Generic`. These functions are now used where possible
15102 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
15103 match the generic traversals `bottomUp` and `queryWith`.)
15105 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
15106 instances for the basic pandoc types. They use GHC generics and
15107 should be faster than the old JSON serialization using
15108 `Data.Aeson.Generic`.
15110 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
15111 This is a souped-up version of `readProcessWithErrorcode` that
15112 uses lazy bytestrings instead of strings and allows setting
15113 environment variables. (Used in `Text.Pandoc.PDF`.)
15115 * New module `Text.Pandoc.Readers.OPML`.
15117 * New module `Text.Pandoc.Writers.OPML`.
15119 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
15120 This is based on Haddock's own lexer/parser.
15122 * New module `Text.Pandoc.Writers.Custom`.
15124 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
15125 Either, for better error handling.
15127 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
15129 * Removed `stripTags` from `Text.Pandoc.XML`.
15131 * `Text.Pandoc.Templates`:
15133 + Simplified `Template` type to a newtype.
15135 + Changed type of `renderTemplate`: it now takes a JSON context
15136 and a compiled template.
15137 + Export `compileTemplate`.
15138 + Export `renderTemplate'` that takes a string instead of a compiled
15140 + Export `varListToJSON`.
15142 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
15146 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
15147 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
15148 `Text.Pandoc.JSON` should be used instead. (Compiling against
15149 pandoc-types instead of pandoc will also produce smaller executables.)
15150 * Removed the deprecated `jsonFilter` function.
15151 + Added `readJSON`, `writeJSON` to the API (#817).
15153 * `Text.Pandoc.Options`:
15155 + Added `Ext_lists_without_preceding_blankline`,
15156 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
15157 `Ext_yaml_metadataBlock` to `Extension`.
15158 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
15159 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
15160 first command-line argument is an absolute URL. (So, relative links
15161 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
15162 + All bibliography-related fields have been removed from
15163 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
15164 `readerReferences`, `readerCitationStyle`.
15166 * The `Text.Pandoc.Biblio` module has been removed. Users of the
15167 pandoc library who want citation support will need to use
15168 `Text.CSL.Pandoc` from `pandoc-citeproc`.
15172 * In markdown, don't autolink a bare URI that is followed by `</a>`
15175 * `Text.Pandoc.Shared`
15177 + `openURL` now follows redirects (#701), properly handles `data:`
15178 URIs, and prints diagnostic output to stderr rather than stdout.
15179 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
15180 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
15181 + Fixed `readDefaultDataFile` so it works on Windows.
15182 + Better error messages for `readDefaultDataFile`. Instead of
15183 listing the last path tried, which can confuse people who are
15184 using `--self-contained`, so now we just list the data file name.
15185 + URL-escape pipe characters. Even though these are legal, `Network.URI`
15186 doesn't regard them as legal in URLs. So we escape them first (#535).
15188 * Mathjax in HTML slide shows: include explicit "Typeset" call.
15189 This seems to be needed for some formats (e.g. slideous) and won't
15190 hurt in others (#966).
15192 * `Text.Pandoc.PDF`
15194 + On Windows, create temdir in working directory, since the system
15195 temp directory path may contain tildes, which can cause
15196 problems in LaTeX (#777).
15197 + Put temporary output directory in `TEXINPUTS` (see #917).
15198 + `makePDF` tries to download images that are not found locally,
15199 if the first argument is a URL (#917).
15200 + If compiling with `pdflatex` yields an encoding error, offer
15201 the suggestion to use `--latex-engine=xelatex`.
15203 * Produce automatic header identifiers in parsing textile, RST,
15204 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
15206 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
15207 before treating as a filename. This fixes `--self-contained` when used
15208 with CSS files that include web fonts using the method described here:
15209 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
15210 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
15212 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
15213 percent-encoding, or a `+` character, as final punctuation.
15215 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
15216 EPS images properly sized on conversion to Word.
15218 * Slidy: Use slidy.js rather than slidy.js.gz.
15219 Reason: some browsers have trouble with the gzipped js file,
15220 at least on the local file system (#795).
15224 + Properly handle blank line at beginning of input (#882).
15225 + Fixed bug in unmatched reference links. The input
15226 `[*infile*] [*outfile*]` was getting improperly parsed:
15227 "infile" was emphasized, but "*outfile*" was literal (#883).
15228 + Allow internal `+` in citation identifiers (#856).
15229 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
15230 + Do not generate blank title, author, or date metadata elements.
15231 Leave these out entirely if they aren't present.
15232 + Allow backtick code blocks not to be preceded by blank line (#975).
15236 + Correctly handle entities.
15237 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
15238 in code blocks, rather than printing them verbatim. Parse attributes
15239 on `<pre>` tag for code blocks.
15241 * HTML reader: Handle non-simple tables (#893). Column widths are read from
15242 `col` tags if present, otherwise divided equally.
15246 + Support alltt environment (#892).
15247 + Support `\textasciitilde`, `\textasciicircum` (#810).
15248 + Treat `\textsl` as emphasized text reader (#850).
15249 + Skip positional options after `\begin{figure}`.
15250 + Support `\v{}` for hacek (#926).
15251 + Don't add spurious ", " to citation suffixes.
15252 This is added when needed in pandoc-citeproc.
15253 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
15254 + Improved support for accented characters (thanks to Scott Morrison).
15255 + Parse label after section command and set id (#951).
15259 + Don't insert paragraphs where docutils doesn't.
15260 `rst2html` doesn't add `<p>` tags to list items (even when they are
15261 separated by blank lines) unless there are multiple paragraphs in the
15262 list. This commit changes the RST reader to conform more closely to
15263 what docutils does (#880).
15264 + Improved metadata. Treat initial field list as metadata when
15265 standalone specified. Previously ALL fields "title", "author",
15266 "date" in field lists were treated as metadata, even if not at
15267 the beginning. Use `subtitle` metadata field for subtitle.
15268 + Fixed 'authors' metadata parsing in reST. Semicolons separate
15273 + Allow space before table rows.
15274 + Fixed regression for `<ref>URL</ref>`.
15275 `<` is no longer allowed in URLs, according to the uri parser
15276 in `Text.Pandoc.Parsing`. Added a test case.
15277 + Correctly handle indented preformatted text without preceding
15278 or following blank line.
15279 + Fixed `|` links inside table cells. Improved attribute parsing.
15280 + Skip attributes on table rows. Previously we just crashed if
15281 rows had attributes, now we ignore them.
15282 + Ignore attributes on headers.
15283 + Allow `Image:` for images (#971).
15284 + Parse an image with caption in a paragraph by itself as a figure.
15288 + Don't use ligatures in escaping inline code.
15289 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
15290 wherein notes were numbered incorrectly in tables (#827).
15291 + Always create labels for sections. Previously the labels were only
15292 created when there were links to the section in the document (#871).
15293 + Stop escaping `|` in LaTeX math.
15294 This caused problems with array environments (#891).
15295 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
15296 `\` will cause major problems if unescaped.
15297 + Write id for code block to label attribute in LaTeX when listings
15298 is used (thanks to Florian Eitel).
15299 + Scale LaTeX tables so they don't exceed columnwidth.
15300 + Avoid problem with footnotes in unnumbered headers (#940).
15302 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
15303 to the slide if it is one of the header classes. It is recommended
15304 that your bibliography slide have this attribute:
15306 # References {.allowframebreaks}
15308 This causes multiple slides to be created if necessary, depending
15309 on the length of the bibliography.
15311 * ConTeXt writer: Properly handle tables without captions. The old output
15312 only worked in MkII. This should work in MkIV as well (#837).
15314 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
15318 + Fixed `--no-highlight` (Alexander Kondratskiy).
15319 + Don't convert to lowercase in email obfuscation (#839).
15320 + Ensure proper escaping in `<title>` and `<meta>` fields.
15324 + Support `--atx-headers` (Max Rydahl Andersen).
15325 + Don't print empty identifier blocks `([[]])` on headers (Max
15330 + Fixing wrong numbered-list indentation in open document format
15331 (Alexander Kondratskiy) (#369).
15332 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
15333 + Minor changes for ODF 1.2 conformance (#939). We leave the
15334 nonconforming `contextual-spacing` attribute, which is provided by
15335 LibreOffice itself and seems well supported.
15339 + Fixed rendering of display math in lists.
15340 In 1.11 and 1.11.1, display math in lists rendered as a new list
15341 item. Now it always appears centered, just as outside of lists,
15342 and in proper display math style, no matter how far indented the
15343 containing list item is (#784).
15344 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
15345 Previously we used `w:cr` (#873).
15346 + Use Compact style for Plain block elements, to
15347 differentiate between tight and loose lists (#775).
15348 + Ignore most components of `reference.docx`.
15349 We take the `word/styles.xml`, `docProps/app.xml`,
15350 `word/theme/theme1.xml`, and `word/fontTable.xml` from
15351 `reference.docx`, ignoring everything else. This should help
15352 with the corruption problems caused when different versions of
15353 Word resave the reference.docx and reorganize things.
15354 + Made `--no-highlight` work properly.
15358 + Don't add `dc:creator` tags if present in EPUB metadata.
15359 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
15360 + Don't put blank title page in reading sequence.
15361 Set `linear="no"` if no title block. Addresses #797.
15362 + Download webtex images and include as data URLs.
15363 This allows you to use `--webtex` in creating EPUBs.
15364 Math with `--webtex` is automatically made self-contained.
15365 + In `data/epub.css`, removed highlighting styles (which
15366 are no longer needed, since styles are added by the HTML
15367 writer according to `--highlighting-style`). Simplified
15369 + If resource not found, skip it, as in Docx writer (#916).
15373 + Properly handle characters above the 0000-FFFF range.
15374 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
15375 + Fixed regression with RTF table of contents.
15376 + Only autolink absolute URIs. This fixes a regression, #830.
15380 + Only autolink absolute URIs. This fixes a regression, #830.
15381 + Don't wrap attributes in fenced code blocks.
15382 + Write full metadata in MMD style title blocks.
15383 + Put multiple authors on separate lines in pandoc titleblock.
15384 Also, don't wrap long author entries, as new lines get treated
15387 * `Text.Pandoc.Templates`:
15389 + Fixed bug retrieving default template for markdown variants.
15390 + Templates can now contain "record lookups" in variables;
15391 for example, `author.institution` will retrieve the `institution`
15392 field of the `author` variable.
15393 + More consistent behavior of `$for$`. When `foo` is not a list,
15394 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
15395 So if `foo` resolves to "", no output should be produced.
15396 See pandoc-templates#39.
15398 * Citation processing improvements (now part of pandoc-citeproc):
15400 + Fixed `endWithPunct` The new version correctly sees a sentence
15401 ending in '.)' as ending with punctuation. This fixes a bug which
15402 led such sentences to receive an extra period at the end: '.).'.
15403 Thanks to Steve Petersen for reporting.
15404 + Don't interfere with Notes that aren't citation notes.
15405 This fixes a bug in which notes not generated from citations were
15406 being altered (e.g. first letter capitalized) (#898).
15407 + Only capitalize footnote citations when they have a prefix.
15408 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
15409 inserted before it before passing to citeproc-hs, so that bare numbers
15410 are treated as page numbers by default. A suffix not beginning with
15411 punctuation has a space added at the beginning (rather than a comma and
15412 space, as was done before for not-author-in-text citations).
15413 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
15414 properly, with '23' treated as a locator of type 'page'.
15415 + Many improvements to citation rendering, due to fixes in citeproc-hs
15416 (thanks to Andrea Rossato).
15417 + Warnings are issued for undefined citations, which are rendered
15419 + Fixed hanging behavior when locale files cannot be found.
15421### Template changes
15423 * DocBook: Use DocBook 4.5 doctype.
15425 * Org: '#+TITLE:' is inserted before the title.
15426 Previously the writer did this.
15428 * LaTeX: Changes to make mathfont work with xelatex.
15429 We need the mathspec library, not just fontspec, for this.
15430 We also need to set options for setmathfont (#734).
15432 * LaTeX: Use `tex-ansi` mapping for `monofont`.
15433 This ensures that straight quotes appear as straight, rather than
15434 being treated as curly. See #889.
15436 * Made `\includegraphics` more flexible in LaTeX template.
15437 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
15439 * LaTeX/Beamer: Added `classoption` variable.
15440 This is intended for class options like `oneside`; it may
15441 be repeated with different options. (Thanks to Oliver Matthews.)
15443 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
15445 * LaTeX: Added `biblio-style` variable (#920).
15447 * DZSlides: title attribute on title section.
15449 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
15451### Under-the-hood improvements
15453 * Markdown reader:Improved strong/emph parsing, using the strategy of
15454 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
15455 no backtracking, and no keeping track of nesting levels. It will give
15456 different results in some edge cases, but these should not affect normal
15459 * Added `Text.Pandoc.Compat.Monoid`.
15460 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
15461 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
15463 * Added `Text.Pandoc.Compat.TagSoupEntity`.
15464 This allows pandoc to compile with `tagsoup` 0.13.x.
15465 Thanks to Dirk Ullrich for the patch.
15467 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
15468 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
15469 handle simple math in bibliography fields.)
15471 * Added `Text.Pandoc.Writers.Shared` for shared functions used
15472 only in writers. `metaToJSON` is used in writers to create a
15473 JSON object for use in the templates from the pandoc metadata
15474 and variables. `getField`, `setField`, and `defField` are
15475 for working with JSON template contexts.
15477 * Added `Text.Pandoc.Asciify` utility module.
15478 This exports functions to create ASCII-only versions of identifiers.
15480 * `Text.Pandoc.Parsing`
15482 + Generalized state type on `readWith` (API change).
15483 + Specialize readWith to `String` input. (API change).
15484 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
15485 with `stateMeta` and `stateMeta'`.
15487 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
15488 bytestrings seemed to cause problems using pandoc on 64-bit Windows
15491 * Factored out `registerHeader` from markdown reader, added to
15492 `Text.Pandoc.Parsing`.
15494 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
15495 Reason: < 0.5 does not provide a monoid instance for Attribute,
15496 which is now needed by the HTML writer (#803).
15498 * Added `http-conduit` flag, which allows fetching https resources.
15499 It also brings in a large number of dependencies (`http-conduit`
15500 and its dependencies), which is why for now it is an optional flag
15503 * Added CONTRIBUTING.md.
15505 * Improved INSTALL instructions.
15507 * `make-windows-installer.bat`: Removed explicit paths for executables.
15509 * `aeson` is now used instead of `json` for JSON.
15511 * Set default stack size to 16M. This is needed for some large
15512 conversions, esp. if pandoc is compiled with 64-bit ghc.
15514 * Various small documentation improvements.
15515 Thanks to achalddave and drothlis for patches.
15517 * Removed comment that chokes recent versions of CPP (#933).
15519 * Removed support for GHC version < 7.2, since pandoc-types now
15520 requires at least GHC 7.2 for GHC generics.
15523## pandoc 1.11.1 (2013-03-17)
15527 + Fixed regression in which parentheses were lost in link URLs.
15528 Added tests. Closes #786.
15529 + Better handling of unmatched double quotes in `--smart` mode.
15530 These occur frequently in fiction, since it is customary not to
15531 close quotes in dialogue if the speaker does not change between
15532 paragraphs. The unmatched quotes now get turned into literal
15533 left double quotes. (No `Quoted` inline is generated, however.)
15534 Closes #99 (again).
15536 * HTML writer: Fixed numbering mismatch between TOC and sections.
15537 `--number-offset` now affects TOC numbering as well
15538 as section numbering, as it should have all along. Closes #789.
15540 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
15541 as markdown citations, even if `--bibliography` was specified, unless
15542 `citation` extension is disabled. Now, formatted citations are always
15543 printed if `--bibliography` was specified. If you want to reformat
15544 markdown keeping pandoc markdown citations intact, don't use
15545 `--bibliography`. Note that citations parsed from LaTeX documents will
15546 be rendered as pandoc markdown citations when `--bibliography` is not
15549 * ODT writer: Fixed regression leading to corrupt ODTs.
15550 This was due to a change in the `Show` instance for
15551 `Text.Pandoc.Pretty.Doc`. Closes #780.
15553 * Fixed spacing bugs involving code block attributes in
15554 RST reader and Markdown writer. Closes #763.
15556 * Windows package: Various improvements due to Fyodor Sheremetyev.
15558 + Automatically set installation path (Program Files or Local App Data).
15559 + Set system PATH environment variable when installing for all users.
15560 + Pandoc can installed for all users using the following command.
15561 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
15563 * Bumped QuickCheck version bound.
15565## pandoc 1.11 (2013-03-09)
15567 * Added `--number-offset` option. (See README for description.)
15569 * Added `--default-image-extension` option. (See README for description.)
15571 * `--number-sections` behavior change: headers with class `unnumbered`
15572 will not be numbered.
15574 * `--version` now reports the default data directory.
15576 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
15578 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
15580 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
15581 a field for `Attr` rather than just `String`. (API change.)
15583 * Added `markdown_github` as input format. This was an accidental
15586 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
15589 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
15593 + Fixed captions with longtable. Thanks to Joost Kremers.
15594 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
15598 + Load microtype after fonts. Microtype needs to know
15599 what fonts are being used. Thanks to dfc for the patch.
15600 + Set `secnumdepth` to 5 if `--number-sections` specified.
15601 This yields behavior equivalent to the other writers, numbering
15602 level 4 and 5 headers too. Closes #753.
15606 + Handle `<colgroup>` tag.
15607 + Preserve all header attributes.
15611 + Parse `\hrule` as `HorizontalRule`. Closes #746.
15612 + Parse starred variants of `\section` etc. as headers with
15613 attribute `unnumbered`.
15614 + Read optional attributes in `lstlisting` and `Verbatim` environments.
15615 We convert these to pandoc standard names, e.g. `numberLines`
15616 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
15617 + Handle language attribute for lstlistings.
15618 + Better support for Verbatim and minted environments. Closes #763.
15622 + `-` in an attribute context = `.unnumbered`. The point of this
15623 is to provide a way to specify unnumbered headers in non-English
15625 + Fixed bug parsing key/value attributes. Parsing failed if you
15626 had an unquoted attribute immediately before the final '}'.
15627 + Make backslash escape work in attributes.
15628 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
15629 pandoc will parse a MMD title block if it sees one, even if
15630 `pandoc_title_blocks` is enabled.
15631 + Refactoring: `litChar` now includes entities, so we don't need
15632 to use `fromEntities` e.g. on titles.
15633 + Allow spaces around borders in pipe tables. Closes #772.
15634 + Allow all punctuation in angle-bracket autolinks. Previously
15635 things like `----` were disallowed, because the uri parser
15636 treated them as trailing punctuation. Closes #768.
15637 + Make `implicit_header_references` work properly when
15638 headers are given explicit identifiers.
15639 + Check for tables before line blocks. Otherwise some pipe
15640 tables get treated as line blocks.
15641 + Allow `&` in emails (for entities).
15642 + Properly handle entities in titles and links. A markdown link
15643 `<http://göogle.com>` should be a link to `http://göogle.com`.
15648 + Handle attributes on headers.
15652 + Add `fig:` as title for images with captions.
15653 This is needed for them to be rendered as figures. Closes #766.
15654 + Never emit an empty paragraph. See #761.
15655 + Handle `\caption` for images in figures. Closes #766.
15656 + Parse `\section*`, etc. as unnumbered sections.
15660 + Support header attributes. The attributes go on
15661 the enclosing `section` or `div` tag if `--section-divs` is specified.
15662 + Fixed a regression (only now noticed) in html+lhs output.
15663 Previously the bird tracks were being omitted.
15667 + Omit lists with no items to avoid LaTeX errors.
15668 + Support line numbering with `--listings`.
15669 If `numberLines` class is present, we add `numbers=left`;
15670 if `startFrom` is present, we add `firstnumber=`. (#763)
15674 + Removed `\placecontent`. This produced a duplicate toc,
15675 in conjunction with `\placelist`.
15676 + Use `\title`, `\subject` etc. for headers with
15677 `unnumbered` class.
15681 + Support header attributes.
15685 + Use grid tables when needed, and if enabled. Closes #740.
15686 + Render citations as pandoc-markdown citations.
15687 Previously citations were rendered as citeproc-formatted citations
15688 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
15689 unless the `citations` extension is disabled.
15690 If you still want formatted citations in your markdown output,
15691 use `pandoc -t markdown-citations`.
15695 + Support `:number-lines:` in code blocks.
15699 + Better treatment of display math. Display math inside a
15700 paragraph is now put in a separate paragraph, so it will render
15701 properly (centered and without extra blank lines around it).
15702 Partially addresses #742.
15703 + Content types and document rels xml files are now created from
15704 scratch, rather than being taken over from `reference.docx`.
15705 This fixes problems that arise when you edit the `reference.docx`
15707 + We also now encode mime types for each individual image rather
15708 than using defaults. This should allow us to handle a wider
15709 range of image types (including PDF). Closes #414.
15710 + Changed style names in `reference docx`.
15711 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
15712 The old names got changed by Word when the `reference.docx` was
15713 edited. Closes #414.
15717 + Fix section numbering. Previously the numbering restarted from 1
15718 in each chapter (with `--number-sections`), though the numbers in
15719 the table of contents were correct.
15720 + Headers with "unnumbered" attribute are not numbered. (Nor do they
15721 cause an increment in running numbering.) Section numbers now work
15722 properly, even when there is material before the first numbered section.
15723 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
15724 but `linear` is set to `no` unless the `--toc` option is specified.
15725 Include `<guide>` element in OPF. This should allow the TOC to
15726 be usable in Kindles when converted with kindlegen. Closes #773.
15728 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
15729 This dramatically reduces the speed penalty that comes from enabling the
15730 `autolink_bare_uris` extension. The penalty is still substantial (in one
15731 test, from 0.33s to 0.44s), but nowhere near what it used to be.
15732 The RST reader is also much faster now, as it autodetects URIs.
15734 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
15735 with class "unnumbered". Unnumbered sections get `[]` for their
15738 * `Text.Pandoc.Pretty`:
15740 + Fixed `chomp` so it works inside `Prefixed` elements.
15741 + Changed `Show` instance so it is better for debugging.
15743 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
15745 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
15747 * Windows installer improvements:
15749 + The installer is now signed with a certificate (thanks to
15750 Fyodor Sheremetyev).
15751 + WiX is used instead of InnoSetup. The installer is now a
15753 + The version number is now auto-detected, and need not be
15754 updated separately.
15756 * OSX installer improvements:
15758 + The package and pandoc executable are now signed with a
15759 certificate (thanks to Fyodor Sheremetyev).
15760 + RTF version of license is used.
15761 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
15764 * Converted COPYING to markdown.
15766 * pandoc.cabal: Require latest versions of highlighting-kate,
15767 texmath, citeproc-hs, zip-archive.
15769## pandoc 1.10.1 (2013-01-23)
15771 * Markdown reader: various optimizations, leading to a
15772 significant performance boost.
15774 * RST reader: Allow anonymous form of inline links:
15775 `` `hello <url>`__ `` Closes #724.
15777 * Mediawiki reader: Don't require newlines after tables.
15778 Thanks to jrunningen for the patch. Closes #733.
15780 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
15781 when output is LaTeX, and applied when it is another format.
15782 Partially addresses #730.
15784 * Markdown and RST readers: Added parser to `block` that skips blank
15785 lines. This fixes a subtle regression involving grid tables with
15786 empty cells. Also added test for grid table with empty cells.
15789 * RST writer: Use `.. code:: language` for code blocks with language.
15792 * DocBook writer: Fixed output for hard line breaks, adding a newline
15793 between `<literallayout>` tags.
15795 * Markdown writer: Use an autolink when link text matches url.
15796 Previously we also checked for a null title, but this
15797 test fails for links produced by citeproc-hs in bibliographies.
15798 So, if the link has a title, it will be lost on conversion
15799 to an autolink, but that seems okay.
15801 * Markdown writer: Set title, author, date variables as before.
15802 These are no longer used in the default template, since we use
15803 titleblock, but we set them anyway for those who use custom templates.
15805 * LaTeX writer: Avoid extra space at start/end of table cell.
15806 Thanks to Nick Bart for the suggestion of using @{}.
15808 * `Text.Pandoc.Parsing`:
15810 + More efficient version of `anyLine`.
15811 + Type of `macro` has changed; the parser now returns `Blocks`
15812 instead of `Block`.
15814 * Relaxed old-time version bound, allowing 1.0.*.
15816 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
15817 should create a symlink as described in the README.
15819## pandoc 1.10.0.5 (2013-01-23)
15821 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
15822 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
15823 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
15825 * Markdown reader: Fixed bug with headerless grid tables.
15826 The 1.10 code assumed that each table header cell contains exactly one
15827 block. That failed for headerless tables (0) and also for tables with
15828 multiple blocks in a header cell. The code is fixed and tests provided.
15829 Thanks to Andrew Lee for pointing out the bug.
15831 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
15833 + Tilde code fences can again take a bare language string
15834 (`~~~ haskell`), not just curly-bracketed attributes
15835 (`~~~ {.haskell}`).
15836 + Backtick code blocks can take the curly-bracketed attributes.
15837 + Backtick code blocks don't *require* a language.
15838 + Consolidated code for the two kinds of fenced code blocks.
15840 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
15842 * Markdown writer: Use proportional font for email autolinks with
15843 obfuscation. Closes #714.
15845 * Corrected name of `blank_before_blockquote` in README. Closes #718.
15847 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
15848 The bug prevented an autolink at the end of a string (e.g.
15849 at the end of a line block line) from counting as a link. Closes #711.
15851 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
15852 This should work on Windows, unlike the TH solution with
15855 * Eliminated use of TH in test suite.
15857 * Added `Text.Pandoc.Data` (non-exported) to hold the association
15858 list of embedded data files, if the `embed_data_files` flag is selected.
15859 This isolates the code that needs special treatment with file-embed or
15862 * Changes to `make-windows-installer.bat`.
15864 + Exit batch file if any of the cabal-dev installs fail.
15865 + There's no longer any need to reinstall `highlighting-kate`.
15866 + Don't start with a `cabal update`; leave that to the user.
15867 + Force reinstall of pandoc.
15869 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
15872## pandoc 1.10.0.4 (2013-01-20)
15874 * Fixed bug with escaped % in LaTeX reader. Closes #710.
15876## pandoc 1.10.0.3 (2013-01-20)
15878 * Added further missing fb2 tests to cabal file.
15880## pandoc 1.10.0.2 (2013-01-20)
15882 * Added fb2 tests to cabal file's extra-source-files.
15884## pandoc 1.10.0.1 (2013-01-20)
15886 * Bump version bounds on test-framework packages.
15888## pandoc 1.10 (2013-01-19)
15892 * New input formats: `mediawiki` (MediaWiki markup).
15894 * New output formats: `epub3` (EPUB v3 with MathML),
15895 `fb2` (FictionBook2 ebooks).
15897 * New `--toc-depth` option, specifying how many levels of
15898 headers to include in a table of contents.
15900 * New `--epub-chapter-level` option, specifying the header
15901 level at which to divide EPUBs into separate files.
15902 Note that this normally affects only performance, not the
15903 visual presentation of the EPUB in a reader.
15905 * Removed the `--strict` option. Instead of using `--strict`,
15906 one can now use the format name `markdown_strict` for either input
15907 or output. This gives more fine-grained control that `--strict`
15908 did, allowing one to convert from pandoc's markdown to strict
15909 markdown or vice versa.
15911 * It is now possible to enable or disable specific syntax
15912 extensions by appending them (with `+` or `-`) to the writer
15913 or reader name. For example,
15915 pandoc -f markdown-footnotes+hard_line_breaks
15917 disables footnotes and enables treating newlines as hard
15918 line breaks. The literate Haskell extensions are now implemented
15919 this way as well, using either `+lhs` or `+literate_haskell`.
15920 For a list of extension names, see the README under
15921 "Pandoc's Markdown."
15923 * The following aliases have been introduced for specific
15924 combinations of markdown extensions: `markdown_phpextra`,
15925 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
15926 work just like regular reader and writer names, and can be modified
15927 with extension modifiers as described above. (Note that conversion
15928 from one markdown dialect to another does not work perfectly,
15929 because there are differences in markdown parsers besides
15930 just the extensions, and because pandoc's internal document model is
15931 not rich enough to capture all of the extensions.)
15933 * New `--html-q-tags` option. The previous default was to use `<q>`
15934 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
15935 Moreover, they are not a robust way of typesetting quotes, since
15936 some user agents don't support them, and some CSS resets (e.g.
15937 bootstrap) prevent pandoc's quotes CSS from working properly.
15938 We now just insert literal quote characters by default in both
15939 `html` and `html5` output, but this option is provided for
15940 those who still want `<q>` tags.
15942 * The markdown reader now prints warnings (to stderr) about
15943 duplicate link and note references. Closes #375.
15945 * Markdown syntax extensions:
15947 + Added pipe tables. Thanks to François Gannaz for the initial patch.
15948 These conform to PHP Markdown Extra's pipe table syntax. A subset
15949 of org-mode table syntax is also supported, which means that you can
15950 use org-mode's nice table editor to create tables.
15952 + Added support for RST-style line blocks. These are
15953 useful for verse and addresses.
15955 + Attributes can now be specified for headers, using the same
15956 syntax as in code blocks. (However, currently only the
15957 identifier has any effect in most writers.) For example,
15961 See [the header above](#foo).
15963 + Pandoc will now act as if link references have been defined
15964 for all headers without explicit identifiers.
15965 So, you can do this:
15969 Link to [My header].
15970 Another link to [it][My header].
15976 + Command macros now work everywhere, including non-math.
15977 Environment macros still not supported.
15978 + `\input` now works, as well as `\include`. TEXINPUTS is used.
15979 Pandoc looks recursively into included files for more included files.
15981### Behavior changes
15983 * The Markdown reader no longer puts the text of autolinks in a
15984 `Code` inline. This means that autolinks will no longer appear
15985 in a monospace font.
15987 * The character `/` can now appear in markdown citation keys.
15989 * HTML blocks in strict_markdown are no longer required to begin
15990 at the left margin. Technically this is required, according to
15991 the markdown syntax document, but `Markdown.pl` and other markdown
15992 processors are more liberal.
15994 * The `-V` option has been changed so that if there are duplicate
15995 variables, those specified later on the command line take precedence.
15997 * Tight lists now work in LaTeX and ConTeXt output.
15999 * The LaTeX writer no longer relien on the `enumerate` package.
16000 Instead, it uses standard LaTeX commands to change the list numbering
16003 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
16004 tables to be split over page boundaries.
16006 * The RST writer now uses a line block to render paragraphs containing
16007 linebreaks (which previously weren't supported at all).
16009 * The markdown writer now applies the `--id-prefix` to footnote IDs.
16012 * The plain writer no longer uses backslash-escaped line breaks
16013 (which are not very "plain").
16015 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
16016 Read bytestring and use `Text`'s decodeUtf8 instead of using
16017 `System.IO.hGetContents`. This way you get a message saying
16018 "invalid UTF-8 stream" instead of "invalid byte sequence."
16019 You are also told which byte caused the problem.
16021 * Docx, ODT, and EPUB writers now download images specified by a URL
16022 instead of skipping them or raising an error.
16026 + The default CSS now left-aligns headers by default, instead of
16027 centering. This is more consistent with the rest of the writers.
16028 + A proper multi-level table of contents is now used in `toc.ncx`.
16029 There is no longer a subsidiary table of contents at the beginning
16031 + Code highlighting now works by default.
16032 + Section divs are used by default for better semantic markup.
16033 + The title is used instead of "Title Page" in the table of contents.
16034 Otherwise we have a hard-coded English string, which looks
16035 strange in ebooks written in other languages. Closes #572.
16039 + Put mathjax in span with class "math". Closes #562.
16040 + Put citations in a span with class "citation." In HTML5, also include
16041 a `data-cite` attribute with a space-separated list of citation
16044 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
16045 This treats both `\r\n` and `\n` as `\n` on input, no matter
16046 what platform we're running on.
16048 * Citation processing is now done in the Markdown and LaTeX
16049 readers, not in `pandoc.hs`. This makes it easier for library users
16052### Template changes
16054 * HTML: Added css to template to preserve spaces in `<code>` tags.
16055 Thanks to Dirk Laurie.
16057 * Beamer: Remove English-centric strings in section pages.
16058 Section pages used to have "Section" and a number as well as the
16059 section title. Now they just have the title. Similarly for part
16060 and subsection. Closes #566.
16062 * LaTeX, ConTeXt: Added papersize variable.
16064 * LaTeX, Beamer templates: Use longtable instead of ctable.
16066 * LaTeX, Beamer templates: Don't require 'float' package for tables.
16067 We don't actually seem to use the '[H]' option.
16069 * Markdown, plain: Fixed titleblock so it is just a single string.
16070 Previously separate title, author, and date variables were used,
16071 but this didn't allow different kinds of title blocks.
16075 + Rationalized templates. Previously there were three different
16076 templates involved in epub production. There is now just one
16077 template, `default.epub` or `default.epub3`. It can now be
16078 overridden using `--template`, just like other templates.
16079 The titlepage is now folded into the default template.
16080 A `titlepage` variable selects it.
16081 + UTF-8, lang tag, meta tags, title element.
16083 * Added scale-to-width feature to beamer template
16087 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
16088 Previously header identifiers were autogenerated by the writers.
16089 Now they are added in the readers (either automatically or explicitly).
16091 * `Text.Pandoc.Builder`:
16093 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
16094 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
16095 custom Monoid instances for `Many Inline` and `Many Block. This
16096 allows `Many` to be made an instance of `Foldable` and `Traversable`.
16097 + The old `Listable` class has been removed.
16098 + The module now exports `isNull`, `toList`, `fromList`.
16099 + The old `Read` and `Show` instances have been removed; derived
16100 instances are now used.
16101 + Added `headerWith`.
16103 * The readers now take a `ReaderOptions` rather than a `ParserState`
16104 as a parameter. Indeed, not all parsers use the `ParserState` type;
16105 some have a custom state. The motivation for this change was to separate
16106 user-specifiable options from the accounting functions of parser state.
16108 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
16109 formerly in `Text.Pandoc.Shared`, and its associated
16110 data types. It also includes a new type `ReaderOptions`, which
16111 contains many options formerly in `ParserState`, and its associated
16114 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
16115 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
16116 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
16117 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
16118 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
16119 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
16120 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
16121 + `ParserState.stateIndentedCodeClasses` ->
16122 `ReaderOptions.readerIndentedCodeClasses`.
16123 + Added `ReaderOptions.readerCitationStyle`.
16125 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
16126 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
16127 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
16128 been renamed `writerEpubMetadata` for consistency.
16130 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
16131 longer stylesheet, fonts, reference files as separate parameters.
16133 * Removed `writerLiterateHaskell` from `WriterOptions`, and
16134 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
16135 by an extension (`Ext_literate_haskell`).
16137 * Removed deprecated `writerXeTeX`.
16139 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
16140 Strict is now handled through extensions.
16142 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
16143 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
16144 and `multimarkdownExtensions`, as well as the `Extensions` type.
16146 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
16149 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
16150 (thanks to Sergey Astanin).
16154 + Added `getReader`, `getWriter` to `Text.Pandoc`.
16155 + `writers` is now an association list `(String, Writer)`.
16156 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
16157 an `IOByteStringWriter`. ALL writers are now in the 'writers'
16158 list, including the binary writers and FB2 writer. This allows
16159 code in `pandoc.hs` to be simplified.
16160 + Changed type of `readers`, so all readers are in IO.
16161 Users who want pure readers can still get them form the reader
16162 modules; this just affects the function `getReader` that looks up
16163 a reader based on the format name. The point of this change is to
16164 make it possible to print warnings from the parser.
16166 * `Text.Pandoc.Parsing`:
16168 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
16169 No other module directly imports Parsec. This will make it easier
16170 to change the parsing backend in the future, if we want to.
16171 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
16172 + Export the type synonym `Parser`.
16173 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
16174 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
16175 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
16176 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
16177 + `ParserState` is no longer an instance of `Show`.
16178 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
16179 + Generalized type of `withQuoteContext`.
16180 + Added `guardEnabled`, `guardDisabled`, `getOption`.
16181 + Removed `failIfStrict`.
16182 + `lookupKeySrc` and `fromKey` are no longer exported.
16184 * `Data.Default` instances are now provided for `ReaderOptions`,
16185 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
16186 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
16187 of `defaultWriterOptions` (which is still defined). Closes #546.
16189 * `Text.Pandoc.Shared`:
16191 + Added `safeRead`.
16192 + Renamed `removedLeadingTrailingSpace` to `trim`,
16193 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
16194 + Count `\r` as space in `trim` functions.
16195 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
16197 + Removed `failUnlessLHS`.
16198 + Export `compactify'`, formerly in Markdown reader.
16199 + Export `isTightList`.
16200 + Do not export `findDataFile`.
16201 + `readDataFile` now returns a strict ByteString.
16202 + Export `readDataFileUTF8` which returns a String, like the
16203 old `readDataFile`.
16204 + Export `fetchItem` and `openURL`.
16206 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
16207 Removed `readImageSize`.
16209 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
16210 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
16213 * `Text.Pandoc.UTF8` is now an exposed module.
16215 * `Text.Pandoc.Biblio`:
16217 + csl parameter now a `String` rather than a `FilePath`.
16218 + Changed type of `processBiblio`. It is no longer in the IO monad.
16219 It now takes a `Maybe Style` argument rather than parameters for CSL
16220 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
16221 the style file and add abbreviations.)
16223 * Markdown reader now exports `readMarkdownWithWarnings`.
16225 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
16230 * Make `--ascii` work properly with `--self-contained`. Closes #568.
16234 + Fixed link parser to avoid exponential slowdowns. Closes #620.
16235 Previously the parser would hang on input like this:
16237 [[[[[[[[[[[[[[[[[[hi
16239 We fixed this by making the link parser parser characters
16240 between balanced brackets (skipping brackets in inline code spans),
16241 then parsing the result as an inline list. One change is that
16243 [hi *there]* bud](/url)
16245 is now no longer parsed as a link. But in this respect pandoc behaved
16246 differently from most other implementations anyway, so that seems okay.
16248 + Look for raw html/latex blocks before tables.
16249 Otherwise the following gets parsed as a table:
16260 + Added support for `:target:` on `.. image::` blocks
16262 + Field list fixes:
16264 - Fixed field lists items with body beginning after a new line
16266 - Allow any char but ':' in names of field lists in RST reader
16268 - Don't allow line breaks in field names.
16269 - Require whitespace after field list field names.
16270 - Don't create empty definition list for metadata field lists.
16271 Previously a field list consisting only of metadata fields (author,
16272 title, date) would be parsed as an empty DefinitionList, which is
16273 not legal in LaTeX and not needed in any format.
16275 + Don't recognize inline-markup starts inside words.
16276 For example, `2*2 = 4*1` should not contain an emphasized
16277 section. Added test case for "Literal symbols". Closes #569.
16278 + Allow dashes as separator in simple tables. Closes #555.
16279 + Added support for `container`, `compound`, `epigraph`,
16280 `rubric`, `highlights`, `pull-quote`.
16281 + Added support for `.. code::`.
16282 + Made directive labels case-insensitive.
16283 + Removed requirement that directives begin at left margin.
16284 This was (correctly) not in earlier releases; docutils doesn't
16285 make the requirement.
16286 + Added support for `replace::` and `unicode::` substitutions.
16287 + Ignore unknown interpreted roles.
16288 + Renamed image parser to `subst`, since it now handles all
16289 substitution references.
16293 + Allow newlines before pipes in table. Closes #654.
16294 + Fixed bug with list items containing line breaks.
16295 Now pandoc correctly handles hard line breaks inside list items.
16296 Previously they broke list parsing.
16297 + Implemented comment blocks.
16298 + Fixed bug affected words ending in hyphen.
16299 + Properly handle links with surrounding brackets.
16300 Square brackets need to be used when the link isn't surrounded by
16301 spaces or punctuation, or when the URL ending may be ambiguous.
16303 + Removed nullBlock. Better to know about parsing problems than
16304 to skip stuff when we get stuck.
16305 + Allow ID attributes on headers.
16306 + Textile reader: Avoid parsing dashes as strikeout.
16307 Previously the input
16314 would be parsed with strikeouts rather than dashes. This fixes
16315 the problem by requiring that a strikeout delimiting - not be
16316 followed by a -. Closes #631.
16317 + Expanded list of `stringBreakers`.
16318 This fixes a bug on input like "(_hello_)" which should
16319 be a parenthesized emphasized "hello".
16320 The new list is taken from the PHP source of textile 2.4.
16321 + Fixed autolinks. Previously the textile reader and writer
16322 incorrectly implemented RST-style autolinks for URLs and email
16323 addresses. This has been fixed. Now an autolink is done this way:
16324 `"$":http://myurl.com`.
16325 + Fixed footnotes bug in textile. This affected notes occurring
16326 before punctuation, e.g. `foo[1].`. Closes #518.
16330 + Better handling of citation commands.
16331 + Better handling of `\noindent`.
16332 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
16334 + Made `rawLaTeXInline` try to parse block commands as well. This
16335 is usually what we want, given how `rawLaTeXInline` is used in
16336 the markdown and textile readers. If a block-level LaTeX command
16337 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
16338 we can treat it as raw inline LaTeX.
16339 + Handle `\slash` command. Closes #605.
16340 + Basic `\enquote` support.
16341 + Fixed parsing of paragraphs beginning with a group. Closes #606.
16342 + Use curly quotes for bare straight quotes.
16343 + Support obeylines environment. Closes #604.
16344 + Guard against "begin", "end" in inlineCommand and
16346 + Better error messages for environments. Now it should tell you that
16347 it was looking for \end{env}, instead of giving "unknown parse error."
16351 + Added HTML 5 tags to list of block-level tags.
16352 + HTML reader: Fixed bug in `htmlBalanced`, which
16353 caused hangs in parsing certain markdown input using
16355 + Parse `<q>` as `Quoted DoubleQuote`.
16356 + Handle nested `<q>` tags properly.
16357 + Modified `htmlTag` for fewer false positives.
16358 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
16359 This makes it more useful in the wikimedia and markdown parsers.
16361 * DocBook reader: Support title in "figure" element. Closes #650.
16363 * MediaWiki writer:
16365 + Remove newline after `<br/>` in translation of `LineBreak`
16366 There's no particular need for a newline (other than making the
16367 generated MediaWiki source look nice to a human), and in fact
16368 sometimes it is incorrect: in particular, inside an enumeration, list
16369 items cannot have embedded newline characters. (Brent Yorgey)
16370 + Use `<code>` not `<tt>` for Code.
16372 * Man writer: Escape `-` as `\-`.
16373 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
16374 signs. That is preferable for use with command-line options. See
16375 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
16376 to Andrea Bolognani for bringing the issue to our attention.
16380 + Improved line block output. Use nonbreaking spaces for
16381 initial indent (otherwise lost in HTML and LaTeX).
16382 Allow multiple paragraphs in a single line block.
16383 Allow soft breaks w continuations in line blocks.
16384 + Properly handle images with no alt text. Closes #678.
16385 + Fixed bug with links with duplicate text. We now (a) use anonymous
16386 links for links with inline URLs, and (b) use an inline link instead
16387 of a reference link if the reference link would require a label that
16388 has already been used for a different link. Closes #511.
16389 + Fixed hyperlinked images. Closes #611. Use `:target:`
16390 field when you have a simple linked image.
16391 + Don't add `:align: center` to figures.
16393 * Texinfo writer: Fixed internal cross-references.
16394 Now we insert anchors after each header, and use `@ref` instead of `@uref`
16395 for links. Commas are now escaped as `@comma{}` only when needed;
16396 previously all commas were escaped. (This change is needed, in part,
16397 because `@ref` commands must be followed by a real comma or period.) Also
16398 insert a blank line in from of `@verbatim` environments.
16402 + Made --id-prefix work in DocBook as well as HTML.
16404 + Don't include empty captions in figures. Closes #581.
16408 + Use `\hspace*` for nonbreaking space after line break,
16409 since `~` spaces after a line break are just ignored.
16411 + Don't escape `_` in URLs or hyperref identifiers.
16412 + Properly escape strings inside `\url{}`. Closes #576.
16413 + Use `[fragile]` only for slides containing code rendered
16414 using listings. Closes #649.
16415 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
16416 highlighting-kate's macros, which redefine `|` as a short verbatim
16417 delimiter. Thanks to Björn Peemöller for raising this issue.
16418 + Use minipage rather than parbox for block containers in tables.
16419 This allows verbatim code to be included in grid tables.
16421 + Prevent paragraphs containing only linebreaks or spaces.
16425 + Included `highlighting-css` for code spans, too.
16426 Previously it was only included if used in a code block. Closes #653.
16427 + Improved line breaks with `<dd>` tags. We now put a newline between
16428 `</dd>` and `<dd>` when there are multiple definitions.
16429 + Changed mathjax cdn url so it doesn't use https. (This caused
16430 problems when used with `--self-contained`.) See #609.
16434 + `--number-sections` now works properly.
16435 + Don't strip meta and link elements in epub metadata.
16436 Patch from aberrancy. Closes #589.
16437 + Fixed a couple validation bugs.
16438 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
16439 of chapters in some readers, which apparently sort ch2 after ch10.
16442 * ODT writer: properly set title property (Arlo O'Keeffe).
16446 + Fixed bug with nested lists. Previously a list like
16453 would come out with a bullet instead of "2."
16454 Thanks to Russell Allen for reporting the bug.
16455 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
16456 This seems to fix a problem viewing pandoc-generated
16457 docx files in LibreOffice.
16458 + Use integer ids for bookmarks. Closes #626.
16459 + Added nsid to abstractNum elements. This helps when merging
16460 word documents with numbered or bulleted lists. Closes #627.
16461 + Use separate footnotes.xml for notes.
16462 This seems to help LibreOffice convert the file, even though
16463 it was valid docx before. Closes #637.
16464 + Use rIdNN identifiers for r:embed in images.
16465 + Avoid reading image files again when we've already processed them.
16466 + Fixed typo in `referenc.docx` that prevented image captions from
16467 working. Thanks to Huashan Chen.
16469 * `Text.Pandoc.Parsing`:
16471 + Fixed bug in `withRaw`, which didn't correctly handle the case
16472 where nothing is parsed.
16473 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
16474 though it still doesn't implement quoted strings in email addresses.
16475 + Revised URI parser. It now allows many more schemes, allows
16476 uppercase URIs, and better handles trailing punctuation and
16477 trailing slashes in bare URIs. Added many tests.
16478 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
16479 etc. parse properly. Formerly we had some English-centric heuristics,
16480 but they are no longer needed. Closes #698.
16482 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
16483 This fixes bug with Chinese commas in markdown and reST tables, and
16484 a bug that caused combining characters to be dropped.
16486 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
16488 * `Text.Pandoc.Biblio`:
16490 + Run `mvPunc` and `deNote` on metadata too.
16491 This fixed a bug with notes on titles using footnote styles.
16492 + Fixed bug in fetching CSL files from CSL data directory.
16494 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
16495 is provided. It should be the URL up to the path.
16497 * Fixed/simplified diff output for tests.
16498 Biblio: Make sure mvPunc and deNote run on metadata too.
16499 This fixed a bug with notes on titles using footnote styles.
16501### Under the hood improvements
16503 * We no longer depend on `utf8-string`. Instead we use functions
16504 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
16506 * Use `safeRead` instead of using `reads` directly (various modules).
16508 * "Implicit figures" (images alone in a paragraph) are now handled
16509 differently. The markdown reader gives their titles the prefix `fig:`; the
16510 writers look for this before treating the image as a figure. Though this
16511 is a bit of a hack, it has two advantages: (i) implicit figures can be
16512 limited to the markdown reader, and (ii) they can be deactivated by turning
16513 off the `implicit_figures` extension.
16515 * `catch` from `Control.Exception` is now used instead of the
16516 old Preface `catch`.
16518 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
16519 and `oneOfStrings` (which is now non-backtracking).
16521 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
16522 Now citeproc-hs is fixed upstream, so this is no longer needed.
16525 * Textile reader: Improved speed of `hyphenedWords`.
16526 This speeds up the textile reader by about a factor of 4.
16528 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
16529 better performance, and automatic normalization.
16531 * Major rewrite of markdown reader:
16533 + Use `Text.Pandoc.Builder` instead of lists. This also
16534 means that everything is normalized automatically.
16535 + Move to a one-pass parsing strategy, returning values in the reader
16536 monad, which are then run (at the end of parsing) against the final
16539 * In HTML writer, we now use `toHtml` instead of pre-escaping.
16540 We work around the problem that blaze-html unnecessarily escapes `'`
16541 by pre-escaping just the `'` characters, instead of the whole string.
16542 If blaze-html later stops escaping `'` characters, we can simplify
16543 `strToHtml` to `toHtml`. Closes #629.
16545 * Moved code for embedding images in RTFs from `pandoc.hs` to the
16546 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
16548 * Moved citation processing from `pandoc.hs` into the readers.
16549 This makes things more convenient for library users.
16551 * The man pages are now built by an executable `make-pandoc-man-pages`,
16552 which has its own stanza in the cabal file so that dependencies can be
16553 handled by Cabal. Special treatment in `Setup.hs` ensures that this
16554 executable never gets installed; it is only used to create the man pages.
16556 * The cabal file has been modified so that the pandoc library is used
16557 in building the pandoc executable. (This required moving `pandoc.hs`
16558 from `src` to `.`.) This cuts compile time in half.
16560 * The `executable` and `library` flags have been removed.
16562 * `-threaded` has been removed from ghc-options.
16564 * Version bounds of dependencies have been raised, and the
16565 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
16568 * We now require base >= 4.2.
16570 * Integrated the benchmark program into cabal. One can now do:
16572 cabal configure --enable-benchmarks && cabal build
16573 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
16575 The benchmark now uses README + testsuite, so benchmark results
16576 from older versions aren't comparable.
16578 * Integrated test suite with cabal.
16579 To run tests, configure with `--enable-tests`, then `cabal test`.
16580 You can specify particular tests using `--test-options='-t markdown'`.
16581 No output is shown unless tests fail. The Haskell test modules
16582 have been moved from `src/` to `tests/`.
16584 * Moved all data files and templates to the `data/` subdirectory.
16586 * Added an `embed_data_files` cabal flag. This causes all
16587 data files to be embedded in the binary, so that the binary
16588 is self-sufficient and can be relocated anywhere, copied on
16589 a USB key, etc. The Windows installer now uses this.
16590 (Since we no longer have the option to build the executable
16591 without the library, this is the only way to get a relocatable
16592 binary on Windows.)
16594 * Removed pcre3.dll from windows package.
16595 It isn't needed unless highlighting-kate is compiled with the
16596 `pcre-light` flag. By default, regex-prce-builtin is used.
16599## pandoc 1.9.4.5 (2012-10-21)
16601 * Raised version bounds on network, base64-bytestring, json,
16602 and template-haskell.
16604## pandoc 1.9.4.4 (2012-10-20)
16606 * Removed `tests` flag and made test suite into a proper cabal
16607 test suite, which can now be enabled using `--enable-tests`
16608 and run with `cabal test`.
16610 * Moved man page creation out of `Setup.hs` and into an
16611 executable built by Cabal, but never installed. This
16612 allows dependencies to be specified, and solves a problem
16613 with 1.9.4.3, which could only be installed if `data-default`
16614 had already been installed.
16616 * Updated `lhs-latex.tex` test for latest highlighting-kate
16617 representation of backticks.
16619## pandoc 1.9.4.3 (2012-10-20)
16621 * Removed `-threaded` from default compile flags.
16623 * Modified modules to compile with GHC 7.6 and latest version of time
16626## pandoc 1.9.4.2 (2012-06-29)
16628 * Don't encode/decode file paths if base >= 4.4.
16629 Prior to base 4.4, filepaths and command line arguments were treated
16630 as unencoded lists of bytes, not unicode strings, so we had to work
16631 around that by encoding and decoding them. This commit adds CPP
16632 checks for the base version that intelligibly enable encoding/decoding
16633 when needed. Fixes a bug with multilingual filenames when pandoc was
16634 compiled with ghc 7.4 (#540).
16636 * Don't generate an empty H1 after hrule slide breaks.
16637 We now use a slide-level header with contents `[Str "\0"]` to mark
16638 an hrule break. This avoids creation of an empty H1 in these
16639 contexts. Closes #484.
16641 * Docbook reader: Added support for "bold" emphasis. Thanks to mb21.
16643 * In make_osx_package.sh, ensure citeproc-hs is built with the
16644 embed_data_files flag.
16646 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
16648 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
16649 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
16651 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
16654 * Added webm to mime types. Closes #543.
16656 * Added some missing exports and tests to the cabal file
16657 (Alexander V Vershilov).
16659 * Compile with `-rtsopts` and `-threaded` by default.
16661## pandoc 1.9.4.1 (2012-06-08)
16663 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
16665 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
16666 variables. Make TOC links black.
16668 * LaTeX template improvements.
16670 + Don't print date unless one is given explicitly in the document.
16671 + Simplified templates.
16672 + Use fontenc [T1] by default, and lmodern.
16673 + Use microtype if available.
16677 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
16678 Motivation: `@item1 [50]` should be as close as possible to
16680 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
16681 beginning with a citation to be empty. Closes #531.
16683 * Fixed documentation on mixed lists. Closes #533.
16685## pandoc 1.9.4 (2012-06-03)
16687 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
16688 footnotes and captions. We now handle note citations by inserting
16689 footnotes during initial citation processing, and doing a separate
16690 pass later to remove notes inside notes.
16692 * Added 'zenburn' highlight style from highlighting-kate.
16694 * Added Slideous writer. Slideous is an HTML + javascript slide show
16695 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
16699 + Ensure we don't have extra blank lines at ends of cells.
16700 This can cause LaTeX errors, as they are interpreted as new paragraphs.
16701 + More consistent interblock spacing.
16702 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
16703 code in LaTeX. Closes #527.
16704 + Ensure that a Verbatim at the end of a footnote is followed by
16705 a newline. (Fixes a regression in the previous version.)
16706 + In default template, use black for internal links and TOC.
16707 Added commented-out code to use footnotes for links, as would
16708 be suitable in print output.
16710 * Beamer writer: When `--incremental` is used, lists inside
16711 a block quote should appear all at once. (This makes Beamer
16712 output consistent with the HTML slide show formats.)
16716 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
16717 to avoid gobbling spaces after the `%` sign.
16718 + Ensure space after `\stopformula`.
16722 + Use `:` form instead of `~` in definition lists, for better
16723 compatibility with other markdown implementations.
16724 + Don't wrap the term, because it breaks definition lists.
16725 + Use a nonzero space to prevent false recognition
16726 of list marker in ordered lists. Closes #516.
16728 * Org writer: Add space before language name. Closes #523.
16730 * Docx writer: Simplified bullet characters so they work properly
16731 with Word 2007. Closes #520.
16733 * LaTeX reader: Support `\centerline`.
16735 * RST reader: handle figures. Closes #522.
16737 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
16740## pandoc 1.9.3 (2012-05-12)
16742 * Added docbook reader (with contributions from Mauro Bieg).
16744 * Fixed bug in `fromEntities`. The previous version would turn
16745 `hi & low you know;` into `hi &`.
16749 + Don't skip nonbreaking spaces.
16750 Previously a paragraph containing just ` ` would be rendered
16751 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
16752 + Support `<col>` and `<caption>` in tables. Closes #486.
16756 + Don't recognize references inside delimited code blocks.
16757 + Allow list items to begin with lists.
16761 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
16762 + Control sequences can't be followed by a letter.
16763 This fixes a bug where `\begingroup` was parsed as `\begin`
16764 followed by `group`.
16765 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
16766 + Make `\label` and `\ref` sensitive to `--parse-raw`.
16767 If `--parse-raw` is selected, these will be parsed as raw latex
16768 inlines, rather than bracketed text.
16769 + Don't crash on unknown block commands (like `\vspace{10pt}`)
16770 inside `\author`; just skip them. Closes #505.
16774 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
16775 + Added support for LaTeX blocks and inlines (Paul Rivier).
16776 + Better conformance to RedCloth inline parsing (Paul Rivier).
16777 + Parse '+text+' as emphasized (should be underlined, but this
16778 is better than leaving literal plus characters in the output.
16780 * Docx writer: Fixed multi-paragraph list items. Previously they each
16781 got a list marker. Closes #457.
16785 + Added `--no-tex-ligatures` option to avoid replacing
16786 quotation marks and dashes with TeX ligatures.
16787 + Use `fixltx2e` package to provide `\textsubscript`.
16788 + Improve spacing around LaTeX block environments:
16789 quote, verbatim, itemize, description, enumerate.
16791 + Use blue instead of pink for URL links in latex/pdf output.
16793 * ConTeXt writer: Fixed escaping of `%`.
16794 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
16795 Inside URLs, `%` needs to be escaped as `\%`
16796 Thanks to jmarca and adityam for the fix. Closes #492.
16798 * Texinfo writer: Escape special characters in node titles.
16799 This fixes a problem pointed out by Joost Kremers. Pandoc used
16800 to escape an '@' in a chapter title, but not in the corresponding
16801 node title, leading to invalid texinfo.
16803 * Fixed document encoding in texinfo template.
16804 Resolves Debian Bug #667816.
16808 + Don't force delimited code blocks to be flush left.
16809 Fixes bug with delimited code blocks inside lists etc.
16810 + Escape `<` and `$`.
16812 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
16813 Previously we used `\href{\#ident}{text}`, which didn't work on
16814 all systems. Thanks to Dirk Laurie.
16816 * RST writer: Don't wrap link references. Closes #487.
16818 * Updated to use latest versions of blaze-html, mtl.
16821## pandoc 1.9.2 (2012-04-05)
16825 + Made `lstlisting` work as a proper verbatim environment.
16826 + Fixed bug parsing LaTeX tables with one column.
16830 + Use `{}` around `ctable` caption, so that formatting can be used.
16831 + Don't require eurosym package unless document has a €.
16833 * LaTeX template: Added variables for `geometry`, `romanfont`,
16834 `sansfont`, `mathfont`, `mainfont` so users can more easily
16839 + Run latex engine at least two times, to ensure
16840 that PDFs will have hyperlinked bookmarks.
16841 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
16843 * Texinfo writer: retain directories in image paths. (Peter Wang)
16845 * RST writer: Better handling of inline formatting, in accord
16846 with docutils' "inline markup recognition rules" (though we don't
16847 implement the unicode rules fully). Now `hi*there*hi` gets
16848 rendered properly as `hi\ *there*\ hi`, and unnecessary
16849 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
16853 + Parse `\ ` as null, not escaped space.
16854 + Allow `` :math:`...` `` even when not followed by blank
16855 or `\`. This does not implement the complex rule docutils follows,
16856 but it should be good enough for most purposes.
16857 + Add support for the rST default-role directive. (Greg Maslov)
16859 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
16862 * Markdown reader: Properly handle citations nested in other inline
16865 * Markdown writer: don't replace empty alt in image with "image".
16867 * DZSlides: Updated template.html and styles in default template.
16868 Removed bizarre CSS for `q` in dzslides template.
16870 * Avoid repeated `id` attribute in section and header in HTML slides.
16872 * README improvements: new instructions on internal links,
16873 removed misleading note on reST math.
16877 + Fixed Windows installer so that dzslides works.
16878 + Removed stripansi.sh.
16879 + Added .travis.yml for Travis continuous integration support..
16880 + Fixed upper bound for zlib (Sergei Trofimovich).
16881 + Fixed upper bound for test-framework.
16882 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
16885## pandoc 1.9.1.2 (2012-03-09)
16887 * Added `beamer+lhs` as output format.
16889 * Don't escape `<` in `<style>` tags with `--self-contained`.
16890 This fixes a bug which prevented highlighting from working
16891 when using `--self-contained`.
16893 * PDF: run latex engine three times if `--toc` specified.
16894 This fixes page numbers in the table of contents.
16896 * Docx writer: Added TableNormal style to tables.
16898 * LaTeX math environment fixes. `aligned` is now used instead of
16899 the nonexistent `aligned*`. `multline` instead of the nonexistent
16902 * LaTeX writer: Use `\textasciitilde` for literal `~`.
16904 * HTML writer: Don't escape contents of EQ tags with --gladtex.
16905 This fixes a regression from 1.8.
16907 * Use `<q>` tags for Quoted items for HTML5 output.
16908 The quote style can be changed by modifying the template
16909 or including a css file. A default quote style is included.
16911 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
16912 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
16914 * Updated LaTeX template for better language support.
16915 Use `polyglossia` instead of `babel` with xetex.
16916 Set `lang` as documentclass option.
16917 `\setmainlanguage` will use the last of a comma-separated
16918 list of languages. Thanks to François Gannaz.
16920 * Fixed default LaTeX template so `\euro` and `€` work. The
16921 `eurosym` package is needed if you are using pdflatex.
16923 * Fixed escaping of period in man writer (thanks to Michael Thompson).
16925 * Fixed list label positions in beamer.
16927 * Set `mainlang` variable in context writer.
16928 This parallels behavior of latex writer. `mainlang` is the last
16929 of a comma-separated list of languages in lang.
16931 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
16933 * Changed `-V` so that you can specify a key without a value.
16934 Such keys get the value `true`.
16936 * Fixed permissions on installed man pages - thanks Magnus Therning.
16938 * Windows installer: require XP or higher. The installer is
16939 now compiled on a Windows 7 machine, which fixes a problem
16940 using citation functions on Windows 7.
16942 * OSX package: Check for 64-bit Intel CPU before installing.
16945## pandoc 1.9.1.1 (2012-02-11)
16947 * Better handling of raw latex environments in markdown. Now
16953 turns into a raw latex block as expected.
16955 * Improvements to LaTeX reader:
16957 + Skip options after block commands.
16958 + Correctly handle `{\\}` in braced.
16959 + Added a needed 'try'.
16960 + Citations: add `, ` to suffix if it doesn't start with space or
16961 punctuation. Otherwise we get no space between the year and the
16962 suffix in author-date styles.
16964 * Added two needed data files for S5. This fixes a problem with
16965 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
16966 which was no longer being used.
16968 * Fixed some minor problems in `reference.docx`:
16969 name on "Date" style, `xCs` instead of `xIs`.
16971 * Fixed a problem creating docx files using a reference docx
16972 modified using Word. The problem seems to be that Word
16973 modifies `_rels/.rels`, changing the Type of the Relationship to
16974 `docProps/core.xml`. Pandoc now changes this back to the correct
16975 value if it has been altered, fixing the problem.
16977 * Fixed html5 template so it works properly with highlighting.
16979## pandoc 1.9.1 (2012-02-09)
16983 + Fixed regression in 1.9; properly handle escaped $ in latex math.
16984 + Put LaTeX verse environments in blockquotes.
16988 + Limit nesting of strong/emph. This avoids exponential lookahead
16989 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
16990 + Improved attributes syntax (in code blocks/spans): (1)
16991 Attributes can contain line breaks. (2) Values in key-value
16992 attributes can be surrounded by either double or single quotes, or
16993 left unquoted if they contain no spaces.
16995 * Headers no longer wrap in markdown or RST writers.
16997 * Added `stateMaxNestingLevel` to `ParserState`.
16998 We set this to 6, so you can still have `Emph` inside `Emph`,
16999 just not indefinitely.
17001 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
17003 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
17006 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
17008## pandoc 1.9.0.5 (2012-02-06)
17010 * Changed cabal file so that build-depends for the test program
17011 are not required unless the tests flag is used.
17013 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
17014 form ligatures (dashes) in code spans.
17016## pandoc 1.9.0.4 (2012-02-06)
17018 * Raised version bound on test-framework to avoid problems
17019 compiling tests on GHC 7.4.1.
17021 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
17022 so citations don't just disappear unless you process with
17023 citeproc. Ignore `\bibliographystyle`, `\nocite`.
17025 * Simplified tex2pdf; it will always run latex twice to
17026 resolve table of contents and hyperrefs.
17028## pandoc 1.9.0.3 (2012-02-06)
17030 * Require Cabal >= 1.10.
17032 * Tweaked cabal file to meet Cabal 1.10 requirements.
17034## pandoc 1.9.0.2 (2012-02-05)
17036 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
17039## pandoc 1.9 (2012-02-05)
17043 * Added a Microsoft Word `docx` writer. The writer includes support
17044 for highlighted code and for math (which is converted from TeX to OMML,
17045 Office's native math markup language, using texmath's new OMML module).
17046 A new option `--reference-docx` allows the user to customize the
17049 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
17051 * Better support for slide shows:
17053 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
17054 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
17056 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
17057 slide presentations.
17059 + New, flexible rules for dividing documents into sections and slides
17060 (see the "Structuring the slide show" in the User's Guide). These
17061 are backward-compatible with the old rules, but they allow slide
17062 shows to be organized into sections and subsections containing
17065 + A new `--slide-level` option allows users to override defaults
17066 and select a slide level below the first header level with content.
17068 * A new `--self-contained` option produces HTML output that does not
17069 depend on an internet connection or the presence of any external
17070 files. Linked images, CSS, and javascript is downloaded (or fetched
17071 locally) and encoded in `data:` URIs. This is useful for making portable
17072 `HTML slide shows. The --offline` option has been deprecated and is now
17073 `treated as a synonym or --self-contained`.
17075 * Support for PDF output:
17077 + Removed the old `markdown2pdf`.
17078 + `pandoc` can now create PDFs (assuming you have latex and a set of
17079 appropriate packages installed): just specify an output file with the
17081 + A new option `--latex-engine` allows you to specify `pdflatex`,
17082 `xelatex`, or `lualatex` as the processor.
17084 * Highlighting changes:
17086 + Syntax highlighting is now a standard feature; the `highlighting`
17087 flag is no longer needed when compiling.
17088 + A new `--no-highlight` option allows highlighting to be disabled.
17089 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
17090 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
17091 + A new `--highlight-style` option selects between various highlighting
17094 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
17096 * LaTeX `\include` and `\usepackage` commands are now processed,
17097 provided the files are in the working directory.
17099 * EPUB improvements:
17101 + Internal and external links now work in EPUB.
17102 + Raw HTML is allowed.
17103 + New `--epub-embed-font` option.
17104 + Customizable templates for EPUB pages offer more control over
17105 formatting: `epub-page.html`, `epub-coverimage.html`,
17106 `epub-titlepage.html`.
17108 * `--mathml` now works with DocBook.
17110 * Added support for math in RST reader and writer. Inline math uses the
17111 `` :math:`...` `` construct. Display math uses
17115 or if the math is multiline,
17121 These constructions are now supported now by `rst2latex.py`.
17123 * Github syntax for fenced code blocks is supported in pandoc's
17124 markdown. You can now write
17136 * Easier scripting: a new `toJsonFilter` function makes it easier to
17137 write Haskell scripts to manipulate the Pandoc AST.
17138 See [Scripting with pandoc](scripting.html#pandoc-1.9-changes).
17140### Behavior changes
17142 * Fixed parsing of consecutive lists in markdown.
17143 Pandoc previously behaved like Markdown.pl for consecutive
17144 lists of different styles. Thus, the following would be parsed
17145 as a single ordered list, rather than an ordered list followed
17146 by an unordered list:
17154 This change makes pandoc behave more sensibly, parsing this as
17155 two lists. Any change in list type (ordered/unordered) or in
17156 list number style will trigger a new list. Thus, the following
17157 will also be parsed as two lists:
17165 Since we regard this as a bug in Markdown.pl, and not something
17166 anyone would ever rely on, we do not preserve the old behavior
17167 even when `--strict` is selected.
17169 * Dashes work differently with `--smart`: `---` is always em-dash,
17170 and `--` is always en-dash. Pandoc no longer tries to guess when
17171 `-` should be en-dash. *Note:* This may change how existing documents
17172 look when processed with pandoc. A new option, `--old-dashes`,
17173 is provided for legacy documents.
17175 * The markdown writer now uses setext headers for levels 1-2.
17176 The old behavior (ATX headers for all levels) can be restored
17177 using the new `--atx-headers` option.
17179 * Links are now allowed in markdown image captions. They are also
17180 allowed in links, but will appear there as regular text. So,
17182 [link with [link](/url)](/url)
17186 <p><a href="/url">link with link</a></p>
17188 * Improved handling of citations using `citeproc-hs-0.3.4`.
17189 Added `--citation-abbreviations` option.
17191 * Citation keys can no longer end with a punctuation character.
17192 This means that `@item1.` will be parsed as a citation with key
17193 'item1', followed by a period, instead of a citation with key
17194 'item1.', as was the case previously.
17196 * In HTML output, citations are now put in a span with class `citation`.
17198 * The markdown reader now recognizes DocBook block and inline tags.
17199 It was always possible to include raw DocBook tags in a markdown
17200 document, but now pandoc will be able to distinguish block from
17201 inline tags and behave accordingly. Thus, for example,
17207 will not be wrapped in `<para>` tags.
17209 * The LaTeX parser has been completely rewritten; it is now much more
17210 accurate, robust, and extensible. However, there are two important
17211 changes in how it treats unknown LaTeX. (1) Previously, unknown
17212 environments became BlockQuote elements; now, they are treated
17213 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
17214 same as `xyz`. (2) Previously, arguments of unknown commands
17215 were passed through with their braces; now the braces are stripped
17218 * `--smart` is no longer selected automatically with `man` output.
17220 * The deprecated `--xetex` option has been removed.
17222 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
17223 instead. `html5` and `html5+lhs` are now separate output formats.
17225 * Single quotes are no longer escaped in HTML output. They do not
17226 need to be escaped outside of attributes.
17228 * Pandoc will no longer transform leading newlines in code
17229 blocks to `<br/>` tags.
17231 * The ODT writer now sizes images appropriately, using the image
17232 size and DPI information embedded in the image.
17234 * `--standalone` is once again implicitly for a non-text output format
17235 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
17236 and get a standalone ODT file.
17238 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
17241 * The HTML writer now uses `<del>` for strikeout.
17243 * In HTML output with `--section-divs`, the classes `section` and
17244 `level[1,2,..6]` are put on the `div` tags so they can be styled.
17245 In HTML 5 output with `--section-divs`, the classes
17246 `level[1,2,...6]` are put on `section` tags.
17248 * EPUB writer changes:
17250 + The `lang` variable now sets the language
17251 in the metadata (if it is not set, we default to the locale).
17252 + EPUB: UTF-8 is used rather than decimal entities.
17254 * Added `titleslide` class to title slide in S5 template.
17256 * In HTML, EPUB, and docx metadata, the date is normalized into
17257 YYYY-MM-DD format if possible. (This is required for validation.)
17259 * Attributes in highlighted code blocks are now preserved in HTML.
17260 The container element will have the classes, id, and key-value attributes
17261 you specified in the delimited code block. Previously these were stripped
17264 * The reference backlink in the HTML writer no longer has a special
17265 `footnoteBacklink` class.
17267 * The HTML template has been split into `html` and `html5` templates.
17269 * Author and date are treated more consistently in HTML templates.
17270 Authors are now `<h2>`, date `<h3>`.
17272 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
17274 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
17278 * Better support for combining characters and East Asian wide characters
17279 in markdown and reST.
17281 * Better handling of single quotes with `--smart`.
17282 Previously `D'oh l'*aide*` would be parsed with left and right single
17283 quotes instead of apostrophes. This kind of error is now fixed.
17285 * Highlighting: Use `reads` instead of `read` for better error handling.
17286 Fixes crash on `startNum="abc"`.
17288 * Added blank comment after directives in rst template.
17290 * Unescape entities in citation `refId`. The `refId`s coming
17291 from citeproc contain XML numeric entities, and these don't match with the
17292 citation keys parsed by pandoc. Solution is to unescape them.
17294 * HTML reader: Fixed bug parsing tables with both thead and tbody.
17298 + Better handling of escapes in link URLs and titles.
17299 + Fixed backslash escapes in reference links.
17300 + Fixed bug in table/hrule parsing, by checking that the top
17301 line of a table is not followed by a blank line. This bug caused
17302 slowdowns on some files with hrules and tables, as pandoc tried to
17303 interpret the hrules as the tops of multiline tables.
17304 + Fixed bug in code block attribute parser. Previously the ID attribute
17305 got lost if it didn't come first. Now attributes can come in any order.
17307 * RST reader: allow footnotes followed by newline without space characters.
17311 + Ignore empty groups {}, { }.
17312 + LaTeX reader: Handle `\@`.
17313 + LaTeX reader: Don't crash on commands like `\itemsep`.
17314 + LaTeX reader: Better handling of letter environments.
17316 * RST writer: Fixed bug involving empty table cells. isSimple was being
17317 calculated in a way that assumed there were no non-empty cells.
17321 + Made `--toc` work even without `--number-sections`.
17322 + Escape # in link URLs.
17323 + Use buffering for footnotes containing code blocks.
17324 + Changed 'descr' to 'description', fixed alignment.
17328 + Escape euro character.
17329 + Don't escape `~` inside `\href{...}`.
17330 + Escape `#` in href URLs.
17331 + Improved detection of book classes. We now check the
17332 `documentclass` variable, and if that is not set, we look through
17333 the template itself. Also, we have added the KOMA classes scrreprt
17334 and scrbook. You can now make a book using
17335 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
17336 + LHS files now set the "listings" variable, so that the definition
17337 of the `code` environment will be included in the template.
17338 + Links are colored blue by default (this can be changed by
17339 modifying `hyperref` settings in the template).
17340 + Added `lang` variable to LaTeX template.
17344 + Fixed bug in HTML template with html5 and mathml.
17345 + Don't use self-closing img, br, hr tags for HTML5.
17346 + Use `<section>` for footnotes if HTML5.
17347 + Update HTML templates to use Content-Style-Type meta tag.
17348 + Use separate variables for meta-date, meta-author.
17349 This makes footnotes work in author and date fields.
17350 + Use 'vertical-align:middle' in WebTeX math for better alignment.
17352 * S5/slidy writer: Make footnotes appear on separate slide at end.
17354 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
17355 META-INF/manifest.xml for ODT files will have everything it needs, so
17356 that ODT files modified by LibreOffice can be used as `--reference-odt`.
17358 * `Text.Pandoc.Templates`: Return empty string for json template.
17360 * `Text.Pandoc.Biblio`:
17362 + Expand citations recursively inside nested inlines.
17363 + Treat `\160` as space when parsing locator and suffix.
17364 This fixes a bug with "p. 33" when `--smart` is used. Previously
17365 the whole "p. 33" would be included in the suffix, with no locator.
17366 + Put whole author-in-text citation in a Cite. Previously just the
17367 date and other info went in the Cite.
17368 + Don't add comma+space to prefix if it ends in punctuation.
17370 * Updated chicago-author-date.csl. The old version did not work
17371 properly for edited volumes with no author.
17375 + Add date to EPUB titlepage and metadata.
17376 + Added TOC identifier in EPUB page template.
17377 + Don't generate superfluous file `cover-image.jpg`.
17379### Under the hood improvements
17381 * Modified `make_osx_package.sh` to use cabal-dev.
17382 Items are no longer installed as root.
17383 Man pages are zipped and given proper permissions.
17385 * Modified windows installer generator to use cabal-dev.
17387 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
17388 Setup.hs we now invoke 'runghc' in a way that points it to the correct
17389 package databases, instead of always falling back to the default user
17392 * Updated to work with GHC 7.4.1.
17394 * Removed dependency on old-time.
17396 * Removed dependency on dlist.
17398 * New slidy directory for "self-contained."
17400 * TeXMath writer: Use unicode thin spaces for thin spaces.
17402 * Markdown citations: don't strip off initial space in locator.
17406 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
17407 from the native `Inline` type in pandoc-types. Now we use `Str`
17408 elements with unicode.
17410 * Improvements to `Text.Pandoc.Builder`:
17412 + `Inlines` and `Blocks` are now newtypes (not synonyms for
17414 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
17415 and a new `Listable` class, which allows these to be manipulated
17416 to some extent like lists. Monoid append includes automatic
17418 + `+++` has been replaced by `<>` (mappend).
17420 * Use blaze-html instead of xhtml for HTML generation.
17421 This changes the type of `writeHtml`.
17423 * `Text.Pandoc.Shared`:
17425 + Added `warn` and `err`.
17426 + Removed `unescapeURI`, modified `escapeURI`.
17427 (See under [behavior changes], above.)
17429 * Changes in URI escaping: Previously the readers escaped URIs by
17430 converting unicode characters to octets and then percent encoding.
17431 Now unicode characters are left as they are, and `escapeURI` only
17432 percent-encodes space characters. This gives more readable
17433 URIs, and works well with modern user agents. URIs are no longer unescaped
17434 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
17436 * New module `Text.Pandoc.SelfContained`.
17438 * New module `Text.Pandoc.Docx`.
17440 * New module `Text.Pandoc.PDF`.
17442 * Added `writerBeamer` to `WriterOptions`.
17444 * Added `normalizeDate` to `Text.Pandoc.Shared`.
17446 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
17447 This is like `splitWithIndices`, but it is sensitive to distinctions
17448 between wide, combining, and regular characters.
17450 * `Text.Pandoc.Pretty`:
17452 + Added `chomp` combinator.
17453 + Added `beforeNonBreak` combinator. This allows you to include
17454 something conditionally on it being before a nonblank.
17455 Used for RST inline math.
17456 + Added `charWidth` function. All characters marked W or F in the unicode
17457 spec EastAsianWidth.txt get width 2.
17458 + Added `realLength`, based on `charWidth`. `realLength` is now
17459 used in calculating offsets.
17461 * New module `Text.Pandoc.Slides`, for common functions for breaking
17462 a document into slides.
17464 * Removed `Text.Pandoc.S5`, which is no longer needed.
17466 * Removed `Text.Pandoc.CharacterReferences`. Moved
17467 `characterReference` to `Text.Pandoc.Parsing`.
17468 `decodeCharacterReferences` is replaced by `fromEntities`
17469 in `Text.Pandoc.XML`.
17471 * Added `Text.Pandoc.ImageSize`. This is intened for use
17472 in `docx` and `odt` writers, so the size and dpi of images
17475 * Removed `writerAscii` in `WriterOptions`.
17477 * Added `writerHighlight` to `WriterOptions`.
17479 * Added `DZSlides` to `HTMLSlideVariant`.
17481 * `writeEPUB` has a new argument for font files to embed.
17483 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
17484 of whether we're parsing the position immediately after a regular
17485 (non-space, non-symbol) string, which is useful for distinguishing
17486 apostrophes from single quote starts.
17488 * `Text.Pandoc.Parsing`:
17490 + `escaped` now returns a `Char`.
17491 + Removed `charsInBalanced'`, added a character parser as
17492 a parameter of `charsInBalanced`. This is needed for
17493 proper handling of escapes, etc.
17496 * Added `toEntities` to `Text.Pandoc.XML`.
17498 * `Text.Pandoc.Readers.LaTeX`:
17500 + Export `handleIncludes`.
17501 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
17503 * Added `ToJsonFilter` class and `toJsonFilter` function to
17504 `Text.Pandoc`, deprecating the old `jsonFilter` function.
17506 * `Text.Pandoc.Highlighting`:
17508 + Removed `highlightHtml`, `defaultHighlightingCss`.
17509 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
17510 key functions from highlighting-kate.
17511 + Changed types of highlighting function. `highlight` returns a
17512 `Maybe`, not an `Either`.
17515## pandoc 1.8.2.1 (2011-08-01)
17517 * Adjusted Arbitrary instance to help avoid timeouts in tests.
17519 * Added `Tests.Writers.Markdown` to cabal file.
17521 * Relaxed version bounds on pandoc-types, test-framework.
17523## pandoc 1.8.2 (2011-07-30)
17525 * Added script to produce OS X package.
17527 * Made `templates` directory a git submodule. This should make it
17528 easier for people to revise their custom templates when the default
17531 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
17532 **Note:** If you have existing templates in `~/.pandoc/templates`, you
17533 must rename them to conform to the new scheme!
17535 * Default template improvements:
17537 + HTML: Display author and date after title.
17538 + HTML: Made table of contents more customizable. The container
17539 for the TOC is now in the template, so users can insert a header
17540 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
17541 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
17542 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
17543 hard-coding. If you want to put your slidy files in the slidy
17544 subdirectory, for example, you can do
17545 `pandoc -t slidy -V slidy-url=slidy -s`.
17546 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
17547 & writer). Closes #279.
17548 + LaTeX: Set `\emergencystretch` to prevent overfull lines.
17549 + LaTeX: Use different `hyperref` options for `xetex`, fixing
17550 problems with unicode bookmarks (thanks to CircleCode).
17551 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
17552 with `inputenc`. This covers fewer characters but is more
17553 robust with other packages, and `ucs` is unmaintained. Users
17554 who need better unicode support should use xelatex or lualatex.
17556 * If a template specified with `--template` is not found, look for it
17557 in `datadir`. Also, if no extension is provided, supply one based
17558 on the writer. So now you can put your `special.latex` template in
17559 `~/.pandoc/templates`, and use it from any directory via
17560 `pandoc -t latex --template special`.
17562 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
17564 * Fixed smart quotes bug, now handling `'...hi'` properly.
17568 + Partial support for labeled footnotes.
17569 + Improved accuracy of `simpleReferenceName` parser.
17573 + Substitute correct unicode characters for
17574 characters in the 128..159 range, which are often found even in
17575 HTML that purports to be UTF-8.
17577 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
17578 to the title, after a colon and linebreak). Closes #280.
17580 * Leaner `reference.odt`.
17582 * Added unexported module `Text.Pandoc.MIME` for use in
17585 * ODT writer: Construct `manifest.xml` based on archive contents.
17586 This fixes a bug in ODTs containing images. Recent versions of
17587 LibreOffice would reject these as corrupt, because `manifest.xml`
17588 did not contain a reference to the image files.
17592 + Make verbatim environments flush to avoid spurious
17593 blank lines. Closes #277.
17594 + Use `\texttt` and escapes insntead of `\verb!...!`, which
17595 is too fragile (doesn't work in command arguments).
17596 + Use `\enquote{}` for quotes if the template includes
17597 the `csquotes` package. This provides better support for
17598 local quoting styles. (Thanks to Andreas Wagner for the idea.)
17600 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
17601 margin, preventing spurious blank lines.
17605 + Use non-minimized version of `slidy.css` with `--offline`
17606 option, so users can more easily edit it.
17607 + Also fixed a bug in the CSS that prevented proper centering
17608 of title (now reported and fixed upstream).
17612 + Replaced `s5/default/slides.js.{comment,packed}` with
17613 new compressed `s5/default/slides.min.js`.
17614 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
17615 when `--offline` is specified. Using inline CSS didn't
17616 work with Chrome or Safari. This fixes offline
17617 S5 on those browsers.
17619 * HTML writer: Removed English title on footnote backlinks.
17620 This is incongrous in non-English documents.
17624 + Use CALS tables. (Some older docbook software does not work
17625 well with XHTML tables.) Closes #77.
17626 + Use `programlisting` tags (instead of `screen`) for code blocks.
17630 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
17631 of `-interaction=batchmode`, which essentially just ignored errors,
17632 leading to bad results. Better to know when something is wrong.
17633 + Fixed issues with non-UTF-8 output of `pdflatex`.
17634 + Better error reporting.
17636 * `--mathjax` now takes an optional URL argument. If it is not
17637 provided, pandoc links directly to the (secure) mathjax CDN,
17638 as now recommended (thanks to dsanson).
17640 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
17641 since the LaTeX writer now produces a file that can be processed by
17642 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
17644 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
17645 to be used to create the PDF.
17648## pandoc 1.8.1.2 (2011-07-16)
17650 * Added `--epub-cover-image` option.
17652 * Documented `--biblatex` and `--natbib` options.
17654 * Allow `--section-divs` with slidy output. Resolves Issue #296.
17656 * Disallow notes within notes in reST and markdown.
17657 These previously caused infinite looping and stack overflows.
17664 Note references are allowed in reST notes, so this isn't a full
17665 implementation of reST. That can come later. For now we need to
17666 prevent the stack overflows. Partially resolves Issue #297.
17668 * EPUB writer: Allow non-plain math methods.
17670 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
17671 `(@item1; @item2)` because the final paren was being parsed as part of
17674 * Changed URI parser so it doesn't include trailing punctuation.
17675 So, in RST, `http://google.com.` should be parsed as a link followed by a
17676 period. The parser is smart enough to recognize balanced parentheses, as
17677 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
17679 * Markdown+lhs reader: Require space after inverse bird tracks, so that
17680 HTML tags can be used freely at the left margin of a markdown+lhs document.
17681 Thanks to Conal Elliot for the suggestion.
17683 * Markdown reader: Fixed bug in footnote order (reported by CircleCode).
17686 + Fixed bug in in field lists with multi-line items at the
17688 + Added parentheses to RST `specialChars`, so
17689 `(http://google.com)` will be parsed as a link in parens.
17690 Resolves Issue #291.
17691 + Allow `|` followed by newline in RST line block.
17695 + Gobble option & space after linebreak `\\[10pt]`.
17698 + Make it possible to have colons after links. (qerub)
17699 + Make it possible to have colons after links. (Christoffer Sawicki)
17702 + Skip spaces after `<b>`, `<emph>`, etc.
17703 + Handle tbody, thead in simple tables. Closes #274.
17704 + Implicit `Para`s instead of `Plains` in some contexts.
17706 * OpenDocument writer: Use special `First paragraph` style for
17707 first paragraph after most non-paragraph blocks. This allows users to
17708 specify e.g. that only paragraphs after the first paragraph of a block are
17709 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
17711 * LaTeX writer: use `deVerb` on table and picture captions.
17712 Otherwise LaTeX complains about `\verb` inside command argument.
17713 Thanks to bbanier for reporting the bug.
17715 * Markdown writer: Insert HTML comment btw list and indented code block.
17716 This prevents the code block from being interpreted as part of the list.
17718 * EPUB writer: Add a meta element specify the cover.
17719 Some EPUB e-readers, such as the Nook, require a meta element inside the
17720 OPF metadata block to ensure the cover image is properly displayed.
17723 * HTML writer: Use embed tag for images with non-image extensions.
17724 (e.g. PDFs). Closes #264.
17726 * LaTeX writer: Improved tables.
17728 + More space between lines, top-align cells.
17729 + Use ctable package, which allows footnotes and
17730 provides additional options.
17731 + Made cell alignments work in multiline tables.
17732 + Closes #271, #272.
17734 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
17735 Also do this when copying image files into EPUBs and ODTs.
17738 * Changed to github issue tracker.
17740 * Added failing emph/strong markdown test case due to Perry Wagle.
17742 * Slidy improvements:
17743 + Updated to use Slidy2.
17744 + Fixed bug, unclosed div tag.
17745 + Added `duration` variable in template.
17746 Setting this activates the timer.
17747 + Use 'titlepage' instead of 'cover' for title div.
17750## pandoc 1.8.1.1 (2011-02-13)
17752 * `markdown2pdf`: Removed some debugging lines accidentally included
17753 in the 1.8.1 release. With those lines, the temp directory is created
17754 in the working directory, and it is not deleted. This fix restores
17755 the original behavior.
17757## pandoc 1.8.1 (2011-02-13)
17759 * Added `--ascii` option. Currently supported only in HTML writer,
17760 which it causes to use numerical entities instead of UTF-8.
17762 * EPUB writer: `--toc` now works to provide a table of contents
17763 at the beginning of each chapter.
17765 * LaTeX writer: Change figure defaults to `htbp`.
17766 This prevents "too many unprocessed floats." Resolves
17769 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
17772 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
17773 Tanimoto. Resolves Issue #286.
17775 * HTML writer: Put line breaks in section divs.
17777 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
17779## pandoc 1.8.0.3 (2011-02-05)
17781 * Fixed Source-repository stanza in cabal file.
17783## pandoc 1.8.0.2 (2011-02-05)
17787 + Stringify alt text instead of converting to HTML.
17788 + Break lines after block elements, not inside tags.
17789 HTML output now closely resembles that of tidy. Resolves Issue #134.
17791 * Markdown reader: Fixed bug in footnote block parser (pointed out
17792 by Jesse Rosenthal). The problem arose when the blank line
17793 at the end of a footnote block contained indenting spaces.
17795 * Shared: Improved 'normalize' function so it normalizes Spaces too.
17796 In normal form, Space elements only occur to separate two non-Space
17797 elements. So, we never have [Space], or [, ..., Space].
17801 + Improved Arbitrary instance.
17802 + Added timeout for test instances.
17806 + Added section on four-space rule for lists. Resolves Issue #283.
17807 + Clarified optional arguments on math options.
17809 * markdown2pdf: Fixed bug with output file extensions.
17810 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
17811 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
17813## pandoc 1.8.0.1 (2011-01-31)
17815 * Revised Interact.hs so that it works with the CPP macros
17816 in the UTF8 module.
17818 * Revised Setup.hs so that we don't call MakeManPage.hs unless
17819 the man pages are out of date.
17821## pandoc 1.8 (2011-01-30)
17825 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
17826 You can now write, for example,
17828 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
17830 and, when you process your document using `pandoc`, specifying
17831 a citation style using `--csl` and a bibliography using `--bibliography`,
17832 the citation will be replaced by an appropriately formatted
17833 citation, and a list of works cited will be added to the end
17836 This means that you can switch effortlessly between different citation
17837 and bibliography styles, including footnote, numerical, and author-date
17838 formats. The bibliography can be in any of the following formats: MODS,
17839 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
17840 See the README for further details.
17842 Citations are supported in the markdown reader, using a special
17843 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
17844 (Thanks to Nathan Gass for the natbib and biblatex support.)
17846 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
17847 the `textile` reader, an almost complete implementation of the textile
17848 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
17849 Resolves Issue #51.
17851 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
17853 * New `json` reader and writer, for reading and writing a JSON
17854 representation of the native Pandoc AST. These are much faster
17855 than the `native` reader and writer, and should be used for
17856 serializing Pandoc to text. To convert between the JSON representation
17857 and native Pandoc, use `encodeJSON` and `decodeJSON` from
17858 `Text.JSON.Generic`.
17860 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
17861 to write scripts that transform a JSON-encoded pandoc document.
17864 -- removelinks.hs - removes links from document
17866 main = interact $ jsonFilter $ bottomUp removeLink
17867 where removeLink (Link xs _) = Emph xs
17870 To use this to remove links while translating markdown to LaTeX:
17872 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
17874 * Attributes are now allowed in inline `Code` elements, for example:
17876 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
17878 The attribute syntax is the same as for delimited code blocks.
17879 `Code` inline has an extra argument place for attributes, just like
17880 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
17881 is compiled with highlighting support. Resolves Issue #119.
17883 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
17884 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
17885 scripts to transform Pandoc documents. Scripts can now change
17886 how each element is rendered in each output format.
17888 * You can now define LaTeX macros in markdown documents, and pandoc
17889 will apply them to TeX math. For example,
17891 \newcommand{\plus}[2]{#1 + #2}
17894 yields `3+4`. Since the macros are applied in the reader, they
17895 will work in every output format, not just LaTeX.
17897 * LaTeX macros can also be used in LaTeX documents (both in math
17898 and in non-math contexts).
17900 * A new `--mathjax` option has been added for displaying
17901 math in HTML using MathJax. Resolves issue #259.
17903 * Footnotes are now supported in the RST reader. (Note, however,
17904 that unlike docutils, pandoc ignores the numeral or symbol used in
17905 the note; footnotes are put in an auto-numbered ordered list.)
17906 Resolves Issue #258.
17908 * A new `--normalize` option causes pandoc to normalize the AST
17909 before writing the document. This means that, for example,
17910 `*hi**there*` will be rendered as `<em>hithere</em>`
17911 instead of `<em>hi</em><em>there</em>`. This is not the default,
17912 because there is a significant performance penalty.
17914 * A new `--chapters` command-line option causes headers
17915 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
17916 Resolves Issue #265.
17918 * In DocBook output, `<chapter>` is now used for top-level
17919 headers if the template contains `<book>`. Resolves Issue #265.
17921 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
17922 the LaTeX writer to use the listings package for code blocks.
17923 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
17924 Millon for the markdown2pdf patch.)
17926 * `markdown2pdf` now supports `--data-dir`.
17928 * URLs in autolinks now have class "url" so they can be styled.
17930 * Improved prettyprinting in most formats. Lines will be wrapped
17931 more evenly and duplicate blank lines avoided.
17933 * New `--columns` command-line option sets the column width for
17934 line wrapping and relative width calculations for tables.
17936 * Made `--smart` work in HTML, RST, and Textile readers, as well
17939 * Added `--html5` option for HTML5 output.
17941 * Added support for listings package in LaTeX reader
17942 (Puneeth Chaganti).
17944 * Added support for simple tables in the LaTeX reader.
17946 * Added support for simple tables in the HTML reader.
17948 * Significant performance improvements in many readers and writers.
17950### API and program changes
17952 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
17953 auxiliary package, `pandoc-types`. This will make it possible for other
17954 programs to supply output in Pandoc format, without depending on the whole
17957 * Added `Attr` field to `Code`.
17959 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
17960 `RawBlock` and `RawInline`.
17962 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
17963 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
17964 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
17966 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
17968 * `Text.Pandoc` now exports association lists `readers` and `writers`.
17970 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
17971 `readNative` can now read full pandoc documents, block lists, blocks,
17972 inline lists, or inlines. It will interpret `Str "hi"`
17973 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
17974 This should make testing easier.
17976 * Removed deprecated `-C/--custom-header` option.
17977 Use `--template` instead.
17979 * `--biblio-file` has been replaced by `--bibliography`.
17980 `--biblio-format` has been removed; pandoc now guesses the format
17981 from the file extension (see README).
17983 * pandoc will treat an argument as a URI only if it has an
17984 `http(s)` scheme. Previously pandoc would treat some
17985 Windows pathnames beginning with `C:/` as URIs.
17987 * The `--sanitize-html` option and the `stateSanitize` field in
17988 `ParserState` have been removed. Sanitization is better done in the
17989 resulting HTML using `xss-sanitize`, which is based on pandoc's
17990 sanitization, but improved.
17992 * pandoc now adds a newline to the end of its output in fragment
17993 mode (= not `--standalone`).
17995 * Added support for `lang` in `html` tag in the HTML template,
17996 so you can do `pandoc -s -V lang=es`, for example.
17998 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
17999 a boolean argument that selects between "inline" and
18002 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
18003 Images are embedded in RTF output when possible (png, jpeg).
18004 Resolves Issue #275.
18006 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
18007 `pretty` package. Changed all writers that used
18008 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
18010 * Rewrote `writeNative` using the new prettyprinting module. It is
18011 now much faster. The output has been made more consistent and compressed.
18012 `writeNative` is also now sensitive to writerStandalone`, and will simply
18013 `print a block list if writerStandalone` is False.
18015 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
18016 blocks and concatenate them, so a separate module is no longer needed.
18018 * `Text.Pandoc.Shared`:
18020 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
18022 + Added `normalize`.
18023 + Removed unneeded prettyprinting functions:
18024 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
18025 `BlockWrapper`, `wrappedBlocksToDoc`.
18026 + Made `splitBy` take a test instead of an element.
18027 + Added `findDataFile`, refactored `readDataFile`.
18028 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
18029 + Fixed `inlineListToIdentifier` to treat `\160` as ' '.
18031 * `Text.Pandoc.Readers.HTML`:
18033 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
18034 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
18035 `htmlBlockElement`, `htmlComment`
18036 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
18039 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
18040 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
18043 * Ellipses are no longer allowed to contain spaces.
18044 Previously we allowed '. . .', ' . . . ', etc. This caused
18045 too many complications, and removed author's flexibility in
18046 combining ellipses with spaces and periods.
18048 * Allow linebreaks in URLs (treat as spaces). Also, a string of
18049 consecutive spaces or tabs is now parsed as a single space. If you have
18050 multiple spaces in your URL, use `%20%20`.
18052 * `Text.Pandoc.Parsing`:
18054 + Removed `refsMatch`.
18055 + Hid `Key` constructor.
18056 + Removed custom `Ord` and `Eq` instances for `Key`.
18057 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
18058 + Generalized type on `readWith`.
18060 * Small change in calculation of relative widths of table columns.
18061 If the size of the header > the specified column width, use
18062 the header size as 100% for purposes of calculating
18063 relative widths of columns.
18065 * Markdown writer now uses some pandoc-specific features when `--strict`
18066 is not specified: `\` newline is used for a hard linebreak instead of
18067 two spaces then a newline. And delimited code blocks are used when
18068 there are attributes.
18070 * HTML writer: improved gladTeX output by setting ENV appropriately
18071 for display or inline math (Jonathan Daugherty).
18073 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
18077 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
18078 + `\index{}` commands are skipped.
18080 * Added `fontsize` variable to default LaTeX template.
18081 This makes it easy to set the font size using `markdown2pdf`:
18082 `markdown2pdf -V fontsize=12pt input.txt`.
18084 * Fixed problem with strikeout in LaTeX headers when using
18085 hyperref, by adding a command to the default LaTeX template
18086 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
18089 * The `COLUMNS` environment variable no longer has any effect.
18091### Under-the-hood improvements
18093 * Pandoc now compiles with GHC 7. (This alone leads to a
18094 significant performance improvement, 15-20%.)
18096 * Completely rewrote HTML reader using tagsoup as a lexer. The
18097 new reader is faster and more accurate. Unlike the
18098 old reader, it does not get bogged down on some input
18099 (Issues #277, 255). And it handles namespaces in tags
18102 * Replaced `escapeStringAsXML` with a faster version.
18104 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
18105 for a significant performance boost.
18107 * Improved performance of all readers by rewriting parsers.
18109 * Simplified Text.Pandoc.CharacterReferences by using
18110 entity lookup functions from TagSoup.
18112 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
18113 from `System.IO` if base >= 4.2. This gives support for
18114 windows line endings on windows.
18116 * Remove duplications in documentation by generating the
18117 pandoc man page from README, using `MakeManPage.hs`.
18119 * README now includes a full description of markdown syntax,
18120 including non-pandoc-specific parts. A new `pandoc_markdown`
18121 man page is extracted from this, so you can look up markdown
18122 syntax by doing `man pandoc_markdown`.
18124 * Completely revised test framework (with help from Nathan Gass).
18125 The new test framework is built when the `tests` Cabal flag is set. It
18126 includes the old integration tests, but also some new unit and quickcheck
18127 tests. Test output has been much improved, and you can now specify a glob
18128 pattern after `cabal test` to indicate which tests should be run;
18129 for example `cabal test citations` will run all the citation tests.
18131 * Added a shell script, `stripansi.sh`, for filtering ANSI control
18132 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
18134 * Added `Interact.hs` to make it easier to use ghci while developing.
18135 `Interact.hs` loads `ghci` from the `src` directory, specifying
18136 all the options needed to load pandoc modules (including
18137 specific package dependencies, which it gets by parsing
18138 dist/setup-config).
18140 * Added `Benchmark.hs`, testing all readers + writers using criterion.
18142 * Added `stats.sh`, to make it easier to collect and archive
18143 benchmark and lines-of-code stats.
18145 * Added upper bounds to all cabal dependencies.
18147 * Include man pages in extra-source-files. This allows users to
18148 install pandoc from the tarball without needing to build the man
18153 * Filenames are encoded as UTF8. Resolves Issue #252.
18155 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
18156 were just parsed literally, leading to problems in some output formats.
18157 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
18158 Resolves Issue #270.
18160 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
18161 Spaces at end of line were not being stripped properly,
18162 resulting in unintended LineBreaks.
18166 + Allow HTML comments as inline elements in markdown.
18167 So, `aaa <!-- comment --> bbb` can be a single paragraph.
18168 + Fixed superscripts with links: `^[link](/foo)^` gets
18169 recognized as a superscripted link, not an inline note followed by
18171 + Fixed regression, making markdown reference keys case-insensitive again.
18172 Resolves Issue #272.
18173 + Properly handle abbreviations (like `Mr.`) at the end of a line.
18174 + Better handling of intraword underscores, avoiding exponential
18175 slowdowns in some cases. Resolves Issue #182.
18176 + Fixed bug in alignments in tables with blank rows in the header.
18180 + Field lists now allow spaces in field names, and
18181 block content in field values. (Thanks to Lachlan Musicman
18182 for pointing out the bug.)
18183 + Definition list items are now always `Para` instead of
18184 `Plain`, matching behavior of `rst2xml.py`.
18185 + In image blocks, the description is parsed properly and
18186 used for the alt attribute, not also the title.
18187 + Skip blank lines at beginning of file. Resolves
18192 + Improved parsing of preamble.
18193 Previously you'd get unexpected behavior on a document that
18194 contained `\begin{document}` in, say, a verbatim block.
18195 + Allow spaces between `\begin` or `\end` and `{`.
18196 + Support `\L` and `\l`.
18197 + Skip comments inside paragraphs.
18201 + Escape strings in `\href{..}`.
18202 + In nonsimple tables, put cells in `\parbox`.
18204 * OpenDocument writer: don't print raw TeX.
18208 + Fixed bug in `Image`. URI was getting unescaped twice!
18209 + Avoid printing extra blank lines at the end if there are
18210 no notes or references.
18212 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
18213 This avoids unwanted interpretation as an optional argument.
18215 * ConTeXt writer: Fixed problem with inline code. Previously
18216 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
18217 If it contains neither, use `\type{}`; otherwise use `\mono{}`
18218 with an escaped version of the string.
18220 * `:` now allowed in HTML tags. Resolves Issue #274.
18224## pandoc 1.6 (2010-07-24)
18226+ New EPUB and HTML Slidy writers. (Issue #122)
18228 - [EPUB] is a standard ebook format, used in Apple's iBooks for
18229 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
18230 reader, and many other devices, and by online ebook readers like
18231 [bookworm]. (Amazon's Kindle uses a different format, MobiPocket,
18232 but EPUB books can easily be converted to Kindle format.) Now you
18233 can write your book in markdown and produce an ebook with a single
18234 command! I've put up a short [tutorial here].
18235 - [Slidy], like S5, is a system for producing HTML+javascript slide shows.
18237+ All input is assumed to be UTF-8, no matter what the locale and ghc
18238 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
18239 Also, a BOM, if present, is stripped from the input.
18241+ Markdown now supports grid tables, whose cells can contain
18242 arbitrary block elements. (Issue #43)
18244+ Sequentially numbered example lists in markdown with `@` marker.
18246+ Markdown table captions can begin with a bare colon and no longer need
18247 to include the English word "table." Also, a caption can now occur
18248 either before or after the table. (Issue #227)
18250+ New command-line options:
18252 - `--epub-stylesheet` allows you to specify a CSS file that will
18253 be used to style your ebook.
18254 - `--epub-metadata` allows you to specify metadata for the ebook.
18255 - `--offline` causes the generated HTML slideshow to include all
18256 needed scripts and stylesheets.
18257 - `--webtex` causes TeX math to be converted to images using the
18258 Google Charts API (unless a different URL is specified).
18259 - `--section-divs` causes div tags to be added around each section
18260 in an HTML document. (Issue #230, 239)
18262+ Default behavior of S5 writer in standalone mode has changed:
18263 previously, it would include all needed scripts and stylesheets
18264 in the generated HTML; now, only links are included unless
18265 the `--offline` option is used.
18267+ Default behavior of HTML writer has changed. Between 1.2 and 1.5,
18268 pandoc would enclose sections in div tags with identifiers on the
18269 div tags, so that the sections can be manipulated in javascript.
18270 This caused undesirable interactions with raw HTML div tags. So,
18271 starting with 1.6, the default is to put the identifiers directly
18272 on the header tags, and not to include the divs. The `--section-divs`
18273 option selects the 1.2-1.5 behavior.
18277 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
18278 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
18279 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
18280 `writerIncludeAfter`.
18281 - Added `headerShift` to `Text.Pandoc.Shared`.
18282 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
18283 to a new module, `Text.Pandoc.Parsing`.
18284 - Added `stateHasChapters` to `ParserState`.
18285 - Added `HTMLSlideVariant`.
18286 - Made `KeyTable` a map instead of an association list.
18287 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`, `docDate`).
18288 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord` instances.
18289 - Reference keys now have a type of their own (`Key`), with its
18290 own `Ord` instance for case-insensitive comparison.
18291 - Added `Text.Pandoc.Writers.EPUB`.
18292 - Added `Text.Pandoc.UUID`.
18293 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
18294 Removed `saveOpenDocumentAsODT`, added `writeODT`.
18295 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
18296 Removed `prettyPandoc`.
18297 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
18298 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
18299 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
18300 To write S5, you now use `writeHtml` with `writerSlideVariant`
18301 set to `S5Slides` or `SlidySlides`.
18303+ Template changes. If you use custom templates, please update them,
18304 particularly if you use syntax highlighting with pandoc. The old HTML
18305 templates hardcoded highlighting CSS that will no longer work with
18306 the most recent version of highlighting-kate.
18308 - HTML template: avoid empty meta tag if no date.
18309 - HTML template: Use default highlighting CSS from highlighting-kate
18310 instead of hard-coding the CSS into the template.
18311 - HTML template: insert-before text goes before the title, and
18312 immediately after the `<body>` tag, as documented. (Issue #241)
18313 - Added slidy and s5 templates.
18314 - Added amssymb to preamble of latex template. (github Issue 1)
18316+ Removed excess newlines at the end of output. Note: because output
18317 will not contain an extra newline, you may need to make adjustments
18318 if you are inserting pandoc's output into a template.
18320+ In S5 and slidy, horizontal rules now cause a new slide, so you
18321 are no longer limited to one slide per section.
18323+ Improved handling of code in man writer. Inline code is now monospace,
18324 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
18326+ HTML reader parses `<tt>` as Code. (Issue #247)
18328+ html+lhs output now contains bird tracks, even when compiled without
18329 highlighting support. (Issue #242)
18331+ Colons are now no longer allowed in autogenerated XML/HTML identifiers,
18332 since they have a special meaning in XML.
18334+ Code improvements in ODT writer. Remote images are now replaced with
18335 their alt text rather than a broken link.
18337+ LaTeX reader improvements:
18339 - Made latex `\section`, `\chapter` parsers more forgiving of whitespace.
18340 - Parse `\chapter{}` in latex.
18341 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
18342 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
18343 for use in markdown reader.
18344 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
18345 in markdown document.
18347+ LaTeX writer: images are automatically shrunk if they would extend
18348 beyond the page margin.
18350+ Plain, markdown, RST writers now use unicode for smart punctuation.
18352+ Man writer converts math to unicode when possible, as in other writers.
18354+ `markdown2pdf` can now recognize citeproc options.
18356+ Command-line arguments are converted to UTF-8. (Issue #234)
18358+ `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
18359 This allows it to handle a wider range of formulas. Also, if a formula
18360 cannot be converted, it is left in raw TeX; formulas are no longer
18361 partially converted.
18363+ Unicode curly quotes are left alone when parsing smart quotes. (Issue #143)
18365+ Cabal file changes:
18367 - Removed parsec < 3 restriction.
18368 - Added 'threaded' flag for architectures where GHC lacks a threaded
18370 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
18371 - Require highlighting-kate 0.2.7.
18373+ Use explicit imports from `Data.Generics`. Otherwise we have a
18374 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
18376+ New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
18378[EPUB]: http://en.wikipedia.org/wiki/EPUB
18379[Slidy]: http://www.w3.org/Talks/Tools/Slidy
18380[bookworm]: http://bookworm.oreilly.com/
18381[tutorial here]: http://johnmacfarlane.net/pandoc/epub.html
18383## pandoc 1.5.1.1 (2010-03-29)
18385+ Fixed header identifiers (uniqueIdent in Shared) so they
18386 work as advertized in README and are guaranteed to be
18387 valid XHTML names. Thanks to Xyne for reporting the bug.
18389## pandoc 1.5.1 (2010-03-23)
18391+ Fixed treatment of unicode characters in URIs.
18392+ Revised Setup.hs so it works with debian's build process.
18393+ Fixed bug in OpenDocument writer that led to invalid
18394 XML for some input.
18396## pandoc 1.5.0.1 (2010-03-21)
18398+ HTML writer: Fixed error in math writer (with MathML option)
18399 that caused an infinite loop for unparsable MathML.
18401## pandoc 1.5 (2010-03-20)
18403+ Moved repository to [github](http://github.com/jgm/pandoc).
18404+ New `--mathml` option, for display of TeX math as MathML.
18405+ New `--data-dir` option, allowing users to specify a data
18406 directory other than `~/.pandoc`. Files placed in this directory
18407 will be used instead of system defaults.
18408+ New `--base-header-level` option. For example, `--base-header-level=2`
18409 changes level 1 headers to level 2, level 2 to level 3, etc.
18410+ New 'plain' output format: plain text without pictures, hyperlinks,
18411 inline formatting, or anything else that looks even vaguely
18413+ Titles and authors in title blocks can now span multiple lines,
18414 as long as the continuation lines begin with a space character.
18415+ When given an absolute URI as a parameter, pandoc will fetch
18416 the content via HTTP.
18417+ The HTML reader has been made much more forgiving. It no
18418 longer requires well-formed xhtml as input.
18419+ `html2markdown` has been removed; it is no longer necessary, given
18420 the last two changes. `pandoc` can be used by itself to convert
18421 web pages to markdown or other formats.
18422+ `hsmarkdown` has also been removed. Use `pandoc --strict` instead.
18423 Or symlink pandoc's executable to `hsmarkdown`; `pandoc` will then
18424 behave like `hsmarkdown` used to.
18425+ An image in a paragraph by itself is now rendered as a figure
18426 in most writers, with the alt text as the caption.
18427+ Incomplete support for reST tables (simple and grid). Thanks to
18428 Eric Kow. Colspans and rowspans not yet supported.
18429+ In mediawiki, links with relative URLs are now formatted as wikilinks.
18430 Also, headers have been promoted: `= head =` is now level 1 instead of
18432+ The markdown reader now handles "inverse bird tracks" when parsing
18433 literate haskell. These are used for haskell example code that
18434 is not part of the literate program.
18435+ The `-B` and `-A` options now imply `-s` and no longer work in
18437+ Headerless tables are now printed properly in all writers.
18438 In addition, tbody, thead, and cols are used in HTML and Docbook
18440+ Improved build system; removed obsolete Makefile.
18441+ In LaTeX writer, `\chapter` is now used instead of `\section`.
18442 when the documentclass is book, report, or memoir.
18443+ Many small bug fixes. See [changelog] for details.
18445## pandoc 1.4 (2010-01-02)
18447+ New template system replaces old headers, giving users much
18448 more control over pandoc's output in `--standalone` mode.
18449 Added `--template` and `--variable` options. The `--print-default-header`
18450 option is now `--print-default-template`. See README under
18451 "Templates" for details.
18452+ The old `--custom-header` option should still work, but it has
18454+ New `--reference-odt` option allows users to customize styles
18456+ Users may now put custom templates, s5 styles, and a reference
18457 ODT in the `~/.pandoc` directory, where they will override system
18458 defaults. See README for details.
18459+ Unicode is now used whenever possible in HTML and XML output. Entities
18460 are used only where necessary (`>`, `<`, `"`, `&`).
18461+ Authors and dates may now include formatting and notes.
18462+ Added `--xetex` option for `pandoc` and `markdown2pdf`.
18463+ Windows installer now includes highlighting support and
18464 `markdown2pdf` and `hsmarkdown` wrappers.
18465+ Pandoc no longer requires Template Haskell, which should make
18467+ Pandoc can now be built on GHC 6.12, as well as earlier versions.
18468+ See README for other small improvements and bug fixes.
18470## pandoc 1.3 (2009-12-10)
18472+ Added `--id-prefix` option to help prevent duplicate
18473 identifiers when you're generating HTML fragments.
18474+ Added `--indented-code-classes` option, which specifies
18475 default highlighting syntax for indented code blocks.
18476+ `--number-sections` now affects HTML output.
18477+ Improved syntax for markdown definition lists.
18478+ Better looking simple tables.
18479+ Markdown tables without headers are now possible.
18480+ New hard line break syntax: backslash followed by newline.
18481+ Improved performance of markdown reader by ~10% by eliminating the
18482 need for a separate parsing pass for notes.
18483+ Improved syntax highlighting for literate Haskell.
18484+ Support for "..code-block" directive in RST reader.
18485+ Windows binary now includes highlighting support.
18486+ Many bug fixes and small improvements. See [changelog]
18489## pandoc 1.2.1 (2009-07-18)
18491+ Improved the efficiency of the markdown reader's
18492 abbreviation parsing (should give a big performance
18493 boost with `--smart`).
18494+ HTML writer now wraps sections in divs with unique
18495 identifiers, for easier manipulation.
18496+ Improved LaTeX reader's coverage of math modes.
18497+ Added a portable Haskell version of markdown2pdf (thanks
18498 to Paolo Tanimoto).
18499+ Made `--strict` compatible with `--standalone` and `--toc.`
18500+ Many other small improvements and bug fixes.
18501 See [changelog] for details.
18503## pandoc 1.2 (2009-03-01)
18505+ Added support for literate Haskell. lhs support is triggered by
18506 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
18507 Haskell LaTeX. '.lhs' files are treated by default as literate
18509+ Added `--email-obfuscation` option.
18510+ Brought citeproc support up to date for citeproc-hs-0.2.
18511+ Many bugs fixed. See [changelog] for details.
18513## pandoc 1.1 (2008-11-06)
18515+ New `--jsmath` option supporting use of pandoc with [jsMath].
18516+ Classes on HTML table output for better CSS styling.
18517+ Windows installer no longer requires admin privileges.
18518+ Many bugs fixed. See [changelog] for details.
18520## pandoc 1.0 (2008-09-13)
18522+ New writers for MediaWiki, GNU Texinfo (thanks to Peter Wang),
18523 OpenDocument XML (thanks to Andrea Rossato), and ODT (OpenOffice
18525+ New [delimited code blocks](README.html#delimited-code-blocks),
18526 with optional syntax highlighting.
18527+ Reorganized build system: pandoc can now be built using standard
18528 Cabal tools. It can be compiled on Windows without Cygwin.
18529 The tests can also be run without perl or unix tools.
18530+ LaTeXMathML replaces ASCIIMathML for rendering math in HTML.
18531+ Support for "displayed" math.
18532+ Common abbreviations are now handled more intelligently, with
18533 a non-breaking space (and not a sentence-ending space) after
18535+ Code is -Wall clean.
18536+ Many bug fixes and small improvements. See [changelog] for
18539## pandoc 0.46 (2008-01-08)
18541+ Added a `--sanitize-html` option (and a corresponding parameter
18542 in `ParserState` for those using the pandoc libraries in programs).
18543 This option causes pandoc to sanitize HTML (in HTML or Markdown
18544 input) using a whitelist method. Possibly harmful HTML elements
18545 are replaced with HTML comments. This should be useful in the
18546 context of web applications, where pandoc may be used to convert
18547 user input into HTML.
18548+ Made -H, -A, and -B options cumulative: if they are specified
18549 multiple times, multiple files will be included.
18550+ Many bug fixes and small improvements. See [changelog] for full
18553## pandoc 0.45 (2007-12-09)
18555+ Many bug fixes and structural improvements. See [changelog] for
18557+ Improved treatment of math. Math is now rendered using unicode
18558 by default in HTML, RTF, and DocBook output. For more accurate
18559 display of math in HTML, `--gladtex`, `--mimetex`, and `--asciimathml`
18560 options are provided. See the [User's Guide](README.html#math) for
18562+ Removed support for box-style block quotes in markdown.
18563+ More idiomatic ConTeXt output.
18564+ Text wrapping in ConTeXt and LaTeX output.
18565+ Pandoc now correctly handles all standard line endings
18567+ New `--no-wrap` option that disables line wrapping and minimizes
18568 whitespace in HTML output.
18569+ Build process is now compatible with both GHC 6.8 and GHC 6.6.
18570 GHC and GHC_PKG environment variables may be used to specify
18571 which version of the compiler to use, when multiple versions are
18574## pandoc 0.44 (2007-09-03)
18576 [ John MacFarlane ]
18578 * Fixed bug in HTML writer: when --toc was used, anchors were put around
18579 headers, which is invalid XHTML (block content within inline element).
18580 Now the anchors are put inside the header tags. Resolves Issue #23.
18582 * Added xmlns attribute to html element in html writer tests.
18583 This attribute is added by more recent versions of the
18584 xhtml library (>= 3000), and is required for valid XHTML.
18588 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
18589 command instead of 'runhaskell', which, on some platforms (such as s390,
18590 alpha, m68k), throws the following error:
18592 runhaskell Setup.hs configure --prefix=/usr
18593 ghc-6.6.1: not built for interactive use
18595 This causes a serious FTBFS bug. Closes: #440668.
18597## pandoc 0.43 (2007-09-02)
18599 [ John MacFarlane ]
18601 * The focus of this release is performance. The markdown parser
18602 is about five times faster than in 0.42, based on benchmarks
18603 with the TextMate manual.
18605 * Main.hs: Replaced CRFilter and tabFilter with single function
18606 tabFilter, which operates on the whole string rather than breaking
18607 it into lines, and handles dos-style line-endings as well as tabs.
18609 * Added separate LaTeX reader and native reader tests; removed
18612 * Text.Pandoc.Shared:
18614 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
18615 + General code cleanup (to elimante warnings when compiling with -Wall.)
18616 + Added 'wrapped' function, which helps wrap text into paragraphs,
18617 using the prettyprinting library.
18618 + Rewrote charsInBalanced and charsInBalanced'.
18619 - Documented restriction: open and close must be distinct characters.
18620 - Rearranged options for greater efficiency.
18621 - Bug fix: Changed inner call to charsInBalanced inside
18622 charsInBalanced' to charsInBalanced'.
18623 + anyLine now requires that the line end with a newline (not eof).
18624 This is a harmless assumption, since we always add newlines to the
18625 end of a block before parsing with anyLine, and it yields a 10% speed
18627 + Removed unnecessary 'try' in anyLine.
18628 + Removed unneeded 'try' from romanNumeral parser.
18629 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
18630 + Removed unneeded 'try' in parseFromString.
18631 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
18633 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
18634 'try' is not automatically applied to the 'end' parser. Added
18635 'try' in calls to 'enclosed' where needed. Slight speed increase.
18639 + Replaced individual wrapping routines in RST, Man, and Markdown
18640 writers with 'wrapped' from Text.Pandoc.Shared.
18641 + Rewrote LaTeX writer to use the prettyprinting library,
18642 so we get word wrapping, etc.
18643 + Modified latex writer tests for new latex writer using prettyprinter.
18644 + Fixed bug in LaTeX writer: autolinks would not cause
18645 `\usepackage{url}` to be put in the document header. Also, changes
18646 to state in enumerated list items would be overwritten.
18647 + In Markdown writer, escape paragraphs that begin with ordered list
18648 markers, so they don't get interpreted as ordered lists.
18650 * Text.Pandoc.Reades.LaTeX:
18652 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
18653 numeral after "enum" in "setcounter" would consist entirely of
18654 "i"s. 'enumiv' is legitimate.
18655 + LaTeX command and environment names can't contain numbers.
18656 + Rearranged order of parsers in inline for slight speed improvement.
18657 + Added '`' to special characters and 'unescapedChar'.
18659 * Text.Pandoc.Readers.RST:
18661 + Removed unneeded try's in RST reader; also minor code cleanup.
18663 + Rearranged parsers in inline (doubled speed).
18665 * Text.Pandoc.Readers.Markdown:
18667 + Skip notes parsing if running in strict mode. (This yields a nice
18668 speed improvement in strict mode.)
18669 + Simplify autolink parsing code, using Network.URI to test for
18670 URIs. Added dependency on network library to debian/control and
18672 + More perspicuous definition of nonindentSpaces.
18673 + Removed unneeded 'try' in 'rawLine'.
18674 + Combined linebreak and whitespace into a new whitespace parser, to
18675 avoid unnecessary reparsing of space characters.
18676 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
18677 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
18678 + Use lookAhead in parsers for setext headers and definition lists
18679 to see if the next line begins appropriately; if not, don't waste
18680 any more time parsing.
18681 + Don't require blank lines after code block. (It's sufficient to
18682 end code block with a nonindented line.)
18683 + Changed definition of 'emph': italics with '_' must not
18684 be followed by an alphanumeric character. This is to help
18685 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
18686 `[LC<em>TYPE]:my</em>type`.
18687 + Improved Markdown.pl-compatibility in referenceLink: the two parts
18688 of a reference-style link may be separated by one space, but not
18689 more... [a] [link], [not] [a link].
18690 + Fixed markdown inline code parsing so it better accords with
18691 Markdown.pl: the marker for the end of the code section is a clump
18692 of the same number of `'s with which the section began, followed
18693 by a non-` character. So, for example,
18694 ` h ``` i ` -> `<code>h ``` i</code>`.
18695 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
18696 rules are slightly different.
18697 + Rewrote 'para' for greater efficiency.
18698 + Rewrote link parsers for greater efficiency.
18699 + Removed redundant 'referenceLink' in definition of inline (it's
18700 already in 'link').
18701 + Refactored escapeChar so it doesn't need 'try'.
18702 + Refactored hrule for performance in Markdown reader.
18703 + More intelligent rearranging of 'inline' so that most frequently
18704 used parsers are tried first.
18705 + Removed tabchar parser, as whitespace handles tabs anyway.
18707 * Text.Pandoc.CharacterReferences:
18710 + Removed unnecessary 'try's for a speed improvement.
18711 + Removed unnecessary '&' and ';' from the entity table.
18715 + Makefile: Get VERSION from cabal file, not Main.hs.
18716 + Modified MacPorts Portfile:
18717 - Depend on haddock
18718 - Build and install libraries and library documentation in
18719 addition to pandoc executable
18720 - Added template item for md5 sum in Portfile.in.
18721 - Incorporated changes from MacPorts repository (r28278).
18722 + FreeBSD port: Don't try to generate distinfo in Makefile.
18723 It can be made using 'make makesum' in FreeBSD.
18724 + Make both freebsd and macports targets depend on tarball.
18726 * Website and documentation:
18728 + Updated INSTALL instructions.
18729 + Added pandocwiki demo to website.
18730 + Removed local references to Portfile, since pandoc is now in the
18731 MacPorts repository.
18733## pandoc 0.42 (2007-08-26)
18735 [ John MacFarlane ]
18737 * Main.hs: Use utf8 conversion on the extra files loaded with
18738 the -H, -C, -B, and -A options. This fixes problems with unicode
18739 characters in these files.
18741 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
18742 Text.Pandoc.Readers.HTML and without it we get a linking error when
18747 + Added new rule for enhanced markdown ordered lists: if the list
18748 marker is a capital letter followed by a period (including a
18749 single-letter capital roman numeral), then it must be followed by
18750 at least two spaces. The point of this is to avoid accidentally
18751 treating people's initials as list markers: a paragraph might begin,
18752 "B. Russell was an English philosopher," and this shouldn't be
18753 treated as a list. Documented change in README.
18754 + Blocks that start with "p. " and a digit are no longer treated
18755 as ordered lists (it's a page number).
18756 + Added a needed 'try' to listItem.
18757 + Removed check for a following setext header in endline.
18758 A full test is too inefficient (doubles benchmark time), and the
18759 substitute we had before is not 100% accurate.
18760 + Don't use Code elements for autolinks if --strict specified.
18762 * LaTeX writer: When a footnote ends with a Verbatim environment, the
18763 close } of the footnote cannot occur on the same line or an error occurs.
18764 Fixed this by adding a newline before the closing } of every footnote.
18767 + Removed incorrect "{}" around style information in HTML tables.
18768 Column widths now work properly in HTML.
18769 + If --strict option is specified (and --toc is not), don't include
18770 identifiers in headers, for better Markdown compatibility.
18774 + Separated $(web_dest) and website targets.
18775 + In website, index.txt is now constructed from template index.txt.in.
18776 + Added freebsd target to Markefile. This creates the freebsd Makefile
18777 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
18778 from the repository.
18779 + Added macport target to Makefile. Portfile is built from template
18781 + Removed OSX package targets. (Too many difficulties involving
18782 dependencies on dynamic libraries.)
18783 + More complete INSTALL instructions for all architectures.
18786 + Added a programming demo, pandocwiki.
18790 * Do not forget to close pandoc's ITP. Closes: #391666
18792## pandoc 0.41 (2007-08-19)
18794 [ John MacFarlane ]
18796 * Fixed bugs in HTML reader:
18797 + Skip material at end *only if* `</html>` is present (previously,
18798 only part of the document would be parsed if an error was
18799 found; now a proper error message is given).
18800 + Added new constant eitherBlockOrInline with elements that may
18801 count either as block-level or as inline. Modified isInline and
18802 isBlock to take this into account.
18803 + Modified rawHtmlBlock to accept any tag (even an inline tag):
18804 this is innocuous, because rawHtmlBlock is tried only if a regular
18805 inline element can't be parsed.
18806 + Added a necessary 'try' in definition of 'para'.
18808 * Fixed bug in markdown ordered list parsing. The problem was that
18809 anyOrderedListStart did not check for a space following the
18810 ordered list marker. So in 'A.B. 2007' the parser would be
18811 expecting a list item, but would not find one, causing an error.
18812 Fixed a similar bug in the RST reader. Resolves Issue #22.
18814 * Refactored RST and Markdown readers using parseFromString.
18816 * LaTeX reader will now skip anything after \end{document}.
18818 * Fixed blockquote output in markdown writer: previously, block
18819 quotes in indented contexts would be indented only in the first
18822 * Added note to INSTALL about variations in versions of the xhtml
18823 library that can lead to failed tests (thanks to Leif LeBaron).
18825## pandoc 0.4 (2007-01-16)
18827 [ John MacFarlane ]
18829 * Added two new output formats: groff man pages and ConTeXt. By
18830 default, output files with extensions ".ctx" and ".context" are
18831 assumed to be ConTeXt, and output files with single-digit extensions
18832 are assumed to be man pages.
18834 * Enhanced ordered lists (documented in README, under Lists):
18835 + The OrderedList block element now stores information about
18836 list number style, list number delimiter, and starting number.
18837 + The readers parse this information when possible.
18838 + The writers use this information to style ordered lists.
18839 + The enhancement can be disabled using the --strict option.
18841 * Added support for tables (with a new Table block element). Two kinds
18842 of tables are supported: a simple table with one-line rows, and a
18843 more complex variety with multiline rows. All output formats are
18844 supported, but only markdown tables are parsed at the moment. The
18845 syntax is documented in README.
18847 * Added support for definition lists (with a new DefinitionList block
18848 element). All output and input formats are supported. The syntax is
18849 documented in README.
18851 * Added support for superscripts and subscripts (with new Superscript
18852 and Subscript inline elements). All input and output
18853 formats. The syntax is documented in README.
18855 * Added support for strikeout (with a new Strikeout inline element).
18856 All input and output formats are supported. Thanks to Bradley Kuhn,
18857 who contributed a patch. The syntax is documented in README. Resolves
18860 * Added a --toc|--table-of-contents option. This causes an automatically
18861 generated table of contents (or an instruction that creates one) to
18862 be inserted at the beginning of the document. Not supported in S5,
18863 DocBook, or man page writers.
18865 * Modified the -m|--asciimathml option:
18867 + If an optional URL argument is provided, a link is inserted
18868 instead of the contents of the ASCIIMathML.js script.
18869 + Nothing is inserted unless the document actually contains
18872 * Removed Blank block element as unnecessary.
18874 * Removed Key and Note blocks from the Pandoc data structure. All
18875 links are now stored as explicit links, and note contents are
18876 stored with the (inline) notes.
18878 + All link Targets are now explicit (URL, title) pairs; there
18879 is no longer a 'Ref' target.
18880 + Markdown and RST parsers now need to extract data from key and
18881 note blocks and insert them into the relevant inline elements.
18882 Other parsers have been simplified, since there is no longer any need
18883 to construct separate key and note blocks.
18884 + Markdown, RST, and HTML writers need to construct lists of
18885 notes; Markdown and RST writers need to construct lists of link
18886 references (when the --reference-links option is specified); and
18887 the RST writer needs to construct a list of image substitution
18888 references. All writers have been rewritten to use the State monad
18889 when state is required.
18890 + Several functions (generateReference, keyTable,
18891 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
18892 used by them) have been removed from Text.Pandoc.Shared, since
18893 they are no longer needed. New functions and data structures
18894 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
18895 added. The functions inTags, selfClosingTag, inTagsSimple, and
18896 inTagsIndented have been moved to the DocBook writer, since that
18897 is now the only module that uses them. NoteTable is now exported
18898 in Text.Pandoc.Shared.
18899 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
18900 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
18901 + Added writerNotes and writerReferenceLinks to WriterOptions.
18903 * Added Text.Pandoc module that exports basic readers, writers,
18904 definitions, and utility functions. This should export everything
18905 needed for most uses of Pandoc libraries. The haddock documentation
18906 includes a short example program.
18908 * Text.Pandoc.ASCIIMathML is no longer an exported module.
18910 * Added Text.Pandoc.Blocks module to help in printing markdown
18911 and RST tables. This module provides functions for working with
18912 fixed-width blocks of text--e.g., placing them side by side, as
18915 * Refactored to avoid reliance on Haskell's Text.Regex library, which
18916 (a) is slow, and (b) does not properly handle unicode. This fixed
18917 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
18919 + Replaced 'gsub' with a general list function 'substitute'
18920 that does not rely on Text.Regex.
18921 + Rewrote extractTagType in HTML reader so that it doesn't use
18923 + In Markdown reader, replaced email regex test with a custom email
18924 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
18925 with a custom function isSelfClosingTag.
18926 + Modified Docbook writer so that it doesn't rely on Text.Regex for
18927 detecting 'mailto' links.
18928 + Removed escapePreservingRegex and reamped entity-handling
18929 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
18930 avoid reliance on Text.Regex (see below on character reference
18933 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
18935 * Changed handling of XML entities. Entities are now parsed (and unicode
18936 characters returned) in the Markdown and HTML readers, rather than being
18937 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
18938 instead of entities for characters above 128. This makes the HTML and
18939 DocBook output much more readable and more easily editable.
18941 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
18942 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
18943 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
18944 Moved both functions to Text.Pandoc.Writers.Docbook.
18945 + Added characterReference parser to Text.Pandoc.CharacterReferences.
18946 This parses a string and return a unicode character.
18947 + Rewrote decodeCharacterReferences to use the new parser instead of
18949 + Added new charRef parser for Markdown and HTML, which replaces the
18950 old 'entity' parser. Added '&' as a special character in Markdown reader.
18951 + Modified HTML and Markdown readers to call decodeEntities on all raw
18952 strings (e.g. authors, dates, link titles), to ensure that no
18953 unprocessed entities are included in the native representation of
18954 the document. (In the HTML reader, most of this work is done by a
18955 change in extractAttributeName.)
18956 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
18957 since a unicode non-breaking space is impossible to distinguish visually
18958 from a regular space. (Resolves Issue #3.)
18959 + Removed encodeEntitiesNumerical.
18960 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
18961 slight performance boost over the old association list.
18962 + Removed unneeded decodeEntities from 'str' parser in HTML and
18965 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
18966 fromUTF8, for clarity.
18968 * Replaced old haskell98 module names replaced by hierarchical module
18969 names, e.g. List by Data.List. Removed haskell98 from dependencies
18970 in pandoc.cabal, and added mtl (needed for state monad). Substituted
18973 * Refactored and cleaned up character escaping in writers, using
18974 backslashEscapes and escapeStringUsing functions.
18976 * Instead of adding `\n\n` to the end of an input string in Main.hs,
18977 this is now done in the readers. This makes the libraries behave
18978 the way you'd expect from the pandoc program. Resolves Issue #10.
18980 * URLs and email addresses in autolinks are now typeset as Code.
18982 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
18983 doesn't display the whole output unless there's a line ending.
18985 * Major code cleanup in all modules, for greater consistency, concision,
18990 + Fixed several bugs (extractTagType, attribute parsing).
18991 + Remove Null blocks in lists of blocks when possible.
18992 + Allow HTML comments as raw HTML inline.
18996 + Ordered list items may no longer begin with uppercase letters, or
18997 letters greater than 'n'. (This prevents first initials and page
18998 reference, e.g. 'p. 400', from being parsed as beginning lists.)
18999 Also, numbers beginning list items may no longer end with ')',
19000 which is now allowed only after letters. Note: These changes
19001 may cause documents to be parsed differently. Users should take
19003 + Changed autoLink parsing to conform better to Markdown.pl's
19004 behavior. `<google.com>` is not treated as a link, but
19005 `<http://google.com>`, `<ftp://google.com>`, and
19006 `<mailto:google@google.com>` are.
19007 + Cleaned up handling of embedded quotes in link titles. Now these are
19008 stored as a '"' character, not as '"'.
19009 + Use lookAhead parser for the 'first pass' (looking for reference keys),
19010 instead of parsing normally, then using setInput to reset input. This
19011 yields a slight performance boost.
19012 + Fixed several bugs in smart quote recognition.
19013 + Fixed bug in indentSpaces (which didn't properly handle
19014 cases with mixed spaces and tabs).
19015 + Consolidated 'text', 'special', and 'inline' into 'inline'.
19016 + Fixed bug which allowed URL and title to be separated by multiple blank
19017 lines in links and reference keys. They can be on separate lines but
19018 can't have blank lines between them.
19019 + Correctly handle bracketed text inside inline footnotes and links,using
19020 new function inlinesInBalanced. Resolves Issue #14.
19021 + Fixed bug in footnotes: links in footnotes were not being
19022 processed. Solution: three-stage parse. First, get all the
19023 reference keys and add information to state. Next, get all the
19024 notes and add information to state. (Reference keys may be needed
19025 at this stage.) Finally, parse everything else.
19026 + Replaced named constants like 'emphStart' with literals.
19027 + Removed an extra occurrence of escapedChar in definition of inline.
19031 + Allow the URI in a RST hyperlink target to start on the line
19032 after the reference key.
19033 + Added 'try' in front of 'string', where needed, or used a different
19034 parser. This fixes a bug where ````` would not be correctly parsed as
19036 + Fixed slow performance in parsing inline literals in RST reader. The
19037 problem was that ``#`` was seen by 'inline' as a potential link or image.
19038 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
19040 + Use lookAhead instead of getInput/setInput in RST reader. Removed
19041 unneeded getState call, since lookAhead automatically saves and
19042 restores the parser state.
19043 + Allow hyperlink target URIs to be split over multiple lines, and
19044 to start on the line after the reference. Resolves Issue #7.
19045 + Fixed handling of autolinks.
19049 + Replaced `choice [(try (string ...), ...]` idiom with `oneOfStrings`,
19051 + Added clauses for tilde and caret. Tilde is `\ensuremath{\sim}`, and
19052 caret is `\^{}`, not `\^` as before.
19053 + Added parsing for `\url`.
19054 + Parse `\texttt{}` as code, provided there's nothing fancy inside.
19058 + Modified HTML writer to use the Text.XHtml library. This results
19059 in cleaner, faster code, and it makes it easier to use Pandoc in
19060 other projects, like wikis, which use Text.XHtml. Two functions are
19061 now provided, writeHtml and writeHtmlString: the former outputs an
19062 Html structure, the latter a rendered string. The S5 writer is also
19063 changed, in parallel ways (writeS5, writeS5String).
19064 + The Html header is now written programmatically, so it has been
19065 removed from the 'headers' directory. The S5 header is still
19066 needed, but the doctype and some of the meta declarations have
19067 been removed, since they are written programmatically. This change
19068 introduces a new dependency on the xhtml package.
19069 + Fixed two bugs in email obfuscation involving improper escaping
19070 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
19072 + Fixed another bug in email obfuscation: If the text to be obfuscated
19073 contains an entity, this needs to be decoded before obfuscation.
19074 Thanks to thsutton for the patch. Resolves Issue #15.
19075 + Changed the way the backlink is displayed in HTML footnotes.
19076 Instead of appearing on a line by itself, it now generally
19077 appears on the last line of the note. (Exception: when the
19078 note does not end with a Plain or Para block.) This saves space
19080 + Added automatic unique identifiers to headers:
19081 - The identifier is derived from the header via a scheme
19082 documented in README.
19083 - WriterState now includes a list of header identifiers and a table
19084 of contents in addition to notes.
19085 - The function uniqueIdentifiers creates a list of unique identifiers
19086 from a list of inline lists (e.g. headers).
19087 - This list is part of WriterState and gets consumed by blockToHtml
19088 each time a header is encountered.
19089 + Include CSS for .strikethrough class in header only if strikethrough
19090 text appears in the document.
19091 + If the 'strict' option is specified, elements that do not appear in
19092 standard markdown (like definition lists) are passed through as
19094 + Simplified treatment of autolinks, using pattern matching instead of
19099 + Links in markdown output are now printed as inline links by default,
19100 rather than reference links. A --reference-links option has been added
19101 that forces links to be printed as reference links. Resolves Issue #4.
19102 + Use autolinks when possible. Instead of `[site.com](site.com)`,
19107 + Rewrote to use the State monad. The preamble now includes only those
19108 packages that are actually required, given the document's content.
19109 Thus, for example, if strikeout is not used, ulem is not required.
19110 Modified LaTeXHeader accordingly.
19111 + Modified LaTeX writer to insert `\,` between consecutive quotes.
19112 + Removed unused function tableRowColumnWidths.
19113 + Simplified code for escaping special characters.
19114 + Leave extra blank line after `\maketitle`.
19115 + Include empty `\author{}` when no author specified to avoid LaTeX
19117 + Include fancyvrb code in header only if needed -- that is, only
19118 if there is actually code in a footnote.
19119 + Use `\url{}` for autolinks.
19120 + Include [mathletters] option in ucs package, so that basic unicode
19121 Greek letters will work correctly.
19123 * RST writer: Force blank line before lists, so that sublists will
19124 be handled correctly.
19126 * Docbook writer: Fixed a bug: email links with text, like
19127 [foo](me@bar.baz), were being incorrectly treated as autolinks.
19129 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
19130 Text.Pandoc.Shared.
19132 * Text.Pandoc.Shared:
19134 + Added defaultWriterOptions.
19135 + Added writerTableOfContents to WriterOptions.
19136 + Added writerIgnoreNotes option to WriterOptions. This is needed
19137 for processing header blocks for a table of contents, since notes on
19138 headers should not appear in the TOC.
19139 + Added prettyprinting for native Table format.
19140 + Removed some unneeded imports.
19141 + Moved escape and nullBlock parsers from
19142 Text.ParserCombinators.Pandoc, since the latter is for
19143 general-purpose parsers that don't depend on Text.Pandoc.Definition.
19144 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
19145 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
19146 writer, because HTML writer now uses these in constructing a table
19148 + Added clauses for new inline elements (Strikeout, Superscript,
19149 Subscript) to refsMatch.
19150 + Removed backslashEscape; added new functions escapeStringUsing and
19152 + Moved failIfStrict from markdown reader, since it is now used also
19153 by the HTML reader.
19154 + Added a 'try' to the definition of indentSpaces.
19155 + In definition of 'reference', added check to make sure it's not a note
19157 + Added functions: camelCaseToHyphenated, toRomanNumeral,
19158 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
19159 charsInBalanced', withHorizDisplacement, romanNumeral
19160 + Fixed a bug in the anyLine parser. Previously it would parse an empty
19161 string "", but it should fail on an empty string, or we get an error
19162 when it is used inside "many" combinators.
19163 + Removed followedBy' parser, replacing it with the lookAhead parser from
19165 + Added some needed 'try's before multicharacter parsers, especially in
19167 + Removed the 'try' from the 'end' parser in 'enclosed', so that
19168 'enclosed' behaves like 'option', 'manyTill', etc.
19169 + Added lineClump parser, which parses a raw line block up to and
19170 including any following blank lines.
19171 + Renamed parseFromStr to parseFromString.
19172 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
19173 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
19175 + Removed unneeded 'try' in blanklines.
19176 + Removed endsWith function and rewrote calling functions to use
19177 isSuffixOf instead.
19178 + Added >>~ combinator.
19179 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
19182 * Refactored runtests.pl; added separate tests for tables.
19186 + Added -asxhtml flag to tidy in html2markdown. This will
19187 perhaps help the parser, which expects closing tags.
19188 + Modified markdown2pdf to run pdflatex a second time if --toc or
19189 --table-of-contents was specified; otherwise the table of
19190 contents won't appear.
19191 + Modified markdown2pdf to print a helpful message if the 'ulem'
19192 LaTeX package is required and not found.
19194 * Changes to build process:
19196 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
19198 + Removed cabalize and Pandoc.cabal.in. The repository now contains
19199 pandoc.cabal itself.
19200 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
19201 likes the cabal file to have the same name as the tarball.
19202 + Expanded and revised the package description in pandoc.cabal.
19203 Revised the package synopsis.
19204 + The tarball built by 'make tarball' now contains files built from
19205 templates (including man pages and shell scripts), so pandoc can
19206 be built directly using Cabal tools, without preprocessing.
19207 + Executable binaries are now stripped before installing.
19208 + Man pages are now generated from markdown sources, using pandoc's
19210 + Use HTML version of README (instead of RTF) in Mac OS X installer.
19211 + Instead of testing for the existence of a pandoc symlink in build-exec,
19216 + Updated README and man pages with information on new features.
19217 + Updated INSTALL instructions with some useful clarifications and
19219 + Updated web content.
19221 * Added FreeBSD port.
19227 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
19228 libghc6-xhtml-dev. Removed libghc6-html-dev.
19229 + Suggest texlive-latex-recommended | tetex-extra instead of
19230 tetex-bin. This brings in fancyvrb and unicode support.
19233## pandoc 0.3 (2007-01-05)
19235 [ John MacFarlane ]
19237 * Changes in pandoc options:
19239 + Allow options to follow or precede arguments.
19240 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
19241 + Added '--strict' option.
19242 + Added '-o/--output' option.
19243 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
19244 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
19245 error conditions. This is helpful for writing wrappers.
19246 + Added copyright message to '-v' output, modeled after FSF messages.
19247 + Reformatted usage message so that it doesn't wrap illegibly.
19248 + Removed extra blanks after '-h' and '-D' output.
19250 * Added docbook writer.
19252 * Added implicit setting of default input and output format based
19253 on input and output filename extensions. These defaults are
19254 overridden if explicit input and output formats are specified using
19255 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
19258 * Allow ordered list items to begin with (single) letters, as well
19259 as numbers. The list item marker may now be terminated either by
19260 '.' or by ')'. This extension to standard markdown is documented
19263 * Revised footnote syntax. (See README for full details.) The
19264 '[^1]' format now standard in markdown extensions is supported,
19265 as are inline footnotes with this syntax: `^[My note.]`.
19266 The earlier footnote syntax `^(1)` is no longer supported.
19268 * Improved HTML representation of footnotes. All footnotes
19269 are now auto-numbered and appear in an ordered list at the
19270 end of the HTML document. Since the default appearance is now
19271 acceptable, the old footnote styles have been removed from the
19276 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
19277 These readers ran 'runParser' on processed chunks of text to handle
19278 embedded block lists in lists and quotation blocks. But then
19279 any changes made to the parser state in these chunks was lost,
19280 as the state is local to the parser. So, for example, footnotes
19281 didn't work in quotes or list items. The fix: instead of calling
19282 runParser on some raw text, use setInput to make it the input, then
19283 parse it, then use setInput to restore the input to what it was
19284 before. This is shorter and more elegant, and it fixes the problem.
19285 + Fixed bug in notFollowedBy' combinator (adding 'try' before
19286 'parser'). Adjusted code that uses this combinator accordingly.
19287 + Fixed bug in RTF writer that caused improper indentation on
19288 footnotes occurring in indented blocks like lists.
19289 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
19290 and date are parsed correctly. Everything else in the preamble
19292 + Modified escapedChar in LaTeX reader to allow a `\` at the end of a
19293 line to count as escaped whitespace.
19294 + Modified LaTeX reader to produce inline links rather than reference
19295 links. Otherwise, links in footnotes aren't handled properly.
19296 + Fixed handling of titles in links in Markdown reader, so that
19297 embedded quotation marks are now handled properly.
19298 + Fixed Markdown reader's handling of embedded brackets in links.
19299 + Fixed Markdown reader so that it only parses bracketed material
19300 as a reference link if there is actually a corresponding key.
19301 + Revised inline code parsing in Markdown reader to conform to
19302 markdown standard. Now any number of `s can begin inline code,
19303 which will end with the same number of `s. For example, to
19304 have two backticks as code, write ``` `` ```. Modified Markdown
19305 writer accordingly.
19306 + Fixed bug in text-wrapping routine in Markdown and RST writers.
19307 Now LineBreaks no longer cause wrapping problems.
19308 + Supported hexadecimal numerical entity references as well as
19310 + Fixed bug in Markdown reader's handling of underscores and other
19311 inline formatting markers inside reference labels: for example,
19312 in '[A_B]: /url/a_b', the material between underscores was being
19313 parsed as emphasized inlines.
19314 + Changed Markdown reader's handling of backslash escapes so that
19315 only non-alphanumeric characters can be escaped. Strict mode
19316 follows Markdown.pl in only allowing a select group of punctuation
19317 characters to be escaped.
19318 + Modified HTML reader to skip a newline following a `<br>` tag.
19319 Otherwise the newline will be treated as a space at the beginning
19322 * Made handling of code blocks more consistent. Previously, some
19323 readers allowed trailing newlines, while others stripped them.
19324 Now, all readers strip trailing newlines in code blocks. Writers
19325 insert a newline at the end of code blocks as needed.
19327 * Modified readers to make spacing at the end of output more consistent.
19329 * Minor improvements to LaTeX reader:
19331 + `\thanks` now treated like a footnote.
19332 + Simplified parsing of LaTeX command arguments and options.
19333 commandArgs now returns a list of arguments OR options (in
19334 whatever order they appear). The brackets are included, and
19335 a new stripFirstAndLast function is provided to strip them off
19336 when needed. This fixes a problem in dealing with \newcommand
19337 and \newenvironment.
19339 * Revised RTF writer:
19341 + Default font is now Helvetica.
19342 + An `\f0` is added to each `\pard`, so that font resizing works
19345 * Moved handling of "smart typography" from the writers to the Markdown
19346 and LaTeX readers. This allows great simplification of the writers
19347 and more accurate smart quotes, dashes, and ellipses. DocBook can
19348 now use `<quote>`. The '--smart' option now toggles an option in
19349 the parser state rather than a writer option. Several new kinds
19350 of inline elements have been added: Quoted, Ellipses, Apostrophe,
19353 * Changes in HTML writer:
19355 + Include title block in header even when title is null.
19356 + Made javascript obfuscation of emails even more obfuscatory,
19357 by combining it with entity obfuscation.
19359 * Changed default ASCIIMathML text color to black.
19363 + Added --strip-trailing-cr option to diff in runtests.pl, for
19364 compatibility with Windows.
19365 + Added regression tests with footnotes in quote blocks and lists.
19367 * Makefile changes:
19369 + osx-pkg target creates a Mac OS X package (directory). New osx
19370 directory contains files needed for construction of the package.
19371 + osx-dmg target creates a compressed disk image containing the package.
19372 + win-pkg target creates Windows binary package.
19373 + tarball target creates distribution source tarball.
19374 + website target generates pandoc's website automatically, including
19375 demos. New 'web' directory contains files needed for construction
19376 of the website (which will be created as the 'pandoc' subdirectory
19378 + Makefile checks to see if we're running Windows/Cygwin; if so,
19379 a '.exe' extension is added to each executable in EXECS.
19381 * Removed all wrappers except markdown2pdf and html2markdown.
19383 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
19384 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
19385 option and disables other options.
19387 * Added code to html2markdown that tries to determine the character
19388 encoding of an HTML file, by parsing the "Content-type" meta tag.
19390 + If the encoding can't be determined, then if the content is local,
19391 the local encoding is used; if it comes from a URL, UTF-8 is used
19393 + If input is from STDIN, don't try to determine character encoding.
19394 + Encoding can be specified explicitly using '-e' option.
19396 * Improved warning messages in wrappers:
19398 + Print warning if iconv not available
19399 + More user-friendly error messages in markdown2pdf, when
19404 + Renamed 'Text/Pandoc/HtmlEntities' module to
19405 'Text/Pandoc/Entities'. Also changed function names so as
19406 not to be HTML-specific.
19407 + Refactored SGML string escaping functions from HTML and Docbook
19408 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
19409 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
19411 + Removed splitBySpace and replaced it with a general, polymorphic
19413 + Refactored LaTeX reader for clarity (added isArg function).
19414 + Converted some CR's to LF's in src/ui/default/print.css.
19415 + Added license text to top of source files.
19416 + Added module data for haddock to source files.
19417 + Reformatted code for consistency.
19419 * Rewrote documentation and man pages. Split README into INSTALL
19422 * Split LICENSE into COPYING and COPYRIGHT.
19424 * Removed TODO, since we now maintain ToDo on the wiki.
19426 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
19431 * Revamped build process to conform to debian standards and created
19432 a proper debian package. Closes: #391666.
19434 * Modified build process to support GHC 6.6.
19436 + The package can still be compiled using GHC 6.4.2, though because
19437 of dependencies the "make deb" target works only with GHC 6.6+.
19438 + The script 'cabalize' is used to create an appropriate
19439 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
19442 * Refactored template processing (fillTemplates.pl).
19444 * Modified wrapper scripts to make them more robust and portable.
19445 To avoid code duplication and ensure consistency, wrappers are
19446 generated via a templating system from templates in src/wrappers.
19448 + Wrappers now accept multiple filenames, when appropriate.
19449 + Spaces and tabs allowed in filenames.
19450 + getopts shell builtin is used for portable option parsing.
19451 + Improved html2markdown's web grabber code, making it more robust,
19452 configurable and verbose. Added '-e', '-g' options.
19455## pandoc 0.2 (2006-08-14)
19457 * Fixed unicode/utf-8 translation
19459## pandoc 0.1 (2006-08-14)
19461 * 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