3 * Use XDG data directory for user data directory (#3582). Instead of
4 `$HOME/.pandoc`, the default user data directory is now
5 `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
6 `$HOME/.local/share` but can be overridden by setting the
7 environment variable. If this directory is missing, then
8 `$HOME/.pandoc` is searched instead, for backwards compatibility.
9 However, we recommend moving local pandoc data files from
10 `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the
11 default user data directory remains the same.
13 * Slide show formats behavior change: content under headers
14 less than slide level is no longer ignored, but included in
15 the title slide (for HTML slide shows) or in a slide after
16 the title slide (for beamer). This change makes possible
17 2D reveal.js slideshows with content in the top slide on
18 each stack (#4317, #5237).
20 * Add command line option `--ipynb-output=all|none|best` (#5339).
21 Output cells in ipynb notebooks often contain several different
22 versions of an output, with different MIME types, e.g. an HTML
23 table and a plain-text fallback. Specifying `--ipynb-output=best`
24 (the default) ensures that the best version for the output format
25 is used. `all` includes all versions, and `none` suppresses them
26 all, leaving output cells empty.
28 * `asciidoctor` is now an output format separate from `asciidoc`,
29 to accommodate some minor implementation-specific differences
30 (currently just in the treatment of display math).
32 * Add `latexmk` as an option for `--pdf-engine` (#3195).
33 Note that you can use `--pdf-engine-opt=-outdir=bar` to specify
34 a persistent temp directory.
38 + Improve tight/loose list handling (#5285). Previously the
39 algorithm allowed list items with a mix of Para and Plain, which
41 + Add newline when parsing blocks in YAML (#5271). Otherwise last
42 block gets parsed as a Plain rather than a Para. This is a
43 regression in pandoc 2.x. This patch restores pandoc 1.19
45 + Make `yamlToMeta` respect extensions (#5272, Mauro Bieg).
46 This adds a `ReaderOptions` parameter to `yamlToMeta` [API change].
47 + Fix bug parsing fenced code blocks (#5304). Previously parsing
48 would break if the code block contained a string of backticks of
49 sufficient length followed by something other than end of line.
51 * LaTeX reader: don't let `\egroup` match `{`. `braced` now actually
52 requires nested braces. Otherwise some legitimate command and
53 environment definitions can break.
55 * Docx reader (Jesse Rosenthal):
57 + Rename `getDocumentPath` as `getDocumentXmlPath`.
58 + Use field notation for setting `ReaderEnv`.
59 + Figure out `document.xml` path once at the beginning of parsing, and
60 add it to the environment, so we can avoid repeated lookups.
61 + Dynamically determine main document xml path (#5277).
62 The desktop Word program places the main document file in
63 `word/document.xml`, but the online word places it in
64 `word/document2.xml`. This file path is actually stated in the root
65 `_rels/.rels` file, in the `Relationship` element with an
66 `http://../officedocument` type.
67 + Fix paths in archive to prevent Windows failure (#5277).
68 Some paths in archives are absolute (have an opening slash) which, for
69 reasons unknown, produces a failure in the test suite on MS
70 Windows. This fixes that by removing the leading slash if it exists.
71 + Add comments to aid code readability.
72 + Trim space inside the last inline (#5273).
73 + Unwrap sdt elements in footnotes and comments (#5302).
75 * Muse reader (Alexander Krotov):
77 + Test that block level markup does not break `<verbatim>`.
78 + Add secondary note support.
80 * ipynb reader: handle images referring to attachments. Previously
81 we didn't strip off the attachment: prefix, so even though the
82 attachment was available in the mediabag, pandoc couldn't find it.
86 + Fix parsing of figures (#5321). This ensures that a figure
87 containing a single image is parsed as a pandoc "implicit
88 figure" (i.e., a Para with a single Image whose title attribute
89 begins with `fig:`). More complex figures will still be parsed
91 + Support `fig-group` block element (#5317).
92 + Handle citations with multiple references (#5310). The `rid`
93 attribute can have a space-separated list of ids.
95 * AsciiDoc Writer: Add `writeAsciiDoctor` [API change, Tarik Graba].
96 Handle display math appropriately for Asciidoctor.
98 * JATS writer: wrap figure caption in `<p>` to fix validation (#5290,
103 + Implement WAI-ARIA roles for (end)notes, citations, and
104 bibliography (#4213). Note that doc-biblioref is only used when
105 link-citations produces links, since it belongs on links.
106 + Include content (including speaker notes) in title slides
111 + Ensure final newline.
112 + Only include metadata under `jupyter` field.
113 + Don't create attachments for images with absolute URIs,
114 including data: URIs (#5303).
115 + Keep plain text fallbacks in output even if a richer format is
116 included (#5293). We don't know what output format will be needed.
117 See the `--ipynb-output` command line option for a way to control
118 what formats are included in the output.
120 * Markdown writer: use `markdown="1"` when appropriate for Divs:
121 when `native_divs` and `markdown_in_html_blocks` are disabled
122 but `raw_html` and `markdown_attribute` are enabled.
126 + Use right fold for `escapeString`. This is more elegant than
127 the explicit recursive code we were using.
128 + Avoid `{}` after control sequences when escaping.
129 `\ldots{}.` doesn't behave as well as `\ldots.` with the latex
130 ellipsis package. This patch causes pandoc to avoid emitting
131 the `{}` when it is not necessary. Now `\ldots` and other
132 control sequences used in escaping will be followed by either
133 a `{}`, a space, or nothing, depending on context.
134 + For beamer, include contents under headers superordinate to
135 slidelevel (#4317). Currently we keep the fancy title slide, and
136 add a new slide with the same title and whatever content was
139 * Powerpoint writer (Jesse Rosenthal): support underlines.
140 Use span with single class "underline" as in docx writer.
142 * Muse writer: escape secondary notes (Alexander Krotov).
144 * FB2 writer: add section identifiers support (#5229, John KetzerX).
146 * Make `--fail-if-warnings` work for PDF output (#5343).
148 * Lua filters (Albert Krewinkel):
150 + Load module `pandoc` before calling `init.lua` (#5287). The file
151 `init.lua` in pandoc's data directory is run as part of pandoc's
152 Lua initialization process. Previously, the `pandoc` module was
153 loaded in `init.lua`, and the structure for marshaling was
154 set up after. This allowed simple patching of element
155 marshaling, but made using `init.lua` more difficult. Now, all
156 required modules are now loaded before calling `init.lua`. The
157 file can be used entirely for user customization. Patching
158 marshaling functions, while discouraged, is still possible via
160 + All Lua modules bundled with pandoc, i.e., `pandoc.List`,
161 `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the
162 `pandoc` module. They are assigned to the fields `List`, `mediabag`,
163 `utils`, and `text`, respectively.
165 * Text.Pandoc.Lua (Albert Krewinkel):
167 + Split `StackInstances` into smaller Marshaling modules.
168 + Get `CommonState` from Lua global. This allows more control over
169 the common state from within Lua scripts.
173 + Support the `subject` metadata variable (#5289, Pascal Wagler).
174 + Add \frontmatter, \mainmatter, \backmatter for book classes (#5306).
176 * epub3 template: Add titlepage class to section (#5269).
178 * HTML5 template: Add ARIA role `doc-toc` for table of contents (#4213).
180 * Make --metadata-file use pandoc-markdown (#5279, #5272, Mauro Bieg).
182 * Text.Pandoc.Shared:
184 + Remove `withTempDir` [API change].
185 + Add new exported function `defaultUserDataDirs` [API change].
186 + Add `filterIpynbOutput` [API change].
187 + `compactify`: Avoid lists with a mix of Plain and Para elements
190 * Text.Pandoc.Translations: reorder alphabetically and remove `Author`
193 * Text.Pandoc.Extensions:
195 + More carefully groom ipynb default extensions.
196 + Add `all_symbols_escapable` to `githubMarkdownExtensions`.
200 + Use system temp directory when possible (#1192). Previously we
201 created temp dirs in the working directory, partly (a) because
202 there were problems using the system temp directory on Windows,
203 when their pathnames included tildes, and partly (b) because
204 programs like `epstopdf.pl` would not be allowed to write to
205 directories outside the working directory in restricted mode. We
206 now (a) use the system temp dir except when the path includes
207 tildes, and (b) set `TEXMFOUTPUT` when creating the PDF, so that
208 subsidiary programs can use the system temp directory. This
209 addresses problems that occurred when pandoc was used in a
210 synced directory (such as Dropbox).
211 + Change types of subsidiary functions to PandocIO, to allow
212 warnings to be threaded through (#5343).
214 * Text.Pandoc.MIME: add WebP (#5267, Mauro Bieg).
216 * Tests: avoid calling `findPandoc` multiple times.
218 * Old tests: remove need for temp files by using `pipeProcess`.
220 * Added simple ipynb reader/writer tests (#5274).
222 * Rearrange `--help` output in a more rational way, with common
223 options at the beginning and options grouped by function (#5336).
225 * trypandoc: Add JATS and other missing formats (Arfon Smith, #5291).
227 * Add missing copyright notices and remove license boilerplate (#4592,
230 * Use latest basement/foundation on 32bit windows.
232 * Use latest skylighting (#5328). Custom syntax definitions no
233 longer try to load `language.dtd`.
235 * Require texmath 0.11.2.1
237 * Use latest pandoc-citeproc (0.16.1.1).
241 + Clarify variable substitution indentation in templates (#5338,
242 Agustín Martín Barbero).
243 + Reorder custom-styles section (#5324, Mauro Bieg).
247 * Support ipynb (Jupyter notebook) as input and output format.
249 + Add `ipynb` as input and output format (extension `.ipynb`).
250 + Added Text.Pandoc.Readers.Ipynb [API change].
251 + Added Text.Pandoc.Writers.Ipynb [API change].
252 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
254 + Depend on ipynb library.
255 + Note: there is no template for ipynb.
257 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
258 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
261 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
262 extension. Task lists are supported from markdown and gfm input.
263 They should work, to some degree, in all output formats, though in
264 most formats you'll get a bullet list with a unicode character for
265 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
266 box is used as the list marker. API changes:
268 + Added constructor `Ext_task_lists` to `Extension`.
269 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
272 * Allow some command line options to take URL in addition to FILE.
273 `--include-in-header`, `--include-before-body`, `--include-after-body`.
277 + Handle empty `start` attribute (see #5162).
278 + Treat `textarea` as a verbatim environment (#5241) and preserve
283 + Change treatment of `number-lines` directive (Brian Leung,
284 #5207). Directives of this type without numeric inputs should
285 not have a `startFrom` attribute; with a blank value, the
286 writers can produce extra whitespace.
287 + Removed superfluous `sourceCode` class on code blocks (#5047).
288 + Handle `sourcecode` directive as synonynm for `code` (#5204).
292 + Remove `sourceCode` class for literate Haskell code blocks
293 (#5047). Reverse order of `literate` and `haskell` classes on
294 code blocks when parsing literate Haskell, so `haskell` is
296 + Treat `<textarea>` as a verbatim environment (#5241).
300 + Handle `minlevel` option differently (#5190, Brian Leung).
301 When `minlevel` exceeds the original minimum level observed in
302 the file to be included, every heading should be shifted
304 + Allow for case of `:minlevel == 0` (#5190).
305 + Fix treatment of links to images (#5191, Albert Krewinkel).
306 Links with descriptions which are pointing to images are no
307 longer parsed as inline images, but as links.
308 + Add support for #+SELECT_TAGS (Brian Leung).
309 + Separate filtering logic from conversion function (Brian Leung).
311 * TWiki reader: Fix performance issue with underscores (#3921).
313 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
314 We may not still be exactly matching mediawiki's algorithm.
318 + Remove `sourceCode` class for literate Haskell code blocks
319 (#5047). Reverse order of `literate` and `haskell` classes on
320 code blocks when parsing literate Haskell, so `haskell` is
322 + Support `\DeclareMathOperator` (#5149).
323 + Support `\inputminted` (#5103).
324 + Support `\endinput` (#5233).
325 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
326 was interpreted as a file extension, leading pandoc not to add
327 `.tex` (and thus not to find the file). The new behavior matches
332 + Use `mapLeft` from Shared instead of defining own.
334 * Docx reader (Jesse Rosenthal):
336 + Handle level overrides (#5134).
340 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
341 Also supports additional core properties: `subject`, `lang`,
342 `category`, `description`.
343 + Make Level into a real type, instead of an alias for a tuple
346 * ICML writer (Mauro Bieg):
348 + Support custom-styles (#5137, see #2106).
349 + Support unnumbered headers (#5140).
351 * Texinfo writer: Use header identifier for anchor if present (#4731).
352 Previously we were overwriting an existing identifier with a new one.
354 * Org writer: Preserve line-numbering for example and code blocks
357 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
358 in HTML and PDF as a unicode minus sign.
360 * Ms writer: Ensure we have a newline after .EN in disply math (#5251).
362 * RST writer: Don't wrap simple table header lines (#5128).
364 * Asciidoc writer: Shorter delimiters for tables, blockquotes
365 (#4364). This matches asciidoctor reference docs.
367 * Dokuwiki writer: Remove automatic `:` prefix before internal image
368 links (#5183, Damien Clochard). This prevented users from making
369 relative image links.
371 * Zimwiki writer: remove automatic colon prefix before internal
372 images (#5183, Damien Clochard).
374 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
375 (#5105). Captions used to have the word 'caption' prepended; this
376 has been removed. Also, 'thumb' is used instead of 'frame' to
377 allow images to be resized.
381 + Ensure that we don't get > 2 levels of section nesting,
382 even with slide level > 2 (#5168).
383 + If slide level == N but there is no N-level header, make
384 sure the next header with level > N gets treated as a slide
385 and put in a section, rather than remaining loose (#5168).
389 + Make `plain` RawBlocks pass through in `plain` output.
390 + Include needed whitespace after HTML figure (#5121).
391 We use HTML for a figure in markdown dialects that can't
392 represent it natively.
396 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
397 + Implement `--toc` (`writerTableOfContents`)
398 in commonmark/gfm writers (#5172).
402 + Ensure that picture transforms are done on metadata too.
403 + Small fixes to `nav.xhtml`:
404 Add 'landmarks' id attribute to the landmarks nav.
405 Replace old default CSS removing numbers from ol.toc li
406 with new rules that match `nav#toc ol, nav#landmarks ol`.
407 We keep the `toc` class on `ol` for backwards compatibility.
411 + Make raw content marked `beamer` pass through in `beamer`
412 output (pandoc/lua-filters#40).
413 + Beamer: avoid duplicated `fragile` property in some cases
415 + Add `#` special characters for listings (#4939).
416 This character needs special handling in `\lstinline`.
418 * RTF writer: use `toTableOfContents` from Shared to replace
423 + Support custom properties. Also supports additional core
424 properties: `subject`, `category`, `description` (#5252,
425 Agustín Martín Barbero).
426 + Use `toTableOfContents` from Shared to replace old duplicated code.
428 * ODT writer (Augustín Martín Barbero):
430 + Fix typo in custom properties (#2839).
431 + Improve standard properties, including the following core
432 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
433 `keywords`, `initial-creator` (from authors), `creation-date`
434 (actual creation date) (#5252).
438 + Allow '-' in filenames for custom lua writers (#5187).
439 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
440 + sample.lua: Add a missing `>` (MichaWiedenmann).
442 * reveal.js template: Add `zoomKey` config (#4249).
444 * HTML5 template: Remove unnecessary type="text/css" on style and
445 link for HTML5 (#5146).
447 * LaTeX template (Andrew Dunning, except where noted):
449 + Prevent fontspec from scaling `mainfont` to match the default
450 font, Latin Modern. A main font set to 12pt could
451 previously appear between 11pt to 13pt depending on its design.
452 To return to the earlier rendering, use `-V
453 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
454 + Display monospaced fonts without TeX ligatures when using
455 `--pdf-engine=lualatex`. It now matches the behaviour of other
456 engines (#5212, #5218).
457 + Remove the deprecated `romanfont` variable. The functionality of
458 `mainfont` is identical (#5218).
459 + Render `\subtitle` with the standard document classes.
460 Previously, `subtitle` only appeared when using the KOMA-Script
461 classes or Beamer (#5213, #5244).
462 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
463 several language selection problems, notably with retaining
464 French spacing conventions when switching to a verbatim
465 environment or another language; and in printing Greek text
466 without hyphenation (#5193).
467 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
468 available, improving the appearance of URLs by allowing them to
469 break at additional points (#5193).
470 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
471 to correct heading levels in PDF bookmarks: see the [KOMA-Script
472 3.26 release notes](https://komascript.de/release3.26) (#5193).
473 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
474 avoid a possible error when using additional packages alongside
475 footnotes in tables (#5193, closes #4861).
476 + Remove obsolete `fixltx2e` package, which has no functionality
477 with TeX Live 2015 or later (#5193).
478 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
479 + Restrict `institute` variable to Beamer (#5219).
480 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
481 package if available to make footnotes in tables compatible
482 with `hyperref` (#5234).
483 + Number parts and chapters in book classes only if the
484 `numbersections` variable is set, for consistency with other
485 output formats. To return to the previous behaviour, use
486 `-V numbersections -V secnumdepth=0` (#5235).
487 + Reindent file (#5193).
488 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
489 + Set default listings language for lua, assembler (#5227, John
490 MacFarlane). Otherwise we get an error when trying to compile code
491 with lua or assembler code. To change the default dialect
492 (currenty 5.3 for lua and x86masm for assembler), you can use
493 `--include-in-header` to inject something like
494 `\lstset{defaultdialect=[5.2]Lua}`.
496 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
497 in an instance of PandocMonad, like the other readers and
498 writers. [API change]
500 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
501 in an instance of PandocMonad, like the other readers and
502 writers. [API change]
504 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
505 for `PandocError`. [API change]
507 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
508 This is refactored out from the Markdown writer.
509 It can be used in other writers to create a table of contents.
511 * Improve error messages for UTF-8 decoding errors. Now we give
512 the filename and byte offset (#4765).
514 * Text.Pandoc.XML: Strip out illegal XML characters in
515 `escapeXMLString` (#5119).
517 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
518 The implementation of `pipeProcess` was rewritten to fix sporadic
519 failures caused by prematurely closed pipes.
521 * Use `safeRead` instead of `read` everywhere in the code
522 (John MacFarlane, Mauro Bieg, #5162, #5180).
524 * Text.Pandoc.SelfContained: Decompress `.svgz` when
525 converting to `data:` URI (#5163, Alexander Krotov).
527 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
528 (#5175, Alexander Krotov). [API change]
530 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
531 When pandoc is compiled with ghc 8.6, Windows paths are treated
532 differently, and paths beginning `\\server` no longer work.
533 This commit rewrites such patsh to `\\?\UNC\server` which works.
534 The change operates at the level of argument parsing, so it
535 only affects the command line program.
537 * Simplify/fix reading of `--metadata` values on command line
538 to avoid problems relating to hvr/HsYAML#7 (#5177).
540 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
541 Krewinkel). Incorrect types to pandoc element constructors are
542 automatically converted to the correct types when possible. This was
543 already done for most constructors, but conversions are now also done
544 for nested types (like lists of lists).
546 * Removed custom Setup.hs, use build-type: simple. The only thing we
547 gained from the custom build was automatic installation of the man
548 page when using 'cabal install'. But custom builds cause problems,
549 e.g., with cross-compilation. Installation of the man page is
550 better handled by packagers. Note to packagers (e.g. Debian): it
551 may be necessary to add a step installing the man page with the
554 * Allow latest http-client, tasty, zip-archive, Glob.
556 * Require skylighting >= 0.7.5, adding support for sml, J,
559 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
560 works well with cabal v2.
564 + Use button for installer links (John MacFarlane, Mauro Bieg,
566 + Fix links and bump required stack version (max).
567 + Improve installation notes on associated software (Andrew
568 Dunning). Includes explanation of how to install related tools
569 with package managers (since the method of installing
570 `rsvg-convert` is not obvious).
572 * doc/org.md: improve documentation of org features (Albert
575 * doc/lua-filters.md: use 3rd level headers for module fields.
579 + Clarify automatic identifiers (#5201). We remove
580 non-alphanumerics. This includes, e.g., emojis.
581 + Fix example for Div with id (Geoffrey Ely).
582 + Update list of LaTeX packages used.
583 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
584 + Mention `raw_attribute` in documentation for `raw_html` and
585 `raw_tex` (#5240, thanks to @eiro).
586 + Clarify that `$sep$` must come right before `$endfor$` in templates
588 + Document metadata support for docx, odt, pptx writers (Agustín
590 + Reorganize template variables (#5249, Andrew Dunning).
591 Add additional headings to categorize variables, and
592 alphabetize when there is large number; add more examples.
593 + Document `date-meta` template variable (#5260, Tristan Stenner).
595 * trypandoc: Fix CSS and viewport.
599 * Text.Pandoc.App: split into several unexported submodules (Albert
600 Krewinkel): Text.Pandoc.App.FormatHeuristics,
601 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
602 Text.Pandoc.App.OutputSettings. This is motivated partly by the
603 desire to reduce recompilations when something is modified,
604 since App previously depended on virtually every other module.
606 * Text.Pandoc.Extensions
608 + Semantically, `gfm_auto_identifiers` is now a modifier of
609 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
610 be turned on, and then the type of identifier produced depends on
611 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
612 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
613 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
614 GitHub doesn't seem to strip non-ascii characters any more.
616 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
618 + Test AST object equality via Haskell (#5092). Equality of Lua
619 objects representing pandoc AST elements is tested by unmarshalling
620 the objects and comparing the result in Haskell.
621 A new function `equals` which performs this test has been added to the
622 `pandoc.utils` module.
623 + Improve stringify. Meta value strings (MetaString)
624 and booleans (MetaBool) are now converted to the literal string and the
625 lowercase boolean name, respectively. Previously, all values of these
626 types were converted to the empty string.
628 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
629 already exists (Alexander Krotov).
631 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
632 or beginning of line (#5050).
634 * Text.Pandoc.Readers.Markdown
636 + Fix parsing of citations, quotes, and underline emphasis
637 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
638 and underline emphasis were no longer recognized after certain
639 symbols, like parentheses (#5099, #5053).
640 + In pandoc 2.4, a soft break after an abbreviation would be
641 relocated before it to allow for insertion of a nonbreaking
642 space after the abbreviation. This behavior is here reverted.
643 A soft break after an abbreviation will remain, and no nonbreaking
644 space will be added. Those who care about this issue should take care not
645 to end lines with an abbreviation, or to insert nonbreaking spaces
648 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
649 `<body>` (Alexander Krotov). Some libraries include custom elements
652 * Text.Pandoc.Readers.HTML
654 + Allow `tfoot` before body rows (#5079).
655 + Parse `<small>` as a Span with class "small" (#5080).
656 + Allow thead containing a row with `td` rather than `th` (#5014).
658 * Text.Pandoc.Readers.LaTeX
660 + Cleaned up handling of dimension arguments. Allow decimal points,
662 + Don't allow arguments for verbatim, etc.
663 + Allow space before bracketed options.
664 + Allow optional arguments after `\\` in tables.
665 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
666 but know that these font changing commands take no arguments.
668 * Text.Pandoc.Readers.Muse
670 + Trim whitespace before parsing grid table cells (Alexander Krotov).
671 + Add grid tables support (Alexander Krotov).
675 + For bibliography match Div with id `refs`, not class `references`.
676 This was a mismatch between pandoc's docx, epub, latex, and markdown
677 writers and the behavior of pandoc-citeproc, which actually looks for a
678 div with id `refs` rather than one with class `references`.
679 + Exactly match GitHub's identifier generating algorithm (#5057).
680 + Add parameter for `Extensions` to `uniqueIdent` and
681 `inlineListToIdentifier` (#5057). [API change]
682 This allows these functions to be sensitive to the settings of
683 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
684 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
685 also means that `gfm_auto_identifiers` can now be used in all formats.
687 * Text.Pandoc.Writers.AsciiDoc
689 + Use `.`+ as list markers to support nested ordered lists (#5087).
690 + Support list number styles (#5089).
691 + Render Spans using `[#id .class]#contents#` (#5080).
693 * Text.Pandoc.Writers.CommonMark
695 + Respect `--ascii` (#5043, quasicomputational).
696 + Make sure `--ascii` affects quotes, super/subscript.
698 * Text.Pandoc.Writers.Docx
700 + Fix bookmarks to headers with long titles (#5091).
701 Word has a 40 character limit for bookmark names. In addition, bookmarks
702 must begin with a letter. Since pandoc's auto-generated identifiers may
703 not respect these constraints, some internal links did not work. With
704 this change, pandoc uses a bookmark name based on the SHA1 hash of the
705 identifier when the identifier isn't a legal bookmark name.
706 + Add bookmarks to code blocks (Nikolay Yakimov).
707 + Add bookmarks to images (Nikolay Yakimov).
708 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
710 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
713 <meta name="calibre:series" content="Classics on War and Politics"/>
715 are now included from an epub XML metadata file. You can also include
716 this information in your YAML metadata, like so:
719 series: Classics on War and Policitics
721 In addition, ibooks-specific metadata can now be included via an XML
722 file. (Previously, it could only be included via YAML metadata, see
725 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `"` outside of
728 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
729 This avoids splitting up the output unnecessarily into separate elements.
731 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
732 if `writerIncremental` is True (#5072).
734 * Text.Pandoc.Writers.Muse (Alexander Krotov).
736 + Output tables as grid tables if they have multi-line cells.
737 + Indent simple tables only on the top level.
738 + Output tables with one column as grid tables.
739 + Add support for `--reference-location`.
740 + Internal improvements.
742 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
743 #5095). This was a regression in pandoc 2.4.
745 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
747 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
749 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
750 when there are several choices for a particular character.
754 + Add additional abbreviations (Andrew Dunning)
755 Many of these borrowed from the Chicago Manual of Style 10.42,
756 'Scholarly abbreviations'.
760 + Asciidoc template: add :lang: to title header is lang is set in
763 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
764 Disabling the flag will cause derivation of ToJSON and FromJSON
765 instances via GHC Generics instead of Template Haskell. The flag is
766 enabled by default, as deriving via Generics can be slow (see #4083).
770 + Tweaked drop-down lists.
771 + Put link to site in footer.
772 + Preselect output format.
773 + Update on change of in or out format.
774 + Add man input format.
778 + Fix outdated description of latex_macros extension.
779 + Clarified placement of bibliography.
780 + Added "A note on security."
781 + Fix note on curly brace syntx for locators.
782 + Document new explicit syntax for citeproc locators.
783 + Remove confusing cross-links for some extensions.
784 + Don't put pandoc in code ticks in heading.
785 + Document that `--ascii` works for gfm and commonmark too.
786 + Add `man` to `--from` options.
788 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
795 * New input format `man` (Yan Pashkovsky, John MacFarlane).
799 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
800 via the new `writerPreferAscii` field in `WriterOptions`.
801 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
802 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
803 Previously the to-ascii translation was done in Text.Pandoc.App,
804 and thus not available to those using the writer functions
807 * `--ascii` now works with Markdown output. HTML5 character reference
810 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
811 guaranteed, but the writer will use commands like `\"{a}` and `\l`
812 whenever possible, to avoid emiting a non-ASCII character.
814 * For HTML5 output, `--ascii` now uses HTML5 character reference
815 entities rather than numerical entities.
817 * Improved detection of format based on extension (in Text.Pandoc.App).
818 We now ensure that if someone tries to convert a file for a
819 format that has a pandoc writer but not a reader, it won't just
822 * Add viz. to abbreviations file (#5007, Nick Fleisher).
824 * AsciiDoc writer: always use single-line section headers,
825 instead of the old underline style (#5038). Previously the single-line
826 style would be used if `--atx-headers` was specified, but
827 now it is always used.
829 * RST writer: Use simple tables when possible (#4750).
831 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
832 quasicomputational). Previously, the writer would unconditionally
833 emit HTML output for subscripts, superscripts, strikeouts (if the
834 strikeout extension is disabled) and small caps, even with
835 `raw_html` disabled. Now there are plain-text (and, where
836 possible, fancy Unicode) fallbacks for all of these corresponding
837 (mostly) to the Markdown fallbacks, and the HTML output is only
838 used when `raw_html` is enabled.
840 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
841 This allows raw openxml blocks and inlines to be used in the pptx
842 writer. Caveats: (1) It's up to the user to write
843 well-formed openxml. The chances for corruption, especially with
844 such a brittle format as pptx, is high. (2) Because of
845 the tricky way that blocks map onto shapes, if you are using
846 a raw block, it should be the only block on a slide
847 (otherwise other text might end up overlapping it). (3) The
848 pptx ooxml namespace abbreviations are different from the
849 docx ooxml namespaces. Again, it's up to the user to get it
850 right. Unzipped document and ooxml specification should be
853 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
854 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
855 we tell katex to convert the contents of span elements with
856 class "math". Since math has already been identified, this
857 avoids wasted time parsing for LaTeX delimiters. Note, however,
858 that this may yield unexpected results if you have span elements
859 with class "math" that don't contain LaTeX math.
860 Also, use latest version of KaTeX by default (0.9.0).
862 * The man writer now produces ASCII-only output, using groff escapes,
867 + Add title, author and date to metadata; any remaining
868 metadata fields are added as `meta:user-defined` tags.
869 + Implement table caption numbering (#4949, Nils Carlson).
870 Captioned tables are numbered and labeled with format "Table 1:
871 caption", where "Table" is replaced by a translation, depending
872 on the value of `lang` in metadata. Uncaptioned tables are not
874 + OpenDocument writer: Implement figure numbering in captions (#4944,
875 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
876 The format in the caption is "Figure 1: caption" and so on
877 (where "Figure" is replaced by a translation, depending on the
878 value of `lang` in the metadata). Captioned figures are numbered
879 consecutively and uncaptioned figures are not enumerated. This
880 is necessary in order for LibreOffice to generate an
881 Illustration Index (Table of Figures) for included figures.
883 * RST reader: Pass through fields in unknown directives as div attributes
884 (#4715). Support `class` and `name` attributes for all directives.
886 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
887 Brian Leung). Headers with the corresponding tags should not
888 appear in the output.
890 * Log warnings about missing title attributes now include a
891 suggestion about how to fix the problem (#4909).
893 * Lua filter changes (Albert Krewinkel):
895 + Report traceback when an error occurs. A proper Lua traceback is
896 added if either loading of a file or execution of a filter
897 function fails. This should be of help to authors of Lua filters
898 who need to debug their code.
900 + Allow access to pandoc state (#5015). Lua filters and custom
901 writers now have read-only access to most fields of pandoc's
902 internal state via the global variable `PANDOC_STATE`.
904 + Push ListAttributes via constructor (Albert Krewinkel).
905 This ensures that ListAttributes, as present in OrderedList elements,
906 have additional accessors (viz. `start`, `style`, and `delimiter`).
908 + Rename ReaderOptions fields, use snake_case. Snake case is used
909 in most variable names, using camelCase for these fields was an
910 oversight. A metatable is added to ensure that the old field
911 names remain functional.
913 + Iterate over AST element fields when using `pairs`. This makes
914 it possible to iterate over all ield names of an AST element by
915 using a generic `for` loop with pairs`:
917 for field_name, field_content in pairs(element) do
921 Raw table fields of AST elements should be considered an
922 implementation detail and might change in the future. Accessing
923 element properties should always happen through the fields
924 listed in the Lua filter docs.
926 Note that the iterator currently excludes the `t`/`tag` field.
928 + Ensure that MetaList elements behave like Lists. Methods usable
929 on Lists can also be used on MetaList objects.
931 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
932 object to the constructor `pandoc.MetaList` now returns the
933 passed list as a MetaList. This is consistent with the
934 constructor behavior when passed an (untagged) list.
936 * Custom writers: Custom writers have access to the global variable
937 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
938 a userdata wrapper around the full pandoc AST and exposes two
939 fields, `meta` and `blocks`. The field content is only
940 marshaled on-demand, performance of scripts not accessing the
941 fields remains unaffected.
945 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
947 * Text.Pandoc.Shared:
949 + Export `splitSentences`. This was previously duplicated in the Man and
951 + Add `ToString` typeclass (Alexander Krotov).
953 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
955 * Text.Pandoc.Parsing
957 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
958 + Generalize `readWithM` from `[Char]` to any `Char` Stream
959 that is a `ToString` instance (Alexander Krotov).
961 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
963 * Text.Pandoc.XML: add `toHtml5Entities`.
965 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
968 * Text.Pandoc.Writers.Shared
970 + Add exported functions `toSuperscript` and
971 `toSubscript` (quasicomputational, #4528).
972 + Remove exported functions `metaValueToInlines`,
973 `metaValueToString`. Add new exported functions
974 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
975 `lookupMetaString`. Use these whenever possible for uniformity
976 in writers (Mauro Bieg, #4907). (Note that
977 removed function `metaValueToInlines` was in previous
979 + Add `metaValueToString`.
983 + Expose more useful internals (Albert Krewinkel):
985 - `runFilterFile` to run a Lua filter from file;
986 - data type `Global` and its constructors; and
987 - `setGlobals` to add globals to a Lua environment.
989 This module also contains `Pushable` and `Peekable` instances
990 required to get pandoc's data types to and from Lua. Low-level
991 Lua operation remain hidden in Text.Pandoc.Lua.
993 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
995 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
996 `apply` (Albert Krewinkel).
998 [bug fixes and under-the-hood improvements]
1000 * Text.Pandoc.Parsing
1002 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
1003 + Rewrite `uri` without `withRaw` (Alexander Krotov).
1004 + Generalize `parseFromString` and `parseFromString'` to any
1005 streams with Char token (Alexander Krotov)
1006 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
1008 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
1011 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
1016 + Work around HXT limitation for --syntax-definition with windows
1018 + Always preserve tabs for man format. We need it for tables.
1019 + Split command line parsing code into a separate unexported
1020 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
1022 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
1025 * New unexported module Text.Pandoc.RoffChar, provided character
1026 escape tables for roff formats.
1028 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
1029 accept processing instructions (#3123, regression since 2.0).
1031 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
1032 account for empty lists (Alexander Krotov).
1034 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
1035 headerless table (#4382).
1037 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
1038 blocks (Brian Leung).
1040 * Text.Pandoc.Readers.Vimwiki:
1042 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
1044 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
1046 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
1047 `[Char]` (Alexander Krotov).
1049 * Text.Pandoc.Readers.LaTeX
1051 + Allow space at end of math after `\` (#5010).
1052 + Add support for `nolinkurl` command (#4992, Brian Leung).
1053 + Simplified type on `doMacros'`.
1054 + Tokenize before pulling tokens, rather than after (#4408). This
1055 has some performance penalty but is more reliable.
1056 + Make macroDef polymorphic and allow in inline context.
1057 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
1058 I have actually seen tex like this in the wild.
1059 + Improved parsing of `\def`, `\let`. We now correctly parse:
1069 + Improve parsing of `\def` argspec.
1070 + Skip `\PackageError` commands (see #4408).
1071 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
1072 so no raw tex should result unless we explicitly say `+raw_tex`.
1073 Previously some raw commands did make it through.
1074 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
1075 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
1076 Text.Pandoc.Readers.LaTeX.Lang (unexported).
1077 + Simplified accent code using unicode-transforms.
1078 New dependency on unicode-transforms package for normalization.
1079 + Allow verbatim blocks ending with blank lines (#4624).
1080 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
1081 This collects some of the general-purpose code from the LaTeX reader,
1082 with the aim of making the module smaller.
1084 * Text.Pandoc.Readers.Markdown
1086 + Fix awkward soft break movements before abbreviations (#4635).
1087 + Add updateStrPos in a couple places where needed.
1089 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
1090 (#4947). These are variants for "complex scripts" like Arabic
1091 and are now treated just like b, i (bold, italic).
1093 * Text.Pandoc.Readers.Muse (Alexander Krotov)
1095 + Try to parse lists before trying to parse table.
1096 This ensures that tables inside lists are parsed correctly.
1097 + Forbid whitespace after opening and before closing markup
1099 + Parse page breaks.
1100 + Simplify `museToPandocTable` to get rid of partial functions.
1101 + Allow footnotes to start with empty line.
1102 + Make sure that the whole text is parsed.
1103 + Allow empty headers. Previously empty headers caused parser to
1104 terminate without parsing the rest of the document.
1105 + Allow examples to be indented with tabs.
1106 + Remove indentation from examples indicated by `{{{` and `}}}`.
1107 + Fix parsing of empty cells.
1108 + Various changes to internals.
1109 + Rewrite some parsers in applicative style.
1110 + Avoid tagsoup dependency.
1111 + Allow table caption to contain `+`.
1113 * Text.Pandoc.Writers.LaTeX
1115 + Add newline if math ends in a comment (#4880). This prevents the
1116 closing delimiter from being swalled up in the comment.
1117 + With `--listings`, don't pass through org-babel attributes (#4889).
1118 + With `--biblatex`, use `\autocite` when possible (#4960).
1119 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
1120 we don't have prefixes and suffixes, we use instead
1121 `\autocite{a1,a2,a3}`.
1122 + Fix description lists contining highlighted code (#4662).
1124 * Text.Pandoc.Writers.Man
1126 + Don't wrap `.SH` and `.SS` lines (#5019).
1127 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
1128 one paragraph definitions.
1129 + Moved common groff functions to Text.Pandoc.Writers.Groff.
1130 * Fix strong/code combination on man (should be `\f[CB]` not
1131 `\f[BC]`, see #4973).
1132 + Man writer: use `\f[R]` instead of `\f[]` to reset font
1133 (Alexander Krotov, #4973).
1134 + Move `splitSentences` to Text.Pandoc.Shared.
1136 * Text.Pandoc.Writers.Docx
1138 + Add framework for custom properties (#3034). So far, we don't
1139 actually write any custom properties, but we have the
1140 infrastructure to add this.
1142 + Handle tables in table cells (#4953). Although this is not
1143 documented in the spec, some versions of Word require a `w:p`
1144 element inside every table cell. Thus, we add one when the
1145 contents of a cell do not already include one (e.g. when a table
1146 cell contains a table).
1148 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
1149 Adjust header levels so that n+1 level headers are only
1150 found under n level headers, and the top level is 1.
1152 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
1153 alignment (#4385). This change eliminates the large gap we used
1154 to have between bullet and text, and also ensures that numbers
1155 in numbered lists will be right-aligned.
1157 * Text.Pandoc.Writers.ZimWiki
1159 + Number ordered list items sequentially, rather than always
1161 + Remove extra indentation on lists (#4963).
1163 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
1164 `stylesheet` (Mauro Bieg, #4990).
1166 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
1167 normal content (#4629). Otherwise a raw block can prevent a
1168 paragraph from being recognized as such.
1170 * Text.Pandoc.Writers.Ms
1172 + Removed old `escapeBar`. We don't need this now that we use
1174 + Moved common code to Text.Pandoc.Writers.Roff and to
1175 Text.Pandoc.RoffChar.
1176 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
1177 with the man writer).
1179 * Text.Pandoc.Writers.Muse (Alexander Krotov).
1181 + Add support for grid tables.
1182 + Fix Muse writer style.
1183 + Use `length` instead of `realLength` to calculate definition
1184 indentation. Muse parsers don't take character width into
1185 account when calculating indentation.
1186 + Do not insert newline before lists.
1187 + Use lightweight markup after `</em>` tag.
1189 * New unexported module Text.Pandoc.Writers.Roff, providing functions
1190 useful for all roff format writers (man, ms).
1194 + Move globals handling to separate module Text.Pandoc.Lua.Global
1197 + Lua filter internals: push Shared.Element as userdata (Albert
1198 Krewinkel). Hierarchical Elements were pushed to Lua as plain
1199 tables. This is simple, but has the disadvantage that marshaling
1200 is eager: all child elements will be marshaled as part of the
1201 object. Using a Lua userdata object instead allows lazy access
1202 to fields, causing content marshaling just (but also each time)
1203 when a field is accessed. Filters which do not traverse the full
1204 element contents tree become faster as a result.
1206 [default template changes]
1210 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
1211 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
1213 * AsciiDoc template: use single-line style for title.
1215 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
1218 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
1221 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
1223 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
1226 [documentation improvements]
1230 + Add chromeos install instructions (#4958) (Evan Pratten).
1231 + Add note about TinyTeX.
1235 + Change `groff` -> `roff`.
1236 + Implement `--ascii` for Markdown writer.
1237 + Clarify LaTeX image dimensions output (Mauro Bieg).
1239 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
1241 * doc/getting-started.md: Added title to test1.md to avoid warning.
1243 * doc/lua-filters.md: merge type references into main document,
1244 fix description of Code.text (Albert Krewinkel).
1246 [build infrastructure improvements]
1250 + Makefile: added quick-cabal, full-cabal targets.
1251 + Make .msi download targets insensitive to order of appveyor builds.
1253 * Update benchmarks for ghc 8.6.1.
1257 + Enable more compiler warnings (Albert Krewinkel).
1258 + Make base lower bound 4.8.
1259 + Bump upper bound for QuickCheck.
1260 + Bump upper bound for binary.
1261 + Updated version bounds for containers and haddock-library (#4974).
1262 + Added docx/docPropos/custom.xml to cabal data-files.
1263 + Require skylighting 0.7.4 (#4920).
1264 + New dependency on unicode-transforms package for normalization.
1266 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
1268 * Added `tools/changelog-helper.sh`.
1270 * Added test/grofftest.sh for testing the man reader on real man pages.
1276 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
1277 This eliminates a regression introduced after pandoc 2.1.1, which
1278 caused inline constructions containing newlines not to be recognized.
1279 + Fix bug with internal link targets (#4919). They were gobbling up
1280 indented content underneath.
1282 * Markdown reader: distinguish autolinks in the AST. With this change,
1283 autolinks are parsed as Links with the `uri` class. (The same is true
1284 for bare links, if the `autolink_bare_uris` extension is enabled.)
1285 Email autolinks are parsed as Links with the `email` class. This
1286 allows the distinction to be represented in the AST.
1290 + Force inline code blocks to honor export options (Brian Leung).
1291 + Parse empty argument array in inline src blocks (Brian Leung).
1293 * Muse reader (Alexander Krotov):
1295 + Added additional tests.
1296 + Do not allow code markup to be followed by digit.
1297 + Remove heading level limit.
1298 + Simplify `<literal>` tag parsers
1299 + Parse Text instead of String. Benchmark shows 7% improvement.
1300 + Get rid of HTML parser dependency.
1301 + Various code improvements.
1303 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
1304 We do this in the LaTeX writer, and it avoids problems.
1305 Note that `/` works as a LaTeX path separator on Windows.
1309 + Add support for multiprenote and multipostnote arguments
1310 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
1311 the first prefix of a multicite, and the multipostnotes follow the
1313 + Fix a use of `last` that might take empty list. If you ran with
1314 `--biblatex` and have an empty document (metadata but no blocks),
1315 pandoc would previously raise an error because of the use of
1316 `last` on an empty list.
1318 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
1319 MonadFail instance (Jonas Scholl).
1321 * ODT Writer: Improve table header row style handling (Nils Carlson).
1322 This changes the way styles for cells in the header row
1323 and normal rows are handled in ODT tables.
1324 Previously a new (but identical) style was generated for
1325 every table, specifying the style of the cells within the table.
1326 After this change there are two style definitions for table cells,
1327 one for the cells in the header row, one for all other cells.
1328 This doesn't change the actual styles, but makes post-processing
1329 changes to the table styles much simpler as it is no longer
1330 necessary to introduce new styles for header rows and there are
1331 now only two styles where there was previously one per table.
1335 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
1336 class was added to autolinks by the HTML writer, but it had to
1337 guess what was an autolink and could not distinguish
1338 `[http://example.com](http://example.com)` from
1339 `<http://example.com>`. It also incorrectly recognized
1340 `[pandoc](pandoc)` as an autolink. Now the HTML writer
1341 simply passes through the `uri` attribute if it is present,
1342 but does not add anything.
1343 + Avoid adding extra section nestings for revealjs.
1344 Previously revealjs title slides at level (slidelevel - 1)
1345 were nested under an extra section element, even when
1346 the section contained no additional (vertical) content.
1347 That caused problems for some transition effects.
1348 + Omit unknown attributes in EPUB2 output. For example,
1349 `epub:type` attributes should not be passed through,
1350 or the epub produced will not validate.
1352 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
1353 The JATS spec does not allow these.
1355 * Textile writer: don't represent `uri` class explicitly
1356 for autolinks (#4913).
1358 * Lua filters (Albert Krewinkel):
1360 + Cleanup filter execution code.
1361 + Better error on test failure.
1363 * HTML, Muse reader tests: reduce time taken by round-trip test.
1365 * Added cabal.project.
1367 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
1369 * Use hslua v1.0.0 (Albert Krewinkel).
1371 * Fix `translations/ru` to use modern Russian orthography
1374 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
1375 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
1379 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
1380 users to specify metadata in a YAML file, regardless of the
1381 input format (#1960).
1383 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
1385 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
1388 * Text.Pandoc.Readers.LaTeX.Types:
1390 + New type `ArgSpec` (API change).
1391 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
1396 + Use `tex` instead of `latex` for raw tex-ish content. We can't
1397 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
1398 use `tex` always. Note that if `context` or `latex` specifically
1399 is desired, you can still force that in a markdown document by
1400 using the raw attribute. Note that this change may affect some
1401 filters, if they assume that raw tex parsed by the Markdown reader
1402 will be RawBlock (Format `latex`). In most cases it should be
1403 trivial to modify the filters to accept `tex` as well.
1404 + Refactor and reorganize YAML code (Mauro Bieg).
1405 + Make `example_lists` work for interrupted lists
1406 without `startnum` (#4908).
1410 + Parse `<script type="math/tex` tags as math (#4877).
1411 These are used by MathJax in some configurations.
1412 + Extract spaces inside links instead of trimming them
1413 (Alexander Krotov, #4845).
1414 + Added round-trip tests (Alexander Krotov).
1415 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
1416 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
1417 (which is helpful for translation HTML documents using MathJaX).
1419 * Org reader (Albert Krewinkel):
1421 + Respect export option `p` for planning info. Inclusion of planning info
1422 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
1423 `p` export option: setting the option to `t` will add all planning
1424 information in a *Plain* block below the respective headline.
1425 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
1427 + Strip planning info from output. Planning info is parsed, but not
1428 included in the output (as is the default with Emacs Org-mode, #4867).
1432 + Split some general-purpose definitions into a separate, unexported
1433 module, Text.Pandoc.Readers.LaTeX.Parsing. This is to avoid
1434 out-of-memory errors compiling the LaTeX reader.
1435 + Handle parameter patterns for `\def` (#4768, #4771).
1436 For example: `\def\foo#1[#2]{#1 and #2}`.
1437 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
1438 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
1439 argument as the content.
1440 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
1441 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
1442 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
1443 will be parsed as a regular Quoted inline (not using the quotes
1444 appropriate to the foreign language).
1445 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
1446 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
1447 `\textcircled`. Also fall back to combining characters when composed
1448 characters are not available.
1449 + Resolve `\ref` for figure numbers.
1450 + Support `mintinline` (#4365, Marc Schreiber).
1451 + Fix siunitx unit commands so they are only recognized in
1452 siunitx contexts (#4842). For example, `\l` outside of an
1453 siunitx context should be l-slash, not l (for liter).
1454 + Fix double `unnumbered` class (#4838). The `unnumbered` class
1455 was being included twice for starred sections.
1457 * RST reader: Don't skip link definitions after comments (#4860).
1459 * Muse reader (Alexander Krotov):
1461 + Close the `</quote>` in indented tag test.
1462 There is already a separate test for unclosed `</quote>`.
1463 + Autonumber sections in the correct order. Parsing now stops
1464 at each section header to ensure the header is registered before
1465 parsing of the next section starts.
1466 + Move duplicate code into `headingStart` function.
1467 + Allow newline after opening `*` or `**`.
1468 + Don't allow digits after closing marker in lightweight markup
1469 This change makes reader more compatible with Emacs Muse.
1470 + Parse `<verse>` tag in one pass instead of using
1471 `parseFromString`. This change makes it possible to have
1472 verbatim `</verse>` tag inside verse.
1474 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
1475 (#4336). This allows pandoc to parse ODT document produced by KDE's
1478 * Muse writer (Alexander Krotov):
1480 + Output headers without asterisks if not on the top level.
1481 + Never wrap definition list terms.
1482 + Set `envInsideBlock = True` when rendering notes.
1483 + Use `""` instead of `[]` for empty String.
1484 + Check for whitespace in the beginning and end of Str's.
1485 + Escape `-`, `;` and `>` in the beginning of strings.
1486 + Escape list markers in the beginning of notes.
1487 + Normalize inline list before testing if tags should be used.
1488 + Use tags instead of lightweight markup for empty strings.
1489 + Use lightweight markup when possible.
1490 + Escape empty strings. This guarantees that `conditionalEscapeString`
1491 never returns empty string.
1492 + Wrap conditionalEscapeString result into `Muse` type.
1493 This removes the need to pass `envInsideLinkDescription` to it.
1494 + Separate `shouldEscapeString` function.
1495 + Simplify inline list rendering.
1496 + Replace newlines in strings with spaces.
1500 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
1501 + Properly handle display math in spans (#4826). This isn't a
1502 complete solution, since other nestings of display math may still
1503 cause problems, but it should work for what is by far the most
1508 + Always output `<dt>` element, even if it is empty (#4883,
1510 + Don't prefix `epub:` attributes with `data-`.
1512 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
1513 recognize these escapes.
1515 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
1516 Image scaling was broken when a width was set to a percentage.
1518 * EPUB writer: set `epub:type` on body element in each chapter,
1519 depending on the `epub:type` of the first section (#4823). This
1520 only affects epub3. See
1521 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
1523 * FB2 writer: put `coverpage` element between title and date rather than in
1524 `document-info` element (#4854).
1526 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
1528 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
1529 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
1530 tex is now used. Previously we'd "fake it with unicode" and fall
1531 back to tex when that didn't work. But newer haddock versions
1536 + Ensure that title element is always present, even if empty (#4839).
1537 + Put author tags in the template, rather than adding them in
1540 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
1541 `linkcolor` only affects internal links, and `urlcolor` only
1542 affects linked URLs. For external links, the option to use is
1545 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
1549 + Use `.. raw:: latex` for `tex` content.
1550 + Use `.. container` for generic Divs, instead of raw HTML.
1551 + Render Divs with admonition classes as admonitions (#4833).
1552 Also omit Div with class `admonition-title`. These are generated
1553 by the RST reader and should be omitted on round-trip.
1555 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
1556 (#4855, Antonio Terceiro).
1558 * HTML5 template: add the `title-block-header` identifier to the
1559 `header` element, to make it easier to style precisely (#4767,
1562 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
1563 José de Mattos Neto).
1565 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
1566 (#4853, Wandmalfarbe).
1568 * TEI template: improve `publicationStmt`. Add support for
1569 `publisher`, `address`, `pubPlace`, and `date` variables.
1571 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
1573 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
1575 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
1579 + Clarify that `--biblatex/--natbib` don't work directly for PDF
1581 + Document `epub:type` attribute (Mauro Bieg, #4901)
1582 + Clarify when `--resource-path` has an effect.
1583 + More detail on customization in syntax highlighting section.
1584 + Document encoding issue with `--listings` (#4871, Damien Clochard).
1585 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
1586 + Use https for context wiki links (#4910).
1590 + Link to lua-filters repository (#4874).
1591 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
1593 * lua-filters.md: add links to filters, and to lua-filters repository
1598 + Indicate that cabal >= 2.0 is needed.
1599 + Added chocolatey installation method (#4844, Miodrag Milić).
1601 * Travis: exclude round-trip tests, except for nightly test which can fail.
1603 * Use latest texmath, pandoc-citeproc.
1605 * Use a patched version of foundation until
1606 https://github.com/haskell-foundation/foundation/pull/503
1609 * Clean up appveyor build and Windows package creation.
1610 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
1611 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
1613 * Remove obsolete RELEASE-CHECKLIST.md.
1615 * Added additional compiler warnings in Makefile and CI builds.
1619 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
1620 This fixes a regression in 2.2.3, which cause boolean values to
1621 be parsed as MetaInlines instead of MetaBool.
1623 We here record another undocumented (but desirable) change in 2.2.3:
1624 numerical metadata fields are now parsed as MetaInlines rather than
1629 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
1630 (#4817). This fixes a regression in 2.2.3 which caused embedded
1631 mappings (e.g. mappings in sequences) not to work in YAML metadata.
1635 * RST reader: improve parsing of inline interpreted text roles (#4811).
1637 + Use a Span with class "title-reference" for the default
1638 title-reference role.
1639 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
1640 and `Str`s for `title-reference`.
1641 + Use Code with class "interpreted-text" instead of Span and Str for
1642 unknown roles. (The RST writer has also been modified to round-trip
1644 + Disallow blank lines in interpreted text.
1645 + Backslash-escape now works in interpreted text.
1646 + Backticks followed by alphanumerics no longer end interpreted text.
1647 + Remove support for nested inlines (Francesco Occhipinti).
1648 RST does not allow nested emphasis, links, or other inline
1649 constructs. This fixes several bugs (#4581, #4561, #4792).
1651 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
1652 Krewinkel). Emphasis was not parsed when it followed directly after
1653 some block types (e.g., lists).
1655 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
1656 keys. Previously in 2.2.2 you could not do
1668 With this change, both forms work.
1670 * DocBook reader: metadata handling improvements.
1671 Now we properly parse title and subtitle elements that are direct
1672 children of book and article (as well as children of bookinfo,
1673 articleinfo, or info). We also now use the `subtitle` metadata
1674 field for subtitles, rather than tacking the subtitle on to the
1679 + Allow images to be directly nested within links (#4810, Francesco
1681 + Use `titleblock` instead of `title` variable for title block (#4803,
1682 Francesco Occhipinti). `titleblock` contains a properly formatted
1683 title and subtitle (using top-level headers). `title` and
1684 `subtitle` variables are still available and just contain the
1685 title and subtitle text. Note that this change will require an
1686 update to custom rst templates.
1687 + Render Code with class "interpreted-text" as interpreted text role.
1689 * MediaWiki writer: Avoid extra blank line in tables with empty cells
1690 (#4794). Note that the old output is semantically identical, but the
1691 new output looks better.
1693 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
1694 Krewinkel). Exposes a function converting which flattenes a list of
1695 blocks into a list of inlines. An example use case would be the
1696 conversion of Note elements into other inlines.
1698 * RST template: use `titleblock` instead of `title`. Users of
1699 custom RST templates will want to update this.
1701 * LaTeX template: Moved some beamer code in default.latex template.
1702 This change allows beamer themes to change the template and font (as
1703 Metropolis does) (#4450).
1705 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
1707 * Added test case for #4669 to repository.
1709 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
1713 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
1714 + Clarify when `csquotes` is used in LaTeX writer (#4514).
1715 + Add `commonmark` to list of output formats where `raw_tex` has an
1721 * Fix regression finding templates in user data directory (#4777).
1722 Under version 2.2.1 and prior pandoc found latex templates in the
1723 templates directory under the data directory, but this broke in 2.2.2.
1725 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
1726 `rawLaTeXInline` (#4781). (This primarily affects the markdown
1727 reader, and other readers that accept raw tex.)
1728 Starting in 2.2.2, everything after an `\input` (or `\include`)
1729 in a markdown file would be parsed as raw LaTeX.
1733 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
1734 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
1735 Unlike `tags`, `keywords` is used in some of the writers
1736 and default templates.
1738 * Add missing `rollingLinks` option to revealjs template (#4778,
1743 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
1744 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
1746 Note: HsYAML implements YAML 1.2, in which the valid true
1747 values are `true`, `True`, `TRUE`. This means a change in
1748 the semantics of YAML metadata that could affect users:
1749 `y`, `yes`, and `on` no longer count as true values.
1751 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
1754 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
1755 Anders Waldenborg). Non-ascii characters were not stripped from
1756 identifiers even if the `ascii_identifiers` extension was
1757 enabled (which is is by default for gfm).
1759 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
1760 Remove trailing Space from list items. Parse lists that have no space
1765 + Treat `lilypond` as a verbatim environment (#4725).
1766 + Parse figure label into Image id (#4700, Mauro Bieg).
1767 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
1768 + Allow spaces around `\graphicspath` arguments (#4698).
1769 + Handle includes without surrounding blanklines (#4553).
1770 In addition, `\input` can now be used in an inline context,
1771 e.g. to provide part of a paragraph, as it can in LaTeX.
1772 + In `rawLaTeXBlock`, handle macros that resolve to a
1773 `\begin` or `\end` (#4667).
1774 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
1775 Note that this only affected LaTeX in markdown.
1776 + Tighten up reading of beamer overlay specifications (#4669).
1777 Ideally we'd turn these on only when reading beamer, but currently
1778 beamer is not distinguished from latex as an input format.
1779 This commit also activates parsing of overlay specifications
1780 after commands in general (e.g. `\item`), since they can occur
1781 in many contexts in beamer.
1782 + Parse more siunitx unit commands (#4296, #4773).
1783 + Be more forgiving in key/value option parsing (#4761).
1787 + Allow empty code spans, e.g. `` ` ` ``.
1788 + Emojis are now wrapped in Spans with class `emoji` and
1789 attribute `data-emoji` (Anders Waldenborg, #4743).
1790 This allows the writer to handle them in a special way
1791 (e.g. using a special font, or just rendering the
1794 * Muse reader (Alexander Krotov, except where indicated):
1796 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
1797 + Add support for floating images.
1798 + Add support for images with specified width.
1799 + Parse image URLs without "guard" and "takeExtension".
1800 + Split link and image parsing into separate functions.
1801 + Parse links starting with "URL:" explicitly instead of trying to strip
1802 "URL:" prefix after parsing.
1804 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
1807 * Markdown writer: Preserve `implicit_figures` with attributes, even if
1808 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
1810 * Markdown and commonmark/github writers now respect the `emoji`
1811 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
1812 `:smile:` as `:smile:` rather than converting it to a smile
1815 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
1817 * ODT/OpenDocument writer: Make internal links work (#4358).
1818 This adds proper bookmarks to the headers with non-null IDs.
1820 * EPUB writer: Properly escape pagetitle. Previously we weren't
1821 escaping `&` and other XML characters in the pagetitle, so a title
1822 containing a `&` would be invalid.
1824 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
1829 + Don't treat 'example' as a syntax name (#4748).
1830 This fixes conversions from org with example blocks.
1831 + Support `--number-sections` via the `section-numbering`
1832 directive in standalone output.
1834 * reveal.js writer and template: reuse mathjax URL
1835 provided by the argument to `--mathjax` or the normal pandoc default,
1836 rather than a hard-coded one in the template (#4701).
1840 + Properly handle footnotes in table captions (#4683).
1841 Refactored code from figure captions to use in both places.
1842 + In beamer output, fix single digit column percentage (#4690, Mauro
1845 * FB2 writer (Alexander Krotov):
1847 + Convert Plain to Para in annotation (#2424).
1848 + Fix order of items in title-info (#2424).
1850 * Custom writer: fix error message on script failure (Albert Krewinkel).
1851 Error messages produced by Lua were not displayed by Pandoc.
1853 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
1854 inline containing the emoji character and some attributes with metadata
1855 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
1856 Anders Waldenborg, #4743).
1860 + Revert fix for #4484 (only compress images on last run, #4755).
1861 This will mean some increase in the time it takes to
1862 produce an image-heavy PDF with xelatex, but it will
1863 make tables of contents correct, which is more important.
1864 + Fix logic error in `runTeXProgram`. We were running the tex program
1865 one more time than requested. This should speed up PDF production.
1867 * Allow `--template` to take a URL as argument.
1869 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
1870 highlighting style (#4687, Adrian Sieber, API change).
1872 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
1873 installer the recommended method, and note that on some older versions of
1874 macOS, homebrew installs from source and takes a lot of disk space
1879 + Clarify EPUB linked media (#4756, Mauro Bieg)
1880 + Update manual for "true" YAML values. Now that we're using HsYAML and
1881 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
1882 `y`, `yes`, `on` no longer count as true values.
1883 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
1884 + Update manual on how math is rendered in LaTeX.
1885 + Add proxy description (#4131, Mauro Bieg).
1886 + Clarify that `--toc` requires `--standalone` (#4703).
1887 + Update citation styles link (#4699, wiefling).
1889 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
1890 (kaizshang91). Note that it will not take effect when readers/writers
1891 are called as libraries (#4674).
1893 * Improved translations/fr (#4766, lux-lth).
1895 * Removed inadvertently added `.orig` files from repository (#4648).
1897 * Remove `network-uri` flag and use 'Network.Socket'.
1898 This removes a compiler warning. There is no need for the old
1899 `network-uri` flag, since network 2.6 was released in 2014.
1901 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
1903 * Bump upper bounds for dependent packages.
1905 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
1906 confused because of the way ghc 7.10 is excluded in foundation's
1907 cabal file. This can be removed when haskell-foundation/foundation#500
1910 * Require cabal-version >= 2.0. This is needed for haddock-library.
1915 * Restored and undeprecated gladtex for HTML math (#4607).
1917 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
1918 [API change, reverts removal in v2.2]
1919 + Restored and undeprecated `--gladtex` option, removed in v2.2.
1921 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
1923 * Org reader: Fix image filename recognition (Albert Krewinkel).
1924 Use a function from the filepath library to check whether a string is a
1925 valid file name. The custom validity checker that was used before gave
1926 wrong results (e.g. for absolute file paths on Windows,
1927 kawabata/ox-pandoc#52).
1929 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
1933 + Strip links from headers when creating TOC (#4340).
1934 Otherwise the TOC entries will not link to the sections.
1935 + Fix regression with tex math environments in HTML + MathJax (#4639).
1937 * Muse writer (Alexander Krotov): Add support for left-align and
1938 right-align classes (#4542).
1940 * Docx writer: Support underline (#4633).
1942 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
1943 `singleQuoteStart` and `doubleQuoteStart` (#4637).
1945 * `test-pandoc-utils.lua`: more robust testing on both windows
1946 and \*nix. Previously the pipe tests were only run if
1947 `\bin/false` and `/bin/sed` were present, which they aren't
1948 in default MacOS and Windows systems. Fixed by using `tr`
1949 and `false`, which should always be in the path on a \*nix
1950 system, and `find` and `echo` for Windows.
1952 * Text.Pandoc.Shared: add `uriPathToPath`.
1953 This adjusts the path from a file: URI in a way that is sensitive
1954 to Windows/Linux differences. Thus, on Windows,
1955 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
1956 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
1958 * Use `uriPathToPath` with file: URIs (#4613).
1960 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
1963 * Text.Pandoc.Class: Catch IO errors when writing media files
1964 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
1966 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
1968 * MANUAL (Mauro Bieg):
1970 + Clarify truthiness in template variables (#2281).
1971 + Clarify pipe table width calculation (#4520).
1973 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
1974 CMU Serif gives better typographic results than the previous
1975 Greek fallback DejaVu Serif.
1977 * Make HTML template polyglot (#4606, OvidiusCicero), by making
1978 `<link rel="stylesheet" href="$css$">` self-closing.
1980 * Use texmath 0.11, allowing better translation of non-ASCII
1981 characters in math (#4642).
1985 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
1987 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
1988 and for `ms` and `man`.
1990 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
1991 `--asciimathml` options.
1993 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
1994 Krotov, API change).
1998 + Allow empty key-value attributes, like `title=""` (#2944).
1999 + Handle table w/o following blank line in fenced div (#4560).
2000 + Remove "fallback" for `doubleQuote` parser. Previously the
2001 parser tried to be efficient -- if no end double quote was found,
2002 it would just return the contents. But this could backfire in a
2003 case `**this should "be bold**`, since the fallback would return
2004 the content `"be bold**` and the closing boldface delimiter
2005 would never be encountered.
2006 + Improve computation of the relative width of the last column in a
2007 multiline table, so we can round-trip tables without constantly
2008 shrinking the last column.
2012 + Fix images with space in file path (#4344).
2016 + Properly resolve section numbers with `\ref` and chapters (#4529).
2017 + Parse sloppypar environment (#4517, Marc Schreiber).
2018 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
2019 Previously there were some bugs in how macros were handled.
2020 + Support `\MakeUppercase`, `\MakeLowercase', `\uppercase`, `\lowercase`,
2021 and also `\MakeTextUppercase` and `\MakeTextLowercase` from textcase
2026 + Fixed tables with no body rows (#4513).
2027 Previously these raised an exception.
2031 + Improve table parsing (#4508). This fixes detection of table
2032 attributes and also handles `!` characters in cells.
2036 + Properly handle title in `section` element (#4526).
2037 Previously we just got `section_title` for `section` (though `sect1`,
2038 `sect2`, etc. were handled properly).
2039 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
2043 + Combine adjacent CodeBlocks with the same attributes into
2044 a single CodeBlock. This prevents a multiline codeblock in
2045 Word from being read as different paragraphs.
2049 + Allow < 3 spaces indent under directives (#4579).
2050 + Fix anonymous redirects with backticks (#4598).
2052 * Muse reader (Alexander Krotov):
2054 + Add support for Text::Amuse multiline headings.
2055 + Add `<math>` tag support.
2056 + Add support for `<biblio>` and `<play>` tags.
2057 + Allow links to have empty descriptions.
2058 + Require block `<literal>` tags to be on separate lines.
2059 + Allow `-` in anchors.
2060 + Allow verse to be indented.
2061 + Allow nested footnotes.
2062 + Internal improvements.
2064 * Muse writer (Alexander Krotov):
2066 + Escape `>` only at the beginning of a line.
2067 + Escape `]` in image title.
2068 + Escape `]` brackets in URLs as `%5D`.
2069 + Only escape brackets when necessary.
2070 + Escape ordered list markers.
2071 + Do not escape list markers unless preceded by space.
2072 + Escape strings starting with space.
2073 + Escape semicolons and markers after line break.
2074 + Escape `;` to avoid accidental comments.
2075 + Don't break headers, line blocks and tables with line breaks.
2076 + Correctly output empty headings.
2077 + Escape horizontal rule only if at the beginning of the line.
2078 + Escape definition list terms starting with list markers.
2079 + Place header IDs before header.
2080 + Improve span writing.
2081 + Do not join Spans in normalization.
2082 + Don't align ordered list items.
2083 + Remove key-value pairs from attributes before normalization.
2084 + Enable `--wrap=preserve` for all tests by default.
2085 + Reduced `<verbatim>` tags in output.
2090 + Use more consistent indentation (#4563). Previously we
2091 used an odd mix of 3- and 4-space indentation. Now we use 3-space
2092 indentation, except for ordered lists, where indentation must
2093 depend on the width of the list marker.
2094 + Flatten nested inlines (#4368, Francesco Occhipinti).
2095 Nested inlines are not valid RST syntax, so we flatten them following
2096 some readability criteria discussed in #4368.
2100 + Ensure that `pagetitle` is always set, even when structured titles
2101 are used. This prevents spurious warnings about empty title
2104 * FB2 writer (Alexander Krotov):
2106 + Output links inline instead of producing notes. Previously all links
2107 were turned into footnotes with unclickable URLs inside.
2108 + Allow emphasis and notes in titles.
2109 + Don't intersperse paragraph with empty lines.
2110 + Convert metadata value `abstract` to book annotation.
2111 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
2112 FB2 does not have a way to represent line breaks inside paragraphs;
2113 previously we used `<empty-line />` elements, but these are not allowed
2116 * Powerpoint writer (Jesse Rosenthal):
2118 + Handle Quoted Inlines (#4532).
2119 + Simplify code with `ParseXml`.
2120 + Allow fallback options when looking for placeholder type.
2121 + Check reference-doc for all layouts.
2122 + Simplify speaker notes logic.
2123 + Change notes state to a simpler per-slide value.
2124 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
2125 means no speaker notes.
2126 + Add tests for improved speaker notes.
2127 + Handle speaker notes earlier in the conversion process.
2128 + Keep notes with related blocks (#4477). Some blocks automatically
2129 split slides (imgs, tables, `column` divs). We assume that any
2130 speaker notes immediately following these are connected to these
2131 elements, and keep them with the related blocks, splitting after them.
2132 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
2133 It contained a nonfree ICC color calibration profile and is not needed
2134 for production of a powerpoint document.
2138 + Include a blank line at the end of the row in a single-row multiline
2139 table, to prevent it from being interpreted as a simple table (#4578).
2141 * CommonMark writer:
2143 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
2144 enabled (#4527, quasicomputational).
2148 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
2152 + In beamer, don't use format specifier for default ordered lists
2153 (#4556). This gives better results for styles that put ordered list
2154 markers in boxes or circles.
2155 + Update `\lstinline` delimiters (#4369, Tim Parenti).
2159 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
2160 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
2161 since the header font is automatically bold (#4552).
2162 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
2163 + Create pdf anchor for a Div with an identifier (#4515).
2164 + Escape `/` character in anchor ids (#4515).
2165 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
2170 + Don't escape U+2019 as `'` (#4550).
2172 * Text.Pandoc.Options:
2174 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
2175 `Text.Pandoc.Options.HTMLMathMethod` [API change].
2177 * Text.Pandoc.Class:
2179 + `writeMedia`: unescape URI-escaping in file path. This avoids
2180 writing things like `file%20one.png` to the file system.
2182 * Text.Pandoc.Parsing:
2184 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
2186 + `uri`: don't treat `*` characters at end as part of URI (#4561).
2190 + Use the alias `application/eps` for EPS (#2067).
2191 This will ensure that we retain the eps extension after reading the
2192 image into a mediabag and writing it again.
2196 + Use `withTempDir` in `html2pdf`.
2197 + With `xelatex`, don't compress images til the last run (#4484).
2198 This saves time for image-heavy documents.
2199 + Don't try to convert EPS files (#2067). `pdflatex` converts them
2200 itself, and JuicyPixels can't do it.
2201 + For `pdflatex`, use a temp directory in the working directory.
2202 Otherwise we can have problems with the EPS conversion pdflatex
2203 tries to do, which can't operate on a file above the working
2204 directory without `--shell-escape`.
2206 * Changes to tests to accommodate changes in pandoc-types.
2207 In <https://github.com/jgm/pandoc-types/pull/36> we changed
2208 the table builder to pad cells. This commit changes tests
2209 (and two readers) to accord with this behavior.
2211 * Set default extensions for `beamer` same as `latex`.
2215 + Add `beameroption` variable (#4359, Étienne Bersac).
2216 + Use `pgfpages` package; this is needed for notes on second
2217 screen in beamer (Étienne Bersac).
2218 + Add `background-image` variable (#4601, John Muccigrosso).
2220 * reveal.js template: Add `background-image` variable (#4600,
2223 * ms template: Fix date. Previously `.ND` was used, but this only
2224 works if you have a title page, which we don't. Thanks to @teoric.
2226 * Removed pragmas for unused extensions (#4506, Anabra).
2228 * Fix bash completion for `--print-default-data-file` (#4549).
2229 Previously this looked in the filesystem, even if pandoc
2230 was compiled with `embed_data_files` (and sometimes it looked
2231 in a nonexistent build directory). Now the bash completion
2232 script just includes a hard-coded list of data file names.
2236 + Clarify template vs metadata variables (#4501, Mauro Bieg).
2237 + Fix raw content example (#4479, Mauro Bieg).
2238 + Specify that you use html for raw output in epub.
2239 + Add examples for raw docx blocks (#4472, Tristan Stenner).
2240 The documentation states that the target format name should match
2241 the output format, which isn't the case for `docx`/`openxml` and
2243 + Don't say that `empty_paragraphs` affects markdown output (#4540).
2244 + Consolidate input/output format documentation (#4577, Mauro Bieg).
2246 * New README template. Take in/out formats from manual.
2248 * Fix example in lua-filters docs (#4459, HeirOfNorton).
2250 * Use the `-threaded` GHC flag when building benchmarks (#4587,
2251 Francesco Occhipinti).
2253 * Bump temporary upper bound to 1.4.
2255 * Use pandoc-citeproc 0.14.3.1.
2257 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
2259 * Removed old lib directory. This was used for something long ago,
2260 but plays no role now.
2262 * Removed unneeded data file `LaTeXMathML.js`.
2264 * Create 64- and 32-bit versions of Windows binary packages.
2268 * Docx reader (Jesse Rosenthal):
2270 + Add tests for nested smart tags.
2271 + Parse nested smart tags.
2272 + Make unwrapSDT into a general `unwrap` function that can unwrap both
2273 nested SDT tags and smartTags. This makes the SmartTags constructor in
2274 the Docx type unnecessary, so we remove it (#4446).
2275 + Remove unused `docxWarnings` (Alexander Krotov).
2277 * RST reader: Allow unicode bullet characters (#4454).
2279 * Haddock reader: Better table handling, using haddock-library's
2280 new table support, if compiled against a version that
2281 includes it. Note that tables with col/rowspans will not
2282 translate well into Pandoc.
2284 * Muse reader (Alexander Krotov):
2286 + Require closing tag to have the same indentation as opening.
2287 + Do not reparse blocks inside unclosed block tag (#4425).
2288 + Parse `<class>` tag (supported by Emacs Muse).
2289 + Do not produce empty Str element for unindented verse lines.
2290 + Don't allow footnote references inside links.
2291 + Allow URL to be empty.
2292 + Require that comment semicolons are in the first column (#4551).
2293 + Various internal improvements.
2297 + Add support to parse unit string of `\SI` command (closes #4296,
2300 * Haddock writer: In the writer, we now render tables always as
2301 grid tables, since Haddock supports these.
2303 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
2305 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
2306 docx writer. We want decimal for the top level, not lower roman.
2310 + Strip whitespace at beginning and ending of inline containers
2311 (#4327, Francesco Occhipinti).
2312 + Filter out empty inline containers (#4434). There is nothing in
2313 RST that corresponds to e.g. `Emph []`, so we just ignore elements
2314 like this (Francesco Occhipinti).
2316 * Muse writer (Alexander Krotov):
2318 + Support spans with anchors.
2319 + Replace smallcaps with emphasis before normalization.
2320 + Output smallcaps as emphasis.
2321 + Expand Cite before list normalization.
2322 + Write empty inline lists as `<verbatim></verbatim>`.
2323 + Remove empty Str from the beginning of inline lists during normalization.
2324 + Escape "-" to avoid creating bullet lists.
2325 + Fix math expansion for more than one expression per paragraph.
2326 + Expand math before inline list normalization.
2328 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
2332 + Asciify pdf anchors, since unicode anchors don't work (#4436).
2333 Internal links should be converted automatically, so this shouldn't
2334 affect users directly.
2335 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
2337 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
2338 (#4307). If it's in the title, then we get a titlebar on slides with
2339 the `plain` attribute, when the id is non-null. This fixes a regression
2342 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
2344 * JATS writer: Remove extraneous, significant whitespace (#4335,
2347 * html2pdf: inject base tag with current working directory (#4413, Mauro
2348 Bieg). This helps ensure that linked resources are included.
2350 * Add Semigroup instances for everything for which we defined a
2351 Monoid instance previously (API change):
2353 + Text.Pandoc.Class.FileTree.
2354 + Text.Pandoc.Translations.Translations.
2355 + Text.Pandoc.Extensions.Extensions.
2356 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
2357 + Text.Pandoc.Pretty.Doc.
2358 + Text.Pandoc.MediaBag.MediaBag.
2360 * Add custom Prelude to give clean code for Monoid and Semigroup
2361 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
2362 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
2363 in all source files, and Prelude is explicitly imported
2364 (this is necessary for ghci to work properly with the custom prelude).
2366 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
2368 + Export `stripLeadingTrailingSpace`.
2369 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
2370 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
2371 expand cells, even if it results in cells that don't respect relative
2372 widths or surpass page column width. This change affects RST,
2373 Markdown, and Haddock writers.
2375 * Raise error if someone tries to print docx, odt, etc. template (#4441).
2377 * LaTeX template: Provide `bidi` package's option using
2378 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
2379 clash when `polyglossia` loads it first and then it is loaded again
2382 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
2383 Menke). Instructions on how to install the ICC profiles on ConTeXt
2384 standalone can be found in the wiki:
2385 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
2386 If the ICC profiles are not available the log will contain error
2389 * Use latest pandoc-types, skylighting
2391 * Use latest pandoc-citeproc in binary package.
2393 * Bump upper bound for time, criterion, haddock-library, exceptions,
2394 http-types, aeson, haddock-library.
2396 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
2398 * pandoc.cabal: fix up other-extensions and language fields.
2399 Language is now consistently `Haskell2010`, and other-extensions
2400 is consistently `NoImplicitPrelude`. Everything else to be specified
2401 in the module header as needed.
2403 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
2404 This is no longer necessary since we no longer support ghc 7.8.
2406 * Make `weigh-pandoc` into a benchmark program.
2407 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
2408 automatically when you build (and run) benchmarks.
2410 * MANUAL: add instructions for background images reveal.js (#4325, John
2413 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
2420 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
2421 "nonindent spaces" before the opening and closing `:::`, but this
2422 interfered with list parsing, so now we require the fences to be flush with
2423 the margin of the containing block.
2425 * Commonmark reader:
2427 + `raw_html` is now on by default. It can be disabled explicitly
2428 using `-f commonmark-raw_html`.
2430 * Org reader (Albert Krewinkel):
2432 + Move citation tests to separate module.
2433 + Allow changing emphasis syntax (#4378). The characters allowed before
2434 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
2435 `#+pandoc-emphasis-post`, respectively. This allows to change which
2436 strings are recognized as emphasized text on a per-document or even
2437 per-paragraph basis. Example:
2439 #+pandoc-emphasis-pre: "-\t ('\"{"
2440 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
2444 + Fixed comments inside citations (#4374).
2445 + Fix regression in package options including underscore (#4424).
2446 + Make `--trace` work.
2447 + Fixed parsing of `tabular*` environment (#4279).
2451 + Fix regression in parsing of headers with trailing space (#4280).
2453 * Muse reader (Alexander Krotov):
2455 + Enable `<literal>` tags even if amuse extension is enabled.
2456 Amusewiki disables <literal> tags for security reasons.
2457 If user wants similar behavior in pandoc, RawBlocks and RawInlines
2458 can be removed or replaced with filters.
2459 + Remove space prefix from `<literal>` tag contents.
2460 + Do not consume whitespace while looking for closing end tag.
2461 + Convert alphabetical list markers to decimal in round-trip test.
2462 Alphabetical lists are an addition of Text::Amuse.
2463 They are not present in Emacs Muse and can be ambiguous
2464 when list starts with "i.", "c." etc.
2465 + Allow `<quote>` and other tags to be indented.
2466 + Allow single colon in definition list term.
2467 + Fix parsing of verse in lists.
2468 + Improved parsing efficiency. Avoid `parseFromString`.
2469 Lists are parsed in linear instead of exponential time now.
2470 + Replace ParserState with MuseState.
2471 + Prioritize lists with roman numerals over alphabetical lists.
2472 This is to make sure "i." starts a roman numbered list,
2473 instead of a list with letter "i" (followed by "j", "k", ...").
2474 + Fix directive parsing.
2475 + Parse definition lists with multiple descriptions.
2476 + Parse next list item before parsing more item contents.
2477 + Fixed a bug: headers did not terminate lists.
2478 + Move indentation parsing from `definitionListItem` to `definitionList`.
2479 + Paragraph indentation does not indicate nested quote.
2480 Muse allows indentation to indicate quotation or alignment,
2481 but only on the top level, not within a <quote> or list.
2482 + Require that block tags are on separate lines.
2483 Text::Amuse already explicitly requires it anyway.
2484 + Fix matching of closing inline tags.
2485 + Various internal changes.
2486 + Fix parsing of nested definition lists.
2487 + Require only one space for nested definition list indentation.
2488 + Do not remove trailing whitespace from `<code>`.
2489 + Fix parsing of trailing whitespace. Newline after whitespace now
2490 results in softbreak instead of space.
2492 * Docx reader (Jesse Rosenthal, except where noted):
2494 + Handle nested sdt tags (#4415).
2495 + Don't look up dependent run styles if `+styles` is enabled.
2496 + Move pandoc inline styling inside custom-style span.
2497 + Read custom styles (#1843). This will read all paragraph and
2498 character classes as divs and spans, respectively. Dependent styles
2499 will still be resolved, but will be wrapped with appropriate style
2500 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
2501 This can be used in conjunction with the `custom-style` feature in the
2502 docx writer for a pandoc-docx editing workflow. Users can convert from
2503 an input docx, reading the custom-styles, and then use that same input
2504 docx file as a reference-doc for producing an output docx file. Styles
2505 will be maintained across the conversion, even if pandoc doesn't
2507 + Small change to Fields hyperlink parser. Previously, unquoted string
2508 required a space at the end of the line (and consumed it). Now we
2509 either take a space (and don't consume it), or end of input.
2510 + Pick table width from the longest row or header (Francesco Occhipinti,
2513 * Muse writer (Alexander Krotov):
2515 + Change verse markup: `> ` instead of `<verse>` tag.
2516 + Remove empty strings during inline normalization.
2517 + Don't indent nested definition lists.
2518 + Use unicode quotes for quoted text.
2519 + Write image width specified in percent in Text::Amuse mode.
2520 + Don't wrap displayMath into `<verse>`.
2521 + Escape nonbreaking space (`~~`).
2522 + Join code with different attributes during normalization.
2523 + Indent lists inside Div.
2524 + Support definitions with multiple descriptions.
2526 * Powerpoint writer (Jesse Rosenthal):
2528 + Use table styles This will use the default table style in the
2529 reference-doc file. As a result they will be easier when using
2530 in a template, and match the color scheme.
2531 + Remove empty slides. Because of the way that slides were split, these
2532 could be accidentally produced by comments after images. When animations
2533 are added, there will be a way to add an empty slide with either
2534 incremental lists or pauses.
2535 + Implement syntax highlighting. Note that background colors can't
2536 be implemented in PowerPoint, so highlighting styles that require
2537 these will be incomplete.
2538 + New test framework for pptx. We now compare the output of the
2539 Powerpoint writer with files that we know to (a) not be corrupt,
2540 and (b) to show the desired output behavior (details below).
2541 + Add `notesMaster` to `presentation.xml` if necessary.
2542 + Ignore links and (end)notes in speaker notes.
2543 + Output speaker notes.
2544 + Read speaker note templates conditionally. If there are speaker
2545 notes in the presentation, we read in the notesMasters templates
2546 from the reference pptx file.
2547 + Fix deletion track changes (#4303, Jesse Rosenthal).
2549 * Markdown writer: properly escape @ to avoid capture as citation
2554 + Put hypertarget inside figure environment (#4388).
2555 This works around a problem with the endfloat package and
2556 makes pandoc's output compatible with it.
2557 + Fix image height with percentage (#4389). This previously caused
2558 the image to be resized to a percentage of textwidth, rather than
2561 * ConTeXt writer (Henri Menke):
2563 + New section syntax and support `--section-divs` (#2609).
2564 `\section[my-header]{My Header}` ->
2565 `\section[title={My Header},reference={my-header}]`.
2566 The ConTeXt writer now supports the `--section-divs` option to
2567 write sections in the fenced style, with `\startsection` and
2569 + xtables: correct wrong usage of caption (Henri Menke).
2573 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
2574 + Use new golden framework (Jesse Rosenthal).
2575 + Make more deterministic to facilitate testing (Jesse Rosenthal).
2576 - `getUniqueId` now calls to the state to get an incremented digit,
2577 instead of calling to P.uniqueHash.
2578 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
2579 seed (1848), so our randoms should be the same each time.
2580 + Fix ids in comment writing (Jesse Rosenthal). Comments from
2581 `--track-changes=all` were producing corrupt docx, because the
2582 writer was trying to get id from the `(ID,_,_)` field of
2583 the attributes, and ignoring the "id" entry in the key-value pairs. We
2586 * Ms writer: Added papersize variable.
2590 + Use `height` instead of `depth` for images (#4331).
2591 + Ensure that id prefix is always used.
2592 + Don't emit `role` attribute; that was a leftover from the
2594 + Use 'xml:id', not 'id' attribute (#4371).
2598 + Do not output implicit heading IDs (#4363, Alexander
2599 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
2603 + Remove `blockToRST'` moving its logic into `fixBlocks`
2604 (Francesco Occhipinti).
2605 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
2607 * RST template: remove definition of 'math' role as raw.
2608 This used to be needed prior to v 0.8 of docutils, but
2609 now math support is built-in.
2611 * Slides: Use divs to set incremental/non-incremental (#4381,
2612 Jesse Rosenthal). The old method (list inside blockquote) still
2613 works, but we are encouraging the use of divs with class
2614 `incremental` or `nonincremental`.
2616 * Text.Pandoc.ImageSize:
2618 + Make image size detection for PDFs more robust (#4322).
2619 + Determine image size for PDFs (#4322).
2620 + EMF Image size support (#4375, Andrew Pritchard).
2622 * Text.Pandoc.Extensions:
2624 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
2625 the docx reader (defaulting to off) to read pargraph and character
2626 styles not understood by pandoc (as divs and spans, respectively).
2627 + Made `Ext_raw_html` default for `commonmark` format.
2629 * Text.Pandoc.Parsing:
2631 + Export `manyUntil` (Alexander Krotov, API change).
2632 + Export improved `sepBy1` (Alexander Krotov).
2633 + Export list marker parsers: `upperRoman`, `lowerRoman`,
2634 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
2636 * Tests/Lua: fix tests on windows (Albert Krewinkel).
2638 * Lua: register script name in global variable (#4393). The name of the Lua
2639 script which is executed is made available in the global Lua variable
2640 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
2642 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
2643 There is very little pptx-specific in these tests, so we abstract out
2644 the basic testing function so it can be used for docx as well. This
2645 should allow us to catch some errors in the docx writer that slipped
2646 by the roundtrip testing.
2648 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
2649 functions used to construct AST element values are stored in the Lua
2650 registry for quicker access. Getting a value from the registry is much
2651 faster than getting a global value (partly to idiosyncrasies of hslua);
2652 this change results in a considerable performance boost.
2656 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
2657 + `doc/lua-filters.md`: document global vars set for filters
2659 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
2660 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
2661 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
2662 Rosenthal). Blockquoted lists are still described, but fenced divs are
2663 presented in preference.
2664 + MANUAL.txt: document header and footer variables (newmana).
2665 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
2666 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
2668 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
2670 * Use latest texmath.
2672 * Use latest pandoc-citeproc.
2674 * Allow exceptions 0.9.
2676 * Require aeson-pretty 0.8.5 (#4394).
2678 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
2680 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
2682 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
2684 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
2692 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
2693 blank line. See lierdakil/pandoc-crossref#160.
2694 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
2695 The change both improves performance and fixes a regression whereby
2696 normal citations inside inline notes and figure captions were not
2701 + Better handling for headers with an anchor (#4240). Instead of creating a
2702 Div containing the header, we put the id directly on the header.
2703 This way header promotion will work properly.
2704 + Add aligned environment when needed in math (#4254). `rst2latex.py`
2705 uses an `align*` environment for math in `.. math::` blocks, so this
2706 math may contain line breaks. If it does, we put the math in an
2707 `aligned` environment to simulate `rst2latex.py`'s behavior.
2711 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
2715 + Advance source position at end of stream.
2716 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
2717 extension is set (#4246). This reverts to earlier behavior and is
2718 probably safer on the whole, since some macros only modify things in
2719 included packages, which pandoc's macro expansion can't modify.
2720 + Fixed pos calculation in tokenizing escaped space.
2721 + Allow macro definitions inside macros (#4253). Previously we went into
2722 an infinite loop with
2724 \newcommand{\noop}[1]{#1}
2725 \noop{\newcommand{\foo}[1]{#1}}
2728 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
2729 widths for the body were different from widths for the header in some
2732 * Docx reader (Jesse Rosenthal):
2734 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
2735 hyperlink found in older versions of word. The changes introduced for
2736 this, though, create a framework for parsing further fields in MS Word
2737 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
2738 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
2739 contains a simple parsec parser. At the moment, only simple hyperlink
2740 fields are accepted, but that can be extended in the future.
2742 * Muse reader (Alexander Krotov):
2744 + Parse `~~` as non-breaking space in Text::Amuse mode.
2745 + Refactor list parsing.
2747 * Powerpoint writer (Jesse Rosenthal):
2749 + Change reference to `notesSlide` to `endNotesSlide`.
2750 + Move image sizing into `picProps`.
2751 + Improve table placement.
2752 + Make our own `_rels/.rels` file.
2753 + Import reference-doc images properly.
2754 + Move `Presentation.hs` out of `PandocMonad`.
2755 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
2756 defines the Presentation datatype and goes Pandoc->Presentation;
2757 T.P.W.Pandoc.Output goes Presentation->Archive.
2758 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
2759 + Avoid overlapping blocks in column output.
2760 + Position images correctly in two-column layout.
2761 + Make content shape retrieval environment-aware.
2762 + Improve image handling. We now determine image and caption placement
2763 by getting the dimensions of the content box in a given layout.
2764 This allows for images to be correctly sized and positioned in a
2765 different template. Note that images without captions and headers are
2766 no longer full-screened. We can't do this dependably in different
2767 layouts, because we don't know where the header is (it could be to
2768 the side of the content, for example).
2769 + Read presentation size from reference file. Our presentation size is
2770 now dependent on the reference/template file we use.
2771 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
2772 subheaders will be printed in bold and given a bit of extra space
2773 before them. Note that at the moment, no distinction is made between
2774 levels of headers above the slide header, though that can be changed.
2775 + Check for required files. Since we now import from reference/dist
2776 file by glob, we need to make sure that we're getting the files we
2777 need to make a non-corrupt Powerpoint. This performs that check.
2778 + Improve templating using `--reference-doc`. Templating should work
2779 much more reliably now.
2780 + Include Notes slide in TOC.
2781 + Set notes slide header to slide-level.
2782 + Add table of contents. This is triggered by the `--toc` flag. Note
2783 that in a long slide deck this risks overrunning the text box. The user
2784 can address this by setting `--toc-depth=1`.
2785 + Set notes slide number correctly.
2786 + Clean up adding metadata slide. We want to count the slide numbers
2787 correctly if it's in there.
2788 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
2789 an anchor link. In powerpoint these are links to slides, so we keep
2790 track of a map relating anchors to the slides they occur on.
2791 + Make the slide number available to the blocks. For anchors,
2792 block-processing functions need to know what slide number
2793 they're in. We make the `envCurSlideId` available to blocks.
2794 + Move `curSlideId` to environment.
2795 + Allow setting `toc-title` in metadata.
2796 + Link notes to endnotes slide.
2800 + Fix cell width calculation (#4265). Previously we could get
2801 ever-lengthening cell widths when a table was run repeatedly through
2802 `pandoc -f markdown -t markdown`.
2806 + Escape `&` in lstinline (Robert Schütz).
2810 + Use xtables instead of Tables (#4223, Henri Menke).
2811 Default to xtables for context output. Natural Tables are used
2812 if the new `ntb` extension is set.
2816 + Fixed footnote backlinks with `--id-prefix` (#4235).
2818 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
2821 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
2822 (Jesse Rosenthal, API change).
2824 * Lua filters (Albert Krewinkel):
2826 + Make `PANDOC_READER_OPTIONS` available.
2827 The options which were used to read the document are made available to
2828 Lua filters via the `PANDOC_READER_OPTIONS` global.
2829 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
2830 on a Pandoc document.
2831 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
2832 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
2833 + Improve error messages. Provide more context about the task
2834 which caused an error.
2836 * data/pandoc.lua (Albert Krewinkel):
2838 + Accept singleton inline as a list. Every constructor which accepts a
2839 list of inlines now also accepts a single inline element for
2841 + Accept single block as singleton list. Every constructor which accepts
2842 a list of blocks now also accepts a single block element for
2843 convenience. Furthermore, strings are accepted as shorthand for
2844 `{pandoc.Str "text"}` in constructors.
2845 + Add attr, listAttributes accessors. Elements with
2846 attributes got an additional `attr` accessor. Attributes were
2847 accessible only via the `identifier`, `classes`, and `attributes`,
2848 which was in conflict with the documentation, which indirectly states
2849 that such elements have the an `attr` property.
2850 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
2851 module is closely tied to the pandoc version, which is available via
2853 + Fix access to Attr components. Accessing an Attr value (e.g.,
2854 ` Attr().classes`) was broken; the more common case of accessing it via
2855 an Inline or Block element was unaffected by this.
2857 * Move `metaValueToInlines` to from Docx writer to
2858 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
2863 + Clarify otherlangs in LaTeX (#4072).
2864 + Clarify `latex_macros` extension.
2865 + Recommend use of `raw_attribute` extension in header includes (#4253).
2867 * Allow latest QuickCheck, tasty, criterion.
2869 * Remove custom prelude and ghc 7.8 support.
2871 * Reduce compiler noise (exact paths for compiled modules).
2875 * Allow filters and lua filters to be interspersed (#4196). Previously
2876 we ran all lua filters before JSON filters. Now we run filters in
2877 the order they are presented on the command line, whether lua or JSON.
2878 There are two incompatible API changes: The type of `applyFilters`
2879 has changed, and `applyLuaFilters` has been removed. `Filter` is
2882 * Use latest skylighting and omit the `missingIncludes` check, fixing
2883 a major performance regression in earlier releases of the 2.x series
2884 (#4226). Behavior change: If you use a custom syntax definition that
2885 refers to a syntax you haven't loaded, pandoc will now complain when
2886 it is highlighting the text, rather than doing a check at the start.
2887 This change dramatically speeds up invocations of pandoc on short
2890 * Text.Pandoc.Class: make `FileTree` opaque (don't export
2891 `FileTree` constructor). This forces users to interact with it using
2892 `insertInFileTree` and `getFileInfo`, which normalize file names.
2896 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
2897 direct, avoiding `parseFromString`. And it performs significantly
2898 better; unfortunately, parsing time still increases exponentially
2900 + Avoid parsing raw tex unless `\` + letter seen. This seems to
2901 help with the performance problem, #4216.
2903 * LaTeX reader: Simplified a check for raw tex command.
2905 * Muse reader (Alexander Krotov):
2907 + Enable round trip test (#4107).
2908 + Automatically translate `#cover` into `#cover-image`.
2909 Amusewiki uses #cover directive to specify cover image.
2911 * Docx reader (Jesse Rosenthal):
2913 + Allow for insertion/deletion of paragraphs (#3927).
2914 If the paragraph has a deleted or inserted paragraph break (depending
2915 on the track-changes setting) we hold onto it until the next
2916 paragraph. This takes care of accept and reject. For this we introduce
2917 a new state which holds the ils from the previous para if necessary.
2918 For `--track-changes=all`, we add an empty span with class
2919 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
2920 prior to the break to be inserted or deleted.
2921 + Remove unused anchors (#3679). Docx produces a lot of anchors with
2922 nothing pointing to them---we now remove these to produce cleaner
2923 output. Note that this has to occur at the end of the process
2924 because it has to follow link/anchor rewriting.
2925 + Read multiple children of `w:sdtContents`.
2926 + Combine adjacent anchors. There isn't any reason to have numerous
2927 anchors in the same place, since we can't maintain docx's
2928 non-nesting overlapping. So we reduce to a single anchor.
2931 * Muse writer (Alexander Krotov): don't escape URIs from AST
2935 + Removed redundant subtitle in title (Sebastian Talmon).
2936 + `firstRow` table definition compatibility for Word 2016 (Sebastian
2937 Talmon). Word 2016 seems to use a default value of "1" for table
2938 headers, if there is no firstRow definition (although a default
2939 value of 0 is documented), so all tables get the first Row formatted
2940 as header. Setting the parameter to 0 if the table has no header
2941 row fixes this for Word 2016
2942 + Fix custom styles with spaces in the name (#3290).
2944 * Powerpoint writer (Jesse Rosenthal):
2946 + Ignore Notes div for parity with other slide outputs.
2947 + Set default slidelevel correctly. We had previously defaulted to
2948 slideLevel 2. Now we use the correct behavior of defaulting to the
2949 highest level header followed by content. We change an expected test
2950 result to match this behavior.
2951 + Split blocks correctly for linked images.
2952 + Combine adjacent runs.
2953 + Make inline code inherit code size. Previously (a) the code size
2954 wasn't set when we force size, and (b) the properties was set from
2955 the default, instead of inheriting.
2956 + Simplify `replaceNamedChildren` function.
2957 + Allow linked images. The following markdown:
2958 `[](http://www.example.com)`
2959 will now produce a linked image in the resulting PowerPoint file.
2960 + Fix error with empty table cell. We require an empty `<a:p>` tag,
2961 even if the cell contains no paragraphs---otherwise PowerPoint
2962 complains of corruption.
2963 + Implement two-column slides. This uses the columns/column div
2964 format described in the pandoc manual. At the moment, only two
2965 columns (half the screen each) are allowed. Custom widths are not
2969 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
2971 * Lua filters (Albert Krewinkel):
2973 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
2974 + The current pandoc-types version is made available to Lua programs in
2975 the global `PANDOC_API_VERSION`. It contains the version as a list of
2977 + The pandoc version available as a global `PANDOC_VERSION` (a list
2979 + `data/pandoc.lua`: make `Attr` an `AstElement`.
2980 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
2981 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
2982 not set a metatable on the returned value, which made it difficult
2983 to amend objects of these types with new behavior. They are now
2984 subtypes of AstElement, meaning that all their objects can gain
2985 new features when a method is added to the behavior object
2986 (e.g., `pandoc.Pandoc.behavior`).
2987 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
2988 between a type and the behavioral properties of an instance of that
2989 type. The behavior of a type (and all its subtypes) can now be
2990 amended by adding methods to that types `behavior` object, without
2991 exposing the type objects internals. E.g.:
2993 pandoc.Inline.behavior.frob = function () print'42' end
2994 local str = pandoc.Str'hello'
2995 str.frob() -- outputs '42'
2997 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
2998 of a given type (e.g., all inline elements) was difficult, as the
2999 table used to lookup unknown methods would be reset every time a
3000 new element of that type was created, preventing recursive property
3001 lookup. This is was changed in that all methods and attributes of
3002 supertypes are now available to their subtypes.
3003 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
3004 fields were named like the Haskell fields, not like the documented,
3005 shorter version. The names are changed to match the documentation
3006 and Citations are given a shared metatable to enable simple
3008 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
3009 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
3010 difficult to handle failures while getting lists or a Map from Lua.
3011 A bug in pandoc, which made it necessary to always pass a tag when
3012 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
3013 module's constructor functions for these values is now optional
3014 (if still recommended).
3015 + Stop exporting `pushPandocModule` (API change). The introduction
3016 of `runPandocLua` renders direct use of this function obsolete.
3017 + Update generation of module docs for lua filters.
3018 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
3019 MacFarlane). I'm sure this was intended in the first place,
3020 but currently only `Meta` is supported.
3022 * Improve benchmarks.
3024 + Set the default extensions properly.
3025 + Improve benchmark argument parsing. You can now say
3026 `make bench BENCHARGS="markdown latex reader"` and both the
3027 markdown and latex readers will be benchmarked.
3029 * MANUAL.txt simplify and add more structure (Mauro Bieg).
3031 * Generate README.md from template and MANUAL.txt.
3032 `make README.md` will generate the README.md after changes
3033 to MANUAL.txt have been made.
3035 * Update copyright notices to include 2018 (Albert Krewinkel).
3039 * Added `jats` as an input format.
3041 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
3042 change) (Hamish Mackenzie).
3043 + Improved citation handling in JATS reader. JATS citations
3044 are now converted to pandoc citations, and JATS ref-lists
3045 are converted into a `references` field in metadata, suitable
3046 for use with pandoc-citeproc. Thus a JATS article with embedded
3047 bibliographic information can be processed with pandoc and
3048 pandoc-citeproc to produce a formatted bibliography.
3050 * Allow `--list-extensions` to take an optional FORMAT argument.
3051 This lists the extensions set by default for the selected FORMAT.
3052 The extensions are now alphabetized, and the `+` or `-`
3053 indicating the default setting comes before, rather than after,
3058 + Preserve original whitespace between blocks.
3059 + Recognize `\placeformula` as context.
3060 + Be pickier about table captions. A caption starts with a `:` which
3061 can't be followed by punctuation. Otherwise we can falsely interpret
3062 the start of a fenced div, or even a table header line like
3063 `:--:|:--:`, as a caption.
3064 + Always use four space rule for example lists. It would be awkward
3065 to indent example list contents to the first non-space character after
3066 the label, since example list labels are often long. Thanks to
3067 Bernhard Fisseni for the suggestion.
3068 + Improve raw tex parsing. Note that the Markdown reader is also
3069 affected by the `latex_macros` extension changes described below
3070 under the LaTeX reader.
3074 + `latex_macros` extension changes (#4179). Don't pass through macro
3075 definitions themselves when `latex_macros` is set. The macros
3076 have already been applied. If `latex_macros` is enabled, then
3077 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
3078 a macro definition, and will update pandoc's internal macro map
3079 accordingly, but the empty string will be returned.
3080 + Export `tokenize`, `untokenize` (API change).
3081 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
3082 + Refactored `inlineCommand`.
3083 + Fix bug in tokenizer. Material following `^^` was
3084 dropped if it wasn't a character escape. This only affected
3085 invalid LaTeX, so we didn't see it in the wild, but it appeared
3086 in a QuickCheck test failure.
3087 + Fix regression in LateX tokenization (#4159). This mainly affects the
3088 Markdown reader when parsing raw LaTeX with escaped spaces.
3089 + Add tests of LaTeX tokenizer.
3090 + Support `\foreignlanguage` from babel.
3091 + Be more tolerant of `&` character (#4208). This allows us to parse
3092 unknown tabular environments as raw LaTeX.
3094 * Muse reader (Alexander Krotov):
3096 + Parse anchors immediately after headings as IDs.
3097 + Require that note references does not start with 0.
3098 + Parse empty comments correctly.
3100 * Org reader (Albert Krewinkel):
3102 + Fix asterisks-related parsing error (#4180).
3103 + Support minlevel option for includes (#4154). The level of headers
3104 in included files can be shifted to a higher level by specifying a
3105 minimum header level via the `:minlevel` parameter. E.g.
3106 `#+include: "tour.org" :minlevel 1` will shift the headers in
3107 tour.org such that the topmost headers become level 1 headers.
3108 + Break-up org reader test file into multiple modules.
3112 + Enable raw HTML and other extensions by default for notes
3113 (#4164). This fixes a regression in 2.0. Note that extensions can
3114 now be individually disabled, e.g. `-f opml-smart-raw_html`.
3118 + Allow empty list items (#4193).
3119 + More accurate parsing of references (#4156). Previously we erroneously
3120 included the enclosing backticks in a reference ID (#4156). This
3121 change also disables interpretation of syntax inside references, as
3122 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
3126 + Continue lists after interruption (#4025, Jesse Rosenthal).
3127 Docx expects that lists will continue where they left off after an
3128 interruption and introduces a new id if a list is starting again. So
3129 we keep track of the state of lists and use them to define a "start"
3130 attribute, if necessary.
3131 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
3132 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
3137 + Don't linkify table of contents.
3141 + Fix anchors for headers (#4188). We were missing an `_`.
3143 * PowerPoint writer (Jesse Rosenthal):
3145 + Treat lists inside BlockQuotes as lists. We don't yet produce
3146 incremental lists in PowerPoint, but we should at least treat lists
3147 inside BlockQuotes as lists, for compatibility with other slide formats.
3148 + Add ability to force size. This replaces the more specific
3149 `blockQuote runProp`, which only affected the size of blockquotes. We
3150 can use this for notes, etc.
3151 + Implement notes. This currently prints all notes on a final slide.
3152 Note that at the moment, there is a danger of text overflowing the
3153 note slide, since there is no logic for adding further slides.
3154 + Implement basic definition list functionality to PowerPoint writer.
3155 + Don't look for default template file for Powerpoint (#4181).
3156 + Add pptx to isTextFormat list. This is used to check standalone
3157 and not writing to the terminal.
3158 + Obey slide level option (Jesse Rosenthal).
3163 + Ensure that `distArchive` is the one that comes with pandoc
3164 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
3165 dir) would be used instead, and this could cause problems because a
3166 user-modified docx sometimes lacks vital sections that we count
3167 on the `distArchive` to supply.
3171 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
3172 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
3173 Alexander Krotov). Otherwise they can be interpreted as footnote
3176 * Muse writer (Alexander Krotov):
3178 + Don't wrap note references to the next line (#4172).
3182 + Use br elements in line blocks instead of relying on CSS
3183 (#4162). HTML-based templates have had the custom CSS for
3184 `div.line-block` removed. Those maintaining custom templates will want
3185 to remove this too. We still enclose line blocks in a div with class
3190 + Use `\renewcommand` for `\textlatin` with babel (#4161).
3191 This avoids a clash with a deprecated `\textlatin` command defined
3193 + Allow fragile=singleslide attribute in beamer slides (#4169).
3194 + Use `\endhead` after `\toprule` in headerless tables (#4207).
3198 + Add cover image specified by `cover-image` meta (Alexander Krotov,
3201 * JATS writer (Hamish Mackenzie):
3203 + Support writing `<fig>` and `<table-wrap>` elements
3204 with `<title>` and `<caption>` inside them by using Divs with class set
3205 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
3206 title is included as a Heading so the constraint on where Heading can
3207 occur is also relaxed.
3208 + Leave out empty alt attributes on links.
3209 + Deduplicate image mime type code.
3210 + Make `<p>` optional in `<td>` and `<th>` (#4178).
3211 + Self closing tags for empty xref (#4187).
3212 + Improve support for code language.
3216 + Use init file to setup Lua interpreter (Albert Krewinkel).
3217 The same init file (`data/init`) that is used to setup the Lua
3218 interpreter for Lua filters is also used to setup the interpreter of
3220 + Define instances for newtype wrapper (Albert Krewinkel). The custom
3221 writer used its own `ToLuaStack` instance definitions, which made
3222 it difficult to share code with Lua filters, as this could result
3223 in conflicting instances. A `Stringify` wrapper is introduced to
3225 + Added tests for custom writer.
3226 + Fixed definition lists and tables in `data/sample.lua`.
3228 * Fixed regression: when target is PDF, writer extensions were being
3229 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
3230 did not work properly.
3232 * Lua modules (Albert Krewinkel):
3234 + Add `pandoc.utils` module, to hold utility functions.
3235 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
3236 define the `pandoc` lua module.
3237 + Make a Haskell module for each Lua module. Move definitions for the
3238 `pandoc.mediabag` modules to a separate Haskell module.
3239 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
3240 + Add function `pandoc.utils.hierarchicalize` (convert list of
3241 Pandoc blocks into (hierarchical) list of Elements).
3242 + Add function `pandoc.utils.normalize_date` (parses a date and
3243 converts it (if possible) to "YYYY-MM-DD" format).
3244 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
3245 of numbers below 4000 into roman numerals).
3246 + Add function `pandoc.utils.stringify` (converts any AST element
3247 to a string with formatting removed).
3248 + `data/init.lua`: load `pandoc.utils` by default
3249 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
3250 utility functions are converted from hybrid lua/haskell functions
3251 into full Haskell functions. This avoids the need for intermediate
3252 `_pipe`/`_read` helper functions, which have dropped.
3253 + pandoc.lua: re-add missing MetaMap function. This was a bug
3254 introduced in version 2.0.4.
3256 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
3257 a pure way to insert an ersatz file into a `FileTree`. In addition, we
3258 normalize paths both on insertion and on lookup.
3260 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
3262 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
3264 * Text.Pandoc.Extensions: Alphabetical order constructors for
3265 `Extension`. This makes them appear in order in `--list-extensions`.
3267 * Allow lenient decoding of latex error logs, which are not always
3268 properly UTF8-encoded (#4200).
3270 * Update latex template to work with recent versions of beamer.
3271 The old template produced numbered sections with some recent
3272 versions of beamer. Thanks to Thomas Hodgson.
3274 * Updated reference.docx (#4175). Instead of just "Hello, world", the
3275 document now contains exemplars of most of the styles that have an
3276 effect on pandoc documents. This makes it easier to see the effect
3279 * Removed `default.theme` data file (#4096). It is no longer needed now
3280 that we have `--print-highlight-style`.
3282 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
3283 We still need this for the alpine static linux build, since
3284 we don't have ghc 8.2.2 for that yet.
3286 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
3287 can put flag settings for pandoc-citeproc there.
3289 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
3290 make releases easier.
3294 + Add note on what formats have `+smart` by default.
3295 + Use native syntax for custom-style (#4174, Mauro Bieg).
3296 + Introduce dedicated Extensions section, since some extensions
3297 affect formats other than markdown (Mauro Bieg, #4204).
3298 + Clarify default html output for `--section-divs` (Richard Edwards).
3300 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
3301 Closes jgm/pandoc-website#16.
3303 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
3307 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
3308 generated with `--print-highlight-style` (#4133). Improve JSON
3309 serialization of styles.
3311 * Fix CSS issues involving line numbers (#4128).
3312 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
3313 Highlighting CSS no longer sets a generic color for pre and code; we only
3314 set these for class `sourceCode`.
3316 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
3318 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
3319 It works following the standard Pandoc conventions for making other
3320 sorts of slides. Caveats:
3322 + Syntax highlighting is not yet implemented. (This is difficult
3323 because there are no character classes in Powerpoint.)
3324 + Footnotes and Definition lists are not yet implemented. (Notes will
3325 usually take the form of a final slide.
3326 + Image placement and auto-resizing has a few glitches.
3327 + Reference powerpoint files don't work dependably from the command
3328 line. This will be implemented, but at the moment users are advised
3329 to change themes from within Powerpoint.
3331 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
3332 This is for functions used by both Powerpoint and Docx writers.
3334 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
3336 * Add `empty_paragraphs` extension.
3338 + Deprecate `--strip-empty-paragraphs` option. Instead we now
3339 use an `empty_paragraphs` extension that can be enabled on
3340 the reader or writer. By default, disabled.
3341 + Add `Ext_empty_paragraphs` constructor to `Extension`.
3342 + Revert "Docx reader: don't strip out empty paragraphs."
3343 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
3344 + Implement `empty_paragraphs` extension in docx reader and writer,
3345 opendocument writer, HTML reader and writer.
3346 + Add tests for `empty_paragraphs` extension.
3350 + Don't parse native div as table caption (#4119).
3351 + Improved computation of column widths in pipe tables.
3352 Pipe tables with lines longer than the text width (as set
3353 by `--columns`) are now scaled to text width, with the relative
3354 widths of columns determined by the ratios between the
3355 header lines. Previously we computed column widths using
3356 the ratio of header line lengths to column width, so that
3357 tables with narrow header lines were extremely thin, which
3358 was very rarely the desired result.
3360 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
3361 as long as it's not followed by a blank line. This has been fixed at the
3364 * Muse reader (Alexander Krotov):
3366 + Add test for `#disable-tables` directive in Emacs mode.
3367 + Don't allow emphasis to be preceded by letter.
3368 + Add underline support in Emacs Muse mode..
3369 + Support multiline directives in Amusewiki mode
3371 * Man writer: omit internal links (#4136). That is, just print the link
3372 text without the URL.
3374 * Markdown reader: accept processing instructions as raw HTML (#4125).
3376 * Lua filters (Albert Krewinkel):
3378 + Use script to initialize the interpreter. The file `init.lua` is
3379 used to initialize the Lua interpreter which is used in Lua filters.
3380 This gives users the option to require libraries which they want to
3381 use in all of their filters, and to extend default modules.
3382 + Fix package loading for Lua 5.1. The list of package searchers is
3383 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
3384 in Lua 5.2 and later.
3385 + Refactor lua module handling. The integration with Lua's package/module
3386 system is improved: A pandoc-specific package searcher is prepended to
3387 the searchers in `package.searchers`. The modules `pandoc` and
3388 `pandoc.mediabag` can now be loaded via `require`.
3389 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
3390 function which makes using Haskell functions as package loaders much
3393 * reveal.js template: add title-slide identifier to title slide (#4120).
3394 This allows it to be styled more easily.
3396 * LaTeX template: Added support for `pagestyle` variable (#4135,
3399 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
3405 * Add `--print-highlight-style` option. This generates a JSON version
3406 of a highlighting style, which can be saved as a `.theme` file, modified,
3407 and used with `--highlight-style` (#4106, #4096).
3409 * Add `--strip-empty-paragraphs` option. This works for any input format.
3410 It is primarily intended for use with docx and odt documents where
3411 empty paragraphs have been used for inter-paragraph spaces.
3413 * Support `--webtex` for `gfm` output.
3415 * Recognize `.muse` file extension.
3417 * Support beamer `\alert` in LaTeX reader. Closes #4091.
3419 * Docx reader: don't strip out empty paragraphs (#2252).
3420 Users who have a conversion pipeline from docx may want to consider adding
3421 `--strip-empty-paragraphs` to the command line.
3423 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
3425 * Muse reader (Alexander Krotov):
3427 + Parse markup in definition list terms.
3428 + Allow definition to end with EOF.
3429 + Make code blocks round trip.
3430 + Drop common space prefix from list items.
3431 + Add partial round trip test.
3432 + Don't interpret XML entities.
3434 + Parse `~~` as non-breaking space in Emacs mode.
3435 + Correctly remove indentation from notes. Exactly one space is
3436 required and considered to be part of the marker.
3437 + Allow list items to be empty.
3438 + Add ordered list test.
3439 + Add more multiline definition tests.
3440 + Don't allow blockquotes within lists.
3441 + Fix reading of multiline definitions.
3442 + Add inline `<literal>` support.
3443 + Concatenate inlines of the same type
3445 * Docx writer: allow empty paragraphs (#2252).
3447 * CommonMark/gfm writer:
3449 + Use raw html for native divs/spans (#4113). This allows a pandoc
3450 markdown native div or span to be rendered in gfm using raw html tags.
3451 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
3452 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
3454 * Muse writer (Alexander Krotov):
3456 + Test that inline math conversion result is normalized.
3457 Without normalization this test produced
3458 `<em>a</em><em>b</em><em>c</em>`.
3459 + Improve inline list normalization and move to writer.
3460 + Escape hash symbol.
3461 + Escape `----` to avoid accidental horizontal rules.
3462 + Escape only `</code>` inside code tag.
3463 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
3467 + Allow specifying just width or height for image size.
3468 Previously both needed to be specified (unless the image was
3469 being resized to be smaller than its original size).
3470 If height but not width is specified, we now set width to
3471 textwidth. If width but not height is specified, we now set
3472 height to textheight. Since we have `keepaspectratio`, this
3473 yields the desired result.
3474 + Escape `~` and `_` in code with `--listings` (#4111).
3476 * HTML writer: export `tagWithAttributes`. This is a helper allowing
3477 other writers to create single HTML tags.
3479 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
3480 converting the case as needed in LaTeX and ConTeXt writers.
3482 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
3483 so that it no longer produces empty `Para`'s as an artifact.
3485 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
3486 This gives us automatic normalization, so we don't get
3487 for example two consecutive Spaces.
3489 * Include default CSS for 'underline' class in HTML-based templates.
3491 * revealjs template: add `tex2jax` configuration for the
3492 math plugin. With the next release of reveal.js, this will
3493 fix the problem of `$`s outside of math contexts being
3494 interpreted as math delimiters (#4027).
3496 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
3498 + Add basic lua List module (#4099, #4081). The List module is
3499 automatically loaded, but not assigned to a global variable. It can be
3500 included in filters by calling `List = require 'List'`. Lists of blocks,
3501 lists of inlines, and lists of classes are now given `List` as a metatable,
3502 making working with them more convenient. E.g., it is now possible to
3503 concatenate lists of inlines using Lua's concatenation operator `..`
3504 (requires at least one of the operants to have `List` as a metatable):
3506 function Emph (emph)
3507 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
3508 return pandoc.Span(emph.content .. s)
3511 The `List` metatable is assigned to the tables which get passed to
3512 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
3513 enables the use of the resulting objects as lists.
3514 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
3515 Pandoc and Meta elements are now pushed by calling the respective
3516 constructor functions of the pandoc Lua module. This makes serialization
3517 consistent with the way blocks and inlines are pushed to lua and allows
3518 to use List methods with the `blocks` value.
3519 + Add documentation for pandoc.List in `lua-filters.md`.
3521 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
3522 `&` (but not a valid entity) following them (#4094, #4088).
3524 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
3525 when `numberLines` is used (#4103).
3527 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
3528 requiring a leading 0 on single-digit days.
3530 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
3533 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
3534 Previously we only mentioned `--latexmathml`, even if `-m` was
3537 * Changelog: fix description of lua filters in 2.0 release
3538 (Albert Krewinkel). Lua filters were initially run *after* conventional
3539 (JSON) filters. However, this was changed later to make it easier to deal
3540 with files in the mediabag. The changelog is updated to describe that
3541 feature of the 2.0 release correctly.
3543 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
3544 #4085). This reduces compile time and memory usage significantly.
3546 * `lua-filters.md`: Added tikz filter example.
3548 * Create alternative zip file for macOS binaries.
3550 * Create alternative zip file for Windows binaries.
3552 * Update INSTALL.md since we now provide zips for binaries.
3554 * Relax `http-types` dependency (Justus Sagemüller, #4084).
3556 * Add `epub.md`, `getting-started.md` to docs. These used to live in
3559 * Add `packages` target to Makefile.
3561 * Bump bounds for binary, http-types, tasty-hunit
3565 * Lua filters: preload text module (Albert Krewinkel, #4077).
3566 The `text` module is preloaded in lua. The module contains some UTF-8
3567 aware string functions, implemented in Haskell. The module is loaded on
3570 text = require 'text'
3572 s.text = text.upper(s.text)
3576 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
3577 #4071). Attribute lists are represented as associative lists in Lua. Pure
3578 associative lists are awkward to work with. A metatable is attached to
3579 attribute lists, allowing to access and use the associative list as if
3580 the attributes were stored in as normal key-value pair in table.
3581 Note that this changes the way `pairs` works on attribute lists. Instead
3582 of producing integer keys and two-element tables, the resulting iterator
3583 function now returns the key and value of those pairs. Use `ipairs` to
3584 get the old behavior. Warning: the new iteration mechanism only works if
3585 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
3587 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
3588 This fixes a bug where pandoc would stop parsing a URI with an
3589 empty attribute: for example, `&a=&b=` wolud stop at `a`.
3590 (The uri parser tries to guess which punctuation characters
3591 are part of the URI and which might be punctuation after it.)
3593 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
3595 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
3597 + Reimplemented `isEnabled` function from `Options.hs` to accept both
3598 `ReaderOptions` and `WriterOptions`.
3599 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
3601 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
3602 behavior for `muse`. New `Ext_amuse` constructor for
3603 `Extension`. Note: this is switched on by default; for
3604 Emacs behavior, use `muse-amuse`.
3606 * Muse reader (Alexander Krotov):
3608 + Count only one space as part of list item marker.
3609 + Produce SoftBreaks on newlines. Now wrapping can be preserved
3610 with `--wrap=preserve`.
3611 + Add Text::Amuse footnote extensions. Footnote end is indicated by
3612 indentation, so footnotes can be placed anywhere in the text,
3613 not just at the end of it.
3614 + Accept Emacs Muse definition lists when `-amuse`.
3615 Emacs Muse does not require indentation.
3619 + Ensure we don't produce level 0 headers (#4076), even for chapter
3620 sections in epubs. This causes problems because writers aren't set
3622 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
3623 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
3624 `markdown` or `html` `+tex_math_single_backslash`.
3625 + Parse div with class `line-block` as LineBlock.
3626 + Don't fail with block-level content in figcaption (Mauro Bieg, #4183).
3628 * MANUAL: clarify that math extensions work with HTML.
3629 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
3630 will work with HTML as well as Markdown.
3632 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
3635 * RST reader: better support for 'container' directive (#4066).
3636 Create a div, incorporate name attribute and classes.
3640 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
3641 `rr`. We now expand it like a macro.
3642 + Allow optional args for parbox (#4056).
3643 + Allow optional arguments on `\footnote` (#4062).
3645 * EPUB writer: Fixed path for cover image (#4069). It was previously
3646 `media/media/imagename`, and should have been `media/imagename`.
3648 * Markdown writer: fix bug with doubled footnotes in grid tables
3651 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
3652 Otherwise we seem to get an error; biblatex wants polyglossia
3653 language to be defined.
3655 * Added examples to lua filters documentation.
3660 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
3661 `--mimetex`, `--jsmath`.
3663 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
3664 leading to invalid XML in default JATS output with pandoc-citeproc.
3666 * `lua-filters.md`: use real-world man page filter as example.
3668 * Add lua filter functions `walk_inline` and `walk_block`
3669 in the pandoc module, to apply filters inside particular
3670 inline and block elements.
3672 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
3673 into new internal module `Text.Pandoc.Lua.Filter`.
3677 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
3678 This brings our handling of them into alignment with CommonMark's.
3679 + Fix YAML metadata with "chomp" (`|-`). Previously if a
3680 YAML block under `|-` contained a blank line, pandoc would
3681 not parse it as metadata.
3683 * Removed `etc.` from abbreviations file. Often `etc.` ends a
3684 sentence, and we want the period to be treated as a
3685 sentence-ending period.
3687 * Fix regression with `--metadata` (#4054). Values specified with
3688 `--metadata` should replace a metadata value set in the document
3689 itself, rather than creating a list including a new value.
3693 + Fix EPUB OCF structure. #3720 had been improperly implemented.
3694 + Fix modified paths for raw HTML tags (src, poster, etc.)
3695 (#4050, #4055). This had not been updated for the new EPUB
3696 container layout, with a separate text/ subdirectory.
3697 + Fix image paths with empty `--epub-subdirectory`.
3699 * Miscellaneous code cleanup (Alexander Krotov).
3701 * Use pandoc-types 1.17.3, which adds `Walkable` instances
3702 for `[Block] Block` and `[Inline] Inline`.
3704 * Remove obsolete `stack.full.yaml` (#4052).
3706 * Change to using pandoc-citeproc 0.12.1 in binary packages.
3708 * Consolidate math output method documentation (#4049, Mauro Bieg).
3710 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
3712 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
3713 Haskell filters. This is easier and faster.
3715 * Improved `INSTALL.md`.
3717 * Update commands to extract deb archive on Linux (#4043, Salim B).
3722 * Improved fix to #3989 (parsing of HTML tags containing
3723 `>` in an attribute or comment). The previous fix (in 2.0.1) only
3724 worked in certain cases.
3726 * FB2 writer (Alexander Krotov):
3728 + Add `unrecognised` genre to `<title-info>`
3729 (Alexander Krotov). XML schema requires at least one genre.
3730 + Remove `<annotation>` from `<body>`.
3732 * CommonMark writer: fix strikethrough for `gfm` (#4038).
3734 * Use texmath 0.10, which adds support for a wider range of
3735 symbols and fixes default column alignments in MathML
3738 * Highlighting fixes, using skylighting 0.4.3.2:
3741 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
3742 + Ensure that code lines don't get duplicate identifiers (#4031).
3743 The line identifiers are built using the code block's identifier
3744 as a prefix. If the code block has null identifier, we use
3747 * Added a few abbreviations to `data/abbreviations`,
3748 and sorted the list (#3984, Wandmalfarbe).
3750 * Improved support for columns in HTML writer (#4028).
3752 + Remove `width` attribute from the `div`.
3753 + Remove space between `<div class="column">` elements,
3754 since this prevents columns whose widths sum to 100%
3755 (the space takes up space).
3756 + Move as much as possible of the CSS to the template.
3757 + Ensure that all the HTML-based templates (including epub)
3758 contain the CSS for columns.
3759 + Columns default to 50% width unless they are given a width
3760 attribute. So if you want two equal-width columns, you
3761 can use a div with class `column` and no `width` attribute.
3763 * SelfContained: use `base64` for css links with media attribute (#4026).
3764 This fixes `--self-contained` with S5.
3766 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
3768 * Issue INFO, not WARNING, when a .sty file cannot be
3769 read in LaTeX reader. It is normally not an issue requiring
3770 a fix from the user if .sty files are not found.
3772 * INSTALL.md: MacOS instructions needed xar -f (adam234).
3776 + Clarify that --setext-headers doesn't affect gfm output (#4035).
3777 + Clarify what is needed to open and close a div in `fenced_divs`
3778 (#4039, Tristano Ajmone).
3779 + Removed reference to `default.beamer` in docs (#4024).
3780 Also added mention of other templates affecting PDF output
3781 with different settings.
3785 * Fixed regression in parsing of HTML comments in markdown and other
3786 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
3787 The parser stopped at the first `>` character, even if it wasn't
3788 the end of the comment.
3790 * Creole reader (Sascha Wilde):
3792 + Fix some minor typos and formatting.
3793 + Add additional test on nowiki-block after para.
3794 + Fix lists with trailing white space.
3796 * LaTeX reader: handle `%` comment right after command.
3797 For example, `\emph%`.
3799 * Markdown reader: make sure fenced div closers work in lists.
3800 Previously the following failed:
3807 and you needed a blank line before the closing `:::`.
3809 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
3810 enabled, Divs will be rendered as fenced divs.
3812 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
3815 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
3816 Note: this change may require some changes in CSS rules.
3817 `footnoteRef` has become `footnote-ref`, `titleslide` has
3818 become `title-slide`, and `footnoteBack` has become `footnote-back`.
3820 * JATS writer: Properly pass through author metadata (#4020).
3822 * FB2 writer (Alexander Krotov):
3824 + Write blocks outside of `<p>` in definitions.
3825 + Make bullet lists consistent with ordered lists, repeating
3826 the marker for the outer list rather than indenting sublists,
3827 since indentation does not work in readers.
3828 + Add new style FB2 tests.
3830 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
3831 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
3834 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
3836 * Fix broken reference links in manual (Andrew Dunning, #4014)
3838 * Fixed example of slide columns structure in changelog (#4015).
3839 Also documented this feature in MANUAL.txt.
3846 + Fixed filepaths for nonstandard epub-subdirectory values.
3847 + Ensure that epub2 is recognized as a non-text format,
3848 so that a template is used.
3849 + Don't include "prefix" attribute for ibooks for epub2.
3850 It doesn't validate.
3851 + Fix stylesheet paths; previously we had an incorrect
3852 stylesheet path for the cover page and nav page.
3856 + Insert space when needed in macro expansion (#4007).
3857 Sometimes we need to insert a space after a control sequence
3858 to prevent it merging with a following letter.
3859 + Allow unbraced arguments for macros (#4007).
3860 + Allow body of macro definition to be unbraced (#4007).
3862 * Linux package build: ensure that pandoc-citeproc is statically linked.
3864 * trypandoc: add native, ms.
3870 * New output format `ms` (groff ms). Complete support, including
3871 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
3872 texmath's new eqn writer to convert math to eqn format, so a ms file
3873 produced with this writer should be processed with `groff -ms -e` if
3876 * New output format `jats` (Journal Article Tag Suite). This is an XML
3877 format used in archiving and publishing articles. Note that a
3878 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
3879 unless a stylesheet is specified using `--css`.
3881 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
3882 This uses bindings to GitHub's fork of cmark, so it should parse
3883 gfm exactly as GitHub does (excepting certain postprocessing
3884 steps, involving notifications, emojis, etc.). `markdown_github`
3885 has been deprecated in favor of `gfm`.
3887 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
3889 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
3890 This uses bindings to GitHub's fork of cmark. `markdown_github`
3891 has been deprecated in favor of `gfm`.
3893 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
3895 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
3897 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
3898 Note that there is a new data file, `data/vimwiki.css`, which can
3899 be used to display the HTML produced by this reader and
3900 pandoc's HTML writer in the style of vimwiki's own HTML
3903 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
3905 * New syntax for Divs, with `fenced_divs` extension enabled by
3906 default (#168). This gives an attractive, plain-text way to create
3907 containers for block-level content.
3909 * Added new syntax for including raw content in any output format,
3910 enabled by the `raw_attribute` extension (which is on by default
3911 for `markdown` and `multimarkdown`). The syntax is the same as
3912 for fenced code blocks or code inlines, only with `{=FORMAT}` for
3913 attributes, where `FORMAT` is the name of the output format
3914 (e.g., `ms`, `html`).
3916 * Implement multicolumn support for slide formats (#1710).
3917 The structure expected is:
3919 :::::::::::::: {.columns}
3920 ::: {.column width="40%"}
3923 ::: {.column width="60%"}
3928 Support has been added for beamer and all HTML slide formats.
3930 * Allows line comments in templates, beginning with `$--` (#3806).
3931 (Requires doctemplates 0.2.1.)
3933 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
3934 (Stefan Dresselhaus, #3663, #2097).
3936 * Add `--log` option to save log messages in JSON format to a file (#3392).
3938 * Add `--request-header` option, to set request headers when pandoc
3939 makes HTTP requests to fetch external resources. For example:
3940 `--request-header User-Agent:blah`.
3942 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
3943 option works like `--filter` but takes pathnames of special lua filters
3944 and uses the lua interpreter baked into pandoc, so that no external
3945 interpreter is needed. Note that lua filters are all applied before
3946 regular filters, regardless of their position on the command line.
3947 For documentation of lua filters, see `doc/lua-filters.md`.
3949 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
3950 This contains a JSON representation of `ReaderOptions`, so filters
3953 * Support creation of pdf via groff `ms` and pdfroff.
3954 `pandoc -t ms -o output.pdf input.txt`.
3956 * Support for PDF generation via HTML and `weasyprint` or `prince`
3957 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
3959 * Added `--epub-subdirectory` option (#3720). This specifies the
3960 subdirectory in the OCF container that holds the EPUB specific content.
3961 We now put all EPUB related content in an `EPUB/` subdirectory by default
3962 (later this will be configurable).
3967 com.apple.ibooks.display-options.xml
3969 EPUB/ <<--configurable-->>
3970 fonts/ <<--static-->>
3972 media/ <<--static-->>
3975 styles/ <<--static-->>
3979 text/ <<--static-->>
3983 * Added `--resource-path=SEARCHPATH` command line option (#852).
3984 SEARCHPATH is separated by the usual character, depending on OS
3985 (: on unix, ; on windows). Default resource path is just working
3986 directory. However, the working directory must be explicitly
3987 specified if the `--resource-path` option is used.
3989 * Added `--abbreviations=FILE` option for custom abbreviations file
3990 (#256). Default abbreviations file (`data/abbreviations`) contains
3991 a list of strings that will be recognized by pandoc's
3992 Markdown parser as abbreviations. (A nonbreaking space will
3993 be inserted after the period, preventing a sentence space in
3994 formats like LaTeX.) Users can override the default by putting a file
3995 abbreviations in their user data directory (`~/.pandoc` on *nix).
3997 * Allow a theme file as argument to `--highlight-style`.
3998 Also include a sample, `default.theme`, in `data/`.
4000 * Allow `--syntax-definition` option for dynamic loading of syntax
4001 highlighting definitions (#3334).
4003 * Lists in `markdown` by default now use the CommonMark variable
4004 nesting rules (#3511). The indentation required for a block-level
4005 item to be included in a list item is no longer fixed, but is
4006 determined by the first line of the list item. To be included in
4007 the list item, a block must be indented to the level of the first
4008 non-space content after the list marker. Exception: if are 5 or more
4009 spaces after the list marker, then the content is interpreted as an
4010 indented code block, and continuation paragraphs must be indented
4011 two spaces beyond the end of the list marker. See the CommonMark
4012 spec for more details and examples.
4014 Documents that adhere to the four-space rule should, in most cases,
4015 be parsed the same way by the new rules. Here are some examples
4016 of texts that will be parsed differently:
4021 will be parsed as a list item with a sublist; under the four-space
4022 rule, it would be a list with two items.
4028 Here we have an indented code block under the list item, even though it
4029 is only indented six spaces from the margin, because it is four spaces
4030 past the point where a continuation paragraph could begin. With the
4031 four-space rule, this would be a regular paragraph rather than a code
4038 Here the code block will start with two spaces, whereas under
4039 the four-space rule, it would start with `code`. With the four-space
4040 rule, indented code under a list item always must be indented eight
4041 spaces from the margin, while the new rules require only that it
4042 be indented four spaces from the beginning of the first non-space
4043 text after the list marker (here, `a`).
4045 This change was motivated by a slew of bug reports from people
4046 who expected lists to work differently (#3125, #2367, #2575, #2210,
4047 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
4048 of CommonMark (now used by GitHub, for example). Those who
4049 prefer the old behavior can use `-f markdown+four_space_rule`.
4051 * Added `four_space_rule` extension. This triggers the old pandoc
4052 parsing rule for content nested under list items (the "four space
4055 * Added `spaced_reference_links` extension (#2602). It allows whitespace
4056 between the two parts of a reference link: e.g.
4062 This was previously enabled by default; it is now forbidden by default.
4064 * Add `space_in_atx_header` extension (#3512). This is enabled by default
4065 in pandoc and GitHub markdown but not the other flavors.
4066 This requires a space between the opening #'s and the header
4067 text in ATX headers (as CommonMark does but many other implementations
4068 do not). This is desirable to avoid falsely capturing things like
4076 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
4079 * Allow ibooks-specific metadata in epubs (#2693). You can now have
4080 the following fields in your YAML metadata, and it will be treated
4081 appropriately in the generated EPUB:
4086 specified-fonts: false
4087 ipad-orientation-lock: portrait-only
4088 iphone-orientation-lock: landscape-only
4090 scroll-axis: vertical
4096 * Reader functions no longer presuppose that CRs have been
4097 stripped from the input. (They strip CRs themselves, before
4098 parsing, to simplify the parsers.)
4100 * Added support for translations (localization) (#3559).
4101 Currently this only affects the LaTeX reader, for things
4102 like `\figurename`. Translation data files for 46 languages
4103 can be found in `data/translations`.
4105 * Make `--ascii` work with DocBook output too.
4107 * Rename `--latex-engine` to `--pdf-engine`,
4108 and `--latex-engine-opt` to `--pdf-engine-opt`.
4110 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
4111 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
4112 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
4113 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
4115 * With `--filter` R filters are now recognized, even if they are
4116 not executable (#3940, #3941, Andrie de Vries).
4118 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
4120 * Make epub an alias for epub3, not epub2.
4122 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
4123 Multiple stylesheets may be used. Stylesheets will be taken both from
4124 `--css` and from the `stylesheet` metadata field (which can contain
4125 either a file path or a list of them).
4127 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
4128 The argument was for a bridge JavaScript that used to be necessary
4129 in 2004. We have removed the script already.
4131 * `--katex` improvements. The latest version is used, and the
4132 autoload script is loaded by default.
4134 * Change MathJax CDN default since old one is shutting down (#3544).
4135 Note: The new URL requires a version number, which we'll have
4136 to update manually in subsequent pandoc releases in order to
4137 take advantage of mathjax improvements.
4139 * `--self-contained`: don't incorporate elements with `data-external="1"`
4140 (#2656). You can leave an external link as it is by adding the attribute
4141 data-external="1" to the element. Pandoc will then not try to
4142 incorporate its content when `--self-contained` is used. This is
4143 similar to a feature already supported by the EPUB writer.
4145 * Allow `--extract-media` to work with non-binary input formats
4146 (#1583, #2289). If `--extract-media` is supplied with a non-binary
4147 input format, pandoc will attempt to extract the contents of all
4148 linked images, whether in local files, data: uris, or external uris.
4149 They will be named based on the sha1 hash of the contents.
4151 * Make `papersize: a4` work regardless of the case of `a4`.
4152 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
4154 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
4156 * Underlined elements are now treated consistently by readers
4157 (#2270, hftf); they are always put in a Span with class `underline`.
4158 This allows the user to treat them differently from other emphasis,
4159 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
4162 * Improved behavior of `auto_identifiers` when there are explicit ids
4163 (#1745). Previously only autogenerated ids were added to the list
4164 of header identifiers in state, so explicit ids weren't taken
4165 into account when generating unique identifiers. Duplicated
4166 identifiers could result. This simple fix ensures that explicitly given
4167 identifiers are also taken into account.
4169 * Use `table-of-contents` for contents of toc, make `toc` a boolean
4170 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
4171 This allows you to set `toc: true` in the metadata; this
4172 previously produced strange results in some output formats.
4173 For backwards compatibility, `toc` is still set to the
4174 toc contents. But it is recommended that you update templates
4175 to use `table-of-contents` for the toc contents and `toc`
4178 * Change behavior with binary format output to stdout.
4179 Previously, for binary formats, output to stdout was disabled
4180 unless we could detect that the output was being piped (and not
4181 sent to the terminal). Unfortunately, such detection is not
4182 possible on Windows, leaving windows users no way to pipe binary
4183 output. So we have changed the behavior in the following way:
4185 + Output to stdout is allowed when it can be determined that
4186 the output is being piped (on non-Windows platforms).
4187 + If the `-o` option is not used, binary output is never sent
4188 to stdout by default; instead, an error is raised.
4189 + If `-o -` is used, binary output is sent to stdout, regardless
4190 of whether it is being piped. This works on Windows too.
4192 * Better error behavior: uses of `error` have been replaced by
4193 raising of `PandocError`, which can be trapped and handled by the
4196 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
4197 GitHub has two Markdown modes, one for long-form documents like READMEs
4198 and one for short things like issue comments. In issue comments, a line
4199 break is treated as a hard line break. In README, wikis, etc., it is
4200 treated as a space as in regular Markdown. Since pandoc is more likely to
4201 be used to convert long-form documents from GitHub Markdown,
4202 `-hard_line_breaks` is a better default.
4204 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
4206 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
4207 Previously they would be transmitted to the template without any
4208 escaping. Note that `--M title='*foo*'` yields a different result from
4214 In the latter case, we have emphasis; in the former case, just
4215 a string with literal asterisks (which will be escaped
4216 in formats, like Markdown, that require it).
4218 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
4220 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
4221 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
4222 it is valid HTML5. HTML4 is not affected. This will allow us to use
4223 custom attributes in pandoc without producing invalid HTML. (With help
4224 from Wandmalfarbe, #3817.)
4226 * Plain writer: improved super/subscript rendering. We now
4227 handle more non-digit characters for which there are
4228 sub/superscripted unicode characters. When unicode
4229 sub/superscripted characters are not available, we use
4230 `_(..)` or `^(..)` (#3518).
4232 * Docbook, JATS, TEI writers: print INFO message when omitting interior
4233 header (#3750). This only applies to section headers inside list items,
4234 e.g., which were otherwise silently omitted.
4236 * Change to `--reference-links` in Markdown writer (#3701). With
4237 `--reference-location` of `section` or `block`, pandoc will now repeat
4238 references that have been used in earlier sections. The Markdown
4239 reader has also been modified, so that *exactly* repeated references
4240 do not generate a warning, only references with the same label but
4241 different targets. The idea is that, with references after every block,
4242 one might want to repeat references sometimes.
4244 * ODT/OpenDocument writer:
4246 + Support `lang` attribute (#1667).
4247 + Added support for `--toc` (#2836). Thanks to @anayrat.
4251 + `lang` meta, see #1667 (Mauro Bieg, #3515).
4252 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
4253 + Use `Table` rather than `Table Normal` for table style (#3275).
4254 `Table Normal` is the default table style and can't be modified.
4255 + Pass through comments (#2994). We assume that comments are defined as
4256 parsed by the docx reader:
4258 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
4259 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
4260 have a comment <span class="comment-end" id="0"></span>on it.
4262 We assume also that the id attributes are unique and properly
4263 matched between comment-start and comment-end.
4264 + Bookmark improvements. Bookmark start/end now surrounds content rather
4265 than preceding it. Bookmarks generated for Div with id
4266 (jgm/pandoc-citeproc#205).
4267 + Add `keywords` metadata to docx document properties (Ian).
4269 * RST writer: support unknown interpreted text roles by
4270 parsing them as `Span` with `role` attributes (#3407). This
4271 way they can be manipulated in the AST.
4275 + Line block: Use class instead of style attribute (#1623). We now
4276 issue `<div class="line-block">` and include a default definition
4277 for `line-block` in the default templates, instead of hard-coding a
4279 + Add class `footnoteBack` to footnote back references (Timm Albers).
4280 This allows for easier CSS styling.
4281 + Render SmallCaps as span with smallcaps class (#1592), rather than
4282 using a style attribute directly. This gives the user more flexibility
4283 in styling small caps in CSS.
4284 + With reveal.js we use `data-src` instead of `src` for images for
4286 + Special-case `.stretch` class for images in reveal.js (#1291).
4287 Now in reveal.js, an image with class `stretch` in a paragraph
4288 by itself will stretch to fill the whole screen, with no
4289 caption or figure environment.
4291 * Added warnings for non-rendered blocks to writers.
4293 * Writers now raise an error on template failure.
4295 * When creating a PDF via LaTeX, warn if the font is missing some
4298 * Remove initial check for PDF-creating program (#3819).
4299 Instead, just try running it and raise the exception if it
4300 isn't found at that point. This improves things for users of Cygwin
4301 on Windows, where the executable won't be found by `findExecutable`
4302 unless `.exe` is added. The same exception is raised as before, but
4305 * Readers issue warning for duplicate header identifiers (#1745).
4306 Autogenerated header identifiers are given suffixes so as not to clash
4307 with previously used header identifiers. But they may still coincide with
4308 an explicit identifier that is given for a header later in the document,
4309 or with an identifier on a div, span, link, or image. We now issue
4310 a warning in this case, so users can supply an explicit identifier.
4312 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
4313 and `raw_html` extensions.
4317 + Don't allow backslash + newline to affect block structure (#3730).
4318 Note that as a result of this change, the following, which formerly
4319 produced a header with two lines separated by a line break, will
4320 now produce a header followed by a paragraph:
4325 This may affect some existing documents that relied on
4326 this undocumented and unintended behavior. This change makes pandoc
4327 more consistent with other Markdown implementations, and with itself
4328 (since the two-space version of a line break doesn't work inside ATX
4329 headers, and neither version works inside Setext headers).
4331 + A space between the opening # and the header is now required for
4332 pandoc and GitHub markdown (but not the other flavors). Disable
4333 the `space_in_atx_header` extension (#3512) to restore the
4337 * Org reader (Albert Krewinkel, unless noted):
4339 + Support `table.el` tables (#3314).
4340 + Support macros (#3401).
4341 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
4342 Recognized include types are `example`, `export`, `src`, and
4343 normal org file inclusion. Advanced features like line numbers
4344 and level selection are not implemented yet.
4345 + Interpret more meta value as inlines. The values of the following
4346 meta variables are now interpreted using org-markup instead of
4347 treating them as pure strings: `keywords` (comma-separated list of
4348 inlines), `subtitle` (inline values), `nocite` (inline values, can
4350 + Support `\n` export option (#3940). This turns all newlines in the
4351 text into hard linebreaks.
4355 + Improved admonition support (#223). We no longer add an
4356 `admonition` class, we just use the class for the type of admonition,
4357 `note` for example. We put the word corresponding to the label in
4358 a paragraph inside a `Div` at the beginning of the admonition with
4359 class `admonition-title`. This is about as close as we can get to
4361 + Initial support of `.. table` directive. This allows adding captions
4363 + Support `.. line-block` directive. This is deprecated but may still
4364 be in older documents.
4365 + Support scale and align attributes of images (#2662).
4366 + Implemented implicit internal header links (#3475).
4367 + Support RST-style citations (#853). The citations appear at the end
4368 of the document as a definition list in a special div with id
4369 `citations`. Citations link to the definitions.
4370 + Recurse into bodies of unknown directives (#3432).
4371 In most cases it's better to preserve the content than
4372 to emit it. This isn't guaranteed to have good results;
4373 it will fail spectacularly for unknown raw or verbatim directives.
4374 + Handle chained link definitions (#262). For example,
4377 .. _goodbye: example.com
4379 Here both `hello` and `goodbye` should link to `example.com`.
4380 + Support anchors (#262). E.g.
4388 This is supported by putting "paragraph" in a `Div` with id `hello`.
4389 + Support `:widths:` attribute for table directive.
4390 + Implement csv-table directive (#3533). Most attributes are supported,
4391 including `:file:` and `:url:`.
4392 + Support unknown interpreted text roles by parsing them as Span
4393 with "role" attributes (#3407). This way they can be manipulated in
4396 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
4400 + Implemented `\graphicspath` (#736).
4401 + Properly handle column prefixes/suffixes. For example, in
4402 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
4403 each cell will be interpreted as if it has a `$`
4404 before its content and a `$` after (math mode).
4405 + Handle komascript `\dedication` (#1845). It now adds a
4406 `dedication` field to metadata. It is up to the user to supply
4407 a template that uses this variable.
4408 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
4409 `sf`, `bf` (#3488). Spans with a class are used when there is
4411 + Expand `\newenvironment` macros (#987).
4412 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
4413 + Better support for subfigure package (#3577).
4414 A figure with two subfigures turns into two pandoc
4415 figures; the subcaptions are used and the main caption
4416 ignored, unless there are no subcaptions.
4417 + Add support for \vdots (Marc Schreiber, #3607).
4418 + Add basic support for hyphenat package (Marc Schreiber, #3603).
4419 + Add basic `\textcolor` support (Marc Schreiber).
4420 + Add support for `tabularx` environment (Marc Schreiber, #3632).
4421 + Better handling of comments inside math environments (#3113).
4422 This solves a problem with commented out `\end{eqnarray}` inside
4423 an eqnarray (among other things).
4424 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
4425 is selected (#3692). Otherwise skip with a warning. This is better
4426 than trying to parse it as text!
4427 + Add `\colorbox` support (Marc Schreiber).
4428 + Set identifiers on Spans used for `\label`.
4429 + Have `\setmainlanguage` set `lang` in metadata.
4430 + Support etoolbox's `\ifstrequal`.
4431 + Support `plainbreak`, `fancybreak` et al from the memoir class
4432 (bucklereed, #3833).
4433 + Support `\let`. Also, fix regular macros so they're expanded at the
4434 point of use, and NOT also the point of definition. `\let` macros,
4435 by contrast, are expanded at the point of definition. Added an
4436 `ExpansionPoint` field to `Macro` to track this difference.
4437 + Support simple `\def` macros. Note that we still don't support
4438 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
4439 + Support \chaptername, \partname, \abstractname, etc. (#3559,
4441 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
4442 attributes, so they can be handled in filters (Marc Schreiber, #3639)
4443 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
4444 #3589). Acronyms are not resolved by the reader, but acronym and
4445 glossary information is put into attributes on Spans so that they
4446 can be processed in filters.
4447 + Use `Link` instead of `Span` for `\ref`. This makes more sense
4448 semantically and avoids unnecessary `Span [Link]` nestings when
4449 references are resolved.
4450 + Rudimentary support for `\hyperlink`.
4451 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
4452 + Support `\lq`, `\rq`.
4453 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
4455 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
4456 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
4457 + Support `\k` ogonek accent.
4458 + Improve handling of accents. Handle ogonek, and fall back correctly
4459 with forms like `\"{}`.
4460 + Better support for ogonek accents.
4461 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
4462 + Support for `xspace` (Marc Schreiber, #3797).
4463 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
4465 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
4466 level 0 headers, and parts as level -1 headers. After parsing, we
4467 check for the lowest header level, and if it's less than 1 we bump
4468 everything up so that 1 is the lowest header level. So `\part` will
4469 always produce a header; no command-line options are needed.
4470 + Add block version of `\textcolor` (Marc Schreiber).
4471 + `\textcolor` works as inline and block command (Marc Schreiber).
4472 + `\textcolor` will be parse as span at the beginning of a paragraph
4474 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
4475 + Improved handling of include files in LaTeX reader (#3971).
4476 Previously `\include` wouldn't work if the included file
4477 contained, e.g., a begin without a matching end.
4478 + Support `\expandafter` (#3983).
4479 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
4480 as a synonym for `\newcommand`.
4481 + Handle `\lettrine` (Mauro Bieg).
4483 * Math improvements due to updates in texmath:
4485 + Improved handling of accents and upper/lower delimiters.
4486 + Support for output in GNU eqn format (used with *roff).
4487 + Allow `\boldsymbol` + a token without braces, and similarly
4488 with other styling commands.
4489 + Improve parsing of `\mathop` to allow multi-character operator names.
4490 + Add thin space after math operators when "faking it with
4493 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
4494 instance for `a -> [a]` (pandoc-types). Note that behavior
4495 will be slightly different, since `bottomUp`'s treatment of
4496 a function `[a] -> [a]` is to apply it to each sublist of a
4497 list, while walk applies it only to maximal sublists.
4498 Usually the latter behavior is what is wanted, and the
4499 former can be simulated when needed. But there may be
4500 existing filters that need to be rewritten in light of the
4501 new behavior. Performance should be improved.
4503 * There are some changes to syntax highlighting due to revisions
4504 in the `skylighting` library:
4506 + Support for `powershell` has been added, and many syntax
4507 definitions have been updated.
4508 + Background colors have been added to the `kate` style.
4509 + The way highlighted code blocks are formatted in HTML has
4510 been changed (David Baynard), in ways that may require
4511 changes in hard-coded CSS affecting highlighting.
4512 (If you haven't included hard-coded highlighting CSS in
4513 your template, you needn't change anything.)
4518 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
4519 This contains definitions of the `PandocMonad` typeclass, the
4520 `PandocIO` and `PandocPure` monads, and associated functions.
4522 * Changed types of all writers and readers.
4524 + We now use `Text` instead of `String` in the interface (#3731).
4525 (We have not yet changed the internals of most readers to work
4526 with `Text`, but making this change in the API now opens up a
4527 path to doing that.)
4528 + The result is now of form `m a` with constraint `PandocMonad m`.
4529 Readers and writers can be combined to form monadic values which
4530 can be run using either `runIO` or `runPure`. If `runIO` is used,
4531 then both readers and writers will be able to do IO when needed
4532 (for include files, for example); if `runPure` is used,
4533 then the functions are pure and will not touch IO.
4534 + Where previously you used
4535 `writeRST def (readMarkdown def "[foo](url)")`, now you
4537 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
4539 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
4540 contains reader helper functions formerly defined in the
4541 top-level `Text.Pandoc` module.
4543 + Changed `StringReader` -> `TextReader`.
4544 + `getReader` now returns a pair of a reader and
4545 `Extensions`, instead of building the extensions into the
4546 reader (#3659). The calling code must explicitly set
4547 `readerExtensions` using the `Extensions` returned. The
4548 point of the change is to make it possible for the calling
4549 code to determine what extensions are being used.
4551 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
4552 This contains writer helper functions formerly defined in the
4553 top-level `Text.Pandoc` module.
4555 + Changed `StringWriter` -> `TextWriter`.
4556 + `getWriter` now returns a pair of a reader and
4557 `Extensions`, instead of building the extensions into the
4558 reader (#3659). The calling code must explicitly set
4559 `readerExtensions` using the `Extensions` returned. The
4560 point of the change is to make it possible for the calling
4561 code to determine what extensions are being used.
4563 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
4566 * New module `Text.Pandoc.App`. This abstracts out the functionality
4567 of the command line program (`convertWithOpts`), so it can be reproduced
4568 e.g. in a desktop or web application. Instead of exiting, we throw errors
4569 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
4570 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
4571 The module also exports some utility functions for parsing options
4572 and running filters.
4574 * New module `Text.Pandoc.Logging` (exported module) (#3392).
4575 This now contains the `Verbosity` definition previously in
4576 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
4577 eventually be used instead of raw strings for warnings. This will enable
4578 us, among other things, to provide machine-readable warnings if desired.
4579 Include ToJSON instance and showLogMessage. This gives us the possibility
4580 of both machine-readable and human-readable output for log messages.
4582 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
4584 * New module `Text.Pandoc.Translations`, exporting `Term`,
4585 `Translations`, `readTranslations`.
4587 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
4588 `TokType`, `Line`, `Column`.
4590 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
4592 * Expose some previously private modules (#3260). These are often
4593 helpful to people writing their own reader or writer modules:
4595 + `Text.Pandoc.Writers.Shared`
4596 + `Text.Pandoc.Parsing`
4597 + `Text.Pandoc.Asciify`
4598 + `Text.Pandoc.Emoji`
4599 + `Text.Pandoc.ImageSize`
4600 + `Text.Pandoc.Highlighting`
4602 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
4603 Extension parsing and processing functions were defined in the top-level
4604 `Text.Pandoc` module. These functions are moved to the Extensions
4605 submodule as to enable reuse in other submodules.
4607 * Add `Ext_raw_attribute` constructor for `Extension`.
4609 * Add `Ext_fenced_divs` constructor for `Extension'.
4611 * Add `Ext_four_space_rule` constructor in `Extension`.
4613 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
4615 * Add `Monoid` instance for `Extensions`.
4617 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
4619 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
4621 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
4623 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
4625 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
4627 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
4629 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
4631 * Export `setVerbosity` from `Text.Pandoc`.
4633 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
4635 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
4637 * `Text.Pandoc.UTF8`:
4639 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
4640 Define `toString`, `toStringLazy` in terms of them.
4641 + Add new functions parameterized on `Newline`: `writeFileWith`,
4642 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
4644 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
4646 * `Text.Pandoc.Highlighting`:
4648 + `highlighting` now returns an Either rather than Maybe.
4649 This allows us to display error information returned by the skylighting
4650 library. Display a warning if the highlighting library throws an error.
4651 + Add parameter for `SyntaxMap` to `highlight`.
4653 * `Text.Pandoc.Writers.Math`:
4655 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
4656 we only need to update these in one place.
4658 * `Text.Pandoc.SelfContained`:
4660 + Removed `WriterOptions` parameter from `makeSelfContained`.
4661 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
4662 the need to pass MediaBag around and improves exceptions. It also
4663 opens up the possibility of using makeSelfContained purely.
4664 + Export `makeDataURI`.
4666 * `Text.Pandoc.ImageSize`:
4668 + Export `lengthToDim`, new function `scaleDimension`.
4669 + Export `inEm` from ImageSize (#3450).
4670 + Change `showFl` and `show` instance for `Dimension` so
4671 extra decimal places are omitted.
4672 + Added `Em` as a constructor of `Dimension`.
4673 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
4675 * `Text.Pandoc.Templates`:
4677 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
4678 and raises a proper `PandocTemplateError` if there are problems, rather
4679 than failing with uncatchable `error`.
4680 + Change signature of `getDefaultTemplate`. Now it runs in any instance
4681 of `PandocMonad`, and returns a `String` rather than an `Either` value.
4682 And it no longer takes a `datadir` parameter, since this can be
4683 retrieved from `CommonState`.
4685 * `Text.Pandoc.Options`:
4687 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
4688 The EPUB writer now takes its EPUB subdirectory from this option.
4689 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
4690 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
4691 + Add `writerSyntaxMap` to `WriterOptions`.
4692 + Removed `writerEpubStylesheet` from `WriterOptions`.
4693 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
4694 in `CommonState` in `PandocMonad` instances. (And thus it can be used
4696 + Changed `writerEpubMetadata` to a `Maybe String`.
4697 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
4698 the `latex_macros` reader extension.
4699 + FromJSON/ToJSON instances for `ReaderOptions`.
4700 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
4701 one string (for the KaTeX base URL), rather than two.
4702 + Removed `writerSourceURL` from `WriterOptions`. We now use
4703 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
4705 * `Text.Pandoc.Shared`:
4707 + `tabFilter` now takes a `Text`, not `String`.
4708 + `openURL`: Changed type from an Either. Now it will just raise
4709 an exception to be trapped later.
4710 + Remove `normalizeSpaces` (#1530).
4711 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
4712 + Export a new function `crFilter`.
4713 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
4714 + Provide custom `isURI` that rejects unknown schemes.
4715 (Albert Krewinkel, #2713). We also export the set of known
4716 `schemes`. The new function replaces the function of the same name
4717 from `Network.URI`, as the latter did not check whether a scheme is
4718 well-known. All official IANA schemes (as of 2017-05-22) are
4719 included in the set of known schemes. The four non-official schemes
4720 `doi`, `isbn`, `javascript`, and `pmid` are kept.
4722 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
4723 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
4724 where they are defined in terms of `PandocMonad`
4725 primitives and have different signatures.
4726 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
4727 + Add `underlineSpan`.
4729 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
4731 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
4732 With the new API one can simply use `getLog` after running
4735 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
4736 and `rawLaTeXBlock`. (Both now return a `String`, and they are
4737 polymorphic in state.)
4740 [bug fixes and under-the-hood improvements]
4742 * TEI writer: Added identifiers on `<div>` elements.
4744 * DokuWiki reader: Better handling for code block in list item (#3824).
4746 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
4748 * ZimWiki writer: Removed internal formatting from note and table cells,
4749 because ZimWiki does not support it (Alex Ivkin, #3446).
4753 + Updated list of syntax highlighting languages (#3461).
4754 Now `r` gets you `<source>` rather than `<code>` (among others).
4755 + Add display attribute on `<math>` tags (#3452). This allows display
4756 math to be rendered properly.
4757 + Remove newline before `</ref>` (#2652).
4758 + Don't softbreak lines inside list items (#3531).
4762 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
4763 + Add unit tests (Alexander Krotov).
4764 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
4765 + Do not strip `#` from Org anchor links (Alexander Krotov).
4767 * CommonMark writer:
4769 + Avoid excess blank lines at end of output.
4770 + Prefer pipe tables to HTML tables even if it means losing relative
4771 column width information (#3734).
4772 + Support table, strikethrough extensions, when enabled (as with gfm).
4773 Note that we bypass the commonmark writer from cmark and construct our
4774 own pipe tables, with better results.
4775 + Properly support `--wrap=none`.
4776 + Use smallcaps class for `SmallCaps` (#1592).
4777 + Omit "fig:" prefix in image titles. This is used internally to
4778 indicate internal figures.
4782 + Properly handle table captions.
4783 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
4784 + Implemented `+/-smart` and improved escaping with `+smart`.
4785 + Add empty comments when needed to avoid including a blockquote
4786 in the indented content of a preceding block (#3675).
4787 + Improve grid table output, fix bug with empty rows (#3516).
4788 Uses the new `gridTable` in Writers.Shared, which is here
4789 improved to better handle 0-width cells.
4790 + Remove space at beginning/end of RST code span (#3496). Otherwise
4791 we get invalid RST. There seems to be no way to escape the space.
4792 + Add header anchors when header has non-standard id (#3937).
4793 + Correctly handle inline code containing backticks, using a `:literal:`
4795 + Don't backslash-escape word-internal punctuation (#3978).
4799 + Don't include variables in metadata blocks. Previously variables set
4800 on the command line were included in e.g. YAML metadata, contrary to
4801 documentation and intentions.
4802 + Improved escaping with `+smart`.
4803 + Fixed grid tables embedded in grid tables (#2834).
4804 + Use span with class 'smallcaps' for SmallCaps, instead of a style
4805 attribute as before (#1592).
4806 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
4807 extension is enabled (#3454). Otherwise in a document starting with
4808 a literal `%` the first line is wrongly interpreted as a title.
4809 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
4810 properly escape things that would otherwise start ordered lists,
4816 + Better handling of tables with empty columns (#3337). We now
4817 calculate the number of columns based on the longest row (or the
4818 length of aligns or widths).
4819 + Escape unordered list markers at beginning of paragraph (#3497), to
4820 avoid false interpretation as a list.
4821 + Escape `|` appropriately.
4822 + Ensure space before list at top level (#3487).
4823 + Avoid spurious blanklines at end of document after tables and list,
4825 + Fixed bugs in simple/multiline list output (#3384).
4826 Previously we got overlong lists with `--wrap=none`. This is fixed.
4827 Previously a multiline list could become a simple list (and would
4828 always become one with `--wrap=none`).
4829 + Don't emit a simple table if `simple_tables` disabled (#3529).
4830 + Case-insensitive reference links (David A Roberts, #3616).
4831 Ensure that we do not generate reference links whose labels differ only
4832 by case. Also allow implicit reference links when the link
4833 text and label are identical up to case.
4834 + Put space before reference link definitions (Mauro Bieg, #3630).
4835 + Better escaping for links (David A. Roberts, #3619). Previously the
4836 Markdown writer would sometimes create links where there were none
4837 in the source. This is now avoided by selectively escaping bracket
4838 characters when they occur in a place where a link might be created.
4839 + Added missing `\n` (David A. Roberts, #3647).
4840 + Fixed duplicated reference links with `--reference-links`
4841 and `--reference-location=section` (#3674). Also ensure that there
4842 are no empty link references `[]`.
4843 + Avoid inline surround-marking with empty content (#3715).
4844 E.g. we don't want `<strong></strong>` to become `****`.
4845 Similarly for emphasis, super/subscript, strikeout.
4846 + Don't allow soft break in header (#3736).
4847 + Make sure `plain`, `markdown_github`, etc. work for raw.
4848 Previously only `markdown` worked. Note: currently a raw block labeled
4849 `markdown_github` will be printed for any `markdown` format.
4850 + Ensure that `+` and `-` are escaped properly so they don't cause
4851 spurious lists (#3773). Previously they were only
4852 if succeeded by a space, not if they were at end of line.
4853 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
4854 even if the table has relative width information (#3734).
4855 + Markdown writer: don't crash on `Str ""`.
4856 + Make `Span` with null attribute transparent. That is, we don't use
4857 brackets or `<span>` tags to mark spans when there are no attributes;
4858 we simply output the contents.
4859 + Escape pipe characters when `pipe_tables` enabled (#3887).
4860 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
4861 we backslash escape these. Otherwise we use entities as before.
4862 + When writing plain, don't use ` ` to separate list and indented
4863 code. There's no need for it in this context, since this isn't to be
4864 interpreted using Markdown rules.
4865 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
4866 HTML links containing classes originally now preserve them when using
4867 JavaScript email obfuscation.
4868 + Render `SmallCaps` as a native span when `native_spans` are enabled.
4869 + Always write attributes with `bracketed_spans` (d-dorazio).
4873 + Fix handling of nested font commands (#3568). Previously pandoc emitted
4874 incorrect markup for bold + italic, for example, or bold + code.
4875 + Avoid error for definition lists with no definitions (#3832).
4879 + Fix internal links with `writerIdentifierPrefix opt`
4880 (#3397, Mauro Bieg).
4884 + Don't include bookmarks on headers unless non-null id (#3476).
4885 + Support 9 levels of headers (#1642).
4886 + Allow 9 list levels (#3519).
4887 + Don't take `distArchive` from datadir (#3322). The docx writer takes
4888 components from the distribution's version of `reference.docx` when it
4889 can't find them in a user's custom `reference.docx`. Previously, we
4890 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
4891 to be used as the distribution's reference.docx. This led to a
4892 bizarre situation where pandoc would produce a good docx using
4893 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
4894 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
4895 + Fixed handling of soft hyphen (0173) (#3691).
4896 + Better handling of keywords (#3719).
4897 + Cleaner code for handling dir and style attributes for `Div`.
4898 + Use `Set` for dynamic styles to avoid duplicates.
4899 + Removed redundant element from data/docx/word/numbering.xml.
4900 The elements we need are generated when the document is
4901 compiled; this didn't do anything.
4902 + Activate `evenAndOddHeaders` from reference docx (#3901,
4903 Augustín Martín Barbero).
4905 * ODT/OpenDocument writer:
4907 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
4908 + Use more widely available bullet characters (#1400). The old
4909 characters weren't available in some font sets. These seem to work
4910 well on Windows and Linux versions of LibreOffice.
4911 + Wider labels for lists (#2421). This avoids overly narrow labels for
4912 ordered lists with `()` delimiters. However, arguably it creates
4913 overly wide labels for bullets. Also, lists now start flush with
4914 the margin, rather than indented.
4915 + Fixed dropped elements in some ordered lists (#2434).
4919 + Don't render `RawBlock` as code.
4920 + Don't fail with an error on interior headers (e.g. in list) (#3750).
4921 Instead, omit them with an INFO message.
4922 + Add support for "lang" metadata (Alexander Krotov, #3625).
4923 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
4924 produced one paragraph with `<empty-line/>` elements, which are not
4925 allowed inside `<p>` according to FB2 schema.
4926 + Replace `concatMap` with `cMap` (Alexander Krotov).
4927 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
4932 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
4933 + Render raw inline environments when `--mathjax` used (#3816).
4934 We previously did this only with raw blocks, on the assumption
4935 that math environments would always be raw blocks. This has changed
4936 since we now parse them as inline environments.
4937 + Ensure we don't get two style attributes for width and height.
4938 + Report when not rendering raw inline/block.
4939 + Issue warning if no title specified and template used (#3473).
4940 + Info message if `lang` is unspecified (#3486).
4941 + Removed unused parameter in `dimensionsToAttributeList`.
4942 + Avoid two class attributes when adding `uri` class (#3716).
4943 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
4945 + Use revealjs's math plugin for mathjax (#3743). This is a thin
4946 wrapper around mathjax that makes math look better on revealjs.
4947 + Slidy: use h1 for all slides, even if they were originally
4948 level 2 headers (#3566). Otherwise the built-in table of contents
4953 + Don't render LaTeX images with data: URIs (#3636). Note that
4954 `--extract-media` can be used when the input contains data: URIs.
4955 + Make highlighted code blocks work in footnotes (Timm Albers).
4956 + Don't use figure inside table cell (#3836).
4957 + Use proper code for list enumerators (#3891). This should fix problems
4958 with lists that don't use arabic numerals.
4959 + Always add hypertarget when there's a non-empty identifier (#2719).
4960 Previously the hypertargets were only added when there was actually
4961 a link to that identifier.
4962 + Use `%` after hypertarget before code block.
4963 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
4964 fixes formatting problems in beamer citations).
4965 + Don't use `lstinline` in \item[..] (#645). If you do, the contents
4966 of item disappear or are misplaced. Use `\texttt` instead.
4967 + Fix problem with escaping in `lstinline` (#1629). Previously the
4968 LaTeX writer created invalid LaTeX when `--listings` was specified and
4969 a code span occurred inside emphasis or another construction.
4970 + Fix error with line breaks after empty content (#2874). LaTeX
4971 requires something before a line break, so we insert a `~` if no
4972 printable content has yet been emitted.
4974 + Fixed detection of otherlangs (#3770). We weren't recursing into
4976 + Handle language in inline code with `--listings` (#3422).
4977 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
4978 The textcomp package allows pdfLaTeX to parse `€` directly, making the
4979 `\euro` command unneeded.
4980 + Fixed footnotes in table captions (#2378). Note that if the table has
4981 a first page header and a continuation page header, the notes will
4982 appear only on the first occurrence of the header.
4983 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
4984 Previously you could link to a header above or below slide level but
4985 not *to* slide level. This commit changes that. Hypertargets are
4986 inserted inside frame titles; technically the reference is to just
4987 after the title, but in normal use (where slides are viewed full
4988 screen in a slide show), this does not matter.
4989 + Remove `\strut` at beginning of table cells (#3436). This fixes a
4990 problem with alignment of lists in table cells. The `\strut` at the
4991 end seems to be enough to avoid the too-close spacing that motivated
4992 addition of the strut in #1573.
4993 + Add partial siunitx Support (Marc Schreiber, #3588).
4997 + Refactored to use BCP47 module.
4998 + Remove unnecessary `$` (Alexander Krotov, #3482).
4999 + Use header identifiers for chapters (#3968).
5003 + `title_page.xhtml` is now put in `text/`.
5004 + Don't strip formatting in TOC (#1611).
5008 + Fix bug for certain links in table cells (#3667).
5009 + Allow 'pre' code in list item (#3916).
5013 + Added warnings for ignored material (#3392).
5014 + Better sanity checks to avoid parsing unintended things as
5015 raw HTML in the Markdown reader (#3257).
5016 + Revise treatment of `li` with `id` attribute (#3596). Previously we
5017 always added an empty div before the list item, but this created
5018 problems with spacing in tight lists. Now we do this: If the list
5019 item contents begin with a `Plain` block, we modify the `Plain`
5020 block by adding a `Span` around its contents. Otherwise, we add a
5021 `Div` around the contents of the list item (instead of adding an
5022 empty `Div` to the beginning, as before).
5023 + Add `details` tag to list of block tags (#3694).
5024 + Removed `button` from block tag list (#3717). It is already in the
5025 `eitherBlockOrInlineTag` list, and should be both places.
5026 + Use `Set`s instead of lists for block tag lookup.
5027 + Rewrote to use `Text` throughout. Effect on memory usage is modest
5029 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
5031 + Ensure that paragraphs are closed properly when the parent block
5032 element closes, even without `</p>` (#3794).
5033 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
5034 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
5035 `<main>` closes `<p>` and behaves like a block element generally
5036 + Support column alignments (#1881). These can be set either
5037 with a `width` attribute or with `text-width` in a `style` attribute.
5038 + Modified state type to be an instance of `HasLogMessages`, so
5039 `registerHeader` can issue warnings.
5040 + `</td>` or `</th>` should close any open block tag (#3991).
5041 + `<td>` should close an open `<th>` or `<td>`.
5042 + `htmlTag` improvements (#3989). We previously failed on cases
5043 where an attribute contained a `>` character. This patch fixes the
5044 bug, which especially affects raw HTML in Markdown.
5048 + Newline is not indentation (Alexander Krotov).
5052 + Allow extra hyphens after `|-` in tables (#2649).
5053 + Allow blank line after table start (#2649).
5054 + Fixed more table issues (#2649).
5055 + Ensure that list starts begin at left margin (#2606). Including when
5056 they're in tables or other list items.
5057 + Make smart double quotes depend on `smart` extension (#3585).
5058 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
5059 + Modified state type to be an instance of `HasLogMessages`, so
5060 `registerHeader` can issue warnings.
5062 * TWiki reader (Alexander Krotov):
5064 + Remove unnecessary `$` (#3597).
5065 + Simplify `linkText` (#3605).
5069 + Minor refactoring, avoiding explicit MediaBag handling.
5070 This all works behind the scenes in CommonState plumbing.
5074 + Don't drop smartTag contents (#2242).
5075 + Handle local namespace declarations (#3365). Previously we didn't
5076 recognize math, for example, when the xmlns declaration occurred on
5077 the element and not the root.
5078 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
5079 does the work of `normalizeSpaces` as well, so we avoid the need for
5081 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
5082 paragraphs styled with "HeadingN" as "nth-level header." But if a
5083 document has a custom style named "Heading0", this will produce a
5084 0-level header, which shouldn't exist. We only parse this style
5085 if N>0. Otherwise we treat it as a normal style name, and
5086 follow its dependencies, if any.
5087 + Add tests for avoiding zero-level header (Jesse Rosenthal).
5091 + Replaced `collectRights` with Rights from `Data.Either`.
5092 + Remove dead code (Albert Krewinkel).
5094 * Org reader (Albert Krewinkel, unless noted).
5096 + Don't allow tables inside list items (John MacFarlane, #3499).
5097 + Disallow tables on list marker lines (#3499).
5098 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
5099 + Allow emphasized text to be followed by `[` (#3577).
5100 + Handle line numbering switch for src blocks.
5101 The line-numbering switch that can be given to source blocks (`-n` with
5102 an start number as an optional parameter) is parsed and translated to a
5103 class/key-value combination used by highlighting and other readers and
5105 + Stop adding rundoc prefix to src params. Source block parameter names
5106 are no longer prefixed with `rundoc`. This was intended to simplify
5107 working with the rundoc project, a babel runner. However, the rundoc
5108 project is unmaintained, and adding those markers is not the reader's
5109 job anyway. The original language that is specified for a source
5110 element is now retained as the `data-org-language` attribute and only
5111 added if it differs from the translated language.
5112 + Allow multi-word arguments to src block params (#3477). The reader now
5113 correctly parses src block parameter list even if parameter arguments
5114 contain multiple words.
5115 + Avoid creating `nullMeta` by applying `setMeta` directly
5117 + Replace `sequence . map` with `mapM`.
5118 + Fix smart parsing behavior. Parsing of smart quotes and special
5119 characters can either be enabled via the `smart` language extension or
5120 the `'` and `-` export options. Smart parsing is active if either the
5121 extension or export option is enabled. Only smart parsing of special
5122 characters (like ellipses and en and em dashes) is enabled by default,
5123 while smart quotes are disabled. Previously, all smart parsing was
5124 disabled unless the language extension was enabled.
5125 + Subject full doc tree to headline transformations (Albert Krewinkel,
5126 #3695). Emacs parses org documents into a tree structure, which is
5127 then post-processed during exporting. The reader is changed to do the
5128 same, turning the document into a single tree of headlines starting
5130 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
5131 cite keys included special characters also at the end. This caused
5132 problems when citations occur right before colons or at the end of
5133 a sentence. With this change, all non alphanumeric characters at
5134 the end of a cite key are ignored. This also adds `,` to the list
5135 of special characters that are legal in cite keys to better mirror
5136 the behaviour of org-export.
5137 + Fix module names in haddock comments. Copy-pasting had lead to
5138 haddock module descriptions containing the wrong module names.
5139 + Recognize babel result blocks with attributes (#3706). Babel
5140 result blocks can have block attributes like captions and names.
5141 Result blocks with attributes were not recognized and were parsed
5142 as normal blocks without attributes.
5143 + Include tags in headlines. The Emacs default is to include tags in the
5144 headline when exporting. Instead of just empty spans, which contain the
5145 tag name as attribute, tags are rendered as small caps and wrapped in
5146 those spans. Non-breaking spaces serve as separators for multiple tags.
5147 + Respect export option for tags (#3713). Tags are appended to
5148 headlines by default, but will be omitted when the `tags` export option
5150 + Use `tag-name` attribute instead of `data-tag-name`.
5151 + Use `org-language` attribute rather than `data-org-language`.
5152 + Modified state type to be an instance of `HasLogMessages`, so
5153 `registerHeader` can issue warnings.
5154 + End footnotes after two blank lines. Footnotes can not only be
5155 terminated by the start of a new footnote or a header, but also by two
5156 consecutive blank lines.
5157 + Update emphasis border chars (#3933). The org reader was updated to
5158 match current org-mode behavior: the set of characters which are
5159 acceptable to occur as the first or last character in an org emphasis
5160 have been changed and now allows all non-whitespace chars at the
5161 inner border of emphasized text (see `org-emphasis-regexp-components`).
5165 + Fixed small bug in list parsing (#3432). Previously the parser didn't
5166 handle properly this case:
5172 + Handle multiline cells in simple tables (#1166).
5173 + Parse list table directive (Keiichiro Shikano, #3432).
5174 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
5175 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
5176 + Reorganize block parsers for ~20% faster parsing.
5177 + Fixed `..include::` directive (#3880).
5178 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
5179 Previously pandoc would sometimes combine two line blocks separated
5180 by blanks, and ignore trailing blank lines within the line block.
5181 + Fix indirect hyperlink targets (#512).
5185 + Allow attributes in reference links to start on next line (#3674).
5186 + Parse YAML metadata in a context that sees footnotes defined in
5187 the body of the document (#1279).
5188 + When splitting pipe table cells, skip tex math (#3481).
5189 You might have a `|` character inside math. (Or for that matter
5190 something that the parser might mistake for raw HTML.)
5191 + Treat span with class `smallcaps` as SmallCaps.
5192 This allows users to specify small caps in Markdown this way:
5193 `[my text]{.smallcaps}` (#1592).
5194 + Fixed internal header links (#2397).
5195 This patch also adds `shortcut_reference_links` to the list
5197 + Treat certain environments as inline
5198 when they occur without space surrounding them (#3309, #2171).
5199 E.g. equation, math. This avoids incorrect vertical space
5201 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
5202 + Allow latex macro definitions indented 1-3 spaces.
5203 Previously they only worked if nonindented.
5204 + Improved parsing of indented raw HTML blocks (#1841).
5205 Previously we inadvertently interpreted indented HTML as
5206 code blocks. This was a regression. We now seek to determine the
5207 indentation level of the contents of an HTML block, and (optionally)
5208 skip that much indentation. As a side effect, indentation may be
5209 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
5210 used. This is better than having things interpreted as indented
5212 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
5213 + Warn for notes defined but not used (#1718).
5214 + Use `anyLineNewline` (Alexander Krotov).
5215 + Interpret YAML metadata as Inlines when possible (#3755). If
5216 the metadata field is all on one line, we try to interpret it as
5217 Inlines, and only try parsing as Blocks if that fails. If it
5218 extends over one line (including possibly the `|` or `>` character
5219 signaling an indented block), then we parse as Blocks. This was
5220 motivated by some German users finding that `date: '22. Juin 2017'`
5221 got parsed as an ordered list.
5222 + Fixed spurious parsing as citation as reference def (#3840).
5223 We now disallow reference keys starting with `@` if the
5224 `citations` extension is enabled.
5225 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
5226 Previously only `[-@roe]` (with brackets) was recognized as
5227 suppress-author, and `-@roe` was treated the same as `@roe`.
5228 + Fixed parsing of fenced code after list when there is no intervening
5230 + Allow raw latex commands starting with `\start` (#3558). Previously
5231 these weren't allowed because they were interpreted as starting
5232 ConTeXt environments, even without a corresponding `\stop`...
5233 + Added `inlines`, `inlines1`.
5234 + Require nonempty alt text for `implicit_figures` (#2844).
5235 A figure with an empty caption doesn't make sense.
5236 + Removed texmath macro material; now all this is handled
5237 in the LaTeX reader functions.
5238 + Fixed bug with indented code following raw LaTeX (#3947).
5242 + Rewrote LaTeX reader with proper tokenization (#1390,
5243 #2118, #3236, #3779, #934, #982). This rewrite is primarily
5244 motivated by the need to get macros working properly. A side benefit
5245 is that the reader is significantly faster. We now tokenize the
5246 input text, then parse the token stream. Macros modify the token
5247 stream, so they should now be effective in any context, including
5248 math. Thus, we no longer need the clunky macro processing
5249 capacities of texmath.
5250 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
5251 + Allow `\newcommand\foo{blah}` without braces.
5252 + Support `\lstinputlisting` (#2116).
5253 + Issue warnings when skipping unknown latex commands (#3392).
5254 + Include contents of `\parbox`.
5255 + Allow `\hspace` and `\vspace` to count as raw block or inline.
5256 Previously we would refuse to parse anything as raw inline if
5257 it was in the `blockCommands` list. Now we allow exceptions
5258 if they're listed under ignoreInlines in inlineCommands.
5259 This should make it easier e.g. to include an `\hspace`
5260 between two side-by-side raw LaTeX tables.
5261 + Don't drop contents of `\hypertarget`.
5262 + Handle spaces before `\cite` arguments.
5263 + Allow newpage, clearpage, pagebreak in inline contexts as well as
5264 block contexts (#3494).
5265 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
5266 + Use `pMacroDefinition` in macro (for more direct parsing).
5267 Note that this means that `macro` will now parse one
5268 macro at a time, rather than parsing a whole group together.
5269 + Fixed failures on \ref{}, \label{} with `+raw_tex`. Now these
5270 commands are parsed as raw if `+raw_tex`; otherwise, their argument
5271 is parsed as a bracketed string.
5272 + Don't crash on empty `enumerate` environment (#3707).
5273 + Handle escaped `&` inside table cell (#3708).
5274 + Handle block structure inside table cells (#3709). `minipage` is no
5276 + Handle some width specifiers on table columns (#3709). Currently
5277 we only handle the form `0.9\linewidth`. Anything else would have
5278 to be converted to a percentage, using some kind arbitrary assumptions
5280 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
5281 LaTeX reader's treatment of raw commands, but it also affects the
5283 + Fixed regression with starred environment names (#3803).
5284 + Handle optional args in raw `\titleformat` (#3804).
5285 + Improved heuristic for raw block/inline. An unknown command at the
5286 beginning of the line that could be either block or inline is
5287 treated as block if we have a sequence of block commands followed by
5288 a newline or a `\startXXX` command (which might start a raw ConTeXt
5290 + Don't remove macro definitions from the output, even if
5291 `Ext_latex_macros` is set, so that macros will be applied.
5292 Since they're only applied to math in Markdown, removing the macros
5293 can have bad effects. Even for math macros, keeping them should be
5295 + Removed `macro`. It is no longer necessary, since the
5296 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
5297 the need for a separate `latexMacro` parser in the Markdown reader.
5298 + Use `label` instead of `data-label` for label in caption (#3639).
5299 + Fixed space after \figurename etc.
5300 + Resolve references to section numbers.
5301 + Fix `\let\a=0` case, with single character token.
5302 + Allow `@` as a letter in control sequences. `@` is commonly used
5303 in macros using `\makeatletter`. Ideally we'd make the tokenizer
5304 sensitive to `\makeatletter` and `\makeatother`, but until then this
5305 seems a good change.
5306 + Track header numbers and correlate with labels.
5307 + Allow `]` inside group in option brackets (#3857).
5308 + lstinline with braces can be used (verb cannot be used with braces)
5309 (Marc Schreiber, #3535).
5310 + Fix keyval function: pandoc did not parse options in braces correctly
5311 (Marc Schreiber, #3642).
5312 + When parsing raw LaTeX commands, include trailing space (#1773).
5313 Otherwise things like `\noindent foo` break and turn into
5314 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
5315 formats that allow `raw_tex`).
5316 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
5318 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
5319 + Allow space before `=` in bracketd options (Ben Firshman).
5320 + Be more forgiving in parsing command options. This was needed, for
5321 example, to make some minted options work.
5322 + Strip off quotes in `\include` filenames.
5324 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
5326 * `Text.Pandoc.PDF`:
5328 + Got `--resource-path` working with PDF output (#852).
5329 + Fetch images when generating PDF via context (#3380).
5330 To do this, we create the temp directory as a subdirectory
5331 of the working directory. Since context mk IV by default looks
5332 for images in the parent directory, this works.
5333 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
5334 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
5335 This reduces code duplication.
5336 + `html2pdf`: use stdin instead of intermediate HTML file
5337 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
5338 doesn't use `TEXINPUTS`.
5340 * `Text.Pandoc.Pretty`:
5342 + Simplified definition of `realLength`.
5343 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
5345 * `Text.Pandoc.MIME`:
5347 + Use `application/javascript` (not `application/x-javascript`).
5348 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
5350 * `Text.Pandoc.ImageSize`:
5352 + Improve SVG image size code (Marc Schreiber, #3580).
5353 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
5355 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
5356 and reduction of memory usage in most of the writers.
5358 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
5360 * `Text.Pandoc.SelfContained`:
5362 + Fixed problem with embedded fonts (#3629).
5363 + Refactored getData from `getDataURI` in `SelfContained`.
5364 + Don't use data URIs for script or style (#3423). Instead, just use
5365 script or style tags with the content inside. The old method with
5366 data URIs prevents certain optimizations outside pandoc. Exception:
5367 data URIs are still used when a script contains `</script>` or a
5368 style contains `</`.
5369 + SelfContained: Handle URL inside material retrieved from a URL
5370 (#3629). This can happen e.g. with an @import of a google web font.
5371 (What is imported is some CSS which contains an url reference
5372 to the font itself.) Also, allow unescaped pipe (|) in URL.
5373 + Load resources from `data-src` (needed for lazy loading in
5374 reveal.js slide shows).
5375 + Handle `data-background-image` attribute on section (#3979).
5377 * `Text.Pandoc.Parsing`:
5379 + Added `indentWith` (Alexander Krotov, #3687).
5380 + Added `stateCitations` to `ParserState`.
5381 + Removed `stateChapters` from `ParserState`.
5382 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
5383 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
5384 + Adjusted type of `insertIncludedFile` so it can be used with token
5386 + Replace old texmath macro stuff from Parsing. Use Macro from
5387 Text.Pandoc.Readers.LaTeX.Types instead.
5388 + Export `insertIncludedFile`.
5389 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
5390 + Replace partial with total function (Albert Krewinkel).
5391 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
5392 `insertIncludeFile` function is generalized to work with all parser
5393 states which are instances of that class.
5394 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
5395 The `insertIncludeFiles` function was generalized and renamed
5396 to `insertIncludedFiles'`; the specialized versions are based on that.
5397 + `many1Till`: Check for the end condition before parsing (Herwig
5398 Stuetz). By not checking for the end condition before the first
5399 parse, the parser was applied too often, consuming too much of the
5400 input. This only affects `many1Till p end` where `p` matches on a
5402 + Provide `parseFromString` (#3690). This is a version of
5403 `parseFromString` specialied to ParserState, which resets
5404 `stateLastStrPos` at the end. This is almost always what we want.
5405 This fixes a bug where `_hi_` wasn't treated as emphasis in the
5406 following, because pandoc got confused about the position of the
5407 last word: `- [o] _hi_`.
5408 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
5409 + Fix `blanklines` documentation (Alexander Krotov, #3843).
5410 + Give less misleading line information with `parseWithString`.
5411 Previously positions would be reported past the end of the chunk.
5412 We now reset the source position within the chunk and report
5413 positions "in chunk."
5414 + Add `anyLineNewline` (Alexander Krotov).
5415 + Provide shared F monad functions for Markdown and Org readers
5416 (Albert Krewinkel). The `F` monads used for delayed evaluation
5417 of certain values in the Markdown and Org readers are based on a
5418 shared data type capturing the common pattern of both `F` types.
5419 + Add `returnF` (Alexander Krotov).
5420 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
5421 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
5422 + Added `readerAbbreviations` to `ParserState`. Markdown reader
5423 now consults this to determine what is an abbreviation.
5424 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
5425 parsers for markdown and rst was combined into one single
5426 parser `gridTable`, slightly changing parsing behavior of both
5427 parsers: (1) The markdown parser now compactifies block content
5428 cell-wise: pure text blocks in cells are now treated as paragraphs
5429 only if the cell contains multiple paragraphs, and as plain blocks
5430 otherwise. Before, this was true only for single-column tables. (2)
5431 The rst parser now accepts newlines and multiple blocks in header
5433 + Generalize tableWith, gridTableWith (Albert Krewinkel).
5434 The parsing functions `tableWith` and `gridTableWith` are generalized
5435 to work with more parsers. The parser state only has to be an
5436 instance of the `HasOptions` class instead of requiring a concrete
5437 type. Block parsers are required to return blocks wrapped into a
5438 monad, as this makes it possible to use parsers returning results
5439 wrapped in `Future`s.
5441 * `Text.Pandoc.Shared`:
5443 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
5444 + `stringify`: handle Quoted better (#3958). Previously we were losing
5445 the quotation marks in Quoted elements.
5447 * `Text.Pandoc.Writers.Shared`:
5449 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
5450 This allows us to add the variables AFTER using the metadata
5451 to generate a YAML header (in the Markdown writer).
5452 + Added `unsmartify` (previously in RST writer).
5453 Undo literal double curly quotes. Previously we left these.
5454 + Generalize type of `metaToJSON` so it can take a Text. Previously a
5455 String was needed as argument; now any ToJSON instance will do.
5456 + Added `gridTable` (previously in Markdown writer).
5457 + `gridTable`: Refactored to use widths in chars.
5458 + `gridTable`: remove unnecessary extra space in cells.
5459 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
5460 values to become lists.
5461 + Pipe tables: impose minimum cell size (see #3526).
5464 [default template changes]
5466 * HTML templates (including EPUB and HTML slide show templates):
5468 + Make default.html5 polyglot markup conformant (John Luke Bentley,
5469 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
5470 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
5471 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
5472 + Regularized CSS in html/epub/html slide templates (#3485).
5473 All templates now include `code{white-space: pre-wrap}`
5474 and CSS for `q` if `--html-q-tags` is used. Previously some templates
5475 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
5477 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
5478 + `default.revealjs`: make `history` default to true.
5479 + `default.revealjs`: use lazy loading (#2283).
5480 + `default.revealjs`: add `mathjax` variable and some conditional code
5481 to use the MathJaX plugin.
5482 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
5483 + `default.dzslides`: Load Google Font using HTTPS by default
5486 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
5489 * LaTeX/Beamer template:
5491 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
5492 `default.beamer` has been removed; beamer now uses the
5493 `default.latex` template. Beamer-specific parts are conditional
5494 on the `beamer` variable set by the writer. Note that
5495 `pandoc -D beamer` will return this (combined) template.
5496 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
5497 Beamer loads `xcolor` rather than `color`, and thus the
5498 `dvipsnames` option doesn't take effect. This also provides a wider
5499 range of colour selections with the `svgnames` option.
5500 + Use starred versions of `xcolor` names (Andrew Dunning).
5501 Prevents changes to documents defined using the `dvipsnames` list (e.g.
5502 `Blue` gives a different result with svgnames enabled).
5503 + Load `polyglossia` after header-includes (#3898). It needs to be
5504 loaded as late as possible.
5505 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
5507 + Don't load `fontspec` before `unicode-math` (over there).
5508 The `unicode-math` package loads `fontspec` so explicit loading of
5509 `fontspec` before `unicode-math` is not necessary.
5510 + Use `unicode-math` by default in default.latex template. mathspec will
5511 be used in xelatex if the `mathspec` variable is set; otherwise
5512 unicode-math will be used (Václav Haisman).
5513 + Use `dvipsnames` options when `colorlinks` specified (otherwise
5514 we get an error for `maroon`) (Thomas Hodgson).
5515 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
5516 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
5517 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
5518 clash when loading a package (e.g. `tufte-latex`) that uses
5519 `hyperref` settings different from those in the template.
5520 + Add `natbiboptions` variable (#3768).
5521 + Fix links inside captions in LaTeX output with links-as-notes
5522 (Václav Haisman, #3651). Declare our redefined `\href` robust.
5523 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
5524 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
5525 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
5526 packages. Use existing `CJKmainfont` and `CJKoptions` template
5527 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
5528 and `luatexjapresetoptions` for `luatexja-preset`.
5529 + Added `aspectratio` variable to beamer template (Václav Haisman,
5531 + Modified template.latex to fix XeLaTex being used with tables
5532 (lwolfsonkin, #3661). Reordered `lang` variable handling to
5533 immediately before `bidi`.
5535 * ConTeXt template: Improved font handling: `simplefonts` is now
5536 obsolete in ConTeXt (Pablo Rodríguez).
5539 [documentation improvements]
5543 + Add URL for Prince HTML > PDF engine (Ian, #3919).
5544 + Document that content above slide-level will be omitted in
5545 slide shows. See #3460, #2265.
5546 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
5547 + Small clarification in YAML metadata section.
5548 + Document that html4 is technically XHTML 1.0 transitional.
5549 + Remove refs to highlighting-kate (#3672).
5550 + Document ibooks specific epub metadata.
5551 + Clarify that mathml is used for ODT math.
5552 + Mention limitations of Literate Haskell Support (#3410,
5554 + Add documentation of limitations of grid tables (Stephen
5556 + Clarify that meta-json contains transformed values (Jakob Voß,
5557 #3491) Make clear that template variable `meta-json` does not
5558 contain plain text values or JSON output format but field values
5559 transformed to the selected output format.
5563 + Clarify that templates are dual-licensed.
5564 + Clarify that pandoc-types is BSD3 licensed.
5565 + List new files not written by jgm (Albert Krewinkel).
5566 + Update dates in copyright notices (Albert Krewinkel). This follows
5567 the suggestions given by the FSF for GPL licensed software.
5568 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
5572 + Improved instructions for tests with patterns.
5573 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
5577 + Fixed typos (Wandmalfarbe, #3479).
5578 + Add "ask on pandoc-discuss" (Mauro Bieg).
5580 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
5581 end of this document is autogenerated from `data/pandoc.lua`
5582 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
5585 * Add `doc/filters.md`. This is the old scripting tutorial from
5588 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
5589 to using pandoc as a Haskell library.
5592 [build infrastructure improvements]
5594 * Removed `data/templates` submodule. Templates are now a subtree
5595 in `data/templates`. This removes the need to do `git submodule
5598 * Renamed `tests` -> `test`.
5600 * Remove `https` flag. Always build with HTTPS support.
5602 * Use `file-embed` instead of `hsb2hs` to embed data files when
5603 `embed_data_files` flag is set. `file-embed` gives us better dependency
5604 tracking: if a data file changes, ghc/stack/cabal know to recompile
5605 the Data module. This also removes `hsb2hs` as a build dependency.
5607 * Add `custom-setup` stanza to pandoc, lowercase field names.
5609 * Add `static` Cabal flag.
5611 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
5612 than -OSX. Changed local names from osx to macos.
5614 * make_macos_package.sh - Use strip to reduce executable size.
5616 * Revised binary linux package. Now a completely static executable
5617 is created, using Docker and alpine. We create both a deb and a
5618 tarball. The old `deb` directory has been replaced with a `linux`
5619 directory. Running `make` in the `linux` directory should
5620 perform the build, putting the binary packages in `artifacts/`.
5622 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
5623 pandoc-data packages will be uninstalled; this package provides
5624 both (#3822). Add latex packages as 'suggested', update
5627 * Remove cpphs build requirement -- it is no longer needed.
5629 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
5631 * Name change OSX -> macOS (ickc, #3869).
5633 * Fix casing of Linux, UNIX, and Windows (ickc).
5635 * `.travis.yml`: create a source dist and do cabal build and test there.
5636 That way we catch errors due to files missing from the data
5637 section of pandoc.cabal.
5641 + Split `make haddock` from `make full`.
5642 + Add BRANCH variable for winpkg.
5643 + Add `lint` target.
5644 + Improve `make full`. Disable optimizations.
5645 Build everything, inc. trypandoc and benchmarks. Use parallel build.
5646 + Allow `make test` to take `TESTARGS`.
5648 * Added new command tests (`Tests.Command`), using small text files
5649 in `test/command/`. Any files added in this directory will be treated
5650 as shell tests (see smart.md for an example). This makes it very easy
5651 to add regression tests etc.
5653 * Test fixes so we can find data files. In old tests & command tests,
5654 we now set the environment variable `pandoc_datadir`. In lua tests,
5655 we set the datadir explicitly.
5657 * Refactored `compareOutput` in docx writer test.
5659 * Consolidated some common functions in `Tests.Helper`.
5661 * Small change to unbalanced bracket test to speed up test suite.
5663 * Speed up Native writer quickcheck tests.
5665 * Use tasty for tests rather than test-framework.
5667 * Add simple Emacs mode to help with Pandoc templates editing.
5668 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
5673 * Use skylighting library instead of highlighting-kate for syntax
5674 highlighting. Skylighting is faster and more accurate (#3363).
5675 Later we'll be able to add features like warning messages, dynamic
5676 loading of xml syntax definitions, and dynamic loading of themes.
5678 * Added a new highlight style, `breezeDark`.
5680 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
5681 This allows more languages to be used when using the `--listings`
5684 * OpenDocument writer:
5686 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
5687 + Don't profilerate text styles unnecessarily (#3371).
5688 This change makes the writer create only as many temporary
5689 text styles as are absolutely necessary. It also consolidates
5690 adjacent nodes with the same style.
5692 * Org reader (Albert Krewinkel):
5694 + Allow short hand for single-line raw blocks (Albert Krewinkel,
5695 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
5696 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
5697 + Accept org-ref citations followed by commas (Albert Krewinkel).
5698 Bugfix for an issue which, whenever the citation was immediately
5699 followed by a comma, prevented correct parsing of org-ref citations.
5700 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
5701 `/*strong and emphasized*/`) was interpreted incorrectly in that the
5702 inner markup was not recognized.
5703 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
5705 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
5706 In the past, the docx reader wrote an empty header as an empty list. It
5707 should have the same width as a row (and be filled with empty cells).
5711 + Improved handling of display math (#3362). Sometimes display math is
5712 indented with more than one colon. Previously we handled these cases
5713 badly, generating definition lists and missing the math.
5714 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
5715 behavior when the smart option is parsed to match other readers'
5720 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
5721 (#3341). Previously this did not properly enable escaped line breaks.
5722 + Disallow space between inline code and attributes (#3326, #3323,
5725 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
5727 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
5729 * LaTeX writer: allow tables with empty cells to count as "plain."
5730 This addresses a problem of too-wide tables when empty cells
5731 are used. Thanks to Joost Kremers for reporting the issue.
5733 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
5734 Unprefixed numbers where used by older org-mode versions, but are no
5737 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
5740 * Markdown writer: Fix display math with `--webtex` (#3298).
5742 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
5747 + default.latex: Moved geometry after hyperref (Václav Haisman).
5748 Otherwise PDF sizes can be wrong in some circumstances.
5749 + Copied a few changes from default.latex to default.beamer
5751 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
5752 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
5753 that contain verbatim in notes (#3361). (Note: the beamer template
5754 was updated to match the LaTeX template, but at this point verbatim
5755 in notes seems not to work in beamer.)
5756 + default.latex: Allow passing `microtypeoptions` to microtype
5758 + default.latex: Add hyphen option to url package.
5759 + default.docbook5: Fix namespace declarations (Mauro Bieg).
5761 * Moved `make_osx_package.sh` to `osx/` directory.
5763 * Travis continuous integration:
5765 + Fix false positives with dist build.
5766 + Speed improvements (Kolen Cheung, #3304, #3357).
5770 + Clarify that blank space is needed around footnotes (#3352).
5771 + Fixed typo (#3351, Alexey Rogechev).
5772 + Note that `--wrap=auto` does not work in HTML output.
5773 + Default `--columns` width is 72, not 80.
5774 + Fixed broken links (#3316, Kolen Cheung).
5775 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
5779 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
5780 + Added instructions for extracting binary from OSX, Windows packages.
5782 * CONTRIBUTING.md: Describe labels currently used in issue tracker
5783 (Albert Krewinkel). The labels have changed over time, the list of
5784 labels is updated to reflect the current set of labels used in the
5787 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
5789 * Bumped version bounds for dependencies.
5794 * Set `PANDOC_VERSION` environment variable for filters (#2640).
5795 This allows filters to check the pandoc version that produced
5796 the JSON they are receiving.
5798 * Docx reader: Ensure one-row tables don't have header (#3285,
5799 Jesse Rosenthal). Tables in MS Word are set by default to have
5800 special first-row formatting, which pandoc uses to determine whether
5801 or not they have a header. This means that one-row tables will, by
5802 default, have only a header -- which we imagine is not what people
5803 want. This change ensures that a one-row table is not understood to
5804 be a header only. Note that this means that it is impossible to
5805 produce a header-only table from docx, even though it is legal
5806 pandoc. But we believe that in nearly all cases, it will be an
5807 accidental (and unwelcome) result
5811 + Fixed some bad regressions in HTML table parser (#3280).
5812 This regression leads to the introduction of empty rows
5813 in some circumstances.
5814 + Understand `style=width:` as well as `width` in `col` (#3286).
5818 + Print warnings when keys, substitition, notes not found.
5819 Previously the parsers failed and we got raw text. Now we get a
5820 link with an empty URL, or empty inlines in the case of a note or
5823 + Fix hyperlink aliases (#3283).
5825 * Man writer: Ensure that periods are escaped at beginning of line
5828 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
5829 (#3272, Albert Krewinkel). Fix interaction of top-level divisions
5830 `part` or `chapter` with unnumbered headers when emitting LaTeX. Headers
5831 are ensured to be written using stared commands (like `\subsection*{}`).
5833 * LaTeX template: use comma not semicolon to separate keywords for
5834 `pdfkeywords`. Thanks to Wandmalfarbe.
5836 * Markdown writer: Fixed incorrect word wrapping (#3277). Previously pandoc
5837 would sometimes wrap lines too early due to this bug.
5839 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
5840 possible to insert escape codes for content that needs escaping at the
5841 beginning of a line.
5843 * Removed old MathMLInHTML.js from 2004, which should no longer
5844 be needed for MathML with modern browsers.
5846 * Fixed tests with dynamic linking (#2709).
5848 * Makefile: Use stack instead of cabal for targets. This is just
5849 a convenience for developers.
5851 * Fixed bash completion of filenames with space (#2749).
5853 * MANUAL: improved documentation on how to create a custom `reference.docx`.
5855 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
5859 * Changed resolution of filter paths.
5861 + We now first treat the argument of `--filter` as a full (absolute
5862 or relative) path, looking for a program there. If it's found, we
5864 + If not, and if it is a simple program name or a relative path, we
5865 try resolving it relative to `$DATADIR/filters`.
5866 + If this fails, then we treat it as a program name and look in the
5868 + Removed a hardcoded '/' that may have caused problems with
5871 Previously if you did `--filter foo` and you had `foo` in your path and
5872 also an executable `foo` in your working directory, the one in the path
5873 would be used. Now the one in the working directory is used.
5875 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
5876 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
5877 `foo/bar.hs` relative to the working directory.
5879 * Allow `file://` URIs as arguments (#3196). Also improved default reader
5880 format detection. Previously with a URI ending in .md or .markdown,
5881 pandoc would assume HTML input. Now it treats these as markdown.
5883 * Allow to overwrite top-level division type heuristics (#3258,
5884 Albert Krewinkel). Pandoc uses heuristics to determine the most
5885 reasonable top-level division type when emitting LaTeX or
5886 Docbook markup. It is now possible to overwrite this implicitly set
5887 top-level division via the `top-level-division` command line parameter.
5889 * Text.Pandoc.Options \[API changes\]:
5891 + Removed `writerStandalone` field in `WriterOptions`, made
5892 `writerTemplate` a `Maybe` value. Previously setting
5893 `writerStandalone = True` did nothing unless a template was provided
5894 in writerTemplate. Now a fragment will be generated if
5895 `writerTemplate` is `Nothing`; otherwise, the specified template
5896 will be used and standalone output generated.
5897 + `Division` has been renamed `TopLevelDivision` (#3197). The
5898 `Section`, `Chapter`, and `Part` constructors were renamed to
5899 `TopLevelSection`, `TopLevelChapter`, and
5900 `TopLevelPart`, respectively. An additional `TopLevelDefault`
5901 constructor was added, which is now also the new default value of
5902 the `writerTopLevelDivision` field in `WriterOptions`.
5904 * Improved error if they give wrong arg to `--top-level-division`.
5906 * Use new module from texmath to lookup MS font codepoints in Docx reader.
5907 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
5908 lives in texmath (0.9).
5910 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
5911 when the qnames lacked the docbook namespace URI.
5915 + Improved table parsing (#3027). We now check explicitly for non-1
5916 rowspan or colspan attributes, and fail when we encounter them.
5917 Previously we checked that each row had the same number of cells,
5918 but that could be true even with rowspans/colspans. And there are
5919 cases where it isn't true in tables that we can handle fine -- e.g.
5920 when a tr element is empty. So now we just pad rows with empty cells
5922 + Treat `<math>` as MathML by default unless something else is
5923 explicitly specified in xmlns. Provided it parses as MathML,
5924 of course. Also fixed default which should be to inline math if no
5925 display attribute is used.
5926 + Only treat "a" element as link if it has href (#3226). Otherwise
5929 * Docx reader (Jesse Rosenthal):
5931 + Add a placeholder value for CHART. We wrap `[CHART]` in a
5932 `<span class="chart">`. Note that it maps to inlines because, in
5933 docx, anything in a drawing tag can be part of a larger paragraph.
5934 + Be more specific in parsing images We not only want `w:drawing`,
5935 because that could also include charts. Now we specify
5936 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
5937 a first step toward allowing other sorts of drawing data as well.
5938 + Abstract out function to avoid code repetition.
5939 + Update tests for img title and alt (#3204).
5940 + Handle Alt text and titles in images. We use the "description" field
5941 as alt text and the "title" field as title. These can be accessed
5942 through the "Format Picture" dialog in Word.
5943 + Docx reader utils: handle empty namespace in `elemName`. Previously,
5944 if given an empty namespace `(elemName ns "" "foo")` `elemName`
5945 would output a QName with a `Just ""` namespace. This is never what
5946 we want. Now we output a `Nothing`. If someone *does* want a
5947 `Just ""` in the namespace, they can enter the QName
5950 * ODT reader/writer:
5952 + Inline code when text has a special style (Hubert Plociniczak). When
5953 a piece of text has a text `Source_Text` then we assume that this is
5954 a piece of the document that represents a code that needs to
5955 be inlined. Adapted the writer to also reflect that change.
5956 Previously it was just writing a 'preformatted' text using a
5957 non-distinguishable font style. Code blocks are still not recognized
5958 by the ODT reader. That's a separate issue.
5959 + Infer table's caption from the paragraph (#3224,
5960 Hubert Plociniczak). ODT's reader always put empty captions for the
5961 parsed tables. This commit
5963 1. checks paragraphs that follow the table definition
5964 2. treats specially a paragraph with a style named 'Table'
5965 3. does some postprocessing of the paragraphs that combines tables
5966 followed immediately by captions
5968 The ODT writer used the `TableCaption` style for the caption
5969 paragraph. This commit follows the OpenOffice approach which allows
5970 for appending captions to table but uses a built-in style named
5971 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
5972 should change the style's name from `TableCaption` to `Table`.
5974 * ODT reader: Infer tables' header props from rows (#3199,
5975 Hubert Plociniczak). ODT reader simply provided an empty header list
5976 which meant that the contents of the whole table, even if not empty, was
5977 simply ignored. While we still do not infer headers we at least have to
5978 provide default properties of columns.
5982 + Allow reference link labels starting with `@...` if `citations`
5983 extension disabled (#3209). Example: in
5987 `link text` isn't hyperlinked because `[@a]` is parsed as
5988 a citation. Previously this happened whether or not the `citations`
5989 extension was enabled. Now it happens only if the `citations`
5990 extension is enabled.
5991 + Allow alignments to be specified in Markdown grid tables. For
5994 +-------+---------------+--------------------+
5995 | Right | Left | Centered |
5996 +=========:+:=================+:=============:+
5997 | Bananas | $1.34 | built-in wrapper |
5998 +-------+---------------+--------------------+
6000 + Allow Small Caps elements to be created using bracketed spans (as
6001 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
6005 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
6006 Fixed an error which came up, for example, with `\vspace` inside
6007 a caption. (Captions expect inlines.)
6008 + Improved table handling. We can now parse all of the tables emitted
6009 by pandoc in our tests. The only thing we don't get yet are
6010 alignments and column widths in more complex tables. See #2669.
6011 + Limited support for minipage.
6012 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
6013 + Handle BVerbatim from fancyvrb (#3203).
6014 + Handle hungarumlaut (#3201).
6015 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
6016 (#3184). This allows use of things like `\only<2,3>{my content}` in
6017 Markdown that is going to be converted to beamer.
6019 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
6020 overly long code will appear on every slide.
6022 * Org reader (Albert Krewinkel):
6024 + Respect column width settings (#3246). Table column properties can
6025 optionally specify a column's width with which it is displayed in
6026 the buffer. Some exporters, notably the ODT exporter in org-mode
6027 v9.0, use these values to calculate relative column widths. The org
6028 reader now implements the same behavior. Note that the org-mode
6029 LaTeX and HTML exporters in Emacs don't support this feature yet,
6030 which should be kept in mind by users who use the column
6032 + Allow HTML attribs on non-figure images (#3222). Images which are
6033 the only element in a paragraph can still be given HTML attributes,
6034 even if the image does not have a caption and is hence not a figure.
6035 The following will add set the `width` attribute of the image to
6038 +ATTR\_HTML: :width 50%
6039 =======================
6041 \[\[file:image.jpg\]\]
6043 + Support `ATTR_HTML` for special blocks (#3182). Special
6044 blocks (i.e. blocks with unrecognized names) can be prefixed with an
6045 `ATTR_HTML` block attribute. The attributes defined in that
6046 meta-directive are added to the `Div` which is used to represent the
6048 + Support the `todo` export option. The `todo` export option allows to
6049 toggle the inclusion of TODO keywords in the output. Setting this to
6050 `nil` causes TODO keywords to be dropped from headlines. The default
6051 is to include the keywords.
6052 + Add support for todo-markers. Headlines can have optional
6053 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
6054 or `#+TYP_TODO` meta directive. Multiple such directives can be
6055 given, each adding a new set of recognized todo-markers. If no
6056 custom todo-markers are defined, the default `TODO` and `DONE`
6057 markers are used. Todo-markers are conceptually separate from
6058 headline text and are hence excluded when autogenerating
6059 headline IDs. The markers are rendered as spans and labelled with
6060 two classes: One class is the markers name, the other signals the
6061 todo-state of the marker (either `todo` or `done`).
6065 + Use `\autocites*` when "suppress-author" citation used.
6066 + Ensure that simple tables have simple cells (#2666). If cells
6067 contain more than a single Plain or Para, then we need to set
6068 nonzero widths and put contents into minipages.
6069 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
6073 + Fix calculation of column widths for aligned multiline tables
6074 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
6075 usage for tables when `--columns` is set in such a way that cells
6076 must be very tiny. Now cells are guaranteed to be big enough so that
6077 single words don't need to line break, even if this pushes the line
6078 length above the column width.
6079 + Use bracketed form for native spans when `bracketed_spans`
6081 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
6082 sublist got rendered with a blank line after, while a tight ordered
6083 sublist did not. Now we don't get the blank line in either case.
6084 + Fix escaping of spaces in super/subscript (#3225). Previously two
6085 backslashes were inserted, which gave a literal backslash.
6086 + Adjust widths in Markdown grid tables so that they match
6091 + Give full detail when there are errors converting tex math.
6092 + Handle title text in images (Jesse Rosenthal). We already handled
6093 alt text. This just puts the image "title" into the docx
6095 + Fixed XML markup for empty cells (#3238). Previously the Compact
6096 style wasn't being applied properly to empty cells.
6100 + Updated `renderHtml` import from blaze-html.
6102 * Text.Pandoc.Pretty:
6104 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
6105 caused spurious blank lines in grid tables when we had things like
6106 `blankline $$ blankline`.
6107 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
6108 + Added error message for illegal call to `block` (Björn Peemöller).
6110 * Text.Pandoc.Shared:
6112 + Put `warn` in MonadIO.
6113 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
6114 URL starts with `//` and there is no "base URL" (as there would be
6115 if a URL were used on the command line), then default to http:.
6117 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
6119 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
6120 fixes a crash with `pandoc --version` on unusual systems with no real
6121 user (e.g. SQL Server 2016).
6123 * Added weigh-pandoc for memory usage diagnostics (#3169).
6125 * Use correct mime types for woff and woff2 (#3228).
6127 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
6129 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
6130 1.18 section where it belongs.
6132 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
6135 * Further revisions to manual for `--version` changes (#3244).
6140 * Added `--list-input-formats`, `--list-output-formats`,
6141 `--list-extensions`, `--list-highlight-languages`, and
6142 `--list-highlight-styles` (#3173). Removed list of highlighting
6143 languages from `--version` output. Removed list of input and output
6144 formats from default `--help` output.
6146 * Added `--reference-location=block|section|document` option
6147 (Jesse Rosenthal). This determines whether Markdown link references
6148 and footnotes are placed at the end of the document, the end of the
6149 section, or the end of the top-level block.
6151 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
6152 This determines what a level-1 header corresponds to in LaTeX,
6153 ConTeXt, DocBook, and TEI output. The default is `section`.
6154 The `--chapters` option has been deprecated in favor of
6155 `--top-level-division=chapter`.
6157 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
6158 is now used in parsing RST and Markdown line blocks, DocBook
6159 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
6160 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
6161 are handled specially in the following output formats: AsciiDoc
6162 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
6163 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
6164 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
6165 other output formats, a paragraph with hard linebreaks is emitted.
6167 * Allow binary formats to be written to stdout (but not to tty) (#2677).
6168 Only works on posix, since we use the unix library to check whether
6169 output is to tty. On Windows, pandoc works as before and always requires
6170 an output file parameter for binary formats.
6172 * Changed JSON output format (Jesse Rosenthal). Previously we used
6173 generically generated JSON, but this was subject to change depending
6174 on the version of aeson pandoc was compiled with. To ensure stability,
6175 we switched to using manually written ToJSON and FromJSON
6176 instances, and encoding the API version. **Note:** pandoc filter
6177 libraries will need to be revised to handle the format change.
6178 Here is a summary of the essential changes:
6180 + The toplevel JSON format is now `{"pandoc-api-version" :
6181 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
6182 instead of `[{"unMeta": META}, [BLOCKS]]`.
6183 Decoding fails if the major and minor version numbers don't
6185 + Leaf nodes no longer have an empty array for their "c" value.
6186 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
6187 rather than `{"t":"Space","c":[]}` as before.
6189 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
6190 module to pandoc-types (Jesse Rosenthal). This makes it easier
6191 to use QuickCheck with pandoc types outside of pandoc itself.
6193 * Add `bracketed_spans` Markdown extension, enabled by default
6194 in pandoc `markdown`. This allows you to create a native span
6195 using this syntax: `[Here is my span]{#id .class key="val"}`.
6197 * Added `angle_brackets_escapable` Markdown extension (#2846).
6198 This is needed because github flavored Markdown has a slightly
6199 different set of escapable symbols than original Markdown;
6200 it includes angle brackets.
6202 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
6204 * Print highlighting-kate version in `--version`.
6206 * `Text.Pandoc.Options`:
6208 + `Extension` has new constructors `Ext_brackted_spans` and
6209 `Ext_angle_brackets_escapable` [API change].
6210 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
6211 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
6214 * `--filter`: we now check `$DATADIR/filters` for filters before
6215 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
6216 Voß for the idea). Filters placed in this directory need not
6217 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
6218 or `.rb`, pandoc will run the right interpreter.
6220 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
6221 default (Kolen Cheung).
6223 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
6225 * Execute .js filters with node (Jakob Voß).
6229 + Support `bc..` extended code blocks (#3037). Also, remove trailing
6230 newline in code blocks (consistently with Markdown reader).
6231 + Improve table parsing. We now handle cell and row attributes, mostly
6232 by skipping them. However, alignments are now handled properly.
6233 Since in pandoc alignment is per-column, not per-cell, we
6234 try to devine column alignments from cell alignments.
6235 Table captions are also now parsed, and textile indicators
6236 for thead and tfoot no longer cause parse failure. (However,
6237 a row designated as tfoot will just be a regular row in pandoc.)
6238 + Improve definition list parsing. We now allow multiple terms
6239 (which we concatenate with linebreaks). An exponential parsing
6240 bug (#3020) is also fixed.
6241 + Disallow empty URL in explicit link (#3036).
6245 + Use Div instead of BlockQuote for admonitions (#3031).
6246 The Div has class `admonition` and (if relevant) one of the
6247 following: `attention`, `caution`, `danger`, `error`, `hint`,
6248 `important`, `note`, `tip`, `warning`. **Note:** This will change
6249 the rendering of some RST documents! The word ("Warning", "Attention",
6250 etc.) is no longer added; that must be done with CSS or a filter.
6251 + A Div is now used for `sidebar` as well.
6252 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
6253 space before a footnote marker. We discard those spaces so that footnotes
6254 will be adjacent to the text that comes before it. This is in line with
6255 what rst2latex does.
6256 + Allow empty lines when parsing line blocks (Albert Krewinkel).
6260 + Allow empty lines when parsing line blocks (Albert Krewinkel).
6261 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
6265 + More robust parsing of unknown environments (#3026).
6266 We no longer fail on things like `^` inside options for tikz.
6267 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
6268 Some custom environments give these a meaning, so we should try not to
6269 fall over when we encounter them.
6270 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
6274 + Fix for unquoted attribute values in mediawiki tables (#3053).
6275 Previously an unquoted attribute value in a table row
6276 could cause parsing problems.
6277 + Improved treatment of verbatim constructions (#3055).
6278 Previously these yielded strings of alternating Code and Space
6279 elements; we now incorporate the spaces into the Code. Emphasis
6280 etc. is still possible inside these.
6281 + Properly interpret XML tags in pre environments (#3042). They are meant
6282 to be interpreted as literal text.
6284 * EPUB reader: don't add root path to data: URIs (#3150).
6285 Thanks to @lep for the bug report and patch.
6287 * Org reader (Albert Krewinkel):
6289 + Preserve indentation of verse lines (#3064). Leading spaces in verse
6290 lines are converted to non-breaking spaces, so indentation is preserved.
6291 + Ensure image sources are proper links. Image sources as those in plain
6292 images, image links, or figures, must be proper URIs or relative file
6293 paths to be recognized as images. This restriction is now enforced
6294 for all image sources. This also fixes the reader's usage of uncleaned
6295 image sources, leading to `file:` prefixes not being deleted from
6296 figure images. Thanks to @bsag for noticing this bug.
6297 + Trim verse lines properly (Albert Krewinkel).
6298 + Extract meta parsing code to module. Parsing of meta-data is well
6299 separable from other block parsing tasks. Moving into new module to
6300 get small files and clearly arranged code.
6301 + Read markup only for special meta keys. Most meta-keys should be read
6302 as normal string values, only a few are interpreted as marked-up text.
6303 + Allow multiple, comma-separated authors. Multiple authors can be
6304 specified in the `#+AUTHOR` meta line if they are given as a
6305 comma-separated list.
6306 + Give precedence to later meta lines. The last meta-line of any given
6307 type is the significant line. Previously the value of the first line
6308 was kept, even if more lines of the same type were encountered.
6309 + Read LaTeX_header as header-includes. LaTeX-specific header commands
6310 can be defined in `#+LaTeX_header` lines. They are parsed as
6311 format-specific inlines to ensure that they will only show up in LaTeX
6313 + Set documentclass meta from LaTeX_class.
6314 + Set classoption meta from LaTeX_class_options.
6315 + Read HTML_head as header-includes. HTML-specific head content can be
6316 defined in `#+HTML_head` lines. They are parsed as format-specific
6317 inlines to ensure that they will only show up in HTML output.
6318 + Respect `author` export option. The `author` option controls whether
6319 the author should be included in the final markup. Setting
6320 `#+OPTIONS: author:nil` will drop the author from the final meta-data
6322 + Respect `email` export option. The `email` option controls whether the
6323 email meta-field should be included in the final markup. Setting
6324 `#+OPTIONS: email:nil` will drop the email field from the final
6326 + Respect `creator` export option. The `creator` option controls whether
6327 the creator meta-field should be included in the final markup. Setting
6328 `#+OPTIONS: creator:nil` will drop the creator field from the final
6329 meta-data output. Org-mode recognizes the special value `comment` for
6330 this field, causing the creator to be included in a comment. This is
6331 difficult to translate to Pandoc internals and is hence interpreted the
6332 same as other truish values (i.e. the meta field is kept if it's
6334 + Respect unnumbered header property (#3095). Sections the `unnumbered`
6335 property should, as the name implies, be excluded from the automatic
6336 numbering of section provided by some output formats. The Pandoc
6337 convention for this is to add an "unnumbered" class to the header. The
6338 reader treats properties as key-value pairs per default, so a special
6339 case is added to translate the above property to a class instead.
6340 + Allow figure with empty caption (Albert Krewinkel, #3161).
6341 A `#+CAPTION` attribute before an image is enough to turn an image into
6342 a figure. This wasn't the case because the `parseFromString` function,
6343 which processes the caption value, would fail on empty values. Adding
6344 a newline character to the caption value fixes this.
6348 + Use XML convenience functions (Jesse Rosenthal).
6349 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
6350 the code a lot cleaner than the original XML.Light functions, but they
6351 had been used inconsistently. This puts them in wherever applicable.
6352 + Handle anchor spans with content in headers. Previously, we would only
6353 be able to figure out internal links to a header in a docx if the
6354 anchor span was empty. We change that to read the inlines out of the
6355 first anchor span in a header.
6356 + Let headers use existing id. Previously we always generated an id for
6357 headers (since they wouldn't bring one from Docx). Now we let it use an
6358 existing one if possible. This should allow us to recurs through anchor
6360 + Use all anchor spans for header ids. Previously we only used the first
6361 anchor span to affect header ids. This allows us to use all the anchor
6362 spans in a header, whether they're nested or not (#3088).
6363 + Test for nested anchor spans in header. This ensures that anchor spans
6364 in header with content (or with other anchor spans inside) will resolve
6365 to links to a header id properly.
6367 * ODT reader (Hubert Plociniczak)
6369 + Include list's starting value. Previously the starting value of
6370 the lists' items has been hardcoded to 1. In reality ODT's list
6371 style definition can provide a new starting value in one of its
6373 + Infer caption from the text following the image.
6374 Frame can contain other frames with the text boxes.
6375 + Add `fig:` to title for Image with a caption (as expected
6376 by pandoc's writers).
6377 + Basic support for images in ODT documents.
6378 + Don't duplicate text for anchors (#3143). When creating an anchor
6379 element we were adding its representation as well as the original
6380 content, leading to text duplication.
6384 + Include an anchor element when a div or span has an id (#3102).
6385 Note that DocBook does not have a class attribute, but at least this
6386 provides an anchor for internal links.
6390 + Don't use * for unnumbered paragraph, subparagraph. The starred
6391 variants don't exist. This helps with part of #3058...it gets rid of
6392 the spurious `*`s. But we still have numbers on the 4th and 5th level
6394 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
6395 Otherwise they can cause unintended ligatures like `` ?` ``.
6396 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
6397 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
6398 This allows figure placement defaults to be changed by the user
6401 * HTML writer (slide show formats): In slide shows, don't change slide title
6402 to level 1 header (#2221).
6404 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
6405 TEI doesn't have `<book>` elements but only generic `<divN>` division
6406 elements. Checking the template for a trailing `</book>` is nonsensical.
6408 * MediaWiki writer: transform filename with underscores in images (#3052).
6409 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
6410 for internal links, but it also needs to happen for images.
6412 * ICML writer: replace partial function (!!) in table handling (#3175,
6415 * Man writer: allow section numbers that are not a single digit (#3089).
6417 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
6418 (#3068). In AsciiDoc, you must use a special form of emphasis
6419 (double `__`) for intraword emphasis. Pandoc was previously using
6420 this more than necessary.
6422 * EPUB writer: use stringify instead of plain writer for metadata
6423 (#3066). This means that underscores won't be used for emphasis,
6424 or CAPS for bold. The metadata fields will just have unadorned
6429 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
6430 with a `custom-style` key in the attributes will apply the corresponding
6431 key to the contained blocks or inlines.
6432 + Add ReaderT env to the docx writer (Jesse Rosenthal).
6433 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
6434 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
6435 on the command line. For finer-grained control, you can set
6436 the `dir` attribute in Div or Span elements.
6438 * Org writer (Albert Krewinkel):
6440 + Remove blank line after figure caption. Org-mode only treats an image
6441 as a figure if it is directly preceded by a caption.
6442 + Ensure blank line after figure. An Org-mode figure should be surrounded
6443 by blank lines. The figure would be recognized regardless, but images
6444 in the following line would unintentionally be treated as figures as
6446 + Ensure link targets are paths or URLs. Org-mode treats links as
6447 document internal searches unless the link target looks like a URL or
6448 file path, either relative or absolute. This change ensures that this
6450 + Translate language identifiers. Pandoc and Org-mode use different
6451 programming language identifiers. An additional translation between
6452 those identifiers is added to avoid unexpected behavior. This fixes a
6453 problem where language specific source code would sometimes be output
6455 + Drop space before footnote markers (Albert Krewinkel, #3162).
6456 The writer no longer adds an extra space before footnote markers.
6460 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
6461 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
6463 + Check for the `raw_html` extension before emitting a raw HTML block.
6464 + Abstract out note/ref function (Jesse Rosenthal).
6465 + Add ReaderT monad for environment variables (Jesse Rosenthal).
6467 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
6468 subtitle, author, date (#3119). Note that, as a result of this change,
6469 authors may need to update CSS.
6471 * revealjs template: Added `notes-server` option
6472 (jgm/pandoc-templates#212, Yoan Blanc).
6476 + Restore whitespace between paragraphs. This was
6477 a regression in the last release (jgm/pandoc-templates#207).
6478 + Added `themeoptions` variable (Carsten Gips).
6479 + Added `beamerarticle` variable. This causes the `beamerarticle`
6480 package to be loaded in beamer, to produce an article from beamer
6481 slides. (Carsten Gips)
6482 + Added support for `fontfamilies` structured variable
6484 + Added hypersetup options (Jake Zimmerman).
6488 + Added dummy definition for `\institute`.
6489 This isn't a standard command, and we want to avoid a crash when
6490 `institute` is used with the default template.
6491 + Define default figure placement (Václav Haisman), since pandoc
6492 no longer includes `[htbp]` for figures. Users with custom templates
6493 will want to add this. See #3103.
6494 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
6497 * Moved template compiling/rendering code to a separate library.
6498 `doctemplates`. This allows the pandoc templating system to be
6501 * Text.Pandoc.Error: Fix out of index error in `handleError`
6502 (Matthew Pickering). The fix is to not try to show the exact line when
6503 it would cause an out-of-bounds error as a result of included files.
6505 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
6507 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
6508 addresses. Technically `**@user` is a valid email address, but if we
6509 allow things like this, we get bad results in markdown flavors
6510 that autolink raw email addresses (see #2940). So we exclude a few
6511 valid email addresses in order to avoid these more common bad cases.
6513 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
6514 emit the alt text, emphasized. This accords with what the ODT writer
6515 currently does. The user will still get a warning about a nonexistent
6518 * Fix example in API documentation (#3176, Thomas Weißschuh).
6520 * Tell where to get tarball in INSTALL (#3062).
6522 * Rename README to MANUAL.txt and add GitHub-friendly README.md
6523 (Albert Krewinkel, Kolen Cheung).
6525 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
6529 + Put note on structured vars in separate paragraph (#2148, Albert
6530 Krewinkel). Make it clearer that structured author variables require a
6532 + Note that `--katex` works best with `html5` (#3077).
6533 + Fix the LaTeX and EPUB links in manual (Morton Fox).
6534 + Document `biblio-title` variable.
6536 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
6538 * Update KaTeX to v0.6.0 (Kolen Cheung).
6540 * Allow latest dependencies.
6542 * Use texmath 0.8.6.6 (#3040).
6544 * Allow http-client 0.4.30, which is the version in stackage lts.
6545 Previously we required 0.5.
6546 Remove CPP conditionals for earlier versions.
6548 * Remove support for GHC < 7.8 (Jesse Rosenthal).
6550 + Remove Compat.Monoid.
6551 + Remove an inline monad compatibility macro.
6552 + Remove Text.Pandoc.Compat.Except.
6553 + Remove directory compat.
6554 + Change constraint on mtl.
6555 + Remove unnecessary CPP condition in UTF8.
6556 + Bump base lower bound to 4.7.
6557 + Remove 7.6 build from .travis.yaml.
6558 + Bump supported ghc version in CONTRIBUTING.md.
6559 + Add note about GHC version support to INSTALL.
6560 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
6561 + Remove TagSoup compat.
6562 + Add EOL note to time compat module. Because time 1.4 is a boot library
6563 for GHC 7.8, we will support the compatibility module as long as we
6564 support 7.8. But we should be clear about when we will no longer need
6566 + Remove blaze-html CPP conditional.
6567 + Remove unnecessary CPP in custom Prelude.
6571 * Added Zim Wiki writer, template and tests. `zimwiki` is now
6572 a valid output format. (Alex Ivkin)
6574 * Changed email-obfuscation default to no obfuscation (#2988).
6575 + `writerEmailObfuscation` in `defaultWriterOptions` is now
6577 + the default for the command-line `--email-obfuscation` option is
6580 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
6584 + Support arbitrary raw inlines (Albert Krewinkel).
6585 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
6586 parlance) to be included as `@@format:raw foreign format text@@`.
6587 + Improve Div handling (Albert Krewinkel). Div blocks handling is
6588 changed to make the output look more like idiomatic org mode:
6589 - Div-wrapped content is output as-is if the div's attribute is the
6591 - Div containers with an id but neither classes nor key-value pairs
6592 are unwrapped and the id is added as an anchor.
6593 - Divs with classes associated with greater block elements are
6594 wrapped in a `#+BEGIN`...`#+END` block.
6595 - The old behavior for Divs with more complex attributes is kept.
6599 + Better support for raw LaTeX environments (#2758).
6600 Previously we just passed all raw TeX through when MathJax was used for
6601 HTML math. This passed through too much. With this patch, only raw
6602 LaTeX environments that MathJax can handle get passed through.
6603 This patch also causes raw LaTeX environments to be treated
6604 as math, when possible, with MathML and WebTeX output.
6606 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
6607 (#2993). Markdown line breaks involve a newline, and simple and pipe
6608 tables can't contain one.
6610 * Make --webtex work with the Markdown writer (#1177).
6611 This is a convenient option for people using
6612 websites whose Markdown flavors don't provide for math.
6616 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
6617 We treat display math like block quotes, and apply FirstParagraph style
6618 to paragraphs that follow them. These can be styled as the user
6619 wishes. (But, when the user is using indentation, this allows for
6620 paragraphs to continue after display math without indentation.)
6621 + Use actual creation time as doc prop (Jesse Rosenthal).
6622 Previously, we had used the user-supplied date, if available, for Word's
6623 document creation metadata. This could lead to weird results, as in
6624 cases where the user post-dates a document (so the modification might be
6625 prior to the creation). Here we use the actual computer time to set the
6630 + Don't URI-escape image source (#2825). Usually this is a local file,
6631 and replacing spaces with `%20` ruins things.
6632 + Allow 'standout' as a beamer frame option (#3007).
6633 `## Slide title {.standout}`.
6635 * RST reader: Fixed links with no explicit link text. The link
6636 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
6637 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
6638 Closes Debian #828167 -- reported by Christian Heller.
6642 + Fixed attributes (#2984). Attributes can't be followed by
6643 a space. So, `_(class)emph_` but `_(noclass) emph_`.
6644 + Fixed exponential parsing bug (#3020).
6645 + Fix overly aggressive interpretation as images (#2998).
6646 Spaces are not allowed in the image URL in textile.
6650 + Fix `\cite` so it is a NormalCitation not AuthorInText.
6651 + Strip off double quotes around image source if present (#2825).
6652 Avoids interpreting these as part of the literal filename.
6656 + Add semicolon to list of special chars (Albert Krewinkel)
6657 Semicolons are used as special characters in citations syntax. This
6658 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
6659 suffix]`. Previously, parsing would have failed unless there was a space
6660 or other special character as the last <prefix> character.
6661 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
6662 A specification for an official Org-mode citation syntax was drafted by
6663 Richard Lawrence and enhanced with the help of others on the orgmode
6664 mailing list. Basic support for this citation style is added to the
6666 + Support arbitrary raw inlines (Albert Krewinkel).
6667 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
6668 parlance) to be included as `@@format:raw foreign format text@@`.
6669 + Remove partial functions (Albert Krewinkel, #2991).
6670 Partial functions like `head` lead to avoidable errors and should be
6671 avoided. They are replaced with total functions.
6672 + Support figure labels (Albert Krewinkel, #2496, #2999).
6673 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
6674 respective image. This allows e.g. the LaTeX to add proper `\label`
6676 + Improve tag and properties type safety (Albert Krewinkel).
6677 Specific newtype definitions are used to replace stringly typing of tags
6678 and properties. Type safety is increased while readability is improved.
6679 + Parse as headlines, convert to blocks (Albert Krewinkel).
6680 Emacs org-mode is based on outline-mode, which treats documents as trees
6681 with headlines are nodes. The reader is refactored to parse into a
6682 similar tree structure. This simplifies transformations acting on
6683 document (sub-)trees.
6684 * Refactor comment tree handling (Albert Krewinkel).
6685 Comment trees were handled after parsing, as pattern matching on lists
6686 is easier than matching on sequences. The new method of reading
6687 documents as trees allows for more elegant subtree removal.
6688 * Support archived trees export options (Albert Krewinkel).
6689 Handling of archived trees can be modified using the `arch` option.
6690 Archived trees are either dropped, exported completely, or collapsed to
6691 include just the header when the `arch` option is nil, non-nil, or
6692 `headline`, respectively.
6693 * Put export setting parser into module (Albert Krewinkel).
6694 Export option parsing is distinct enough from general block parsing to
6695 justify putting it into a separate module.
6696 * Support headline levels export setting (Albert Krewinkel).
6697 The depths of headlines can be modified using the `H` option. Deeper
6698 headlines will be converted to lists.
6699 * Replace ugly code with view pattern (Albert Krewinkel).
6700 Some less-than-smart code required a pragma switching of overlapping
6701 pattern warnings in order to compile seamlessly. Using view patterns
6702 makes the code easier to read and also doesn't require overlapping
6703 pattern checks to be disabled.
6704 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
6705 Org rules for allowed characters before or after markup chars were not
6706 checked for verbatim text. This resultet in wrong parsing outcomes of
6707 if the verbatim text contained e.g. space enclosed markup characters as
6708 part of the text (`=is_substr = True=`). Forcing the parser to update
6709 the positions of allowed/forbidden markup border characters fixes this.
6711 * LaTeX template: fix for obscure hyperref/xelatex issue.
6712 Here's a minimal case:
6714 \documentclass[]{article}
6715 \usepackage{hyperref}
6720 Without this change, this fails on the second invocation of xelatex.
6721 This affects inputs this like `# %á` with pdf output via xelatex.
6723 * trypandoc: call results 'html' instead of 'result'.
6724 This is for better compatibility with babelmark2.
6726 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
6727 MultiMarkdown was only mentioned as a supported Markdown dialect but not
6728 as a possible input or output format. A brief mention is added
6729 everywhere the other supported markdown dialects are mentioned.
6731 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
6732 Raw HTML is kept when the output format is Emacs Org mode.
6734 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
6736 * Text.Pandoc.Shared:
6738 + Introduce blocksToInlines function (Jesse Rosenthal).
6739 This is a lossy function for converting `[Block] -> [Inline]`. Its main
6740 use, at the moment, is for docx comments, which can contain arbitrary
6741 blocks (except for footnotes), but which will be converted to spans.
6742 This is, at the moment, pretty useless for everything but the basic
6743 `Para` and `Plain` comments. It can be improved, but the docx reader
6744 should probably emit a warning if the comment contains more than this.
6745 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
6746 + Add further formats for `normalizeDate` (Jesse Rosenthal).
6747 We want to avoid illegal dates -- in particular years with greater than
6748 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
6749 `%Y%m`, and finally `%Y`.
6750 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
6751 We only allow years between 1601 and 9999, inclusive. The ISO 8601
6752 actually says that years are supposed to start with 1583, but MS Word
6753 only allows 1601-9999. This should stop corrupted word files if the date
6754 is out of that range, or is parsed incorrectly.
6755 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
6756 Previously we parsed a list of dates, took the first one, and then
6757 tested its year range. That meant that if the first one failed, we
6758 returned nothing, regardless of what the others did. Now we test for
6759 sanity before running `msum` over the list of Maybe values. Anything
6760 failing the test will be Nothing, so will not be a candidate.
6764 + Add simple comment functionality. (Jesse Rosenthal).
6765 This adds simple track-changes comment parsing to the docx reader. It is
6766 turned on with `--track-changes=all`. All comments are converted to
6767 inlines, which can list some information. In the future a warning will be
6768 added for comments with formatting that seems like it will be excessively
6769 denatured. Note that comments can extend across blocks. For that reason
6770 there are two spans: `comment-start` and `comment-end`. `comment-start`
6771 will contain the comment. `comment-end` will always be empty. The two
6772 will be associated by a numeric id.
6773 + Enable warnings in top-level reader (Jesse Rosenthal).
6774 Previously we had only allowed for warnings in the parser. Now we allow
6775 for them in the `Docx.hs` as well. The warnings are simply concatenated.
6776 + Add warning for advanced comment formatting. (Jesse Rosenthal).
6777 We can't guarantee we'll convert every comment correctly, though we'll
6778 do the best we can. This warns if the comment includes something other
6780 + Add tests for warnings. (Jesse Rosenthal).
6781 + Add tests for comments (Jesse Rosenthal).
6782 We test for comments, using all track-changes options. Note that we
6783 should only output comments if `--track-changes=all`. We also test for
6784 emitting warnings if there is complicated formatting.
6786 * README: update to include track-changes comments. (Jesse Rosenthal)
6788 * Improved Windows installer - don't ignore properties set on command-line.
6789 See #2708. Needs testing to see if this resolves the issue.
6792 * Process markdown extensions on command line in L->R order (#2995).
6793 Previously they were processed, very unintuitively, in R->L
6794 order, so that `markdown-tex_math_dollars+tex_math_dollars`
6795 had `tex_math_dollars` disabled.
6797 * Added `secnumdepth` variable to LaTeX template (#2920).
6799 * Include table of contents in README.html in Windows package.
6801 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
6802 In Writers.Shared, we strip leading and trailing spaces for display
6803 math. Since SoftBreak's are treated as spaces, we should strip those
6806 * beamer, latex templates: pass biblatexoptions directly in package load.
6807 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
6809 * CPP workaround for deprecation of `parseUrl` in http-client.
6811 * Removed some redundant class constraints.
6813 * make_oxs_package.sh - use OSX env variable.
6815 * Replaced INSTALL with INSTALL.md, incorporating INSTALL and the
6816 old installing page from website.
6818 * Added `winpkg` target to Makefile. This downloads the windows package
6819 from appveyor and signs it using the key.
6821 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
6822 Raw TeX is kept verbatim when the output format is Emacs Org mode.
6824 * Support math with haddock-library >= 1.4.
6826 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
6827 wouldn't accept the package.
6829 * Update library dependency versions.
6833 * New output format: `docbook5` (Ivo Clarysse).
6835 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
6840 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
6841 This allows header attributes to be added to org documents in the form
6842 of `:PROPERTIES:` drawers. All available attributes are stored as
6843 key/value pairs. This reflects the way the org reader handles
6844 `:PROPERTIES:` blocks.
6845 + Add drawer capability (Carlos Sosa). For the implementation of the
6846 Drawer element in the Org Writer, we make use of a generic Block
6847 container with attributes. The presence of a `drawer` class defines
6848 that the `Div` constructor is a drawer. The first class defines the
6849 drawer name to use. The key-value list in the attributes defines
6850 the keys to add inside the Drawer. Lastly, the list of Block elements
6851 contains miscellaneous blocks elements to add inside of the Drawer.
6852 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
6853 reserved for internal use by Org-mode and should not be used.
6854 The `CUSTOM_ID` property is to be used instead, it is converted to the
6855 `ID` property for certain export format.
6859 + Ignore `--incremental` unless output format is beamer (#2843).
6860 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
6861 Allow for optional argument in square brackets.
6862 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
6863 This allows one to access the hyphenation patterns in CTAN's
6865 + Add missing languages from hyph-utf8 (Andrew Dunning).
6866 + Improve use of `\strut` with `\minipage` inside tables
6867 (Jose Luis Duran). This improves spacing in multiline
6869 + Use `{}` around options containing special chars (#2892).
6870 + Avoid lazy `foldl`.
6871 + Don't escape underscore in labels (#2921). Previously they were
6873 + brazilian -> brazil for polyglossia (#2953).
6875 * HTML writer: Ensure mathjax link is added when math appears in footnote
6876 (#2881). Previously if a document only had math in a footnote, the
6877 MathJax link would not be added.
6879 * EPUB writer: set `navpage` variable on nav page.
6880 This allows templates to treat it differently.
6884 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
6885 + Properly handle `ulink`/`link` (Ivo Clarysse).
6889 + Unescape URIs in spine (#2924).
6890 + EPUB reader: normalise link id (Mauro Bieg).
6894 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
6895 `moveTo` and `moveFrom` are track-changes tags that are used when a
6896 block of text is moved in the document. We now recognize these tags and
6897 treat them the same as `insert` and `delete`, respectively. So,
6898 `--track-changes=accept` will show the moved version, while
6899 `--track-changes=reject` will show the original version.
6900 + Tests for track-changes moving (Jesse Rosenthal).
6902 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
6903 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
6904 would error out if zip-archive failed. We change the archive extraction
6905 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
6907 * Markdown, HTML readers: be more forgiving about unescaped `&` in
6908 HTML (#2410). We are now more forgiving about parsing invalid HTML with
6909 unescaped `&` as raw HTML. (Previously any unescaped `&`
6910 would cause pandoc not to recognize the string as raw HTML.)
6914 + Added bracket syntax for native spans (#168).
6915 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
6916 + Added `-s` to markdown-reader-more test.
6918 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
6919 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
6921 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
6924 * RST reader: Support `:class:` option for code block in RST reader
6927 * Org reader (all Albert Krewinkel, except where noted otherwise):
6929 + Stop padding short table rows.
6930 Emacs Org-mode doesn't add any padding to table rows. The first
6931 row (header or first body row) is used to determine the column count,
6932 no other magic is performed.
6933 + Refactor rows-to-table conversion. This refactors
6934 the codes conversing a list table lines to an org table ADT.
6935 The old code was simplified and is now slightly less ugly.
6936 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
6937 This fixes Org mode parsing of some corner cases regarding empty cells
6938 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
6939 two empty cells, but would be parsed as a single cell containing a pipe
6940 character. Empty rows where parsed as alignment rows and dropped from
6942 + Fix spacing after LaTeX-style symbols.
6943 The org-reader was dropping space after unescaped LaTeX-style symbol
6944 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
6945 instead. This seems to be because the LaTeX-reader treats the
6946 command-terminating space as part of the command. Dropping the trailing
6947 space from the symbol-command fixes this issue.
6948 + Print empty table rows. Empty table rows should not
6949 be dropped from the output, so row-height is always set to be at least 1.
6950 + Move parser state into separate module.
6951 The org reader code has become large and confusing. Extracting smaller
6952 parts into submodules should help to clean things up.
6953 + Add support for sub/superscript export options.
6954 Org-mode allows to specify export settings via `#+OPTIONS` lines.
6955 Disabling simple sub- and superscripts is one of these export options,
6956 this options is now supported.
6957 + Support special strings export option Parsing of special strings
6958 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
6960 + Support emphasized text export option. Parsing of emphasized text can
6961 be toggled using the `*` option. This influences parsing of text marked
6962 as emphasized, strong, strikeout, and underline. Parsing of inline math,
6963 code, and verbatim text is not affected by this option.
6964 + Support smart quotes export option. Reading of smart quotes can be
6965 toggled using the `'` option.
6966 + Parse but ignore export options. All known export options are parsed
6968 + Refactor block attribute handling. A parser state attribute was used
6969 to keep track of block attributes defined in meta-lines. Global state
6970 is undesirable, so block attributes are no longer saved as part of the
6971 parser state. Old functions and the respective part of the parser state
6973 + Use custom `anyLine`. Additional state changes need to be made after
6974 a newline is parsed, otherwise markup may not be recognized correctly.
6975 This fixes a bug where markup after certain block-types would not be
6977 + Add support for `ATTR_HTML` attributes (#1906).
6978 Arbitrary key-value pairs can be added to some block types using a
6979 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
6980 when exporting to HTML, but since we cannot make this distinction here,
6981 the attributes are always added. The functionality is now supported
6983 + Add `:PROPERTIES:` drawer support (#1877).
6984 Headers can have optional `:PROPERTIES:` drawers associated with them.
6985 These drawers contain key/value pairs like the header's `id`. The
6986 reader adds all listed pairs to the header's attributes; `id` and
6987 `class` attributes are handled specially to match the way `Attr` are
6988 defined. This also changes behavior of how drawers of unknown type
6989 are handled. Instead of including all unknown drawers, those are not
6990 read/exported, thereby matching current Emacs behavior.
6991 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
6992 + Respect drawer export setting. The `d` export option can be used
6993 to control which drawers are exported and which are discarded.
6994 Basic support for this option is added here.
6995 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
6996 Also fix up tab handling for leading whitespace in code blocks.
6997 + Support new syntax for export blocks. Org-mode version 9
6998 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
6999 where `<FORMAT>` is the format of the block's content, the new
7000 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
7002 + Refactor `BEGIN...END` block parsing.
7003 + Fix handling of whitespace in blocks, allowing content to be indented
7004 less then the block header.
7005 + Support org-ref style citations. The *org-ref* package is an
7006 org-mode extension commonly used to manage citations in org
7007 documents. Basic support for the `cite:citeKey` and
7008 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
7009 + Split code into separate modules, making for cleaner code and
7012 * Added `docbook5` template.
7014 * `--mathjax` improvements:
7016 + Use new CommonHTML output for MathJax (updated default MathJax URL,
7018 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
7019 This is designed for cases where the input is always TeX and maximal
7020 conformity with TeX is desired. It seems to be smaller and load faster
7021 than what we used before. See #2858.
7022 + Load the full MathJax config to maximize loading speed (KolenCheung).
7024 * Bumped upper version bounds to allow use of latest packages
7025 and compilation with ghc 8.
7027 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
7028 #2310, #2310, #2824). This fixes behavior of roots, e.g.
7029 `\sqrt[3]{x}`, and issues with sub/superscript positioning
7030 and matrix column alignment in docx.
7034 + Clarified documentation of `implicit_header_references` (#2904).
7035 + Improved documentation of `--columns` option.
7037 * Added appveyor setup, with artifacts (Jan Schulz).
7039 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
7041 * LaTeX template: support for custom font families (vladipus).
7042 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
7043 can find some other usages. Example usage in YAML metadata:
7046 - name: \cyrillicfont
7047 font: Liberation Serif
7048 - name: \cyrillicfonttt
7049 options: Scale=MatchLowercase
7052 * Create unsigned msi as build artifact in appveyor build.
7054 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
7058 * LaTeX writer: Fixed position of label in figures (#2813).
7059 Previously the label wasn't in the right place, and `\ref`
7060 wouldn't work properly.
7061 * Added .tei test files to pandoc.cabal so they'll be included
7063 * Updated copyright dates.
7067 * Fixed serious regression in `htmlInBalanced`, which caused
7068 newlines to be omitted in some raw HTML blocks in Markdown
7073 * File scope is no longer used when there are no input files (i.e.,
7074 when input comes from stdin). Previously file scope was triggered
7075 when the `json` reader was specified and input came from `stdin`,
7076 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
7077 thanks to Fedor Sheremetyev for calling the bug to our attention.)
7078 * Improved documentation of templates (#2797).
7082 * Added `--file-scope` option (Jesse Rosenthal).
7083 By default pandoc operates on multiple files by first concatenating
7084 them (around extra line breaks) and then processing the joined file. So
7085 it only parses a multi-file document at the document scope. This has the
7086 benefit that footnotes and links can be in different files, but for
7087 some purposes it is useful to parse the individual files first
7088 and then combine their outputs (e.g. when the files use footnotes
7089 or links with the same labels). The `--file-scope` option causes
7090 pandoc to parse the files first, and then combine the parsed output,
7091 instead of combining before parsing. `--file-scope` is selected
7092 automatically for binary input files (which cannot be concatenated)
7093 and for pandoc json.
7095 * Add TEI Writer (Chris Forster) and `tei` output format.
7097 * Added a general `ByteStringReader` with warnings, used by the docx
7098 reader (API change, Jesse Rosenthal).
7100 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
7102 * Changed type of `Shared.uniqueIdent`'s argument from `[String]`
7103 to `Set String.` This avoids performance problems in documents with
7104 many identically named headers (API change, #2671).
7106 * Removed `tex_math_single_backslash` from `markdown_github` options
7109 * Make language extensions as well as full language names
7110 trigger syntax highlighting. For example, `py` will now work as
7111 well as `python` (jgm/highlighting-kate#83).
7113 * Added `institute` variable to latex, beamer templates (Fraser
7114 Tweedale, Josef Svenningsson).
7116 * Docx reader (Jesse Rosenthal):
7118 + Handle alternate content. Some word functions (especially graphics)
7119 give various choices for content so there can be backwards compatibility.
7120 + Don't turn numbered headers into lists.
7121 + Docx Reader: Add state to the parser, for warnings
7122 + Update feature checklist in source code.
7123 + Get rid of `Modifiable` typeclass.
7124 + Add tests for adjacent hyperlinks.
7125 + Add a "Link" modifier to `Reducible`. We want to make sure that
7126 links have their spaces removed, and are appropriately smushed
7131 + Fixed behavior of base tag (#2777).
7132 If the base path does not end with slash, the last component
7133 will be replaced. E.g. base = `http://example.com/foo`
7134 combines with `bar.html` to give `http://example.com/bar.html`.
7135 If the href begins with a slash, the whole path of the base
7136 is replaced. E.g. base = `http://example.com/foo/` combines
7137 with `/bar.html` to give `http://example.com/bar.html`.
7138 + Rewrote `htmlInBalanced`. This version avoids an exponential
7139 performance problem with `<script>` tags, and it should be faster
7141 + Properly handle an empty cell in a simple table (#2718).
7142 + Handle multiple `<meta>` tags with same name. Put them in a list
7143 in the metadata so they are all preserved, rather than (as before)
7144 throwing out all but one..
7148 + Improved pipe table parsing (#2765).
7149 + Allow `+` separators in pipe table cells. We already allowed
7150 them in the header, but not in the body rows, for some reason.
7151 This gives compatibility with org-mode tables.
7152 + Don't cross line boundary parsing pipe table row.
7153 Previously an Emph element could be parsed across the newline
7154 at the end of the pipe table row.
7155 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
7156 performance (#2730).
7157 + Fixed bug with smart quotes around tex math.
7161 + Handle interior `$` characters in math (#2743). For example,
7163 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
7164 This gives better results when people write e.g. `\TeX{}` in Markdown.
7165 + Properly handle LaTeX "math" environment as inline math (#2171).
7167 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
7170 * Org reader (Albert Krewinkel):
7172 + Prefix even empty figure names with "fig:" (#2643). The
7173 convention used by pandoc for figures is to mark them by prefixing
7174 the name with `fig:`. The org reader failed to do this if a figure
7176 + Refactor link-target processing (#2684).
7178 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
7179 Thanks to @c-foster.
7181 * HTML writer: Don't include alignment attribute for default table columns.
7182 Previously these were given "left" alignment. Better to leave off
7183 alignment attributes altogether (#2694).
7185 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
7186 better compatibility with other Markdown flavors (Henrik Tramberend).
7190 + Use image identifier to create a label and hypertarget for
7191 figures (Mauro Bieg).
7192 + Avoid double toprule in headerless table with caption (#2742).
7193 + Clean up options parser (Jesse Rosenthal).
7194 + Treat `memoir` template with `article` option as article, instead
7195 of treating all `memoir` templates as books.
7196 + Allow more flexible table alignment (Henrik Tramberend, #2665).
7197 New default is not to include `[c]` option (which is the default
7198 anyway if no positioning is specified). Now LaTeX emplates can
7199 control the overall table alignment in a document by setting the
7200 longtable length variables `LTleft` and `LTright`. For example,
7201 `\setlength\LTleft\parindent\setlength\LTright\fill`
7202 will create left-aligned tables that respect paragraph indentation.
7204 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
7206 * Org writer - pass through RawInline with format "org".
7208 * DokuWiki writer: use `$$` for display math.
7210 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
7212 * Make protocol-relative URIs work again (#2737).
7214 * make_osx_package.sh: Use env variable for developer id certs.
7216 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
7219 * Allow `zip-archive` 0.3.
7221 * Allow `aeson` 0.11.
7225 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
7227 * Fixed regression in latex smart quote parsing (#2645).
7228 In cases where a match was not found for a quote, everything
7229 from the open quote to the end of the paragraph was being dropped.
7233 * Fixed regression with `--latex-engine` (#2618). In 1.16 `--latex-engine`
7234 raises an error if a full path is given.
7236 * Org reader: Fix function dropping subtrees tagged `:noexport`
7237 (Albert Krewinkel, #2628):
7239 * Markdown reader: renormalize table column widths if they exceed 100%
7242 * Textile reader: don't allow block HTML tags in inline contexts.
7243 The reader previously did allow this, following redcloth,
7244 which happily parses
7246 Html blocks can be <div>inlined</div> as well.
7250 <p>Html blocks can be <div>inlined</div> as well.</p>
7252 This is invalid HTML. The above sample now produces;
7254 <p>Html blocks can be</p>
7260 * Improved default template lookup for custom lua scripts (#2625).
7261 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
7262 pandoc would look for the template in
7263 `~/.pandoc/templates/default./path/to/lua/script.lua`.
7264 With this change it will look in the more reasonable
7265 `~/.pandoc/templates/default.script.lua`. This makes it possible to
7266 store default templates for custom writers.
7268 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
7271 * LaTeX writer: restore old treatment of Span (#2624). A Span is
7272 now rendered with surrounding `{}`, as it was before 1.16.
7274 * Entity handling fixes: improved handling of entities like
7275 `⟨` that require a trailing semicolon. Allow uppercase
7276 `x` in numerical hexadecimal character references, working
7277 around a tagsoup bug.
7279 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
7280 memory use on compile. With aeson 0.10 we were getting an out of
7281 memory error on a 2GB Ubuntu 64-bit VM.
7283 * Improved deb package creation script. Made `DPKGVER` work.
7284 Renamed `COMMIT` to `TREE`. You should now be able to do
7285 `TREE=1.16.0.1 DPKGVER=2 make deb`.
7290 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
7292 + Added syntax for link and image attributes to pandoc's Markdown.
7293 + Updated readers and writers to use link and image attributes
7295 + Support image attributes in Docx, Textile, RST readers.
7297 * Renamed link attribute extensions. The old `link_attributes` is
7298 now `mmd_link_attributes`, and `link_attributes` now enables the
7299 new pandoc-style link and image attributes (API change).
7300 Note: this change could break some existing workflows.
7302 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
7303 Added threefold wrapping option.
7305 + Command line option: deprecated `--no-wrap`, added
7306 `--wrap=[auto|none|preserve]`
7307 + Added `WrapOption`, exported from `Text.Pandoc.Options`
7308 + Changed type of `writerWrapText` in `WriterOptions` from
7309 `Bool` to `WrapOption`.
7310 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
7311 + Supported `SoftBreak` in readers and writers.
7313 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
7314 change, Mauro Bieg).
7316 * Added `--dpi` command-line option (Mauro Bieg).
7318 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
7319 This change makes `--no-tex-ligatures` affect the LaTeX reader
7320 as well as the LaTeX and ConTeXt writers. If it is used,
7321 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
7322 literally, rather than parsing ligatures for quotation marks
7323 and dashes. And the LaTeX writer will print unicode quotation
7324 mark and dash characters literally, rather than converting
7325 them to the standard ASCII ligatures. Note that `--smart` has
7326 no effect on the LaTeX reader. `--smart` is still the default
7327 for all input formats when LaTeX or ConTeXt is the output format,
7328 *unless* `--no-tex-ligatures` is used.
7330 Some examples to illustrate the logic:
7333 % echo "'hi'" | pandoc -t latex
7335 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
7337 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
7339 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
7341 % echo "'hi'" | pandoc -f latex
7345 * Removed deprecated options `--offline` and `--html5`.
7347 * Fixed language code for Czech (`cs` not `cz`) (#2597).
7349 * Implemented `east_asian_line_breaks` extension (#2586).
7350 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
7351 to `Extension` (API change). This extension is like
7352 `ignore_line_breaks`, but smarter -- it only ignores line breaks
7353 between two East Asian wide characters. This makes it better suited
7354 for writing with a mix of East Asian and non-East Asian scripts.
7356 * Added support for PDF creation via `wkhtmltopdf`.
7357 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
7358 if you have math.) Margins can be set using the variables
7359 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
7360 Other styling can be done through CSS.
7362 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
7363 We were capturing final colons as in `[@foo: bar]`; the citation id
7364 was being parsed as `@foo:`.
7368 + Fixed image syntax for local files (#2589).
7369 + Changed type of `writeICML` (Mauro Bieg).
7370 API change: It is now `WriterOptions -> Pandoc -> IO String`.
7371 Also handle new image attributes.
7372 + Intersperse line breaks instead of appending them to
7373 every `ParagraphStyleRange` (Mauro Bieg, #2501).
7374 + Add `Cite` style to citations (Mauro Bieg).
7375 + Added figure handling (#2590, Mauro Bieg).
7376 + Better handling of math. Instead of just printing the raw tex,
7377 we now try to fake it with unicode characters.
7379 * HTML writer: Include `example` class for example lists (#2524).
7381 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
7383 + Support for percentage widths/heights
7384 + Use `Attr` instead of title to get dimensions from ODT walker
7385 to `writeOpenDocument`.
7389 + Support anchors in spans and divs with id elements
7390 (jgm/pandoc-citeproc#143).
7391 + Fixed code blocks (#1861).
7393 * Haddock writer: omit formatting inside links, which isn't supported
7396 * MediaWiki writer: Fixed spacing issues in table cells.
7398 + Start cell on new line unless it's a single Para or Plain
7400 + For single Para or Plain, insert a space after the `|` to
7401 avoid problems when the text begins with a character like
7404 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
7408 + Add support for GAP highlighting using listings (Raniere Silva).
7409 + Consider `header-includes` content as well as templates
7410 when determining whether to use csquotes (Andreas Lööw).
7411 + Create defaults for geometry using `margin-left` etc.
7412 If `geometry` has no value, but `margin-left`, `margin-right`,
7413 `margin-top`, and/or `-margin-bottom` are given, a default value
7414 for `geometry` is created from these. Note that these variables
7415 already affect PDF production via HTML5 with `wkhtmltopdf`.
7417 * ConTeXt writer: set default layout based on `margin-left`, etc.
7418 This sets up `\setuplayout` based on the variables `margin-left`,
7419 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
7422 * Docx writer: better handling of PDF images. Previously we tried
7423 to get the image size from the image even if an explicit size was
7424 specified. Since we still can't get image size for PDFs, this made
7425 it impossible to use PDF images in docx. Now we don't try to get
7426 the image size when a size is already explicitly specified.
7428 * Markdown writer: use raw HTML for link/image attributes when
7429 the `link_attributes` extension is unset and `raw_html` is set (#2554).
7431 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
7435 + Improved smart quote parsing (#2555). This fixes redering of
7437 + Use curly quotes for unmatched ` (#2555).
7438 + Allow blank space between braced arguments of commands (#2592).
7442 + Improved pipe table relative widths. Previously pipe table
7443 columns got relative widths (based on the header underscore lines)
7444 when the source of one of the rows was greater in width than the
7445 column width. This gave bad results in some cases where much of
7446 the width of the row was due to nonprinting material (e.g. link
7447 URLs). Now pandoc only looks at printable width (the width of a
7448 plain string version of the source), which should give better results.
7449 Thanks to John Muccigrosso for bringing up the issue.
7450 + Fixed parsing bug with macros. Previously macro definitions in
7451 indented code blocks were being parsed as macro definitions, not code.
7453 * Textile reader: skip over attribute in image source (#2515).
7454 We don't have a place yet for styles or sizes on images, but
7455 we can skip the attributes rather than incorrectly taking them
7456 to be part of the filename.
7458 * Docx reader: Handle dummy list items (Jesse Rosenthal).
7459 These come up when people create a list item and then delete the
7460 bullet. It doesn't refer to any real list item, and we used to ignore
7463 * CommonMark reader/writer rewritten to use latest `cmark`.
7465 * Fixed Emoji character definitions (#2523). There were many bugs in the
7468 * `Text.Pandoc.CSS`:
7470 + Added `pickStylesToKVs` function to extract multiple properties at
7471 once (API change, Mauro Bieg).
7472 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
7474 * `trypandoc`: sort drop-down lists.
7478 + Made `\euro` conditional on presence of character.
7479 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
7480 + Moved `header-includes` before setting of title (Thomas Hodgson),
7481 to match the LaTeX template (jgm/pandoc-templates#168).
7482 + Added `section-titles` variable (defaults to true)
7483 to enable/suppress section title pages in beamer
7484 slide shows (Thomas Hodgson).
7485 + Moved beamer themes after fonts, so that themes can
7486 change fonts. (Previously the fonts set were being
7487 clobbered by lmodern.sty.) (Thomas Hodgson).
7489 * Beamer/LaTeX template changes (Thomas Hodgson):
7490 + Added `thanks` variable
7491 + Use `parskip.sty` when `indent` isn't set (fall back to using
7492 `setlength` as before if `parskip.sty` isn't available).
7493 + Use `biblio-style` with biblatex.
7494 + Added `biblatexoptions` variable.
7496 * LaTeX template changes:
7498 + Added `paper` after `$papersize$` variable in latex template.
7499 Thus you can say `papersize: a4` and the latex will contain
7500 `a4paper`. This change may break some existing workflows; if
7501 you currently specify `a4paper`, you'll get `a4paperpaper` which
7502 is meaningless. However, the change seems worth it, as it will
7503 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
7504 and html->pdf via wkhtmltopdf.
7505 + Only pass options to color package if `colorlinks` is set
7507 + Make definition of `\euro` conditional in xelatex/lualatex,
7508 as it is already for pdflatex (Andrew Dunning).
7509 + Removed setting of `subject` in PDF metadata.
7510 This used to be set to the subtitle, but really the subtitle
7511 need not give the subject. Also, `subtitle` can contain formatting,
7512 so we'd need, at least, a plain text version for this.
7513 + Moved `header-includes` before setting of `\title`, `\author`,
7514 etc. This allows these macros to be redefined.
7515 + Use `\subtitle` command for `subtitle`, instead of tacking it
7516 on to the title as before. We give a no-op fallback definition if it
7517 is not defined. This change should produce much better results
7518 in classes that support `\subtitle`. With the default article
7519 class, which does not define `\subtitle`, subtitles will no
7520 longer be printed unless the user defines `\subtitle` and
7521 redefines `\maketitle`.
7522 + Moved redefinitions of `\paragraph` and `\subparagraph` to
7523 before header-includes.
7527 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
7528 needed for things to work on ConTeXt stable from TeXLive 2015.
7529 + Revert use of `\setuphead` in title block (Andrew Dunning,
7532 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
7534 * Fixed man template so disabling hyphenation actually works.
7535 The command needs to come after .TH.
7537 * Added 'navigation' variable to beamer template (#2543).
7538 Valid values are `empty` (the default), `horizontal`, `vertical`,
7539 and `frame`. Note that this changes the default behavior from
7540 `horizontal` to `empty`. Closes #2543.
7542 * Added `toc` to HTML slide format templates (Andrew Dunning),
7543 so that `--toc` creates a contents slide.
7545 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
7547 * Allow pipe tables with no body rows (#2556).
7548 Previously this raised a runtime error.
7550 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
7551 as URL. The Haskell URI parsing routines will accept "C:" as a
7552 scheme, so we rule that out manually. This helps with
7553 `--self-contained` and absolute Windows paths.
7555 * Define a `meta-json` variable for all writers (#2019). This contains
7556 a JSON version of all the metadata, in the format selected for the
7557 writer. So, for example, to get just the YAML metadata, you can run
7558 pandoc with the following custom template: `$meta-json$`. The intent
7559 is to make it easier for static site generators and other tools to get
7562 * Document limitations of --self-contained (#2553).
7564 * Improved Citations section of README (#2551). Added information
7565 about `link-citations` and a link to the pandoc-citeproc man page.
7567 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
7570 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
7572 * Improved implicit pandoc-citeproc inclusion.
7573 The filter pandoc-citeproc is automatically used when
7574 `--bibliography` is specified on the command line, unless
7575 `--natbib` or `--biblatex` is used. However, previously this
7576 only worked if `--bibliography` was spelled out in full, and not
7577 if `--biblio` was used.
7579 * reveal.js: Interpret pauses correctly for all headers (#2530).
7580 Previously, when using headers below the slide level, pauses are left
7581 uninterpreted into pauses. In my opinion, unexpected behavior but
7582 intentional looking at the code.
7584 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
7586 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
7589 * ImageSize: Added functions for converting between image dimensions
7592 * Use lts-3.18 in stack.yaml. This avoids Windows build
7593 issues with the HTTP library.
7595 * Bump version bounds for dependencies.
7599 * Added two missing test files, and `stack.yaml`, to
7600 `extra-source-files` so they're included in the source tarball.
7602 * reveal.js template: Fixed parallaxBackground options.
7603 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
7604 need integer values, not strings. (Vaughn Iverson)
7608 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
7609 ConTeXt rather than LaTeX (#2463).
7611 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
7613 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
7614 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
7617 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
7618 parsing (#2469). Tightened up the inline HTML parser so it disallows
7621 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
7625 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
7626 Paragraphs can be followed by lists, even if there is no blank line
7627 between the two blocks. However, this should only be true if the
7628 paragraph is not within a list, were the preceding block should be
7629 parsed as a plain instead of paragraph (to allow for compact lists).
7630 Thanks to @rgaiacs for bringing this up.
7631 + Allow toggling header args (Albert Krewinkel, #2269).
7632 Org-mode allows to skip the argument of a code block header argument if
7633 it's toggling a value. Argument-less headers are now recognized,
7634 avoiding weird parsing errors.
7635 + Fix markup parsing in headers (Albert Krewinkel, #2504).
7636 Markup as the very first item in a header wasn't recognized. This was
7637 caused by an incorrect parser state: positions at which inline markup
7638 can start need to be marked explicitly by changing the parser state.
7639 This wasn't done for headers. The proper function to update the state
7640 is now called at the beginning of the header parser, fixing this issue.
7641 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
7642 Smart quotes, ellipses, and dashes should behave like normal quotes,
7643 single dashes, and dots with respect to text markup parsing.
7644 + Require whitespace around definition list markers (#2518).
7645 This rule was not checked before, resulting in bugs with footnotes
7646 and some link types.
7650 + Pipe tables with long lines now get relative cell widths (#2471).
7651 If a pipe table contains a line longer than the column width (as set by
7652 `--columns` or 80 by default), relative widths are computed based on the
7653 widths of the separator lines relative to the column width. This should
7654 solve persistent problems with long pipe tables in LaTeX/PDF output, and
7655 give more flexibility for determining relative column widths in other
7656 formats, too. For narrower pipe tables, column widths of 0 are used,
7657 telling pandoc not to specify widths explicitly in output formats that
7659 + Improved parser for `mmd_title_block`. We now allow blank metadata
7660 fields. These were explicitly disallowed before.
7661 + Citation keys can now contain `://`, so URLs and DOIs can be used
7662 as citation keys (jgm/pandoc-citeproc#166).
7664 * Beamer template: fix incompatibility of section slides with natbib.
7665 Natbib (and presumably biblatex) bibliography commands create
7666 their own section. Since these are in frame environments,
7667 we have an incompatibility with the `\AtBeginSection` macro
7668 which creates a special frame when a new section occurs.
7669 (We can't have a frame inside another frame.) This change disables
7670 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
7671 bringing the problem to my attention. This supersedes #145. See
7674 * Textile reader: don't do smart punctuation unless explicitly asked
7675 (#2480). Note that although smart punctuation is part of the textile
7676 spec, it's not always wanted when converting from textile
7677 to, say, Markdown. So it seems better to make this an option.
7679 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
7680 The `comment` environment is handled in a similar way to the
7681 `verbatim` environment, except that its content is discarded.
7683 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
7684 Jesse Rosenthal). This fixes a problem with links in notes.
7686 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
7687 (Mauro Bieg). For LaTeX, also collect `lang` and `dir` attributes on
7688 spans and divs to set the `lang`, `otherlangs` and `dir` variables if
7689 they aren’t set already. See #895.
7693 + Use proper command for `\textarabic` (Mauro Bieg).
7694 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
7695 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
7696 to link to Div or Span elements. We now don't bother defining `\label`
7697 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
7698 + Avoid footnotes in list of figures (#1506).
7699 + Properly handle footnotes in captions (#1506).
7700 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
7701 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
7702 `toccolor` is set (#2508).
7704 * Textile writer: support start number in ordered lists (#2465).
7706 * OpenDocument writer: Allow customization of opendocument
7707 automatic styles. Automatic styles can now be inserted in the
7708 template, which now provides the enclosing `<office:automatic-styles>`
7711 * Docx writer: insert space between footnote reference and note (#2527).
7712 This matches Word's default behavior.
7714 * EPUB writer: don't download linked media when `data-external` attribute
7715 set (#2473). By default pandoc downloads all linked media and includes it
7716 in the EPUB container. This can be disabled by setting `data-external` on
7717 the tags linking to media that should not be downloaded. Example:
7719 <audio controls="1">
7720 <source src="http://example.com/music/toccata.mp3"
7721 data-external="1" type="audio/mpeg">
7725 * HTML writer: use width on whole table if col widths sum to < 100%.
7726 Otherwise some browsers display the table with the columns
7727 separated far apart.
7729 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
7730 `abstract` (Andrew Dunning).
7732 * HTML-based templates (Andrew Dunning):
7734 + Use en dash instead of hyphen between title prefix and title.
7735 + Add `keywords` to metadata.
7736 + Add `lang`, `dir`, `quotes` where missing.
7737 + Always make author and date display conditional.
7738 + Updated dzslides template from source.
7740 * Man template: make "generated by" comment conditional.
7742 * LaTeX, Beamer templates:
7744 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
7745 filled by commands that make babel understand the polyglossia-style
7746 language directives (Mauro Bieg, #137).
7747 + Improved formatting of conditionals; `$for$` is always provided to allow
7748 multiple options (Andrew Dunning, #141).
7749 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
7750 to improve support for LuaTeX (Andrew Dunning, #135).
7751 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
7752 - use same options for all LaTeX engines;
7753 - add `subtitle` and `keywords` to PDF metadata;
7754 - do not override `hyperref` link coloring without user input, effectively making
7755 the `hidelinks` option the default (removed as a separate variable);
7756 - link colors can be enabled (using a slightly darker version of the old
7757 defaults) using a new `colorlinks` variable, automatically used by
7758 the LaTeX writer when custom colors are specified;
7759 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
7760 `colorlinks`, and is only applied if `colorlinks` is disabled.
7762 * ConTeXt template (Andrew Dunning):
7764 + New variables for controlling styles: `linkstyle`, `linkcolor`,
7765 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
7766 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
7767 `monofont`, `mathfont`, `fontsize`.
7768 + Default template no longer supports MkII.
7769 + Improve writing of title block (suppressing numbering of first page).
7770 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
7771 + Support `subtitle`, `abstract`.
7772 + Support list of figures (`lof`), list of tables (`lot`).
7773 + Disable link styling by default.
7774 + Define styles for all section types.
7776 + Improved formatting of conditionals.
7778 * Beamer template: added code to prevent slide breaks inside paragraphs
7779 (#2422, thanks to Nick Bart). This will matter, in practice, only when
7780 `allowframebreaks` is used. It is especially helpful for bibliography
7783 * OpenDocument template: Add `<office:automatic-styles>` tag around
7784 automatic styles. The writer now longer provides this (see #2520).
7786 * Restored Text.Pandoc.Compat.Monoid.
7788 * Do not export (<>) from custom Prelude. The Prelude now matches
7789 base 4.8 Prelude's API.
7791 * Don't use custom prelude with ghc 7.10. Use the custom prelude
7792 only for earlier versions. This change makes `stack ghci` and
7793 `cabal repl` work (#2503), at least with ghc 7.10.
7795 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
7796 This prevents problems building haddocks with "C" locale.
7798 * Change default for old-locale flag to False.
7800 * Use stack in deb, osx, and Windows package generators.
7802 * Added Vagrantfile for building deb in vm.
7803 This should help in automating binary package creation. 'make package'
7804 will make the package. 'make package COMMIT=blah' will make the package
7809 + Consistent capitalization for pandoc and Markdown.
7810 + Fixed `auto_identifiers` examples (Benoit Schweblin).
7811 + Improved documentation of template variables (Andrew Dunning).
7815 * `Text.Pandoc.Data`: store paths in dataFiles using posix separators.
7816 This way we have uniform separators, whether on Windows or Linux.
7817 This should solve a problem where on some Windows versions
7818 the data files weren't being found (#2459).
7822 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
7823 and reexported from `Text.Pandoc` (Alex Vong). This allows
7824 writers to access it. (Alex Vong) (API change)
7826 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
7827 `subscripts` (#2401).
7829 * Added `odt` as input format (Martin Linnemann). Added new module
7830 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
7831 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
7832 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
7833 Partly implemented features: Citations, Tables.
7837 + Add basic tests for each header style (Ophir Lifshitz).
7838 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
7839 + Skip spaces in headers (Ophir Lifshitz).
7840 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
7841 `# Header {id="myid" class="foo bar"}`
7842 is now equivalent to `# Header {#myid .foo .bar}`.
7843 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
7844 (Kristof Bastiaensen)
7845 + Pipe tables: allow indented columns. Previously the left-hand column
7846 could not start with 4 or more spaces indent. This was inconvenient
7847 for right-aligned left columns. Note that the first (header column)
7848 must still have 3 or fewer spaces indentation, or the table will be
7849 treated as an indented code block.
7850 + Fix regression: allow HTML comments containing `--`.
7851 Technically this isn't allowed in an HTML comment, but
7852 we've always allowed it, and so do most other implementations.
7853 It is handy if e.g. you want to put command line arguments
7858 + Don't eat excess whitespace after macros with only optional
7860 + Support longtable (#2411).
7861 + Implement `\Cite` (#2335).
7862 + Support abstract environment. The abstract populates an
7863 `abstract` metadata field.
7864 + Properly handle booktabs lines. Lines aren't part of the
7865 pandoc table model, so we just ignore them (#2307).
7869 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
7870 + Updated for new automatic header attributes.
7871 + Add auto identifiers if not present on headers. This makes
7872 TOC linking work properly.
7873 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
7874 + Test `<ol>` type, class, and inline list-style(-type) CSS
7876 + Better handling of "section" elements (#2438). Previously
7877 `<section>` tags were just parsed as raw HTML blocks. With
7878 this change, section elements are parsed as Div elements with
7879 the class "section".
7881 * MediaWiki reader: handle unquoted table attributes (#2355).
7885 + Added proper support for DocBook `xref` elements (Frerich Raabe).
7886 Added `dbContent` field to reader state, so we can lookup
7888 + Handle `informalexample` (#2319).
7892 + Create special punctuation test (Ophir Lifshitz).
7893 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
7894 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
7895 in `headers.docx` with pandoc's current `styles.xml`, which
7896 contains styles for Heading 1 through 6. Added Heading 4
7897 through 7 to the test document. Note that Heading 7 is not
7898 parsed as a Heading because there is no Heading 7 style.
7900 * RST reader: better handling of indirect roles.
7901 Previously the parser failed on this kind of case
7903 .. role:: indirect(code)
7905 .. role:: py(indirect)
7910 Now it correctly recognizes `:py:` as a code role.
7914 + Add auto identifiers if not present on headers
7915 (#2354, Juliusz Gonera).
7916 + Allow verse blocks to contain empty lines (#2402,
7919 * EPUB reader: stop mangling external URLs (#2284).
7923 + Don't insert `\ ` when complex expression in matched pairs.
7924 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
7925 + Ensure that `\ ` is inserted when needed before Cite and Span
7926 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
7927 + Normalize headers only in "standalone" mode (#2394).
7929 * Haddock writer: escape `*` and `^` (G. Bataille).
7933 + In TOC, add links to headers (#829).
7934 + Use unicode super/subscripts for digits in plain output
7935 (when the `superscripts` and `subscripts` extensions are
7940 + Moved invalid character stripping to `formattedString`.
7941 This avoids an inefficient generic traversal (#2356).
7942 + Use user data directory for `reference.docx` archive.
7943 This allows the test suite to work without installing pandoc first.
7944 It also brings the docx writer in line with the odt writer.
7945 + Tests: docx writer tests now use `../data` for data directory.
7946 This allows tests to be run without installing first.
7947 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
7951 + Fixed detection of 'chapters' from template.
7952 If a documentclass isn't specified in metadata, but the
7953 template has a hardwired bookish documentclass, act as if
7954 `--chapters` was used. This was the default in earlier
7955 versions, but it has been broken for a little while.
7956 + Correctly recognize book documentclass in metadata (#2395).
7957 + Set language-related variables automatically, depending
7958 on the value of the `lang` field, which is now always
7959 assumed to be in BCP47 format (Mauro Bieg, #1614, #2437).
7960 + Add `\protect` to `\hyperdef` in inline context. This way we
7961 don't get an error when this is used as a moveable argument (#2136).
7962 + Support all frame attributes in Beamer.
7963 + Percent-encode more special characters in URLs (#1640, #2377).
7964 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
7968 + Update KaTeX JS and CSS versions (Emily Eisenberg).
7969 + For dzslides, add `role="note"` for speaker notes (#1693).
7970 + Percent-encode more special characters in URLs (#1640, #2377).
7971 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
7972 + Render Div with class `section` as `<section>` in HTML5.
7976 + In TOC, replace literal `<br/>` with space (#2105).
7977 + With `--webtex`, include image file rather than `data:` URI (#2363).
7979 * Native writer: format Div properly, with blocks separated.
7981 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
7982 (#2191, Mauro Bieg).
7986 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
7987 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
7991 + Beamer: Add `innertheme`, `outertheme` variables
7992 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
7993 Integrate recent font and language updates from LaTeX template;
7994 allow use of `mainfont` variable for changing the slide text
7995 in XeTeX and LuaTeX (Andrew Dunning, #131).
7996 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
7997 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
7998 (Andrew Dunning, #122). Support handling of bidirectional
7999 text (Mauro Bieg, #120). Improve reliability of superscripts/subscripts
8000 under XeTeX and prevent letters and numbers from appearing on a
8001 different baseline by removing use of the `realscripts` package
8002 (via `xltxtra`). To restore use of OpenType characters for these
8003 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
8004 `header-includes` (Andrew Dunning, #130). Remove redundant
8005 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
8006 `indent`, `subparagraph` variables (Andrew Dunning).
8007 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
8008 #113). Prevent package clash with `tufte-latex` and other classes that
8009 include `hyperref` or `color` (Xavier Olive, #115).
8010 + ConTeXt: Support handling of bidirectional text (Mauro Bieg, #120).
8011 + LaTeX and ConTeXt: Use more specific language variables.
8012 Instead of directly using `lang`, we now use `babel-lang` and
8013 `polyglossia-lang` and `context-lang`. These variables are set by
8014 the writers to the necessary values, based on the `lang` variable
8015 (which now always takes a value in BCP47 format). (Mauro Bieg, #114,
8017 + HTML: Support handling of bidirectional text (Mauro Bieg, #120).
8018 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
8019 Add dir attribute in html5 (Andrew Dunning).
8020 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
8021 Add `width`, `height` variables (Andrew Dunning). Update template
8022 from 3.1 source (Andrew Dunning). All configuration options are now
8023 available as variables, but are only be included if set (reveal.js
8024 uses defaults otherwise).
8025 + man: Added comment stating that the page is autogenerated by pandoc,
8026 giving version. Added `adjusting` and `hyphenate` variables
8029 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
8031 * MediaBag: ensure that `/` is always used as path separator.
8033 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
8035 * Added `--bash-completion` option. This generates a bash completion
8036 script. To use: `eval "$(pandoc --bash-completion)"`.
8038 * Text.Pandoc.Error: Define Typeable and Exception instances
8039 for PandocError (#2386).
8041 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
8042 This makes keys with extra space at the beginning and end
8049 will now be a link to bar (it wasn't before).
8051 * Text.Pandoc: disable `auto_identifiers` for epub.
8052 The epub writer inserts its own auto identifiers;
8053 this is more complex due to splitting into "chapter" files.
8055 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
8056 It now reexports Data.Time.
8058 * Use custom Prelude to avoid compiler warnings.
8060 + The (non-exported) prelude is in prelude/Prelude.hs.
8061 + It exports Monoid and Applicative, like base 4.8 prelude,
8062 but works with older base versions.
8063 + It exports (<>) for mappend.
8064 + It hides 'catch' on older base versions.
8066 * Added a `stack.ymal` and stack install instructions to INSTALL.
8068 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
8070 * Added note to CONTRIBUTING.md about ghc versions and travis.
8072 * Clarify docs on block quotes. The space after `>` is optional (#2346).
8074 * Removed obsolete reference to default.csl (#2372).
8076 * List all styles in manual for `--reference-docx` (Chris Black)
8078 * Don't capitalize header links in man page.
8080 * Added section on repl to CONTRIBUTING.md.
8082 * README: Added space after backslash in image example (#2329).
8084 * Document details of citation locator terms (Nick Bart).
8086 * Fixed some internal links in README (#2309).
8088 * Improve CSL documentation, variables documentations,
8089 links, and cross-references in README. (Andrew Dunning)
8091 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
8093 * Use `newManager` instead of `withManager` in recent `http-client`.
8094 This avoids a deprecation warning.
8096 * Allow building with latest versions of http-types,
8097 HUnit, criterion, syb, aeson.
8099 * Updated benchmark program for new criterion API.
8101 * Setup.hs: rewrite so as not to use process, directory, filepath.
8102 Using anything outside base is dangerous, since older
8103 versions of ghc may link against two different versions.
8105 * Added appveyor (Windows continuous integration) builds.
8107 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
8108 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
8109 `make .travis.yml` regenerates it based on the tested-with
8110 field of the cabal file.
8114 * `--self-contained`: Fixed overaggressive CSS minimization (#2301, 2286).
8115 Previously `--self-contained` wiped out all spaces in CSS,
8116 including semantically significant spaces. This was a regression
8119 * Markdown reader: don't allow bare URI links or autolinks in link
8120 label (#2300). Added test cases.
8122 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
8123 Previously we disallowed `-` at the end of an autolink,
8124 and disallowed the combination `=-`. This commit liberalizes the
8125 rules for allowing punctuation in a bare URI, and adds test cases.
8126 One potential drawback is that you can no longer put a bare
8127 URI in em dashes like this:
8128 `this uri---http://example.com---is an example.`
8129 But in this respect we now match github's treatment of bare URIs.
8131 * HTML writer: support speaker notes in dzslides.
8132 With this change `<div class="notes">` and also `<div class="notes"
8133 role="note">` will be output if `-t dzslides` is used. So we can
8134 have speaker notes in dzslides too. Thanks to maybegeek.
8136 * Updated dzslides template.
8138 * Improved documentation of options to print system default files (#2298).
8139 `--print-default-data-file` and `--print-default-template`.
8141 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
8142 (Tiziano Müller). MathJax seems currently to be the only maintained
8143 math rendering extension for DokuWiki.
8145 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
8146 div as top-level header (#2294). This fixes a bug with `--section-divs`,
8147 where the final references section added by pandoc-citeproc, enclosed in
8148 its own div, got nested in the div for the section previous to it.
8150 * Allow vector 0.11.
8152 * Require cmark > 0.4.
8156 * HTML writer: Fixed email javascript obfuscation with `mailto:`
8157 URLs (#2280). This fixes a potential security issue. Because
8158 single quotes weren't being escaped in the link portion, a
8159 specially crafted email address could allow javascript code injection.
8161 * Markdown/HTML readers: Avoid parsing partial URLs like
8162 `<www.pandoc.org/blah#foo>` as HTML tags (#2277).
8164 * RST reader: allow inline formatting in definition list field
8165 names (Lars-Dominik Braun).
8167 * PDF: Make sure `--latex-engine-opt` goes before the filename
8168 on the command line. LaTeX needs the argument to come after
8169 the options (#1779).
8171 * CommonMark writer: fixed tags used for super/subscript.
8173 * ConTeXt template: activate hanging indent for definition lists
8176 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
8177 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
8178 to include `hsb2hs` in Build-Tools in cabal.
8180 * Improved Windows installer (thanks to nkalvi).
8182 + When per-machine installation is chosen, the system path
8183 is updated instead of the user's.
8184 + An appropriate default is used for per-machine installation
8186 + Admin privileges are no longer required for a per-user install
8188 * Travis: unpack sdist for build to catch packaging bugs.
8190 * Improved documentation on where user templates go (#2272).
8194 * Added pandoc.1 man page to the repository. It is no longer
8195 built as part of the cabal build process. (This proved too
8196 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
8197 when `README` is changed.
8199 * Copying of the man page now respects `--destdir` (#2262).
8201 * Improved error messages for filters. User is now informed if
8202 the filter requires an interpreter that isn't found in the path,
8203 or if the filter returns an error status.
8207 * Ensure target directory is created when installing man page.
8211 * Added files needed for building man page to Extra-Source-Files.
8215 * Man page is now built and installed as part of the cabal build
8216 process. Removed Makefile target for man page.
8222 + Removed `--man1`, `--man5` options (breaking change).
8223 + Removed `Text.Pandoc.ManPages` module (breaking API change).
8224 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
8225 create the man page from README using a custom template and filters.
8226 + Added `man/` directory with template and filters needed to build
8228 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
8229 Now there is just pandoc.1, which has all the content from README.
8230 This change was needed because of the extensive cross-references
8231 between parts of the README.
8232 + Removed old `data/pandoc.1.template` and
8233 `data/pandoc_markdown.5.template`.
8235 * OpenDocument writer: Do not add a carriage return after a hard
8236 line break (Michael Chladek).
8240 + use `\goto` for internal links.
8241 + Added a `%` at end for `\reference` to avoid spurious space.
8243 * Ignore sandbox on 'make quick'
8247 * Added `--man1` and `--man5` options to pandoc, allowing pandoc
8248 to generate its own man pages. Man pages are no longer automatically
8249 generated in the build process (the process for this was too complex
8250 and prone to failure, #2190). The `make-pandoc-man-pages` executable
8251 has been removed. The `man/` directory has been removed, and man page
8252 templates have been moved to `data/`. NOTE TO PACKAGERS: You will no
8253 longer find pandoc's man pages in `man/`, but you can generate them using
8254 `pandoc --man1 > pandoc.1` and `pandoc --man5 > pandoc_markdown.5`.
8256 * Added new unexported module: `Text.Pandoc.ManPages`.
8258 * `README` now acts like a data file (even though it isn't in
8259 `data/`). So, for example, `pandoc --print-default-data-file README`
8260 will produce the README.) This change was required for the `--man1`
8261 and `--man5` options, since the man pages are produced from the
8262 README, but it may be useful for other purposes as well.
8264 * Allow `reference.docx` and `reference.odt` to be used with
8265 `--print-default-data-file` and to shadow defaults if placed in
8266 the user data directory. Note that as of 1.14, we no longer
8267 include these files as data files; instead, we include their
8268 components. This change causes pandoc to behave as if it has
8269 these data files; they are constructed on demand when needed
8270 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
8272 * Fixed regression in CSS parsing with `--self-contained` (#2224).
8273 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
8274 silently drops big sections of CSS. This commit replaces the
8275 use of css-text with a small but principled CSS preprocessor,
8276 which removes whitespace and comments and replaces `url()` with
8277 base 64 data when possible.
8279 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
8280 This will allow math to work when pages are being viewed locally.
8282 * `Text.Pandoc.Options`: Export `plainExtensions`.
8283 These are the extensions used in `plain` output.
8285 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
8286 math mode; treat them as regular inline text. Normally these will
8287 cause an error in LaTeX, but there are contexts (e.g. `alltt`
8288 environments) where they are allowed.
8290 * HTML reader: allow `<body>` to close `<head>`.
8292 * DocBook reader: support `mediaobject`s and `figures` (#2184, Mauro Bieg).
8294 * RST reader: Fix reference names with special characters
8295 (Lars-Dominik Braun).
8297 * Textile writer: escape `+` and `-` as entities (#2225).
8299 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
8301 * Plain writer: don't use symbols for super/subscript (#2237).
8302 Simplified code by using `plainExtensions`.
8304 * InDesign writer: Properly escape URLs containing more than one
8305 colon character (gohai).
8307 * Docx writer: Make sure we use dist version of `reference.docx`
8308 (and not the user's version) for certain settings. Taking some
8309 settings values from a user-supplied reference.docx can lead to
8310 corruption. This fixes a regression from the last release (#2249).
8312 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
8313 `getDefaultReferenceODT` (API change). These functions have been
8314 removed from the Docx and ODT writers.
8316 * LaTeX template (Xavier Olive):
8317 + Added `CJKmainfont` and `CJKoptions` variables.
8318 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
8320 * Epub templates: use `author.role`, not `author.type`.
8322 * Bump cmark version to >= 0.3.4.
8324 * Improved Windows installer (#2205, thanks to nkalvi).
8325 Users can now select a per-user or systemwide install, and can set
8326 the installation path. At the end of installation, the install location
8327 is given. The install location is also now given in the list of
8328 installed programs in Control Panel. Cleaner WiX syntax is used for
8331 * Added `download_stats` target to Makefile.
8335 * Added missing commonmark template.
8337 * Improved try pandoc (moved button, show raw command).
8341 * Allow compilation with syb 0.5.*.
8343 * Custom writer: fixed some compiler warnings for ghc < 7.10.
8347 * Allow building with hslua 0.4.
8351 * Fixed problem with building of `reference.docx` and `reference.odt`
8352 when the `embed_data_files` flag is used. Instead of having a phase
8353 of the build where `reference.docx` and `reference.odt` are created
8354 from their constituent data files, we now construct these archives
8355 from their constituents when a `docx` or `odt` is built. The
8356 constituent files have been moved from `extra-source-files` to
8357 `data-files`, and `reference.docx` and `reference.odt` have been
8358 removed. Users can create their own `reference.docx` or
8359 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
8360 `make-reference-files.hs` has been removed, simplifying the build
8363 * Don't include generated man pages in extra-source-files (#2189).
8365 * Bumped upper bound for aeson.
8367 * ConTeXt writer: create internal link anchors for Div elements with
8368 identifiers. (This is needed for linked citations to work.)
8374 * Added `commonmark` as input and output format.
8376 * Added `--verbose` flag for debugging output in PDF production (#1840,
8379 * Allow wildcards in `--epub-embed-font` arguments (#1939).
8381 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
8383 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
8384 This is enabled by default for those markdown flavors that
8385 support reading shortcut reference links, namely: `markdown`,
8386 `markdown_strict`, `markdown_github`, `markdown_php`.
8387 If the extension is enabled, the reader parses shortcut reference
8388 links like `[foo]`, and the writer creates such links unless doing
8389 so would cause problems. Users of markdown flavors that support
8390 shortcut reference links should not notice a difference in reading
8391 markdown, but the markdown pandoc produces may differ.
8392 If shortcut links are not desired, the extension can be disabled
8397 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
8398 A "dirty" TOC is created at the beginning of document.
8399 It can be regenerated after the document has been opened.
8401 * An implicit `--filter pandoc-citeproc` is now triggered only when the
8402 `--bibliography` option is used, and not when the `bibliography`
8403 field in metadata is specified (#1849).
8407 + Reference links with `implicit_header_references` are no longer
8408 case-sensitive (#1606).
8409 + Definition lists no longer require indentation for first line (#2087).
8410 Previously the body of the definition (after the `:` or `~` marker)
8411 needed to be in column 4. This commit relaxes that requirement,
8412 to better match the behavior of PHP Markdown Extra. So, now
8413 this is a valid definition list:
8417 + Resolve a potentially ambiguity with table captions:
8427 Is "bar" a definition, or the caption for the table? We'll count
8428 it as a caption for the table.
8429 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
8430 Markdown Extra. Note: If you have been using headerless pipe tables,
8431 this change may cause existing tables to break.
8432 + Allow pipe tables with header but no body (#2017).
8433 + Allow a digit as first character of a citation key (Matthias Troffaes).
8434 See https://github.com/jgm/pandoc-citeproc/issues/97
8438 + Don't limit includes to `.tex` extension (#1882).
8439 If the extension is not `.tex`, it must be given explicitly in
8440 the `\input` or `\include`.
8444 + Allow numbering in the style file. This allows inherited styles
8445 with numbering (lists) (Jesse Rosenthal).
8449 + Support smart punctuation (Craig Bosma).
8450 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
8451 `:noexport:` tag set are not exported. This mirrors org-mode.
8452 + Put header tags into empty spans (Albert Krewinkel, #2160).
8453 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
8454 Instead of being interpreted as part of the headline, the tags are now
8455 put into the attributes of empty spans. Spans without textual content
8456 won't be visible by default, but they are detectable by filters. They
8457 can also be styled using CSS when written as HTML.
8458 + Generalize code block result parsing (Albert Krewinkel).
8459 Previously, only code blocks were recognized as result blocks;
8460 now, any kind of block can be the result.
8462 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
8463 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
8467 + Add "inline" or "display" class to math spans (#1914).
8468 This allows inline and display math to be styled differently.
8469 + Include raw latex blocks if `--mathjax` specified (#1938).
8470 + Require highlighting-kate >= 0.5.14 (#1903).
8471 This ensures that all code blocks will be wrapped in a `div`
8472 with class `sourceCode`. Also, the default highlighting CSS
8473 now adds `div.sourceCode { x-overflow: auto; }`, which means
8474 that code blocks (even with line numbers) will acquire a scroll
8475 bar on screens too small to display them (e.g. mobile phones).
8476 See also jgm/highlighting-kate#65.
8480 + Use a declaration for tight lists (Jose Luis Duran, Joseph
8481 Harriott). Previously, pandoc hard-coded some commands to make
8482 tight lists in LaTeX. Now we use a custom command instead,
8483 allowing the styling to be changed in a macro in the header.
8484 (Note: existing templates may need to be modified to include
8485 the definition of this macro. See the current template.)
8486 + Beamer output: if the header introducing a slide has the
8487 class `fragile`, add the `[fragile]` option to the slide (#2119).
8491 + Use `File:` instead of the deprecated `Image:` for images and
8492 other media files (Greg Rundlett).
8496 + Render a `Div (id,_,_) [Para _]` element as a `para` element
8497 with an `id` attribute. This makes links to citations work in
8498 DocBook with pandoc-citeproc.
8502 + Normalize headings to sequential levels (Nikolay Yakimov).
8503 This is pretty much required by docutils.
8504 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
8505 + Better handling of raw latex inline (#1961). We use
8506 `` :raw-latex:`...` `` and add a definition for this role to
8511 + Remove `linear=no` from cover `itemref` (#1609).
8512 + Don't use `sup` element for epub footnotes (#1995).
8513 Instead, just use an a element with class `footnoteRef`.
8514 This allows more styling options, and provides better results
8515 in some readers (e.g. iBooks, where anything inside the a
8516 tag breaks popup footnotes).
8517 + Take TOC title from `toc-title` metadata field.
8521 + Implemented `FirstParagraph` style (Jesse Rosenthal).
8522 Following the ODT writer, we add the `FirstParagraph` style to the
8523 first text paragraph following an image, blockquote, table, heading,
8524 or beginning of document. This allows it to be styled differently.
8525 The default is for it to be the same as `Normal`.
8526 + Added `BodyText` style (Jesse Rosenthal).
8527 We apply a `BodyText` style to all unstyled paragraphs. This is,
8528 essentially, the same as `Normal`, except that since not everything
8529 inherits from `BodyText` (the metadata won't, for example, or
8530 the headers or footnote numbers), we can change the text in the body
8531 without having to make exceptions for everything. If we do want to
8532 change *everything*, we can still do it through `Normal`.
8533 + Altered `Blockquote` style slightly (Jesse Rosenthal).
8534 Since `BlockQuote` derives from `BodyText`, we just want to specify
8535 by default that it won't indent, regardless of what `BodyText` does.
8536 Note that this will not produce any visible difference in the default
8538 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
8539 + Added a style to figure images (Nikolay Yakimov).
8540 Figures with empty captions use style `Figure`.
8541 Figures with nonempty captions use style `Figure with Caption`, which
8542 is based on `Figure`, and additionally has `keepNext` set.
8546 + Added figure captions (Nikolay Yakimov). The following styles are
8548 `Figure` -- for figure with empty caption),
8549 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
8550 `FigureCaption` (based on `Caption`) -- for figure captions.
8551 Also, `TableCaption` (based on `Caption`) is used for table captions.
8555 * New `Text.Pandoc.Error` module with `PandocError` type
8556 (Matthew Pickering).
8558 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
8559 (Matthew Pickering). This allows better handling of errors.
8561 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
8563 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
8565 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
8566 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
8567 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
8570 * New `Ext_shortcut_reference_links` constructor for `Extension`
8577 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
8578 + Check for tex macros after indented code (#1973).
8579 + Rewrote `charsInBalancedBrackets` for efficiency.
8580 + Make sure a closing `</div>` doesn't get included in a
8581 definition list item (#2127).
8582 + Don't parse bracketed text as citation if it might be a link,
8583 image, or footnote (Nikolay Yakimov).
8584 + Require space after key in mmd title block (#2026, Nikolay
8585 Yakimov). Require space after key-value delimiter colon in mmd title
8587 + Require nonempty value in mmd title block (Nikolay Yakimov).
8588 + Disable all metadata block extensions when parsing
8589 metadata field values (#2026, Nikolay Yakimov). Otherwise we
8590 could get a mmd title block inside YAML metadata, for example.
8594 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
8595 + Handle tables with `<th>` in body rows (#1859, Mauro Bieg).
8596 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
8597 to see if the input starts with `<!--`. If not, it's bogus comment
8598 mode and we fail `htmlTag`.
8599 + Handle `base` tag; if it has an `href` value, this is added to
8600 all relative URLs in links and images.
8604 + Look inside "info" elements for section titles (#1931).
8608 + Parse images in deprecated vml format (Jesse Rosenthal).
8609 + Allow sub/superscript verbatims (Jesse Rosenthal).
8610 Verbatim usually shuts off all other run styles, but we don't want it
8611 to shut off sub/superscript.
8615 + Handle `tabular*` environment (#1850).
8616 Note that the table width is not actually parsed or taken into
8617 account, but pandoc no longer chokes on it.
8618 + Ignore options in `\lstinline` rather than raising error (#1997).
8619 + Add some test cases for simple tables (Mathias Schenner).
8620 + Handle valign argument in tables (Mathias Schenner) (currently
8621 we just ignore this).
8622 + Allow non-empty colsep in tables (Mathias Schenner).
8623 The `tabular` environment allows non-empty column separators
8624 with the "@{...}" syntax. Previously, pandoc would fail to
8625 parse tables if a non-empty colsep was present. With this
8626 commit, these separators are still ignored, but the table gets
8627 parsed. A test case is included.
8628 + Recognize `\newpage` as a block command.
8629 + Allow block content in \title{} (#2001).
8630 + Check for block-level newcommand aliases in blockCommand (Nikolay
8632 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
8633 + Properly gobble spaces after `\\` (#2007).
8637 + Handle newlines in table cells, and empty cells (#1919).
8641 + Allow image links with non-image targets (Hans-Peter Deifel).
8642 This matches behavior of Org-Mode for links like
8643 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
8647 + Don't print empty id attributes (thanks to Steve Horne).
8651 + Fixed list-style-type for numbered example lists.
8652 Should be "decimal," not "example" (#1902).
8653 + Do not omit missing `alt` attribute on `img` tag (#1131,
8655 + Allow multiple colgroups in table (#2122).
8656 + In revealjs, ensure that lists in speaker notes don't add "fragment"
8657 classes, which can cause additional keypresses to be needed to
8658 advance a slide (#1394).
8662 + Don't escape `$` in URL (#1913).
8663 + Don't use listings in headers (Matthew Pickering, #1963).
8664 + Recognize book documentclass if set in metadata (#1971).
8665 This sets `--chapters` implicitly if the documentclass in metadata
8666 is a book documentclass. Previously this was done only if a book
8667 documentclass was set in a variable.
8668 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
8669 + Make `mainlang` work when `lang` is in metadata (#2174).
8673 + Fix wrapping by using breakable spaces (Tim Lin).
8677 + Fixed toc depth in RST writer. Previously the depth was being
8678 rendered as a floating point number with a decimal point.
8682 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
8683 compatibility with original Markdown. We now escape `<` and `>`
8684 with entities. Also, we now backslash-escape square brackets.
8685 + Avoid introducing spurious list items through wrapping (#1946).
8686 + Don't emit span tags if plain or raw HTML disabled.
8690 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
8694 + Insert some needed blank lines (#1860).
8695 + Avoid wrapping after list marker (#1858).
8699 + Properly handle internal links to IDs in spans, divs (#1884).
8700 + Use plain writer for metadata dc: fields (#2121).
8701 This gives better results when we have, e.g. multiple paragraphs.
8702 Note that tags aren't allowed in these fields.
8703 + Properly handle image links without an extension (#1855).
8704 + Improved chapter splitting and internal link rewriting (#1887,
8705 #2162, #2163). This will ensure that internal links work and
8706 that the references section produced by pandoc-citeproc is
8708 + Fixed handling of svg images (#2183).
8712 + Better handling of raw blocks and inlines (#1951).
8713 Previously these were always escaped and printed verbatim.
8714 Now they are ignored unless the format is `icml`, in which
8715 case they are passed through unescaped.
8716 + Fixed image URIs in ICML output (gohai).
8720 + Raise error if loadstring returns an error status.
8721 + Raise `PandocLuaException` instead of using 'error'.
8722 Eventually we'll change the return type so that no exception
8723 is involved, but at least this can be trapped.
8724 + Use UTF-8 aware bytestring conversion.
8725 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
8726 Also factored out ByteString, since it's only used as an intermediate
8731 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
8732 + Filter out illegal XML characters (#1992, Matthew Pickering).
8733 + Added `noProof` to docx syntax highlighting `SourceCode` style.
8734 + Added footnotes id -1 and 0 (Jesse Rosenthal).
8735 Word uses, by default, footnotes with id -1 and 0 for separators. If a
8736 user modifies `reference.docx`, they will end up with a `settings.xml`
8737 file that references these footnotes, but no such footnotes in the
8738 document. This will produce a corruption error. Here we add these to the
8739 document and `settings.xml` file, so future modifications won't break
8741 + Handle lists correctly inside table cells (Jesse Rosenthal).
8742 Previously we didn't transform lists inside table cells.
8743 + Set firstRow information in tables (Nikolay Yakimov).
8744 + Don't replace `SourceCode` style in `reference.docx` if it is defined
8745 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
8746 any `SourceCode` and `*Tok` styles in `reference.docx`.
8747 + Attempt to match international style names (#1607, Nikolay Yakimov).
8748 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
8749 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
8750 `Definition`, `First Paragraph`.
8751 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
8752 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
8753 `Footnote Ref -> Footnote Reference`.
8754 + Added `Caption` style (Nikolay Yakimov).
8755 + Changed these styles' inheritance (Nikolay Yakimov):
8756 `Image Caption <- Caption`, `Table Caption <- Caption`.
8757 + Remove `SourceCode` style from `reference.docx` (#1872).
8758 This is added automatically by the docx writer.
8759 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
8763 + Don't suggest "Try xelatex" if xelatex already in use (Mauro Bieg,
8765 + More comprehensible errors on image conversion (#2067).
8766 EPS can't be supported without shelling out to something like
8767 ImageMagick, but at least we can avoid mysterious error messages.
8769 * `Text.Pandoc.Shared`:
8771 + Make safeRead safe (#1801, Matthew Pickering).
8772 + Added `mapLeft`, `hush` (Matthew Pickering).
8774 * `Text.Pandoc.Pretty`:
8776 + Remove partial function (Matthew Pickering).
8778 * `Text.Pandoc.SelfContained`:
8780 + Add `;charset=utf-8` to script mime type if missing (#1842).
8781 + Improved building of data URIs (#1940). Now base64 is used except
8782 for `text/*` mime types.
8783 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
8784 + Properly handle data URIs in css urls (#2129).
8785 Use a proper CSS parser (adds dependency on `text-css`).
8787 * `Text.Pandoc.UTF8`:
8789 + Better handling of bare CRs in input files (#2132).
8790 Previously we just stripped them out; now we convert
8791 other line ending styles to LF line endings.
8793 * `Text.Pandoc.ImageSize`:
8795 + Fixed some exif header parsing bugs (#1834).
8796 + Make imageSize return an Either, not a Maybe (#1834).
8797 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
8798 parse failure (rather than `error`).
8799 + Improved warnings when image size can't be determined.
8800 + Removed error landmines (Matthew Pickering).
8802 * Added woff2 to MIME types (Alfred Wechselberger).
8804 * pandoc: When a binary input format is used, warn that file
8805 arguments past the first one are being ignored (Matthew Pickering).
8811 + Degrade gracefully if `\paragraph` not defined.
8812 + Include `grffile` together with `graphicx` (#2074).
8813 This properly handles filenames containing spaces and dots.
8814 + Redefine `\paragraph`, `\subparagraph`... to behave more
8815 like section headers (#1658).
8816 + Import hyperref before polyglossia to avoid an error with xelatex,
8817 "please load package hyperref before bidi package" (Nick Bart).
8818 + Added `toccolor` variable to control link color in toc (Kaixhin).
8820 * LaTeX, Beamer templates:
8822 + Provide `\tightlist`, which is now used by the LaTeX writer.
8823 + Use polyglossia in beamer (#85).
8824 + Use `bibliography` instead of `biblio-files`
8825 (#1661). Also use `\addbibresource` instead of `\bibliography` for
8827 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
8828 variable that is derived from a comma-separated list in `lang`;
8829 the last language is `mainlang` and the others are `otherlang`.
8833 + Use `div`, not `p`, for "rights" on title page.
8834 + Added header-includes, include-before, include-after (#1987).
8836 * OpenDocument template:
8838 + Use `text:p` instead of `text:h` for title.
8839 Using `text:h` causes problems with numbering. Closes #2059.
8840 Thanks to @nkalvi for diagnosing this.
8842 * reveal.js template:
8844 + Link to non-minified css, js. The minified versions no longer
8845 ship with the library.
8846 + Correctly include style CSS (#1949).
8847 + New configurable options options: `center`, `maxScale`, `slideNuber`
8848 (Dmitry Smirnov, pandoc-templates#89).
8849 + Moved custom CSS after theme. This allows custom CSS to modify
8850 themes, instead of being replaced by them.
8851 + Allow `center` to be set to false.
8853 [under the hood improvements]
8855 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
8856 Yakimov). Instead the repository now includes the component text files,
8857 and the zipped binaries are built from these using a helper
8858 program, `make-reference-files`. This should make maintenance of
8859 these components easier going forward.
8861 * `Text.Pandoc.Parsing`:
8863 + Added new `<+?>` combinator (Nikolay Yakimov).
8864 + Added `stateHeaderKeys` to `ParserState`.
8866 * `make_deb.sh` fixes:
8868 + Detect architecture.
8869 + Add Installed-Size to debian package control file (#1900).
8870 + Use `fakeroot` to get permissions right.
8871 + Use `mkdir` and `cp` instead of `install`.
8872 + Set permissions of directories to 755.
8873 + Install in `/usr` rather than `/usr/local`.
8874 + Compress man pages.
8875 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
8877 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
8878 to assist with transition to `time` 1.5.
8880 * Updated CONTRIBUTING.md with information about issue tags (Matthew
8883 * Updated travis installs to the new sudo-less syntax (Tim Lin).
8885 * Updated dependency version bounds.
8887 * EPUB tests: don't use `joinPath`, which varies across platforms.
8888 Instead, use a forward-slash to join paths, regardless of the
8889 platform. This matches the way `MediaBag` now works.
8891 * Clarify JSON input and output in usage message (Caleb McDaniel).
8893 * Improved INSTALL instructions.
8895 * Always build man pages. Removed make-pandoc-man-pages flag.
8897 * Makefile: removed man target, now that we generate man pages by default.
8901 + Fixed typos (J. Lewis Muir).
8902 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
8903 + Added note on in-field markup in biblio databases (Nick Bart).
8904 + Fixed misleading example of raw HTML block.
8905 + Various minor formatting and consistency fixes for the program
8906 options (Andreas Lööw).
8907 + Made definition lists for options all "loose" for consistency.
8908 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
8909 `--bib2json` and `--bib2yaml` options (Nick Bart).
8910 + Removed obsolete reference to `mods2yaml` (Nick Bart).
8911 + Added section on syntax highlighting.
8912 + Documented `toccolor` variable.
8916 * Updated to build with ghc 7.10.1.
8918 * Bumped package upper bounds for filepath, blaze-html,
8923 * TWiki Reader: add new twiki reader (API change, Alexander Sulfrian).
8927 + Better handling of paragraph in div (#1591).
8928 Previously text that ended a div would be parsed as Plain
8929 unless there was a blank line before the closing div tag.
8930 + Don't treat a citation as a reference link label (#1763).
8931 + Fix autolinks with following punctuation (#1811).
8932 The price of this is that autolinked bare URIs can no longer
8933 contain `>` characters, but this is not a big issue.
8934 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
8935 + Allow `startnum` to work without `fancy_lists`. Formerly
8936 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
8938 * RST reader (all Daniel Bergey):
8940 + Parse quoted literal blocks (#65). RST quoted literal blocks are
8941 the same as indented literal blocks (which pandoc already supports)
8942 except that the quote character is preserved in each line.
8943 + Parse RST class directives. The class directive accepts one or more
8944 class names, and creates a Div value with those classes. If the
8945 directive has an indented body, the body is parsed as the children of
8946 the Div. If not, the first block following the directive is made a
8947 child of the Div. This differs from the behavior of rst2xml, which
8948 does not create a Div element. Instead, the specified classes are
8949 applied to each child of the directive. However, most Pandoc Block
8950 constructors to not take an Attr argument, so we can't duplicate this
8952 + Warn about skipped directives.
8953 + Literal role now produces Code. Code role should have "code" class.
8954 + Improved support for custom roles
8956 - Added `sourceCode` to classes for `:code:` role, and anything
8958 - Add the name of the custom role to classes if the Inline
8959 constructor supports Attr.
8960 - If the custom role directive does not specify a parent role,
8961 inherit from the `:span:` role.
8963 This differs somewhat from the `rst2xml.py` behavior. If a custom
8964 role inherits from another custom role, Pandoc will attach both
8965 roles' names as classes. `rst2xml.py` will only use the class of
8966 the directly invoked role (though in the case of inheriting from a
8967 `:code:` role with a `:language:` defined, it will also provide the
8968 inherited language as a class).
8969 + Warn about ignored fields in role directives.
8973 + Parse label after caption into a span instead of
8974 inserting an additional paragraph of bracketed text (#1747).
8975 + Parse math environments as inline when possible (#1821).
8976 + Better handling of `\noindent` and `\greektext` (#1783).
8977 + Handle `\texorpdfstring` more gracefully.
8978 + Handle `\cref` and `\sep` (Wikiwide).
8979 + Support `\smartcite` and `\Smartcite` from biblatex.
8983 + Retain display type of MathML output (#1719, Matthew Pickering).
8984 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
8985 + Make `embed` tag either block or inline (#1756).
8989 + Handle `keycombo`, `keycap` (#1815).
8990 + Get string content in inner tags for literal elements (#1816).
8991 + Handle `menuchoice` elements better, with a `>` between (#1817).
8992 + Include `id` on section headers (#1818).
8993 + Document/test "type" as implemented (Brian O'Sullivan).
8994 + Add support for calloutlist and callout (Brian O'Sullivan).
8995 We treat a calloutlist as a bulleted list. This works well in practice.
8996 + Add support for `classname` (Bryan O'Sullivan).
9000 + Fix window path for image lookup (Jesse Rosenthal).
9001 Don't use os-sensitive "combine", since we always want the paths in our
9002 zip-archive to use forward-slashes.
9003 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
9004 When users number their headers, Word understands that as a single item
9005 enumerated list. We make the assumption that such a list is, in fact,
9007 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
9008 There could be new top-level headers after making lists, so we have to
9009 rewrite links after that.
9010 + Use polyglot header list (Jesse Rosenthal).
9011 We're just keeping a list of header formats that different languages
9012 use as their default styles. At the moment, we have English, German,
9013 Danish, and French. We can continue to add to this.
9014 This is simpler than parsing the styles file, and perhaps less
9015 error-prone, since there seems to be some variations, even within a
9016 language, of how a style file will define headers.
9017 + Remove header class properly in other langs (Jesse Rosenthal).
9018 When we encounter one of the polyglot header styles, we want to remove
9019 that from the par styles after we convert to a header. To do that, we
9020 have to keep track of the style name, and remove it appropriately.
9021 + Account for external link URLs with anchors. Previously, if a URL
9022 had an anchor, the reader would incorrectly identify it as an
9023 internal link and return only the anchor as URL. (Caleb McDaniel)
9024 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
9028 + Added state changing blanklines (Jesse Rosenthal).
9029 This allows us to emphasize at the beginning of a new paragraph (or, in
9030 general, after blank lines).
9031 + Fixed bug with bulleted lists:
9037 was being parsed as a list, even though an unindented `*`
9038 should make a heading. See
9039 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
9040 + Org reader: absolute, relative paths in link (#1741, Albert
9041 Krewinkel). The org reader was too restrictive when parsing links;
9042 some relative links and links to files given as absolute paths
9043 were not recognized correctly.
9044 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
9045 This is important for use in gitit, which uses empty links
9047 + Respect indent when parsing Org bullet lists (#1650, Timothy
9048 Humphries). Fixes issue with top-level bullet list parsing.
9049 + Fix indent issue for definition lists (Timothy Humphries,
9050 see #1650, #1698, #1680).
9051 + Parse multi-inline terms correctly in definition list (#1649,
9053 + Fix rules for emphasis recognition (Albert Krewinkel).
9054 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
9055 strings. This is wrong, as `,` and `'` are forbidden border chars and
9056 may not occur on the inner border of emphasized text.
9057 + Drop COMMENT document trees (Albert Krewinkel).
9058 Document trees under a header starting with the word `COMMENT` are
9059 comment trees and should not be exported. Those trees are dropped
9061 + Properly handle links to `file:target` (Albert Krewinkel).
9062 Org links like `[[file:target][title]]` were not handled correctly,
9063 parsing the link target verbatim. The org reader is changed such that
9064 the leading `file:` is dropped from the link target (see #756, #1812).
9065 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
9066 Org supports special symbols which can be included using LaTeX syntax,
9067 but are actually MathML entities. Examples for this are
9068 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
9069 or `\copy` (the copyright sign ©)
9073 + URI handling improvements. Now we outsource most of the work to
9074 `fetchItem'`. Also, do not include queries in file extensions (#1671).
9078 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
9079 + Handle consecutive linebreaks (#1733).
9080 + Protect graphics in headers (Jesse Rosenthal).
9081 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
9082 + Put `~` before header in list item text (Jesse Rosenthal).
9083 Because of the built-in line skip, LaTeX can't handle a section header
9084 as the first element in a list item.
9085 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
9086 + Better handling of display math in simple tables (#1754).
9087 We convert display math to inline math in simple tables,
9088 since LaTeX can't deal with display math in simple tables.
9089 + Escape spaces in code (#1694, Bjorn Buckwalter).
9093 + Fixed links with URL = text. Previously these were rendered as bare
9094 words, even if the URL was not an absolute URL (#1825).
9098 + Don't force all citations into footnotes.
9102 + Add blankline at end of output (#1732, Matthew Pickering).
9106 + Ensure blank line after figure.
9107 + Avoid exces whitespace after last list item (#1777).
9108 + Wrap line blocks with spaces before continuations (#1656).
9109 + Fixed double-rendering of footnotes in RST tables (#1769).
9113 + Better handling of block quotes. This change ensures that
9114 multiple paragraph blockquotes are rendered using native `>`
9115 rather than as HTML (#1738).
9116 + Fix external images (#1739). Preface relative links with ":",
9117 absolute URIs without. (Timothy Humphries)
9121 + Use protocol-relative URL for mathjax.
9122 + Put newline btw img and caption paragraph.
9123 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
9124 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
9125 This adds `KaTeX` to `HTMLMathMethod` (API change).
9126 + Don't double render when `email-obfuscation=none` (#1625, Matthew
9128 + Make header attributes work outside top level (#1711).
9129 Previously they only appeared on top level header elements.
9130 Now they work e.g. in blockquotes.
9134 + Correctly handle images without extensions (#1729).
9135 + Strip querystring in ODT write (#1682, Todd Sifleet).
9139 + Add newline to output.
9143 + Don't add `sourceURL` to absolute URIs (#1669).
9144 + Don't use unsupported `opf:title-type` for epub2.
9145 + Include "landmarks" section in nav document for epub3 (#1757).
9146 + Removed playOrder from navpoint elements in ncx file (#1760).
9147 These aren't required, and they make manual modification of epubs
9149 + Extract title even from structured title.
9150 + Don't include nav node in spine unless `--toc` was requested.
9151 Previously we included it in the spine with `linear="no"`, leading
9152 to odd results in some readers (#1593).
9153 + Fixed absolute URI detection (#1672).
9154 + Correctly resolve relative URIs (#1671).
9155 + Use regular page template for `nav.xhtml`, including doctype (#1759).
9159 + Put docx table captions above tables (#1641, Nikolay Yakimov).
9160 + Get the page width from the reference docx file, and use
9161 it to scale images that are too large to fit (Grégory Bataille).
9162 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
9163 are inferred based on `<w:name val="heading #">` fallback, if there
9164 are no en-US "Heading#" styles
9165 + Look in user data dir for archive `reference.docx`.
9166 + Renumber header and footer relationships to avoid collisions (Jesse
9167 Rosenthal). We previously took the old relationship names of the
9168 headers and footer in secptr. That led to collisions. We now make
9169 a map of availabl names in the relationships file, and then rename
9174 + Add function toLabel (Mark Szepieniec).
9175 This function can be used to sanitize reference labels so that
9176 they do not contain any of the illegal characters \#[]",{}%()|= .
9177 Currently only Links have their labels sanitized, because they
9178 are the only Elements that use passed labels.
9180 * `Text.Pandoc.Shared`:
9182 + Moved import of `toChunks` outside of CPP conditional (#1590).
9183 + Fix `inDirectory` to reset to the original directory in case
9184 an exception occurs (Freiric Barral).
9188 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
9189 Thanks to bluebirch.
9190 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
9192 + LaTeX template: Add shorthands=off to babel options (#1648).
9193 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
9194 This aids styling, making it possible for example to set 0 margins
9195 on the title page (#1758).
9196 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
9197 Previously we just expected 'title', 'subtitle', 'author', 'date'.
9198 Now we still support those, but also support the format recommended
9199 for epub metadata in the pandoc README:
9206 text: An investigation of metadata
9214 text: doi:10.234234.234/33
9216 rights: (c) 2007 John Smith, CC BY-NC
9219 * `Text.Pandoc.Templates.getDefaultTemplate`:
9220 don't fail when called with "fb2" (#1660).
9222 * `Text.Pandoc.Parsing`:
9224 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
9225 For example: `$x = \text{the $n$th root of $y$}` (#1677).
9226 + Change `parseFromString` to fail if not all input is consumed.
9228 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
9229 used by more readers (API change, Daniel Bergey).
9231 * `Text.Pandoc.Pretty`:
9233 + Improve performance of `realLength` (Matthew Pickering).
9234 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
9235 were getting at the end of markdown fragments (as well as rst, org,
9238 * `Text.Pandoc.MIME`:
9240 + Add mime type for WebVTT (Jason Ronallo).
9241 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
9242 This is needed for epub3 validation.
9244 * `Text.Pandoc.MediaBag`:
9246 + Fix Windows specific path problems (#1597).
9248 * `Text.Pandoc.Shared`:
9250 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
9252 * Link the test suite using `-threaded`.
9253 This allows the test suite to be run using `+RTS -N`.
9255 * Added `network` dependency under `network-uri` flag in test section.
9257 * Give better error messages when someone tries to convert from
9258 pdf, doc, odt (#1683).
9260 * Added `track` to list of tags treated by `--self-contained` (#1664).
9264 * Fixed `--self-contained` with Windows paths (#1558).
9265 Previously `C:\foo.js` was being wrongly interpreted as a URI.
9267 * HTML reader: improved handling of tags that can be block or inline.
9268 Previously a section like this would be enclosed in a paragraph,
9269 with RawInline for the video tags (since video is a tag that can
9270 be either block or inline):
9272 <video controls="controls">
9273 <source src="../videos/test.mp4" type="video/mp4" />
9274 <source src="../videos/test.webm" type="video/webm" />
9276 The videos can not be played back on your system.<br/>
9277 Try viewing on Youtube (requires Internet connection):
9278 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
9283 This change will cause the video and source tags to be parsed
9284 as RawBlock instead, giving better output.
9285 The general change is this: when we're parsing a "plain" sequence
9286 of inlines, we don't parse anything that COULD be a block-level tag.
9290 + Be sensitive to user styles. Note that "Hyperlink" is
9291 "blacklisted," as we don't want the default underline styling to be
9292 inherited by all links by default (Jesse Rosenthal).
9293 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
9294 This makes to docx reader's native output fit with the way the markdown
9295 reader understands its markdown output.
9297 * Textile writer: Extended the range of cases where native textile
9298 tables will be used (as opposed to raw HTML): we now handle any
9299 alignment type, but only for simple tables with no captions.
9303 + Header is now parsed only if standalone flag is set (Matthew Pickering).
9304 + The header is now parsed as meta information. The first line is the
9305 `title`, the second is the `author` and third line is the `date`
9306 (Matthew Pickering).
9307 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
9308 + Fixed crash when reading from stdin.
9310 * EPUB writer: Don't use page-progression-direction in EPUB2, which
9311 doesn't support it. Also, if page-progression-direction not specified
9312 in metadata, don't include the attribute even in EPUB3; not including it
9313 is the same as including it with the value "default", as we did before.
9316 * Org writer: Accept example lines with indentation at the beginning
9321 + Refactor to use Reader monad (Matthew Pickering).
9322 + Avoid using raw HTML in table cells; instead, use `\\`
9323 instead of newlines (Jesse Rosenthal).
9324 + Properly handle HTML table cell alignments, and use spacing
9325 to make the tables look prettier (#1566).
9329 + Bibliography entries get `Bibliography` style (#1559).
9330 + Implement change tracking (Jesse Rosenthal).
9334 + Fixed a bug that caused a table caption to repeat across all pages
9336 + Improved vertical spacing in tables and made it customizable using
9337 standard lengths set by booktab. See
9338 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
9340 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
9341 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
9342 + Made horizontal rules more flexible (Jose Luis Duran).
9346 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
9347 Code cleanups (Artyom Kazak).
9351 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
9354 * Improved OSX build procedure.
9356 * Added `network-uri` flag, to deal with split of `network-uri` from
9359 * Fix build dependencies for the `trypandoc` flag, so that they are
9360 ignored if `trypandoc` flag is set to False (Gabor Pali).
9362 * Updated README to remove outdated claim that `--self-contained`
9363 looks in the user data directory for missing files.
9369 + Fixed regression which bungled list numbering (#1544), causing
9370 all lists to appear as basic ordered lists.
9371 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
9372 Added a property to all table rows where the sum of column widths
9373 is specified in pct (fraction of 5000). This helps persuade Word
9374 to lay out the table with the widths we specify.
9376 * Fixed a bug in Windows 8 which caused pandoc not to find the
9377 `pandoc-citeproc` filter (#1542).
9379 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
9380 Most significantly, the reader now uses Builder, leading to some
9381 performance improvements.
9383 * HTML reader: Parse appropriately styled span as SmallCaps.
9385 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
9386 `superscript`, and `subscript` extensions, respectively, are
9387 deactivated (#1127).
9389 * Added `trypandoc` flag to build CGI executable used in the online
9392 * Makefile: Added 'quick', 'osxpkg' targets.
9394 * Updated README in templates to indicate templates license.
9395 The templates are dual-licensed, BSD3 and GPL2+.
9401 * Added `docx` as an input format (Jesse Rosenthal). The docx
9402 reader includes conversion of native Word equations to pandoc
9403 LaTeX `Math` elements. Metadata is taken from paragraphs at the
9404 beginning of the document with styles `Author`, `Title`, `Subtitle`,
9405 `Date`, and `Abstract`.
9407 * Added `epub` as an input format (Matthew Pickering). The epub
9408 reader includes conversion of MathML to pandoc LaTeX `Math`
9411 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
9412 Txt2tags is a lightweight markup format described at
9413 <http://txt2tags.org/>.
9415 * Added `dokuwiki` as an output format (Clare Macrae).
9417 * Added `haddock` as an output format.
9419 * Added `--extract-media` option to extract media contained in a zip
9420 container (docx or epub) while adjusting image paths to point to the
9423 * Added a new markdown extension, `compact_definition_lists`, that
9424 restores the syntax for definition lists of pandoc 1.12.x, allowing
9425 tight definition lists with no blank space between items, and
9426 disallowing lazy wrapping. (See below under behavior changes.)
9428 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
9430 * Added extensions `native_spans` and `native_divs` to activate
9431 parsing of material in HTML span or div tags as Pandoc Span
9432 inlines or Div blocks.
9434 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
9435 Textile, and MediaWiki readers. This is an option intended
9436 for debugging parsing problems; ordinary users should not need
9441 * Changed behavior of the `markdown_attribute` extension, to bring
9442 it in line with PHP markdown extra and multimarkdown. Setting
9443 `markdown="1"` on an outer tag affects all contained tags,
9444 recursively, until it is reversed with `markdown="0"` (#1378).
9446 * Revised markdown definition list syntax (#1429). Both the reader
9447 and writer are affected. This change brings pandoc's definition list
9448 syntax into alignment with that used in PHP markdown extra and
9449 multimarkdown (with the exception that pandoc is more flexible about
9450 the definition markers, allowing tildes as well as colons). Lazily
9451 wrapped definitions are now allowed. Blank space is required
9452 between list items. The space before a definition is used to determine
9453 whether it is a paragraph or a "plain" element. **WARNING: This change
9454 may break existing documents!** Either check your documents for
9455 definition lists without blank space between items, or use
9456 `markdown+compact_definition_lists` for the old behavior.
9458 * `.numberLines` now works in fenced code blocks even if no language
9459 is given (#1287, jgm/highlighting-kate#40).
9461 * Improvements to `--filter`:
9463 + Don't search PATH for a filter with an explicit path.
9464 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
9465 the system path, even if there was a `caps.py` in the working directory.
9466 + Respect shebang if filter is executable (#1389).
9467 + Don't print misleading error message.
9468 Previously pandoc would say that a filter was not found,
9469 even in a case where the filter had a syntax error.
9473 + Parse `div` and `span` elements even without `--parse-raw`,
9474 provided `native_divs` and `native_spans` extensions are set.
9475 Motivation: these now generate native pandoc Div and Span
9476 elements, not raw HTML.
9477 + Parse EPUB-specific elements if the `epub_html_exts`
9478 extension is enabled. These include `switch`, `footnote`,
9479 `rearnote`, `noteref`.
9483 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
9484 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
9485 `\cite{Coffee}`), can be used without any further escaping (Albert
9488 * Textile reader and writer:
9490 + The `raw_tex` extension is no longer set by default. You can
9491 enable it with `textile+raw_tex`.
9495 + Support `equation`, `informalequation`, `inlineequation` elements with
9496 `mml:math` content. This is converted into LaTeX and put into a Pandoc
9499 * Revised `plain` output, largely following the style of Project
9502 + Emphasis is rendered with `_underscores_`, strong emphasis
9504 + Headings are rendered differently, with space to set them off,
9505 not with setext style underlines. Level 1 headers are ALL CAPS.
9506 + Math is rendered using unicode when possible, but without the
9507 distracting emphasis markers around variables.
9508 + Footnotes use a regular `[n]` style.
9512 + Horizontal rules are now a line across the whole page.
9513 + Prettier pipe tables. Columns are now aligned (#1323).
9514 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
9515 no longer emits any raw HTML, including span and div tags
9516 generated by Span and Div elements.
9517 + Use span with style for `SmallCaps` (#1360).
9521 + Autolinks now have class `uri`, and email autolinks have class
9522 `email`, so they can be styled.
9526 + Document formatting is carried over from `reference.docx`.
9527 This includes margins, page size, page orientation, header,
9528 and footer, including images in headers and footers.
9529 + Include abstract (if present) with `Abstract` style (#1451).
9530 + Include subtitle (if present) with `Subtitle` style, rather
9531 than tacking it on to the title (#1451).
9535 + Write empty span elements with an id attribute as org anchors.
9536 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
9540 + Put table captions above tables, to match the conventional
9541 standard. (Previously they appeared below tables.)
9542 + Use `\(..\)` instead of `$..$` for inline math (#1464).
9543 + Use `\nolinkurl` in email autolinks. This allows them to be styled
9544 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
9545 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
9546 curly quotes in the PDF output (#1364).
9547 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
9548 do not appear before the overlays in which their markers appear
9550 + Don't produce a `\label{..}` for a Div or Span element. Do produce
9551 a `\hyperdef{..}` (#1519).
9555 + If the metadata includes `page-progression-direction` (which can be
9556 `ltr` or `rtl`, the `page-progression-direction` attribute will
9557 be set in the EPUB spine (#1455).
9559 * Custom lua writers:
9561 + Custom writers now work with `--template`.
9562 + Removed HTML header scaffolding from `sample.lua`.
9563 + Made citation information available in lua writers.
9565 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
9566 adjacent `RawBlock`s when possible.
9570 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
9572 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
9575 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
9578 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
9581 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
9583 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
9584 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
9585 readers return a pair of a `Pandoc` document and a `MediaBag` with
9586 the media resources they contain. This can be extracted using
9587 `--extract-media`. Writers that incorporate media (PDF, Docx,
9588 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
9589 for resources in the `MediaBag` generated by the reader, in addition to
9590 the file system or web.
9592 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
9593 Renamed `readTeXMath'` to `texMathToInlines`.
9595 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
9596 `readers` now associates names of readers with `Reader`
9597 structures. This allows inclusion of readers, like the docx
9598 reader, that take binary rather than textual input.
9600 * `Text.Pandoc.Shared`:
9602 + Added `capitalize` (Artyom Kazak), and replaced uses of
9603 `map toUpper` (which give bad results for many languages).
9604 + Added `collapseFilePath`, which removes intermediate `.` and
9605 `..` from a path (Matthew Pickering).
9606 + Added `fetchItem'`, which works like `fetchItem` but searches
9607 a `MediaBag` before looking on the net or file system.
9608 + Added `withTempDir`.
9609 + Added `removeFormatting`.
9610 + Added `extractSpaces` (from HTML reader) and generalized its type
9611 so that it can be used by the docx reader (Matthew Pickering).
9613 + Added `normalizeInlines`, `normalizeBlocks`.
9614 + `normalize` is now `Pandoc -> Pandoc` instead of
9615 `Data a :: a -> a`. Some users may need to change their uses of
9616 `normalize` to the newly exported `normalizeInlines` or
9619 * `Text.Pandoc.Options`:
9621 + Added `writerMediaBag` to `WriterOptions`.
9622 + Removed deprecated and no longer used `readerStrict` in
9623 `ReaderOptions`. This is handled by `readerExtensions` now.
9624 + Added `Ext_compact_definition_lists`.
9625 + Added `Ext_epub_html_exts`.
9626 + Added `Ext_native_divs` and `Ext_native_spans`.
9627 This allows users to turn off the default pandoc behavior of
9628 parsing contents of div and span tags in markdown and HTML
9629 as native pandoc Div blocks and Span inlines.
9631 * `Text.Pandoc.Parsing`:
9633 + Generalized `readWith` to `readWithM` (Matthew Pickering).
9634 + Export `runParserT` and `Stream` (Matthew Pickering).
9635 + Added `HasQuoteContext` type class (Matthew Pickering).
9636 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
9637 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
9638 `applyMacros` (Matthew Pickering).
9639 + Added custom `token` (Matthew Pickering).
9640 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
9641 track of the ending tag we're waiting for when we're parsing inside
9643 + Added `stateMarkdownAttribute` to `ParserState`. This is used
9644 to keep track of whether the markdown attribute has been set in
9646 + Generalized type of `registerHeader`, using new type classes
9647 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
9648 Pickering). These allow certain common functions to be reused
9649 even in parsers that use custom state (instead of `ParserState`),
9650 such as the MediaWiki reader.
9651 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
9652 and generalized their types (Matthew Pickering).
9654 * `Text.Pandoc.Pretty`:
9657 + Added `blanklines`, which guarantees a certain number of blank lines
9664 + Fixed parsing of indented code in list items. Indented code
9665 at the beginning of a list item must be indented eight spaces
9666 from the margin (or edge of the container), or four spaces
9667 from the list marker, whichever is greater.
9668 + Fixed small bug in HTML parsing with `markdown_attribute`, which
9669 caused incorrect tag nesting for input like
9670 `<aside markdown="1">*hi*</aside>`.
9671 + Fixed regression with intraword underscores (#1121).
9672 + Improved parsing of inline links containing quote characters (#1534).
9673 + Slight rewrite of `enclosure`/`emphOrStrong` code.
9674 + Revamped raw HTML block parsing in markdown (#1330).
9675 We no longer include trailing spaces and newlines in the
9676 raw blocks. We look for closing tags for elements (but without
9677 backtracking). Each block-level tag is its own `RawBlock`;
9678 we no longer try to consolidate them (though `--normalize` will do so).
9679 + Combine consecutive latex environments. This helps when you have
9680 two minipages which can't have blank lines between them (#690, #1196).
9681 + Support smallcaps through span.
9682 `<span style="font-variant:small-caps;">foo</span>` will be
9683 parsed as a `SmallCaps` inline, and will work in all output
9684 formats that support small caps (#1360).
9685 + Prevent spurious line breaks after list items (#1137). When the
9686 `hard_line_breaks` option was specified, pandoc would formerly
9687 produce a spurious line break after a tight list item.
9688 + Fixed table parsing bug (#1333).
9689 + Handle `c++` and `objective-c` as language identifiers in
9690 github-style fenced blocks (#1318).
9691 + Inline math must have nonspace before final `$` (#1313).
9695 + Handle comments at the end of tables. This resolves the issue
9696 illustrated in <http://stackoverflow.com/questions/24009489>.
9697 + Correctly handle table rows with too few cells. LaTeX seems to
9698 treat them as if they have empty cells at the end (#241).
9699 + Handle leading/trailing spaces in `\emph` better.
9700 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
9701 so that we don't get things like `* hi *` in markdown output.
9702 Also applies to `\textbf` and some other constructions (#1146).
9703 + Don't assume preamble doesn't contain environments (#1338).
9704 + Allow (and discard) optional argument for `\caption` (James Aspnes).
9708 + Fixed major parsing problem with HTML tables. Table cells were
9709 being combined into one cell (#1341).
9710 + Fixed performance issue with malformed HTML tables.
9711 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
9712 + Allow space between `<col>` and `</col>`.
9713 + Added `audio` and `source` in `eitherBlockOrInline`.
9714 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
9715 `blockTags` to `eitherBlockOrInline`.
9716 + `map` and `object` were mistakenly in both lists; they have been removed
9718 + Ignore `DOCTYPE` and `xml` declarations.
9722 + Don't parse backslash escapes inside `<source>` (#1445).
9723 + Tightened up template parsing.
9724 The opening `{{` must be followed by an alphanumeric or `:`.
9725 This prevents the exponential slowdown in #1033.
9726 + Support "Bild" for images.
9730 + Better handle elements inside code environments. Pandoc's document
9731 model does not allow structure inside code blocks, but at least this way
9732 we preserve the text (#1449).
9733 + Support `<?asciidoc-br?>` (#1236).
9737 + Fixed list parsing. Lists can now start without an intervening
9739 + HTML block-level tags that do not start a line are parsed as
9740 inline HTML and do not interrupt paragraphs (as in RedCloth).
9744 + Make tildes create inline code (#1345). Also relabeled `code` and
9745 `verbatim` parsers to accord with the org-mode manual.
9746 + Respect `:exports` header argument in code blocks (Craig Bosma).
9747 + Fixed tight lists with sublists (#1437).
9751 + Avoid excess whitespace in `nav.xhtml`. This should improve
9752 TOC view in iBooks (#1392).
9753 + Fixed regression on cover image.
9754 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
9755 because the metadata id was not correct. Now we derive the id from the
9756 actual cover image filename, which we preserve rather than using
9758 + Keep newlines between block elements. This allows
9759 easier diff-ability (#1424).
9760 + Use `stringify` instead of custom `plainify`.
9761 + Use `renderTags'` for all tag rendering. This properly handles tags
9762 that should be self-closing. Previously `<hr/>` would appear in EPUB
9763 output as `<hr></hr>` (#1420).
9764 + Better handle HTML media tags.
9765 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
9766 can have only one dc:date, so only the first one is used.
9770 + Correctly handle figures in notes. Notes can't contain figures in
9771 LaTeX, so we fake it to avoid an error (#1053).
9772 + Fixed strikeout + highlighted code (#1294).
9773 Previously strikeout highlighted code caused an error.
9777 + Improved detection of autolinks with URLs containing escapes.
9781 + Improved image embedding: `fetchItem'` is now used to get the
9782 images, and calculated image sizes are indicated in the RTF.
9783 + Avoid extra paragraph tags in metadata (#1421).
9787 + Deactivate "incremental" inside slide speaker notes (#1394).
9788 + Don't include empty items in the table of contents for
9789 slide shows. (These would result from creating a slide
9790 using a horizontal rule.)
9794 + Minor renaming of `st` prefixed names.
9798 + Double up emphasis and strong emphasis markers in intraword
9799 contexts, as required by asciidoc (#1441).
9803 + Avoid wrapping that might start a list, blockquote, or header (#1013).
9804 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
9805 + Don't use braced attributes for fenced code (#1416).
9806 If `Ext_fenced_code_attributes` is not set, the first class
9807 attribute will be printed after the opening fence as a bare word.
9808 + Separate adjacent lists of the same kind with an HTML comment (#1458).
9812 + Fixed treatment of data uris for images (#1062).
9816 + Use Compact style for empty table cells (#1353).
9817 Otherwise we get overly tall lines when there are empty
9818 table cells and the other cells are compact.
9819 + Create overrides per-image for `media/` in reference docx.
9820 This should be somewhat more robust and cover more types of images.
9821 + Improved `entryFromArchive` to avoid an unneeded parse.
9822 + Section numbering carries over from reference.docx (#1305).
9823 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
9824 we assign numbers based on the list marker styles.
9826 * `Text.Pandoc.Options`:
9828 + Removed `Ext_fenced_code_attributes` from `markdown_github`
9831 * `Text.Pandoc.ImageSize`:
9833 + Use default instead of failing if image size not found
9834 in exif header (#1358).
9835 + ignore unknown exif header tag rather than crashing.
9836 Some images seem to have tag type of 256, which was causing
9839 * `Text.Pandoc.Shared`:
9841 + `fetchItem`: unescape URI encoding before reading local file (#1427).
9842 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
9843 doing mime lookup, to improve mime type guessing.
9844 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
9845 other things are treated as relative URIs if `sourceURL` is `Just _`,
9846 otherwise as file paths on the local file system.
9847 + `fetchItem` now properly handles links without a protocol (#1477).
9848 + `fetchItem` now escapes characters not allowed in URIs before trying
9850 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
9852 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
9853 needed to resolve relative URLs when we fetch resources (#750).
9855 * `Text.Pandoc.Parsing`
9857 + Simplified `dash` and `ellipsis` (#1419).
9858 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
9859 + Generalized functions to use `ParsecT` (Matthew Pickering).
9860 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
9865 * Added haddock template.
9866 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
9867 be "advisory" in HTML5, but kindlegen seems to require them.
9868 * EPUB3: Put title page in section with `epub:type="titlepage"`.
9869 * LaTeX: Made `\subtitle` work properly (#1327).
9870 * LaTeX/Beamer: remove conditional around date (#1321).
9871 * LaTeX: Added `lot` and `lof` variables, which can be set to
9872 get `\listoftables` and `\listoffigures` (#1407). Note that
9873 these variables can be set at the command line with `-Vlot -Vlof`
9874 or in YAML metadata.
9876 [under the hood improvements]
9878 * Rewrote normalize for efficiency (#1385).
9880 * Rewrote Haddock reader to use `haddock-library` (#1346).
9882 + This brings pandoc's rendering of haddock markup in line
9883 with the new haddock.
9884 + Fixed line breaks in `@` code blocks.
9885 + alex and happy are no longer build-depends.
9887 * Added `Text.Pandoc.Compat.Directory` to allow building against
9888 different versions of the `directory` library.
9890 + Added `Text.Pandoc.Compat.Except` to allow building against
9891 different versions of `mtl`.
9893 * Code cleanup in some writers, using Reader monad to avoid
9894 passing options parameter around (Matej Kollar).
9896 * Improved readability in `pandoc.hs`.
9898 * Miscellaneous code cleanups (Artyom Kazak).
9900 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
9903 * Changed `http-conduit` flag to `https`. Depend on `http-client`
9904 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
9905 depends on `conduit` via `yaml`.)
9907 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
9908 This change to highlighting-kate means that PHP fragments no longer need
9909 to start with `<?php`. It also fixes a serious bug causing failures with
9912 * Require latest `texmath`. This fixes `\tilde{E}` and allows
9913 `\left` to be used with `]`, `)` etc. (#1319), among many other
9916 * Require latest `zip-archive`. This has fixes for unicode path names.
9918 * Added tests for plain writer.
9920 * `Text.Pandoc.Templates`:
9922 + Fail informatively on template syntax errors.
9923 With the move from parsec to attoparsec, we lost good error
9924 reporting. In fact, since we weren't testing for end of input,
9925 malformed templates would fail silently. Here we revert back to
9926 Parsec for better error messages.
9927 + Use `ordNub` (#1022).
9931 + Made benchmarks compile again (Artyom Kazak).
9932 + Fixed so that the failure of one benchmark does not prevent others
9933 from running (Artyom Kazak).
9934 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
9935 + Changed benchmark to use only the test suite, so that benchmarks
9938 * Windows build script:
9940 + Add `-windows` to file name.
9941 + Use one install command for pandoc, pandoc-citeproc.
9942 + Force install of pandoc-citeproc.
9944 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
9945 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
9946 will extract it into a folder named `SOMETHING.pkg`, which it
9947 will interpret as a defective package (#1308).
9951 + Made headers for all extensions so they have IDs and can be
9952 linked to (Beni Cherniavsky-Paskin).
9953 + Fixed typos (Phillip Alday).
9954 + Fixed documentation of attributes (#1315).
9955 + Clarified documentation on small caps (#1360).
9956 + Better documentation for `fenced_code_attributes` extension
9958 + Documented fact that you can put YAML metadata in a separate file
9964 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
9966 * Shared: `addMetaValue` now behaves slightly differently:
9967 if both the new and old values are lists, it concatenates their
9968 contents to form a new list.
9972 + Set `bibliography` in metadata from `\bibliography` or
9973 `\addbibresource` command.
9974 + Don't error on `%foo` with no trailing newline.
9978 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
9979 + Fix parsing of blank lines within blocks (Albert Krewinkel).
9980 + Support pandoc citation extension (Albert Krewinkel). This can
9981 be turned off by specifying `org-citations` as the input format.
9985 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
9986 other readers (Albert Krewinkel).
9988 * `Text.Pandoc.Parsing`:
9990 + Added `citeKey` (see above).
9991 + Added `HasLastStrPosition` type class and `updateLastStrPos`
9992 and `notAfterString` functions.
9994 * Updated copyright notices (Albert Krewinkel).
9996 * Added default.icml to data files so it installs with the package.
10000 + The binary is now built with options to ensure that it can be
10001 used with OSX 10.6+.
10002 + Moved OSX package materials to osx directory.
10003 + Added OSX package uninstall script, included in the zip container
10004 (thanks to Daniel T. Staal).
10008 * Made it possible to run filters that aren't executable (#1096).
10009 Pandoc first tries to find the executable (searching the path
10010 if path isn't given). If it fails, but the file exists and has
10011 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
10012 using the appropriate interpreter. This should make it easier to
10013 use filters on Windows, and make it more convenient for everyone.
10015 * Added Emacs org-mode reader (Albert Krewinkel).
10017 * Added InDesign ICML Writer (Mauro Bieg).
10019 * MediaWiki reader:
10021 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
10022 + Fixed bug in certain nested lists (#1213). If a level 2 list was
10023 followed by a level 1 list, the first item of the level 1 list
10025 + Handle table rows containing just an HTML comment (#1230).
10029 + Give better location information on errors, pointing to line
10030 numbers within included files (#1274).
10031 + LaTeX reader: Better handling of `table` environment (#1204).
10032 Positioning options no longer rendered verbatim.
10033 + Better handling of figure and table with caption (#1204).
10034 + Handle `@{}` and `p{length}` in tabular. The length is not actually
10035 recorded, but at least we get a table (#1180).
10036 + Properly handle `\nocite`. It now adds a `nocite` metadata
10037 field. Citations there will appear in the bibliography but not
10038 in the text (unless you explicitly put a `$nocite$` variable
10043 + Ensure that whole numbers in YAML metadata are rendered without
10044 decimal points. (This became necessary with changes to aeson
10045 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
10046 + Fixed regression on line breaks in strict mode (#1203).
10047 + Small efficiency improvements.
10048 + Improved parsing of nested `div`s. Formerly a closing `div` tag
10049 would be missed if it came right after other block-level tags.
10050 + Avoid backtracking when closing `</div>` not found.
10051 + Fixed bug in reference link parsing in `markdown_mmd`.
10052 + Fixed a bug in list parsing (#1154). When reading a raw list
10053 item, we now strip off up to 4 spaces.
10054 + Fixed parsing of empty reference link definitions (#1186).
10055 + Made one-column pipe tables work (#1218).
10059 + Better support for attributes. Instead of being ignored, attributes
10060 are now parsed and included in Span inlines. The output will be a bit
10061 different from stock textile: e.g. for `*(foo)hi*`, we'll get
10062 `<em><span class="foo">hi</span></em>` instead of
10063 `<em class="foo">hi</em>`. But at least the data is not lost.
10064 + Improved treatment of HTML spans (%) (#1115).
10065 + Improved link parsing. In particular we now pick up on attributes.
10066 Since pandoc links can't have attributes, we enclose the whole link in
10067 a span if there are attributes (#1008).
10068 + Implemented correct parsing rules for inline markup (#1175, Matthew
10070 + Use Builder (Matthew Pickering).
10071 + Fixed list parsing bug (#1500).
10072 + Don't allow inline formatting to extend over newlines.
10073 This matches the behavior of RedCarpet, avoids some ugly bugs,
10074 and improves performance.
10078 + Better treatment of `formalpara`. We now emit the title (if present)
10079 as a separate paragraph with boldface text (#1215).
10080 + Set metadata `author` not `authors`.
10081 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
10082 Matthew Pickering).
10083 + Converted current meta information parsing in DocBook to a more
10084 extensible version which is aware of the more recent meta
10085 representation (Matthew Pickering).
10089 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
10091 + Treat processing instructions & declarations as block. Previously
10092 these were treated as inline, and included in paragraph tags in HTML
10093 or DocBook output, which is generally not what is wanted (#1233).
10094 + Updated `closes` with rules from HTML5 spec.
10095 + Use Builder (Matthew Pickering, #1162).
10099 + Remove duplicate `http` in PEP links (Albert Krewinkel).
10100 + Make rst figures true figures (#1168, CasperVector)
10101 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
10102 rST parser now supports: all built-in rST roles, new role definition,
10103 role inheritance, though with some limitations.
10104 + Use `author` rather than `authors` in metadata.
10105 + Better handling of directives. We now correctly handle field
10106 lists that are indented more than three spaces. We treat an
10107 `aafig` directive as a code block with attributes, so it can be
10108 processed in a filter (#1212).
10112 + Mark span contents with label if span has an ID (Albert Krewinkel).
10113 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
10114 + Handle line breaks in simple table cells (#1217).
10115 + Workaround for level 4-5 headers in quotes. These previously produced
10116 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
10117 This adds an `mbox{}` in these contexts to work around the problem.
10118 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
10119 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
10120 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
10121 ligature with LuaLaTeX but `\/` does.
10122 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
10124 * ConTeXt writer: Improved autolinks (#1270).
10128 + Improve handling of hard line breaks in Docbook writer
10129 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
10130 just for the newline character.
10131 + Don't let line breaks inside footnotes influence the enclosing
10132 paragraph (Neil Mayhew).
10133 + Distinguish tight and loose lists in DocBook output, using
10134 `spacing="compact"` (Neil Mayhew, #1250).
10136 * Docx writer: When needed files are not present in the user's
10137 `reference.docx`, fall back on the versions in the `reference.docx`
10138 in pandoc's data files. This fixes a bug that occurs when a
10139 `reference.docx` saved by LibreOffice is used. (#1185)
10143 + Include extension in epub ids. This fixes a problem with duplicate
10144 extensions for fonts and images with the same base name but different
10145 extensions (#1254).
10146 + Handle files linked in raw `img` tags (#1170).
10147 + Handle media in `audio` source tags (#1170).
10148 Note that we now use a `media` directory rather than `images`.
10149 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
10150 will both be incorporated into `content.opf` and the epub container.
10154 + Add colgroup around col tags (#877). Also affects EPUB writer.
10155 + Fixed bug with unnumbered section headings. Unnumbered section
10156 headings (with class `unnumbered`) were getting numbers.
10157 + Improved detection of image links. Previously image links with
10158 queries were not recognized, causing `<embed>` to be used instead
10161 * Man writer: Ensure that terms in definition lists aren't line wrapped
10166 + Use proper escapes to avoid unwanted lists (#980). Previously we used
10167 0-width spaces, an ugly hack.
10168 + Use longer backtick fences if needed (#1206). If the content contains a
10169 backtick fence and there are attributes, make sure longer fences are
10170 used to delimit the code. Note: This works well in pandoc, but github
10171 markdown is more limited, and will interpret the first string of three
10172 or more backticks as ending the code block.
10174 * RST writer: Avoid stack overflow with certain tables (#1197).
10176 * RTF writer: Fixed table cells containing paragraphs.
10180 + Correctly handle UTF-8 in custom lua scripts (#1189).
10181 + Fix bugs with lua scripts with mixed-case filenames and
10182 paths containing `+` or `-` (#1267). Note that `getWriter`
10183 in `Text.Pandoc` no longer returns a custom writer on input
10186 * AsciiDoc writer: Handle multiblock and empty table cells
10187 (#1245, #1246). Added tests.
10189 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
10191 * `Text.Pandoc.Shared`:
10193 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
10194 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
10195 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
10197 + `openURL`: set proxy with value of http_proxy env variable (#1211).
10198 Note: proxies with non-root paths are not supported, due to
10199 limitations in `http-conduit`.
10201 * `Text.Pandoc.PDF`:
10203 + Ensure that temp directories deleted on Windows (#1192). The PDF is
10204 now read as a strict bytestring, ensuring that process ownership will
10205 be terminated, so the temp directory can be deleted.
10206 + Use `/` as path separators in a few places, even on Windows.
10207 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
10208 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
10209 + Changes to error reporting, to handle non-UTF8 error output.
10211 * `Text.Pandoc.Templates`:
10213 + Removed unneeded datatype context (Merijn Verstraaten).
10215 + YAML objects resolve to "true" in conditionals (#1133).
10216 Note: If `address` is a YAML object and you just have `$address$`
10217 in your template, the word `true` will appear, which may be
10218 unexpected. (Previously nothing would appear.)
10220 * `Text.Pandoc.SelfContained`:
10222 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
10224 * It no longer looks in data files. This only made sense when we
10225 had copies of slidy and S5 code there.
10226 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
10227 + Handle `poster` attribute in `video` tags (#1188).
10229 * `Text.Pandoc.Parsing`:
10231 + Made `F` an instance of Applicative (#1138).
10232 + Added `stateCaption`.
10233 + Added `HasMacros`, simplified other typeclasses.
10234 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
10235 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
10236 + Changed the smart punctuation parser to return `Inlines`
10237 rather than `Inline` (Matthew Pickering).
10238 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
10239 from typeclasses of monads to typeclasses of states. This simplifies
10240 the instance definitions and provides more flexibility. Generalized
10241 type of `getOption` and added a default definition. Removed
10242 `askReaderOption`. Added `extractReaderOption`. Added
10243 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
10244 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
10245 `modifyHeaderMap`. Added `extractIdentifierList` and
10246 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
10247 for `getIdentifierList`, `putIdentifierList`, and
10248 `modifyIdentifierList`. The ultimate goal here is to allow different
10249 parsers to use their own, tailored parser states (instead of
10250 `ParserState`) while still using shared functions.
10252 * Template changes:
10254 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
10255 + LaTeX template: Add `linestretch` and `fontfamily` variables.
10256 + LaTeX template: Conditionalize author and date commands.
10257 + Beamer template: Consistent styles for figure and table captions
10259 + LaTeX and beamer template: Adjust widths correctly for oversized
10260 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
10261 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
10262 `upquote` only after `fontenc` (Yihui Xie).
10263 + Beamer template: Added caption package (#1200).
10264 + Beamer template: changes for better unicode handling (KarolS).
10265 + DocBook template: use `authorgroup` if there are authors.
10266 + revealjs template: Move `include-after` to end (certainlyakey).
10267 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
10269 * Bumped version bounds of dependencies.
10271 * Added a `--trace` command line option, for debugging backtracking
10272 bugs. So far this only works with the markdown reader.
10274 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
10276 * Updated travis script to test with multiple GHC versions.
10278 * Force failure of a Travis build if GHC produces warnings (Albert
10281 * Add `.editorconfig` (Albert Krewinkel).
10282 See <http://editorconfig.org/> for details.
10284 * Give more useful error message if '-t pdf' is specified (#1155).
10286 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
10288 * Allow `html4` as a synonym of `html` as a reader (it already works
10293 + Added an explanation of how to use YAML metadata to
10294 force items to appear in the bibliography without citations in
10295 the text (like LaTeX `\nocite`).
10296 + Added note to `--bibtex/--natbib`: not for use in making PDF
10297 (#1194, thanks to nahoj).
10298 + Added explanatory notes about `--natbib` and `--biblatex`.
10299 + Added specification of legal syntax for citation keys.
10300 + Fixed variable defaults documentation (Albert Krewinkel).
10302 * Removed copyright statements for files that have been removed
10303 (Albert Krewinkel).
10305 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
10306 They aren't needed at runtime. We keep README and COPYRIGHT in data
10307 to ensure that they'll be available on all systems on which pandoc
10310 * Use cabal sandboxes in Windows build script.
10314 * To changes to source; recompiled tarball with latest alex and
10315 happy, so they will work with GHC 7.8.
10319 * Bumped version bounds for blaze-html, blaze-markup.
10321 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
10324 * Fixed mediawiki ordered list parsing (#1122).
10326 * HTML reader: Fixed bug reading inline math with `$$` (#225).
10328 * Added support for LaTeX style literate Haskell code blocks in rST
10329 (Merijn Verstraaten).
10333 * Relaxed version constraint on binary, allowing the use of binary 0.5.
10337 * The `--bibliography` option now sets the `biblio-files` variable.
10338 So, if you're using `--natbib` or `--biblatex`, you can just use
10339 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
10341 * Don't run pandoc-citeproc filter if `--bibliography` is
10342 used together with `--natbib` or `--biblatex` (Florian Eitel).
10344 * Template changes:
10346 + Updated beamer template to include booktabs.
10347 + Added `abstract` variable to LaTeX template.
10348 + Put `header-includes` after `title` in LaTeX template (#908).
10349 + Allow use of `\includegraphics[size]` in beamer.
10350 This just required porting a macro definition from the default
10351 LaTeX template to the default beamer template.
10353 * `reference.docx`: Include `FootnoteText` style.
10354 Otherwise Word ignores the style, even when specified in the `pPr`.
10357 * `reference.odt`: Tidied `styles.xml`.
10359 * Relaxed version bounds for dependencies.
10361 * Added `withSocketsDo` around http conduit code in `openURL`,
10362 so it works on Windows (#1080).
10364 * Added `Cite` function to `sample.lua`.
10368 + Fixed regression in title blocks (#1089).
10369 If author field was empty, date was being ignored.
10370 + Allow backslash-newline hard line breaks in grid and
10371 multiline table cells.
10372 + Citation keys may now start with underscores, and may contain
10373 underscores adjacent to internal punctuation.
10377 + Add support for `Verb` macro (jrnold) (#1090).
10378 + Support babel-style quoting: `` "`..."' ``.
10380 * Properly handle script blocks in strict mode. (That is,
10381 `markdown-markdown_in_html_blocks`.) Previously a spurious
10382 `<p>` tag was being added (#1093).
10384 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
10389 + Factored out function for table cell creation.
10390 + Better treatment of footnotes in tables.
10391 Notes now appear in the regular sequence, rather than in the
10392 table cell. (This was a regression in 1.10.)
10394 * HTML reader: Parse name/content pairs from meta tags as metadata.
10397 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
10399 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
10401 * ODT writer: Use mathml for proper rendering of formulas.
10402 Note: LibreOffice's support for this seems a bit buggy. But
10403 it should be better than what we had before.
10405 * RST writer: Ensure no blank line after def in definition list (#992).
10407 * Markdown writer: Don't use tilde code blocks with braced attributes in
10408 `markdown_github` output. A consequence of this change is that the
10409 backtick form will be preferred in general if both are enabled. That
10410 is good, as it is much more widespread than the tilde form. (#1084)
10412 * Docx writer: Fixed problem with some modified reference docx files.
10413 Include `word/_rels/settings.xml.rels` if it exists, as well as other
10414 `rels` files besides the ones pandoc generates explicitly.
10418 + With `--toc`, headers no longer link to themselves (#1081).
10419 + Omit footnotes from TOC entries. Otherwise we get doubled
10420 footnotes when headers have notes!
10424 + Avoid duplicate notes when headings contain notes.
10425 This arose because the headings are copied into the metadata
10426 "title" field, and the note gets rendered twice. We strip the
10427 note now before putting the heading in "title".
10428 + Strip out footnotes from toc entries.
10429 + Fixed bug with `--epub-stylesheet`. Now the contents of
10430 `writerEpubStylesheet` (set by `--epub-stylesheet`)
10431 should again work, and take precedence over a stylesheet specified
10434 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
10436 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
10439 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
10440 we could only get size information for JFIF format, which led
10441 to squished images in Word documents. Closes #976.
10443 * Removed old `MarkdownTest_1.0.3` directory (#1104).
10447 * Markdown reader: Fixed regression in list parser, involving
10448 continuation lines containing raw HTML (or even verbatim raw HTML).
10452 * Metadata may now be included in YAML blocks in a markdown document.
10460 text: An investigation of metadata
10468 text: doi:10.234234.234/33
10469 publisher: My Press
10470 rights: (c) 2007 John Smith, CC BY-NC
10471 cover-image: img/mypic.jpg
10474 Metadata may still be provided using `--epub-metadata`; it will
10475 be merged with the metadata in YAML blocks.
10479 + `meta` tags are now used instead of `opf` attributes for EPUB3.
10480 + Insert "svg" property as needed in opf (EPUB 3).
10481 + Simplify `imageTypeOf` using `getMimeType`.
10482 + Add properties attribute to `cover-image` item for EPUB 3.
10483 + Don't include node for `cover.xhtml` if no cover!
10484 + Ensure that same identifier is used throughout (#1044).
10485 If an identifier is given in metadata, we use that; otherwise
10486 we generate a random uuid.
10487 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
10488 Fixes an issue with Calibre putting the cover at the end of the book
10489 if the spine has `linear="no"`. Apparently this is best practice
10490 for other converters as well:
10491 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
10492 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
10493 + Allow partial dates: `YYYY`, `YYYY-MM`.
10495 * Markdown writer: Fix rendering of tight sublists (#1050).
10496 Previously a spurious blank line was included after a tight sublist.
10498 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
10499 This is reported to be necessary to avoid an error from recent
10500 versions of Libre Office when files contain more than one image
10501 Thanks to wmanley for reporting and diagnosing the problem.
10503 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
10504 Instead, let this be set in the template, using `\setupfloat`.
10505 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
10507 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
10509 * Fixed bug with markdown intraword emphasis. Closes #1066.
10511 * Docbook writer: Hierarchicalize block content in metadata.
10512 Previously headers just disappeared from block-level metadata
10513 when it was used in templates. Now we apply the 'hierarchicalize'
10514 transformation. Note that a block headed by a level-2 header will
10515 turn into a `<sect1>` element.
10517 * OpenDocument writer: Skip raw HTML (#1035).
10518 Previously it was erroneously included as verbatim text.
10520 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
10521 This allows better control of formatting, since the `<a>`
10522 tags have a distinguishing class (#1049).
10526 + Use mime type info returned by fetchItem.
10527 + Fixed core metadata (#1046).
10528 Don't create empty date nodes if no date given.
10529 Don't create multiple `dc:creator` nodes; instead separate by
10531 + Fix URL for core-properties in `_rels/.rels` (#1046).
10533 * Plain writer: don't print `<span>` tags.
10537 + Fix definition lists with internal links in terms (#1032).
10538 This fix puts braces around a term that contains an internal
10539 link, to avoid problems with square brackets.
10540 + Properly escape pdftitle, pdfauthor (#1059).
10541 + Use booktabs package for tables (thanks to Jose Luis Duran).
10543 * Updated beamer template. Now references should work properly
10544 (in a slide) when `--biblatex` or `--natbib` is used.
10548 + Parse contents of curly quotes or matched `"` as quotes.
10549 + Support `\textnormal` as span with class `nodecor`.
10550 This is needed for pandoc-citeproc.
10551 + Improved citation parsing. This fixes a run-time error that occurred
10552 with `\citet{}` (empty list of keys). It also ensures that empty keys
10553 don't get produced.
10555 * MediaWiki reader: Add automatic header identifiers.
10559 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
10561 + Recognize `svg` tags as block level content (thanks to MinRK).
10562 + Parse LaTeX math if appropriate options are set.
10566 + Yaml block must start immediately after `---`. If there's a blank
10567 line after `---`, we interpreted it as a horizontal rule.
10568 + Correctly handle empty bullet list items.
10569 + Stop parsing "list lines" when we hit a block tag.
10570 This fixes exponential slowdown in certain input, e.g.
10571 a series of lists followed by `</div>`.
10573 * Slides: Preserve `<div class="references">` in references slide.
10575 * `Text.Pandoc.Writer.Shared`:
10577 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
10578 attributes, leading to invalid HTML.
10579 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
10580 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
10581 encoded bytestring was returned. We now decode it so it's a proper
10584 * DocBook reader: Handle numerical attributes starting with decimal.
10585 Also use `safeRead` instead of `read`.
10587 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
10588 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
10589 in all the writers. Require `texmath >= 0.6.5.2`.
10591 * `Text.Pandoc.MIME`:
10593 + Add entry for `jfif`.
10594 + In looking up extensions, drop the encoding info.
10595 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
10597 * Templates: Changed how array variables are resolved. Previously if
10598 `foo` is an array (which might be because multiple values were set on
10599 the command line), `$foo$` would resolve to the concatenation of the
10600 elements of foo. This is rarely useful behavior. It has been changed
10601 so that the first value is rendered. Of course, you can still iterate
10602 over the values using `$for(foo)$`. This has the result that you can
10603 override earlier settings using `-V` by putting new values later on the
10604 command line, which is useful for many purposes.
10606 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
10608 * Allow "epub2" as synonym for "epub", "html4" for "html".
10610 * Don't look for slidy files in data files with `--self-contained`.
10612 * Allow `https:` command line arguments to be downloaded.
10614 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
10618 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
10619 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
10620 "c": "foo"}`. This new format is easier to work with outside of Haskell.
10621 Incidentally, "t" stands for "tag", "c" for "contents".
10623 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
10624 when converting to markdown (#1027).
10628 + Ensure that preamble doesn't contribute to the text of
10630 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
10631 properly, among others.
10632 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
10633 bibtex titles, since we need to know what was protected from
10634 titlecase conversions.
10638 + Specially escape non-ascii characters in labels.
10639 Otherwise we can get compile errors and other bugs when
10640 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
10641 + Add link anchors for code blocks with identifiers (#1025).
10643 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
10644 It allows fragments identifiers.
10648 + A Div element with class "notes" is treated as speaker
10649 notes. Currently beamer goes to `\note{}`, revealjs to
10650 `<aside class="notes">`, and the notes are simply suppressed in
10651 other formats (#925).
10652 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
10653 The old version caused a pause to be inserted before the first
10654 material on a slide. This has been fixed.
10655 + Removed data files for s5, slideous, slidy.
10656 Users of s5 and slideous will have to download the needed
10657 files, as has been documented for some time in the README.
10658 By default, slidy code will be sought on the web, as before.
10660 * HTML writer: Insert command to typeset mathjax only in slideous output
10663 * RST writer: Skip spaces after display math. Otherwise we get indentation
10664 problems, and part of the next paragraph may be rendered as part of the
10667 * OpenDocument writer: Fix formatting of strikeout code (#995),
10668 thanks to wilx. don't use `font-face-decls` variable.
10670 * Fixed test suite so it works with cabal sandboxes.
10674 * Removed `stringable` dependency.
10678 * Allow `--metadata` to be repeated for the same key to form a list.
10679 This also has the effect that `--bibliography` can be repeated,
10682 * Handle boolean values in `--metadata`. Note that anything not parseable
10683 as a YAML boolean or string is treated as a literal string.
10684 You can get a string value with "yes", or any of the strings interpretable
10685 as booleans, by quoting it:
10687 -M boolvalue=yes -M stringvalue='"yes"'
10689 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
10692 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
10693 in which docx files could not be read by some versions of Word
10694 and LibreOffice (#990).
10696 * Fixed a regression involving slide shows with bibliographies.
10697 The Div container around references messed up the procedure for carving
10698 a document into slides. So we now remove the surrounding Div in
10701 * More informative error message when a filter is not found in path.
10703 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
10704 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
10706 * Don't use unicode_collation in building OSX package:
10707 it adds something like 50MB of dependencies to the package.
10709 * Declare alex and happy as build-tools (#986).
10715 * Much more flexible metadata, including arbitrary fields and structured
10716 values. Metadata can be specified flexibly in pandoc markdown using
10717 YAML metadata blocks, which may occur anywhere in the document:
10720 title: Here is my title.
10722 This is the abstract.
10726 and *inline markup*
10728 tags: [cat, dog, animal]
10731 Metadata fields automatically populate template variables.
10733 * Added `opml` (OPML) as input and output format. The `_note` attribute,
10734 used in OmniOutliner and supported by multimarkdown, is supported.
10735 We treat the contents as markdown blocks under a section header.
10737 * Added `haddock` (Haddock markup) as input format (David Lazar).
10739 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
10740 (Thanks to Jamie F. Olson for the initial patch.)
10741 Nested vertical stacks are used for hierarchical structure.
10742 Results for more than one level of nesting may be odd.
10744 * Custom writers can now be written in lua.
10746 pandoc -t data/sample.lua
10748 will load the script sample.lua and use it as a custom writer.
10749 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
10750 Note that pandoc embeds a lua interpreter, so lua need not be
10751 installed separately.
10753 * New `--filter/-F` option to make it easier to run "filters"
10754 (Pandoc AST transformations that operate on JSON serializations).
10755 Filters are always passed the name of the output format, so their
10756 behavior can be tailored to it. The repository
10757 <https://github.com/jgm/pandocfilters> contains
10758 a python module for writing pandoc filters in python, with
10759 a number of examples.
10761 * Added `--metadata/-M` option.
10762 This is like `--variable/-V`, but actually adds to metadata, not
10765 * Added `--print-default-data-file` option, which allows printing
10766 of any of pandoc's data files. (For example,
10767 `pandoc --print-default-data-file reference.odt` will print
10770 * Added syntax for "pauses" in slide shows:
10778 * New markdown extensions:
10780 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
10781 rather than being treated as hard line breaks or spaces. This is useful
10782 for some East Asian languages, where spaces aren't used between words,
10783 but text is separated into lines for readability.
10784 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
10785 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
10786 only. (Default for `markdown_github`.) (#807)
10787 + `lists_without_preceding_blankline`: Allow lists to start without
10788 preceding blank space. (Default for `markdown_github`.) (#972)
10792 * `--toc-level` no longer implies `--toc`.
10793 Reason: EPUB users who don't want a visible TOC may still want
10794 to set the TOC level for in the book navigation.
10796 * `--help` now prints in and out formats in alphabetical order, and
10797 says something about PDF output (#720).
10799 * `--self-contained` now returns less verbose output (telling you
10800 which URLs it is fetching, but not giving the full header). In
10801 addition, there are better error messages when fetching a URL fails.
10803 * Citation support is no longer baked in to core pandoc. Users who
10804 need citations will need to install and use a separate filter
10805 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
10806 `csl`, and `citation-abbreviations` from the metadata, though it
10807 may still be specified on the command line as before.
10809 * A `Cite` element is now created in parsing markdown whether or not
10810 there is a matching reference.
10812 * The `pandoc-citeproc` script will put the bibliography at the
10813 end of the document, as before. However, it will be put inside a `Div`
10814 element with class "references", allowing users some control
10815 over the styling of references. A final header, if any, will
10816 be included in the `Div`.
10818 * The markdown writer will not print a bibliography if the
10819 `citations` extension is enabled. (If the citations are formatted
10820 as markdown citations, it is redundant to have a bibliography,
10821 since one will be generated automatically.)
10823 * Previously we used to store the directory of the first input file,
10824 even if it was local, and used this as a base directory for finding
10825 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
10826 users. So we now look for images relative to the current
10827 working directory, even if the first file argument is in another
10828 directory. Note that this change may break some existing workflows.
10829 If you have been assuming that relative links will be interpreted
10830 relative to the directory of the first file argument, you'll need
10831 to make that the current directory before running pandoc. (#942)
10833 * Better error reporting in some readers, due to changes in `readWith`:
10834 the line in which the error occurred is printed, with a caret pointing
10837 * All slide formats now support incremental slide view for definition lists.
10839 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
10840 Parse `:<math>...</math>` as display math. These notations are used with
10841 the MathJax MediaWiki extension.
10843 * All writers: template variables are set automatically from metadata
10844 fields. However, variables specified on the command line with
10845 `--variable` will completely shadow metadata fields.
10847 * If `--variable` is used to set many variables with the same name,
10850 * Man writer: The `title`, `section`, `header`, and `footer` can now
10851 all be set individually in metadata. The `description` variable has been
10852 removed. Quotes have been added so that spaces are allowed in the
10853 title. If you have a title that begins
10855 COMMAND(1) footer here | header here
10857 pandoc will still parse it into a title, section, header, and
10858 footer. But you can also specify these elements explicitly (#885).
10862 + Added support for YAML metadata blocks, which can come anywhere
10863 in the document (not just at the beginning). A document can contain
10864 multiple YAML metadata blocks.
10865 + HTML span and div tags are parsed as pandoc Span and Div elements.
10869 + Allow simple tables to be printed as grid tables,
10870 if other table options are disabled. This means you can do
10871 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
10872 and all tables will render as grid tables.
10873 + Support YAML title block (render fields in alphabetical order
10874 to make output predictable).
10878 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
10879 structured metadata. (Note: existing code that pattern-matches
10880 on `Meta` will have to be revised.) Metadata can now contain
10881 indefinitely many fields, with content that can be a string,
10882 a Boolean, a list of `Inline` elements, a list of `Block`
10883 elements, or a map or list of these.
10885 * A new generic block container (`Div`) has been added to `Block`,
10886 and a generic inline container (`Span`) has been added to `Inline`.
10887 These can take attributes. They will render in HTML, Textile,
10888 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
10889 extension) as HTML `<div>` and `<span>` elements; in other formats
10890 they will simply pass through their contents. But they can be
10891 targeted by scripts.
10893 * `Format` is now a newtype, not an alias for String.
10894 Equality comparisons are case-insensitive.
10896 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
10897 functions that are much faster than the SYB functions from
10898 `Text.Pandoc.Generic`. These functions are now used where possible
10899 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
10900 match the generic traversals `bottomUp` and `queryWith`.)
10902 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
10903 instances for the basic pandoc types. They use GHC generics and
10904 should be faster than the old JSON serialization using
10905 `Data.Aeson.Generic`.
10907 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
10908 This is a souped-up version of `readProcessWithErrorcode` that
10909 uses lazy bytestrings instead of strings and allows setting
10910 environment variables. (Used in `Text.Pandoc.PDF`.)
10912 * New module `Text.Pandoc.Readers.OPML`.
10914 * New module `Text.Pandoc.Writers.OPML`.
10916 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
10917 This is based on Haddock's own lexer/parser.
10919 * New module `Text.Pandoc.Writers.Custom`.
10921 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
10922 Either, for better error handling.
10924 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
10926 * Removed `stripTags` from `Text.Pandoc.XML`.
10928 * `Text.Pandoc.Templates`:
10930 + Simplified `Template` type to a newtype.
10932 + Changed type of `renderTemplate`: it now takes a JSON context
10933 and a compiled template.
10934 + Export `compileTemplate`.
10935 + Export `renderTemplate'` that takes a string instead of a compiled
10937 + Export `varListToJSON`.
10939 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
10940 The signature of `makePDF` has changed and now contains
10941 an additional argument for pdf engine options.
10945 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
10946 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
10947 `Text.Pandoc.JSON` should be used instead. (Compiling against
10948 pandoc-types instead of pandoc will also produce smaller executables.)
10949 * Removed the deprecated `jsonFilter` function.
10950 + Added `readJSON`, `writeJSON` to the API (#817).
10952 * `Text.Pandoc.Options`:
10954 + Added `Ext_lists_without_preceding_blankline`,
10955 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
10956 `Ext_yaml_metadataBlock` to `Extension`.
10957 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
10958 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
10959 first command-line argument is an absolute URL. (So, relative links
10960 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
10961 + All bibliography-related fields have been removed from
10962 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
10963 `readerReferences`, `readerCitationStyle`.
10964 + Removed `writerPdfArgs` from `WriterOptions`. These are now
10965 passed in as a parameter to `makePDF`.
10967 * The `Text.Pandoc.Biblio` module has been removed. Users of the
10968 pandoc library who want citation support will need to use
10969 `Text.CSL.Pandoc` from `pandoc-citeproc`.
10974 * In markdown, don't autolink a bare URI that is followed by `</a>`
10977 * `Text.Pandoc.Shared`
10979 + `openURL` now follows redirects (#701), properly handles `data:`
10980 URIs, and prints diagnostic output to stderr rather than stdout.
10981 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
10982 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
10983 + Fixed `readDefaultDataFile` so it works on Windows.
10984 + Better error messages for `readDefaultDataFile`. Instead of
10985 listing the last path tried, which can confuse people who are
10986 using `--self-contained`, so now we just list the data file name.
10987 + URL-escape pipe characters. Even though these are legal, `Network.URI`
10988 doesn't regard them as legal in URLs. So we escape them first (#535).
10990 * Mathjax in HTML slide shows: include explicit "Typeset" call.
10991 This seems to be needed for some formats (e.g. slideous) and won't
10992 hurt in others (#966).
10994 * `Text.Pandoc.PDF`
10996 + On Windows, create temdir in working directory, since the system
10997 temp directory path may contain tildes, which can cause
10998 problems in LaTeX (#777).
10999 + Put temporary output directory in `TEXINPUTS` (see #917).
11000 + `makePDF` tries to download images that are not found locally,
11001 if the first argument is a URL (#917).
11002 + If compiling with `pdflatex` yields an encoding error, offer
11003 the suggestion to use `--latex-engine=xelatex`.
11005 * Produce automatic header identifiers in parsing textile, RST,
11006 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
11008 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
11009 before treating as a filename. This fixes `--self-contained` when used
11010 with CSS files that include web fonts using the method described here:
11011 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
11012 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
11014 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
11015 percent-encoding, or a `+` character, as final punctuation.
11017 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
11018 EPS images properly sized on conversion to Word.
11020 * Slidy: Use slidy.js rather than slidy.js.gz.
11021 Reason: some browsers have trouble with the gzipped js file,
11022 at least on the local file system (#795).
11026 + Properly handle blank line at beginning of input (#882).
11027 + Fixed bug in unmatched reference links. The input
11028 `[*infile*] [*outfile*]` was getting improperly parsed:
11029 "infile" was emphasized, but "*outfile*" was literal (#883).
11030 + Allow internal `+` in citation identifiers (#856).
11031 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
11032 + Do not generate blank title, author, or date metadata elements.
11033 Leave these out entirely if they aren't present.
11034 + Allow backtick code blocks not to be preceded by blank line (#975).
11038 + Correctly handle entities.
11039 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
11040 in code blocks, rather than printing them verbatim. Parse attributes
11041 on `<pre>` tag for code blocks.
11043 * HTML reader: Handle non-simple tables (#893). Column widths are read from
11044 `col` tags if present, otherwise divided equally.
11048 + Support alltt environment (#892).
11049 + Support `\textasciitilde`, `\textasciicircum` (#810).
11050 + Treat `\textsl` as emphasized text reader (#850).
11051 + Skip positional options after `\begin{figure}`.
11052 + Support `\v{}` for hacek (#926).
11053 + Don't add spurious ", " to citation suffixes.
11054 This is added when needed in pandoc-citeproc.
11055 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
11056 + Improved support for accented characters (thanks to Scott Morrison).
11057 + Parse label after section command and set id (#951).
11061 + Don't insert paragraphs where docutils doesn't.
11062 `rst2html` doesn't add `<p>` tags to list items (even when they are
11063 separated by blank lines) unless there are multiple paragraphs in the
11064 list. This commit changes the RST reader to conform more closely to
11065 what docutils does (#880).
11066 + Improved metadata. Treat initial field list as metadata when
11067 standalone specified. Previously ALL fields "title", "author",
11068 "date" in field lists were treated as metadata, even if not at
11069 the beginning. Use `subtitle` metadata field for subtitle.
11070 + Fixed 'authors' metadata parsing in reST. Semicolons separate
11075 + Allow space before table rows.
11076 + Fixed regression for `<ref>URL</ref>`.
11077 `<` is no longer allowed in URLs, according to the uri parser
11078 in `Text.Pandoc.Parsing`. Added a test case.
11079 + Correctly handle indented preformatted text without preceding
11080 or following blank line.
11081 + Fixed `|` links inside table cells. Improved attribute parsing.
11082 + Skip attributes on table rows. Previously we just crashed if
11083 rows had attributes, now we ignore them.
11084 + Ignore attributes on headers.
11085 + Allow `Image:` for images (#971).
11086 + Parse an image with caption in a paragraph by itself as a figure.
11090 + Don't use ligatures in escaping inline code.
11091 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
11092 wherein notes were numbered incorrectly in tables (#827).
11093 + Always create labels for sections. Previously the labels were only
11094 created when there were links to the section in the document (#871).
11095 + Stop escaping `|` in LaTeX math.
11096 This caused problems with array environments (#891).
11097 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
11098 `\` will cause major problems if unescaped.
11099 + Write id for code block to label attribute in LaTeX when listings
11100 is used (thanks to Florian Eitel).
11101 + Scale LaTeX tables so they don't exceed columnwidth.
11102 + Avoid problem with footnotes in unnumbered headers (#940).
11104 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
11105 to the slide if it is one of the header classes. It is recommended
11106 that your bibliography slide have this attribute:
11108 # References {.allowframebreaks}
11110 This causes multiple slides to be created if necessary, depending
11111 on the length of the bibliography.
11113 * ConTeXt writer: Properly handle tables without captions. The old output
11114 only worked in MkII. This should work in MkIV as well (#837).
11116 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
11120 + Fixed `--no-highlight` (Alexander Kondratskiy).
11121 + Don't convert to lowercase in email obfuscation (#839).
11122 + Ensure proper escaping in `<title>` and `<meta>` fields.
11126 + Support `--atx-headers` (Max Rydahl Andersen).
11127 + Don't print empty identifier blocks `([[]])` on headers (Max
11132 + Fixing wrong numbered-list indentation in open document format
11133 (Alexander Kondratskiy) (#369).
11134 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
11135 + Minor changes for ODF 1.2 conformance (#939). We leave the
11136 nonconforming `contextual-spacing` attribute, which is provided by
11137 LibreOffice itself and seems well supported.
11141 + Fixed rendering of display math in lists.
11142 In 1.11 and 1.11.1, display math in lists rendered as a new list
11143 item. Now it always appears centered, just as outside of lists,
11144 and in proper display math style, no matter how far indented the
11145 containing list item is (#784).
11146 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
11147 Previously we used `w:cr` (#873).
11148 + Use Compact style for Plain block elements, to
11149 differentiate between tight and loose lists (#775).
11150 + Ignore most components of `reference.docx`.
11151 We take the `word/styles.xml`, `docProps/app.xml`,
11152 `word/theme/theme1.xml`, and `word/fontTable.xml` from
11153 `reference.docx`, ignoring everything else. This should help
11154 with the corruption problems caused when different versions of
11155 Word resave the reference.docx and reorganize things.
11156 + Made `--no-highlight` work properly.
11160 + Don't add `dc:creator` tags if present in EPUB metadata.
11161 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
11162 + Don't put blank title page in reading sequence.
11163 Set `linear="no"` if no title block. Addresses #797.
11164 + Download webtex images and include as data URLs.
11165 This allows you to use `--webtex` in creating EPUBs.
11166 Math with `--webtex` is automatically made self-contained.
11167 + In `data/epub.css`, removed highlighting styles (which
11168 are no longer needed, since styles are added by the HTML
11169 writer according to `--highlighting-style`). Simplified
11171 + If resource not found, skip it, as in Docx writer (#916).
11175 + Properly handle characters above the 0000-FFFF range.
11176 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
11177 + Fixed regression with RTF table of contents.
11178 + Only autolink absolute URIs. This fixes a regression, #830.
11182 + Only autolink absolute URIs. This fixes a regression, #830.
11183 + Don't wrap attributes in fenced code blocks.
11184 + Write full metadata in MMD style title blocks.
11185 + Put multiple authors on separate lines in pandoc titleblock.
11186 Also, don't wrap long author entries, as new lines get treated
11189 * `Text.Pandoc.Templates`:
11191 + Fixed bug retrieving default template for markdown variants.
11192 + Templates can now contain "record lookups" in variables;
11193 for example, `author.institution` will retrieve the `institution`
11194 field of the `author` variable.
11195 + More consistent behavior of `$for$`. When `foo` is not a list,
11196 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
11197 So if `foo` resolves to "", no output should be produced.
11198 See pandoc-templates#39.
11200 * Citation processing improvements (now part of pandoc-citeproc):
11202 + Fixed `endWithPunct` The new version correctly sees a sentence
11203 ending in '.)' as ending with punctuation. This fixes a bug which
11204 led such sentences to receive an extra period at the end: '.).'.
11205 Thanks to Steve Petersen for reporting.
11206 + Don't interfere with Notes that aren't citation notes.
11207 This fixes a bug in which notes not generated from citations were
11208 being altered (e.g. first letter capitalized) (#898).
11209 + Only capitalize footnote citations when they have a prefix.
11210 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
11211 inserted before it before passing to citeproc-hs, so that bare numbers
11212 are treated as page numbers by default. A suffix not beginning with
11213 punctuation has a space added at the beginning (rather than a comma and
11214 space, as was done before for not-author-in-text citations).
11215 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
11216 properly, with '23' treated as a locator of type 'page'.
11217 + Many improvements to citation rendering, due to fixes in citeproc-hs
11218 (thanks to Andrea Rossato).
11219 + Warnings are issued for undefined citations, which are rendered
11221 + Fixed hanging behavior when locale files cannot be found.
11225 * DocBook: Use DocBook 4.5 doctype.
11227 * Org: '#+TITLE:' is inserted before the title.
11228 Previously the writer did this.
11230 * LaTeX: Changes to make mathfont work with xelatex.
11231 We need the mathspec library, not just fontspec, for this.
11232 We also need to set options for setmathfont (#734).
11234 * LaTeX: Use `tex-ansi` mapping for `monofont`.
11235 This ensures that straight quotes appear as straight, rather than
11236 being treated as curly. See #889.
11238 * Made `\includegraphics` more flexible in LaTeX template.
11239 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
11241 * LaTeX/Beamer: Added `classoption` variable.
11242 This is intended for class options like `oneside`; it may
11243 be repeated with different options. (Thanks to Oliver Matthews.)
11245 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
11247 * LaTeX: Added `biblio-style` variable (#920).
11249 * DZSlides: title attribute on title section.
11251 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
11253 [under-the-hood improvements]
11255 * Markdown reader:Improved strong/emph parsing, using the strategy of
11256 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
11257 no backtracking, and no keeping track of nesting levels. It will give
11258 different results in some edge cases, but these should not affect normal
11261 * Added `Text.Pandoc.Compat.Monoid`.
11262 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
11263 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
11265 * Added `Text.Pandoc.Compat.TagSoupEntity`.
11266 This allows pandoc to compile with `tagsoup` 0.13.x.
11267 Thanks to Dirk Ullrich for the patch.
11269 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
11270 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
11271 handle simple math in bibliography fields.)
11273 * Added `Text.Pandoc.Writers.Shared` for shared functions used
11274 only in writers. `metaToJSON` is used in writers to create a
11275 JSON object for use in the templates from the pandoc metadata
11276 and variables. `getField`, `setField`, and `defField` are
11277 for working with JSON template contexts.
11279 * Added `Text.Pandoc.Asciify` utility module.
11280 This exports functions to create ASCII-only versions of identifiers.
11282 * `Text.Pandoc.Parsing`
11284 + Generalized state type on `readWith` (API change).
11285 + Specialize readWith to `String` input. (API change).
11286 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
11287 with `stateMeta` and `stateMeta'`.
11289 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
11290 bytestrings seemed to cause problems using pandoc on 64-bit Windows
11293 * Factored out `registerHeader` from markdown reader, added to
11294 `Text.Pandoc.Parsing`.
11296 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
11297 Reason: < 0.5 does not provide a monoid instance for Attribute,
11298 which is now needed by the HTML writer (#803).
11300 * Added `http-conduit` flag, which allows fetching https resources.
11301 It also brings in a large number of dependencies (`http-conduit`
11302 and its dependencies), which is why for now it is an optional flag
11305 * Added CONTRIBUTING.md.
11307 * Improved INSTALL instructions.
11309 * `make-windows-installer.bat`: Removed explicit paths for executables.
11311 * `aeson` is now used instead of `json` for JSON.
11313 * Set default stack size to 16M. This is needed for some large
11314 conversions, esp. if pandoc is compiled with 64-bit ghc.
11316 * Various small documentation improvements.
11317 Thanks to achalddave and drothlis for patches.
11319 * Removed comment that chokes recent versions of CPP (#933).
11321 * Removed support for GHC version < 7.2, since pandoc-types now
11322 requires at least GHC 7.2 for GHC generics.
11329 + Fixed regression in which parentheses were lost in link URLs.
11330 Added tests. Closes #786.
11331 + Better handling of unmatched double quotes in `--smart` mode.
11332 These occur frequently in fiction, since it is customary not to
11333 close quotes in dialogue if the speaker does not change between
11334 paragraphs. The unmatched quotes now get turned into literal
11335 left double quotes. (No `Quoted` inline is generated, however.)
11336 Closes #99 (again).
11338 * HTML writer: Fixed numbering mismatch between TOC and sections.
11339 `--number-offset` now affects TOC numbering as well
11340 as section numbering, as it should have all along. Closes #789.
11342 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
11343 as markdown citations, even if `--bibliography` was specified, unless
11344 `citation` extension is disabled. Now, formatted citations are always
11345 printed if `--bibliography` was specified. If you want to reformat
11346 markdown keeping pandoc markdown citations intact, don't use
11347 `--bibliography`. Note that citations parsed from LaTeX documents will
11348 be rendered as pandoc markdown citations when `--bibliography` is not
11351 * ODT writer: Fixed regression leading to corrupt ODTs.
11352 This was due to a change in the `Show` instance for
11353 `Text.Pandoc.Pretty.Doc`. Closes #780.
11355 * Fixed spacing bugs involving code block attributes in
11356 RST reader and Markdown writer. Closes #763.
11358 * Windows package: Various improvements due to Fyodor Sheremetyev.
11360 + Automatically set installation path (Program Files or Local App Data).
11361 + Set system PATH environment variable when installing for all users.
11362 + Pandoc can installed for all users using the following command.
11363 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
11365 * Bumped QuickCheck version bound.
11369 * Added `--number-offset` option. (See README for description.)
11371 * Added `--default-image-extension` option. (See README for description.)
11373 * `--number-sections` behavior change: headers with class `unnumbered`
11374 will not be numbered.
11376 * `--version` now reports the default data directory.
11378 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
11380 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
11382 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
11383 a field for `Attr` rather than just `String`. (API change.)
11385 * Added `markdown_github` as input format. This was an accidental
11388 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
11391 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
11395 + Fixed captions with longtable. Thanks to Joost Kremers.
11396 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
11400 + Load microtype after fonts. Microtype needs to know
11401 what fonts are being used. Thanks to dfc for the patch.
11402 + Set `secnumdepth` to 5 if `--number-sections` specified.
11403 This yields behavior equivalent to the other writers, numbering
11404 level 4 and 5 headers too. Closes #753.
11408 + Handle `<colgroup>` tag.
11409 + Preserve all header attributes.
11413 + Parse `\hrule` as `HorizontalRule`. Closes #746.
11414 + Parse starred variants of `\section` etc. as headers with
11415 attribute `unnumbered`.
11416 + Read optional attributes in `lstlisting` and `Verbatim` environments.
11417 We convert these to pandoc standard names, e.g. `numberLines`
11418 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
11419 + Handle language attribute for lstlistings.
11420 + Better support for Verbatim and minted environments. Closes #763.
11424 + `-` in an attribute context = `.unnumbered`. The point of this
11425 is to provide a way to specify unnumbered headers in non-English
11427 + Fixed bug parsing key/value attributes. Parsing failed if you
11428 had an unquoted attribute immediately before the final '}'.
11429 + Make backslash escape work in attributes.
11430 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
11431 pandoc will parse a MMD title block if it sees one, even if
11432 `pandoc_title_blocks` is enabled.
11433 + Refactoring: `litChar` now includes entities, so we don't need
11434 to use `fromEntities` e.g. on titles.
11435 + Allow spaces around borders in pipe tables. Closes #772.
11436 + Allow all punctuation in angle-bracket autolinks. Previously
11437 things like `----` were disallowed, because the uri parser
11438 treated them as trailing punctuation. Closes #768.
11439 + Make `implicit_header_references` work properly when
11440 headers are given explicit identifiers.
11441 + Check for tables before line blocks. Otherwise some pipe
11442 tables get treated as line blocks.
11443 + Allow `&` in emails (for entities).
11444 + Properly handle entities in titles and links. A markdown link
11445 `<http://göogle.com>` should be a link to `http://göogle.com`.
11450 + Handle attributes on headers.
11454 + Add `fig:` as title for images with captions.
11455 This is needed for them to be rendered as figures. Closes #766.
11456 + Never emit an empty paragraph. See #761.
11457 + Handle `\caption` for images in figures. Closes #766.
11458 + Parse `\section*`, etc. as unnumbered sections.
11462 + Support header attributes. The attributes go on
11463 the enclosing `section` or `div` tag if `--section-divs` is specified.
11464 + Fixed a regression (only now noticed) in html+lhs output.
11465 Previously the bird tracks were being omitted.
11469 + Omit lists with no items to avoid LaTeX errors.
11470 + Support line numbering with `--listings`.
11471 If `numberLines` class is present, we add `numbers=left`;
11472 if `startFrom` is present, we add `firstnumber=`. (#763)
11476 + Removed `\placecontent`. This produced a duplicate toc,
11477 in conjunction with `\placelist`.
11478 + Use `\title`, `\subject` etc. for headers with
11479 `unnumbered` class.
11483 + Support header attributes.
11487 + Use grid tables when needed, and if enabled. Closes #740.
11488 + Render citations as pandoc-markdown citations.
11489 Previously citations were rendered as citeproc-formatted citations
11490 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
11491 unless the `citations` extension is disabled.
11492 If you still want formatted citations in your markdown output,
11493 use `pandoc -t markdown-citations`.
11497 + Support `:number-lines:` in code blocks.
11501 + Better treatment of display math. Display math inside a
11502 paragraph is now put in a separate paragraph, so it will render
11503 properly (centered and without extra blank lines around it).
11504 Partially addresses #742.
11505 + Content types and document rels xml files are now created from
11506 scratch, rather than being taken over from `reference.docx`.
11507 This fixes problems that arise when you edit the `reference.docx`
11509 + We also now encode mime types for each individual image rather
11510 than using defaults. This should allow us to handle a wider
11511 range of image types (including PDF). Closes #414.
11512 + Changed style names in `reference docx`.
11513 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
11514 The old names got changed by Word when the `reference.docx` was
11515 edited. Closes #414.
11519 + Fix section numbering. Previously the numbering restarted from 1
11520 in each chapter (with `--number-sections`), though the numbers in
11521 the table of contents were correct.
11522 + Headers with "unnumbered" attribute are not numbered. (Nor do they
11523 cause an increment in running numbering.) Section numbers now work
11524 properly, even when there is material before the first numbered section.
11525 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
11526 but `linear` is set to `no` unless the `--toc` option is specified.
11527 Include `<guide>` element in OPF. This should allow the TOC to
11528 be usable in Kindles when converted with kindlegen. Closes #773.
11530 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
11531 This dramatically reduces the speed penalty that comes from enabling the
11532 `autolink_bare_uris` extension. The penalty is still substantial (in one
11533 test, from 0.33s to 0.44s), but nowhere near what it used to be.
11534 The RST reader is also much faster now, as it autodetects URIs.
11536 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
11537 with class "unnumbered". Unnumbered sections get `[]` for their
11540 * `Text.Pandoc.Pretty`:
11542 + Fixed `chomp` so it works inside `Prefixed` elements.
11543 + Changed `Show` instance so it is better for debugging.
11545 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
11547 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
11549 * Windows installer improvements:
11551 + The installer is now signed with a certificate (thanks to
11552 Fyodor Sheremetyev).
11553 + WiX is used instead of InnoSetup. The installer is now a
11555 + The version number is now auto-detected, and need not be
11556 updated separately.
11558 * OSX installer improvements:
11560 + The package and pandoc executable are now signed with a
11561 certificate (thanks to Fyodor Sheremetyev).
11562 + RTF version of license is used.
11563 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
11566 * Converted COPYING to markdown.
11568 * pandoc.cabal: Require latest versions of highlighting-kate,
11569 texmath, citeproc-hs, zip-archive.
11573 * Markdown reader: various optimizations, leading to a
11574 significant performance boost.
11576 * RST reader: Allow anonymous form of inline links:
11577 `` `hello <url>`__ `` Closes #724.
11579 * Mediawiki reader: Don't require newlines after tables.
11580 Thanks to jrunningen for the patch. Closes #733.
11582 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
11583 when output is LaTeX, and applied when it is another format.
11584 Partially addresses #730.
11586 * Markdown and RST readers: Added parser to `block` that skips blank
11587 lines. This fixes a subtle regression involving grid tables with
11588 empty cells. Also added test for grid table with empty cells.
11591 * RST writer: Use `.. code:: language` for code blocks with language.
11594 * DocBook writer: Fixed output for hard line breaks, adding a newline
11595 between `<literallayout>` tags.
11597 * Markdown writer: Use an autolink when link text matches url.
11598 Previously we also checked for a null title, but this
11599 test fails for links produced by citeproc-hs in bibliographies.
11600 So, if the link has a title, it will be lost on conversion
11601 to an autolink, but that seems okay.
11603 * Markdown writer: Set title, author, date variables as before.
11604 These are no longer used in the default template, since we use
11605 titleblock, but we set them anyway for those who use custom templates.
11607 * LaTeX writer: Avoid extra space at start/end of table cell.
11608 Thanks to Nick Bart for the suggestion of using @{}.
11610 * `Text.Pandoc.Parsing`:
11612 + More efficient version of `anyLine`.
11613 + Type of `macro` has changed; the parser now returns `Blocks`
11614 instead of `Block`.
11616 * Relaxed old-time version bound, allowing 1.0.*.
11618 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
11619 should create a symlink as described in the README.
11623 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
11624 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
11625 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
11627 * Markdown reader: Fixed bug with headerless grid tables.
11628 The 1.10 code assumed that each table header cell contains exactly one
11629 block. That failed for headerless tables (0) and also for tables with
11630 multiple blocks in a header cell. The code is fixed and tests provided.
11631 Thanks to Andrew Lee for pointing out the bug.
11633 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
11635 + Tilde code fences can again take a bare language string
11636 (`~~~ haskell`), not just curly-bracketed attributes
11637 (`~~~ {.haskell}`).
11638 + Backtick code blocks can take the curly-bracketed attributes.
11639 + Backtick code blocks don't *require* a language.
11640 + Consolidated code for the two kinds of fenced code blocks.
11642 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
11644 * Markdown writer: Use proportional font for email autolinks with
11645 obfuscation. Closes #714.
11647 * Corrected name of `blank_before_blockquote` in README. Closes #718.
11649 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
11650 The bug prevented an autolink at the end of a string (e.g.
11651 at the end of a line block line) from counting as a link. Closes #711.
11653 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
11654 This should work on Windows, unlike the TH solution with
11657 * Eliminated use of TH in test suite.
11659 * Added `Text.Pandoc.Data` (non-exported) to hold the association
11660 list of embedded data files, if the `embed_data_files` flag is selected.
11661 This isolates the code that needs special treatment with file-embed or
11664 * Changes to `make-windows-installer.bat`.
11666 + Exit batch file if any of the cabal-dev installs fail.
11667 + There's no longer any need to reinstall `highlighting-kate`.
11668 + Don't start with a `cabal update`; leave that to the user.
11669 + Force reinstall of pandoc.
11671 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
11676 * Fixed bug with escaped % in LaTeX reader. Closes #710.
11680 * Added further missing fb2 tests to cabal file.
11684 * Added fb2 tests to cabal file's extra-source-files.
11688 * Bump version bounds on test-framework packages.
11694 * New input formats: `mediawiki` (MediaWiki markup).
11696 * New output formats: `epub3` (EPUB v3 with MathML),
11697 `fb2` (FictionBook2 ebooks).
11699 * New `--toc-depth` option, specifying how many levels of
11700 headers to include in a table of contents.
11702 * New `--epub-chapter-level` option, specifying the header
11703 level at which to divide EPUBs into separate files.
11704 Note that this normally affects only performance, not the
11705 visual presentation of the EPUB in a reader.
11707 * Removed the `--strict` option. Instead of using `--strict`,
11708 one can now use the format name `markdown_strict` for either input
11709 or output. This gives more fine-grained control that `--strict`
11710 did, allowing one to convert from pandoc's markdown to strict
11711 markdown or vice versa.
11713 * It is now possible to enable or disable specific syntax
11714 extensions by appending them (with `+` or `-`) to the writer
11715 or reader name. For example,
11717 pandoc -f markdown-footnotes+hard_line_breaks
11719 disables footnotes and enables treating newlines as hard
11720 line breaks. The literate Haskell extensions are now implemented
11721 this way as well, using either `+lhs` or `+literate_haskell`.
11722 For a list of extension names, see the README under
11723 "Pandoc's Markdown."
11725 * The following aliases have been introduced for specific
11726 combinations of markdown extensions: `markdown_phpextra`,
11727 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
11728 work just like regular reader and writer names, and can be modified
11729 with extension modifiers as described above. (Note that conversion
11730 from one markdown dialect to another does not work perfectly,
11731 because there are differences in markdown parsers besides
11732 just the extensions, and because pandoc's internal document model is
11733 not rich enough to capture all of the extensions.)
11735 * New `--html-q-tags` option. The previous default was to use `<q>`
11736 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
11737 Moreover, they are not a robust way of typesetting quotes, since
11738 some user agents don't support them, and some CSS resets (e.g.
11739 bootstrap) prevent pandoc's quotes CSS from working properly.
11740 We now just insert literal quote characters by default in both
11741 `html` and `html5` output, but this option is provided for
11742 those who still want `<q>` tags.
11744 * The markdown reader now prints warnings (to stderr) about
11745 duplicate link and note references. Closes #375.
11747 * Markdown syntax extensions:
11749 + Added pipe tables. Thanks to François Gannaz for the initial patch.
11750 These conform to PHP Markdown Extra's pipe table syntax. A subset
11751 of org-mode table syntax is also supported, which means that you can
11752 use org-mode's nice table editor to create tables.
11754 + Added support for RST-style line blocks. These are
11755 useful for verse and addresses.
11757 + Attributes can now be specified for headers, using the same
11758 syntax as in code blocks. (However, currently only the
11759 identifier has any effect in most writers.) For example,
11763 See [the header above](#foo).
11765 + Pandoc will now act as if link references have been defined
11766 for all headers without explicit identifiers.
11767 So, you can do this:
11771 Link to [My header].
11772 Another link to [it][My header].
11778 + Command macros now work everywhere, including non-math.
11779 Environment macros still not supported.
11780 + `\input` now works, as well as `\include`. TEXINPUTS is used.
11781 Pandoc looks recursively into included files for more included files.
11785 * The Markdown reader no longer puts the text of autolinks in a
11786 `Code` inline. This means that autolinks will no longer appear
11787 in a monospace font.
11789 * The character `/` can now appear in markdown citation keys.
11791 * HTML blocks in strict_markdown are no longer required to begin
11792 at the left margin. Technically this is required, according to
11793 the markdown syntax document, but `Markdown.pl` and other markdown
11794 processors are more liberal.
11796 * The `-V` option has been changed so that if there are duplicate
11797 variables, those specified later on the command line take precedence.
11799 * Tight lists now work in LaTeX and ConTeXt output.
11801 * The LaTeX writer no longer relien on the `enumerate` package.
11802 Instead, it uses standard LaTeX commands to change the list numbering
11805 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
11806 tables to be split over page boundaries.
11808 * The RST writer now uses a line block to render paragraphs containing
11809 linebreaks (which previously weren't supported at all).
11811 * The markdown writer now applies the `--id-prefix` to footnote IDs.
11814 * The plain writer no longer uses backslash-escaped line breaks
11815 (which are not very "plain").
11817 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
11818 Read bytestring and use `Text`'s decodeUtf8 instead of using
11819 `System.IO.hGetContents`. This way you get a message saying
11820 "invalid UTF-8 stream" instead of "invalid byte sequence."
11821 You are also told which byte caused the problem.
11823 * Docx, ODT, and EPUB writers now download images specified by a URL
11824 instead of skipping them or raising an error.
11828 + The default CSS now left-aligns headers by default, instead of
11829 centering. This is more consistent with the rest of the writers.
11830 + A proper multi-level table of contents is now used in `toc.ncx`.
11831 There is no longer a subsidiary table of contents at the beginning
11833 + Code highlighting now works by default.
11834 + Section divs are used by default for better semantic markup.
11835 + The title is used instead of "Title Page" in the table of contents.
11836 Otherwise we have a hard-coded English string, which looks
11837 strange in ebooks written in other languages. Closes #572.
11841 + Put mathjax in span with class "math". Closes #562.
11842 + Put citations in a span with class "citation." In HTML5, also include
11843 a `data-cite` attribute with a space-separated list of citation
11846 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
11847 This treats both `\r\n` and `\n` as `\n` on input, no matter
11848 what platform we're running on.
11850 * Citation processing is now done in the Markdown and LaTeX
11851 readers, not in `pandoc.hs`. This makes it easier for library users
11856 * HTML: Added css to template to preserve spaces in `<code>` tags.
11857 Thanks to Dirk Laurie.
11859 * Beamer: Remove English-centric strings in section pages.
11860 Section pages used to have "Section" and a number as well as the
11861 section title. Now they just have the title. Similarly for part
11862 and subsection. Closes #566.
11864 * LaTeX, ConTeXt: Added papersize variable.
11866 * LaTeX, Beamer templates: Use longtable instead of ctable.
11868 * LaTeX, Beamer templates: Don't require 'float' package for tables.
11869 We don't actually seem to use the '[H]' option.
11871 * LaTeX: Use `upquote` package if it is available. This fixes
11872 straight quotes in verbatim environments.
11874 * Markdown, plain: Fixed titleblock so it is just a single string.
11875 Previously separate title, author, and date variables were used,
11876 but this didn't allow different kinds of title blocks.
11880 + Rationalized templates. Previously there were three different
11881 templates involved in epub production. There is now just one
11882 template, `default.epub` or `default.epub3`. It can now be
11883 overridden using `--template`, just like other templates.
11884 The titlepage is now folded into the default template.
11885 A `titlepage` variable selects it.
11886 + UTF-8, lang tag, meta tags, title element.
11888 * Added scale-to-width feature to beamer template
11892 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
11893 Previously header identifiers were autogenerated by the writers.
11894 Now they are added in the readers (either automatically or explicitly).
11896 * `Text.Pandoc.Builder`:
11898 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
11899 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
11900 custom Monoid instances for `Many Inline` and `Many Block. This
11901 allows `Many` to be made an instance of `Foldable` and `Traversable`.
11902 + The old `Listable` class has been removed.
11903 + The module now exports `isNull`, `toList`, `fromList`.
11904 + The old `Read` and `Show` instances have been removed; derived
11905 instances are now used.
11906 + Added `headerWith`.
11908 * The readers now take a `ReaderOptions` rather than a `ParserState`
11909 as a parameter. Indeed, not all parsers use the `ParserState` type;
11910 some have a custom state. The motivation for this change was to separate
11911 user-specifiable options from the accounting functions of parser state.
11913 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
11914 formerly in `Text.Pandoc.Shared`, and its associated
11915 data types. It also includes a new type `ReaderOptions`, which
11916 contains many options formerly in `ParserState`, and its associated
11919 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
11920 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
11921 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
11922 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
11923 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
11924 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
11925 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
11926 + `ParserState.stateIndentedCodeClasses` ->
11927 `ReaderOptions.readerIndentedCodeClasses`.
11928 + Added `ReaderOptions.readerCitationStyle`.
11930 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
11931 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
11932 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
11933 been renamed `writerEpubMetadata` for consistency.
11935 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
11936 longer stylesheet, fonts, reference files as separate parameters.
11938 * Removed `writerLiterateHaskell` from `WriterOptions`, and
11939 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
11940 by an extension (`Ext_literate_haskell`).
11942 * Removed deprecated `writerXeTeX`.
11944 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
11945 Strict is now handled through extensions.
11947 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
11948 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
11949 and `multimarkdownExtensions`, as well as the `Extensions` type.
11951 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
11954 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
11955 (thanks to Sergey Astanin).
11959 + Added `getReader`, `getWriter` to `Text.Pandoc`.
11960 + `writers` is now an association list `(String, Writer)`.
11961 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
11962 an `IOByteStringWriter`. ALL writers are now in the 'writers'
11963 list, including the binary writers and FB2 writer. This allows
11964 code in `pandoc.hs` to be simplified.
11965 + Changed type of `readers`, so all readers are in IO.
11966 Users who want pure readers can still get them form the reader
11967 modules; this just affects the function `getReader` that looks up
11968 a reader based on the format name. The point of this change is to
11969 make it possible to print warnings from the parser.
11971 * `Text.Pandoc.Parsing`:
11973 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
11974 No other module directly imports Parsec. This will make it easier
11975 to change the parsing backend in the future, if we want to.
11976 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
11977 + Export the type synonym `Parser`.
11978 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
11979 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
11980 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
11981 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
11982 + `ParserState` is no longer an instance of `Show`.
11983 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
11984 + Generalized type of `withQuoteContext`.
11985 + Added `guardEnabled`, `guardDisabled`, `getOption`.
11986 + Removed `failIfStrict`.
11987 + `lookupKeySrc` and `fromKey` are no longer exported.
11989 * `Data.Default` instances are now provided for `ReaderOptions`,
11990 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
11991 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
11992 of `defaultWriterOptions` (which is still defined). Closes #546.
11994 * `Text.Pandoc.Shared`:
11996 + Added `safeRead`.
11997 + Renamed `removedLeadingTrailingSpace` to `trim`,
11998 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
11999 + Count `\r` as space in `trim` functions.
12000 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
12002 + Removed `failUnlessLHS`.
12003 + Export `compactify'`, formerly in Markdown reader.
12004 + Export `isTightList`.
12005 + Do not export `findDataFile`.
12006 + `readDataFile` now returns a strict ByteString.
12007 + Export `readDataFileUTF8` which returns a String, like the
12008 old `readDataFile`.
12009 + Export `fetchItem` and `openURL`.
12011 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
12012 Removed `readImageSize`.
12014 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
12015 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
12018 * `Text.Pandoc.UTF8` is now an exposed module.
12020 * `Text.Pandoc.Biblio`:
12022 + csl parameter now a `String` rather than a `FilePath`.
12023 + Changed type of `processBiblio`. It is no longer in the IO monad.
12024 It now takes a `Maybe Style` argument rather than parameters for CSL
12025 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
12026 the style file and add abbreviations.)
12028 * Markdown reader now exports `readMarkdownWithWarnings`.
12030 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
12035 * Make `--ascii` work properly with `--self-contained`. Closes #568.
12039 + Fixed link parser to avoid exponential slowdowns. Closes #620.
12040 Previously the parser would hang on input like this:
12042 [[[[[[[[[[[[[[[[[[hi
12044 We fixed this by making the link parser parser characters
12045 between balanced brackets (skipping brackets in inline code spans),
12046 then parsing the result as an inline list. One change is that
12048 [hi *there]* bud](/url)
12050 is now no longer parsed as a link. But in this respect pandoc behaved
12051 differently from most other implementations anyway, so that seems okay.
12053 + Look for raw html/latex blocks before tables.
12054 Otherwise the following gets parsed as a table:
12065 + Added support for `:target:` on `.. image::` blocks
12067 + Field list fixes:
12069 - Fixed field lists items with body beginning after a new line
12071 - Allow any char but ':' in names of field lists in RST reader
12073 - Don't allow line breaks in field names.
12074 - Require whitespace after field list field names.
12075 - Don't create empty definition list for metadata field lists.
12076 Previously a field list consisting only of metadata fields (author,
12077 title, date) would be parsed as an empty DefinitionList, which is
12078 not legal in LaTeX and not needed in any format.
12080 + Don't recognize inline-markup starts inside words.
12081 For example, `2*2 = 4*1` should not contain an emphasized
12082 section. Added test case for "Literal symbols". Closes #569.
12083 + Allow dashes as separator in simple tables. Closes #555.
12084 + Added support for `container`, `compound`, `epigraph`,
12085 `rubric`, `highlights`, `pull-quote`.
12086 + Added support for `.. code::`.
12087 + Made directive labels case-insensitive.
12088 + Removed requirement that directives begin at left margin.
12089 This was (correctly) not in earlier releases; docutils doesn't
12090 make the requirement.
12091 + Added support for `replace::` and `unicode::` substitutions.
12092 + Ignore unknown interpreted roles.
12093 + Renamed image parser to `subst`, since it now handles all
12094 substitution references.
12098 + Allow newlines before pipes in table. Closes #654.
12099 + Fixed bug with list items containing line breaks.
12100 Now pandoc correctly handles hard line breaks inside list items.
12101 Previously they broke list parsing.
12102 + Implemented comment blocks.
12103 + Fixed bug affected words ending in hyphen.
12104 + Properly handle links with surrounding brackets.
12105 Square brackets need to be used when the link isn't surrounded by
12106 spaces or punctuation, or when the URL ending may be ambiguous.
12108 + Removed nullBlock. Better to know about parsing problems than
12109 to skip stuff when we get stuck.
12110 + Allow ID attributes on headers.
12111 + Textile reader: Avoid parsing dashes as strikeout.
12112 Previously the input
12119 would be parsed with strikeouts rather than dashes. This fixes
12120 the problem by requiring that a strikeout delimiting - not be
12121 followed by a -. Closes #631.
12122 + Expanded list of `stringBreakers`.
12123 This fixes a bug on input like "(_hello_)" which should
12124 be a parenthesized emphasized "hello".
12125 The new list is taken from the PHP source of textile 2.4.
12126 + Fixed autolinks. Previously the textile reader and writer
12127 incorrectly implented RST-style autolinks for URLs and email
12128 addresses. This has been fixed. Now an autolink is done this way:
12129 `"$":http://myurl.com`.
12130 + Fixed footnotes bug in textile. This affected notes occurring
12131 before punctuation, e.g. `foo[1].`. Closes #518.
12135 + Better handling of citation commands.
12136 + Better handling of `\noindent`.
12137 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
12139 + Made `rawLaTeXInline` try to parse block commands as well. This
12140 is usually what we want, given how `rawLaTeXInline` is used in
12141 the markdown and textile readers. If a block-level LaTeX command
12142 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
12143 we can treat it as raw inline LaTeX.
12144 + Handle \slash command. Closes #605.
12145 + Basic `\enquote` support.
12146 + Fixed parsing of paragraphs beginning with a group. Closes #606.
12147 + Use curly quotes for bare straight quotes.
12148 + Support obeylines environment. Closes #604.
12149 + Guard against "begin", "end" in inlineCommand and
12151 + Better error messages for environments. Now it should tell you that
12152 it was looking for \end{env}, instead of giving "unknown parse error."
12156 + Added HTML 5 tags to list of block-level tags.
12157 + HTML reader: Fixed bug in `htmlBalanced`, which
12158 caused hangs in parsing certain markdown input using
12160 + Parse `<q>` as `Quoted DoubleQuote`.
12161 + Handle nested `<q>` tags properly.
12162 + Modified `htmlTag` for fewer false positives.
12163 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
12164 This makes it more useful in the wikimedia and markdown parsers.
12166 * DocBook reader: Support title in "figure" element. Closes #650.
12168 * MediaWiki writer:
12170 + Remove newline after `<br/>` in translation of `LineBreak`
12171 There's no particular need for a newline (other than making the
12172 generated MediaWiki source look nice to a human), and in fact
12173 sometimes it is incorrect: in particular, inside an enumeration, list
12174 items cannot have embedded newline characters. (Brent Yorgey)
12175 + Use `<code>` not `<tt>` for Code.
12177 * Man writer: Escape `-` as `\-`.
12178 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
12179 signs. That is preferable for use with command-line options. See
12180 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
12181 to Andrea Bolognani for bringing the issue to our attention.
12185 + Improved line block output. Use nonbreaking spaces for
12186 initial indent (otherwise lost in HTML and LaTeX).
12187 Allow multiple paragraphs in a single line block.
12188 Allow soft breaks w continuations in line blocks.
12189 + Properly handle images with no alt text. Closes #678.
12190 + Fixed bug with links with duplicate text. We now (a) use anonymous
12191 links for links with inline URLs, and (b) use an inline link instead
12192 of a reference link if the reference link would require a label that
12193 has already been used for a different link. Closes #511.
12194 + Fixed hyperlinked images. Closes #611. Use `:target:`
12195 field when you have a simple linked image.
12196 + Don't add `:align: center` to figures.
12198 * Texinfo writer: Fixed internal cross-references.
12199 Now we insert anchors after each header, and use `@ref` instead of `@uref`
12200 for links. Commas are now escaped as `@comma{}` only when needed;
12201 previously all commas were escaped. (This change is needed, in part,
12202 because `@ref` commands must be followed by a real comma or period.) Also
12203 insert a blank line in from of `@verbatim` environments.
12207 + Made --id-prefix work in DocBook as well as HTML.
12209 + Don't include empty captions in figures. Closes #581.
12213 + Use `\hspace*` for nonbreaking space after line break,
12214 since `~` spaces after a line break are just ignored.
12216 + Don't escape `_` in URLs or hyperref identifiers.
12217 + Properly escape strings inside \url{}. Closes #576.
12218 + Use `[fragile]` only for slides containing code rendered
12219 using listings. Closes #649.
12220 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
12221 highlighting-kate's macros, which redefine `|` as a short verbatim
12222 delimiter. Thanks to Björn Peemöller for raising this issue.
12223 + Use minipage rather than parbox for block containers in tables.
12224 This allows verbatim code to be included in grid tables.
12226 + Prevent paragraphs containing only linebreaks or spaces.
12230 + Included `highlighting-css` for code spans, too.
12231 Previously it was only included if used in a code block. Closes #653.
12232 + Improved line breaks with `<dd>` tags. We now put a newline between
12233 `</dd>` and `<dd>` when there are multiple definitions.
12234 + Changed mathjax cdn url so it doesn't use https. (This caused
12235 problems when used with `--self-contained`.) See #609.
12239 + `--number-sections` now works properly.
12240 + Don't strip meta and link elements in epub metadata.
12241 Patch from aberrancy. Closes #589.
12242 + Fixed a couple validation bugs.
12243 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
12244 of chapters in some readers, which apparently sort ch2 after ch10.
12247 * ODT writer: properly set title property (Arlo O'Keeffe).
12251 + Fixed bug with nested lists. Previously a list like
12258 would come out with a bullet instead of "2."
12259 Thanks to Russell Allen for reporting the bug.
12260 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
12261 This seems to fix a problem viewing pandoc-generated
12262 docx files in LibreOffice.
12263 + Use integer ids for bookmarks. Closes #626.
12264 + Added nsid to abstractNum elements. This helps when merging
12265 word documents with numbered or bulleted lists. Closes #627.
12266 + Use separate footnotes.xml for notes.
12267 This seems to help LibreOffice convert the file, even though
12268 it was valid docx before. Closes #637.
12269 + Use rIdNN identifiers for r:embed in images.
12270 + Avoid reading image files again when we've already processed them.
12271 + Fixed typo in `referenc.docx` that prevented image captions from
12272 working. Thanks to Huashan Chen.
12274 * `Text.Pandoc.Parsing`:
12276 + Fixed bug in `withRaw`, which didn't correctly handle the case
12277 where nothing is parsed.
12278 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
12279 though it still doesn't implement quoted strings in email addresses.
12280 + Revised URI parser. It now allows many more schemes, allows
12281 uppercase URIs, and better handles trailing punctuation and
12282 trailing slashes in bare URIs. Added many tests.
12283 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
12284 etc. parse properly. Formerly we had some English-centric heuristics,
12285 but they are no longer needed. Closes #698.
12287 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
12288 This fixes bug with Chinese commas in markdown and reST tables, and
12289 a bug that caused combining characters to be dropped.
12291 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
12293 * `Text.Pandoc.Biblio`:
12295 + Run `mvPunc` and `deNote` on metadata too.
12296 This fixed a bug with notes on titles using footnote styles.
12297 + Fixed bug in fetching CSL files from CSL data directory.
12299 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
12300 is provided. It should be the URL up to the path.
12302 * Fixed/simplified diff output for tests.
12303 Biblio: Make sure mvPunc and deNote run on metadata too.
12304 This fixed a bug with notes on titles using footnote styles.
12306 [under the hood improvements]
12308 * We no longer depend on `utf8-string`. Instead we use functions
12309 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
12311 * Use `safeRead` instead of using `reads` directly (various modules).
12313 * "Implicit figures" (images alone in a paragraph) are now handled
12314 differently. The markdown reader gives their titles the prefix `fig:`; the
12315 writers look for this before treating the image as a figure. Though this
12316 is a bit of a hack, it has two advantages: (i) implicit figures can be
12317 limited to the markdown reader, and (ii) they can be deactivated by turning
12318 off the `implicit_figures` extension.
12320 * `catch` from `Control.Exception` is now used instead of the
12321 old Preface `catch`.
12323 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
12324 and `oneOfStrings` (which is now non-backtracking).
12326 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
12327 Now citeproc-hs is fixed upstream, so this is no longer needed.
12330 * Textile reader: Improved speed of `hyphenedWords`.
12331 This speeds up the textile reader by about a factor of 4.
12333 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
12334 better performance, and automatic normalization.
12336 * Major rewrite of markdown reader:
12338 + Use `Text.Pandoc.Builder` instead of lists. This also
12339 means that everything is normalized automatically.
12340 + Move to a one-pass parsing strategy, returning values in the reader
12341 monad, which are then run (at the end of parsing) against the final
12344 * In HTML writer, we now use `toHtml` instead of pre-escaping.
12345 We work around the problem that blaze-html unnecessarily escapes `'`
12346 by pre-escaping just the `'` characters, instead of the whole string.
12347 If blaze-html later stops escaping `'` characters, we can simplify
12348 `strToHtml` to `toHtml`. Closes #629.
12350 * Moved code for embedding images in RTFs from `pandoc.hs` to the
12351 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
12353 * Moved citation processing from `pandoc.hs` into the readers.
12354 This makes things more convenient for library users.
12356 * The man pages are now built by an executable `make-pandoc-man-pages`,
12357 which has its own stanza in the cabal file so that dependencies can be
12358 handled by Cabal. Special treatment in `Setup.hs` ensures that this
12359 executable never gets installed; it is only used to create the man pages.
12361 * The cabal file has been modified so that the pandoc library is used
12362 in building the pandoc executable. (This required moving `pandoc.hs`
12363 from `src` to `.`.) This cuts compile time in half.
12365 * `-O2` is no longer used in building pandoc. The performance improvement
12366 it yields is so slight that it is not worth it. (Measured with
12367 benchmarks on ghc 7.4.)
12369 * The `executable` and `library` flags have been removed.
12371 * `-threaded` has been removed from ghc-options.
12373 * Version bounds of dependencies have been raised, and the
12374 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
12377 * We now require base >= 4.2.
12379 * Integrated the benchmark program into cabal. One can now do:
12381 cabal configure --enable-benchmarks && cabal build
12382 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
12384 The benchmark now uses README + testsuite, so benchmark results
12385 from older versions aren't comparable.
12387 * Integrated test suite with cabal.
12388 To run tests, configure with `--enable-tests`, then `cabal test`.
12389 You can specify particular tests using `--test-options='-t markdown'`.
12390 No output is shown unless tests fail. The Haskell test modules
12391 have been moved from `src/` to `tests/`.
12393 * Moved all data files and templates to the `data/` subdirectory.
12395 * Added an `embed_data_files` cabal flag. This causes all
12396 data files to be embedded in the binary, so that the binary
12397 is self-sufficient and can be relocated anywhere, copied on
12398 a USB key, etc. The Windows installer now uses this.
12399 (Since we no longer have the option to build the executable
12400 without the library, this is the only way to get a relocatable
12401 binary on Windows.)
12403 * Removed pcre3.dll from windows package.
12404 It isn't needed unless highlighting-kate is compilled with the
12405 `pcre-light` flag. By default, regex-prce-builtin is used.
12410 * Don't encode/decode file paths if base >= 4.4.
12411 Prior to base 4.4, filepaths and command line arguments were treated
12412 as unencoded lists of bytes, not unicode strings, so we had to work
12413 around that by encoding and decoding them. This commit adds CPP
12414 checks for the base version that intelligibly enable encoding/decoding
12415 when needed. Fixes a bug with multilingual filenames when pandoc was
12416 compiled with ghc 7.4 (#540).
12418 * Don't generate an empty H1 after hrule slide breaks.
12419 We now use a slide-level header with contents `[Str "\0"]` to mark
12420 an hrule break. This avoids creation of an empty H1 in these
12421 contexts. Closes #484.
12423 * Docbook reader: Added support for "bold" emphasis. Thanks to Mauro Bieg.
12425 * In make_osx_package.sh, ensure citeproc-hs is built with the
12426 embed_data_files flag.
12428 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
12430 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
12431 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
12433 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
12436 * Added webm to mime types. Closes #543.
12438 * Added some missing exports and tests to the cabal file
12439 (Alexander V Vershilov).
12441 * Compile with `-rtsopts` and `-threaded` by default.
12445 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
12447 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
12448 variables. Make TOC links black.
12450 * LaTeX template improvements.
12452 + Don't print date unless one is given explicitly in the document.
12453 + Simplified templates.
12454 + Use fontenc [T1] by default, and lmodern.
12455 + Use microtype if available.
12459 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
12460 Motivation: `@item1 [50]` should be as close as possible to
12462 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
12463 beginning with a citation to be empty. Closes #531.
12465 * Fixed documentation on mixed lists. Closes #533.
12469 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
12470 footnotes and captions. We now handle note citations by inserting
12471 footnotes during initial citation processing, and doing a separate
12472 pass later to remove notes inside notes.
12474 * Added 'zenburn' highlight style from highlighting-kate.
12476 * Added Slideous writer. Slideous is an HTML + javascript slide show
12477 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
12481 + Ensure we don't have extra blank lines at ends of cells.
12482 This can cause LaTeX errors, as they are interpreted as new paragraphs.
12483 + More consistent interblock spacing.
12484 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
12485 code in LaTeX. Closes #527.
12486 + Ensure that a Verbatim at the end of a footnote is followed by
12487 a newline. (Fixes a regression in the previous version.)
12488 + In default template, use black for internal links and TOC.
12489 Added commented-out code to use footnotes for links, as would
12490 be suitable in print output.
12492 * Beamer writer: When `--incremental` is used, lists inside
12493 a block quote should appear all at once. (This makes Beamer
12494 output consistent with the HTML slide show formats.)
12498 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
12499 to avoid gobbling spaces after the `%` sign.
12500 + Ensure space after `\stopformula`.
12504 + Use `:` form instead of `~` in definition lists, for better
12505 compatibility with other markdown implementations.
12506 + Don't wrap the term, because it breaks definition lists.
12507 + Use a nonzero space to prevent false recognition
12508 of list marker in ordered lists. Closes #516.
12510 * Org writer: Add space before language name. Closes #523.
12512 * Docx writer: Simplified bullet characters so they work properly
12513 with Word 2007. Closes #520.
12515 * LaTeX reader: Support `\centerline`.
12517 * RST reader: handle figures. Closes #522.
12519 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
12524 * Fixed bug in `fromEntities`. The previous version would turn
12525 `hi & low you know;` into `hi &`.
12529 + Don't skip nonbreaking spaces.
12530 Previously a paragraph containing just ` ` would be rendered
12531 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
12532 + Support `<col>` and `<caption>` in tables. Closes #486.
12536 + Don't recognize references inside delimited code blocks.
12537 + Allow list items to begin with lists.
12539 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
12543 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
12544 + Control sequences can't be followed by a letter.
12545 This fixes a bug where `\begingroup` was parsed as `\begin`
12546 followed by `group`.
12547 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
12548 + Make `\label` and `\ref` sensitive to `--parse-raw`.
12549 If `--parse-raw` is selected, these will be parsed as raw latex
12550 inlines, rather than bracketed text.
12551 + Don't crash on unknown block commands (like `\vspace{10pt}`)
12552 inside `\author`; just skip them. Closes #505.
12556 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
12557 + Added support for LaTeX blocks and inlines (Paul Rivier).
12558 + Better conformance to RedCloth inline parsing (Paul Rivier).
12559 + Parse '+text+' as emphasized (should be underlined, but this
12560 is better than leaving literal plus characters in the output.
12562 * Docx writer: Fixed multi-paragraph list items. Previously they each
12563 got a list marker. Closes #457.
12567 + Added `--no-tex-ligatures` option to avoid replacing
12568 quotation marks and dashes with TeX ligatures.
12569 + Use `fixltx2e` package to provide '\textsubscript'.
12570 + Improve spacing around LaTeX block environments:
12571 quote, verbatim, itemize, description, enumerate.
12573 + Use blue instead of pink for URL links in latex/pdf output.
12575 * ConTeXt writer: Fixed escaping of `%`.
12576 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
12577 Inside URLs, `%` needs to be escaped as `\%`
12578 Thanks to jmarca and adityam for the fix. Closes #492.
12580 * Texinfo writer: Escape special characters in node titles.
12581 This fixes a problem pointed out by Joost Kremers. Pandoc used
12582 to escape an '@' in a chapter title, but not in the corresponding
12583 node title, leading to invalid texinfo.
12585 * Fixed document encoding in texinfo template.
12586 Resolves Debian Bug #667816.
12590 + Don't force delimited code blocks to be flush left.
12591 Fixes bug with delimited code blocks inside lists etc.
12592 + Escape `<` and `$`.
12594 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
12595 Previously we used `\href{\#ident}{text}`, which didn't work on
12596 all systems. Thanks to Dirk Laurie.
12598 * RST writer: Don't wrap link references. Closes #487.
12600 * Updated to use latest versions of blaze-html, mtl.
12607 + Made `lstlisting` work as a proper verbatim environment.
12608 + Fixed bug parsing LaTeX tables with one column.
12612 + Use `{}` around `ctable` caption, so that formatting can be used.
12613 + Don't require eurosym package unless document has a €.
12615 * LaTeX template: Added variables for `geometry`, `romanfont`,
12616 `sansfont`, `mathfont`, `mainfont` so users can more easily
12621 + Run latex engine at least two times, to ensure
12622 that PDFs will have hyperlinked bookmarks.
12623 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
12625 * Texinfo writer: retain directories in image paths. (Peter Wang)
12627 * RST writer: Better handling of inline formatting, in accord
12628 with docutils' "inline markup recognition rules" (though we don't
12629 implement the unicode rules fully). Now `hi*there*hi` gets
12630 rendered properly as `hi\ *there*\ hi`, and unnecessary
12631 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
12635 + Parse `\ ` as null, not escaped space.
12636 + Allow `` :math:`...` `` even when not followed by blank
12637 or `\`. This does not implement the complex rule docutils follows,
12638 but it should be good enough for most purposes.
12639 + Add support for the rST default-role directive. (Greg Maslov)
12641 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
12644 * Markdown reader: Properly handle citations nested in other inline
12647 * Markdown writer: don't replace empty alt in image with "image".
12649 * DZSlides: Updated template.html and styles in default template.
12650 Removed bizarre CSS for `q` in dzslides template.
12652 * Avoid repeated `id` attribute in section and header in HTML slides.
12654 * README improvements: new instructions on internal links,
12655 removed misleading note on reST math.
12659 + Fixed Windows installer so that dzslides works.
12660 + Removed stripansi.sh.
12661 + Added .travis.yml for Travis continuous integration support..
12662 + Fixed upper bound for zlib (Sergei Trofimovich).
12663 + Fixed upper bound for test-framework.
12664 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
12668 * Added `beamer+lhs` as output format.
12670 * Don't escape `<` in `<style>` tags with `--self-contained`.
12671 This fixes a bug which prevented highlighting from working
12672 when using `--self-contained`.
12674 * PDF: run latex engine three times if `--toc` specified.
12675 This fixes page numbers in the table of contents.
12677 * Docx writer: Added TableNormal style to tables.
12679 * LaTeX math environment fixes. `aligned` is now used instead of
12680 the nonexistent `aligned*`. `multline` instead of the nonexistent
12683 * LaTeX writer: Use `\textasciitilde` for literal `~`.
12685 * HTML writer: Don't escape contents of EQ tags with --gladtex.
12686 This fixes a regression from 1.8.
12688 * Use `<q>` tags for Quoted items for HTML5 output.
12689 The quote style can be changed by modifying the template
12690 or including a css file. A default quote style is included.
12692 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
12693 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
12695 * Updated LaTeX template for better language support.
12696 Use `polyglossia` instead of `babel` with xetex.
12697 Set `lang` as documentclass option.
12698 `\setmainlanguage` will use the last of a comma-separated
12699 list of languages. Thanks to François Gannaz.
12701 * Fixed default LaTeX template so `\euro` and `€` work. The
12702 `eurosym` package is needed if you are using pdflatex.
12704 * Fixed escaping of period in man writer (thanks to Michael Thompson).
12706 * Fixed list label positions in beamer.
12708 * Set `mainlang` variable in context writer.
12709 This parallels behavior of latex writer. `mainlang` is the last
12710 of a comma-separated list of languages in lang.
12712 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
12714 * Changed `-V` so that you can specify a key without a value.
12715 Such keys get the value `true`.
12717 * Fixed permissions on installed man pages - thanks Magnus Therning.
12719 * Windows installer: require XP or higher. The installer is
12720 now compiled on a Windows 7 machine, which fixes a problem
12721 using citation functions on Windows 7.
12723 * OSX package: Check for 64-bit Intel CPU before installing.
12727 * Better handling of raw latex environments in markdown. Now
12733 turns into a raw latex block as expected.
12735 * Improvements to LaTeX reader:
12737 + Skip options after block commands.
12738 + Correctly handle `{\\}` in braced.
12739 + Added a needed 'try'.
12740 + Citations: add `, ` to suffix if it doesn't start with space or
12741 punctuation. Otherwise we get no space between the year and the
12742 suffix in author-date styles.
12744 * Added two needed data files for S5. This fixes a problem with
12745 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
12746 which was no longer being used.
12748 * Fixed some minor problems in `reference.docx`:
12749 name on "Date" style, `xCs` instead of `xIs`.
12751 * Fixed a problem creating docx files using a reference docx
12752 modified using Word. The problem seems to be that Word
12753 modifies `_rels/.rels`, changing the Type of the Relationship to
12754 `docProps/core.xml`. Pandoc now changes this back to the correct
12755 value if it has been altered, fixing the problem.
12757 * Fixed html5 template so it works properly with highlighting.
12763 + Fixed regression in 1.9; properly handle escaped $ in latex math.
12764 + Put LaTeX verse environments in blockquotes.
12768 + Limit nesting of strong/emph. This avoids exponential lookahead
12769 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
12770 + Improved attributes syntax (inn code blocks/spans):
12771 (1) Attributes can contain line breaks. (2) Values in key-value
12772 attributes can be surrounded by either double or single quotes, or
12773 left unquoted if they contain no spaces.
12775 * Don't wrap headers in markdown or RST writers.
12777 * Added `stateMaxNestingLevel` to `ParserState`.
12778 We set this to 6, so you can still have `Emph` inside `Emph`,
12779 just not indefinitely.
12781 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
12783 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
12786 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
12790 * Changed cabal file so that build-depends for the test program
12791 are not required unless the tests flag is used.
12793 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
12794 form ligatures (dashes) in code spans.
12798 * Raised version bound on test-framework to avoid problems
12799 compiling tests on GHC 7.4.1.
12801 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
12802 so citations don't just disappear unless you process with
12803 citeproc. Ignore `\bibliographystyle`, `\nocite`.
12805 * Simplified tex2pdf; it will always run latex twice to
12806 resolve table of contents and hyperrefs.
12810 * Require Cabal >= 1.10.
12811 * Tweaked cabal file to meet Cabal 1.10 requirements.
12815 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
12822 * Added a Microsoft Word `docx` writer. The writer includes support
12823 for highlighted code and for math (which is converted from TeX to OMML,
12824 Office's native math markup language, using texmath's new OMML module).
12825 A new option `--reference-docx` allows the user to customize the
12828 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
12830 * Better support for slide shows:
12832 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
12833 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
12835 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
12836 slide presentations.
12838 + New, flexible rules for dividing documents into sections and slides
12839 (see the "Structuring the slide show" in the User's Guide). These
12840 are backward-compatible with the old rules, but they allow slide
12841 shows to be organized into sections and subsections containing
12844 + A new `--slide-level` option allows users to override defaults
12845 and select a slide level below the first header level with content.
12847 * A new `--self-contained` option produces HTML output that does not
12848 depend on an internet connection or the presence of any external
12849 files. Linked images, CSS, and javascript is downloaded (or fetched
12850 locally) and encoded in `data:` URIs. This is useful for making portable
12851 `HTML slide shows. The --offline` option has been deprecated and is now
12852 `treated as a synonym or --self-contained`.
12854 * Support for PDF output:
12856 + Removed the old `markdown2pdf`.
12857 + `pandoc` can now create PDFs (assuming you have latex and a set of
12858 appropriate packages installed): just specify an output file with the
12860 + A new option `--latex-engine` allows you to specify `pdflatex`,
12861 `xelatex`, or `lualatex` as the processor.
12863 * Highlighting changes:
12865 + Syntax highlighting is now a standard feature; the `highlighting`
12866 flag is no longer needed when compiling.
12867 + A new `--no-highlight` option allows highlighting to be disabled.
12868 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
12869 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
12870 + A new `--highlight-style` option selects between various highlighting
12873 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
12875 * LaTeX `\include` and `\usepackage` commands are now processed,
12876 provided the files are in the working directory.
12878 * EPUB improvements:
12880 + Internal and external links now work in EPUB.
12881 + Raw HTML is allowed.
12882 + New `--epub-embed-font` option.
12883 + Customizable templates for EPUB pages offer more control over
12884 formatting: `epub-page.html`, `epub-coverimage.html`,
12885 `epub-titlepage.html`.
12887 * `--mathml` now works with DocBook.
12889 * Added support for math in RST reader and writer. Inline math uses the
12890 `` :math:`...` `` construct. Display math uses
12894 or if the math is multiline,
12900 These constructions are now supported now by `rst2latex.py`.
12902 * GitHub syntax for fenced code blocks is supported in pandoc's
12903 markdown. You can now write
12915 * Easier scripting: a new `toJsonFilter` function makes it easier to
12916 write Haskell scripts to manipulate the Pandoc AST.
12920 * Fixed parsing of consecutive lists in markdown.
12921 Pandoc previously behaved like Markdown.pl for consecutive
12922 lists of different styles. Thus, the following would be parsed
12923 as a single ordered list, rather than an ordered list followed
12924 by an unordered list:
12932 This change makes pandoc behave more sensibly, parsing this as
12933 two lists. Any change in list type (ordered/unordered) or in
12934 list number style will trigger a new list. Thus, the following
12935 will also be parsed as two lists:
12943 Since we regard this as a bug in Markdown.pl, and not something
12944 anyone would ever rely on, we do not preserve the old behavior
12945 even when `--strict` is selected.
12947 * Dashes work differently with `--smart`: `---` is always em-dash,
12948 and `--` is always en-dash. Pandoc no longer tries to guess when
12949 `-` should be en-dash. *Note:* This may change how existing documents
12950 look when processed with pandoc. A new option, `--old-dashes`,
12951 is provided for legacy documents.
12953 * The markdown writer now uses setext headers for levels 1-2.
12954 The old behavior (ATX headers for all levels) can be restored
12955 using the new `--atx-headers` option.
12957 * Links are now allowed in markdown image captions. They are also
12958 allowed in links, but will appear there as regular text. So,
12960 [link with [link](/url)](/url)
12964 <p><a href="/url">link with link</a></p>
12966 * Improved handling of citations using `citeproc-hs-0.3.4`.
12967 Added `--citation-abbreviations` option.
12969 * Citation keys can no longer end with a punctuation character.
12970 This means that `@item1.` will be parsed as a citation with key
12971 'item1', followed by a period, instead of a citation with key
12972 'item1.', as was the case previously.
12974 * In HTML output, citations are now put in a span with class `citation`.
12976 * The markdown reader now recognizes DocBook block and inline tags.
12977 It was always possible to include raw DocBook tags in a markdown
12978 document, but now pandoc will be able to distinguish block from
12979 inline tags and behave accordingly. Thus, for example,
12985 will not be wrapped in `<para>` tags.
12987 * The LaTeX parser has been completely rewritten; it is now much more
12988 accurate, robust, and extensible. However, there are two important
12989 changes in how it treats unknown LaTeX. (1) Previously, unknown
12990 environments became BlockQuote elements; now, they are treated
12991 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
12992 same as `xyz`. (2) Previously, arguments of unknown commands
12993 were passed through with their braces; now the braces are stripped
12996 * `--smart` is no longer selected automatically with `man` output.
12998 * The deprecated `--xetex` option has been removed.
13000 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
13001 instead. `html5` and `html5+lhs` are now separate output formats.
13003 * Single quotes are no longer escaped in HTML output. They do not
13004 need to be escaped outside of attributes.
13006 * Pandoc will no longer transform leading newlines in code
13007 blocks to `<br/>` tags.
13009 * The ODT writer now sizes images appropriately, using the image
13010 size and DPI information embedded in the image.
13012 * `--standalone` is once again implicitly for a non-text output format
13013 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
13014 and get a standalone ODT file.
13016 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
13019 * The HTML writer now uses `<del>` for strikeout.
13021 * In HTML output with `--section-divs`, the classes `section` and
13022 `level[1,2,..6]` are put on the `div` tags so they can be styled.
13023 In HTML 5 output with `--section-divs`, the classes
13024 `level[1,2,...6]` are put on `section` tags.
13026 * EPUB writer changes:
13028 + The `lang` variable now sets the language
13029 in the metadata (if it is not set, we default to the locale).
13030 + EPUB: UTF-8 is used rather than decimal entities.
13032 * Added `titleslide` class to title slide in S5 template.
13034 * In HTML, EPUB, and docx metadata, the date is normalized into
13035 YYYY-MM-DD format if possible. (This is required for validation.)
13037 * Attributes in highlighted code blocks are now preserved in HTML.
13038 The container element will have the classes, id, and key-value attributes
13039 you specified in the delimited code block. Previously these were stripped
13042 * The reference backlink in the HTML writer no longer has a special
13043 `footnoteBacklink` class.
13045 * The HTML template has been split into `html` and `html5` templates.
13047 * Author and date are treated more consistently in HTML templates.
13048 Authors are now `<h2>`, date `<h3>`.
13050 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
13052 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
13056 * Better support for combining characters and East Asian wide characters
13057 in markdown and reST.
13059 * Better handling of single quotes with `--smart`.
13060 Previously `D'oh l'*aide*` would be parsed with left and right single
13061 quotes instead of apostrophes. This kind of error is now fixed.
13063 * Highlighting: Use `reads` instead of `read` for better error handling.
13064 Fixes crash on `startNum="abc"`.
13066 * Added blank comment after directives in rst template.
13068 * Unescape entities in citation `refId`. The `refId`s coming
13069 from citeproc contain XML numeric entities, and these don't match with the
13070 citation keys parsed by pandoc. Solution is to unescape them.
13072 * HTML reader: Fixed bug parsing tables with both thead and tbody.
13076 + Better handling of escapes in link URLs and titles.
13077 + Fixed backslash escapes in reference links.
13078 + Fixed bug in table/hrule parsing, by checking that the top
13079 line of a table is not followed by a blank line. This bug caused
13080 slowdowns on some files with hrules and tables, as pandoc tried to
13081 interpret the hrules as the tops of multiline tables.
13082 + Fixed bug in code block attribute parser. Previously the ID attribute
13083 got lost if it didn't come first. Now attributes can come in any order.
13085 * RST reader: allow footnotes followed by newline without space characters.
13089 + Ignore empty groups {}, { }.
13090 + LaTeX reader: Handle \@.
13091 + LaTeX reader: Don't crash on commands like `\itemsep`.
13092 + LaTeX reader: Better handling of letter environments.
13094 * RST writer: Fixed bug involving empty table cells. isSimple was being
13095 calculated in a way that assumed there were no non-empty cells.
13099 + Made `--toc` work even without `--number-sections`.
13100 + Escape # in link URLs.
13101 + Use buffering for footnotes containing code blocks.
13102 + Changed 'descr' to 'description', fixed alignment.
13106 + Escape euro character.
13107 + Don't escape ~ inside href{...}.
13108 + Escape # in href URLs.
13109 + Improved detection of book classes. We now check the
13110 `documentclass` variable, and if that is not set, we look through
13111 the template itself. Also, we have added the KOMA classes scrreprt
13112 and scrbook. You can now make a book using
13113 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
13114 + LHS files now set the "listings" variable, so that the definition
13115 of the `code` environment will be included in the template.
13116 + Links are colored blue by default (this can be changed by
13117 modifying `hyperref` settings in the template).
13118 + Added `lang` variable to LaTeX template.
13122 + Fixed bug in HTML template with html5 and mathml.
13123 + Don't use self-closing img, br, hr tags for HTML5.
13124 + Use `<section>` for footnotes if HTML5.
13125 + Update HTML templates to use Content-Style-Type meta tag.
13126 + Use separate variables for meta-date, meta-author.
13127 This makes footnotes work in author and date fields.
13128 + Use 'vertical-align:middle' in WebTeX math for better alignment.
13130 * S5/slidy writer: Make footnotes appear on separate slide at end.
13132 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
13133 META-INF/manifest.xml for ODT files will have everything it needs, so
13134 that ODT files modified by LibreOffice can be used as `--reference-odt`.
13136 * `Text.Pandoc.Templates`: Return empty string for json template.
13138 * `Text.Pandoc.Biblio`:
13140 + Expand citations recursively inside nested inlines.
13141 + Treat `\160` as space when parsing locator and suffix.
13142 This fixes a bug with "p. 33" when `--smart` is used. Previously
13143 the whole "p. 33" would be included in the suffix, with no locator.
13144 + Put whole author-in-text citation in a Cite. Previously just the
13145 date and other info went in the Cite.
13146 + Don't add comma+space to prefix if it ends in punctuation.
13148 * Updated chicago-author-date.csl. The old version did not work
13149 properly for edited volumes with no author.
13153 + Add date to EPUB titlepage and metadata.
13154 + Added TOC identifier in EPUB page template.
13155 + Don't generate superfluous file `cover-image.jpg`.
13157 [under the hood improvements]
13159 * Modified `make_osx_package.sh` to use cabal-dev.
13160 Items are no longer installed as root.
13161 Man pages are zipped and given proper permissions.
13163 * Modified windows installer generator to use cabal-dev.
13165 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
13166 Setup.hs we now invoke 'runghc' in a way that points it to the correct
13167 package databases, instead of always falling back to the default user
13170 * Updated to work with GHC 7.4.1.
13172 * Removed dependency on old-time.
13174 * Removed dependency on dlist.
13176 * New slidy directory for "self-contained."
13178 * TeXMath writer: Use unicode thin spaces for thin spaces.
13180 * Markdown citations: don't strip off initial space in locator.
13184 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
13185 from the native `Inline` type in pandoc-types. Now we use `Str`
13186 elements with unicode.
13188 * Improvements to `Text.Pandoc.Builder`:
13190 + `Inlines` and `Blocks` are now newtypes (not synonyms for
13192 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
13193 and a new `Listable` class, which allows these to be manipulated
13194 to some extent like lists. Monoid append includes automatic
13196 + `+++` has been replaced by `<>` (mappend).
13198 * Use blaze-html instead of xhtml for HTML generation.
13199 This changes the type of `writeHtml`.
13201 * `Text.Pandoc.Shared`:
13203 + Added `warn` and `err`.
13204 + Removed `unescapeURI`, modified `escapeURI`.
13205 (See under [behavior changes], above.)
13207 * Changes in URI escaping: Previously the readers escaped URIs by
13208 converting unicode characters to octets and then percent encoding.
13209 Now unicode characters are left as they are, and `escapeURI` only
13210 percent-encodes space characters. This gives more readable
13211 URIs, and works well with modern user agents. URIs are no longer unescaped
13212 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
13214 * New module `Text.Pandoc.SelfContained`.
13216 * New module `Text.Pandoc.Docx`.
13218 * New module `Text.Pandoc.PDF`.
13220 * Added `writerBeamer` to `WriterOptions`.
13222 * Added `normalizeDate` to `Text.Pandoc.Shared`.
13224 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
13225 This is like `splitWithIndices`, but it is sensitive to distinctions
13226 between wide, combining, and regular characters.
13228 * `Text.Pandoc.Pretty`:
13230 + Added `chomp` combinator.
13231 + Added `beforeNonBreak` combinator. This allows you to include
13232 something conditionally on it being before a nonblank.
13233 Used for RST inline math.
13234 + Added `charWidth` function. All characters marked W or F in the unicode
13235 spec EastAsianWidth.txt get width 2.
13236 + Added `realLength`, based on `charWidth`. `realLength` is now
13237 used in calculating offsets.
13239 * New module `Text.Pandoc.Slides`, for common functions for breaking
13240 a document into slides.
13242 * Removed `Text.Pandoc.S5`, which is no longer needed.
13244 * Removed `Text.Pandoc.CharacterReferences`. Moved
13245 `characterReference` to `Text.Pandoc.Parsing`.
13246 `decodeCharacterReferences` is replaced by `fromEntities`
13247 in `Text.Pandoc.XML`.
13249 * Added `Text.Pandoc.ImageSize`. This is intened for use
13250 in `docx` and `odt` writers, so the size and dpi of images
13253 * Removed `writerAscii` in `WriterOptions`.
13255 * Added `writerHighlight` to `WriterOptions`.
13257 * Added `DZSlides` to `HTMLSlideVariant`.
13259 * `writeEPUB` has a new argument for font files to embed.
13261 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
13262 of whether we're parsing the position immediately after a regular
13263 (non-space, non-symbol) string, which is useful for distinguishing
13264 apostrophes from single quote starts.
13266 * `Text.Pandoc.Parsing`:
13268 + `escaped` now returns a `Char`.
13269 + Removed `charsInBalanced'`, added a character parser as
13270 a parameter of `charsInBalanced`. This is needed for
13271 proper handling of escapes, etc.
13274 * Added `toEntities` to `Text.Pandoc.XML`.
13276 * `Text.Pandoc.Readers.LaTeX`:
13278 + Export `handleIncludes`.
13279 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
13281 * Added `ToJsonFilter` class and `toJsonFilter` function to
13282 `Text.Pandoc`, deprecating the old `jsonFilter` function.
13284 * `Text.Pandoc.Highlighting`:
13286 + Removed `highlightHtml`, `defaultHighlightingCss`.
13287 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
13288 key functions from highlighting-kate.
13289 + Changed types of highlighting function. `highlight` returns a
13290 `Maybe`, not an `Either`.
13294 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
13296 * Relaxed cabal constraints for pandoc-types.
13298 * Adjusted Arbitrary instance to help avoid timeouts in tests.
13300 * Added `Tests.Writers.Markdown` to cabal file.
13304 * Added script to produce OS X package.
13306 * Made `templates` directory a git submodule. This should make it
13307 easier for people to revise their custom templates when the default
13310 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
13311 **Note:** If you have existing templates in `~/.pandoc/templates`, you
13312 must rename them to conform to the new scheme!
13314 * Fixed smart quotes bug, now handling `'...hi'` properly.
13318 + Partial support for labeled footnotes.
13319 + Improved accuracy of `simpleReferenceName` parser.
13323 + Substitute correct unicode characters for
13324 characters in the 128..159 range, which are often found even in
13325 HTML that purports to be UTF-8.
13327 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
13328 to the title, after a colon and linebreak). Closes #280.
13330 * Leaner `reference.odt`.
13332 * Added unexported module `Text.Pandoc.MIME` for use in
13335 * ODT writer: Construct `manifest.xml` based on archive contents.
13336 This fixes a bug in ODTs containing images. Recent versions of
13337 LibreOffice would reject these as corrupt, because `manifest.xml`
13338 did not contain a reference to the image files.
13342 + Make verbatim environments flush to avoid spurious
13343 blank lines. Closes #277.
13344 + Use `\texttt` and escapes insntead of `\verb!...!`, which
13345 is too fragile (doesn't work in command arguments).
13346 + Use `\enquote{}` for quotes if the template includes
13347 the `csquotes` package. This provides better support for
13348 local quoting styles. (Thanks to Andreas Wagner for the idea.)
13350 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
13351 margin, preventing spurious blank lines.
13355 + Use non-minimized version of `slidy.css` with `--offline`
13356 option, so users can more easily edit it.
13357 + Also fixed a bug in the CSS that prevented proper centering
13358 of title (now reported and fixed upstream).
13362 + Replaced `s5/default/slides.js.{comment,packed}` with
13363 new compressed `s5/default/slides.min.js`.
13364 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
13365 when `--offline` is specified. Using inline CSS didn't
13366 work with Chrome or Safari. This fixes offline
13367 S5 on those browsers.
13369 * HTML writer: Removed English title on footnote backlinks.
13370 This is incongrous in non-English documents.
13374 + Use CALS tables. (Some older docbook software does not work
13375 well with XHTML tables.) Closes #77.
13376 + Use `programlisting` tags (instead of `screen`) for code blocks.
13380 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
13381 of `-interaction=batchmode`, which essentially just ignored errors,
13382 leading to bad results. Better to know when something is wrong.
13383 + Fixed issues with non-UTF-8 output of `pdflatex`.
13384 + Better error reporting.
13386 * `--mathjax` now takes an optional URL argument. If it is not
13387 provided, pandoc links directly to the (secure) mathjax CDN,
13388 as now recommended (thanks to dsanson).
13390 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
13391 since the LaTeX writer now produces a file that can be processed by
13392 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
13394 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
13395 to be used to create the PDF.
13397 * If a template specified with `--template` is not found, look for it
13398 in `datadir`. Also, if no extension is provided, supply one based
13399 on the writer. So now you can put your `special.latex` template in
13400 `~/.pandoc/templates`, and use it from any directory via
13401 `pandoc -t latex --template special`.
13403 * Default template improvements:
13405 + HTML: Display author and date after title.
13406 + HTML: Made table of contents more customizable. The container
13407 for the TOC is now in the template, so users can insert a header
13408 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
13409 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
13410 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
13411 hard-coding. If you want to put your slidy files in the slidy
13412 subdirectory, for example, you can do
13413 `pandoc -t slidy -V slidy-url=slidy -s`.
13414 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
13415 & writer). Closes #279.
13416 + LaTeX: Use different `hyperref` options for `xetex`, fixing
13417 problems with unicode bookmarks (thanks to CircleCode).
13418 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
13419 with `inputenc`. This covers fewer characters but is more
13420 robust with other packages, and `ucs` is unmaintained. Users
13421 who need better unicode support should use xelatex or lualatex.
13425 * Added `--epub-cover-image` option.
13427 * Documented `--biblatex` and `--natbib` options.
13429 * Allow `--section-divs` with slidy output. Resolves Issue #296.
13431 * Disallow notes within notes in reST and markdown.
13432 These previously caused infinite looping and stack overflows.
13439 Note references are allowed in reST notes, so this isn't a full
13440 implementation of reST. That can come later. For now we need to
13441 prevent the stack overflows. Partially resolves Issue #297.
13443 * EPUB writer: Allow non-plain math methods.
13445 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
13446 `(@item1; @item2)` because the final paren was being parsed as part of
13449 * Changed URI parser so it doesn't include trailing punctuation.
13450 So, in RST, `http://google.com.` should be parsed as a link followed by a
13451 period. The parser is smart enough to recognize balanced parentheses, as
13452 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
13454 * Markdown+lhs reader: Require space after inverse bird tracks, so that
13455 HTML tags can be used freely at the left margin of a markdown+lhs document.
13456 Thanks to Conal Elliot for the suggestion.
13460 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
13461 + Fixed bug in footnote order (reported by CircleCode).
13464 + Fixed bug in in field lists with multi-line items at the
13466 + Added parentheses to RST `specialChars`, so
13467 `(http://google.com)` will be parsed as a link in parens.
13468 Resolves Issue #291.
13469 + Allow `|` followed by newline in RST line block.
13473 + Gobble option & space after linebreak `\\[10pt]`.
13476 + Make it possible to have colons after links. (qerub)
13477 + Make it possible to have colons after links. (Christoffer Sawicki)
13480 + Skip spaces after `<b>`, `<emph>`, etc.
13481 + Handle tbody, thead in simple tables. Closes #274.
13482 + Implicit `Para`s instead of `Plains` in some contexts.
13484 * OpenDocument writer: Use special `First paragraph` style for
13485 first paragraph after most non-paragraph blocks. This allows users to
13486 specify e.g. that only paragraphs after the first paragraph of a block are
13487 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
13489 * LaTeX writer: use `deVerb` on table and picture captions.
13490 Otherwise LaTeX complains about `\verb` inside command argument.
13491 Thanks to bbanier for reporting the bug.
13493 * Markdown writer: Insert HTML comment btw list and indented code block.
13494 This prevents the code block from being interpreted as part of the list.
13496 * EPUB writer: Add a meta element specify the cover.
13497 Some EPUB e-readers, such as the Nook, require a meta element inside the
13498 OPF metadata block to ensure the cover image is properly displayed.
13501 * HTML writer: Use embed tag for images with non-image extensions.
13502 (e.g. PDFs). Closes #264.
13504 * LaTeX writer: Improved tables.
13506 + More space between lines, top-align cells.
13507 + Use ctable package, which allows footnotes and
13508 provides additional options.
13509 + Made cell alignments work in multiline tables.
13510 + Closes #271, #272.
13512 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
13513 Also do this when copying image files into EPUBs and ODTs.
13516 * Changed to github issue tracker.
13518 * Added failing emph/strong markdown test case due to Perry Wagle.
13520 * Slidy improvements:
13521 + Updated to use Slidy2.
13522 + Fixed bug, unclosed div tag.
13523 + Added `duration` variable in template.
13524 Setting this activates the timer.
13525 + Use 'titlepage' instead of 'cover' for title div.
13529 * `markdown2pdf`: Removed some debugging lines accidentally included
13530 in the 1.8.1 release. With those lines, the temp directory is created
13531 in the working directory, and it is not deleted. This fix restores
13532 the original behavior.
13536 * Added `--ascii` option. Currently supported only in HTML writer,
13537 which it causes to use numerical entities instead of UTF-8.
13539 * EPUB writer: `--toc` now works to provide a table of contents
13540 at the beginning of each chapter.
13542 * LaTeX writer: Change figure defaults to `htbp`.
13543 This prevents "too many unprocessed floats." Resolves
13546 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
13549 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
13550 Tanimoto. Resolves Issue #286.
13552 * HTML writer: Put line breaks in section divs.
13554 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
13558 * Fixed Source-repository stanza in cabal file.
13564 + Stringify alt text instead of converting to HTML.
13565 + Break lines after block elements, not inside tags.
13566 HTML output now closely resembles that of tidy. Resolves Issue #134.
13568 * Markdown reader: Fixed bug in footnote block parser (pointed out
13569 by Jesse Rosenthal). The problem arose when the blank line
13570 at the end of a footnote block contained indenting spaces.
13572 * Shared: Improved 'normalize' function so it normalizes Spaces too.
13573 In normal form, Space elements only occur to separate two non-Space
13574 elements. So, we never have [Space], or [, ..., Space].
13578 + Improved Arbitrary instance.
13579 + Added timeout for test instances.
13583 + Added section on four-space rule for lists. Resolves Issue #283.
13584 + Clarified optional arguments on math options.
13586 * markdown2pdf: Fixed bug with output file extensions.
13587 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
13588 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
13592 * Revised Interact.hs so that it works with the CPP macros
13593 in the UTF8 module.
13595 * Revised Setup.hs so that we don't call MakeManPage.hs unless
13596 the man pages are out of date.
13602 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
13603 You can now write, for example,
13605 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
13607 and, when you process your document using `pandoc`, specifying
13608 a citation style using `--csl` and a bibliography using `--bibliography`,
13609 the citation will be replaced by an appropriately formatted
13610 citation, and a list of works cited will be added to the end
13613 This means that you can switch effortlessly between different citation
13614 and bibliography styles, including footnote, numerical, and author-date
13615 formats. The bibliography can be in any of the following formats: MODS,
13616 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
13617 See the README for further details.
13619 Citations are supported in the markdown reader, using a special
13620 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
13621 (Thanks to Nathan Gass for the natbib and biblatex support.)
13623 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
13624 the `textile` reader, an almost complete implementation of the textile
13625 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
13626 Resolves Issue #51.
13628 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
13630 * New `json` reader and writer, for reading and writing a JSON
13631 representation of the native Pandoc AST. These are much faster
13632 than the `native` reader and writer, and should be used for
13633 serializing Pandoc to text. To convert between the JSON representation
13634 and native Pandoc, use `encodeJSON` and `decodeJSON` from
13635 `Text.JSON.Generic`.
13637 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
13638 to write scripts that transform a JSON-encoded pandoc document.
13641 -- removelinks.hs - removes links from document
13643 main = interact $ jsonFilter $ bottomUp removeLink
13644 where removeLink (Link xs _) = Emph xs
13647 To use this to remove links while translating markdown to LaTeX:
13649 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
13651 * Attributes are now allowed in inline `Code` elements, for example:
13653 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
13655 The attribute syntax is the same as for delimited code blocks.
13656 `Code` inline has an extra argument place for attributes, just like
13657 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
13658 is compiled with highlighting support. Resolves Issue #119.
13660 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
13661 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
13662 scripts to transform Pandoc documents. Scripts can now change
13663 how each element is rendered in each output format.
13665 * You can now define LaTeX macros in markdown documents, and pandoc
13666 will apply them to TeX math. For example,
13668 \newcommand{\plus}[2]{#1 + #2}
13671 yields `3+4`. Since the macros are applied in the reader, they
13672 will work in every output format, not just LaTeX.
13674 * LaTeX macros can also be used in LaTeX documents (both in math
13675 and in non-math contexts).
13677 * A new `--mathjax` option has been added for displaying
13678 math in HTML using MathJax. Resolves issue #259.
13680 * Footnotes are now supported in the RST reader. (Note, however,
13681 that unlike docutils, pandoc ignores the numeral or symbol used in
13682 the note; footnotes are put in an auto-numbered ordered list.)
13683 Resolves Issue #258.
13685 * A new `--normalize` option causes pandoc to normalize the AST
13686 before writing the document. This means that, for example,
13687 `*hi**there*` will be rendered as `<em>hithere</em>`
13688 instead of `<em>hi</em><em>there</em>`. This is not the default,
13689 because there is a significant performance penalty.
13691 * A new `--chapters` command-line option causes headers
13692 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
13693 Resolves Issue #265.
13695 * In DocBook output, `<chapter>` is now used for top-level
13696 headers if the template contains `<book>`. Resolves Issue #265.
13698 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
13699 the LaTeX writer to use the listings package for code blocks.
13700 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
13701 Millon for the markdown2pdf patch.)
13703 * `markdown2pdf` now supports `--data-dir`.
13705 * URLs in autolinks now have class "url" so they can be styled.
13707 * Improved prettyprinting in most formats. Lines will be wrapped
13708 more evenly and duplicate blank lines avoided.
13710 * New `--columns` command-line option sets the column width for
13711 line wrapping and relative width calculations for tables.
13713 * Made `--smart` work in HTML, RST, and Textile readers, as well
13716 * Added `--html5` option for HTML5 output.
13718 * Added support for listings package in LaTeX reader
13719 (Puneeth Chaganti).
13721 * Added support for simple tables in the LaTeX reader.
13723 * Added support for simple tables in the HTML reader.
13725 * Significant performance improvements in many readers and writers.
13727 [API and program changes]
13729 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
13730 auxiliary package, `pandoc-types`. This will make it possible for other
13731 programs to supply output in Pandoc format, without depending on the whole
13734 * Added `Attr` field to `Code`.
13736 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
13737 `RawBlock` and `RawInline`.
13739 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
13740 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
13741 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
13743 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
13745 * `Text.Pandoc` now exports association lists `readers` and `writers`.
13747 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
13748 `readNative` can now read full pandoc documents, block lists, blocks,
13749 inline lists, or inlines. It will interpret `Str "hi"`
13750 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
13751 This should make testing easier.
13753 * Removed deprecated `-C/--custom-header` option.
13754 Use `--template` instead.
13756 * `--biblio-file` has been replaced by `--bibliography`.
13757 `--biblio-format` has been removed; pandoc now guesses the format
13758 from the file extension (see README).
13760 * pandoc will treat an argument as a URI only if it has an
13761 `http(s)` scheme. Previously pandoc would treat some
13762 Windows pathnames beginning with `C:/` as URIs.
13764 * The `--sanitize-html` option and the `stateSanitize` field in
13765 `ParserState` have been removed. Sanitization is better done in the
13766 resulting HTML using `xss-sanitize`, which is based on pandoc's
13767 sanitization, but improved.
13769 * pandoc now adds a newline to the end of its output in fragment
13770 mode (= not `--standalone`).
13772 * Added support for `lang` in `html` tag in the HTML template,
13773 so you can do `pandoc -s -V lang=es`, for example.
13775 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
13776 a boolean argument that selects between "inline" and
13779 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
13780 Images are embedded in RTF output when possible (png, jpeg).
13781 Resolves Issue #275.
13783 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
13784 `pretty` package. Changed all writers that used
13785 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
13787 * Rewrote `writeNative` using the new prettyprinting module. It is
13788 now much faster. The output has been made more consistent and compressed.
13789 `writeNative` is also now sensitive to writerStandalone`, and will simply
13790 `print a block list if writerStandalone` is False.
13792 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
13793 blocks and concatenate them, so a separate module is no longer needed.
13795 * `Text.Pandoc.Shared`:
13797 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
13799 + Added `normalize`.
13800 + Removed unneeded prettyprinting functions:
13801 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
13802 `BlockWrapper`, `wrappedBlocksToDoc`.
13803 + Made `splitBy` take a test instead of an element.
13804 + Added `findDataFile`, refactored `readDataFile`.
13805 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
13806 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
13808 * `Text.Pandoc.Readers.HTML`:
13810 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
13811 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
13812 `htmlBlockElement`, `htmlComment`
13813 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
13816 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
13817 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
13820 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
13822 * Ellipses are no longer allowed to contain spaces.
13823 Previously we allowed '. . .', ' . . . ', etc. This caused
13824 too many complications, and removed author's flexibility in
13825 combining ellipses with spaces and periods.
13827 * Allow linebreaks in URLs (treat as spaces). Also, a string of
13828 consecutive spaces or tabs is now parsed as a single space. If you have
13829 multiple spaces in your URL, use `%20%20`.
13831 * `Text.Pandoc.Parsing`:
13833 + Removed `refsMatch`.
13834 + Hid `Key` constructor.
13835 + Removed custom `Ord` and `Eq` instances for `Key`.
13836 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
13837 + Generalized type on `readWith`.
13839 * Small change in calculation of relative widths of table columns.
13840 If the size of the header > the specified column width, use
13841 the header size as 100% for purposes of calculating
13842 relative widths of columns.
13844 * Markdown writer now uses some pandoc-specific features when `--strict`
13845 is not specified: `\` newline is used for a hard linebreak instead of
13846 two spaces then a newline. And delimited code blocks are used when
13847 there are attributes.
13849 * HTML writer: improved gladTeX output by setting ENV appropriately
13850 for display or inline math (Jonathan Daugherty).
13852 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
13856 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
13857 + `\index{}` commands are skipped.
13859 * Added `fontsize` variable to default LaTeX template.
13860 This makes it easy to set the font size using `markdown2pdf`:
13861 `markdown2pdf -V fontsize=12pt input.txt`.
13863 * Fixed problem with strikeout in LaTeX headers when using
13864 hyperref, by adding a command to the default LaTeX template
13865 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
13868 * The `COLUMNS` environment variable no longer has any effect.
13870 [under-the-hood improvements]
13872 * Pandoc now compiles with GHC 7. (This alone leads to a
13873 significant performance improvement, 15-20%.)
13875 * Completely rewrote HTML reader using tagsoup as a lexer. The
13876 new reader is faster and more accurate. Unlike the
13877 old reader, it does not get bogged down on some input
13878 (Issues #277, 255). And it handles namespaces in tags
13881 * Replaced `escapeStringAsXML` with a faster version.
13883 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
13884 for a significant performance boost.
13886 * Improved performance of all readers by rewriting parsers.
13888 * Simplified Text.Pandoc.CharacterReferences by using
13889 entity lookup functions from TagSoup.
13891 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
13892 from `System.IO` if base >= 4.2. This gives support for
13893 windows line endings on windows.
13895 * Remove duplications in documentation by generating the
13896 pandoc man page from README, using `MakeManPage.hs`.
13898 * README now includes a full description of markdown syntax,
13899 including non-pandoc-specific parts. A new `pandoc_markdown`
13900 man page is extracted from this, so you can look up markdown
13901 syntax by doing `man pandoc_markdown`.
13903 * Completely revised test framework (with help from Nathan Gass).
13904 The new test framework is built when the `tests` Cabal flag is set. It
13905 includes the old integration tests, but also some new unit and quickcheck
13906 tests. Test output has been much improved, and you can now specify a glob
13907 pattern after `cabal test` to indicate which tests should be run;
13908 for example `cabal test citations` will run all the citation tests.
13910 * Added a shell script, `stripansi.sh`, for filtering ANSI control
13911 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
13913 * Added `Interact.hs` to make it easier to use ghci while developing.
13914 `Interact.hs` loads `ghci` from the `src` directory, specifying
13915 all the options needed to load pandoc modules (including
13916 specific package dependencies, which it gets by parsing
13917 dist/setup-config).
13919 * Added `Benchmark.hs`, testing all readers + writers using criterion.
13921 * Added `stats.sh`, to make it easier to collect and archive
13922 benchmark and lines-of-code stats.
13924 * Added upper bounds to all cabal dependencies.
13926 * Include man pages in extra-source-files. This allows users to
13927 install pandoc from the tarball without needing to build the man
13932 * Filenames are encoded as UTF8. Resolves Issue #252.
13934 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
13935 were just parsed literally, leading to problems in some output formats.
13936 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
13937 Resolves Issue #270.
13939 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
13940 Spaces at end of line were not being stripped properly,
13941 resulting in unintended LineBreaks.
13945 + Allow HTML comments as inline elements in markdown.
13946 So, `aaa <!-- comment --> bbb` can be a single paragraph.
13947 + Fixed superscripts with links: `^[link](/foo)^` gets
13948 recognized as a superscripted link, not an inline note followed by
13950 + Fixed regression, making markdown reference keys case-insensitive again.
13951 Resolves Issue #272.
13952 + Properly handle abbreviations (like `Mr.`) at the end of a line.
13953 + Better handling of intraword underscores, avoiding exponential
13954 slowdowns in some cases. Resolves Issue #182.
13955 + Fixed bug in alignments in tables with blank rows in the header.
13959 + Field lists now allow spaces in field names, and
13960 block content in field values. (Thanks to Lachlan Musicman
13961 for pointing out the bug.)
13962 + Definition list items are now always `Para` instead of
13963 `Plain`, matching behavior of `rst2xml.py`.
13964 + In image blocks, the description is parsed properly and
13965 used for the alt attribute, not also the title.
13966 + Skip blank lines at beginning of file. Resolves
13971 + Improved parsing of preamble.
13972 Previously you'd get unexpected behavior on a document that
13973 contained `\begin{document}` in, say, a verbatim block.
13974 + Allow spaces between `\begin` or `\end` and `{`.
13975 + Support `\L` and `\l`.
13976 + Skip comments inside paragraphs.
13980 + Escape strings in `\href{..}`.
13981 + In nonsimple tables, put cells in `\parbox`.
13983 * OpenDocument writer: don't print raw TeX.
13987 + Fixed bug in `Image`. URI was getting unescaped twice!
13988 + Avoid printing extra blank lines at the end if there are
13989 no notes or references.
13991 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
13992 This avoids unwanted interpretation as an optional argument.
13994 * ConTeXt writer: Fixed problem with inline code. Previously
13995 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
13996 If it contains neither, use `\type{}`; otherwise use `\mono{}`
13997 with an escaped version of the string.
13999 * `:` now allowed in HTML tags. Resolves Issue #274.
14003 [ John MacFarlane ]
14005 * New EPUB and HTML Slidy writers. (Issue #122)
14007 - EPUB is a standard ebook format, used in Apple's iBooks for
14008 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
14009 reader, and many other devices.
14010 - Slidy, like S5, is a system for producing HTML+javascript slide
14013 * All input is assumed to be UTF-8, no matter what the locale and ghc
14014 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
14015 Also, a BOM, if present, is stripped from the input.
14017 * Markdown now supports grid tables, whose cells can contain
14018 arbitrary block elements. (Issue #43)
14020 * Sequentially numbered example lists in markdown with `@` marker.
14022 * Markdown table captions can begin with a bare colon and no longer need
14023 to include the English word "table." Also, a caption can now occur
14024 either before or after the table. (Issue #227)
14026 * New command-line options:
14028 - `--epub-stylesheet` allows you to specify a CSS file that will
14029 be used to style your ebook.
14030 - `--epub-metadata` allows you to specify metadata for the ebook.
14031 - `--offline` causes the generated HTML slideshow to include all
14032 needed scripts and stylesheets.
14033 - `--webtex` causes TeX math to be converted to images using the
14034 Google Charts API (unless a different URL is specified).
14035 - `--section-divs` causes div tags to be added around each section
14036 in an HTML document. (Issue #230, 239)
14038 * Default behavior of S5 writer in standalone mode has changed:
14039 previously, it would include all needed scripts and stylesheets
14040 in the generated HTML; now, only links are included unless
14041 the `--offline` option is used.
14043 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
14044 pandoc would enclose sections in div tags with identifiers on the
14045 div tags, so that the sections can be manipulated in javascript.
14046 This caused undesirable interactions with raw HTML div tags. So,
14047 starting with 1.6, the default is to put the identifiers directly
14048 on the header tags, and not to include the divs. The `--section-divs`
14049 option selects the 1.2-1.5 behavior.
14053 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
14054 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
14055 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
14056 `writerIncludeAfter`.
14057 - Added `headerShift` to `Text.Pandoc.Shared`.
14058 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
14059 to a new module, `Text.Pandoc.Parsing`.
14060 - Added `stateHasChapters` to `ParserState`.
14061 - Added `HTMLSlideVariant`.
14062 - Made `KeyTable` a map instead of an association list.
14063 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
14065 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
14067 - Reference keys now have a type of their own (`Key`), with its
14068 own `Ord` instance for case-insensitive comparison.
14069 - Added `Text.Pandoc.Writers.EPUB`.
14070 - Added `Text.Pandoc.UUID`.
14071 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
14072 Removed `saveOpenDocumentAsODT`, added `writeODT`.
14073 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
14074 Removed `prettyPandoc`.
14075 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
14076 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
14077 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
14078 To write S5, you now use `writeHtml` with `writerSlideVariant`
14079 set to `S5Slides` or `SlidySlides`.
14081 * Template changes. If you use custom templates, please update them,
14082 particularly if you use syntax highlighting with pandoc. The old HTML
14083 templates hardcoded highlighting CSS that will no longer work with
14084 the most recent version of highlighting-kate.
14086 - HTML template: avoid empty meta tag if no date.
14087 - HTML template: Use default highlighting CSS from highlighting-kate
14088 instead of hard-coding the CSS into the template.
14089 - HTML template: insert-before text goes before the title, and
14090 immediately after the <body> tag, as documented. (Issue #241)
14091 - Added slidy and s5 templates.
14092 - Added amssymb to preamble of latex template. (github Issue 1)
14094 * Removed excess newlines at the end of output. Note: because output
14095 will not contain an extra newline, you may need to make adjustments
14096 if you are inserting pandoc's output into a template.
14098 * In S5 and slidy, horizontal rules now cause a new slide, so you
14099 are no longer limited to one slide per section.
14101 * Improved handling of code in man writer. Inline code is now monospace,
14102 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
14104 * HTML reader parses `<tt>` as Code. (Issue #247)
14106 * html+lhs output now contains bird tracks, even when compiled without
14107 highlighting support. (Issue #242)
14109 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
14110 since they have a special meaning in XML.
14112 * Code improvements in ODT writer. Remote images are now replaced with
14113 their alt text rather than a broken link.
14115 * LaTeX reader improvements:
14117 - Made latex `\section`, `\chapter` parsers more forgiving of
14119 - Parse `\chapter{}` in latex.
14120 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
14121 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
14122 for use in markdown reader.
14123 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
14124 in markdown document.
14126 * LaTeX writer: images are automatically shrunk if they would extend
14127 beyond the page margin.
14129 * Plain, markdown, RST writers now use unicode for smart punctuation.
14131 * Man writer converts math to unicode when possible, as in other writers.
14133 * `markdown2pdf` can now recognize citeproc options.
14135 * Command-line arguments are converted to UTF-8. (Issue #234)
14137 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
14138 This allows it to handle a wider range of formulas. Also, if a formula
14139 cannot be converted, it is left in raw TeX; formulas are no longer
14140 partially converted.
14142 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
14145 * Cabal file changes:
14147 - Removed parsec < 3 restriction.
14148 - Added 'threaded' flag for architectures where GHC lacks a threaded
14150 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
14151 - Require highlighting-kate 0.2.7.
14153 * Use explicit imports from `Data.Generics`. Otherwise we have a
14154 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
14156 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
14160 [ John MacFarlane ]
14162 * Fixed uniqueIdent in Shared so that header identifiers work as
14163 advertized in the README and are are valid XHTML names.
14167 [ John MacFarlane ]
14169 * Fixed treatment of unicode characters in URIs.
14170 + Shared now exports escapeURI and unescapeURI. These handle
14171 UTF8 encoding and decoding as well as URI escaping/unescaping.
14172 + Shared: uri and emailAddress now return a pair of the original
14173 parsed text and the escaped URI (in the latter case, with
14174 the mailto: prefix).
14175 + HTML reader: unsanitaryURI has been modified to allow unicode
14176 high characters in a URI.
14177 + Readers: All link and image URIs are now escaped using
14179 + Markdown and RST writers: unescapeURI is used so that URIs
14180 in these formats are human-readable.
14182 * Setup.hs: Don't assume that the build directory is "dist".
14183 Instead, get it from localBuildInfo.
14185 * OpenDocument writer: Use a Map for stTextStyleAttr.
14186 This avoids duplicates (and invalid xml). Resolves Issue #222.
14190 [ John MacFarlane ]
14192 * HTML writer: Fixed error in math writer (with MathML option)
14193 that caused an infinite loop for unparsable MathML.
14197 [ John MacFarlane ]
14199 * Added --mathml option. When this is selected, pandoc will convert
14200 TeX math into MathML.
14201 + Added data/MathMLinHTML.js, which is included when no URL is
14202 provided for --mathml. This allows MathML to be displayed (in
14203 better browsers) as text/html.
14204 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
14205 necessary; it was replaced by two lines in pandoc.hs.
14206 + Replaced LaTeXMathML.js.comment and LaTeXMathML.js.packed with a
14207 single combined file, LaTeXMathML.js.
14209 * Added --data-dir option.
14210 This specifies a user data directory. If not specified, will default
14211 to ~/.pandoc on unix or Application Data\pandoc on Windows.
14212 Files placed in the user data directory will override system default
14215 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
14216 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
14217 Nothing, no user directory is searched for an override.
14219 * Added 'plain' output format. This is similar to markdown, but
14220 removes links, pictures, inline formatting, and most anything that
14221 looks even vaguely markupish. The function writePlain is exported by
14222 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
14224 * Allow multi-line titles and authors in meta block.
14225 Titles may span multiple lines, provided continuation lines
14226 begin with a space character. Separate authors may be put on
14227 multiple lines, provided each line after the first begins with
14228 a space character. Each author must fit on one line. Multiple
14229 authors on a single line may still be separated by a semicolon.
14230 Based on a patch by Justin Bogner.
14232 * When given an absolute URI as parameter, pandoc will try to fetch
14233 the content via HTTP. So you can do:
14234 'pandoc -r html -w markdown http://www.fsf.org'
14235 Adds dependency on HTTP.
14237 * Made HTML reader much more forgiving.
14238 + Incorporated idea (from HXT) that an element can be closed
14239 by an open tag for another element.
14240 + Javascript is partially parsed to make sure that a <script>
14241 section is not closed by a </script> in a comment or string.
14242 + More lenient non-quoted attribute values.
14243 Now we accept anything but a space character, quote, or <>.
14244 This helps in parsing e.g. www.google.com!
14245 + Bare & signs are now parsed as a string. This is a common
14247 + Skip a bare < in malformed HTML.
14249 * Removed html2markdown and hsmarkdown.
14250 + html2markdown is no longer needed, since you can now pass URI
14251 arguments to pandoc and directly convert web pages. (Note,
14252 however, that pandoc assumes the pages are UTF8. html2markdown
14253 made an attempt to guess the encoding and convert them.)
14254 + hsmarkdown is pointless -- a large executable that could be
14255 replaced by 'pandoc --strict'.
14257 * In most writers, an image in a paragraph by itself is now rendered
14258 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
14259 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
14262 * Depend on extensible-exceptions. This allows pandoc to be compiled
14265 * Added --base-header-level option. For example, --base-header-level=2
14266 will change level 1 headers to level 2, level 2 to level 3, etc.
14267 Closes Debian #563416.
14269 * Incomplete support for RST tables (simple and grid).
14270 Thanks to Eric Kow. Colspans and rowspans not yet supported.
14272 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
14274 * MediaWiki writer: format links with relative URLs as wikilinks.
14275 The new rule: If the link target is an absolute URL, an external
14276 link is created. Otherwise, a wikilink is created.
14278 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
14279 identifier. Note: This may break links to sections that involve
14282 * Markdown(+lhs) reader: handle "inverse bird tracks."
14283 Inverse bird tracks (<) are used for haskell example code that is not
14284 part of the literate Haskell program. Resolves Issue #211.
14287 + Recognize '\ ' (interword space).
14288 + Recognize nonbreaking space '~'.
14289 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
14290 section headers. Don't treat \section as inline LaTeX.
14291 Resolves Issue #202.
14292 + LaTeX reader: allow any special character to be escaped.
14293 Resolves Issue #221.
14294 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
14295 headers. Resolves Issue #207.
14297 * Use template variables for include-before/after.
14298 + These options now imply -s; previously they worked also in fragment
14300 + Users can now adjust position of include-before and include-after
14301 text in the templates.
14302 + Default position of include-before moved back (as it was before 1.4)
14303 before table of contents.
14304 + Resolves Issue #217.
14306 * Don't print an empty table header: (all writers).
14307 Resolves Issue #210.
14309 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
14311 * HTML writer: Don't include TOC div if table of contents is empty.
14313 * Markdown writer: Fixed citations.
14314 Previously the markdown writer printed raw citation codes, e.g.
14315 [geach1970], rather than the expanded citations provided by
14316 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
14317 This means that the document produced can be processed as a markdown
14318 document without citeproc. Thanks to dsanson for reporting, and
14319 Andrea Rossato for the patch.
14321 * Improved and simplified title block in context template.
14322 Previously it caused an error if there was no title.
14323 This method should also be easier for users to customize.
14326 + Treat p., pp., sec., ch., as abbreviations in smart mode.
14327 + Disallow blank lines in inline code span.
14328 + Allow footnotes to be indented < 4 spaces.
14329 This fixes a regression. A test case has been added.
14330 + Escape spaces in URLs as %20. Previously they were incorrectly
14331 escaped as +, which is appropriate only for the query part of
14332 a URL. Resolves Issue #220.
14333 + Require two spaces after capital letter + period for list item.
14334 Otherwise "E. coli" starts a list. This might change the semantics
14335 of some existing documents, since previously the two-space
14336 requirement was only enforced when the second word started
14337 with a capital letter. But it is consistent with the existing
14338 documentation and follows the principle of least surprise.
14339 Resolves Issue #212.
14341 * LaTeX template: redefine labelwidth when using enumerate package.
14342 Otherwise the list labels (numbers) often extend past the left
14343 margin, which looks bad.
14345 * Mediawiki writer: Don't print a "== Notes ==" header before
14346 references. This is too English-centric. Writers can provide their
14347 own header at the end of the document.
14349 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
14350 level 2, etc. This seems to be correct; it's only by convention
14351 that wikipedia articles have level 2 headers at most.
14352 Patch due to Eric Kow.
14354 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
14355 data files don't need to have been installed. This removes the need to
14359 + Handle spaces before <html>. Resolves Issue #216.
14360 + Be forgiving in parsing a bare list within a list.
14361 The following is not valid xhtml, but the intent is clear:
14364 <ol><li>sub</li></ol>
14367 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
14369 * Updated INSTALL instructions. cabal method is now promoted.
14371 * Updated markdown2pdf man page. It no longer says all pandoc options
14374 * README/man pages: Removed advice to pipe through tidy before HTML
14375 reader. This is obsolete, now that we have a forgiving HTML parser.
14377 * LaTeX writer: set numbersections template variable, so
14378 the section numbering options work again.
14380 * Removed obsolete Makefile.
14382 * Website: renamed index.txt.in -> index.txt.
14384 * New batch file to make-windows-installer.
14385 + Removed old Makefile.windows
14386 + Added make-windows-installer.bat
14387 + Modified default installer name in pandoc-setup.iss
14389 * Removed freebsd and macports directories.
14390 They are no longer up to date.
14393 + Made man page building sensitive to build verbosity.
14394 + Improved detection of highlighting support in test hook.
14395 + Install wrapper scripts into cabal bin directory.
14396 + Also simplified installManpages.
14397 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
14399 * Changed default of writerXeTeX to False.
14401 * HTML writer: don't include empty UL if --toc but no sections.
14402 Resolves Issue #199.
14406 + If book, report, or memoir documentclass, use \chapter{}
14407 for first-level headers. Otherwise use \section{}.
14408 + Removed stLink, link template variable. Reason: we now always
14409 include hyperref in the template.
14413 + Only show \author if there are some.
14414 + Always include hyperref package. It is used not just for links but
14415 for toc, section heading bookmarks, footnotes, etc. Also added
14416 unicode=true on hyperref options.
14418 * markdown2pdf: always do at least two runs. hyperref bookmarks
14421 * cabal file: Removed unneeded dependency on template-haskell.
14423 * Windows installer - fixed bug in data file locations.
14424 Resolves Issue #197.
14426 * Deprecated --custom-header in documentation.
14427 Removed old "Custom Headers" section in README.
14431 [ John MacFarlane ]
14433 * Pandoc will now compile with either GHC 6.10 or 6.12.
14434 + Don't use System.IO.UTF8 when compiling with 6.12
14435 + Use -fno-warn-unused-do-bind option when compiling with 6.12
14437 * Replaced old headers with templates. Now users have much more
14438 control over the way documents appear in --standalone mode,
14439 and writer code is simplified. Resolves Issues #59, 147.
14440 Every effort has been made to retain backwards compatibility.
14441 So, the --custom-header option should still work as before.
14443 + Added Text.Pandoc.Templates. This provides functions for
14444 retrieving default templates and for rendering templates.
14445 + System templates (in the pandoc data directory) can be
14446 overridden by user templates in $HOME/.pandoc/templates.
14447 + Removed Text.Pandoc.DefaultHeaders.
14448 + Removed data/headers directory.
14449 + Added templates directory.
14450 + Added writerTemplate and writerVariables fields to WriterOptions.
14451 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
14452 + Changed --print-default-header to --print-default-template.
14453 + Added --template option.
14454 + Added -V/--variable option to set custom template variables.
14456 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
14458 + Removed need for TH in ODT module. Instead get reference.odt from
14459 data file at run time.
14460 + Removed TH dependency from S5 module. S5 module now exports
14461 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
14463 + Refactored LaTeXMathML not to use TH.
14465 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
14466 Meta [Inline] [String] String. Authors and date in Meta are now lists
14467 of Inline elements rather than raw strings. This means that they can
14468 be formatted and can include footnotes. NOTE: This may be a breaking
14469 change for those using pandoc as a library.
14471 * Added readDataFile to Text.Pandoc.Shared. This retrieves
14472 a data file from the user pandoc data directory (~/.pandoc
14473 on unix), or, if not found there, from the system data
14474 directory ($CABALDIR/shared/pandoc-VERSION/). All data
14475 files, including templates, LaTeXMathML.js, s5 styles,
14476 and reference.odt, can be overridden by the user.
14478 * s5 files moved from data/ui/default to s5/default.
14480 * Use unicode instead of entities in HTML and XML output. Resolves
14483 * Prettier HTML footnote references: put anchor inside sup,
14484 instead of other way. Resolves Issue #191. Thanks to
14487 * Added --xetex option to pandoc and markdown2pdf.
14488 If --xetex is specified, pandoc produces latex suitable for
14489 processing by xelatex, and markdown2pdf uses xelatex to create
14490 the PDF. Resolves Issue #185.
14492 * RTF writer: multiple authors now occupy multiple paragraphs rather
14493 than using a line break.
14495 * Man writer: now the "--after-body" will come after the "AUTHORS"
14496 section, whereas before it would come before it. This is a
14497 slight break from backwards compatibility.
14499 * Added --reference-odt option, so users may customize the styles
14500 used in pandoc-generated ODT files. Users may also place a
14501 default reference.odt in the ~\.pandoc directory.
14504 + Indented and line-broke styles.xml so it can be modified more easily.
14505 + Omitted some unnecessary style declarations.
14506 + Don't wrap text in OpenDocument writer. The tags are too long, making
14507 wrapping ugly and pointless.
14509 * LaTeX reader: use \\ to separate multiple authors.
14511 * Markdown reader: use ; as separator between authors.
14512 This allows you to use ',' within author names: e.g. "John Jones, Jr."
14514 * S5 writer: use linebreak to separate authors in title page.
14516 * RST reader: Allow :: before lhs code block. The RST spec requires the
14517 :: before verbatim blocks. This :: should not be treated as literal
14518 colons. Resolves Issue #189.
14520 * Documented pandoc 1.3's new definition list syntax in README.
14521 (An oversight in the last release.)
14524 + interpret ! in a log as an error line.
14525 + --toc now works properly.
14527 * Changes in RunTests.hs:
14528 + Use the Diff library rather than a local copy of Diff.hs.
14529 (This vastly increases performance.) This change means that 'cabal
14530 test' presupposes that the Diff library is installed.
14531 + Removed tests/Diff.hs from cabal file.
14532 + Changed RunTests to use local environment. We need at least HOME, so
14533 pandoc can find its data directory.
14535 * Updated windows installer to install data files in the app directory.
14537 * Windows installer now installs portable wrappers hsmarkdown and
14542 [ John MacFarlane ]
14544 * Added --id-prefix option (Issue #41). This adds a prefix to all
14545 automatically generated HTML identifiers, which helps prevent
14546 duplicate identifiers when you're generating a fragment (say a blog
14549 * Added --indented-code-classes option. This specifies classes
14550 to use for indented code blocks. (Patch due to buttock; Issue #87.)
14552 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
14555 * Improved syntax for markdown definition lists (Issue #24).
14556 Definition lists are now more compatible with PHP Markdown Extra.
14557 + You can have multiple definitions for a term (but still not
14559 + Multi-block definitions no longer need a column before each block
14560 (indeed, this will now cause multiple definitions).
14561 + The marker no longer needs to be flush with the left margin,
14562 but can be indented at or two spaces. Also, ~ as well as :
14563 can be used as the marker (this suggestion due to David
14565 + There can now be a blank line between the term and the
14568 * Better looking simple tables. Resolves Issue #180.
14569 + Markdown reader: simple tables are now given column widths of 0.
14570 + Column width of 0 is interpreted as meaning: use default column width.
14571 + Writers now include explicit column width information only
14572 for multiline tables. (Exception: RTF writer, which requires
14573 column widths. In this case, columns are given equal widths,
14574 adding up to the text width.)
14575 + Simple tables should now look better in most output formats.
14577 * Allow markdown tables without headers (Issue #50).
14578 The new syntax is described in README. Also allow optional line of
14579 dashes at bottom of simple tables.
14581 * Compensate for width of final table column (Issue #144).
14583 * Treat a backslash followed by a newline as a hard line break
14584 in markdown. Resolves Issue #154. This is a nice alternative
14585 to markdown's "invisible" way of indicating hardline breaks
14586 using lines that end with two spaces.
14588 * Improved performance of markdown reader by ~10% by eliminating the
14589 need for a separate parsing pass for notes. Raw notes are now stored
14590 on the first pass (which parses references), then parsed when the
14591 note is inserted into the AST. The stateNotes field in ParserState
14592 is now a list of [(String, String)] pairs instead of [(String,
14595 * In markdown reader, treat 4 or more * or _ in a row as literal
14596 text. (Trying to parse long strings of * or _ as strong or emph
14597 leads to exponential performance problems.)
14599 * Markdown reader: Use + rather than %20 for spaces in URLs.
14601 * Fixed htmlComment parser, adding a needed 'try'.
14603 * Don't print raw HTML in man output.
14605 * Allow . _ and ~ in header identifiers.
14607 * Specially mark code blocks that were "literate" in the input.
14608 They can then be treated differently in the writers. This allows
14609 authors to distinguish bits of the literate program they are writing
14610 from source code examples, even if the examples are marked as
14611 Haskell for highlighting. (Issue #174.)
14613 * Modified html+lhs output to use "haskell" highlighter instead
14614 of "literateHaskell". The highlighting module now adds bird tracks
14615 after highlighting (for HTML output), if the code block has the
14616 "literate" class. This gives better results, because kate's
14617 haskell highlighter is much better than the literateHaskell
14620 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
14623 * Support for "..code-block" directive in RST reader. Not core
14624 RST, but used in Sphinx for code blocks annotated with syntax
14625 information. Thanks to Luke Plant for the patch.
14627 * Added "head" to list of block-level HTML tags. Resolves
14630 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
14632 * Set utf-8 encoding in texinfo headers.
14634 * Docbook writer: add ids to sections. Use link for internal links.
14637 * Blank lines after lists in MediaWiki writer.
14639 * Properly handle commented-out list items in markdown.
14640 Resolves Issue #142. Example:
14648 * Changed heuristic in compactify. compactify has to decide whether a
14649 Para that ends a list is a Para intentionally, or just because of
14650 the blank lines at the end of every list. In the latter case the
14651 Para is turned to a Plain. The old heuristic was: change final Para
14652 to Plain iff the other items all end in Plain. This produces bad
14653 results when, for example, an item contains just a Plain and an HTML
14654 comment, as it does in the list above. The new heuristic: change
14655 final Para to Plain iff the other items don't contain a Para.
14657 * Added % as an rst underline character. Resolves Issue #173.
14659 * Fix inline math parser so that \$ is allowed in math.
14660 Resolves Issue #169.
14662 * Translate \int (integral) into unicode when using unicode math
14663 method. Resolves Issue #177.
14665 * markdown2pdf.hs improvements:
14666 + Use System.IO.UTF8.
14667 + Print error messages on last attempt.
14668 + Do not create a backup when overwriting a PDF (Issue #166).
14669 + Accept --longopt=val options.
14670 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
14671 it is properly cleaned.
14673 * Added haddock comments warning that readers assume \n line endings.
14675 * Updated COPYRIGHT file.
14677 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
14678 markdown2pdf. Otherwise strip tries to strip shell scripts when you
14679 install using 'make'.
14681 * Changed Makefile so it doesn't build Haskell wrappers.
14683 * Fixed Makefile so it doesn't try to build man pages in build-doc.
14685 * Install pcre3.dll in Windows install script; this allows us to
14686 package a version of pandoc with highlighting support.
14690 [ John MacFarlane ]
14692 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
14693 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
14694 side effect: strings of 0 spaces were interpreted as indentation.
14695 So, with --preserve-tabs, unindented paragraphs were treated as
14696 code. Resolves Issue #138.
14698 * HTML writer: wrap sections in divs. Resolves Issue #70.
14700 + hierarchicalize has been rationalized; it builds a hierarchical
14701 representation of the document from the headers, and simultaneously
14702 gives each section a unique identifier based on the heading title.
14703 + Identifiers are now attached to the divs rather than
14704 to the headers themselves.
14705 + Table of content backlinks go to the beginning of the table, rather
14706 than to the section reference that was clicked.
14707 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
14708 from the HTML writer, since it is now consumed only by
14710 + In --strict mode, pandoc just prints bare headings, as before
14711 (unless --toc has been specified).
14712 + In s5 output, it does not wrap sections in divs, as that seems to
14713 confuse the s5 javascript.
14715 * Man writer: break lines at end of each sentence. groff expects this
14716 and treats '.' and '?' differently when followed by line ending as
14717 opposed to ordinary space. Also, don't escape periods. Instead, use
14718 zero-width character \& to avoid unwanted interpretation of periods
14719 at start of line. Resolves Issue #148.
14721 * Markdown writer: Added '#' and '>' to list of characters to be
14722 escaped in markdown output. Removed '<', as it is not an officially
14723 escapable character. This partially resolves Issue #96.
14725 * Make --smart the default for man output format. Otherwise we have
14726 trouble dividing lists of endlines into sentences.
14728 * DocBook writer: Use language attribute to indicate source language
14733 + Allow # to continue list, even if the list was started with an
14734 explicit marker. For example:
14739 Resolves Issue #140.
14740 + Allow continuation lines in line blocks. Also added test cases for
14741 line blocks for RST reader. Resolves Issue #149.
14742 + Allow explicit links with spaces in URL: `link <to this>`_
14744 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
14745 (which is not in LaTeX) and recognize all the amsmath environments
14746 that are alternatives to eqnarray, namely equation, equation*,
14747 gather, gather*, gathered, multline, multline*, align, align*,
14748 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
14749 Thanks to shreevatsa.public for the patch.
14753 + Allow -, _, :, . in markdown attribute names. These are legal in
14754 XML attribute names.
14755 + Use non-breaking spaces in abbreviations.
14756 + Markdown reader: improved efficiency of abbreviation parsing.
14757 Instead of a separate abbrev parser, we just check for
14758 abbreviations each time we parse a string. This gives a huge
14759 performance boost with -S. Resolves Issue #141.
14761 * Improved efficiency of shared parsers: hexNum, htmlComment,
14762 whitespace, indentSpaces.
14764 * Export HTMLMathMethod in Text.Pandoc.
14766 * Export languagesByExtension in Text.Pandoc.Highlighting.
14768 * Added new Haskell version of markdown2pdf, due to
14769 Paulo Tanimoto. This should be more portable than the old
14772 * Made 'pandoc -v' more explicit about compiler options.
14773 Resolves Issue #139.
14775 * pandoc.hs: Made --strict compatible with --standalone, --toc.
14777 * Use Paths_pandoc to get version number, instead of hard-coding it
14778 into Text/Pandoc.hs.
14782 [ John MacFarlane ]
14784 * Added support for literate Haskell. lhs support is triggered by
14785 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
14786 Haskell LaTeX. '.lhs' files are treated by default as literate
14789 + Added stateLiterateHaskell to parser state.
14790 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
14791 + Added parser for |inline lhs| to LaTeX reader.
14792 + Added writerLiterateHaskell to WriterOptions.
14793 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
14794 + Added definition of code environment to LaTeX header.
14795 + Added tests (run only if highlighting support compiled in).
14796 + Documented lhs features in man page and README.
14798 * In Text.Pandoc.Definition, added processWith, processWithM,
14799 and queryWith, and deprecated processPandoc and queryPandoc
14800 for these more general functions.
14802 * Fixed bug in mediawiki writer: improper closing tags in tables.
14803 Thanks to Benct Philip Jonsson for reporting the bug.
14805 * Added --email-obfuscation option.
14807 + Added writer option for email obfuscation.
14808 + Implemented email obfuscation options in HTML writer.
14809 + Added option to option parser.
14810 + Documented in README and pandoc man page.
14811 + Resolves Issue #97.
14813 * LaTeX writer: fixed bug with empty table cells.
14814 Resolves Issue #107. Thanks to rodja.trappe for the patch.
14816 * Fixed bug with header spacing in Markdown and RST writers.
14817 A null header (Meta [] [] []) should not cause a blank line
14818 at the beginning of output. But a blank line is needed between
14819 a non-null header and the main text.
14821 * Markdown reader: Relax spacing rules for $$ in display math. Now
14822 space and newlines are allowed after the opening $$ and before the
14823 closing $$. However, the display math cannot contain an entirely
14824 blank line. Resolves Issue #105.
14826 * Markdown reader: Gobble space after Plain blocks containing only
14827 raw html inline. Otherwise following header blocks are not parsed
14828 correctly, since the parser sees blank space before them. Resolves
14831 * Markdown reader: Allow " as well as '' to end a latex double-quote.
14833 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
14834 Resolves Issue #109.
14836 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
14838 + Added hang' function to Text.Pandoc.Shared; this will be used instead
14839 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
14840 is upgraded, we can go back to hang.
14841 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
14842 + Use hang' (and some different techniques) in RST and markdown writers.
14843 Some output is now a bit different.
14845 * Brought citeproc support up to date for citeproc-hs-0.2.
14846 (Patch by Andrea Rossato.)
14848 * Moved all haskell source to src subdirectory. Renamed Main.hs to
14851 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
14852 For now, keeping the old shell script too.
14854 * Added TemplateHaskell to Extensions for executable, removed
14855 -threaded for library. Thanks to duncan.coutts for the bug report.
14856 Resolves Issue #121.
14858 * Moved some Extra-Source-Files to Data-Files.
14860 * Moved tabFilter to Shared.
14862 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
14865 * Minor code cleanup based on hlint suggestions.
14869 [ John MacFarlane ]
14873 + Changed date on copyright message in Main.hs.
14874 + Have the '-v' option print syntax highlighting languages
14875 separated by commas, and wrapped in lines, instead of in five
14878 * Added --jsmath option. Resolves Issue #68.
14880 + Added --jsmath option to Main.hs
14881 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
14882 + Handle math appropriately in HTML writer when JsMath selected.
14883 + Documented the option in README and man page.
14885 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
14886 for tight and loose lists. Final Para is changed to Plain if all
14887 other list items *end* with a Plain block. Addresses Issue #99.
14891 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
14892 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
14893 Added rawVerbatimBlock parser. Resolves Issue #94.
14897 + Allow URLs with spaces in them in links and references, but escape
14899 + Allow blank space at the end of horizontal rules.
14901 * RST reader: Modified 'unknownDirective' parser to handle comment
14902 blocks correctly, and added tests for comment blocks. Resolves Issue
14903 #86. Closes Debian Bug #500662.
14907 + Include classes on tr elements in HTML output:
14908 "header", "odd", "even". This allows tables to be styled with
14909 lines in alternating colors. Resolves Issue #91.
14910 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
14911 This prevents parts of the document that are not math from being
14912 interpreted as math by LaTeXMathML.js.
14914 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
14915 which were formerly ignored. Resolves Issue #95.
14917 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
14918 between a footnote and immediately following nonspace characters in
14919 LaTeX and ConTeXt output. (This gets interpreted as a space, which
14920 is not desired in cases like `text^[note]---`.) Resolves Issue #93.
14922 * Windows installer: Don't require admin privileges to run
14923 installer. Modified pandoc-setup.iss, and changed modpath.iss to
14924 modify HKCU path if user lacks admin privileges. Also fixed case
14925 where oldpath is empty (previously this led to the new path
14926 beginning with a semicolon).
14928 * Updated INSTALL instructions for Arch packages and OS X install using
14931 * Removed the (now unneeded) debian directory.
14932 Removed empty Codec and System directories.
14934 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
14936 * Modified Setup.hs so that the "test" target returns an error status
14937 when tests fail, and "build" returns a success status if
14938 the build succeeds. Resolves Issue #100.
14940 * Added BUGS to files in tarball.
14945 [ John MacFarlane ]
14947 * Removed spurious reference to pdf output format from pandoc(1) man page.
14953 * Added new OpenDocument writer.
14955 * Added support for SmallCaps inline element.
14957 * Added support for integrating pandoc with citeproc-hs.
14959 + Added Cite element to definition and writers.
14960 + Added Text.Pandoc.Biblio module
14961 + Note: This support is included only if the 'citeproc'
14962 Cabal configuration flag is set.
14964 * Made Pandoc data structure an instance of Typeable.
14965 Added new processPandoc and queryPandoc functions, to query
14966 or transform matching elements in a Pandoc structure.
14970 * Added new Texinfo writer.
14972 [ John MacFarlane ]
14974 * Changes to Texinfo writer:
14976 + No space between paragraph and following @verbatim (provides more
14977 pleasing appearance in text formats)
14978 + Blank line consistently after list environments.
14980 + Use @code instead of @verb for inline code (this solves the character
14981 escaping problem for texi2dvi and texi2pdf).
14982 + Added news of Texinfo writer to README.
14983 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
14984 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
14985 default output extension.
14986 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
14988 * Added tests for OpenDocument writer.
14990 * Added ODT writer (using zip-archive library to package output of
14991 OpenDocument writer). Added odt-styles directory with default ODT styles.
14993 * Added new mediawiki writer and tests.
14995 * Markdown reader: Added support for delimited code blocks, with optional
14996 syntax highlighting using highlighting-kate (if the 'highlighting'
14997 configuration option is selected).
14999 + Currently highlighting is supported only in the HTML writer.
15000 + Delimited code blocks can have attributes; using the language name as
15001 class triggers highlighting.
15002 + New Attributes parameter in CodeBlock structure.
15003 + --version now indicates whether syntax highlighting support is compiled
15004 in, and prints a list of supported languages
15006 * Removed debian directory. Pandoc is no longer a native debian package.
15008 * Changes to build process: pandoc can now be built from the repository
15009 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
15012 + Include shell scripts themselves in repo, rather than generating from wrappers.
15013 Removed wrappers directory and wrappers Makefile target.
15014 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
15015 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
15016 from templates in the templates/ directory. Instead, they use template
15017 haskell to read data at compile time from the relevant files in data/.
15018 Template haskell functions go in a new module, Text.Pandoc.TH.
15019 + man pages are now generated in Setup.hs hook, not by Makefile
15020 + Makefile 'tarball' target now calls Cabal's 'sdist'
15021 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
15022 + Added "Build-Type" field to pandoc.cabal to avoid warning.
15023 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
15024 so 'sdist' and 'clean' will work properly.
15025 + Setup.hs now generates man pages in a postbuild hook.
15026 + Added dependency-checking to Setup.hs, so it only rebuilds things
15027 that need rebuilding.
15028 + Added 'library' and 'executable' configuration flags.
15029 Cabal can now be told to build just the library or just the executable.
15030 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
15031 For example: CABALOPTS=-fhighlighting make
15033 * Rewrote test suite so it doesn't depend on perl or unix tools.
15035 + Replaced old runtests.pl with a Haskell script RunTests.hs.
15036 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
15037 + Added test hook to Setup.hs, so tests may be run from cabal.
15038 + Changed Makefile's 'test' target to run tests via cabal.
15039 + Removed old generate.sh.
15040 + Since we no longer have 'sed' to filter out raw HTML sections
15041 from the docbook writer test, or raw LaTeX sections from the
15042 context writer test, we now just include these sections.
15043 They can be taken out if it is necessary to process the files.
15044 + Updated latex and context writer tests to remove extra spaces
15046 + Added a markdown table reader test.
15047 + Added markdown-reader-more.txt to test suite, for additional test cases
15048 for raw ConTeXt environments and more.
15050 * Compatibility fixes for CPP, Cabal, and haddock:
15052 + Use CPP in "Extensions" field in pandoc.cabal.
15053 + Removed use of backslash string continuations in source files.
15055 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
15058 * Require parsec < 3.
15059 The compatibility module in parsec 3.0.0 gives far worse performance than
15060 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
15061 version of parsec, and then we'll go to parsec 3.0.0.
15063 * Removed Text.Regex dependencies by rewriting using plain Haskell
15064 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
15066 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
15070 + Added 'configure' as dependency of 'uninstall-all'.
15071 (It uses the Cabal build program.)
15072 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
15073 Note that Cabal will automatically choose the ghc-pkg appropriate
15074 for the compiler selected, so normally specifying GHC by itself
15077 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
15078 its IO and conversion functions.
15080 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
15081 everything is -Wall clean.
15083 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
15084 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
15085 (These are caused by the Lift instance for ByteString.)
15087 * Changed the comment used to replace unsafe HTML if sanitize-html option
15090 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
15092 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
15094 * Escape '\160' as " ", not " " in XML.
15095 "nbsp" isn't a predefined XML entity.
15097 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
15098 Added some try's in ordered list parsers.
15100 * Man writer: don't escape " as \".
15102 * Allow newline before URL in markdown link references. Resolves Issue #81.
15103 Added tests for this issue in new "markdown-reader-more" tests.
15104 Changed RunTests.hs to run these tests.
15106 * Support for display math. Resolves Issue #47.
15108 + Added a DisplayMath/InlineMath selector to Math inlines.
15109 + Markdown parser yields DisplayMath for $$...$$.
15110 + LaTeX parser yields DisplayMath when appropriate. Removed
15111 mathBlock parsers, since the same effect is achieved by the math
15112 inline parsers, now that they handle display math.
15113 + Writers handle DisplayMath as appropriate for the format.
15114 + Modified tests accordingly; added new tests for display math.
15116 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
15117 to LaTeX in its display of math, and supports many non-math LaTeX environments.
15119 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
15120 + Modified HTML writer to print raw TeX when LaTeXMathML is
15121 being used instead of suppressing it.
15122 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
15123 + Replaced ASCIIMathML with LaTeXMathML in source files.
15124 + Modified README and pandoc man page source.
15125 + Added --latexmathml option (kept --asciimathml as a synonym
15126 for backwards compatibility)
15128 * Markdown reader: Parse setext headers before atx headers.
15132 parsed by Markdown.pl as an H1 header with contents "# hi".
15134 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
15135 The marker on the first list item determines the type of the whole
15136 list. Thus, a list like
15140 gets parsed as a single ordered list. (Previous versions of pandoc
15141 treated this as an ordered list with an unordered sublist.)
15143 * Markdown smart typography:
15145 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
15146 + Use nonbreaking spaces after known abbreviations in markdown parser.
15147 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
15148 not produce a sentence-separating space. Resolves Issue #75.
15150 * Markdown writer: Print unicode \160 literally, rather than as .
15152 * Treat '\ ' in (extended) markdown as nonbreaking space.
15153 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
15155 * The '--sanitize-html' option now examines URIs in markdown links
15156 and images, and in HTML href and src attributes. If the URI scheme
15157 is not on a whitelist of safe schemes, it is rejected. The main point
15158 is to prevent cross-site scripting attacks using 'javascript:' URIs.
15159 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
15160 and http://ha.ckers.org/xss.html. Resolves Issue #62.
15164 + Override Text.XHtml's stringToHtml function,
15165 so that characters below 0xff are not converted to numerical entity
15166 references. Also convert '\160' to " ". This should aid readability
15167 and editability of the HTML source. It does presuppose that the HTML
15168 will be served as UTF-8.
15169 + In code blocks, change leading newlines to <br /> tags.
15170 (Some browsers ignore them.) Resolves Issue #71.
15171 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
15172 + Use style attributes rather than css classes for strikethrough
15173 and ordered list styles. This works better when fragments, rather than
15174 standalone documents, are generated.
15176 * HTML reader: Count anything that isn't a known block (HTML) tag as an
15177 inline tag (rather than the other way around). Added "html", "head", and
15178 "body" to list of block tags. Resolves Issue #66, allowing
15179 <lj> to count as an inline tag.
15181 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
15182 boldface, and other inline elements. Resolves Issue #64.
15184 * LaTeX reader: improvements in raw LaTeX parsing.
15186 + "loose punctuation" (like {}) parsed as Space
15187 + Para elements must contain more than Str "" and Space elements
15188 + Added parser for "\ignore" command used in literate haskell.
15189 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
15190 mode, these parsers simply strip off the command part and allow
15191 the arguments to be parsed normally. So, for example,
15192 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
15193 Str "{\\emph{hi}}".
15194 + Parse lhs "code" environments as verbatim.
15195 Refactored parsers for verbatim environments.
15196 + Removed specialEnvironment parser.
15197 + parse '{}', if present, after \textless, \textgreater,
15198 \textbar, \textbackslash, \ldots.
15199 + Parse unescaped special characters verbatim rather than
15200 changing them to spaces. This way arguments of unknown
15201 commands will appear in braces.
15203 * Parse raw ConTeXt environments as TeX in markdown reader.
15204 Resolves Issue #73.
15206 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
15208 * Made some structural changes to parsing of raw LaTeX environments.
15209 Previously there was a special block parser for LaTeX environments.
15210 It returned a Para element containing the raw TeX inline. This has
15211 been removed, and the raw LaTeX environment parser is now used in the
15212 rawLaTeXInline parser. The effect is exactly the same, except that we
15213 can now handle consecutive LaTeX and ConTeXt environments not separated
15214 by spaces. This new flexibility is required by the example in
15217 \placeformula \startformula
15221 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
15222 returns a string) rather than rawLaTeXEnvironment (which returns a block
15223 element). This is more likely to be useful in other applications.
15225 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
15226 \textsubscript conflicts with a definition in the memoir class.
15227 Resolves Issue #65.
15229 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
15231 * Added amsmath package to default LaTeX header. Resolves Issue #48.
15233 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
15234 list introduction lines.
15236 * Changed Float to Double in definition of Table element.
15237 (Double is more efficient in GHC.)
15239 * Fixed bug in Markdown parser: regular $s triggering math mode.
15240 For example: "shoes ($20) and socks ($5)."
15241 The fix consists in two new restrictions:
15243 + the $ that ends a math span may not be directly followed by a digit.
15244 + no blank lines may be included within a math span.
15246 Thanks to Joseph Reagle for noticing the bug.
15248 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
15249 Removed 'joinWithSep' from Text.Pandoc.Shared.
15251 * Updated README and man pages. Acknowledge contributors in README.
15252 Added paragraph to README about producing S5 with separate CSS/javascript.
15254 * Updated INSTALL to reflect new build system (including configuration
15255 options) and document new dependencies. Added note to INSTALL that
15256 Cabal >= 1.2 is required for build. Resolves Issue #74.
15258 * Fixed some haddock documentation errors.
15260 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
15262pandoc (0.46) unstable; urgency=low
15264 [ John MacFarlane ]
15266 * Made -H, -A, and -B options cumulative: if they are specified
15267 multiple times, multiple files will be included.
15269 * Added optional HTML sanitization using a whitelist.
15270 When this option is specified (--sanitize-html on the command line),
15271 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
15272 attributes will be removed. This option should be especially useful
15273 for those who want to use pandoc libraries in web applications, where
15274 users will provide the input.
15276 + Main.hs: Added --sanitize-html option.
15278 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
15280 + Text.Pandoc.Readers.HTML:
15281 - Added whitelists of sanitaryTags and sanitaryAttributes.
15282 - Added parsers to check these lists (and state) to see if a given
15283 tag or attribute should be counted unsafe.
15284 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
15286 - Modified htmlAttribute to remove unsafe attributes.
15287 - Modified htmlScript and htmlStyle to remove these elements if
15290 + Modified README and man pages to document new option.
15292 * Improved handling of email addresses in markdown and reStructuredText.
15293 Consolidated uri and email address parsers. (Resolves Issue #37.)
15295 + New emailAddress and uri parsers in Text.Pandoc.Shared.
15296 - uri parser uses parseURI from Network.URI.
15297 - emailAddress parser properly handles email addresses with periods
15300 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
15301 and Text.Pandoc.Readers.Markdown.
15305 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
15306 nested in an Emph. (A '*' is only recognized as the end of the
15307 emphasis if it's not the beginning of a strong emphasis.)
15309 + Moved blockQuote parser before list parsers for performance.
15311 + Modified 'source' parser to allow backslash-escapes in URLs.
15312 So, for example, [my](/url\(1\)) yields a link to /url(1).
15313 Resolves Issue #34.
15315 + Disallowed links within links. (Resolves Issue #35.)
15316 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
15317 instead of hard-coding the inline parser takes an inline parser
15319 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
15320 - Removed unneeded inlineString function.
15321 - Added inlineNonLink parser, which is now used in the definition of
15323 - Added inlineParsers list and redefined inline and inlineNonLink parsers
15325 - Added failIfLink parser.
15327 + Better handling of parentheses in URLs and quotation marks in titles.
15328 - 'source' parser first tries to parse URL with balanced parentheses;
15329 if that doesn't work, it tries to parse everything beginning with
15330 '(' and ending with ')'.
15331 - source parser now uses an auxiliary function source'.
15332 - linkTitle parser simplified and improved, under assumption that it
15333 will be called in context of source'.
15335 + Make 'block' conditional on strictness state, instead of using
15336 failIfStrict in block parsers. Use a different ordering of parsers
15337 in strict mode (raw HTML block before paragraph) for performance.
15338 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
15339 Simplified htmlBlock, since we know it's only called in strict
15342 + Improved handling of raw HTML. (Resolves Issue #36.)
15343 - Tags that can be either block or inline (e.g. <ins>) should
15344 be treated as block when appropriate and as inline when
15345 appropriate. Thus, for example,
15347 should be treated as a paragraph with inline <ins> tags, while
15351 should be treated as a paragraph within <ins> tags.
15352 - Moved htmlBlock after para in list of block parsers. This ensures
15353 that tags that can be either block or inline get parsed as inline
15355 - Modified rawHtmlInline' so that block elements aren't treated as
15357 - Modified para parser so that paragraphs containing only HTML tags and
15358 blank space are not allowed. Treat these as raw HTML blocks instead.
15360 + Fixed bug wherein HTML preceding a code block could cause it to
15361 be parsed as a paragraph. The problem is that the HTML parser
15362 used to eat all blank space after an HTML block, including the
15363 indentation of the code block. (Resolves Issue #39.)
15364 - In Text.Pandoc.Readers.HTML, removed parsing of following space
15366 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
15367 indentation is eaten *only* on the first line after the HTML
15368 block. This means that in
15372 the foo won't be treated as a code block, but in
15378 it will. This seems the right approach for least surprise.
15382 + Fixed bug in parsing explicit links (resolves Issue #44).
15383 The problem was that we were looking for inlines until a '<' character
15384 signaled the start of the URL; so, if you hit a reference-style link,
15385 it would keep looking til the end of the document. Fix: change
15386 inline => (notFollowedBy (char '`') >> inline). Note that this won't
15387 allow code inlines in links, but these aren't allowed in resT anyway.
15389 + Cleaned up parsing of reference names in key blocks and links.
15390 Allow nonquoted reference links to contain isolated '.', '-', '_', so
15391 so that strings like 'a_b_' count as links.
15393 + Removed unnecessary check for following link in str.
15394 This is unnecessary now that link is above str in the definition of
15399 + Modified rawHtmlBlock so it parses </html> and </body> tags.
15400 This allows these tags to be handled correctly in Markdown.
15401 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
15402 since these are handled in parseHtml. (Resolves Issue #38.)
15404 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
15406 + Don't interpret contents of style tags as markdown.
15407 (Resolves Issue #40.)
15408 - Added htmlStyle, analogous to htmlScript.
15409 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
15410 - Moved "script" from the list of tags that can be either block or
15411 inline to the list of block tags.
15413 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
15414 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
15415 inline tags would be included in raw HTML blocks.
15417 + Modified anyHtmlBlockTag to test for (not inline) rather than
15418 directly for block. This allows us to handle e.g. docbook in
15419 the markdown reader.
15421 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
15422 Updated LaTeX reader test to use --parse-raw.
15426 + Modified rules for automatic HTML header identifiers to
15427 ensure that identifiers begin with an alphabetic character.
15428 The new rules are described in README. (Resolves Issue #33.)
15430 + Changed handling of titles in HTML writer so you don't get
15431 "titleprefix - " followed by nothing.
15433 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
15434 spacing. Each block element is wrapped with either Pad or Reg.
15435 Pad'ed elements are guaranteed to have a blank line in between.
15439 + Refactored RST writer to use a record instead of a tuple for state,
15440 and to include options in state so it doesn't need to be passed as
15443 + Use an interpreted text role to render math in restructuredText.
15444 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
15449 * Debian packaging changes:
15451 + Remove the empty 'include' directory in -dev package, which lintian
15453 + Bump Standarts-Version to 3.7.3.
15454 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
15457 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
15459pandoc (0.45) unstable; urgency=low
15461 [ John MacFarlane ]
15463 * Simplified parsing of reference keys and notes in markdown and RST
15464 readers: The Reference data structure from Text.Pandoc.Shared is no
15465 longer needed, since referenceKey and noteBlock parses return strings
15466 (as many blank lines as were occupied by the key or note) and update
15467 state themselves. getPosition and setPosition are now used to ensure
15468 that error messages will give the correct line number. This yields
15469 cleaner (and slightly faster) code, with more accurate parsing error
15472 * Added new Math inline element:
15474 + Markdown and LaTeX readers now convert TeX math into Math elements,
15476 + This allows math to be treated differently from raw TeX in output.
15477 TeX elements are no longer printed in output formats other than
15478 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
15480 * New default handling of math in writers:
15482 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
15483 parses raw TeX math and outputs a string of Pandoc inlines that
15484 tries to render it as far as possible using unicode characters,
15485 lapsing into literal TeX when needed.
15486 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
15487 and Docbook, if no other method for displaying math in HTML is
15488 specified. Enclosing $'s are no longer printed by default.
15489 + By default, math is put inside `<span class="math">`. This way it can be
15490 distinguished from the surrounding text, e.g. put in a different
15493 * New --gladtex and --mimetex options for display of math in HTML:
15495 + If --gladtex is specified, math is output between `<eq>` tags, so
15496 it can be processed by gladTeX.
15497 + If --mimetex is specified, math is put in `<img>` tags with a link
15498 to the mimetex CGI script (or any other script that takes TeX math
15499 as input and outputs an image). The URL of the script may be
15500 specified, but defaults to /cgi-bin/mimetex.cgi.
15501 + HTMLMathMethod structure in WriterOptions keeps track of how to
15502 display math in HTML output.
15503 + Updated README with a description of the four options for displaying
15508 + Fixed bug: parser for minimized attributes should not swallow
15510 + Simplified HTML attribute parsing.
15511 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
15512 longer needed. `<pre>` suffices. All HTML tags in the code block
15513 (e.g. for syntax highlighting) are skipped, because they are not
15514 portable to other output formats. A `<code>...</code>` block not
15515 surrounded by `<pre>` now counts as inline HTML, not a code block.
15516 + Remove just one leading and one trailing newline from contents of
15517 `<pre>...</pre>` in codeBlock parser.
15521 + Removed support for box-style block quotes.
15522 + Require space before title in links and references.
15523 This fixes a bug in parsing URLs like http://silly/url(withparen).
15524 + Improved and simplified setextHeader parser.
15525 + Fixed logic in smart quote parsing, adding some needed 'try'
15527 + Fixed smart quote parsing so that unicode characters 8216 and 8217
15528 are recognized as single quotes, and 8220 and 8221 as double quotes.
15532 + Fixed bug in parsing of code blocks. Previously a full tab indent
15533 was required, but RST allows code to be indented any amount.
15534 Resolves Issue #27.
15535 + Allow field lists to be indented.
15536 + Parse the contents of field lists instead of treating as a raw string.
15537 + Represent field lists as definition lists instead of blockquotes.
15538 + Fixed bug in which metadata would be overridden if the document
15539 contained multiple field lists.
15540 + Parse fields associated with '.. image::' blocks, and use 'alt'
15541 field, if given, for image alt and title attributes.
15545 + Modified specialChar so that '"' characters are parsed.
15546 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
15550 + Changes in handling of math (see above).
15551 + Don't produce HTML for table of contents if there are
15552 no headers. (This would be an empty list, which is invalid XHTML.)
15556 + Don't print title attribute if title is empty. (This differs from
15557 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
15558 Gruber has indicated that he prefers this behavior.) Adjusted test
15560 + Fixed incorrect line wrapping in paragraphs including hard line
15561 breaks. Resolves Issue #25.
15562 + Fixed bug in markdown writer: If an ordered list item began with
15563 a marker greater than 3 characters in width, and the item took more
15564 than one line, it would appear on the line after the list marker,
15571 Now it works as follows:
15578 + Fixed bug in RST writer's handling of ordered lists. Previously,
15579 list items with multiple lines would not always line up with
15580 single-line list items. Now, list items are nested the length of
15581 the list marker + 1. This looks better and ensures that list items
15582 all line up. (Note that list markers are padded to the length of
15583 the longest list marker in the series.)
15584 + Use 3-space indent for unordered lists.
15585 + If label for a link reference contains a colon, surround it by `
15586 signs so it won't be interpreted as the end of the link label.
15590 + Cleaner output for footnotes. Footnotes now always begin on a new
15591 line, and the final } is on a line by itself only when it needs to
15592 be (i.e. only when the note ends with a Verbatim environment).
15593 + Added writer options to state, so state doesn't need to be passed as
15595 + Text wrapping now provided, using wrapTeXIfNeeded.
15597 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
15598 (thanks to Idris Samawi Hamid for suggestions).
15600 + PrettyPrint module now used for output.
15601 + Writer options are now in state, so they don't have to be passed as
15603 + Text wrapping now provided, using wrapTeXIfNeeded.
15604 + Better treatment of footnotes: footnotes are always on lines by
15605 themselves, and the final } is on a line by itself only when
15606 it needs to be (after \stoptyping).
15607 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
15608 depending on whether --number-sections option is selected.
15609 + Extra blank line inserted after \stopitemize
15610 + Use new, "official" definition of blockquote environment. Also, use
15611 blank line after \startblockquote to balance blank line at the end.
15612 + Both itemized and enumerated lists are now generated using
15613 \start-stopitemize, with appropriate options. Removed definitions
15614 of ltxenum and ltxitem, which are no longer needed. Provided
15615 defaults for itemized lists in the preamble. State keeps track of
15616 ordered list level, so that when default numbering is specified,
15617 the appropriate scheme can be used.
15618 + Changed \useurl to \useURL.
15619 + Changed link color from red to blue.
15620 + Use \subsubsubsubsection etc., since these are supported
15621 (up to at least sub x 5).
15623 * Text.Pandoc.Shared:
15625 + Save and restore position in parseFromString, so that accurate
15626 error messages can be given.
15627 + Improved efficiency of romanNumeral parser.
15628 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
15629 that footnotes occur on lines by themselves (to make them
15630 easier to see and move) and do not screw up line wrapping.
15632 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
15633 if present. Windows Notepad and other applications insert a
15634 BOM at the beginning of a UTF8 file.
15636 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
15637 addition to "\r\n" and '\n').
15639 * Added a writer option for wrapped text and a command-line option
15640 '--no-wrap', which disables text wrapping and minimizes whitespace
15641 in HTML. (Resolves Issue #26.)
15643 + Added support for '--no-wrap' to Main.hs.
15644 + Added wrapIfNeeded function to Text.Pandoc.Shared.
15645 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
15647 + Added render and renderFragment helpers to HTML writer.
15649 * Modified html2markdown to run tidy only if the HTML cannot be
15650 parsed. Previously html2markdown piped all input through tidy
15651 before passing it to pandoc. This caused problems on certain pages
15652 (e.g. http://daringfireball.com/markdown) which have well-formed
15653 XHTML that causes tidy to choke. The solution is to pipe through
15654 tidy only if pandoc cannot parse the input by itself. This means
15655 that a temp file is now always used, even when input comes from a
15656 local file or standard input.
15658 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
15659 Text.Pandoc library.
15663 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
15664 6.8, pretty and containers must be added to Build-Depends, and it
15665 is desirable to use the -O2 compiler option.) Cabal configurations
15666 allows one to select options depending on the compiler version.
15667 For GHC 6.6, the splitBase option can be disabled.
15668 + pandoc.cabal.ghc66 is provided for users with older versions of
15669 Cabal, which do not support configurations.
15670 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
15671 '--enable-(executable|library)-profiling' is specified. Updated
15672 PROFILING instructions accordingly.
15676 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
15677 is copied to pandoc.cabal, and the old pandoc.cabal is copied
15678 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
15679 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
15680 will work properly with either GHC 6.6 or 6.8.
15681 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
15682 This is where current versions of Cabal put it.
15683 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
15684 + Removed dependency of templates on ./templates, which is circular
15685 now that templates is a subdirectory of the top-level.
15687 * MacPorts Portfile:
15689 + Modified to install the pandoc library in addition to programs.
15690 + Installation must be done manually rather than using Makefile's
15692 + Note that the library must be registered in the activate phase,
15693 after the library files have been copied out of the destroot.
15694 Cabal generates a 'register.sh' script that will do this.
15696 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
15697 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
15700 * debian/rules: Converted to UTF-8.
15702 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
15704 * Updated ASCIIMathML.js to latest version.
15706 * Directory structure:
15708 + Moved everything from src into the top-level directory.
15709 + Changed references to source directory in Makefile and
15711 + Moved ASCIIMathML.js, headers, and ui into templates directory.
15712 + Modified fillTemplates.pl to reflect new paths.
15716 * Makefile: Fixed the issue of having two copies of the library
15717 documentation under some usage scenarios.
15719 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
15720 and GHC_PKG configurable through the environment, to support
15721 unusual ghc installations. For example:
15722 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
15724 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
15726pandoc (0.44) unstable; urgency=low
15728 [ John MacFarlane ]
15730 * Fixed bug in HTML writer: when --toc was used, anchors were put around
15731 headers, which is invalid XHTML (block content within inline element).
15732 Now the anchors are put inside the header tags. Resolves Issue #23.
15734 * Added xmlns attribute to html element in html writer tests.
15735 This attribute is added by more recent versions of the
15736 xhtml library (>= 3000), and is required for valid XHTML.
15740 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
15741 command instead of 'runhaskell', which, on some platforms (such as s390,
15742 alpha, m68k), throws the following error:
15744 runhaskell Setup.hs configure --prefix=/usr
15745 ghc-6.6.1: not built for interactive use
15747 This causes a serious FTBFS bug. Closes: #440668.
15749 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
15751pandoc (0.43) unstable; urgency=low
15753 [ John MacFarlane ]
15755 * The focus of this release is performance. The markdown parser
15756 is about five times faster than in 0.42, based on benchmarks
15757 with the TextMate manual.
15759 * Main.hs: Replaced CRFilter and tabFilter with single function
15760 tabFilter, which operates on the whole string rather than breaking
15761 it into lines, and handles dos-style line-endings as well as tabs.
15763 * Added separate LaTeX reader and native reader tests; removed
15766 * Text.Pandoc.Shared:
15768 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
15769 + General code cleanup (to elimante warnings when compiling with -Wall.)
15770 + Added 'wrapped' function, which helps wrap text into paragraphs,
15771 using the prettyprinting library.
15772 + Rewrote charsInBalanced and charsInBalanced'.
15773 - Documented restriction: open and close must be distinct characters.
15774 - Rearranged options for greater efficiency.
15775 - Bug fix: Changed inner call to charsInBalanced inside
15776 charsInBalanced' to charsInBalanced'.
15777 + anyLine now requires that the line end with a newline (not eof).
15778 This is a harmless assumption, since we always add newlines to the
15779 end of a block before parsing with anyLine, and it yields a 10% speed
15781 + Removed unnecessary 'try' in anyLine.
15782 + Removed unneeded 'try' from romanNumeral parser.
15783 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
15784 + Removed unneeded 'try' in parseFromString.
15785 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
15787 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
15788 'try' is not automatically applied to the 'end' parser. Added
15789 'try' in calls to 'enclosed' where needed. Slight speed increase.
15793 + Replaced individual wrapping routines in RST, Man, and Markdown
15794 writers with 'wrapped' from Text.Pandoc.Shared.
15795 + Rewrote LaTeX writer to use the prettyprinting library,
15796 so we get word wrapping, etc.
15797 + Modified latex writer tests for new latex writer using prettyprinter.
15798 + Fixed bug in LaTeX writer: autolinks would not cause
15799 '\usepackage{url}' to be put in the document header. Also, changes
15800 to state in enumerated list items would be overwritten.
15801 + In Markdown writer, escape paragraphs that begin with ordered list
15802 markers, so they don't get interpreted as ordered lists.
15804 * Text.Pandoc.Reades.LaTeX:
15806 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
15807 numeral after "enum" in "setcounter" would consist entirely of
15808 "i"s. 'enumiv' is legitimate.
15809 + LaTeX command and environment names can't contain numbers.
15810 + Rearranged order of parsers in inline for slight speed improvement.
15811 + Added '`' to special characters and 'unescapedChar'.
15813 * Text.Pandoc.Readers.RST:
15815 + Removed unneeded try's in RST reader; also minor code cleanup.
15817 + Rearranged parsers in inline (doubled speed).
15819 * Text.Pandoc.Readers.Markdown:
15821 + Skip notes parsing if running in strict mode. (This yields a nice
15822 speed improvement in strict mode.)
15823 + Simplify autolink parsing code, using Network.URI to test for
15824 URIs. Added dependency on network library to debian/control and
15826 + More perspicuous definition of nonindentSpaces.
15827 + Removed unneeded 'try' in 'rawLine'.
15828 + Combined linebreak and whitespace into a new whitespace parser, to
15829 avoid unnecessary reparsing of space characters.
15830 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
15831 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
15832 + Use lookAhead in parsers for setext headers and definition lists
15833 to see if the next line begins appropriately; if not, don't waste
15834 any more time parsing.
15835 + Don't require blank lines after code block. (It's sufficient to
15836 end code block with a nonindented line.)
15837 + Changed definition of 'emph': italics with '_' must not
15838 be followed by an alphanumeric character. This is to help
15839 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
15840 `[LC<em>TYPE]:my</em>type`.
15841 + Improved Markdown.pl-compatibility in referenceLink: the two parts
15842 of a reference-style link may be separated by one space, but not
15843 more... [a] [link], [not] [a link].
15844 + Fixed markdown inline code parsing so it better accords with
15845 Markdown.pl: the marker for the end of the code section is a clump
15846 of the same number of `'s with which the section began, followed
15847 by a non-` character. So, for example,
15848 ` h ``` i ` -> `<code>h ``` i</code>`.
15849 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
15850 rules are slightly different.
15851 + Rewrote 'para' for greater efficiency.
15852 + Rewrote link parsers for greater efficiency.
15853 + Removed redundant 'referenceLink' in definition of inline (it's
15854 already in 'link').
15855 + Refactored escapeChar so it doesn't need 'try'.
15856 + Refactored hrule for performance in Markdown reader.
15857 + More intelligent rearranging of 'inline' so that most frequently
15858 used parsers are tried first.
15859 + Removed tabchar parser, as whitespace handles tabs anyway.
15861 * Text.Pandoc.CharacterReferences:
15864 + Removed unnecessary 'try's for a speed improvement.
15865 + Removed unnecessary '&' and ';' from the entity table.
15869 + Makefile: Get VERSION from cabal file, not Main.hs.
15870 + Modified MacPorts Portfile:
15871 - Depend on haddock
15872 - Build and install libraries and library documentation in
15873 addition to pandoc executable
15874 - Added template item for md5 sum in Portfile.in.
15875 - Incorporated changes from MacPorts repository (r28278).
15876 + FreeBSD port: Don't try to generate distinfo in Makefile.
15877 It can be made using 'make makesum' in FreeBSD.
15878 + Make both freebsd and macports targets depend on tarball.
15880 * Website and documentation:
15882 + Updated INSTALL instructions.
15883 + Added pandocwiki demo to website.
15884 + Removed local references to Portfile, since pandoc is now in the
15885 MacPorts repository.
15887 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
15889pandoc (0.42) unstable; urgency=low
15891 [ John MacFarlane ]
15893 * Main.hs: Use utf8 conversion on the extra files loaded with
15894 the -H, -C, -B, and -A options. This fixes problems with unicode
15895 characters in these files.
15897 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
15898 Text.Pandoc.Readers.HTML and without it we get a linking error when
15903 + Added new rule for enhanced markdown ordered lists: if the list
15904 marker is a capital letter followed by a period (including a
15905 single-letter capital roman numeral), then it must be followed by
15906 at least two spaces. The point of this is to avoid accidentally
15907 treating people's initials as list markers: a paragraph might begin,
15908 "B. Russell was an English philosopher," and this shouldn't be
15909 treated as a list. Documented change in README.
15910 + Blocks that start with "p. " and a digit are no longer treated
15911 as ordered lists (it's a page number).
15912 + Added a needed 'try' to listItem.
15913 + Removed check for a following setext header in endline.
15914 A full test is too inefficient (doubles benchmark time), and the
15915 substitute we had before is not 100% accurate.
15916 + Don't use Code elements for autolinks if --strict specified.
15918 * LaTeX writer: When a footnote ends with a Verbatim environment, the
15919 close } of the footnote cannot occur on the same line or an error occurs.
15920 Fixed this by adding a newline before the closing } of every footnote.
15923 + Removed incorrect "{}" around style information in HTML tables.
15924 Column widths now work properly in HTML.
15925 + If --strict option is specified (and --toc is not), don't include
15926 identifiers in headers, for better Markdown compatibility.
15930 + Separated $(web_dest) and website targets.
15931 + In website, index.txt is now constructed from template index.txt.in.
15932 + Added freebsd target to Markefile. This creates the freebsd Makefile
15933 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
15934 from the repository.
15935 + Added macport target to Makefile. Portfile is built from template
15937 + Removed OSX package targets. (Too many difficulties involving
15938 dependencies on dynamic libraries.)
15939 + More complete INSTALL instructions for all architectures.
15942 + Added a programming demo, pandocwiki.
15946 * Do not forget to close pandoc's ITP. Closes: #391666
15948 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
15950pandoc (0.41) unstable; urgency=low
15952 [ John MacFarlane ]
15954 * Fixed bugs in HTML reader:
15955 + Skip material at end *only if* `</html>` is present (previously,
15956 only part of the document would be parsed if an error was
15957 found; now a proper error message is given).
15958 + Added new constant eitherBlockOrInline with elements that may
15959 count either as block-level or as inline. Modified isInline and
15960 isBlock to take this into account.
15961 + Modified rawHtmlBlock to accept any tag (even an inline tag):
15962 this is innocuous, because rawHtmlBlock is tried only if a regular
15963 inline element can't be parsed.
15964 + Added a necessary 'try' in definition of 'para'.
15966 * Fixed bug in markdown ordered list parsing. The problem was that
15967 anyOrderedListStart did not check for a space following the
15968 ordered list marker. So in 'A.B. 2007' the parser would be
15969 expecting a list item, but would not find one, causing an error.
15970 Fixed a similar bug in the RST reader. Resolves Issue #22.
15972 * Refactored RST and Markdown readers using parseFromString.
15974 * LaTeX reader will now skip anything after \end{document}.
15976 * Fixed blockquote output in markdown writer: previously, block
15977 quotes in indented contexts would be indented only in the first
15980 * Added note to INSTALL about variations in versions of the xhtml
15981 library that can lead to failed tests (thanks to Leif LeBaron).
15983 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
15985pandoc (0.4) unstable; urgency=low
15987 [ John MacFarlane ]
15989 * Added two new output formats: groff man pages and ConTeXt. By
15990 default, output files with extensions ".ctx" and ".context" are
15991 assumed to be ConTeXt, and output files with single-digit extensions
15992 are assumed to be man pages.
15994 * Enhanced ordered lists (documented in README, under Lists):
15995 + The OrderedList block element now stores information about
15996 list number style, list number delimiter, and starting number.
15997 + The readers parse this information when possible.
15998 + The writers use this information to style ordered lists.
15999 + The enhancement can be disabled using the --strict option.
16001 * Added support for tables (with a new Table block element). Two kinds
16002 of tables are supported: a simple table with one-line rows, and a
16003 more complex variety with multiline rows. All output formats are
16004 supported, but only markdown tables are parsed at the moment. The
16005 syntax is documented in README.
16007 * Added support for definition lists (with a new DefinitionList block
16008 element). All output and input formats are supported. The syntax is
16009 documented in README.
16011 * Added support for superscripts and subscripts (with new Superscript
16012 and Subscript inline elements). All input and output
16013 formats. The syntax is documented in README.
16015 * Added support for strikeout (with a new Strikeout inline element).
16016 All input and output formats are supported. Thanks to Bradley Kuhn,
16017 who contributed a patch. The syntax is documented in README. Resolves
16020 * Added a --toc|--table-of-contents option. This causes an automatically
16021 generated table of contents (or an instruction that creates one) to
16022 be inserted at the beginning of the document. Not supported in S5,
16023 DocBook, or man page writers.
16025 * Modified the -m|--asciimathml option:
16027 + If an optional URL argument is provided, a link is inserted
16028 instead of the contents of the ASCIIMathML.js script.
16029 + Nothing is inserted unless the document actually contains
16032 * Removed Blank block element as unnecessary.
16034 * Removed Key and Note blocks from the Pandoc data structure. All
16035 links are now stored as explicit links, and note contents are
16036 stored with the (inline) notes.
16038 + All link Targets are now explicit (URL, title) pairs; there
16039 is no longer a 'Ref' target.
16040 + Markdown and RST parsers now need to extract data from key and
16041 note blocks and insert them into the relevant inline elements.
16042 Other parsers have been simplified, since there is no longer any need
16043 to construct separate key and note blocks.
16044 + Markdown, RST, and HTML writers need to construct lists of
16045 notes; Markdown and RST writers need to construct lists of link
16046 references (when the --reference-links option is specified); and
16047 the RST writer needs to construct a list of image substitution
16048 references. All writers have been rewritten to use the State monad
16049 when state is required.
16050 + Several functions (generateReference, keyTable,
16051 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
16052 used by them) have been removed from Text.Pandoc.Shared, since
16053 they are no longer needed. New functions and data structures
16054 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
16055 added. The functions inTags, selfClosingTag, inTagsSimple, and
16056 inTagsIndented have been moved to the DocBook writer, since that
16057 is now the only module that uses them. NoteTable is now exported
16058 in Text.Pandoc.Shared.
16059 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
16060 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
16061 + Added writerNotes and writerReferenceLinks to WriterOptions.
16063 * Added Text.Pandoc module that exports basic readers, writers,
16064 definitions, and utility functions. This should export everything
16065 needed for most uses of Pandoc libraries. The haddock documentation
16066 includes a short example program.
16068 * Text.Pandoc.ASCIIMathML is no longer an exported module.
16070 * Added Text.Pandoc.Blocks module to help in printing markdown
16071 and RST tables. This module provides functions for working with
16072 fixed-width blocks of text--e.g., placing them side by side, as
16075 * Refactored to avoid reliance on Haskell's Text.Regex library, which
16076 (a) is slow, and (b) does not properly handle unicode. This fixed
16077 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
16079 + Replaced 'gsub' with a general list function 'substitute'
16080 that does not rely on Text.Regex.
16081 + Rewrote extractTagType in HTML reader so that it doesn't use
16083 + In Markdown reader, replaced email regex test with a custom email
16084 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
16085 with a custom function isSelfClosingTag.
16086 + Modified Docbook writer so that it doesn't rely on Text.Regex for
16087 detecting 'mailto' links.
16088 + Removed escapePreservingRegex and reamped entity-handling
16089 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
16090 avoid reliance on Text.Regex (see below on character reference
16093 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
16095 * Changed handling of XML entities. Entities are now parsed (and unicode
16096 characters returned) in the Markdown and HTML readers, rather than being
16097 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
16098 instead of entities for characters above 128. This makes the HTML and
16099 DocBook output much more readable and more easily editable.
16101 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
16102 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
16103 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
16104 Moved both functions to Text.Pandoc.Writers.Docbook.
16105 + Added characterReference parser to Text.Pandoc.CharacterReferences.
16106 This parses a string and return a unicode character.
16107 + Rewrote decodeCharacterReferences to use the new parser instead of
16109 + Added new charRef parser for Markdown and HTML, which replaces the
16110 old 'entity' parser. Added '&' as a special character in Markdown reader.
16111 + Modified HTML and Markdown readers to call decodeEntities on all raw
16112 strings (e.g. authors, dates, link titles), to ensure that no
16113 unprocessed entities are included in the native representation of
16114 the document. (In the HTML reader, most of this work is done by a
16115 change in extractAttributeName.)
16116 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
16117 since a unicode non-breaking space is impossible to distinguish visually
16118 from a regular space. (Resolves Issue #3.)
16119 + Removed encodeEntitiesNumerical.
16120 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
16121 slight performance boost over the old association list.
16122 + Removed unneeded decodeEntities from 'str' parser in HTML and
16125 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
16126 fromUTF8, for clarity.
16128 * Replaced old haskell98 module names replaced by hierarchical module
16129 names, e.g. List by Data.List. Removed haskell98 from dependencies
16130 in pandoc.cabal, and added mtl (needed for state monad). Substituted
16133 * Refactored and cleaned up character escaping in writers, using
16134 backslashEscapes and escapeStringUsing functions.
16136 * Instead of adding "\n\n" to the end of an input string in Main.hs,
16137 this is now done in the readers. This makes the libraries behave
16138 the way you'd expect from the pandoc program. Resolves Issue #10.
16140 * URLs and email addresses in autolinks are now typeset as Code.
16142 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
16143 doesn't display the whole output unless there's a line ending.
16145 * Major code cleanup in all modules, for greater consistency, concision,
16150 + Fixed several bugs (extractTagType, attribute parsing).
16151 + Remove Null blocks in lists of blocks when possible.
16152 + Allow HTML comments as raw HTML inline.
16156 + Ordered list items may no longer begin with uppercase letters, or
16157 letters greater than 'n'. (This prevents first initials and page
16158 reference, e.g. 'p. 400', from being parsed as beginning lists.)
16159 Also, numbers beginning list items may no longer end with ')',
16160 which is now allowed only after letters. Note: These changes
16161 may cause documents to be parsed differently. Users should take
16163 + Changed autoLink parsing to conform better to Markdown.pl's
16164 behavior. `<google.com>` is not treated as a link, but
16165 `<http://google.com>`, `<ftp://google.com>`, and
16166 `<mailto:google@google.com>` are.
16167 + Cleaned up handling of embedded quotes in link titles. Now these are
16168 stored as a '"' character, not as '"'.
16169 + Use lookAhead parser for the 'first pass' (looking for reference keys),
16170 instead of parsing normally, then using setInput to reset input. This
16171 yields a slight performance boost.
16172 + Fixed several bugs in smart quote recognition.
16173 + Fixed bug in indentSpaces (which didn't properly handle
16174 cases with mixed spaces and tabs).
16175 + Consolidated 'text', 'special', and 'inline' into 'inline'.
16176 + Fixed bug which allowed URL and title to be separated by multiple blank
16177 lines in links and reference keys. They can be on separate lines but
16178 can't have blank lines between them.
16179 + Correctly handle bracketed text inside inline footnotes and links,using
16180 new function inlinesInBalanced. Resolves Issue #14.
16181 + Fixed bug in footnotes: links in footnotes were not being
16182 processed. Solution: three-stage parse. First, get all the
16183 reference keys and add information to state. Next, get all the
16184 notes and add information to state. (Reference keys may be needed
16185 at this stage.) Finally, parse everything else.
16186 + Replaced named constants like 'emphStart' with literals.
16187 + Removed an extra occurrence of escapedChar in definition of inline.
16191 + Allow the URI in a RST hyperlink target to start on the line
16192 after the reference key.
16193 + Added 'try' in front of 'string', where needed, or used a different
16194 parser. This fixes a bug where ````` would not be correctly parsed as
16196 + Fixed slow performance in parsing inline literals in RST reader. The
16197 problem was that ``#`` was seen by 'inline' as a potential link or image.
16198 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
16200 + Use lookAhead instead of getInput/setInput in RST reader. Removed
16201 unneeded getState call, since lookAhead automatically saves and
16202 restores the parser state.
16203 + Allow hyperlink target URIs to be split over multiple lines, and
16204 to start on the line after the reference. Resolves Issue #7.
16205 + Fixed handling of autolinks.
16209 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
16211 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
16212 caret is \^{}, not \^ as before.
16213 + Added parsing for \url.
16214 + Parse \texttt{} as code, provided there's nothing fancy inside.
16218 + Modified HTML writer to use the Text.XHtml library. This results
16219 in cleaner, faster code, and it makes it easier to use Pandoc in
16220 other projects, like wikis, which use Text.XHtml. Two functions are
16221 now provided, writeHtml and writeHtmlString: the former outputs an
16222 Html structure, the latter a rendered string. The S5 writer is also
16223 changed, in parallel ways (writeS5, writeS5String).
16224 + The Html header is now written programmatically, so it has been
16225 removed from the 'headers' directory. The S5 header is still
16226 needed, but the doctype and some of the meta declarations have
16227 been removed, since they are written programmatically. This change
16228 introduces a new dependency on the xhtml package.
16229 + Fixed two bugs in email obfuscation involving improper escaping
16230 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
16232 + Fixed another bug in email obfuscation: If the text to be obfuscated
16233 contains an entity, this needs to be decoded before obfuscation.
16234 Thanks to thsutton for the patch. Resolves Issue #15.
16235 + Changed the way the backlink is displayed in HTML footnotes.
16236 Instead of appearing on a line by itself, it now generally
16237 appears on the last line of the note. (Exception: when the
16238 note does not end with a Plain or Para block.) This saves space
16240 + Added automatic unique identifiers to headers:
16241 - The identifier is derived from the header via a scheme
16242 documented in README.
16243 - WriterState now includes a list of header identifiers and a table
16244 of contents in addition to notes.
16245 - The function uniqueIdentifiers creates a list of unique identifiers
16246 from a list of inline lists (e.g. headers).
16247 - This list is part of WriterState and gets consumed by blockToHtml
16248 each time a header is encountered.
16249 + Include CSS for .strikethrough class in header only if strikethrough
16250 text appears in the document.
16251 + If the 'strict' option is specified, elements that do not appear in
16252 standard markdown (like definition lists) are passed through as
16254 + Simplified treatment of autolinks, using pattern matching instead of
16259 + Links in markdown output are now printed as inline links by default,
16260 rather than reference links. A --reference-links option has been added
16261 that forces links to be printed as reference links. Resolves Issue #4.
16262 + Use autolinks when possible. Instead of `[site.com](site.com)`,
16267 + Rewrote to use the State monad. The preamble now includes only those
16268 packages that are actually required, given the document's content.
16269 Thus, for example, if strikeout is not used, ulem is not required.
16270 Modified LaTeXHeader accordingly.
16271 + Modified LaTeX writer to insert '\,' between consecutive quotes.
16272 + Removed unused function tableRowColumnWidths.
16273 + Simplified code for escaping special characters.
16274 + Leave extra blank line after \maketitle.
16275 + Include empty '\author{}' when no author specified to avoid LaTeX
16277 + Include fancyvrb code in header only if needed -- that is, only
16278 if there is actually code in a footnote.
16279 + Use \url{} for autolinks.
16280 + Include [mathletters] option in ucs package, so that basic unicode
16281 Greek letters will work correctly.
16283 * RST writer: Force blank line before lists, so that sublists will
16284 be handled correctly.
16286 * Docbook writer: Fixed a bug: email links with text, like
16287 [foo](me@bar.baz), were being incorrectly treated as autolinks.
16289 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
16290 Text.Pandoc.Shared.
16292 * Text.Pandoc.Shared:
16294 + Added defaultWriterOptions.
16295 + Added writerTableOfContents to WriterOptions.
16296 + Added writerIgnoreNotes option to WriterOptions. This is needed
16297 for processing header blocks for a table of contents, since notes on
16298 headers should not appear in the TOC.
16299 + Added prettyprinting for native Table format.
16300 + Removed some unneeded imports.
16301 + Moved escape and nullBlock parsers from
16302 Text.ParserCombinators.Pandoc, since the latter is for
16303 general-purpose parsers that don't depend on Text.Pandoc.Definition.
16304 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
16305 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
16306 writer, because HTML writer now uses these in constructing a table
16308 + Added clauses for new inline elements (Strikeout, Superscript,
16309 Subscript) to refsMatch.
16310 + Removed backslashEscape; added new functions escapeStringUsing and
16312 + Moved failIfStrict from markdown reader, since it is now used also
16313 by the HTML reader.
16314 + Added a 'try' to the definition of indentSpaces.
16315 + In definition of 'reference', added check to make sure it's not a note
16317 + Added functions: camelCaseToHyphenated, toRomanNumeral,
16318 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
16319 charsInBalanced', withHorizDisplacement, romanNumeral
16320 + Fixed a bug in the anyLine parser. Previously it would parse an empty
16321 string "", but it should fail on an empty string, or we get an error
16322 when it is used inside "many" combinators.
16323 + Removed followedBy' parser, replacing it with the lookAhead parser from
16325 + Added some needed 'try's before multicharacter parsers, especially in
16327 + Removed the 'try' from the 'end' parser in 'enclosed', so that
16328 'enclosed' behaves like 'option', 'manyTill', etc.
16329 + Added lineClump parser, which parses a raw line block up to and
16330 including any following blank lines.
16331 + Renamed parseFromStr to parseFromString.
16332 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
16333 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
16335 + Removed unneeded 'try' in blanklines.
16336 + Removed endsWith function and rewrote calling functions to use
16337 isSuffixOf instead.
16338 + Added >>~ combinator.
16339 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
16342 * Refactored runtests.pl; added separate tests for tables.
16346 + Added -asxhtml flag to tidy in html2markdown. This will
16347 perhaps help the parser, which expects closing tags.
16348 + Modified markdown2pdf to run pdflatex a second time if --toc or
16349 --table-of-contents was specified; otherwise the table of
16350 contents won't appear.
16351 + Modified markdown2pdf to print a helpful message if the 'ulem'
16352 LaTeX package is required and not found.
16354 * Changes to build process:
16356 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
16358 + Removed cabalize and Pandoc.cabal.in. The repository now contains
16359 pandoc.cabal itself.
16360 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
16361 likes the cabal file to have the same name as the tarball.
16362 + Expanded and revised the package description in pandoc.cabal.
16363 Revised the package synopsis.
16364 + The tarball built by 'make tarball' now contains files built from
16365 templates (including man pages and shell scripts), so pandoc can
16366 be built directly using Cabal tools, without preprocessing.
16367 + Executable binaries are now stripped before installing.
16368 + Man pages are now generated from markdown sources, using pandoc's
16370 + Use HTML version of README (instead of RTF) in Mac OS X installer.
16371 + Instead of testing for the existence of a pandoc symlink in build-exec,
16376 + Updated README and man pages with information on new features.
16377 + Updated INSTALL instructions with some useful clarifications and
16379 + Updated web content.
16381 * Added FreeBSD port.
16387 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
16388 libghc6-xhtml-dev. Removed libghc6-html-dev.
16389 + Suggest texlive-latex-recommended | tetex-extra instead of
16390 tetex-bin. This brings in fancyvrb and unicode support.
16392 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
16394pandoc (0.3) unstable; urgency=low
16396 [ John MacFarlane ]
16398 * Changes in pandoc options:
16400 + Allow options to follow or precede arguments.
16401 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
16402 + Added '--strict' option.
16403 + Added '-o/--output' option.
16404 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
16405 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
16406 error conditions. This is helpful for writing wrappers.
16407 + Added copyright message to '-v' output, modeled after FSF messages.
16408 + Reformatted usage message so that it doesn't wrap illegibly.
16409 + Removed extra blanks after '-h' and '-D' output.
16411 * Added docbook writer.
16413 * Added implicit setting of default input and output format based
16414 on input and output filename extensions. These defaults are
16415 overridden if explicit input and output formats are specified using
16416 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
16419 * Allow ordered list items to begin with (single) letters, as well
16420 as numbers. The list item marker may now be terminated either by
16421 '.' or by ')'. This extension to standard markdown is documented
16424 * Revised footnote syntax. (See README for full details.) The
16425 '[^1]' format now standard in markdown extensions is supported,
16426 as are inline footnotes with this syntax: `^[My note.]`.
16427 The earlier footnote syntax `^(1)` is no longer supported.
16429 * Improved HTML representation of footnotes. All footnotes
16430 are now auto-numbered and appear in an ordered list at the
16431 end of the HTML document. Since the default appearance is now
16432 acceptable, the old footnote styles have been removed from the
16437 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
16438 These readers ran 'runParser' on processed chunks of text to handle
16439 embedded block lists in lists and quotation blocks. But then
16440 any changes made to the parser state in these chunks was lost,
16441 as the state is local to the parser. So, for example, footnotes
16442 didn't work in quotes or list items. The fix: instead of calling
16443 runParser on some raw text, use setInput to make it the input, then
16444 parse it, then use setInput to restore the input to what it was
16445 before. This is shorter and more elegant, and it fixes the problem.
16446 + Fixed bug in notFollowedBy' combinator (adding 'try' before
16447 'parser'). Adjusted code that uses this combinator accordingly.
16448 + Fixed bug in RTF writer that caused improper indentation on
16449 footnotes occurring in indented blocks like lists.
16450 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
16451 and date are parsed correctly. Everything else in the preamble
16453 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
16454 line to count as escaped whitespace.
16455 + Modified LaTeX reader to produce inline links rather than reference
16456 links. Otherwise, links in footnotes aren't handled properly.
16457 + Fixed handling of titles in links in Markdown reader, so that
16458 embedded quotation marks are now handled properly.
16459 + Fixed Markdown reader's handling of embedded brackets in links.
16460 + Fixed Markdown reader so that it only parses bracketed material
16461 as a reference link if there is actually a corresponding key.
16462 + Revised inline code parsing in Markdown reader to conform to
16463 markdown standard. Now any number of `s can begin inline code,
16464 which will end with the same number of `s. For example, to
16465 have two backticks as code, write ``` `` ```. Modified Markdown
16466 writer accordingly.
16467 + Fixed bug in text-wrapping routine in Markdown and RST writers.
16468 Now LineBreaks no longer cause wrapping problems.
16469 + Supported hexadecimal numerical entity references as well as
16471 + Fixed bug in Markdown reader's handling of underscores and other
16472 inline formatting markers inside reference labels: for example,
16473 in '[A_B]: /url/a_b', the material between underscores was being
16474 parsed as emphasized inlines.
16475 + Changed Markdown reader's handling of backslash escapes so that
16476 only non-alphanumeric characters can be escaped. Strict mode
16477 follows Markdown.pl in only allowing a select group of punctuation
16478 characters to be escaped.
16479 + Modified HTML reader to skip a newline following a `<br>` tag.
16480 Otherwise the newline will be treated as a space at the beginning
16483 * Made handling of code blocks more consistent. Previously, some
16484 readers allowed trailing newlines, while others stripped them.
16485 Now, all readers strip trailing newlines in code blocks. Writers
16486 insert a newline at the end of code blocks as needed.
16488 * Modified readers to make spacing at the end of output more consistent.
16490 * Minor improvements to LaTeX reader:
16492 + '\thanks' now treated like a footnote.
16493 + Simplified parsing of LaTeX command arguments and options.
16494 commandArgs now returns a list of arguments OR options (in
16495 whatever order they appear). The brackets are included, and
16496 a new stripFirstAndLast function is provided to strip them off
16497 when needed. This fixes a problem in dealing with \newcommand
16498 and \newenvironment.
16500 * Revised RTF writer:
16502 + Default font is now Helvetica.
16503 + An '\f0' is added to each '\pard', so that font resizing works
16506 * Moved handling of "smart typography" from the writers to the Markdown
16507 and LaTeX readers. This allows great simplification of the writers
16508 and more accurate smart quotes, dashes, and ellipses. DocBook can
16509 now use `<quote>`. The '--smart' option now toggles an option in
16510 the parser state rather than a writer option. Several new kinds
16511 of inline elements have been added: Quoted, Ellipses, Apostrophe,
16514 * Changes in HTML writer:
16516 + Include title block in header even when title is null.
16517 + Made javascript obfuscation of emails even more obfuscatory,
16518 by combining it with entity obfuscation.
16520 * Changed default ASCIIMathML text color to black.
16524 + Added --strip-trailing-cr option to diff in runtests.pl, for
16525 compatibility with Windows.
16526 + Added regression tests with footnotes in quote blocks and lists.
16528 * Makefile changes:
16530 + osx-pkg target creates a Mac OS X package (directory). New osx
16531 directory contains files needed for construction of the package.
16532 + osx-dmg target creates a compressed disk image containing the package.
16533 + win-pkg target creates Windows binary package.
16534 + tarball target creates distribution source tarball.
16535 + website target generates pandoc's website automatically, including
16536 demos. New 'web' directory contains files needed for construction
16537 of the website (which will be created as the 'pandoc' subdirectory
16539 + Makefile checks to see if we're running Windows/Cygwin; if so,
16540 a '.exe' extension is added to each executable in EXECS.
16542 * Removed all wrappers except markdown2pdf and html2markdown.
16544 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
16545 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
16546 option and disables other options.
16548 * Added code to html2markdown that tries to determine the character
16549 encoding of an HTML file, by parsing the "Content-type" meta tag.
16551 + If the encoding can't be determined, then if the content is local,
16552 the local encoding is used; if it comes from a URL, UTF-8 is used
16554 + If input is from STDIN, don't try to determine character encoding.
16555 + Encoding can be specified explicitly using '-e' option.
16557 * Improved warning messages in wrappers:
16559 + Print warning if iconv not available
16560 + More user-friendly error messages in markdown2pdf, when
16565 + Renamed 'Text/Pandoc/HtmlEntities' module to
16566 'Text/Pandoc/Entities'. Also changed function names so as
16567 not to be HTML-specific.
16568 + Refactored SGML string escaping functions from HTML and Docbook
16569 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
16570 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
16572 + Removed splitBySpace and replaced it with a general, polymorphic
16574 + Refactored LaTeX reader for clarity (added isArg function).
16575 + Converted some CR's to LF's in src/ui/default/print.css.
16576 + Added license text to top of source files.
16577 + Added module data for haddock to source files.
16578 + Reformatted code for consistency.
16580 * Rewrote documentation and man pages. Split README into INSTALL
16583 * Split LICENSE into COPYING and COPYRIGHT.
16585 * Removed TODO, since we now maintain ToDo on the wiki.
16587 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
16592 * Revamped build process to conform to debian standards and created
16593 a proper debian package. Closes: #391666.
16595 * Modified build process to support GHC 6.6.
16597 + The package can still be compiled using GHC 6.4.2, though because
16598 of dependencies the "make deb" target works only with GHC 6.6+.
16599 + The script 'cabalize' is used to create an appropriate
16600 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
16603 * Refactored template processing (fillTemplates.pl).
16605 * Modified wrapper scripts to make them more robust and portable.
16606 To avoid code duplication and ensure consistency, wrappers are
16607 generated via a templating system from templates in src/wrappers.
16609 + Wrappers now accept multiple filenames, when appropriate.
16610 + Spaces and tabs allowed in filenames.
16611 + getopts shell builtin is used for portable option parsing.
16612 + Improved html2markdown's web grabber code, making it more robust,
16613 configurable and verbose. Added '-e', '-g' options.
16615 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
16617pandoc (0.2) unstable; urgency=low
16619 * Fixed unicode/utf-8 translation
16621 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
16623pandoc (0.1) unstable; urgency=low
16625 * Initial creation of debian package
16627 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
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