git.iko.soy/typeable/pandoc
on 2.7.1 help sign in
typeable/pandoc/changelog
16704 lines 717 kB history raw
1pandoc (2.7.1)
3 * Add tectonic as an option for --pdf-engine (#5345, Cormac Relf).
4 Runs tectonic on STDIN instead of a temporary .tex file, so that it
5 looks in the working directory for `\include` and `\input` like the rest
6 of the engines. Allows overriding the output directory
7 args with `--pdf-engine-opt=--outdir --pdf-engine-opt="$DIR"`.
9 * Allow `-o/--output` to be used with `--print-default-data-file`,
10 `--print-highlighting-style`, `--print-default-template`.
11 Note that `-o` must occur BEFORE the `--print*` command on the command
12 line (this is documented, #5357).
14 * LaTeX reader:
16 + Support `\underline`, `\ul`, `\uline` (#5359, Paul
17 Tilley). These are parsed as a Span with class `underline`, as
18 with other readers.
19 + Ensure that `\Footcite` and `\Footcites` get put in a note.
21 * ipynb reader:
23 + Remove sensitivity to `raw_html`, `raw_tex` extensions.
24 We now include every output format. Pruning is handled by
25 `--ipynb-output`.
26 + Better handling of cell metadata. We now include even complex cell
27 metadata in the Div's attributes (as JSON, in complex cases, or
28 as plain strings in simple cases).
30 * ipynb writer:
32 + Recurse into native divs for output cell data (#5354).
33 + Render cell metadata fields from div attributes.
35 * Docx writer: avoid extra copy of abstractNum and num elements
36 in numbering.xml. This caused pandoc-produced docx files to
37 be uneditable using Word Online (#5358).
39 * Markdown writer: improve handling of raw blocks/inline.
40 We now emit raw content using `raw_attribute` when no more
41 direct method is available. Use of `raw_attribute` can be
42 forced by disabling `raw_html` and `raw_tex`.
44 * LaTeX writer: Add classes for frontmatter support (#5353, Andrew Dunning)
45 and remove frontmatter from `scrreprt`.
47 * LaTeX template:
49 + Improve readability (#5363, Andrew Dunning).
50 + Robust section numbering removal (#5351, Andrew Dunning).
51 Ensures that section numbering does not reappear with custom
52 section levels. See <https://tex.stackexchange.com/questions/473653/>.
53 + Better handling of front/main/backmatter (#5348).
54 In pandoc 2.7 we assumed that every class with chapters would accept
55 `\frontmatter`, `\mainmatter`, and `\backmatter`. This is not so (e.g.
56 report does not). So pandoc 2.7 breaks on report class by including an
57 unsupported command. Instead of the `book-class` variable, we use two
58 variables, `has-chapters` and `has-frontmatter`, and set these
59 intelligently in the writer.
61 * Text.Pandoc.Shared: Improve `filterIpynbOutput`. Ensure that
62 images are prioritized over text. `best` should include everything
63 for ipynb.
65 * Tests.Old: specify `--data-dir=../data` to ensure tests can find
66 data files even if they haven't been installed. Remove old
67 `pandoc_datadir` environment variable, which hasn't done anything for a
68 long time.
70 * MANUAL.txt: Add recommendation to use `raw_attribute` with ipynb (#5354).
72 * Use cmark-gfm-hs 0.1.8 (note that 0.1.7 is buggy).
74 * Use latest pandoc-citeproc, texmath.
77pandoc (2.7)
79 * Use XDG data directory for user data directory (#3582). Instead of
80 `$HOME/.pandoc`, the default user data directory is now
81 `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
82 `$HOME/.local/share` but can be overridden by setting the
83 environment variable. If this directory is missing, then
84 `$HOME/.pandoc` is searched instead, for backwards compatibility.
85 However, we recommend moving local pandoc data files from
86 `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the
87 default user data directory remains the same.
89 * Slide show formats behavior change: content under headers
90 less than slide level is no longer ignored, but included in
91 the title slide (for HTML slide shows) or in a slide after
92 the title slide (for beamer). This change makes possible
93 2D reveal.js slideshows with content in the top slide on
94 each stack (#4317, #5237).
96 * Add command line option `--ipynb-output=all|none|best` (#5339).
97 Output cells in ipynb notebooks often contain several different
98 versions of an output, with different MIME types, e.g. an HTML
99 table and a plain-text fallback. Specifying `--ipynb-output=best`
100 (the default) ensures that the best version for the output format
101 is used. `all` includes all versions, and `none` suppresses them
102 all, leaving output cells empty.
104 * `asciidoctor` is now an output format separate from `asciidoc`,
105 to accommodate some minor implementation-specific differences
106 (currently just in the treatment of display math).
108 * Add `latexmk` as an option for `--pdf-engine` (#3195).
109 Note that you can use `--pdf-engine-opt=-outdir=bar` to specify
110 a persistent temp directory.
112 * Markdown reader:
114 + Improve tight/loose list handling (#5285). Previously the
115 algorithm allowed list items with a mix of Para and Plain, which
116 is never wanted.
117 + Add newline when parsing blocks in YAML (#5271). Otherwise last
118 block gets parsed as a Plain rather than a Para. This is a
119 regression in pandoc 2.x. This patch restores pandoc 1.19
120 behavior.
121 + Make `yamlToMeta` respect extensions (#5272, Mauro Bieg).
122 This adds a `ReaderOptions` parameter to `yamlToMeta` [API change].
123 + Fix bug parsing fenced code blocks (#5304). Previously parsing
124 would break if the code block contained a string of backticks of
125 sufficient length followed by something other than end of line.
127 * LaTeX reader: don't let `\egroup` match `{`. `braced` now actually
128 requires nested braces. Otherwise some legitimate command and
129 environment definitions can break.
131 * Docx reader (Jesse Rosenthal):
133 + Rename `getDocumentPath` as `getDocumentXmlPath`.
134 + Use field notation for setting `ReaderEnv`.
135 + Figure out `document.xml` path once at the beginning of parsing, and
136 add it to the environment, so we can avoid repeated lookups.
137 + Dynamically determine main document xml path (#5277).
138 The desktop Word program places the main document file in
139 `word/document.xml`, but the online word places it in
140 `word/document2.xml`. This file path is actually stated in the root
141 `_rels/.rels` file, in the `Relationship` element with an
142 `http://../officedocument` type.
143 + Fix paths in archive to prevent Windows failure (#5277).
144 Some paths in archives are absolute (have an opening slash) which, for
145 reasons unknown, produces a failure in the test suite on MS
146 Windows. This fixes that by removing the leading slash if it exists.
147 + Add comments to aid code readability.
148 + Trim space inside the last inline (#5273).
149 + Unwrap sdt elements in footnotes and comments (#5302).
151 * Muse reader (Alexander Krotov):
153 + Test that block level markup does not break `<verbatim>`.
154 + Add secondary note support.
156 * ipynb reader: handle images referring to attachments. Previously
157 we didn't strip off the attachment: prefix, so even though the
158 attachment was available in the mediabag, pandoc couldn't find it.
160 * JATS reader:
162 + Fix parsing of figures (#5321). This ensures that a figure
163 containing a single image is parsed as a pandoc "implicit
164 figure" (i.e., a Para with a single Image whose title attribute
165 begins with `fig:`). More complex figures will still be parsed
166 as divs.
167 + Support `fig-group` block element (#5317).
168 + Handle citations with multiple references (#5310). The `rid`
169 attribute can have a space-separated list of ids.
171 * AsciiDoc Writer: Add `writeAsciiDoctor` [API change, Tarik Graba].
172 Handle display math appropriately for Asciidoctor.
174 * JATS writer: wrap figure caption in `<p>` to fix validation (#5290,
175 Mauro Bieg).
177 * HTML writer:
179 + Implement WAI-ARIA roles for (end)notes, citations, and
180 bibliography (#4213). Note that doc-biblioref is only used when
181 link-citations produces links, since it belongs on links.
182 + Include content (including speaker notes) in title slides
183 (#4317, #5237).
185 * ipynb writer:
187 + Ensure final newline.
188 + Only include metadata under `jupyter` field.
189 + Don't create attachments for images with absolute URIs,
190 including data: URIs (#5303).
191 + Keep plain text fallbacks in output even if a richer format is
192 included (#5293). We don't know what output format will be needed.
193 See the `--ipynb-output` command line option for a way to control
194 what formats are included in the output.
196 * Markdown writer: use `markdown="1"` when appropriate for Divs:
197 when `native_divs` and `markdown_in_html_blocks` are disabled
198 but `raw_html` and `markdown_attribute` are enabled.
200 * LaTeX writer:
202 + Use right fold for `escapeString`. This is more elegant than
203 the explicit recursive code we were using.
204 + Avoid `{}` after control sequences when escaping.
205 `\ldots{}.` doesn't behave as well as `\ldots.` with the latex
206 ellipsis package. This patch causes pandoc to avoid emitting
207 the `{}` when it is not necessary. Now `\ldots` and other
208 control sequences used in escaping will be followed by either
209 a `{}`, a space, or nothing, depending on context.
210 + For beamer, include contents under headers superordinate to
211 slidelevel (#4317). Currently we keep the fancy title slide, and
212 add a new slide with the same title and whatever content was
213 under the header.
215 * Powerpoint writer (Jesse Rosenthal): support underlines.
216 Use span with single class "underline" as in docx writer.
218 * Muse writer: escape secondary notes (Alexander Krotov).
220 * FB2 writer: add section identifiers support (#5229, John KetzerX).
222 * Make `--fail-if-warnings` work for PDF output (#5343).
224 * Lua filters (Albert Krewinkel):
226 + Load module `pandoc` before calling `init.lua` (#5287). The file
227 `init.lua` in pandoc's data directory is run as part of pandoc's
228 Lua initialization process. Previously, the `pandoc` module was
229 loaded in `init.lua`, and the structure for marshaling was
230 set up after. This allowed simple patching of element
231 marshaling, but made using `init.lua` more difficult. Now, all
232 required modules are now loaded before calling `init.lua`. The
233 file can be used entirely for user customization. Patching
234 marshaling functions, while discouraged, is still possible via
235 the `debug` module.
236 + All Lua modules bundled with pandoc, i.e., `pandoc.List`,
237 `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the
238 `pandoc` module. They are assigned to the fields `List`, `mediabag`,
239 `utils`, and `text`, respectively.
241 * Text.Pandoc.Lua (Albert Krewinkel):
243 + Split `StackInstances` into smaller Marshaling modules.
244 + Get `CommonState` from Lua global. This allows more control over
245 the common state from within Lua scripts.
247 * LaTeX template:
249 + Support the `subject` metadata variable (#5289, Pascal Wagler).
250 + Add `\frontmatter`, `\mainmatter`, `\backmatter`
251 for book classes (#5306).
253 * epub3 template: Add titlepage class to section (#5269).
255 * HTML5 template: Add ARIA role `doc-toc` for table of contents (#4213).
257 * Make `--metadata-file` use selected extensions (#5279, #5272, Mauro Bieg).
259 * Text.Pandoc.Shared:
261 + Remove `withTempDir` [API change].
262 + Add new exported function `defaultUserDataDirs` [API change].
263 + Add `filterIpynbOutput` [API change].
264 + `compactify`: Avoid lists with a mix of Plain and Para elements
265 (#5285).
267 * Text.Pandoc.Translations: reorder alphabetically and remove `Author`
268 (#5334, Mauro Bieg).
270 * Text.Pandoc.Extensions:
272 + More carefully groom ipynb default extensions.
273 + Add `all_symbols_escapable` to `githubMarkdownExtensions`.
275 * Text.Pandoc.PDF:
277 + Use system temp directory when possible (#1192). Previously we
278 created temp dirs in the working directory, partly (a) because
279 there were problems using the system temp directory on Windows,
280 when their pathnames included tildes, and partly (b) because
281 programs like `epstopdf.pl` would not be allowed to write to
282 directories outside the working directory in restricted mode. We
283 now (a) use the system temp dir except when the path includes
284 tildes, and (b) set `TEXMFOUTPUT` when creating the PDF, so that
285 subsidiary programs can use the system temp directory. This
286 addresses problems that occurred when pandoc was used in a
287 synced directory (such as Dropbox).
288 + Change types of subsidiary functions to PandocIO, to allow
289 warnings to be threaded through (#5343).
291 * Text.Pandoc.MIME: add WebP (#5267, Mauro Bieg).
293 * Tests: avoid calling `findPandoc` multiple times.
295 * Old tests: remove need for temp files by using `pipeProcess`.
297 * Added simple ipynb reader/writer tests (#5274).
299 * Rearrange `--help` output in a more rational way, with common
300 options at the beginning and options grouped by function (#5336).
302 * trypandoc: Add JATS and other missing formats (Arfon Smith, #5291).
304 * Add missing copyright notices and remove license boilerplate (#4592,
305 Albert Krewinkel).
307 * Use latest basement/foundation on 32bit windows.
309 * Use latest skylighting (#5328). Custom syntax definitions no
310 longer try to load `language.dtd`.
312 * Require texmath 0.11.2.1
314 * Use latest pandoc-citeproc (0.16.1.1).
316 * MANUAL.txt:
318 + Clarify variable substitution indentation in templates (#5338,
319 Agustín Martín Barbero).
320 + Reorder custom-styles section (#5324, Mauro Bieg).
322pandoc (2.6)
324 * Support ipynb (Jupyter notebook) as input and output format.
326 + Add `ipynb` as input and output format (extension `.ipynb`).
327 + Added Text.Pandoc.Readers.Ipynb [API change].
328 + Added Text.Pandoc.Writers.Ipynb [API change].
329 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
330 [API change].
331 + Depend on ipynb library.
332 + Note: there is no template for ipynb.
334 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
335 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
336 as an input format.
338 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
339 extension. Task lists are supported from markdown and gfm input.
340 They should work, to some degree, in all output formats, though in
341 most formats you'll get a bullet list with a unicode character for
342 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
343 box is used as the list marker. API changes:
345 + Added constructor `Ext_task_lists` to `Extension`.
346 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
347 Text.Pandoc.Shared.
349 * Allow some command line options to take URL in addition to FILE.
350 `--include-in-header`, `--include-before-body`, `--include-after-body`.
352 * HTML reader:
354 + Handle empty `start` attribute (see #5162).
355 + Treat `textarea` as a verbatim environment (#5241) and preserve
356 spacing.
358 * RST reader:
360 + Change treatment of `number-lines` directive (Brian Leung,
361 #5207). Directives of this type without numeric inputs should
362 not have a `startFrom` attribute; with a blank value, the
363 writers can produce extra whitespace.
364 + Removed superfluous `sourceCode` class on code blocks (#5047).
365 + Handle `sourcecode` directive as synonynm for `code` (#5204).
367 * Markdown reader:
369 + Remove `sourceCode` class for literate Haskell code blocks
370 (#5047). Reverse order of `literate` and `haskell` classes on
371 code blocks when parsing literate Haskell, so `haskell` is
372 first.
373 + Treat `<textarea>` as a verbatim environment (#5241).
375 * Org reader:
377 + Handle `minlevel` option differently (#5190, Brian Leung).
378 When `minlevel` exceeds the original minimum level observed in
379 the file to be included, every heading should be shifted
380 rightward.
381 + Allow for case of `:minlevel == 0` (#5190).
382 + Fix treatment of links to images (#5191, Albert Krewinkel).
383 Links with descriptions which are pointing to images are no
384 longer parsed as inline images, but as links.
385 + Add support for #+SELECT_TAGS (Brian Leung).
386 + Separate filtering logic from conversion function (Brian Leung).
388 * TWiki reader: Fix performance issue with underscores (#3921).
390 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
391 We may not still be exactly matching mediawiki's algorithm.
393 * LaTeX reader:
395 + Remove `sourceCode` class for literate Haskell code blocks
396 (#5047). Reverse order of `literate` and `haskell` classes on
397 code blocks when parsing literate Haskell, so `haskell` is
398 first.
399 + Support `\DeclareMathOperator` (#5149).
400 + Support `\inputminted` (#5103).
401 + Support `\endinput` (#5233).
402 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
403 was interpreted as a file extension, leading pandoc not to add
404 `.tex` (and thus not to find the file). The new behavior matches
405 tex more closely.
407 * Man reader:
409 + Use `mapLeft` from Shared instead of defining own.
411 * Docx reader (Jesse Rosenthal):
413 + Handle level overrides (#5134).
415 * Docx writer:
417 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
418 Also supports additional core properties: `subject`, `lang`,
419 `category`, `description`.
420 + Make Level into a real type, instead of an alias for a tuple
421 (Jesse Rosenthal).
423 * ICML writer (Mauro Bieg):
425 + Support custom-styles (#5137, see #2106).
426 + Support unnumbered headers (#5140).
428 * Texinfo writer: Use header identifier for anchor if present (#4731).
429 Previously we were overwriting an existing identifier with a new one.
431 * Org writer: Preserve line-numbering for example and code blocks
432 (Brian Leung).
434 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
435 in HTML and PDF as a unicode minus sign.
437 * Ms writer: Ensure we have a newline after .EN in disply math (#5251).
439 * RST writer: Don't wrap simple table header lines (#5128).
441 * Asciidoc writer: Shorter delimiters for tables, blockquotes
442 (#4364). This matches asciidoctor reference docs.
444 * Dokuwiki writer: Remove automatic `:` prefix before internal image
445 links (#5183, Damien Clochard). This prevented users from making
446 relative image links.
448 * Zimwiki writer: remove automatic colon prefix before internal
449 images (#5183, Damien Clochard).
451 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
452 (#5105). Captions used to have the word 'caption' prepended; this
453 has been removed. Also, 'thumb' is used instead of 'frame' to
454 allow images to be resized.
456 * reveal.js writer:
458 + Ensure that we don't get > 2 levels of section nesting,
459 even with slide level > 2 (#5168).
460 + If slide level == N but there is no N-level header, make
461 sure the next header with level > N gets treated as a slide
462 and put in a section, rather than remaining loose (#5168).
464 * Markdown writer:
466 + Make `plain` RawBlocks pass through in `plain` output.
467 + Include needed whitespace after HTML figure (#5121).
468 We use HTML for a figure in markdown dialects that can't
469 represent it natively.
471 * Commonmark writer:
473 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
474 + Implement `--toc` (`writerTableOfContents`)
475 in commonmark/gfm writers (#5172).
477 * EPUB writer:
479 + Ensure that picture transforms are done on metadata too.
480 + Small fixes to `nav.xhtml`:
481 Add 'landmarks' id attribute to the landmarks nav.
482 Replace old default CSS removing numbers from ol.toc li
483 with new rules that match `nav#toc ol, nav#landmarks ol`.
484 We keep the `toc` class on `ol` for backwards compatibility.
486 * LaTeX writer:
488 + Make raw content marked `beamer` pass through in `beamer`
489 output (pandoc/lua-filters#40).
490 + Beamer: avoid duplicated `fragile` property in some cases
491 (#5208).
492 + Add `#` special characters for listings (#4939).
493 This character needs special handling in `\lstinline`.
495 * RTF writer: use `toTableOfContents` from Shared to replace
496 old duplicated code.
498 * Pptx writer:
500 + Support custom properties. Also supports additional core
501 properties: `subject`, `category`, `description` (#5252,
502 Agustín Martín Barbero).
503 + Use `toTableOfContents` from Shared to replace old duplicated code.
505 * ODT writer (Augustín Martín Barbero):
507 + Fix typo in custom properties (#2839).
508 + Improve standard properties, including the following core
509 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
510 `keywords`, `initial-creator` (from authors), `creation-date`
511 (actual creation date) (#5252).
513 * Custom writers:
515 + Allow '-' in filenames for custom lua writers (#5187).
516 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
517 + sample.lua: Add a missing `>` (MichaWiedenmann).
519 * reveal.js template: Add `zoomKey` config (#4249).
521 * HTML5 template: Remove unnecessary type="text/css" on style and
522 link for HTML5 (#5146).
524 * LaTeX template (Andrew Dunning, except where noted):
526 + Prevent fontspec from scaling `mainfont` to match the default
527 font, Latin Modern. A main font set to 12pt could
528 previously appear between 11pt to 13pt depending on its design.
529 To return to the earlier rendering, use `-V
530 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
531 + Display monospaced fonts without TeX ligatures when using
532 `--pdf-engine=lualatex`. It now matches the behaviour of other
533 engines (#5212, #5218).
534 + Remove the deprecated `romanfont` variable. The functionality of
535 `mainfont` is identical (#5218).
536 + Render `\subtitle` with the standard document classes.
537 Previously, `subtitle` only appeared when using the KOMA-Script
538 classes or Beamer (#5213, #5244).
539 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
540 several language selection problems, notably with retaining
541 French spacing conventions when switching to a verbatim
542 environment or another language; and in printing Greek text
543 without hyphenation (#5193).
544 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
545 available, improving the appearance of URLs by allowing them to
546 break at additional points (#5193).
547 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
548 to correct heading levels in PDF bookmarks: see the [KOMA-Script
549 3.26 release notes](https://komascript.de/release3.26) (#5193).
550 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
551 avoid a possible error when using additional packages alongside
552 footnotes in tables (#5193, closes #4861).
553 + Remove obsolete `fixltx2e` package, which has no functionality
554 with TeX Live 2015 or later (#5193).
555 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
556 + Restrict `institute` variable to Beamer (#5219).
557 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
558 package if available to make footnotes in tables compatible
559 with `hyperref` (#5234).
560 + Number parts and chapters in book classes only if the
561 `numbersections` variable is set, for consistency with other
562 output formats. To return to the previous behaviour, use
563 `-V numbersections -V secnumdepth=0` (#5235).
564 + Reindent file (#5193).
565 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
566 + Set default listings language for lua, assembler (#5227, John
567 MacFarlane). Otherwise we get an error when trying to compile code
568 with lua or assembler code. To change the default dialect
569 (currenty 5.3 for lua and x86masm for assembler), you can use
570 `--include-in-header` to inject something like
571 `\lstset{defaultdialect=[5.2]Lua}`.
573 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
574 in an instance of PandocMonad, like the other readers and
575 writers. [API change]
577 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
578 in an instance of PandocMonad, like the other readers and
579 writers. [API change]
581 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
582 for `PandocError`. [API change]
584 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
585 This is refactored out from the Markdown writer.
586 It can be used in other writers to create a table of contents.
588 * Improve error messages for UTF-8 decoding errors. Now we give
589 the filename and byte offset (#4765).
591 * Text.Pandoc.XML: Strip out illegal XML characters in
592 `escapeXMLString` (#5119).
594 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
595 The implementation of `pipeProcess` was rewritten to fix sporadic
596 failures caused by prematurely closed pipes.
598 * Use `safeRead` instead of `read` everywhere in the code
599 (John MacFarlane, Mauro Bieg, #5162, #5180).
601 * Text.Pandoc.SelfContained: Decompress `.svgz` when
602 converting to `data:` URI (#5163, Alexander Krotov).
604 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
605 (#5175, Alexander Krotov). [API change]
607 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
608 When pandoc is compiled with ghc 8.6, Windows paths are treated
609 differently, and paths beginning `\\server` no longer work.
610 This commit rewrites such patsh to `\\?\UNC\server` which works.
611 The change operates at the level of argument parsing, so it
612 only affects the command line program.
614 * Simplify/fix reading of `--metadata` values on command line
615 to avoid problems relating to hvr/HsYAML#7 (#5177).
617 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
618 Krewinkel). Incorrect types to pandoc element constructors are
619 automatically converted to the correct types when possible. This was
620 already done for most constructors, but conversions are now also done
621 for nested types (like lists of lists).
623 * Removed custom Setup.hs, use build-type: simple. The only thing we
624 gained from the custom build was automatic installation of the man
625 page when using 'cabal install'. But custom builds cause problems,
626 e.g., with cross-compilation. Installation of the man page is
627 better handled by packagers. Note to packagers (e.g. Debian): it
628 may be necessary to add a step installing the man page with the
629 next release.
631 * Allow latest http-client, tasty, zip-archive, Glob.
633 * Require skylighting >= 0.7.5, adding support for sml, J,
634 typescript.
636 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
637 works well with cabal v2.
639 * INSTALL.md:
641 + Use button for installer links (John MacFarlane, Mauro Bieg,
642 #5167).
643 + Fix links and bump required stack version (max).
644 + Improve installation notes on associated software (Andrew
645 Dunning). Includes explanation of how to install related tools
646 with package managers (since the method of installing
647 `rsvg-convert` is not obvious).
649 * doc/org.md: improve documentation of org features (Albert
650 Krewinkel).
652 * doc/lua-filters.md: use 3rd level headers for module fields.
654 * MANUAL:
656 + Clarify automatic identifiers (#5201). We remove
657 non-alphanumerics. This includes, e.g., emojis.
658 + Fix example for Div with id (Geoffrey Ely).
659 + Update list of LaTeX packages used.
660 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
661 + Mention `raw_attribute` in documentation for `raw_html` and
662 `raw_tex` (#5240, thanks to @eiro).
663 + Clarify that `$sep$` must come right before `$endfor$` in templates
664 (#5243, Lev Givon).
665 + Document metadata support for docx, odt, pptx writers (Agustín
666 Martín Barbero).
667 + Reorganize template variables (#5249, Andrew Dunning).
668 Add additional headings to categorize variables, and
669 alphabetize when there is large number; add more examples.
670 + Document `date-meta` template variable (#5260, Tristan Stenner).
672 * trypandoc: Fix CSS and viewport.
674pandoc (2.5)
676 * Text.Pandoc.App: split into several unexported submodules (Albert
677 Krewinkel): Text.Pandoc.App.FormatHeuristics,
678 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
679 Text.Pandoc.App.OutputSettings. This is motivated partly by the
680 desire to reduce recompilations when something is modified,
681 since App previously depended on virtually every other module.
683 * Text.Pandoc.Extensions
685 + Semantically, `gfm_auto_identifiers` is now a modifier of
686 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
687 be turned on, and then the type of identifier produced depends on
688 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
689 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
690 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
691 GitHub doesn't seem to strip non-ascii characters any more.
693 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
695 + Test AST object equality via Haskell (#5092). Equality of Lua
696 objects representing pandoc AST elements is tested by unmarshalling
697 the objects and comparing the result in Haskell.
698 A new function `equals` which performs this test has been added to the
699 `pandoc.utils` module.
700 + Improve stringify. Meta value strings (MetaString)
701 and booleans (MetaBool) are now converted to the literal string and the
702 lowercase boolean name, respectively. Previously, all values of these
703 types were converted to the empty string.
705 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
706 already exists (Alexander Krotov).
708 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
709 or beginning of line (#5050).
711 * Text.Pandoc.Readers.Markdown
713 + Fix parsing of citations, quotes, and underline emphasis
714 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
715 and underline emphasis were no longer recognized after certain
716 symbols, like parentheses (#5099, #5053).
717 + In pandoc 2.4, a soft break after an abbreviation would be
718 relocated before it to allow for insertion of a nonbreaking
719 space after the abbreviation. This behavior is here reverted.
720 A soft break after an abbreviation will remain, and no nonbreaking
721 space will be added. Those who care about this issue should take care not
722 to end lines with an abbreviation, or to insert nonbreaking spaces
723 manually.
725 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
726 `<body>` (Alexander Krotov). Some libraries include custom elements
727 in their FB2 files.
729 * Text.Pandoc.Readers.HTML
731 + Allow `tfoot` before body rows (#5079).
732 + Parse `<small>` as a Span with class "small" (#5080).
733 + Allow thead containing a row with `td` rather than `th` (#5014).
735 * Text.Pandoc.Readers.LaTeX
737 + Cleaned up handling of dimension arguments. Allow decimal points,
738 preceding space.
739 + Don't allow arguments for verbatim, etc.
740 + Allow space before bracketed options.
741 + Allow optional arguments after `\\` in tables.
742 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
743 but know that these font changing commands take no arguments.
745 * Text.Pandoc.Readers.Muse
747 + Trim whitespace before parsing grid table cells (Alexander Krotov).
748 + Add grid tables support (Alexander Krotov).
750 * Text.Pandoc.Shared
752 + For bibliography match Div with id `refs`, not class `references`.
753 This was a mismatch between pandoc's docx, epub, latex, and markdown
754 writers and the behavior of pandoc-citeproc, which actually looks for a
755 div with id `refs` rather than one with class `references`.
756 + Exactly match GitHub's identifier generating algorithm (#5057).
757 + Add parameter for `Extensions` to `uniqueIdent` and
758 `inlineListToIdentifier` (#5057). [API change]
759 This allows these functions to be sensitive to the settings of
760 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
761 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
762 also means that `gfm_auto_identifiers` can now be used in all formats.
764 * Text.Pandoc.Writers.AsciiDoc
766 + Use `.`+ as list markers to support nested ordered lists (#5087).
767 + Support list number styles (#5089).
768 + Render Spans using `[#id .class]#contents#` (#5080).
770 * Text.Pandoc.Writers.CommonMark
772 + Respect `--ascii` (#5043, quasicomputational).
773 + Make sure `--ascii` affects quotes, super/subscript.
775 * Text.Pandoc.Writers.Docx
777 + Fix bookmarks to headers with long titles (#5091).
778 Word has a 40 character limit for bookmark names. In addition, bookmarks
779 must begin with a letter. Since pandoc's auto-generated identifiers may
780 not respect these constraints, some internal links did not work. With
781 this change, pandoc uses a bookmark name based on the SHA1 hash of the
782 identifier when the identifier isn't a legal bookmark name.
783 + Add bookmarks to code blocks (Nikolay Yakimov).
784 + Add bookmarks to images (Nikolay Yakimov).
785 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
787 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
788 Nodes of the form
790 <meta name="calibre:series" content="Classics on War and Politics"/>
792 are now included from an epub XML metadata file. You can also include
793 this information in your YAML metadata, like so:
795 calibre:
796 series: Classics on War and Policitics
798 In addition, ibooks-specific metadata can now be included via an XML
799 file. (Previously, it could only be included via YAML metadata, see
800 #2693.)
802 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `&quot;` outside of
803 attributes.
805 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
806 This avoids splitting up the output unnecessarily into separate elements.
808 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
809 if `writerIncremental` is True (#5072).
811 * Text.Pandoc.Writers.Muse (Alexander Krotov).
813 + Output tables as grid tables if they have multi-line cells.
814 + Indent simple tables only on the top level.
815 + Output tables with one column as grid tables.
816 + Add support for `--reference-location`.
817 + Internal improvements.
819 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
820 #5095). This was a regression in pandoc 2.4.
822 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
824 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
826 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
827 when there are several choices for a particular character.
829 * data/abbreviations
831 + Add additional abbreviations (Andrew Dunning)
832 Many of these borrowed from the Chicago Manual of Style 10.42,
833 'Scholarly abbreviations'.
835 * Templates
837 + Asciidoc template: add :lang: to title header is lang is set in
838 metadata (#5088).
840 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
841 Disabling the flag will cause derivation of ToJSON and FromJSON
842 instances via GHC Generics instead of Template Haskell. The flag is
843 enabled by default, as deriving via Generics can be slow (see #4083).
845 * trypandoc:
847 + Tweaked drop-down lists.
848 + Put link to site in footer.
849 + Preselect output format.
850 + Update on change of in or out format.
851 + Add man input format.
853 * MANUAL.txt:
855 + Fix outdated description of latex_macros extension.
856 + Clarified placement of bibliography.
857 + Added "A note on security."
858 + Fix note on curly brace syntx for locators.
859 + Document new explicit syntax for citeproc locators.
860 + Remove confusing cross-links for some extensions.
861 + Don't put pandoc in code ticks in heading.
862 + Document that `--ascii` works for gfm and commonmark too.
863 + Add `man` to `--from` options.
865 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
868pandoc (2.4)
870 [new features]
872 * New input format `man` (Yan Pashkovsky, John MacFarlane).
874 [behavior changes]
876 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
877 via the new `writerPreferAscii` field in `WriterOptions`.
878 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
879 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
880 Previously the to-ascii translation was done in Text.Pandoc.App,
881 and thus not available to those using the writer functions
882 directly.
884 * `--ascii` now works with Markdown output. HTML5 character reference
885 entities are used.
887 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
888 guaranteed, but the writer will use commands like `\"{a}` and `\l`
889 whenever possible, to avoid emiting a non-ASCII character.
891 * For HTML5 output, `--ascii` now uses HTML5 character reference
892 entities rather than numerical entities.
894 * Improved detection of format based on extension (in Text.Pandoc.App).
895 We now ensure that if someone tries to convert a file for a
896 format that has a pandoc writer but not a reader, it won't just
897 default to markdown.
899 * Add viz. to abbreviations file (#5007, Nick Fleisher).
901 * AsciiDoc writer: always use single-line section headers,
902 instead of the old underline style (#5038). Previously the single-line
903 style would be used if `--atx-headers` was specified, but
904 now it is always used.
906 * RST writer: Use simple tables when possible (#4750).
908 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
909 quasicomputational). Previously, the writer would unconditionally
910 emit HTML output for subscripts, superscripts, strikeouts (if the
911 strikeout extension is disabled) and small caps, even with
912 `raw_html` disabled. Now there are plain-text (and, where
913 possible, fancy Unicode) fallbacks for all of these corresponding
914 (mostly) to the Markdown fallbacks, and the HTML output is only
915 used when `raw_html` is enabled.
917 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
918 This allows raw openxml blocks and inlines to be used in the pptx
919 writer. Caveats: (1) It's up to the user to write
920 well-formed openxml. The chances for corruption, especially with
921 such a brittle format as pptx, is high. (2) Because of
922 the tricky way that blocks map onto shapes, if you are using
923 a raw block, it should be the only block on a slide
924 (otherwise other text might end up overlapping it). (3) The
925 pptx ooxml namespace abbreviations are different from the
926 docx ooxml namespaces. Again, it's up to the user to get it
927 right. Unzipped document and ooxml specification should be
928 consulted.
930 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
931 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
932 we tell katex to convert the contents of span elements with
933 class "math". Since math has already been identified, this
934 avoids wasted time parsing for LaTeX delimiters. Note, however,
935 that this may yield unexpected results if you have span elements
936 with class "math" that don't contain LaTeX math.
937 Also, use latest version of KaTeX by default (0.9.0).
939 * The man writer now produces ASCII-only output, using groff escapes,
940 for portability.
942 * ODT writer:
944 + Add title, author and date to metadata; any remaining
945 metadata fields are added as `meta:user-defined` tags.
946 + Implement table caption numbering (#4949, Nils Carlson).
947 Captioned tables are numbered and labeled with format "Table 1:
948 caption", where "Table" is replaced by a translation, depending
949 on the value of `lang` in metadata. Uncaptioned tables are not
950 enumerated.
951 + OpenDocument writer: Implement figure numbering in captions (#4944,
952 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
953 The format in the caption is "Figure 1: caption" and so on
954 (where "Figure" is replaced by a translation, depending on the
955 value of `lang` in the metadata). Captioned figures are numbered
956 consecutively and uncaptioned figures are not enumerated. This
957 is necessary in order for LibreOffice to generate an
958 Illustration Index (Table of Figures) for included figures.
960 * RST reader: Pass through fields in unknown directives as div attributes
961 (#4715). Support `class` and `name` attributes for all directives.
963 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
964 Brian Leung). Headers with the corresponding tags should not
965 appear in the output.
967 * Log warnings about missing title attributes now include a
968 suggestion about how to fix the problem (#4909).
970 * Lua filter changes (Albert Krewinkel):
972 + Report traceback when an error occurs. A proper Lua traceback is
973 added if either loading of a file or execution of a filter
974 function fails. This should be of help to authors of Lua filters
975 who need to debug their code.
977 + Allow access to pandoc state (#5015). Lua filters and custom
978 writers now have read-only access to most fields of pandoc's
979 internal state via the global variable `PANDOC_STATE`.
981 + Push ListAttributes via constructor (Albert Krewinkel).
982 This ensures that ListAttributes, as present in OrderedList elements,
983 have additional accessors (viz. `start`, `style`, and `delimiter`).
985 + Rename ReaderOptions fields, use snake_case. Snake case is used
986 in most variable names, using camelCase for these fields was an
987 oversight. A metatable is added to ensure that the old field
988 names remain functional.
990 + Iterate over AST element fields when using `pairs`. This makes
991 it possible to iterate over all ield names of an AST element by
992 using a generic `for` loop with pairs`:
994 for field_name, field_content in pairs(element) do
995 ...
996 end
998 Raw table fields of AST elements should be considered an
999 implementation detail and might change in the future. Accessing
1000 element properties should always happen through the fields
1001 listed in the Lua filter docs.
1003 Note that the iterator currently excludes the `t`/`tag` field.
1005 + Ensure that MetaList elements behave like Lists. Methods usable
1006 on Lists can also be used on MetaList objects.
1008 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
1009 object to the constructor `pandoc.MetaList` now returns the
1010 passed list as a MetaList. This is consistent with the
1011 constructor behavior when passed an (untagged) list.
1013 * Custom writers: Custom writers have access to the global variable
1014 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
1015 a userdata wrapper around the full pandoc AST and exposes two
1016 fields, `meta` and `blocks`. The field content is only
1017 marshaled on-demand, performance of scripts not accessing the
1018 fields remains unaffected.
1020 [API changes]
1022 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
1024 * Text.Pandoc.Shared:
1026 + Export `splitSentences`. This was previously duplicated in the Man and
1027 Ms writers.
1028 + Add `ToString` typeclass (Alexander Krotov).
1030 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
1032 * Text.Pandoc.Parsing
1034 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
1035 + Generalize `readWithM` from `[Char]` to any `Char` Stream
1036 that is a `ToString` instance (Alexander Krotov).
1038 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
1040 * Text.Pandoc.XML: add `toHtml5Entities`.
1042 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
1043 MacFarlane).
1045 * Text.Pandoc.Writers.Shared
1047 + Add exported functions `toSuperscript` and
1048 `toSubscript` (quasicomputational, #4528).
1049 + Remove exported functions `metaValueToInlines`,
1050 `metaValueToString`. Add new exported functions
1051 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
1052 `lookupMetaString`. Use these whenever possible for uniformity
1053 in writers (Mauro Bieg, #4907). (Note that
1054 removed function `metaValueToInlines` was in previous
1055 released versions.)
1056 + Add `metaValueToString`.
1058 * Text.Pandoc.Lua
1060 + Expose more useful internals (Albert Krewinkel):
1062 - `runFilterFile` to run a Lua filter from file;
1063 - data type `Global` and its constructors; and
1064 - `setGlobals` to add globals to a Lua environment.
1066 This module also contains `Pushable` and `Peekable` instances
1067 required to get pandoc's data types to and from Lua. Low-level
1068 Lua operation remain hidden in Text.Pandoc.Lua.
1070 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
1072 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
1073 `apply` (Albert Krewinkel).
1075 [bug fixes and under-the-hood improvements]
1077 * Text.Pandoc.Parsing
1079 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
1080 + Rewrite `uri` without `withRaw` (Alexander Krotov).
1081 + Generalize `parseFromString` and `parseFromString'` to any
1082 streams with Char token (Alexander Krotov)
1083 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
1085 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
1086 (Alexander Krotov).
1088 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
1089 (Alexander Krotov).
1091 * Text.Pandoc.App
1093 + Work around HXT limitation for --syntax-definition with windows
1094 drive (#4836).
1095 + Always preserve tabs for man format. We need it for tables.
1096 + Split command line parsing code into a separate unexported
1097 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
1099 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
1100 roff documents.
1102 * New unexported module Text.Pandoc.RoffChar, provided character
1103 escape tables for roff formats.
1105 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
1106 accept processing instructions (#3123, regression since 2.0).
1108 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
1109 account for empty lists (Alexander Krotov).
1111 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
1112 headerless table (#4382).
1114 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
1115 blocks (Brian Leung).
1117 * Text.Pandoc.Readers.Vimwiki:
1119 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
1120 (Alexander Krotov).
1121 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
1123 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
1124 `[Char]` (Alexander Krotov).
1126 * Text.Pandoc.Readers.LaTeX
1128 + Allow space at end of math after `\` (#5010).
1129 + Add support for `nolinkurl` command (#4992, Brian Leung).
1130 + Simplified type on `doMacros'`.
1131 + Tokenize before pulling tokens, rather than after (#4408). This
1132 has some performance penalty but is more reliable.
1133 + Make macroDef polymorphic and allow in inline context.
1134 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
1135 I have actually seen tex like this in the wild.
1136 + Improved parsing of `\def`, `\let`. We now correctly parse:
1137 ```
1138 \def\bar{hello}
1139 \let\fooi\bar
1140 \def\fooii{\bar}
1141 \fooi +\fooii
1143 \def\bar{goodbye}
1144 \fooi +\fooii
1145 ```
1146 + Improve parsing of `\def` argspec.
1147 + Skip `\PackageError` commands (see #4408).
1148 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
1149 so no raw tex should result unless we explicitly say `+raw_tex`.
1150 Previously some raw commands did make it through.
1151 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
1152 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
1153 Text.Pandoc.Readers.LaTeX.Lang (unexported).
1154 + Simplified accent code using unicode-transforms.
1155 New dependency on unicode-transforms package for normalization.
1156 + Allow verbatim blocks ending with blank lines (#4624).
1157 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
1158 This collects some of the general-purpose code from the LaTeX reader,
1159 with the aim of making the module smaller.
1161 * Text.Pandoc.Readers.Markdown
1163 + Fix awkward soft break movements before abbreviations (#4635).
1164 + Add updateStrPos in a couple places where needed.
1166 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
1167 (#4947). These are variants for "complex scripts" like Arabic
1168 and are now treated just like b, i (bold, italic).
1170 * Text.Pandoc.Readers.Muse (Alexander Krotov)
1172 + Try to parse lists before trying to parse table.
1173 This ensures that tables inside lists are parsed correctly.
1174 + Forbid whitespace after opening and before closing markup
1175 elements.
1176 + Parse page breaks.
1177 + Simplify `museToPandocTable` to get rid of partial functions.
1178 + Allow footnotes to start with empty line.
1179 + Make sure that the whole text is parsed.
1180 + Allow empty headers. Previously empty headers caused parser to
1181 terminate without parsing the rest of the document.
1182 + Allow examples to be indented with tabs.
1183 + Remove indentation from examples indicated by `{{{` and `}}}`.
1184 + Fix parsing of empty cells.
1185 + Various changes to internals.
1186 + Rewrite some parsers in applicative style.
1187 + Avoid tagsoup dependency.
1188 + Allow table caption to contain `+`.
1190 * Text.Pandoc.Writers.LaTeX
1192 + Add newline if math ends in a comment (#4880). This prevents the
1193 closing delimiter from being swalled up in the comment.
1194 + With `--listings`, don't pass through org-babel attributes (#4889).
1195 + With `--biblatex`, use `\autocite` when possible (#4960).
1196 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
1197 we don't have prefixes and suffixes, we use instead
1198 `\autocite{a1,a2,a3}`.
1199 + Fix description lists contining highlighted code (#4662).
1201 * Text.Pandoc.Writers.Man
1203 + Don't wrap `.SH` and `.SS` lines (#5019).
1204 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
1205 one paragraph definitions.
1206 + Moved common groff functions to Text.Pandoc.Writers.Groff.
1207 * Fix strong/code combination on man (should be `\f[CB]` not
1208 `\f[BC]`, see #4973).
1209 + Man writer: use `\f[R]` instead of `\f[]` to reset font
1210 (Alexander Krotov, #4973).
1211 + Move `splitSentences` to Text.Pandoc.Shared.
1213 * Text.Pandoc.Writers.Docx
1215 + Add framework for custom properties (#3034). So far, we don't
1216 actually write any custom properties, but we have the
1217 infrastructure to add this.
1219 + Handle tables in table cells (#4953). Although this is not
1220 documented in the spec, some versions of Word require a `w:p`
1221 element inside every table cell. Thus, we add one when the
1222 contents of a cell do not already include one (e.g. when a table
1223 cell contains a table).
1225 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
1226 Adjust header levels so that n+1 level headers are only
1227 found under n level headers, and the top level is 1.
1229 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
1230 alignment (#4385). This change eliminates the large gap we used
1231 to have between bullet and text, and also ensures that numbers
1232 in numbered lists will be right-aligned.
1234 * Text.Pandoc.Writers.ZimWiki
1236 + Number ordered list items sequentially, rather than always
1237 with 1 (#4962).
1238 + Remove extra indentation on lists (#4963).
1240 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
1241 `stylesheet` (Mauro Bieg, #4990).
1243 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
1244 normal content (#4629). Otherwise a raw block can prevent a
1245 paragraph from being recognized as such.
1247 * Text.Pandoc.Writers.Ms
1249 + Removed old `escapeBar`. We don't need this now that we use
1250 `@` for math delim.
1251 + Moved common code to Text.Pandoc.Writers.Roff and to
1252 Text.Pandoc.RoffChar.
1253 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
1254 with the man writer).
1256 * Text.Pandoc.Writers.Muse (Alexander Krotov).
1258 + Add support for grid tables.
1259 + Fix Muse writer style.
1260 + Use `length` instead of `realLength` to calculate definition
1261 indentation. Muse parsers don't take character width into
1262 account when calculating indentation.
1263 + Do not insert newline before lists.
1264 + Use lightweight markup after `</em>` tag.
1266 * New unexported module Text.Pandoc.Writers.Roff, providing functions
1267 useful for all roff format writers (man, ms).
1269 * Text.Pandoc.Lua
1271 + Move globals handling to separate module Text.Pandoc.Lua.Global
1272 (Albert Krewinkel).
1274 + Lua filter internals: push Shared.Element as userdata (Albert
1275 Krewinkel). Hierarchical Elements were pushed to Lua as plain
1276 tables. This is simple, but has the disadvantage that marshaling
1277 is eager: all child elements will be marshaled as part of the
1278 object. Using a Lua userdata object instead allows lazy access
1279 to fields, causing content marshaling just (but also each time)
1280 when a field is accessed. Filters which do not traverse the full
1281 element contents tree become faster as a result.
1283 [default template changes]
1285 * LaTeX template:
1287 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
1288 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
1290 * AsciiDoc template: use single-line style for title.
1292 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
1293 Yoan Blanc).
1295 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
1296 (Albert Krewinkel).
1298 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
1300 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
1301 (Albert Krewinkel).
1303 [documentation improvements]
1305 * INSTALL.md
1307 + Add chromeos install instructions (#4958) (Evan Pratten).
1308 + Add note about TinyTeX.
1310 * MANUAL.txt
1312 + Change `groff` -> `roff`.
1313 + Implement `--ascii` for Markdown writer.
1314 + Clarify LaTeX image dimensions output (Mauro Bieg).
1316 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
1318 * doc/getting-started.md: Added title to test1.md to avoid warning.
1320 * doc/lua-filters.md: merge type references into main document,
1321 fix description of Code.text (Albert Krewinkel).
1323 [build infrastructure improvements]
1325 * Makefile
1327 + Makefile: added quick-cabal, full-cabal targets.
1328 + Make .msi download targets insensitive to order of appveyor builds.
1330 * Update benchmarks for ghc 8.6.1.
1332 * pandoc.cabal:
1334 + Enable more compiler warnings (Albert Krewinkel).
1335 + Make base lower bound 4.8.
1336 + Bump upper bound for QuickCheck.
1337 + Bump upper bound for binary.
1338 + Updated version bounds for containers and haddock-library (#4974).
1339 + Added docx/docPropos/custom.xml to cabal data-files.
1340 + Require skylighting 0.7.4 (#4920).
1341 + New dependency on unicode-transforms package for normalization.
1343 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
1345 * Added `tools/changelog-helper.sh`.
1347 * Added test/grofftest.sh for testing the man reader on real man pages.
1349pandoc (2.3.1)
1351 * RST reader:
1353 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
1354 This eliminates a regression introduced after pandoc 2.1.1, which
1355 caused inline constructions containing newlines not to be recognized.
1356 + Fix bug with internal link targets (#4919). They were gobbling up
1357 indented content underneath.
1359 * Markdown reader: distinguish autolinks in the AST. With this change,
1360 autolinks are parsed as Links with the `uri` class. (The same is true
1361 for bare links, if the `autolink_bare_uris` extension is enabled.)
1362 Email autolinks are parsed as Links with the `email` class. This
1363 allows the distinction to be represented in the AST.
1365 * Org reader:
1367 + Force inline code blocks to honor export options (Brian Leung).
1368 + Parse empty argument array in inline src blocks (Brian Leung).
1370 * Muse reader (Alexander Krotov):
1372 + Added additional tests.
1373 + Do not allow code markup to be followed by digit.
1374 + Remove heading level limit.
1375 + Simplify `<literal>` tag parsers
1376 + Parse Text instead of String. Benchmark shows 7% improvement.
1377 + Get rid of HTML parser dependency.
1378 + Various code improvements.
1380 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
1381 We do this in the LaTeX writer, and it avoids problems.
1382 Note that `/` works as a LaTeX path separator on Windows.
1384 * LaTeX writer:
1386 + Add support for multiprenote and multipostnote arguments
1387 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
1388 the first prefix of a multicite, and the multipostnotes follow the
1389 last suffix.
1390 + Fix a use of `last` that might take empty list. If you ran with
1391 `--biblatex` and have an empty document (metadata but no blocks),
1392 pandoc would previously raise an error because of the use of
1393 `last` on an empty list.
1395 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
1396 MonadFail instance (Jonas Scholl).
1398 * ODT Writer: Improve table header row style handling (Nils Carlson).
1399 This changes the way styles for cells in the header row
1400 and normal rows are handled in ODT tables.
1401 Previously a new (but identical) style was generated for
1402 every table, specifying the style of the cells within the table.
1403 After this change there are two style definitions for table cells,
1404 one for the cells in the header row, one for all other cells.
1405 This doesn't change the actual styles, but makes post-processing
1406 changes to the table styles much simpler as it is no longer
1407 necessary to introduce new styles for header rows and there are
1408 now only two styles where there was previously one per table.
1410 * HTML writer:
1412 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
1413 class was added to autolinks by the HTML writer, but it had to
1414 guess what was an autolink and could not distinguish
1415 `[http://example.com](http://example.com)` from
1416 `<http://example.com>`. It also incorrectly recognized
1417 `[pandoc](pandoc)` as an autolink. Now the HTML writer
1418 simply passes through the `uri` attribute if it is present,
1419 but does not add anything.
1420 + Avoid adding extra section nestings for revealjs.
1421 Previously revealjs title slides at level (slidelevel - 1)
1422 were nested under an extra section element, even when
1423 the section contained no additional (vertical) content.
1424 That caused problems for some transition effects.
1425 + Omit unknown attributes in EPUB2 output. For example,
1426 `epub:type` attributes should not be passed through,
1427 or the epub produced will not validate.
1429 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
1430 The JATS spec does not allow these.
1432 * Textile writer: don't represent `uri` class explicitly
1433 for autolinks (#4913).
1435 * Lua filters (Albert Krewinkel):
1437 + Cleanup filter execution code.
1438 + Better error on test failure.
1440 * HTML, Muse reader tests: reduce time taken by round-trip test.
1442 * Added cabal.project.
1444 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
1446 * Use hslua v1.0.0 (Albert Krewinkel).
1448 * Fix `translations/ru` to use modern Russian orthography
1449 (Ivan Trubach).
1451 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
1452 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
1454pandoc (2.3)
1456 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
1457 users to specify metadata in a YAML file, regardless of the
1458 input format (#1960).
1460 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
1462 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
1463 Mauro Bieg).
1465 * Text.Pandoc.Readers.LaTeX.Types:
1467 + New type `ArgSpec` (API change).
1468 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
1469 `Int` (API change).
1471 * Markdown reader:
1473 + Use `tex` instead of `latex` for raw tex-ish content. We can't
1474 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
1475 use `tex` always. Note that if `context` or `latex` specifically
1476 is desired, you can still force that in a markdown document by
1477 using the raw attribute. Note that this change may affect some
1478 filters, if they assume that raw tex parsed by the Markdown reader
1479 will be RawBlock (Format `latex`). In most cases it should be
1480 trivial to modify the filters to accept `tex` as well.
1481 + Refactor and reorganize YAML code (Mauro Bieg).
1482 + Make `example_lists` work for interrupted lists
1483 without `startnum` (#4908).
1485 * HTML reader:
1487 + Parse `<script type="math/tex` tags as math (#4877).
1488 These are used by MathJax in some configurations.
1489 + Extract spaces inside links instead of trimming them
1490 (Alexander Krotov, #4845).
1491 + Added round-trip tests (Alexander Krotov).
1492 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
1493 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
1494 (which is helpful for translation HTML documents using MathJaX).
1496 * Org reader (Albert Krewinkel):
1498 + Respect export option `p` for planning info. Inclusion of planning info
1499 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
1500 `p` export option: setting the option to `t` will add all planning
1501 information in a *Plain* block below the respective headline.
1502 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
1503 ghc extensions.
1504 + Strip planning info from output. Planning info is parsed, but not
1505 included in the output (as is the default with Emacs Org-mode, #4867).
1507 * LaTeX reader:
1509 + Split some general-purpose definitions into a separate, unexported
1510 module, Text.Pandoc.Readers.LaTeX.Parsing. This is to avoid
1511 out-of-memory errors compiling the LaTeX reader.
1512 + Handle parameter patterns for `\def` (#4768, #4771).
1513 For example: `\def\foo#1[#2]{#1 and #2}`.
1514 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
1515 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
1516 argument as the content.
1517 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
1518 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
1519 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
1520 will be parsed as a regular Quoted inline (not using the quotes
1521 appropriate to the foreign language).
1522 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
1523 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
1524 `\textcircled`. Also fall back to combining characters when composed
1525 characters are not available.
1526 + Resolve `\ref` for figure numbers.
1527 + Support `mintinline` (#4365, Marc Schreiber).
1528 + Fix siunitx unit commands so they are only recognized in
1529 siunitx contexts (#4842). For example, `\l` outside of an
1530 siunitx context should be l-slash, not l (for liter).
1531 + Fix double `unnumbered` class (#4838). The `unnumbered` class
1532 was being included twice for starred sections.
1534 * RST reader: Don't skip link definitions after comments (#4860).
1536 * Muse reader (Alexander Krotov):
1538 + Close the `</quote>` in indented tag test.
1539 There is already a separate test for unclosed `</quote>`.
1540 + Autonumber sections in the correct order. Parsing now stops
1541 at each section header to ensure the header is registered before
1542 parsing of the next section starts.
1543 + Move duplicate code into `headingStart` function.
1544 + Allow newline after opening `*` or `**`.
1545 + Don't allow digits after closing marker in lightweight markup
1546 This change makes reader more compatible with Emacs Muse.
1547 + Parse `<verse>` tag in one pass instead of using
1548 `parseFromString`. This change makes it possible to have
1549 verbatim `</verse>` tag inside verse.
1551 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
1552 (#4336). This allows pandoc to parse ODT document produced by KDE's
1553 Calligra.
1555 * Muse writer (Alexander Krotov):
1557 + Output headers without asterisks if not on the top level.
1558 + Never wrap definition list terms.
1559 + Set `envInsideBlock = True` when rendering notes.
1560 + Use `""` instead of `[]` for empty String.
1561 + Check for whitespace in the beginning and end of Str's.
1562 + Escape `-`, `;` and `>` in the beginning of strings.
1563 + Escape list markers in the beginning of notes.
1564 + Normalize inline list before testing if tags should be used.
1565 + Use tags instead of lightweight markup for empty strings.
1566 + Use lightweight markup when possible.
1567 + Escape empty strings. This guarantees that `conditionalEscapeString`
1568 never returns empty string.
1569 + Wrap conditionalEscapeString result into `Muse` type.
1570 This removes the need to pass `envInsideLinkDescription` to it.
1571 + Separate `shouldEscapeString` function.
1572 + Simplify inline list rendering.
1573 + Replace newlines in strings with spaces.
1575 * Docx writer:
1577 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
1578 + Properly handle display math in spans (#4826). This isn't a
1579 complete solution, since other nestings of display math may still
1580 cause problems, but it should work for what is by far the most
1581 common case.
1583 * HTML writer:
1585 + Always output `<dt>` element, even if it is empty (#4883,
1586 Alexander Krotov).
1587 + Don't prefix `epub:` attributes with `data-`.
1589 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
1590 recognize these escapes.
1592 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
1593 Image scaling was broken when a width was set to a percentage.
1595 * EPUB writer: set `epub:type` on body element in each chapter,
1596 depending on the `epub:type` of the first section (#4823). This
1597 only affects epub3. See
1598 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
1600 * FB2 writer: put `coverpage` element between title and date rather than in
1601 `document-info` element (#4854).
1603 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
1605 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
1606 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
1607 tex is now used. Previously we'd "fake it with unicode" and fall
1608 back to tex when that didn't work. But newer haddock versions
1609 support latex math.
1611 * TEI writer:
1613 + Ensure that title element is always present, even if empty (#4839).
1614 + Put author tags in the template, rather than adding them in
1615 the writer (#4839).
1617 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
1618 `linkcolor` only affects internal links, and `urlcolor` only
1619 affects linked URLs. For external links, the option to use is
1620 `filecolor`.
1622 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
1624 * RST writer:
1626 + Use `.. raw:: latex` for `tex` content.
1627 + Use `.. container` for generic Divs, instead of raw HTML.
1628 + Render Divs with admonition classes as admonitions (#4833).
1629 Also omit Div with class `admonition-title`. These are generated
1630 by the RST reader and should be omitted on round-trip.
1632 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
1633 (#4855, Antonio Terceiro).
1635 * HTML5 template: add the `title-block-header` identifier to the
1636 `header` element, to make it easier to style precisely (#4767,
1637 J. B. Rainsberger).
1639 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
1640 José de Mattos Neto).
1642 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
1643 (#4853, Wandmalfarbe).
1645 * TEI template: improve `publicationStmt`. Add support for
1646 `publisher`, `address`, `pubPlace`, and `date` variables.
1648 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
1650 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
1652 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
1654 * MANUAL.txt:
1656 + Clarify that `--biblatex/--natbib` don't work directly for PDF
1657 (#4904).
1658 + Document `epub:type` attribute (Mauro Bieg, #4901)
1659 + Clarify when `--resource-path` has an effect.
1660 + More detail on customization in syntax highlighting section.
1661 + Document encoding issue with `--listings` (#4871, Damien Clochard).
1662 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
1663 + Use https for context wiki links (#4910).
1665 * CONTRIBUTING.md:
1667 + Link to lua-filters repository (#4874).
1668 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
1670 * lua-filters.md: add links to filters, and to lua-filters repository
1671 (#4874).
1673 * INSTALL.md:
1675 + Indicate that cabal >= 2.0 is needed.
1676 + Added chocolatey installation method (#4844, Miodrag Milić).
1678 * Travis: exclude round-trip tests, except for nightly test which can fail.
1680 * Use latest texmath, pandoc-citeproc.
1682 * Use a patched version of foundation until
1683 https://github.com/haskell-foundation/foundation/pull/503
1684 is fixed.
1686 * Clean up appveyor build and Windows package creation.
1687 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
1688 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
1690 * Remove obsolete RELEASE-CHECKLIST.md.
1692 * Added additional compiler warnings in Makefile and CI builds.
1694pandoc (2.2.3.2)
1696 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
1697 This fixes a regression in 2.2.3, which cause boolean values to
1698 be parsed as MetaInlines instead of MetaBool.
1700 We here record another undocumented (but desirable) change in 2.2.3:
1701 numerical metadata fields are now parsed as MetaInlines rather than
1702 MetaString.
1704pandoc (2.2.3.1)
1706 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
1707 (#4817). This fixes a regression in 2.2.3 which caused embedded
1708 mappings (e.g. mappings in sequences) not to work in YAML metadata.
1710pandoc (2.2.3)
1712 * RST reader: improve parsing of inline interpreted text roles (#4811).
1714 + Use a Span with class "title-reference" for the default
1715 title-reference role.
1716 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
1717 and `Str`s for `title-reference`.
1718 + Use Code with class "interpreted-text" instead of Span and Str for
1719 unknown roles. (The RST writer has also been modified to round-trip
1720 this properly.)
1721 + Disallow blank lines in interpreted text.
1722 + Backslash-escape now works in interpreted text.
1723 + Backticks followed by alphanumerics no longer end interpreted text.
1724 + Remove support for nested inlines (Francesco Occhipinti).
1725 RST does not allow nested emphasis, links, or other inline
1726 constructs. This fixes several bugs (#4581, #4561, #4792).
1728 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
1729 Krewinkel). Emphasis was not parsed when it followed directly after
1730 some block types (e.g., lists).
1732 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
1733 keys. Previously in 2.2.2 you could not do
1734 ```
1735 ---
1736 0: bar
1737 ...
1738 ```
1739 but only
1740 ```
1741 ---
1742 '0': bar
1743 ...
1744 ```
1745 With this change, both forms work.
1747 * DocBook reader: metadata handling improvements.
1748 Now we properly parse title and subtitle elements that are direct
1749 children of book and article (as well as children of bookinfo,
1750 articleinfo, or info). We also now use the `subtitle` metadata
1751 field for subtitles, rather than tacking the subtitle on to the
1752 title.
1754 * RST writer:
1756 + Allow images to be directly nested within links (#4810, Francesco
1757 Occhipinti).
1758 + Use `titleblock` instead of `title` variable for title block (#4803,
1759 Francesco Occhipinti). `titleblock` contains a properly formatted
1760 title and subtitle (using top-level headers). `title` and
1761 `subtitle` variables are still available and just contain the
1762 title and subtitle text. Note that this change will require an
1763 update to custom rst templates.
1764 + Render Code with class "interpreted-text" as interpreted text role.
1766 * MediaWiki writer: Avoid extra blank line in tables with empty cells
1767 (#4794). Note that the old output is semantically identical, but the
1768 new output looks better.
1770 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
1771 Krewinkel). Exposes a function converting which flattenes a list of
1772 blocks into a list of inlines. An example use case would be the
1773 conversion of Note elements into other inlines.
1775 * RST template: use `titleblock` instead of `title`. Users of
1776 custom RST templates will want to update this.
1778 * LaTeX template: Moved some beamer code in default.latex template.
1779 This change allows beamer themes to change the template and font (as
1780 Metropolis does) (#4450).
1782 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
1784 * Added test case for #4669 to repository.
1786 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
1788 * MANUAL.txt:
1790 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
1791 + Clarify when `csquotes` is used in LaTeX writer (#4514).
1792 + Add `commonmark` to list of output formats where `raw_tex` has an
1793 effect (see #4527).
1796pandoc (2.2.2.1)
1798 * Fix regression finding templates in user data directory (#4777).
1799 Under version 2.2.1 and prior pandoc found latex templates in the
1800 templates directory under the data directory, but this broke in 2.2.2.
1802 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
1803 `rawLaTeXInline` (#4781). (This primarily affects the markdown
1804 reader, and other readers that accept raw tex.)
1805 Starting in 2.2.2, everything after an `\input` (or `\include`)
1806 in a markdown file would be parsed as raw LaTeX.
1808 * MANUAL:
1810 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
1811 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
1812 Unlike `tags`, `keywords` is used in some of the writers
1813 and default templates.
1815 * Add missing `rollingLinks` option to revealjs template (#4778,
1816 Igor Khorlo).
1818pandoc (2.2.2)
1820 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
1821 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
1823 Note: HsYAML implements YAML 1.2, in which the valid true
1824 values are `true`, `True`, `TRUE`. This means a change in
1825 the semantics of YAML metadata that could affect users:
1826 `y`, `yes`, and `on` no longer count as true values.
1828 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
1829 Bieg).
1831 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
1832 Anders Waldenborg). Non-ascii characters were not stripped from
1833 identifiers even if the `ascii_identifiers` extension was
1834 enabled (which is is by default for gfm).
1836 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
1837 Remove trailing Space from list items. Parse lists that have no space
1838 after marker.
1840 * LaTeX reader:
1842 + Treat `lilypond` as a verbatim environment (#4725).
1843 + Parse figure label into Image id (#4700, Mauro Bieg).
1844 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
1845 + Allow spaces around `\graphicspath` arguments (#4698).
1846 + Handle includes without surrounding blanklines (#4553).
1847 In addition, `\input` can now be used in an inline context,
1848 e.g. to provide part of a paragraph, as it can in LaTeX.
1849 + In `rawLaTeXBlock`, handle macros that resolve to a
1850 `\begin` or `\end` (#4667).
1851 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
1852 Note that this only affected LaTeX in markdown.
1853 + Tighten up reading of beamer overlay specifications (#4669).
1854 Ideally we'd turn these on only when reading beamer, but currently
1855 beamer is not distinguished from latex as an input format.
1856 This commit also activates parsing of overlay specifications
1857 after commands in general (e.g. `\item`), since they can occur
1858 in many contexts in beamer.
1859 + Parse more siunitx unit commands (#4296, #4773).
1860 + Be more forgiving in key/value option parsing (#4761).
1862 * Markdown reader:
1864 + Allow empty code spans, e.g. `` ` ` ``.
1865 + Emojis are now wrapped in Spans with class `emoji` and
1866 attribute `data-emoji` (Anders Waldenborg, #4743).
1867 This allows the writer to handle them in a special way
1868 (e.g. using a special font, or just rendering the
1869 emoji name).
1871 * Muse reader (Alexander Krotov, except where indicated):
1873 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
1874 + Add support for floating images.
1875 + Add support for images with specified width.
1876 + Parse image URLs without "guard" and "takeExtension".
1877 + Split link and image parsing into separate functions.
1878 + Parse links starting with "URL:" explicitly instead of trying to strip
1879 "URL:" prefix after parsing.
1881 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
1882 Alexander Krotov).
1884 * Markdown writer: Preserve `implicit_figures` with attributes, even if
1885 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
1887 * Markdown and commonmark/github writers now respect the `emoji`
1888 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
1889 `:smile:` as `:smile:` rather than converting it to a smile
1890 character.
1892 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
1894 * ODT/OpenDocument writer: Make internal links work (#4358).
1895 This adds proper bookmarks to the headers with non-null IDs.
1897 * EPUB writer: Properly escape pagetitle. Previously we weren't
1898 escaping `&` and other XML characters in the pagetitle, so a title
1899 containing a `&` would be invalid.
1901 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
1902 Mauro Bieg).
1904 * RST writer:
1906 + Don't treat 'example' as a syntax name (#4748).
1907 This fixes conversions from org with example blocks.
1908 + Support `--number-sections` via the `section-numbering`
1909 directive in standalone output.
1911 * reveal.js writer and template: reuse mathjax URL
1912 provided by the argument to `--mathjax` or the normal pandoc default,
1913 rather than a hard-coded one in the template (#4701).
1915 * LaTeX writer:
1917 + Properly handle footnotes in table captions (#4683).
1918 Refactored code from figure captions to use in both places.
1919 + In beamer output, fix single digit column percentage (#4690, Mauro
1920 Bieg).
1922 * FB2 writer (Alexander Krotov):
1924 + Convert Plain to Para in annotation (#2424).
1925 + Fix order of items in title-info (#2424).
1927 * Custom writer: fix error message on script failure (Albert Krewinkel).
1928 Error messages produced by Lua were not displayed by Pandoc.
1930 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
1931 inline containing the emoji character and some attributes with metadata
1932 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
1933 Anders Waldenborg, #4743).
1935 * Text.Pandoc.PDF:
1937 + Revert fix for #4484 (only compress images on last run, #4755).
1938 This will mean some increase in the time it takes to
1939 produce an image-heavy PDF with xelatex, but it will
1940 make tables of contents correct, which is more important.
1941 + Fix logic error in `runTeXProgram`. We were running the tex program
1942 one more time than requested. This should speed up PDF production.
1944 * Allow `--template` to take a URL as argument.
1946 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
1947 highlighting style (#4687, Adrian Sieber, API change).
1949 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
1950 installer the recommended method, and note that on some older versions of
1951 macOS, homebrew installs from source and takes a lot of disk space
1952 (#4664, Ian).
1954 * MANUAL:
1956 + Clarify EPUB linked media (#4756, Mauro Bieg)
1957 + Update manual for "true" YAML values. Now that we're using HsYAML and
1958 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
1959 `y`, `yes`, `on` no longer count as true values.
1960 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
1961 + Update manual on how math is rendered in LaTeX.
1962 + Add proxy description (#4131, Mauro Bieg).
1963 + Clarify that `--toc` requires `--standalone` (#4703).
1964 + Update citation styles link (#4699, wiefling).
1966 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
1967 (kaizshang91). Note that it will not take effect when readers/writers
1968 are called as libraries (#4674).
1970 * Improved translations/fr (#4766, lux-lth).
1972 * Removed inadvertently added `.orig` files from repository (#4648).
1974 * Remove `network-uri` flag and use 'Network.Socket'.
1975 This removes a compiler warning. There is no need for the old
1976 `network-uri` flag, since network 2.6 was released in 2014.
1978 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
1980 * Bump upper bounds for dependent packages.
1982 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
1983 confused because of the way ghc 7.10 is excluded in foundation's
1984 cabal file. This can be removed when haskell-foundation/foundation#500
1985 is fixed.
1987 * Require cabal-version >= 2.0. This is needed for haddock-library.
1990pandoc (2.2.1)
1992 * Restored and undeprecated gladtex for HTML math (#4607).
1994 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
1995 [API change, reverts removal in v2.2]
1996 + Restored and undeprecated `--gladtex` option, removed in v2.2.
1998 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
2000 * Org reader: Fix image filename recognition (Albert Krewinkel).
2001 Use a function from the filepath library to check whether a string is a
2002 valid file name. The custom validity checker that was used before gave
2003 wrong results (e.g. for absolute file paths on Windows,
2004 kawabata/ox-pandoc#52).
2006 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
2008 * HTML writer:
2010 + Strip links from headers when creating TOC (#4340).
2011 Otherwise the TOC entries will not link to the sections.
2012 + Fix regression with tex math environments in HTML + MathJax (#4639).
2014 * Muse writer (Alexander Krotov): Add support for left-align and
2015 right-align classes (#4542).
2017 * Docx writer: Support underline (#4633).
2019 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
2020 `singleQuoteStart` and `doubleQuoteStart` (#4637).
2022 * `test-pandoc-utils.lua`: more robust testing on both windows
2023 and \*nix. Previously the pipe tests were only run if
2024 `\bin/false` and `/bin/sed` were present, which they aren't
2025 in default MacOS and Windows systems. Fixed by using `tr`
2026 and `false`, which should always be in the path on a \*nix
2027 system, and `find` and `echo` for Windows.
2029 * Text.Pandoc.Shared: add `uriPathToPath`.
2030 This adjusts the path from a file: URI in a way that is sensitive
2031 to Windows/Linux differences. Thus, on Windows,
2032 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
2033 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
2035 * Use `uriPathToPath` with file: URIs (#4613).
2037 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
2038 file as before.
2040 * Text.Pandoc.Class: Catch IO errors when writing media files
2041 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
2043 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
2045 * MANUAL (Mauro Bieg):
2047 + Clarify truthiness in template variables (#2281).
2048 + Clarify pipe table width calculation (#4520).
2050 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
2051 CMU Serif gives better typographic results than the previous
2052 Greek fallback DejaVu Serif.
2054 * Make HTML template polyglot (#4606, OvidiusCicero), by making
2055 `<link rel="stylesheet" href="$css$">` self-closing.
2057 * Use texmath 0.11, allowing better translation of non-ASCII
2058 characters in math (#4642).
2060pandoc (2.2)
2062 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
2064 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
2065 and for `ms` and `man`.
2067 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
2068 `--asciimathml` options.
2070 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
2071 Krotov, API change).
2073 * Markdown reader:
2075 + Allow empty key-value attributes, like `title=""` (#2944).
2076 + Handle table w/o following blank line in fenced div (#4560).
2077 + Remove "fallback" for `doubleQuote` parser. Previously the
2078 parser tried to be efficient -- if no end double quote was found,
2079 it would just return the contents. But this could backfire in a
2080 case `**this should "be bold**`, since the fallback would return
2081 the content `"be bold**` and the closing boldface delimiter
2082 would never be encountered.
2083 + Improve computation of the relative width of the last column in a
2084 multiline table, so we can round-trip tables without constantly
2085 shrinking the last column.
2087 * EPUB reader:
2089 + Fix images with space in file path (#4344).
2091 * LaTeX reader:
2093 + Properly resolve section numbers with `\ref` and chapters (#4529).
2094 + Parse sloppypar environment (#4517, Marc Schreiber).
2095 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
2096 Previously there were some bugs in how macros were handled.
2097 + Support `\MakeUppercase`, `\MakeLowercase', `\uppercase`, `\lowercase`,
2098 and also `\MakeTextUppercase` and `\MakeTextLowercase` from textcase
2099 (#4959).
2101 * Textile reader:
2103 + Fixed tables with no body rows (#4513).
2104 Previously these raised an exception.
2106 * Mediawiki reader:
2108 + Improve table parsing (#4508). This fixes detection of table
2109 attributes and also handles `!` characters in cells.
2111 * DocBook reader:
2113 + Properly handle title in `section` element (#4526).
2114 Previously we just got `section_title` for `section` (though `sect1`,
2115 `sect2`, etc. were handled properly).
2116 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
2118 * Docx reader:
2120 + Combine adjacent CodeBlocks with the same attributes into
2121 a single CodeBlock. This prevents a multiline codeblock in
2122 Word from being read as different paragraphs.
2124 * RST reader:
2126 + Allow < 3 spaces indent under directives (#4579).
2127 + Fix anonymous redirects with backticks (#4598).
2129 * Muse reader (Alexander Krotov):
2131 + Add support for Text::Amuse multiline headings.
2132 + Add `<math>` tag support.
2133 + Add support for `<biblio>` and `<play>` tags.
2134 + Allow links to have empty descriptions.
2135 + Require block `<literal>` tags to be on separate lines.
2136 + Allow `-` in anchors.
2137 + Allow verse to be indented.
2138 + Allow nested footnotes.
2139 + Internal improvements.
2141 * Muse writer (Alexander Krotov):
2143 + Escape `>` only at the beginning of a line.
2144 + Escape `]` in image title.
2145 + Escape `]` brackets in URLs as `%5D`.
2146 + Only escape brackets when necessary.
2147 + Escape ordered list markers.
2148 + Do not escape list markers unless preceded by space.
2149 + Escape strings starting with space.
2150 + Escape semicolons and markers after line break.
2151 + Escape `;` to avoid accidental comments.
2152 + Don't break headers, line blocks and tables with line breaks.
2153 + Correctly output empty headings.
2154 + Escape horizontal rule only if at the beginning of the line.
2155 + Escape definition list terms starting with list markers.
2156 + Place header IDs before header.
2157 + Improve span writing.
2158 + Do not join Spans in normalization.
2159 + Don't align ordered list items.
2160 + Remove key-value pairs from attributes before normalization.
2161 + Enable `--wrap=preserve` for all tests by default.
2162 + Reduced `<verbatim>` tags in output.
2163 + Internal changes.
2165 * RST writer:
2167 + Use more consistent indentation (#4563). Previously we
2168 used an odd mix of 3- and 4-space indentation. Now we use 3-space
2169 indentation, except for ordered lists, where indentation must
2170 depend on the width of the list marker.
2171 + Flatten nested inlines (#4368, Francesco Occhipinti).
2172 Nested inlines are not valid RST syntax, so we flatten them following
2173 some readability criteria discussed in #4368.
2175 * EPUB writer:
2177 + Ensure that `pagetitle` is always set, even when structured titles
2178 are used. This prevents spurious warnings about empty title
2179 elements (#4486).
2181 * FB2 writer (Alexander Krotov):
2183 + Output links inline instead of producing notes. Previously all links
2184 were turned into footnotes with unclickable URLs inside.
2185 + Allow emphasis and notes in titles.
2186 + Don't intersperse paragraph with empty lines.
2187 + Convert metadata value `abstract` to book annotation.
2188 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
2189 FB2 does not have a way to represent line breaks inside paragraphs;
2190 previously we used `<empty-line />` elements, but these are not allowed
2191 inside paragraphs.
2193 * Powerpoint writer (Jesse Rosenthal):
2195 + Handle Quoted Inlines (#4532).
2196 + Simplify code with `ParseXml`.
2197 + Allow fallback options when looking for placeholder type.
2198 + Check reference-doc for all layouts.
2199 + Simplify speaker notes logic.
2200 + Change notes state to a simpler per-slide value.
2201 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
2202 means no speaker notes.
2203 + Add tests for improved speaker notes.
2204 + Handle speaker notes earlier in the conversion process.
2205 + Keep notes with related blocks (#4477). Some blocks automatically
2206 split slides (imgs, tables, `column` divs). We assume that any
2207 speaker notes immediately following these are connected to these
2208 elements, and keep them with the related blocks, splitting after them.
2209 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
2210 It contained a nonfree ICC color calibration profile and is not needed
2211 for production of a powerpoint document.
2213 * Markdown writer:
2215 + Include a blank line at the end of the row in a single-row multiline
2216 table, to prevent it from being interpreted as a simple table (#4578).
2218 * CommonMark writer:
2220 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
2221 enabled (#4527, quasicomputational).
2223 * EPUB writer:
2225 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
2227 * LaTeX writer:
2229 + In beamer, don't use format specifier for default ordered lists
2230 (#4556). This gives better results for styles that put ordered list
2231 markers in boxes or circles.
2232 + Update `\lstinline` delimiters (#4369, Tim Parenti).
2234 * Ms writer:
2236 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
2237 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
2238 since the header font is automatically bold (#4552).
2239 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
2240 + Create pdf anchor for a Div with an identifier (#4515).
2241 + Escape `/` character in anchor ids (#4515).
2242 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
2243 to avoid ambiguity.
2245 * Man writer:
2247 + Don't escape U+2019 as `'` (#4550).
2249 * Text.Pandoc.Options:
2251 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
2252 `Text.Pandoc.Options.HTMLMathMethod` [API change].
2254 * Text.Pandoc.Class:
2256 + `writeMedia`: unescape URI-escaping in file path. This avoids
2257 writing things like `file%20one.png` to the file system.
2259 * Text.Pandoc.Parsing:
2261 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
2262 as 1100.
2263 + `uri`: don't treat `*` characters at end as part of URI (#4561).
2265 * Text.Pandoc.MIME:
2267 + Use the alias `application/eps` for EPS (#2067).
2268 This will ensure that we retain the eps extension after reading the
2269 image into a mediabag and writing it again.
2271 * Text.Pandoc.PDF:
2273 + Use `withTempDir` in `html2pdf`.
2274 + With `xelatex`, don't compress images til the last run (#4484).
2275 This saves time for image-heavy documents.
2276 + Don't try to convert EPS files (#2067). `pdflatex` converts them
2277 itself, and JuicyPixels can't do it.
2278 + For `pdflatex`, use a temp directory in the working directory.
2279 Otherwise we can have problems with the EPS conversion pdflatex
2280 tries to do, which can't operate on a file above the working
2281 directory without `--shell-escape`.
2283 * Changes to tests to accommodate changes in pandoc-types.
2284 In <https://github.com/jgm/pandoc-types/pull/36> we changed
2285 the table builder to pad cells. This commit changes tests
2286 (and two readers) to accord with this behavior.
2288 * Set default extensions for `beamer` same as `latex`.
2290 * LaTeX template:
2292 + Add `beameroption` variable (#4359, Étienne Bersac).
2293 + Use `pgfpages` package; this is needed for notes on second
2294 screen in beamer (Étienne Bersac).
2295 + Add `background-image` variable (#4601, John Muccigrosso).
2297 * reveal.js template: Add `background-image` variable (#4600,
2298 John Muccigrosso).
2300 * ms template: Fix date. Previously `.ND` was used, but this only
2301 works if you have a title page, which we don't. Thanks to @teoric.
2303 * Removed pragmas for unused extensions (#4506, Anabra).
2305 * Fix bash completion for `--print-default-data-file` (#4549).
2306 Previously this looked in the filesystem, even if pandoc
2307 was compiled with `embed_data_files` (and sometimes it looked
2308 in a nonexistent build directory). Now the bash completion
2309 script just includes a hard-coded list of data file names.
2311 * MANUAL:
2313 + Clarify template vs metadata variables (#4501, Mauro Bieg).
2314 + Fix raw content example (#4479, Mauro Bieg).
2315 + Specify that you use html for raw output in epub.
2316 + Add examples for raw docx blocks (#4472, Tristan Stenner).
2317 The documentation states that the target format name should match
2318 the output format, which isn't the case for `docx`/`openxml` and
2319 some others.
2320 + Don't say that `empty_paragraphs` affects markdown output (#4540).
2321 + Consolidate input/output format documentation (#4577, Mauro Bieg).
2323 * New README template. Take in/out formats from manual.
2325 * Fix example in lua-filters docs (#4459, HeirOfNorton).
2327 * Use the `-threaded` GHC flag when building benchmarks (#4587,
2328 Francesco Occhipinti).
2330 * Bump temporary upper bound to 1.4.
2332 * Use pandoc-citeproc 0.14.3.1.
2334 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
2336 * Removed old lib directory. This was used for something long ago,
2337 but plays no role now.
2339 * Removed unneeded data file `LaTeXMathML.js`.
2341 * Create 64- and 32-bit versions of Windows binary packages.
2343pandoc (2.1.3)
2345 * Docx reader (Jesse Rosenthal):
2347 + Add tests for nested smart tags.
2348 + Parse nested smart tags.
2349 + Make unwrapSDT into a general `unwrap` function that can unwrap both
2350 nested SDT tags and smartTags. This makes the SmartTags constructor in
2351 the Docx type unnecessary, so we remove it (#4446).
2352 + Remove unused `docxWarnings` (Alexander Krotov).
2354 * RST reader: Allow unicode bullet characters (#4454).
2356 * Haddock reader: Better table handling, using haddock-library's
2357 new table support, if compiled against a version that
2358 includes it. Note that tables with col/rowspans will not
2359 translate well into Pandoc.
2361 * Muse reader (Alexander Krotov):
2363 + Require closing tag to have the same indentation as opening.
2364 + Do not reparse blocks inside unclosed block tag (#4425).
2365 + Parse `<class>` tag (supported by Emacs Muse).
2366 + Do not produce empty Str element for unindented verse lines.
2367 + Don't allow footnote references inside links.
2368 + Allow URL to be empty.
2369 + Require that comment semicolons are in the first column (#4551).
2370 + Various internal improvements.
2372 * LaTeX reader:
2374 + Add support to parse unit string of `\SI` command (closes #4296,
2375 Marc Schreiber).
2377 * Haddock writer: In the writer, we now render tables always as
2378 grid tables, since Haddock supports these.
2380 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
2382 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
2383 docx writer. We want decimal for the top level, not lower roman.
2385 * RST writer:
2387 + Strip whitespace at beginning and ending of inline containers
2388 (#4327, Francesco Occhipinti).
2389 + Filter out empty inline containers (#4434). There is nothing in
2390 RST that corresponds to e.g. `Emph []`, so we just ignore elements
2391 like this (Francesco Occhipinti).
2393 * Muse writer (Alexander Krotov):
2395 + Support spans with anchors.
2396 + Replace smallcaps with emphasis before normalization.
2397 + Output smallcaps as emphasis.
2398 + Expand Cite before list normalization.
2399 + Write empty inline lists as `<verbatim></verbatim>`.
2400 + Remove empty Str from the beginning of inline lists during normalization.
2401 + Escape "-" to avoid creating bullet lists.
2402 + Fix math expansion for more than one expression per paragraph.
2403 + Expand math before inline list normalization.
2405 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
2407 * Ms writer:
2409 + Asciify pdf anchors, since unicode anchors don't work (#4436).
2410 Internal links should be converted automatically, so this shouldn't
2411 affect users directly.
2412 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
2414 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
2415 (#4307). If it's in the title, then we get a titlebar on slides with
2416 the `plain` attribute, when the id is non-null. This fixes a regression
2417 in 2.0.
2419 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
2421 * JATS writer: Remove extraneous, significant whitespace (#4335,
2422 Nokome Bentley).
2424 * html2pdf: inject base tag with current working directory (#4413, Mauro
2425 Bieg). This helps ensure that linked resources are included.
2427 * Add Semigroup instances for everything for which we defined a
2428 Monoid instance previously (API change):
2430 + Text.Pandoc.Class.FileTree.
2431 + Text.Pandoc.Translations.Translations.
2432 + Text.Pandoc.Extensions.Extensions.
2433 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
2434 + Text.Pandoc.Pretty.Doc.
2435 + Text.Pandoc.MediaBag.MediaBag.
2437 * Add custom Prelude to give clean code for Monoid and Semigroup
2438 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
2439 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
2440 in all source files, and Prelude is explicitly imported
2441 (this is necessary for ghci to work properly with the custom prelude).
2443 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
2445 + Export `stripLeadingTrailingSpace`.
2446 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
2447 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
2448 expand cells, even if it results in cells that don't respect relative
2449 widths or surpass page column width. This change affects RST,
2450 Markdown, and Haddock writers.
2452 * Raise error if someone tries to print docx, odt, etc. template (#4441).
2454 * LaTeX template: Provide `bidi` package's option using
2455 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
2456 clash when `polyglossia` loads it first and then it is loaded again
2457 for XeLaTeX.
2459 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
2460 Menke). Instructions on how to install the ICC profiles on ConTeXt
2461 standalone can be found in the wiki:
2462 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
2463 If the ICC profiles are not available the log will contain error
2464 messages.
2466 * Use latest pandoc-types, skylighting
2468 * Use latest pandoc-citeproc in binary package.
2470 * Bump upper bound for time, criterion, haddock-library, exceptions,
2471 http-types, aeson, haddock-library.
2473 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
2475 * pandoc.cabal: fix up other-extensions and language fields.
2476 Language is now consistently `Haskell2010`, and other-extensions
2477 is consistently `NoImplicitPrelude`. Everything else to be specified
2478 in the module header as needed.
2480 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
2481 This is no longer necessary since we no longer support ghc 7.8.
2483 * Make `weigh-pandoc` into a benchmark program.
2484 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
2485 automatically when you build (and run) benchmarks.
2487 * MANUAL: add instructions for background images reveal.js (#4325, John
2488 Muccigrosso).
2490 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
2493pandoc (2.1.2)
2495 * Markdown reader:
2497 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
2498 "nonindent spaces" before the opening and closing `:::`, but this
2499 interfered with list parsing, so now we require the fences to be flush with
2500 the margin of the containing block.
2502 * Commonmark reader:
2504 + `raw_html` is now on by default. It can be disabled explicitly
2505 using `-f commonmark-raw_html`.
2507 * Org reader (Albert Krewinkel):
2509 + Move citation tests to separate module.
2510 + Allow changing emphasis syntax (#4378). The characters allowed before
2511 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
2512 `#+pandoc-emphasis-post`, respectively. This allows to change which
2513 strings are recognized as emphasized text on a per-document or even
2514 per-paragraph basis. Example:
2516 #+pandoc-emphasis-pre: "-\t ('\"{"
2517 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
2519 * LaTeX reader:
2521 + Fixed comments inside citations (#4374).
2522 + Fix regression in package options including underscore (#4424).
2523 + Make `--trace` work.
2524 + Fixed parsing of `tabular*` environment (#4279).
2526 * RST reader:
2528 + Fix regression in parsing of headers with trailing space (#4280).
2530 * Muse reader (Alexander Krotov):
2532 + Enable `<literal>` tags even if amuse extension is enabled.
2533 Amusewiki disables <literal> tags for security reasons.
2534 If user wants similar behavior in pandoc, RawBlocks and RawInlines
2535 can be removed or replaced with filters.
2536 + Remove space prefix from `<literal>` tag contents.
2537 + Do not consume whitespace while looking for closing end tag.
2538 + Convert alphabetical list markers to decimal in round-trip test.
2539 Alphabetical lists are an addition of Text::Amuse.
2540 They are not present in Emacs Muse and can be ambiguous
2541 when list starts with "i.", "c." etc.
2542 + Allow `<quote>` and other tags to be indented.
2543 + Allow single colon in definition list term.
2544 + Fix parsing of verse in lists.
2545 + Improved parsing efficiency. Avoid `parseFromString`.
2546 Lists are parsed in linear instead of exponential time now.
2547 + Replace ParserState with MuseState.
2548 + Prioritize lists with roman numerals over alphabetical lists.
2549 This is to make sure "i." starts a roman numbered list,
2550 instead of a list with letter "i" (followed by "j", "k", ...").
2551 + Fix directive parsing.
2552 + Parse definition lists with multiple descriptions.
2553 + Parse next list item before parsing more item contents.
2554 + Fixed a bug: headers did not terminate lists.
2555 + Move indentation parsing from `definitionListItem` to `definitionList`.
2556 + Paragraph indentation does not indicate nested quote.
2557 Muse allows indentation to indicate quotation or alignment,
2558 but only on the top level, not within a <quote> or list.
2559 + Require that block tags are on separate lines.
2560 Text::Amuse already explicitly requires it anyway.
2561 + Fix matching of closing inline tags.
2562 + Various internal changes.
2563 + Fix parsing of nested definition lists.
2564 + Require only one space for nested definition list indentation.
2565 + Do not remove trailing whitespace from `<code>`.
2566 + Fix parsing of trailing whitespace. Newline after whitespace now
2567 results in softbreak instead of space.
2569 * Docx reader (Jesse Rosenthal, except where noted):
2571 + Handle nested sdt tags (#4415).
2572 + Don't look up dependent run styles if `+styles` is enabled.
2573 + Move pandoc inline styling inside custom-style span.
2574 + Read custom styles (#1843). This will read all paragraph and
2575 character classes as divs and spans, respectively. Dependent styles
2576 will still be resolved, but will be wrapped with appropriate style
2577 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
2578 This can be used in conjunction with the `custom-style` feature in the
2579 docx writer for a pandoc-docx editing workflow. Users can convert from
2580 an input docx, reading the custom-styles, and then use that same input
2581 docx file as a reference-doc for producing an output docx file. Styles
2582 will be maintained across the conversion, even if pandoc doesn't
2583 understand them.
2584 + Small change to Fields hyperlink parser. Previously, unquoted string
2585 required a space at the end of the line (and consumed it). Now we
2586 either take a space (and don't consume it), or end of input.
2587 + Pick table width from the longest row or header (Francesco Occhipinti,
2588 #4360).
2590 * Muse writer (Alexander Krotov):
2592 + Change verse markup: `> ` instead of `<verse>` tag.
2593 + Remove empty strings during inline normalization.
2594 + Don't indent nested definition lists.
2595 + Use unicode quotes for quoted text.
2596 + Write image width specified in percent in Text::Amuse mode.
2597 + Don't wrap displayMath into `<verse>`.
2598 + Escape nonbreaking space (`~~`).
2599 + Join code with different attributes during normalization.
2600 + Indent lists inside Div.
2601 + Support definitions with multiple descriptions.
2603 * Powerpoint writer (Jesse Rosenthal):
2605 + Use table styles This will use the default table style in the
2606 reference-doc file. As a result they will be easier when using
2607 in a template, and match the color scheme.
2608 + Remove empty slides. Because of the way that slides were split, these
2609 could be accidentally produced by comments after images. When animations
2610 are added, there will be a way to add an empty slide with either
2611 incremental lists or pauses.
2612 + Implement syntax highlighting. Note that background colors can't
2613 be implemented in PowerPoint, so highlighting styles that require
2614 these will be incomplete.
2615 + New test framework for pptx. We now compare the output of the
2616 Powerpoint writer with files that we know to (a) not be corrupt,
2617 and (b) to show the desired output behavior (details below).
2618 + Add `notesMaster` to `presentation.xml` if necessary.
2619 + Ignore links and (end)notes in speaker notes.
2620 + Output speaker notes.
2621 + Read speaker note templates conditionally. If there are speaker
2622 notes in the presentation, we read in the notesMasters templates
2623 from the reference pptx file.
2624 + Fix deletion track changes (#4303, Jesse Rosenthal).
2626 * Markdown writer: properly escape @ to avoid capture as citation
2627 (#4366).
2629 * LaTeX writer:
2631 + Put hypertarget inside figure environment (#4388).
2632 This works around a problem with the endfloat package and
2633 makes pandoc's output compatible with it.
2634 + Fix image height with percentage (#4389). This previously caused
2635 the image to be resized to a percentage of textwidth, rather than
2636 textheight.
2638 * ConTeXt writer (Henri Menke):
2640 + New section syntax and support `--section-divs` (#2609).
2641 `\section[my-header]{My Header}` ->
2642 `\section[title={My Header},reference={my-header}]`.
2643 The ConTeXt writer now supports the `--section-divs` option to
2644 write sections in the fenced style, with `\startsection` and
2645 `\stopsection`.
2646 + xtables: correct wrong usage of caption (Henri Menke).
2648 * Docx writer:
2650 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
2651 + Use new golden framework (Jesse Rosenthal).
2652 + Make more deterministic to facilitate testing (Jesse Rosenthal).
2653 - `getUniqueId` now calls to the state to get an incremented digit,
2654 instead of calling to P.uniqueHash.
2655 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
2656 seed (1848), so our randoms should be the same each time.
2657 + Fix ids in comment writing (Jesse Rosenthal). Comments from
2658 `--track-changes=all` were producing corrupt docx, because the
2659 writer was trying to get id from the `(ID,_,_)` field of
2660 the attributes, and ignoring the "id" entry in the key-value pairs. We
2661 now check both.
2663 * Ms writer: Added papersize variable.
2665 * TEI writer:
2667 + Use `height` instead of `depth` for images (#4331).
2668 + Ensure that id prefix is always used.
2669 + Don't emit `role` attribute; that was a leftover from the
2670 Docbook writer.
2671 + Use 'xml:id', not 'id' attribute (#4371).
2673 * AsciiDoc writer:
2675 + Do not output implicit heading IDs (#4363, Alexander
2676 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
2678 * RST writer:
2680 + Remove `blockToRST'` moving its logic into `fixBlocks`
2681 (Francesco Occhipinti).
2682 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
2684 * RST template: remove definition of 'math' role as raw.
2685 This used to be needed prior to v 0.8 of docutils, but
2686 now math support is built-in.
2688 * Slides: Use divs to set incremental/non-incremental (#4381,
2689 Jesse Rosenthal). The old method (list inside blockquote) still
2690 works, but we are encouraging the use of divs with class
2691 `incremental` or `nonincremental`.
2693 * Text.Pandoc.ImageSize:
2695 + Make image size detection for PDFs more robust (#4322).
2696 + Determine image size for PDFs (#4322).
2697 + EMF Image size support (#4375, Andrew Pritchard).
2699 * Text.Pandoc.Extensions:
2701 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
2702 the docx reader (defaulting to off) to read pargraph and character
2703 styles not understood by pandoc (as divs and spans, respectively).
2704 + Made `Ext_raw_html` default for `commonmark` format.
2706 * Text.Pandoc.Parsing:
2708 + Export `manyUntil` (Alexander Krotov, API change).
2709 + Export improved `sepBy1` (Alexander Krotov).
2710 + Export list marker parsers: `upperRoman`, `lowerRoman`,
2711 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
2713 * Tests/Lua: fix tests on windows (Albert Krewinkel).
2715 * Lua: register script name in global variable (#4393). The name of the Lua
2716 script which is executed is made available in the global Lua variable
2717 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
2719 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
2720 There is very little pptx-specific in these tests, so we abstract out
2721 the basic testing function so it can be used for docx as well. This
2722 should allow us to catch some errors in the docx writer that slipped
2723 by the roundtrip testing.
2725 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
2726 functions used to construct AST element values are stored in the Lua
2727 registry for quicker access. Getting a value from the registry is much
2728 faster than getting a global value (partly to idiosyncrasies of hslua);
2729 this change results in a considerable performance boost.
2731 * Documentation:
2733 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
2734 + `doc/lua-filters.md`: document global vars set for filters
2735 (Albert Krewinkel).
2736 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
2737 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
2738 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
2739 Rosenthal). Blockquoted lists are still described, but fenced divs are
2740 presented in preference.
2741 + MANUAL.txt: document header and footer variables (newmana).
2742 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
2743 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
2745 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
2747 * Use latest texmath.
2749 * Use latest pandoc-citeproc.
2751 * Allow exceptions 0.9.
2753 * Require aeson-pretty 0.8.5 (#4394).
2755 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
2757 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
2759 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
2761 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
2762 jarlg).
2765pandoc (2.1.1)
2767 * Markdown reader:
2769 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
2770 blank line. See lierdakil/pandoc-crossref#160.
2771 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
2772 The change both improves performance and fixes a regression whereby
2773 normal citations inside inline notes and figure captions were not
2774 parsed correctly.
2776 * RST reader:
2778 + Better handling for headers with an anchor (#4240). Instead of creating a
2779 Div containing the header, we put the id directly on the header.
2780 This way header promotion will work properly.
2781 + Add aligned environment when needed in math (#4254). `rst2latex.py`
2782 uses an `align*` environment for math in `.. math::` blocks, so this
2783 math may contain line breaks. If it does, we put the math in an
2784 `aligned` environment to simulate `rst2latex.py`'s behavior.
2786 * HTML reader:
2788 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
2790 * LaTeX reader:
2792 + Advance source position at end of stream.
2793 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
2794 extension is set (#4246). This reverts to earlier behavior and is
2795 probably safer on the whole, since some macros only modify things in
2796 included packages, which pandoc's macro expansion can't modify.
2797 + Fixed pos calculation in tokenizing escaped space.
2798 + Allow macro definitions inside macros (#4253). Previously we went into
2799 an infinite loop with
2800 ```
2801 \newcommand{\noop}[1]{#1}
2802 \noop{\newcommand{\foo}[1]{#1}}
2803 \foo{hi}
2804 ```
2805 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
2806 widths for the body were different from widths for the header in some
2807 tables.
2809 * Docx reader (Jesse Rosenthal):
2811 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
2812 hyperlink found in older versions of word. The changes introduced for
2813 this, though, create a framework for parsing further fields in MS Word
2814 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
2815 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
2816 contains a simple parsec parser. At the moment, only simple hyperlink
2817 fields are accepted, but that can be extended in the future.
2819 * Muse reader (Alexander Krotov):
2821 + Parse `~~` as non-breaking space in Text::Amuse mode.
2822 + Refactor list parsing.
2824 * Powerpoint writer (Jesse Rosenthal):
2826 + Change reference to `notesSlide` to `endNotesSlide`.
2827 + Move image sizing into `picProps`.
2828 + Improve table placement.
2829 + Make our own `_rels/.rels` file.
2830 + Import reference-doc images properly.
2831 + Move `Presentation.hs` out of `PandocMonad`.
2832 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
2833 defines the Presentation datatype and goes Pandoc->Presentation;
2834 T.P.W.Pandoc.Output goes Presentation->Archive.
2835 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
2836 + Avoid overlapping blocks in column output.
2837 + Position images correctly in two-column layout.
2838 + Make content shape retrieval environment-aware.
2839 + Improve image handling. We now determine image and caption placement
2840 by getting the dimensions of the content box in a given layout.
2841 This allows for images to be correctly sized and positioned in a
2842 different template. Note that images without captions and headers are
2843 no longer full-screened. We can't do this dependably in different
2844 layouts, because we don't know where the header is (it could be to
2845 the side of the content, for example).
2846 + Read presentation size from reference file. Our presentation size is
2847 now dependent on the reference/template file we use.
2848 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
2849 subheaders will be printed in bold and given a bit of extra space
2850 before them. Note that at the moment, no distinction is made between
2851 levels of headers above the slide header, though that can be changed.
2852 + Check for required files. Since we now import from reference/dist
2853 file by glob, we need to make sure that we're getting the files we
2854 need to make a non-corrupt Powerpoint. This performs that check.
2855 + Improve templating using `--reference-doc`. Templating should work
2856 much more reliably now.
2857 + Include Notes slide in TOC.
2858 + Set notes slide header to slide-level.
2859 + Add table of contents. This is triggered by the `--toc` flag. Note
2860 that in a long slide deck this risks overrunning the text box. The user
2861 can address this by setting `--toc-depth=1`.
2862 + Set notes slide number correctly.
2863 + Clean up adding metadata slide. We want to count the slide numbers
2864 correctly if it's in there.
2865 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
2866 an anchor link. In powerpoint these are links to slides, so we keep
2867 track of a map relating anchors to the slides they occur on.
2868 + Make the slide number available to the blocks. For anchors,
2869 block-processing functions need to know what slide number
2870 they're in. We make the `envCurSlideId` available to blocks.
2871 + Move `curSlideId` to environment.
2872 + Allow setting `toc-title` in metadata.
2873 + Link notes to endnotes slide.
2875 * Markdown writer:
2877 + Fix cell width calculation (#4265). Previously we could get
2878 ever-lengthening cell widths when a table was run repeatedly through
2879 `pandoc -f markdown -t markdown`.
2881 * LaTeX writer:
2883 + Escape `&` in lstinline (Robert Schütz).
2885 * ConTeXt writer:
2887 + Use xtables instead of Tables (#4223, Henri Menke).
2888 Default to xtables for context output. Natural Tables are used
2889 if the new `ntb` extension is set.
2891 * HTML writer:
2893 + Fixed footnote backlinks with `--id-prefix` (#4235).
2895 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
2896 Henri Menke).
2898 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
2899 (Jesse Rosenthal, API change).
2901 * Lua filters (Albert Krewinkel):
2903 + Make `PANDOC_READER_OPTIONS` available.
2904 The options which were used to read the document are made available to
2905 Lua filters via the `PANDOC_READER_OPTIONS` global.
2906 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
2907 on a Pandoc document.
2908 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
2909 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
2910 + Improve error messages. Provide more context about the task
2911 which caused an error.
2913 * data/pandoc.lua (Albert Krewinkel):
2915 + Accept singleton inline as a list. Every constructor which accepts a
2916 list of inlines now also accepts a single inline element for
2917 convenience.
2918 + Accept single block as singleton list. Every constructor which accepts
2919 a list of blocks now also accepts a single block element for
2920 convenience. Furthermore, strings are accepted as shorthand for
2921 `{pandoc.Str "text"}` in constructors.
2922 + Add attr, listAttributes accessors. Elements with
2923 attributes got an additional `attr` accessor. Attributes were
2924 accessible only via the `identifier`, `classes`, and `attributes`,
2925 which was in conflict with the documentation, which indirectly states
2926 that such elements have the an `attr` property.
2927 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
2928 module is closely tied to the pandoc version, which is available via
2929 `PANDOC_VERSION`.
2930 + Fix access to Attr components. Accessing an Attr value (e.g.,
2931 ` Attr().classes`) was broken; the more common case of accessing it via
2932 an Inline or Block element was unaffected by this.
2934 * Move `metaValueToInlines` to from Docx writer to
2935 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
2936 (Jesse Rosenthal).
2938 * MANUAL.txt:
2940 + Clarify otherlangs in LaTeX (#4072).
2941 + Clarify `latex_macros` extension.
2942 + Recommend use of `raw_attribute` extension in header includes (#4253).
2944 * Allow latest QuickCheck, tasty, criterion.
2946 * Remove custom prelude and ghc 7.8 support.
2948 * Reduce compiler noise (exact paths for compiled modules).
2950pandoc (2.1)
2952 * Allow filters and lua filters to be interspersed (#4196). Previously
2953 we ran all lua filters before JSON filters. Now we run filters in
2954 the order they are presented on the command line, whether lua or JSON.
2955 There are two incompatible API changes: The type of `applyFilters`
2956 has changed, and `applyLuaFilters` has been removed. `Filter` is
2957 also now exported.
2959 * Use latest skylighting and omit the `missingIncludes` check, fixing
2960 a major performance regression in earlier releases of the 2.x series
2961 (#4226). Behavior change: If you use a custom syntax definition that
2962 refers to a syntax you haven't loaded, pandoc will now complain when
2963 it is highlighting the text, rather than doing a check at the start.
2964 This change dramatically speeds up invocations of pandoc on short
2965 inputs.
2967 * Text.Pandoc.Class: make `FileTree` opaque (don't export
2968 `FileTree` constructor). This forces users to interact with it using
2969 `insertInFileTree` and `getFileInfo`, which normalize file names.
2971 * Markdown reader:
2973 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
2974 direct, avoiding `parseFromString`. And it performs significantly
2975 better; unfortunately, parsing time still increases exponentially
2976 (see #1735).
2977 + Avoid parsing raw tex unless `\` + letter seen. This seems to
2978 help with the performance problem, #4216.
2980 * LaTeX reader: Simplified a check for raw tex command.
2982 * Muse reader (Alexander Krotov):
2984 + Enable round trip test (#4107).
2985 + Automatically translate `#cover` into `#cover-image`.
2986 Amusewiki uses #cover directive to specify cover image.
2988 * Docx reader (Jesse Rosenthal):
2990 + Allow for insertion/deletion of paragraphs (#3927).
2991 If the paragraph has a deleted or inserted paragraph break (depending
2992 on the track-changes setting) we hold onto it until the next
2993 paragraph. This takes care of accept and reject. For this we introduce
2994 a new state which holds the ils from the previous para if necessary.
2995 For `--track-changes=all`, we add an empty span with class
2996 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
2997 prior to the break to be inserted or deleted.
2998 + Remove unused anchors (#3679). Docx produces a lot of anchors with
2999 nothing pointing to them---we now remove these to produce cleaner
3000 output. Note that this has to occur at the end of the process
3001 because it has to follow link/anchor rewriting.
3002 + Read multiple children of `w:sdtContents`.
3003 + Combine adjacent anchors. There isn't any reason to have numerous
3004 anchors in the same place, since we can't maintain docx's
3005 non-nesting overlapping. So we reduce to a single anchor.
3006 + Improved tests.
3008 * Muse writer (Alexander Krotov): don't escape URIs from AST
3010 * Docx writer:
3012 + Removed redundant subtitle in title (Sebastian Talmon).
3013 + `firstRow` table definition compatibility for Word 2016 (Sebastian
3014 Talmon). Word 2016 seems to use a default value of "1" for table
3015 headers, if there is no firstRow definition (although a default
3016 value of 0 is documented), so all tables get the first Row formatted
3017 as header. Setting the parameter to 0 if the table has no header
3018 row fixes this for Word 2016
3019 + Fix custom styles with spaces in the name (#3290).
3021 * Powerpoint writer (Jesse Rosenthal):
3023 + Ignore Notes div for parity with other slide outputs.
3024 + Set default slidelevel correctly. We had previously defaulted to
3025 slideLevel 2. Now we use the correct behavior of defaulting to the
3026 highest level header followed by content. We change an expected test
3027 result to match this behavior.
3028 + Split blocks correctly for linked images.
3029 + Combine adjacent runs.
3030 + Make inline code inherit code size. Previously (a) the code size
3031 wasn't set when we force size, and (b) the properties was set from
3032 the default, instead of inheriting.
3033 + Simplify `replaceNamedChildren` function.
3034 + Allow linked images. The following markdown:
3035 `[![Image Title](image.jpg)](http://www.example.com)`
3036 will now produce a linked image in the resulting PowerPoint file.
3037 + Fix error with empty table cell. We require an empty `<a:p>` tag,
3038 even if the cell contains no paragraphs---otherwise PowerPoint
3039 complains of corruption.
3040 + Implement two-column slides. This uses the columns/column div
3041 format described in the pandoc manual. At the moment, only two
3042 columns (half the screen each) are allowed. Custom widths are not
3043 supported.
3044 + Added more tests.
3046 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
3048 * Lua filters (Albert Krewinkel):
3050 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
3051 + The current pandoc-types version is made available to Lua programs in
3052 the global `PANDOC_API_VERSION`. It contains the version as a list of
3053 numbers.
3054 + The pandoc version available as a global `PANDOC_VERSION` (a list
3055 of numbers).
3056 + `data/pandoc.lua`: make `Attr` an `AstElement`.
3057 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
3058 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
3059 not set a metatable on the returned value, which made it difficult
3060 to amend objects of these types with new behavior. They are now
3061 subtypes of AstElement, meaning that all their objects can gain
3062 new features when a method is added to the behavior object
3063 (e.g., `pandoc.Pandoc.behavior`).
3064 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
3065 between a type and the behavioral properties of an instance of that
3066 type. The behavior of a type (and all its subtypes) can now be
3067 amended by adding methods to that types `behavior` object, without
3068 exposing the type objects internals. E.g.:
3069 ```lua
3070 pandoc.Inline.behavior.frob = function () print'42' end
3071 local str = pandoc.Str'hello'
3072 str.frob() -- outputs '42'
3073 ```
3074 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
3075 of a given type (e.g., all inline elements) was difficult, as the
3076 table used to lookup unknown methods would be reset every time a
3077 new element of that type was created, preventing recursive property
3078 lookup. This is was changed in that all methods and attributes of
3079 supertypes are now available to their subtypes.
3080 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
3081 fields were named like the Haskell fields, not like the documented,
3082 shorter version. The names are changed to match the documentation
3083 and Citations are given a shared metatable to enable simple
3084 extensibility.
3085 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
3086 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
3087 difficult to handle failures while getting lists or a Map from Lua.
3088 A bug in pandoc, which made it necessary to always pass a tag when
3089 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
3090 module's constructor functions for these values is now optional
3091 (if still recommended).
3092 + Stop exporting `pushPandocModule` (API change). The introduction
3093 of `runPandocLua` renders direct use of this function obsolete.
3094 + Update generation of module docs for lua filters.
3095 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
3096 MacFarlane). I'm sure this was intended in the first place,
3097 but currently only `Meta` is supported.
3099 * Improve benchmarks.
3101 + Set the default extensions properly.
3102 + Improve benchmark argument parsing. You can now say
3103 `make bench BENCHARGS="markdown latex reader"` and both the
3104 markdown and latex readers will be benchmarked.
3106 * MANUAL.txt simplify and add more structure (Mauro Bieg).
3108 * Generate README.md from template and MANUAL.txt.
3109 `make README.md` will generate the README.md after changes
3110 to MANUAL.txt have been made.
3112 * Update copyright notices to include 2018 (Albert Krewinkel).
3114pandoc (2.0.6)
3116 * Added `jats` as an input format.
3118 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
3119 change) (Hamish Mackenzie).
3120 + Improved citation handling in JATS reader. JATS citations
3121 are now converted to pandoc citations, and JATS ref-lists
3122 are converted into a `references` field in metadata, suitable
3123 for use with pandoc-citeproc. Thus a JATS article with embedded
3124 bibliographic information can be processed with pandoc and
3125 pandoc-citeproc to produce a formatted bibliography.
3127 * Allow `--list-extensions` to take an optional FORMAT argument.
3128 This lists the extensions set by default for the selected FORMAT.
3129 The extensions are now alphabetized, and the `+` or `-`
3130 indicating the default setting comes before, rather than after,
3131 the extension.
3133 * Markdown reader:
3135 + Preserve original whitespace between blocks.
3136 + Recognize `\placeformula` as context.
3137 + Be pickier about table captions. A caption starts with a `:` which
3138 can't be followed by punctuation. Otherwise we can falsely interpret
3139 the start of a fenced div, or even a table header line like
3140 `:--:|:--:`, as a caption.
3141 + Always use four space rule for example lists. It would be awkward
3142 to indent example list contents to the first non-space character after
3143 the label, since example list labels are often long. Thanks to
3144 Bernhard Fisseni for the suggestion.
3145 + Improve raw tex parsing. Note that the Markdown reader is also
3146 affected by the `latex_macros` extension changes described below
3147 under the LaTeX reader.
3149 * LaTeX reader:
3151 + `latex_macros` extension changes (#4179). Don't pass through macro
3152 definitions themselves when `latex_macros` is set. The macros
3153 have already been applied. If `latex_macros` is enabled, then
3154 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
3155 a macro definition, and will update pandoc's internal macro map
3156 accordingly, but the empty string will be returned.
3157 + Export `tokenize`, `untokenize` (API change).
3158 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
3159 + Refactored `inlineCommand`.
3160 + Fix bug in tokenizer. Material following `^^` was
3161 dropped if it wasn't a character escape. This only affected
3162 invalid LaTeX, so we didn't see it in the wild, but it appeared
3163 in a QuickCheck test failure.
3164 + Fix regression in LateX tokenization (#4159). This mainly affects the
3165 Markdown reader when parsing raw LaTeX with escaped spaces.
3166 + Add tests of LaTeX tokenizer.
3167 + Support `\foreignlanguage` from babel.
3168 + Be more tolerant of `&` character (#4208). This allows us to parse
3169 unknown tabular environments as raw LaTeX.
3171 * Muse reader (Alexander Krotov):
3173 + Parse anchors immediately after headings as IDs.
3174 + Require that note references does not start with 0.
3175 + Parse empty comments correctly.
3177 * Org reader (Albert Krewinkel):
3179 + Fix asterisks-related parsing error (#4180).
3180 + Support minlevel option for includes (#4154). The level of headers
3181 in included files can be shifted to a higher level by specifying a
3182 minimum header level via the `:minlevel` parameter. E.g.
3183 `#+include: "tour.org" :minlevel 1` will shift the headers in
3184 tour.org such that the topmost headers become level 1 headers.
3185 + Break-up org reader test file into multiple modules.
3187 * OPML reader:
3189 + Enable raw HTML and other extensions by default for notes
3190 (#4164). This fixes a regression in 2.0. Note that extensions can
3191 now be individually disabled, e.g. `-f opml-smart-raw_html`.
3193 * RST reader:
3195 + Allow empty list items (#4193).
3196 + More accurate parsing of references (#4156). Previously we erroneously
3197 included the enclosing backticks in a reference ID (#4156). This
3198 change also disables interpretation of syntax inside references, as
3199 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
3201 * Docx reader:
3203 + Continue lists after interruption (#4025, Jesse Rosenthal).
3204 Docx expects that lists will continue where they left off after an
3205 interruption and introduces a new id if a list is starting again. So
3206 we keep track of the state of lists and use them to define a "start"
3207 attribute, if necessary.
3208 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
3209 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
3210 #4190).
3212 * Plain writer:
3214 + Don't linkify table of contents.
3216 * RST writer:
3218 + Fix anchors for headers (#4188). We were missing an `_`.
3220 * PowerPoint writer (Jesse Rosenthal):
3222 + Treat lists inside BlockQuotes as lists. We don't yet produce
3223 incremental lists in PowerPoint, but we should at least treat lists
3224 inside BlockQuotes as lists, for compatibility with other slide formats.
3225 + Add ability to force size. This replaces the more specific
3226 `blockQuote runProp`, which only affected the size of blockquotes. We
3227 can use this for notes, etc.
3228 + Implement notes. This currently prints all notes on a final slide.
3229 Note that at the moment, there is a danger of text overflowing the
3230 note slide, since there is no logic for adding further slides.
3231 + Implement basic definition list functionality to PowerPoint writer.
3232 + Don't look for default template file for Powerpoint (#4181).
3233 + Add pptx to isTextFormat list. This is used to check standalone
3234 and not writing to the terminal.
3235 + Obey slide level option (Jesse Rosenthal).
3236 + Introduce tests.
3238 * Docx writer:
3240 + Ensure that `distArchive` is the one that comes with pandoc
3241 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
3242 dir) would be used instead, and this could cause problems because a
3243 user-modified docx sometimes lacks vital sections that we count
3244 on the `distArchive` to supply.
3246 * Org writer:
3248 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
3249 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
3250 Alexander Krotov). Otherwise they can be interpreted as footnote
3251 definitions.
3253 * Muse writer (Alexander Krotov):
3255 + Don't wrap note references to the next line (#4172).
3257 * HTML writer:
3259 + Use br elements in line blocks instead of relying on CSS
3260 (#4162). HTML-based templates have had the custom CSS for
3261 `div.line-block` removed. Those maintaining custom templates will want
3262 to remove this too. We still enclose line blocks in a div with class
3263 `line-block`.
3265 * LaTeX writer:
3267 + Use `\renewcommand` for `\textlatin` with babel (#4161).
3268 This avoids a clash with a deprecated `\textlatin` command defined
3269 in Babel.
3270 + Allow fragile=singleslide attribute in beamer slides (#4169).
3271 + Use `\endhead` after `\toprule` in headerless tables (#4207).
3273 * FB2 writer:
3275 + Add cover image specified by `cover-image` meta (Alexander Krotov,
3276 #4195).
3278 * JATS writer (Hamish Mackenzie):
3280 + Support writing `<fig>` and `<table-wrap>` elements
3281 with `<title>` and `<caption>` inside them by using Divs with class set
3282 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
3283 title is included as a Heading so the constraint on where Heading can
3284 occur is also relaxed.
3285 + Leave out empty alt attributes on links.
3286 + Deduplicate image mime type code.
3287 + Make `<p>` optional in `<td>` and `<th>` (#4178).
3288 + Self closing tags for empty xref (#4187).
3289 + Improve support for code language.
3291 * Custom writer:
3293 + Use init file to setup Lua interpreter (Albert Krewinkel).
3294 The same init file (`data/init`) that is used to setup the Lua
3295 interpreter for Lua filters is also used to setup the interpreter of
3296 custom writers.lua.
3297 + Define instances for newtype wrapper (Albert Krewinkel). The custom
3298 writer used its own `ToLuaStack` instance definitions, which made
3299 it difficult to share code with Lua filters, as this could result
3300 in conflicting instances. A `Stringify` wrapper is introduced to
3301 avoid this problem.
3302 + Added tests for custom writer.
3303 + Fixed definition lists and tables in `data/sample.lua`.
3305 * Fixed regression: when target is PDF, writer extensions were being
3306 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
3307 did not work properly.
3309 * Lua modules (Albert Krewinkel):
3311 + Add `pandoc.utils` module, to hold utility functions.
3312 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
3313 define the `pandoc` lua module.
3314 + Make a Haskell module for each Lua module. Move definitions for the
3315 `pandoc.mediabag` modules to a separate Haskell module.
3316 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
3317 + Add function `pandoc.utils.hierarchicalize` (convert list of
3318 Pandoc blocks into (hierarchical) list of Elements).
3319 + Add function `pandoc.utils.normalize_date` (parses a date and
3320 converts it (if possible) to "YYYY-MM-DD" format).
3321 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
3322 of numbers below 4000 into roman numerals).
3323 + Add function `pandoc.utils.stringify` (converts any AST element
3324 to a string with formatting removed).
3325 + `data/init.lua`: load `pandoc.utils` by default
3326 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
3327 utility functions are converted from hybrid lua/haskell functions
3328 into full Haskell functions. This avoids the need for intermediate
3329 `_pipe`/`_read` helper functions, which have dropped.
3330 + pandoc.lua: re-add missing MetaMap function. This was a bug
3331 introduced in version 2.0.4.
3333 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
3334 a pure way to insert an ersatz file into a `FileTree`. In addition, we
3335 normalize paths both on insertion and on lookup.
3337 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
3339 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
3341 * Text.Pandoc.Extensions: Alphabetical order constructors for
3342 `Extension`. This makes them appear in order in `--list-extensions`.
3344 * Allow lenient decoding of latex error logs, which are not always
3345 properly UTF8-encoded (#4200).
3347 * Update latex template to work with recent versions of beamer.
3348 The old template produced numbered sections with some recent
3349 versions of beamer. Thanks to Thomas Hodgson.
3351 * Updated reference.docx (#4175). Instead of just "Hello, world", the
3352 document now contains exemplars of most of the styles that have an
3353 effect on pandoc documents. This makes it easier to see the effect
3354 of style changes.
3356 * Removed `default.theme` data file (#4096). It is no longer needed now
3357 that we have `--print-highlight-style`.
3359 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
3360 We still need this for the alpine static linux build, since
3361 we don't have ghc 8.2.2 for that yet.
3363 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
3364 can put flag settings for pandoc-citeproc there.
3366 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
3367 make releases easier.
3369 * MANUAL.txt:
3371 + Add note on what formats have `+smart` by default.
3372 + Use native syntax for custom-style (#4174, Mauro Bieg).
3373 + Introduce dedicated Extensions section, since some extensions
3374 affect formats other than markdown (Mauro Bieg, #4204).
3375 + Clarify default html output for `--section-divs` (Richard Edwards).
3377 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
3378 Closes jgm/pandoc-website#16.
3380 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
3382pandoc (2.0.5)
3384 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
3385 generated with `--print-highlight-style` (#4133). Improve JSON
3386 serialization of styles.
3388 * Fix CSS issues involving line numbers (#4128).
3389 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
3390 Highlighting CSS no longer sets a generic color for pre and code; we only
3391 set these for class `sourceCode`.
3393 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
3395 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
3396 It works following the standard Pandoc conventions for making other
3397 sorts of slides. Caveats:
3399 + Syntax highlighting is not yet implemented. (This is difficult
3400 because there are no character classes in Powerpoint.)
3401 + Footnotes and Definition lists are not yet implemented. (Notes will
3402 usually take the form of a final slide.
3403 + Image placement and auto-resizing has a few glitches.
3404 + Reference powerpoint files don't work dependably from the command
3405 line. This will be implemented, but at the moment users are advised
3406 to change themes from within Powerpoint.
3408 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
3409 This is for functions used by both Powerpoint and Docx writers.
3411 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
3413 * Add `empty_paragraphs` extension.
3415 + Deprecate `--strip-empty-paragraphs` option. Instead we now
3416 use an `empty_paragraphs` extension that can be enabled on
3417 the reader or writer. By default, disabled.
3418 + Add `Ext_empty_paragraphs` constructor to `Extension`.
3419 + Revert "Docx reader: don't strip out empty paragraphs."
3420 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
3421 + Implement `empty_paragraphs` extension in docx reader and writer,
3422 opendocument writer, HTML reader and writer.
3423 + Add tests for `empty_paragraphs` extension.
3425 * Markdown reader:
3427 + Don't parse native div as table caption (#4119).
3428 + Improved computation of column widths in pipe tables.
3429 Pipe tables with lines longer than the text width (as set
3430 by `--columns`) are now scaled to text width, with the relative
3431 widths of columns determined by the ratios between the
3432 header lines. Previously we computed column widths using
3433 the ratio of header line lengths to column width, so that
3434 tables with narrow header lines were extremely thin, which
3435 was very rarely the desired result.
3437 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
3438 as long as it's not followed by a blank line. This has been fixed at the
3439 tokenizer level.
3441 * Muse reader (Alexander Krotov):
3443 + Add test for `#disable-tables` directive in Emacs mode.
3444 + Don't allow emphasis to be preceded by letter.
3445 + Add underline support in Emacs Muse mode..
3446 + Support multiline directives in Amusewiki mode
3448 * Man writer: omit internal links (#4136). That is, just print the link
3449 text without the URL.
3451 * Markdown reader: accept processing instructions as raw HTML (#4125).
3453 * Lua filters (Albert Krewinkel):
3455 + Use script to initialize the interpreter. The file `init.lua` is
3456 used to initialize the Lua interpreter which is used in Lua filters.
3457 This gives users the option to require libraries which they want to
3458 use in all of their filters, and to extend default modules.
3459 + Fix package loading for Lua 5.1. The list of package searchers is
3460 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
3461 in Lua 5.2 and later.
3462 + Refactor lua module handling. The integration with Lua's package/module
3463 system is improved: A pandoc-specific package searcher is prepended to
3464 the searchers in `package.searchers`. The modules `pandoc` and
3465 `pandoc.mediabag` can now be loaded via `require`.
3466 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
3467 function which makes using Haskell functions as package loaders much
3468 easier.
3470 * reveal.js template: add title-slide identifier to title slide (#4120).
3471 This allows it to be styled more easily.
3473 * LaTeX template: Added support for `pagestyle` variable (#4135,
3474 Thomas Hodgson)
3476 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
3477 error on linux).
3480pandoc (2.0.4)
3482 * Add `--print-highlight-style` option. This generates a JSON version
3483 of a highlighting style, which can be saved as a `.theme` file, modified,
3484 and used with `--highlight-style` (#4106, #4096).
3486 * Add `--strip-empty-paragraphs` option. This works for any input format.
3487 It is primarily intended for use with docx and odt documents where
3488 empty paragraphs have been used for inter-paragraph spaces.
3490 * Support `--webtex` for `gfm` output.
3492 * Recognize `.muse` file extension.
3494 * Support beamer `\alert` in LaTeX reader. Closes #4091.
3496 * Docx reader: don't strip out empty paragraphs (#2252).
3497 Users who have a conversion pipeline from docx may want to consider adding
3498 `--strip-empty-paragraphs` to the command line.
3500 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
3502 * Muse reader (Alexander Krotov):
3504 + Parse markup in definition list terms.
3505 + Allow definition to end with EOF.
3506 + Make code blocks round trip.
3507 + Drop common space prefix from list items.
3508 + Add partial round trip test.
3509 + Don't interpret XML entities.
3510 + Remove `nested`.
3511 + Parse `~~` as non-breaking space in Emacs mode.
3512 + Correctly remove indentation from notes. Exactly one space is
3513 required and considered to be part of the marker.
3514 + Allow list items to be empty.
3515 + Add ordered list test.
3516 + Add more multiline definition tests.
3517 + Don't allow blockquotes within lists.
3518 + Fix reading of multiline definitions.
3519 + Add inline `<literal>` support.
3520 + Concatenate inlines of the same type
3522 * Docx writer: allow empty paragraphs (#2252).
3524 * CommonMark/gfm writer:
3526 + Use raw html for native divs/spans (#4113). This allows a pandoc
3527 markdown native div or span to be rendered in gfm using raw html tags.
3528 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
3529 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
3531 * Muse writer (Alexander Krotov):
3533 + Test that inline math conversion result is normalized.
3534 Without normalization this test produced
3535 `<em>a</em><em>b</em><em>c</em>`.
3536 + Improve inline list normalization and move to writer.
3537 + Escape hash symbol.
3538 + Escape `----` to avoid accidental horizontal rules.
3539 + Escape only `</code>` inside code tag.
3540 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
3542 * LaTeX writer:
3544 + Allow specifying just width or height for image size.
3545 Previously both needed to be specified (unless the image was
3546 being resized to be smaller than its original size).
3547 If height but not width is specified, we now set width to
3548 textwidth. If width but not height is specified, we now set
3549 height to textheight. Since we have `keepaspectratio`, this
3550 yields the desired result.
3551 + Escape `~` and `_` in code with `--listings` (#4111).
3553 * HTML writer: export `tagWithAttributes`. This is a helper allowing
3554 other writers to create single HTML tags.
3556 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
3557 converting the case as needed in LaTeX and ConTeXt writers.
3559 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
3560 so that it no longer produces empty `Para`'s as an artifact.
3562 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
3563 This gives us automatic normalization, so we don't get
3564 for example two consecutive Spaces.
3566 * Include default CSS for 'underline' class in HTML-based templates.
3568 * revealjs template: add `tex2jax` configuration for the
3569 math plugin. With the next release of reveal.js, this will
3570 fix the problem of `$`s outside of math contexts being
3571 interpreted as math delimiters (#4027).
3573 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
3575 + Add basic lua List module (#4099, #4081). The List module is
3576 automatically loaded, but not assigned to a global variable. It can be
3577 included in filters by calling `List = require 'List'`. Lists of blocks,
3578 lists of inlines, and lists of classes are now given `List` as a metatable,
3579 making working with them more convenient. E.g., it is now possible to
3580 concatenate lists of inlines using Lua's concatenation operator `..`
3581 (requires at least one of the operants to have `List` as a metatable):
3583 function Emph (emph)
3584 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
3585 return pandoc.Span(emph.content .. s)
3586 end
3588 The `List` metatable is assigned to the tables which get passed to
3589 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
3590 enables the use of the resulting objects as lists.
3591 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
3592 Pandoc and Meta elements are now pushed by calling the respective
3593 constructor functions of the pandoc Lua module. This makes serialization
3594 consistent with the way blocks and inlines are pushed to lua and allows
3595 to use List methods with the `blocks` value.
3596 + Add documentation for pandoc.List in `lua-filters.md`.
3598 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
3599 `&` (but not a valid entity) following them (#4094, #4088).
3601 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
3602 when `numberLines` is used (#4103).
3604 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
3605 requiring a leading 0 on single-digit days.
3607 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
3608 Bieg, #4095).
3610 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
3611 Previously we only mentioned `--latexmathml`, even if `-m` was
3612 used.
3614 * Changelog: fix description of lua filters in 2.0 release
3615 (Albert Krewinkel). Lua filters were initially run *after* conventional
3616 (JSON) filters. However, this was changed later to make it easier to deal
3617 with files in the mediabag. The changelog is updated to describe that
3618 feature of the 2.0 release correctly.
3620 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
3621 #4085). This reduces compile time and memory usage significantly.
3623 * `lua-filters.md`: Added tikz filter example.
3625 * Create alternative zip file for macOS binaries.
3627 * Create alternative zip file for Windows binaries.
3629 * Update INSTALL.md since we now provide zips for binaries.
3631 * Relax `http-types` dependency (Justus Sagemüller, #4084).
3633 * Add `epub.md`, `getting-started.md` to docs. These used to live in
3634 the website repo.
3636 * Add `packages` target to Makefile.
3638 * Bump bounds for binary, http-types, tasty-hunit
3640pandoc (2.0.3)
3642 * Lua filters: preload text module (Albert Krewinkel, #4077).
3643 The `text` module is preloaded in lua. The module contains some UTF-8
3644 aware string functions, implemented in Haskell. The module is loaded on
3645 request only, e.g.:
3647 text = require 'text'
3648 function Str (s)
3649 s.text = text.upper(s.text)
3650 return s
3651 end
3653 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
3654 #4071). Attribute lists are represented as associative lists in Lua. Pure
3655 associative lists are awkward to work with. A metatable is attached to
3656 attribute lists, allowing to access and use the associative list as if
3657 the attributes were stored in as normal key-value pair in table.
3658 Note that this changes the way `pairs` works on attribute lists. Instead
3659 of producing integer keys and two-element tables, the resulting iterator
3660 function now returns the key and value of those pairs. Use `ipairs` to
3661 get the old behavior. Warning: the new iteration mechanism only works if
3662 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
3664 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
3665 This fixes a bug where pandoc would stop parsing a URI with an
3666 empty attribute: for example, `&a=&b=` wolud stop at `a`.
3667 (The uri parser tries to guess which punctuation characters
3668 are part of the URI and which might be punctuation after it.)
3670 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
3672 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
3673 `WriterOptions`.
3674 + Reimplemented `isEnabled` function from `Options.hs` to accept both
3675 `ReaderOptions` and `WriterOptions`.
3676 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
3678 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
3679 behavior for `muse`. New `Ext_amuse` constructor for
3680 `Extension`. Note: this is switched on by default; for
3681 Emacs behavior, use `muse-amuse`.
3683 * Muse reader (Alexander Krotov):
3685 + Count only one space as part of list item marker.
3686 + Produce SoftBreaks on newlines. Now wrapping can be preserved
3687 with `--wrap=preserve`.
3688 + Add Text::Amuse footnote extensions. Footnote end is indicated by
3689 indentation, so footnotes can be placed anywhere in the text,
3690 not just at the end of it.
3691 + Accept Emacs Muse definition lists when `-amuse`.
3692 Emacs Muse does not require indentation.
3694 * HTML reader:
3696 + Ensure we don't produce level 0 headers (#4076), even for chapter
3697 sections in epubs. This causes problems because writers aren't set
3698 up to expect these.
3699 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
3700 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
3701 `markdown` or `html` `+tex_math_single_backslash`.
3702 + Parse div with class `line-block` as LineBlock.
3703 + Don't fail with block-level content in figcaption (Mauro Bieg, #4183).
3705 * MANUAL: clarify that math extensions work with HTML.
3706 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
3707 will work with HTML as well as Markdown.
3709 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
3710 #4067).
3712 * RST reader: better support for 'container' directive (#4066).
3713 Create a div, incorporate name attribute and classes.
3715 * LaTeX reader:
3717 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
3718 `rr`. We now expand it like a macro.
3719 + Allow optional args for parbox (#4056).
3720 + Allow optional arguments on `\footnote` (#4062).
3722 * EPUB writer: Fixed path for cover image (#4069). It was previously
3723 `media/media/imagename`, and should have been `media/imagename`.
3725 * Markdown writer: fix bug with doubled footnotes in grid tables
3726 (#4061).
3728 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
3729 Otherwise we seem to get an error; biblatex wants polyglossia
3730 language to be defined.
3732 * Added examples to lua filters documentation.
3735pandoc (2.0.2)
3737 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
3738 `--mimetex`, `--jsmath`.
3740 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
3741 leading to invalid XML in default JATS output with pandoc-citeproc.
3743 * `lua-filters.md`: use real-world man page filter as example.
3745 * Add lua filter functions `walk_inline` and `walk_block`
3746 in the pandoc module, to apply filters inside particular
3747 inline and block elements.
3749 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
3750 into new internal module `Text.Pandoc.Lua.Filter`.
3752 * Markdown reader:
3754 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
3755 This brings our handling of them into alignment with CommonMark's.
3756 + Fix YAML metadata with "chomp" (`|-`). Previously if a
3757 YAML block under `|-` contained a blank line, pandoc would
3758 not parse it as metadata.
3760 * Removed `etc.` from abbreviations file. Often `etc.` ends a
3761 sentence, and we want the period to be treated as a
3762 sentence-ending period.
3764 * Fix regression with `--metadata` (#4054). Values specified with
3765 `--metadata` should replace a metadata value set in the document
3766 itself, rather than creating a list including a new value.
3768 * EPUB writer:
3770 + Fix EPUB OCF structure. #3720 had been improperly implemented.
3771 + Fix modified paths for raw HTML tags (src, poster, etc.)
3772 (#4050, #4055). This had not been updated for the new EPUB
3773 container layout, with a separate text/ subdirectory.
3774 + Fix image paths with empty `--epub-subdirectory`.
3776 * Miscellaneous code cleanup (Alexander Krotov).
3778 * Use pandoc-types 1.17.3, which adds `Walkable` instances
3779 for `[Block] Block` and `[Inline] Inline`.
3781 * Remove obsolete `stack.full.yaml` (#4052).
3783 * Change to using pandoc-citeproc 0.12.1 in binary packages.
3785 * Consolidate math output method documentation (#4049, Mauro Bieg).
3787 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
3789 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
3790 Haskell filters. This is easier and faster.
3792 * Improved `INSTALL.md`.
3794 * Update commands to extract deb archive on Linux (#4043, Salim B).
3797pandoc (2.0.1.1)
3799 * Improved fix to #3989 (parsing of HTML tags containing
3800 `>` in an attribute or comment). The previous fix (in 2.0.1) only
3801 worked in certain cases.
3803 * FB2 writer (Alexander Krotov):
3805 + Add `unrecognised` genre to `<title-info>`
3806 (Alexander Krotov). XML schema requires at least one genre.
3807 + Remove `<annotation>` from `<body>`.
3809 * CommonMark writer: fix strikethrough for `gfm` (#4038).
3811 * Use texmath 0.10, which adds support for a wider range of
3812 symbols and fixes default column alignments in MathML
3813 and OMML.
3815 * Highlighting fixes, using skylighting 0.4.3.2:
3817 + Fix invalid CSS.
3818 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
3819 + Ensure that code lines don't get duplicate identifiers (#4031).
3820 The line identifiers are built using the code block's identifier
3821 as a prefix. If the code block has null identifier, we use
3822 `cb1`, `cb2`, etc.
3824 * Added a few abbreviations to `data/abbreviations`,
3825 and sorted the list (#3984, Wandmalfarbe).
3827 * Improved support for columns in HTML writer (#4028).
3829 + Remove `width` attribute from the `div`.
3830 + Remove space between `<div class="column">` elements,
3831 since this prevents columns whose widths sum to 100%
3832 (the space takes up space).
3833 + Move as much as possible of the CSS to the template.
3834 + Ensure that all the HTML-based templates (including epub)
3835 contain the CSS for columns.
3836 + Columns default to 50% width unless they are given a width
3837 attribute. So if you want two equal-width columns, you
3838 can use a div with class `column` and no `width` attribute.
3840 * SelfContained: use `base64` for css links with media attribute (#4026).
3841 This fixes `--self-contained` with S5.
3843 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
3845 * Issue INFO, not WARNING, when a .sty file cannot be
3846 read in LaTeX reader. It is normally not an issue requiring
3847 a fix from the user if .sty files are not found.
3849 * INSTALL.md: MacOS instructions needed xar -f (adam234).
3851 * MANUAL.txt:
3853 + Clarify that --setext-headers doesn't affect gfm output (#4035).
3854 + Clarify what is needed to open and close a div in `fenced_divs`
3855 (#4039, Tristano Ajmone).
3856 + Removed reference to `default.beamer` in docs (#4024).
3857 Also added mention of other templates affecting PDF output
3858 with different settings.
3860pandoc (2.0.1)
3862 * Fixed regression in parsing of HTML comments in markdown and other
3863 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
3864 The parser stopped at the first `>` character, even if it wasn't
3865 the end of the comment.
3867 * Creole reader (Sascha Wilde):
3869 + Fix some minor typos and formatting.
3870 + Add additional test on nowiki-block after para.
3871 + Fix lists with trailing white space.
3873 * LaTeX reader: handle `%` comment right after command.
3874 For example, `\emph%`.
3876 * Markdown reader: make sure fenced div closers work in lists.
3877 Previously the following failed:
3879 ::: {.class}
3880 1. one
3881 2. two
3882 :::
3884 and you needed a blank line before the closing `:::`.
3886 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
3887 enabled, Divs will be rendered as fenced divs.
3889 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
3890 (#4016).
3892 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
3893 Note: this change may require some changes in CSS rules.
3894 `footnoteRef` has become `footnote-ref`, `titleslide` has
3895 become `title-slide`, and `footnoteBack` has become `footnote-back`.
3897 * JATS writer: Properly pass through author metadata (#4020).
3899 * FB2 writer (Alexander Krotov):
3901 + Write blocks outside of `<p>` in definitions.
3902 + Make bullet lists consistent with ordered lists, repeating
3903 the marker for the outer list rather than indenting sublists,
3904 since indentation does not work in readers.
3905 + Add new style FB2 tests.
3907 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
3908 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
3909 to 'cm'.
3911 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
3913 * Fix broken reference links in manual (Andrew Dunning, #4014)
3915 * Fixed example of slide columns structure in changelog (#4015).
3916 Also documented this feature in MANUAL.txt.
3919pandoc (2.0.0.1)
3921 * EPUB writer:
3923 + Fixed filepaths for nonstandard epub-subdirectory values.
3924 + Ensure that epub2 is recognized as a non-text format,
3925 so that a template is used.
3926 + Don't include "prefix" attribute for ibooks for epub2.
3927 It doesn't validate.
3928 + Fix stylesheet paths; previously we had an incorrect
3929 stylesheet path for the cover page and nav page.
3931 * LaTeX reader:
3933 + Insert space when needed in macro expansion (#4007).
3934 Sometimes we need to insert a space after a control sequence
3935 to prevent it merging with a following letter.
3936 + Allow unbraced arguments for macros (#4007).
3937 + Allow body of macro definition to be unbraced (#4007).
3939 * Linux package build: ensure that pandoc-citeproc is statically linked.
3941 * trypandoc: add native, ms.
3943pandoc (2.0)
3945 [new features]
3947 * New output format `ms` (groff ms). Complete support, including
3948 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
3949 texmath's new eqn writer to convert math to eqn format, so a ms file
3950 produced with this writer should be processed with `groff -ms -e` if
3951 it contains math.
3953 * New output format `jats` (Journal Article Tag Suite). This is an XML
3954 format used in archiving and publishing articles. Note that a
3955 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
3956 unless a stylesheet is specified using `--css`.
3958 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
3959 This uses bindings to GitHub's fork of cmark, so it should parse
3960 gfm exactly as GitHub does (excepting certain postprocessing
3961 steps, involving notifications, emojis, etc.). `markdown_github`
3962 has been deprecated in favor of `gfm`.
3964 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
3966 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
3967 This uses bindings to GitHub's fork of cmark. `markdown_github`
3968 has been deprecated in favor of `gfm`.
3970 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
3972 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
3974 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
3975 Note that there is a new data file, `data/vimwiki.css`, which can
3976 be used to display the HTML produced by this reader and
3977 pandoc's HTML writer in the style of vimwiki's own HTML
3978 export.
3980 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
3982 * New syntax for Divs, with `fenced_divs` extension enabled by
3983 default (#168). This gives an attractive, plain-text way to create
3984 containers for block-level content.
3986 * Added new syntax for including raw content in any output format,
3987 enabled by the `raw_attribute` extension (which is on by default
3988 for `markdown` and `multimarkdown`). The syntax is the same as
3989 for fenced code blocks or code inlines, only with `{=FORMAT}` for
3990 attributes, where `FORMAT` is the name of the output format
3991 (e.g., `ms`, `html`).
3993 * Implement multicolumn support for slide formats (#1710).
3994 The structure expected is:
3996 :::::::::::::: {.columns}
3997 ::: {.column width="40%"}
3998 contents...
3999 :::
4000 ::: {.column width="60%"}
4001 contents...
4002 :::
4003 ::::::::::::::
4005 Support has been added for beamer and all HTML slide formats.
4007 * Allows line comments in templates, beginning with `$--` (#3806).
4008 (Requires doctemplates 0.2.1.)
4010 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
4011 (Stefan Dresselhaus, #3663, #2097).
4013 * Add `--log` option to save log messages in JSON format to a file (#3392).
4015 * Add `--request-header` option, to set request headers when pandoc
4016 makes HTTP requests to fetch external resources. For example:
4017 `--request-header User-Agent:blah`.
4019 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
4020 option works like `--filter` but takes pathnames of special lua filters
4021 and uses the lua interpreter baked into pandoc, so that no external
4022 interpreter is needed. Note that lua filters are all applied before
4023 regular filters, regardless of their position on the command line.
4024 For documentation of lua filters, see `doc/lua-filters.md`.
4026 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
4027 This contains a JSON representation of `ReaderOptions`, so filters
4028 can access it.
4030 * Support creation of pdf via groff `ms` and pdfroff.
4031 `pandoc -t ms -o output.pdf input.txt`.
4033 * Support for PDF generation via HTML and `weasyprint` or `prince`
4034 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
4036 * Added `--epub-subdirectory` option (#3720). This specifies the
4037 subdirectory in the OCF container that holds the EPUB specific content.
4038 We now put all EPUB related content in an `EPUB/` subdirectory by default
4039 (later this will be configurable).
4041 ```
4042 mimetype
4043 META-INF/
4044 com.apple.ibooks.display-options.xml
4045 container.xml
4046 EPUB/ <<--configurable-->>
4047 fonts/ <<--static-->>
4048 font.otf
4049 media/ <<--static-->>
4050 cover.jpg
4051 fig1.jpg
4052 styles/ <<--static-->>
4053 stylesheet.css
4054 content.opf
4055 toc.ncx
4056 text/ <<--static-->>
4057 ch001.xhtml
4058 ```
4060 * Added `--resource-path=SEARCHPATH` command line option (#852).
4061 SEARCHPATH is separated by the usual character, depending on OS
4062 (: on unix, ; on windows). Default resource path is just working
4063 directory. However, the working directory must be explicitly
4064 specified if the `--resource-path` option is used.
4066 * Added `--abbreviations=FILE` option for custom abbreviations file
4067 (#256). Default abbreviations file (`data/abbreviations`) contains
4068 a list of strings that will be recognized by pandoc's
4069 Markdown parser as abbreviations. (A nonbreaking space will
4070 be inserted after the period, preventing a sentence space in
4071 formats like LaTeX.) Users can override the default by putting a file
4072 abbreviations in their user data directory (`~/.pandoc` on *nix).
4074 * Allow a theme file as argument to `--highlight-style`.
4075 Also include a sample, `default.theme`, in `data/`.
4077 * Allow `--syntax-definition` option for dynamic loading of syntax
4078 highlighting definitions (#3334).
4080 * Lists in `markdown` by default now use the CommonMark variable
4081 nesting rules (#3511). The indentation required for a block-level
4082 item to be included in a list item is no longer fixed, but is
4083 determined by the first line of the list item. To be included in
4084 the list item, a block must be indented to the level of the first
4085 non-space content after the list marker. Exception: if are 5 or more
4086 spaces after the list marker, then the content is interpreted as an
4087 indented code block, and continuation paragraphs must be indented
4088 two spaces beyond the end of the list marker. See the CommonMark
4089 spec for more details and examples.
4091 Documents that adhere to the four-space rule should, in most cases,
4092 be parsed the same way by the new rules. Here are some examples
4093 of texts that will be parsed differently:
4095 - a
4096 - b
4098 will be parsed as a list item with a sublist; under the four-space
4099 rule, it would be a list with two items.
4101 - a
4103 code
4105 Here we have an indented code block under the list item, even though it
4106 is only indented six spaces from the margin, because it is four spaces
4107 past the point where a continuation paragraph could begin. With the
4108 four-space rule, this would be a regular paragraph rather than a code
4109 block.
4111 - a
4113 code
4115 Here the code block will start with two spaces, whereas under
4116 the four-space rule, it would start with `code`. With the four-space
4117 rule, indented code under a list item always must be indented eight
4118 spaces from the margin, while the new rules require only that it
4119 be indented four spaces from the beginning of the first non-space
4120 text after the list marker (here, `a`).
4122 This change was motivated by a slew of bug reports from people
4123 who expected lists to work differently (#3125, #2367, #2575, #2210,
4124 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
4125 of CommonMark (now used by GitHub, for example). Those who
4126 prefer the old behavior can use `-f markdown+four_space_rule`.
4128 * Added `four_space_rule` extension. This triggers the old pandoc
4129 parsing rule for content nested under list items (the "four space
4130 rule").
4132 * Added `spaced_reference_links` extension (#2602). It allows whitespace
4133 between the two parts of a reference link: e.g.
4135 [a] [b]
4137 [b]: url
4139 This was previously enabled by default; it is now forbidden by default.
4141 * Add `space_in_atx_header` extension (#3512). This is enabled by default
4142 in pandoc and GitHub markdown but not the other flavors.
4143 This requires a space between the opening #'s and the header
4144 text in ATX headers (as CommonMark does but many other implementations
4145 do not). This is desirable to avoid falsely capturing things like
4147 #hashtag
4149 or
4151 #5
4153 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
4154 #3431).
4156 * Allow ibooks-specific metadata in epubs (#2693). You can now have
4157 the following fields in your YAML metadata, and it will be treated
4158 appropriately in the generated EPUB:
4160 ```
4161 ibooks:
4162 version: 1.3.4
4163 specified-fonts: false
4164 ipad-orientation-lock: portrait-only
4165 iphone-orientation-lock: landscape-only
4166 binding: true
4167 scroll-axis: vertical
4168 ```
4171 [behavior changes]
4173 * Reader functions no longer presuppose that CRs have been
4174 stripped from the input. (They strip CRs themselves, before
4175 parsing, to simplify the parsers.)
4177 * Added support for translations (localization) (#3559).
4178 Currently this only affects the LaTeX reader, for things
4179 like `\figurename`. Translation data files for 46 languages
4180 can be found in `data/translations`.
4182 * Make `--ascii` work with DocBook output too.
4184 * Rename `--latex-engine` to `--pdf-engine`,
4185 and `--latex-engine-opt` to `--pdf-engine-opt`.
4187 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
4188 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
4189 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
4190 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
4192 * With `--filter` R filters are now recognized, even if they are
4193 not executable (#3940, #3941, Andrie de Vries).
4195 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
4197 * Make epub an alias for epub3, not epub2.
4199 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
4200 Multiple stylesheets may be used. Stylesheets will be taken both from
4201 `--css` and from the `stylesheet` metadata field (which can contain
4202 either a file path or a list of them).
4204 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
4205 The argument was for a bridge JavaScript that used to be necessary
4206 in 2004. We have removed the script already.
4208 * `--katex` improvements. The latest version is used, and the
4209 autoload script is loaded by default.
4211 * Change MathJax CDN default since old one is shutting down (#3544).
4212 Note: The new URL requires a version number, which we'll have
4213 to update manually in subsequent pandoc releases in order to
4214 take advantage of mathjax improvements.
4216 * `--self-contained`: don't incorporate elements with `data-external="1"`
4217 (#2656). You can leave an external link as it is by adding the attribute
4218 data-external="1" to the element. Pandoc will then not try to
4219 incorporate its content when `--self-contained` is used. This is
4220 similar to a feature already supported by the EPUB writer.
4222 * Allow `--extract-media` to work with non-binary input formats
4223 (#1583, #2289). If `--extract-media` is supplied with a non-binary
4224 input format, pandoc will attempt to extract the contents of all
4225 linked images, whether in local files, data: uris, or external uris.
4226 They will be named based on the sha1 hash of the contents.
4228 * Make `papersize: a4` work regardless of the case of `a4`.
4229 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
4231 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
4233 * Underlined elements are now treated consistently by readers
4234 (#2270, hftf); they are always put in a Span with class `underline`.
4235 This allows the user to treat them differently from other emphasis,
4236 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
4237 have been changed.
4239 * Improved behavior of `auto_identifiers` when there are explicit ids
4240 (#1745). Previously only autogenerated ids were added to the list
4241 of header identifiers in state, so explicit ids weren't taken
4242 into account when generating unique identifiers. Duplicated
4243 identifiers could result. This simple fix ensures that explicitly given
4244 identifiers are also taken into account.
4246 * Use `table-of-contents` for contents of toc, make `toc` a boolean
4247 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
4248 This allows you to set `toc: true` in the metadata; this
4249 previously produced strange results in some output formats.
4250 For backwards compatibility, `toc` is still set to the
4251 toc contents. But it is recommended that you update templates
4252 to use `table-of-contents` for the toc contents and `toc`
4253 for a boolean flag.
4255 * Change behavior with binary format output to stdout.
4256 Previously, for binary formats, output to stdout was disabled
4257 unless we could detect that the output was being piped (and not
4258 sent to the terminal). Unfortunately, such detection is not
4259 possible on Windows, leaving windows users no way to pipe binary
4260 output. So we have changed the behavior in the following way:
4262 + Output to stdout is allowed when it can be determined that
4263 the output is being piped (on non-Windows platforms).
4264 + If the `-o` option is not used, binary output is never sent
4265 to stdout by default; instead, an error is raised.
4266 + If `-o -` is used, binary output is sent to stdout, regardless
4267 of whether it is being piped. This works on Windows too.
4269 * Better error behavior: uses of `error` have been replaced by
4270 raising of `PandocError`, which can be trapped and handled by the
4271 calling program.
4273 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
4274 GitHub has two Markdown modes, one for long-form documents like READMEs
4275 and one for short things like issue comments. In issue comments, a line
4276 break is treated as a hard line break. In README, wikis, etc., it is
4277 treated as a space as in regular Markdown. Since pandoc is more likely to
4278 be used to convert long-form documents from GitHub Markdown,
4279 `-hard_line_breaks` is a better default.
4281 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
4283 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
4284 Previously they would be transmitted to the template without any
4285 escaping. Note that `--M title='*foo*'` yields a different result from
4287 ---
4288 title: *foo*
4289 ---
4291 In the latter case, we have emphasis; in the former case, just
4292 a string with literal asterisks (which will be escaped
4293 in formats, like Markdown, that require it).
4295 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
4297 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
4298 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
4299 it is valid HTML5. HTML4 is not affected. This will allow us to use
4300 custom attributes in pandoc without producing invalid HTML. (With help
4301 from Wandmalfarbe, #3817.)
4303 * Plain writer: improved super/subscript rendering. We now
4304 handle more non-digit characters for which there are
4305 sub/superscripted unicode characters. When unicode
4306 sub/superscripted characters are not available, we use
4307 `_(..)` or `^(..)` (#3518).
4309 * Docbook, JATS, TEI writers: print INFO message when omitting interior
4310 header (#3750). This only applies to section headers inside list items,
4311 e.g., which were otherwise silently omitted.
4313 * Change to `--reference-links` in Markdown writer (#3701). With
4314 `--reference-location` of `section` or `block`, pandoc will now repeat
4315 references that have been used in earlier sections. The Markdown
4316 reader has also been modified, so that *exactly* repeated references
4317 do not generate a warning, only references with the same label but
4318 different targets. The idea is that, with references after every block,
4319 one might want to repeat references sometimes.
4321 * ODT/OpenDocument writer:
4323 + Support `lang` attribute (#1667).
4324 + Added support for `--toc` (#2836). Thanks to @anayrat.
4326 * Docx writer:
4328 + `lang` meta, see #1667 (Mauro Bieg, #3515).
4329 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
4330 + Use `Table` rather than `Table Normal` for table style (#3275).
4331 `Table Normal` is the default table style and can't be modified.
4332 + Pass through comments (#2994). We assume that comments are defined as
4333 parsed by the docx reader:
4335 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
4336 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
4337 have a comment <span class="comment-end" id="0"></span>on it.
4339 We assume also that the id attributes are unique and properly
4340 matched between comment-start and comment-end.
4341 + Bookmark improvements. Bookmark start/end now surrounds content rather
4342 than preceding it. Bookmarks generated for Div with id
4343 (jgm/pandoc-citeproc#205).
4344 + Add `keywords` metadata to docx document properties (Ian).
4346 * RST writer: support unknown interpreted text roles by
4347 parsing them as `Span` with `role` attributes (#3407). This
4348 way they can be manipulated in the AST.
4350 * HTML writer:
4352 + Line block: Use class instead of style attribute (#1623). We now
4353 issue `<div class="line-block">` and include a default definition
4354 for `line-block` in the default templates, instead of hard-coding a
4355 `style` on the div.
4356 + Add class `footnoteBack` to footnote back references (Timm Albers).
4357 This allows for easier CSS styling.
4358 + Render SmallCaps as span with smallcaps class (#1592), rather than
4359 using a style attribute directly. This gives the user more flexibility
4360 in styling small caps in CSS.
4361 + With reveal.js we use `data-src` instead of `src` for images for
4362 lazy loading.
4363 + Special-case `.stretch` class for images in reveal.js (#1291).
4364 Now in reveal.js, an image with class `stretch` in a paragraph
4365 by itself will stretch to fill the whole screen, with no
4366 caption or figure environment.
4368 * Added warnings for non-rendered blocks to writers.
4370 * Writers now raise an error on template failure.
4372 * When creating a PDF via LaTeX, warn if the font is missing some
4373 characters (#3742).
4375 * Remove initial check for PDF-creating program (#3819).
4376 Instead, just try running it and raise the exception if it
4377 isn't found at that point. This improves things for users of Cygwin
4378 on Windows, where the executable won't be found by `findExecutable`
4379 unless `.exe` is added. The same exception is raised as before, but
4380 at a later point.
4382 * Readers issue warning for duplicate header identifiers (#1745).
4383 Autogenerated header identifiers are given suffixes so as not to clash
4384 with previously used header identifiers. But they may still coincide with
4385 an explicit identifier that is given for a header later in the document,
4386 or with an identifier on a div, span, link, or image. We now issue
4387 a warning in this case, so users can supply an explicit identifier.
4389 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
4390 and `raw_html` extensions.
4392 * Markdown reader:
4394 + Don't allow backslash + newline to affect block structure (#3730).
4395 Note that as a result of this change, the following, which formerly
4396 produced a header with two lines separated by a line break, will
4397 now produce a header followed by a paragraph:
4399 # Hi\
4400 there
4402 This may affect some existing documents that relied on
4403 this undocumented and unintended behavior. This change makes pandoc
4404 more consistent with other Markdown implementations, and with itself
4405 (since the two-space version of a line break doesn't work inside ATX
4406 headers, and neither version works inside Setext headers).
4408 + A space between the opening # and the header is now required for
4409 pandoc and GitHub markdown (but not the other flavors). Disable
4410 the `space_in_atx_header` extension (#3512) to restore the
4411 original behavior.
4414 * Org reader (Albert Krewinkel, unless noted):
4416 + Support `table.el` tables (#3314).
4417 + Support macros (#3401).
4418 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
4419 Recognized include types are `example`, `export`, `src`, and
4420 normal org file inclusion. Advanced features like line numbers
4421 and level selection are not implemented yet.
4422 + Interpret more meta value as inlines. The values of the following
4423 meta variables are now interpreted using org-markup instead of
4424 treating them as pure strings: `keywords` (comma-separated list of
4425 inlines), `subtitle` (inline values), `nocite` (inline values, can
4426 be repeated).
4427 + Support `\n` export option (#3940). This turns all newlines in the
4428 text into hard linebreaks.
4430 * RST reader:
4432 + Improved admonition support (#223). We no longer add an
4433 `admonition` class, we just use the class for the type of admonition,
4434 `note` for example. We put the word corresponding to the label in
4435 a paragraph inside a `Div` at the beginning of the admonition with
4436 class `admonition-title`. This is about as close as we can get to
4437 RST's own output.
4438 + Initial support of `.. table` directive. This allows adding captions
4439 to tables.
4440 + Support `.. line-block` directive. This is deprecated but may still
4441 be in older documents.
4442 + Support scale and align attributes of images (#2662).
4443 + Implemented implicit internal header links (#3475).
4444 + Support RST-style citations (#853). The citations appear at the end
4445 of the document as a definition list in a special div with id
4446 `citations`. Citations link to the definitions.
4447 + Recurse into bodies of unknown directives (#3432).
4448 In most cases it's better to preserve the content than
4449 to emit it. This isn't guaranteed to have good results;
4450 it will fail spectacularly for unknown raw or verbatim directives.
4451 + Handle chained link definitions (#262). For example,
4453 .. _hello:
4454 .. _goodbye: example.com
4456 Here both `hello` and `goodbye` should link to `example.com`.
4457 + Support anchors (#262). E.g.
4459 `hello`
4461 .. _hello:
4463 paragraph
4465 This is supported by putting "paragraph" in a `Div` with id `hello`.
4466 + Support `:widths:` attribute for table directive.
4467 + Implement csv-table directive (#3533). Most attributes are supported,
4468 including `:file:` and `:url:`.
4469 + Support unknown interpreted text roles by parsing them as Span
4470 with "role" attributes (#3407). This way they can be manipulated in
4471 the AST.
4473 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
4475 * LaTeX reader:
4477 + Implemented `\graphicspath` (#736).
4478 + Properly handle column prefixes/suffixes. For example, in
4479 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
4480 each cell will be interpreted as if it has a `$`
4481 before its content and a `$` after (math mode).
4482 + Handle komascript `\dedication` (#1845). It now adds a
4483 `dedication` field to metadata. It is up to the user to supply
4484 a template that uses this variable.
4485 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
4486 `sf`, `bf` (#3488). Spans with a class are used when there is
4487 nothing better.
4488 + Expand `\newenvironment` macros (#987).
4489 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
4490 + Better support for subfigure package (#3577).
4491 A figure with two subfigures turns into two pandoc
4492 figures; the subcaptions are used and the main caption
4493 ignored, unless there are no subcaptions.
4494 + Add support for \vdots (Marc Schreiber, #3607).
4495 + Add basic support for hyphenat package (Marc Schreiber, #3603).
4496 + Add basic `\textcolor` support (Marc Schreiber).
4497 + Add support for `tabularx` environment (Marc Schreiber, #3632).
4498 + Better handling of comments inside math environments (#3113).
4499 This solves a problem with commented out `\end{eqnarray}` inside
4500 an eqnarray (among other things).
4501 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
4502 is selected (#3692). Otherwise skip with a warning. This is better
4503 than trying to parse it as text!
4504 + Add `\colorbox` support (Marc Schreiber).
4505 + Set identifiers on Spans used for `\label`.
4506 + Have `\setmainlanguage` set `lang` in metadata.
4507 + Support etoolbox's `\ifstrequal`.
4508 + Support `plainbreak`, `fancybreak` et al from the memoir class
4509 (bucklereed, #3833).
4510 + Support `\let`. Also, fix regular macros so they're expanded at the
4511 point of use, and NOT also the point of definition. `\let` macros,
4512 by contrast, are expanded at the point of definition. Added an
4513 `ExpansionPoint` field to `Macro` to track this difference.
4514 + Support simple `\def` macros. Note that we still don't support
4515 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
4516 + Support \chaptername, \partname, \abstractname, etc. (#3559,
4517 obsoletes #3560).
4518 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
4519 attributes, so they can be handled in filters (Marc Schreiber, #3639)
4520 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
4521 #3589). Acronyms are not resolved by the reader, but acronym and
4522 glossary information is put into attributes on Spans so that they
4523 can be processed in filters.
4524 + Use `Link` instead of `Span` for `\ref`. This makes more sense
4525 semantically and avoids unnecessary `Span [Link]` nestings when
4526 references are resolved.
4527 + Rudimentary support for `\hyperlink`.
4528 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
4529 + Support `\lq`, `\rq`.
4530 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
4531 (#3853).
4532 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
4533 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
4534 + Support `\k` ogonek accent.
4535 + Improve handling of accents. Handle ogonek, and fall back correctly
4536 with forms like `\"{}`.
4537 + Better support for ogonek accents.
4538 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
4539 + Support for `xspace` (Marc Schreiber, #3797).
4540 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
4541 and `\figurename`.
4542 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
4543 level 0 headers, and parts as level -1 headers. After parsing, we
4544 check for the lowest header level, and if it's less than 1 we bump
4545 everything up so that 1 is the lowest header level. So `\part` will
4546 always produce a header; no command-line options are needed.
4547 + Add block version of `\textcolor` (Marc Schreiber).
4548 + `\textcolor` works as inline and block command (Marc Schreiber).
4549 + `\textcolor` will be parse as span at the beginning of a paragraph
4550 (Marc Schreiber).
4551 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
4552 + Improved handling of include files in LaTeX reader (#3971).
4553 Previously `\include` wouldn't work if the included file
4554 contained, e.g., a begin without a matching end.
4555 + Support `\expandafter` (#3983).
4556 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
4557 as a synonym for `\newcommand`.
4558 + Handle `\lettrine` (Mauro Bieg).
4560 * Math improvements due to updates in texmath:
4562 + Improved handling of accents and upper/lower delimiters.
4563 + Support for output in GNU eqn format (used with *roff).
4564 + Allow `\boldsymbol` + a token without braces, and similarly
4565 with other styling commands.
4566 + Improve parsing of `\mathop` to allow multi-character operator names.
4567 + Add thin space after math operators when "faking it with
4568 unicode."
4570 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
4571 instance for `a -> [a]` (pandoc-types). Note that behavior
4572 will be slightly different, since `bottomUp`'s treatment of
4573 a function `[a] -> [a]` is to apply it to each sublist of a
4574 list, while walk applies it only to maximal sublists.
4575 Usually the latter behavior is what is wanted, and the
4576 former can be simulated when needed. But there may be
4577 existing filters that need to be rewritten in light of the
4578 new behavior. Performance should be improved.
4580 * There are some changes to syntax highlighting due to revisions
4581 in the `skylighting` library:
4583 + Support for `powershell` has been added, and many syntax
4584 definitions have been updated.
4585 + Background colors have been added to the `kate` style.
4586 + The way highlighted code blocks are formatted in HTML has
4587 been changed (David Baynard), in ways that may require
4588 changes in hard-coded CSS affecting highlighting.
4589 (If you haven't included hard-coded highlighting CSS in
4590 your template, you needn't change anything.)
4593 [API changes]
4595 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
4596 This contains definitions of the `PandocMonad` typeclass, the
4597 `PandocIO` and `PandocPure` monads, and associated functions.
4599 * Changed types of all writers and readers.
4601 + We now use `Text` instead of `String` in the interface (#3731).
4602 (We have not yet changed the internals of most readers to work
4603 with `Text`, but making this change in the API now opens up a
4604 path to doing that.)
4605 + The result is now of form `m a` with constraint `PandocMonad m`.
4606 Readers and writers can be combined to form monadic values which
4607 can be run using either `runIO` or `runPure`. If `runIO` is used,
4608 then both readers and writers will be able to do IO when needed
4609 (for include files, for example); if `runPure` is used,
4610 then the functions are pure and will not touch IO.
4611 + Where previously you used
4612 `writeRST def (readMarkdown def "[foo](url)")`, now you
4613 would use
4614 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
4616 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
4617 contains reader helper functions formerly defined in the
4618 top-level `Text.Pandoc` module.
4620 + Changed `StringReader` -> `TextReader`.
4621 + `getReader` now returns a pair of a reader and
4622 `Extensions`, instead of building the extensions into the
4623 reader (#3659). The calling code must explicitly set
4624 `readerExtensions` using the `Extensions` returned. The
4625 point of the change is to make it possible for the calling
4626 code to determine what extensions are being used.
4628 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
4629 This contains writer helper functions formerly defined in the
4630 top-level `Text.Pandoc` module.
4632 + Changed `StringWriter` -> `TextWriter`.
4633 + `getWriter` now returns a pair of a reader and
4634 `Extensions`, instead of building the extensions into the
4635 reader (#3659). The calling code must explicitly set
4636 `readerExtensions` using the `Extensions` returned. The
4637 point of the change is to make it possible for the calling
4638 code to determine what extensions are being used.
4640 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
4641 #3514).
4643 * New module `Text.Pandoc.App`. This abstracts out the functionality
4644 of the command line program (`convertWithOpts`), so it can be reproduced
4645 e.g. in a desktop or web application. Instead of exiting, we throw errors
4646 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
4647 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
4648 The module also exports some utility functions for parsing options
4649 and running filters.
4651 * New module `Text.Pandoc.Logging` (exported module) (#3392).
4652 This now contains the `Verbosity` definition previously in
4653 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
4654 eventually be used instead of raw strings for warnings. This will enable
4655 us, among other things, to provide machine-readable warnings if desired.
4656 Include ToJSON instance and showLogMessage. This gives us the possibility
4657 of both machine-readable and human-readable output for log messages.
4659 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
4661 * New module `Text.Pandoc.Translations`, exporting `Term`,
4662 `Translations`, `readTranslations`.
4664 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
4665 `TokType`, `Line`, `Column`.
4667 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
4669 * Expose some previously private modules (#3260). These are often
4670 helpful to people writing their own reader or writer modules:
4672 + `Text.Pandoc.Writers.Shared`
4673 + `Text.Pandoc.Parsing`
4674 + `Text.Pandoc.Asciify`
4675 + `Text.Pandoc.Emoji`
4676 + `Text.Pandoc.ImageSize`
4677 + `Text.Pandoc.Highlighting`
4679 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
4680 Extension parsing and processing functions were defined in the top-level
4681 `Text.Pandoc` module. These functions are moved to the Extensions
4682 submodule as to enable reuse in other submodules.
4684 * Add `Ext_raw_attribute` constructor for `Extension`.
4686 * Add `Ext_fenced_divs` constructor for `Extension'.
4688 * Add `Ext_four_space_rule` constructor in `Extension`.
4690 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
4692 * Add `Monoid` instance for `Extensions`.
4694 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
4696 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
4698 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
4700 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
4702 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
4704 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
4706 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
4708 * Export `setVerbosity` from `Text.Pandoc`.
4710 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
4712 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
4714 * `Text.Pandoc.UTF8`:
4716 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
4717 Define `toString`, `toStringLazy` in terms of them.
4718 + Add new functions parameterized on `Newline`: `writeFileWith`,
4719 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
4721 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
4723 * `Text.Pandoc.Highlighting`:
4725 + `highlighting` now returns an Either rather than Maybe.
4726 This allows us to display error information returned by the skylighting
4727 library. Display a warning if the highlighting library throws an error.
4728 + Add parameter for `SyntaxMap` to `highlight`.
4730 * `Text.Pandoc.Writers.Math`:
4732 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
4733 we only need to update these in one place.
4735 * `Text.Pandoc.SelfContained`:
4737 + Removed `WriterOptions` parameter from `makeSelfContained`.
4738 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
4739 the need to pass MediaBag around and improves exceptions. It also
4740 opens up the possibility of using makeSelfContained purely.
4741 + Export `makeDataURI`.
4743 * `Text.Pandoc.ImageSize`:
4745 + Export `lengthToDim`, new function `scaleDimension`.
4746 + Export `inEm` from ImageSize (#3450).
4747 + Change `showFl` and `show` instance for `Dimension` so
4748 extra decimal places are omitted.
4749 + Added `Em` as a constructor of `Dimension`.
4750 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
4752 * `Text.Pandoc.Templates`:
4754 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
4755 and raises a proper `PandocTemplateError` if there are problems, rather
4756 than failing with uncatchable `error`.
4757 + Change signature of `getDefaultTemplate`. Now it runs in any instance
4758 of `PandocMonad`, and returns a `String` rather than an `Either` value.
4759 And it no longer takes a `datadir` parameter, since this can be
4760 retrieved from `CommonState`.
4762 * `Text.Pandoc.Options`:
4764 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
4765 The EPUB writer now takes its EPUB subdirectory from this option.
4766 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
4767 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
4768 + Add `writerSyntaxMap` to `WriterOptions`.
4769 + Removed `writerEpubStylesheet` from `WriterOptions`.
4770 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
4771 in `CommonState` in `PandocMonad` instances. (And thus it can be used
4772 by readers too.)
4773 + Changed `writerEpubMetadata` to a `Maybe String`.
4774 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
4775 the `latex_macros` reader extension.
4776 + FromJSON/ToJSON instances for `ReaderOptions`.
4777 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
4778 one string (for the KaTeX base URL), rather than two.
4779 + Removed `writerSourceURL` from `WriterOptions`. We now use
4780 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
4782 * `Text.Pandoc.Shared`:
4784 + `tabFilter` now takes a `Text`, not `String`.
4785 + `openURL`: Changed type from an Either. Now it will just raise
4786 an exception to be trapped later.
4787 + Remove `normalizeSpaces` (#1530).
4788 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
4789 + Export a new function `crFilter`.
4790 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
4791 + Provide custom `isURI` that rejects unknown schemes.
4792 (Albert Krewinkel, #2713). We also export the set of known
4793 `schemes`. The new function replaces the function of the same name
4794 from `Network.URI`, as the latter did not check whether a scheme is
4795 well-known. All official IANA schemes (as of 2017-05-22) are
4796 included in the set of known schemes. The four non-official schemes
4797 `doi`, `isbn`, `javascript`, and `pmid` are kept.
4798 + Remove `err`.
4799 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
4800 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
4801 where they are defined in terms of `PandocMonad`
4802 primitives and have different signatures.
4803 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
4804 + Add `underlineSpan`.
4806 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
4808 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
4809 With the new API one can simply use `getLog` after running
4810 the reader.
4812 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
4813 and `rawLaTeXBlock`. (Both now return a `String`, and they are
4814 polymorphic in state.)
4817 [bug fixes and under-the-hood improvements]
4819 * TEI writer: Added identifiers on `<div>` elements.
4821 * DokuWiki reader: Better handling for code block in list item (#3824).
4823 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
4825 * ZimWiki writer: Removed internal formatting from note and table cells,
4826 because ZimWiki does not support it (Alex Ivkin, #3446).
4828 * MediaWiki writer:
4830 + Updated list of syntax highlighting languages (#3461).
4831 Now `r` gets you `<source>` rather than `<code>` (among others).
4832 + Add display attribute on `<math>` tags (#3452). This allows display
4833 math to be rendered properly.
4834 + Remove newline before `</ref>` (#2652).
4835 + Don't softbreak lines inside list items (#3531).
4837 * Org writer:
4839 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
4840 + Add unit tests (Alexander Krotov).
4841 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
4842 + Do not strip `#` from Org anchor links (Alexander Krotov).
4844 * CommonMark writer:
4846 + Avoid excess blank lines at end of output.
4847 + Prefer pipe tables to HTML tables even if it means losing relative
4848 column width information (#3734).
4849 + Support table, strikethrough extensions, when enabled (as with gfm).
4850 Note that we bypass the commonmark writer from cmark and construct our
4851 own pipe tables, with better results.
4852 + Properly support `--wrap=none`.
4853 + Use smallcaps class for `SmallCaps` (#1592).
4854 + Omit "fig:" prefix in image titles. This is used internally to
4855 indicate internal figures.
4857 * RST writer:
4859 + Properly handle table captions.
4860 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
4861 + Implemented `+/-smart` and improved escaping with `+smart`.
4862 + Add empty comments when needed to avoid including a blockquote
4863 in the indented content of a preceding block (#3675).
4864 + Improve grid table output, fix bug with empty rows (#3516).
4865 Uses the new `gridTable` in Writers.Shared, which is here
4866 improved to better handle 0-width cells.
4867 + Remove space at beginning/end of RST code span (#3496). Otherwise
4868 we get invalid RST. There seems to be no way to escape the space.
4869 + Add header anchors when header has non-standard id (#3937).
4870 + Correctly handle inline code containing backticks, using a `:literal:`
4871 role (#3974).
4872 + Don't backslash-escape word-internal punctuation (#3978).
4874 * Markdown writer:
4876 + Don't include variables in metadata blocks. Previously variables set
4877 on the command line were included in e.g. YAML metadata, contrary to
4878 documentation and intentions.
4879 + Improved escaping with `+smart`.
4880 + Fixed grid tables embedded in grid tables (#2834).
4881 + Use span with class 'smallcaps' for SmallCaps, instead of a style
4882 attribute as before (#1592).
4883 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
4884 extension is enabled (#3454). Otherwise in a document starting with
4885 a literal `%` the first line is wrongly interpreted as a title.
4886 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
4887 properly escape things that would otherwise start ordered lists,
4888 such as
4890 ---
4891 title: 1. inline
4892 ...
4893 + Better handling of tables with empty columns (#3337). We now
4894 calculate the number of columns based on the longest row (or the
4895 length of aligns or widths).
4896 + Escape unordered list markers at beginning of paragraph (#3497), to
4897 avoid false interpretation as a list.
4898 + Escape `|` appropriately.
4899 + Ensure space before list at top level (#3487).
4900 + Avoid spurious blanklines at end of document after tables and list,
4901 for example.
4902 + Fixed bugs in simple/multiline list output (#3384).
4903 Previously we got overlong lists with `--wrap=none`. This is fixed.
4904 Previously a multiline list could become a simple list (and would
4905 always become one with `--wrap=none`).
4906 + Don't emit a simple table if `simple_tables` disabled (#3529).
4907 + Case-insensitive reference links (David A Roberts, #3616).
4908 Ensure that we do not generate reference links whose labels differ only
4909 by case. Also allow implicit reference links when the link
4910 text and label are identical up to case.
4911 + Put space before reference link definitions (Mauro Bieg, #3630).
4912 + Better escaping for links (David A. Roberts, #3619). Previously the
4913 Markdown writer would sometimes create links where there were none
4914 in the source. This is now avoided by selectively escaping bracket
4915 characters when they occur in a place where a link might be created.
4916 + Added missing `\n` (David A. Roberts, #3647).
4917 + Fixed duplicated reference links with `--reference-links`
4918 and `--reference-location=section` (#3674). Also ensure that there
4919 are no empty link references `[]`.
4920 + Avoid inline surround-marking with empty content (#3715).
4921 E.g. we don't want `<strong></strong>` to become `****`.
4922 Similarly for emphasis, super/subscript, strikeout.
4923 + Don't allow soft break in header (#3736).
4924 + Make sure `plain`, `markdown_github`, etc. work for raw.
4925 Previously only `markdown` worked. Note: currently a raw block labeled
4926 `markdown_github` will be printed for any `markdown` format.
4927 + Ensure that `+` and `-` are escaped properly so they don't cause
4928 spurious lists (#3773). Previously they were only
4929 if succeeded by a space, not if they were at end of line.
4930 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
4931 even if the table has relative width information (#3734).
4932 + Markdown writer: don't crash on `Str ""`.
4933 + Make `Span` with null attribute transparent. That is, we don't use
4934 brackets or `<span>` tags to mark spans when there are no attributes;
4935 we simply output the contents.
4936 + Escape pipe characters when `pipe_tables` enabled (#3887).
4937 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
4938 we backslash escape these. Otherwise we use entities as before.
4939 + When writing plain, don't use `&nbsp;` to separate list and indented
4940 code. There's no need for it in this context, since this isn't to be
4941 interpreted using Markdown rules.
4942 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
4943 HTML links containing classes originally now preserve them when using
4944 JavaScript email obfuscation.
4945 + Render `SmallCaps` as a native span when `native_spans` are enabled.
4946 + Always write attributes with `bracketed_spans` (d-dorazio).
4948 * Man writer:
4950 + Fix handling of nested font commands (#3568). Previously pandoc emitted
4951 incorrect markup for bold + italic, for example, or bold + code.
4952 + Avoid error for definition lists with no definitions (#3832).
4954 * DocBook writer:
4956 + Fix internal links with `writerIdentifierPrefix opt`
4957 (#3397, Mauro Bieg).
4959 * Docx writer:
4961 + Don't include bookmarks on headers unless non-null id (#3476).
4962 + Support 9 levels of headers (#1642).
4963 + Allow 9 list levels (#3519).
4964 + Don't take `distArchive` from datadir (#3322). The docx writer takes
4965 components from the distribution's version of `reference.docx` when it
4966 can't find them in a user's custom `reference.docx`. Previously, we
4967 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
4968 to be used as the distribution's reference.docx. This led to a
4969 bizarre situation where pandoc would produce a good docx using
4970 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
4971 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
4972 + Fixed handling of soft hyphen (0173) (#3691).
4973 + Better handling of keywords (#3719).
4974 + Cleaner code for handling dir and style attributes for `Div`.
4975 + Use `Set` for dynamic styles to avoid duplicates.
4976 + Removed redundant element from data/docx/word/numbering.xml.
4977 The elements we need are generated when the document is
4978 compiled; this didn't do anything.
4979 + Activate `evenAndOddHeaders` from reference docx (#3901,
4980 Augustín Martín Barbero).
4982 * ODT/OpenDocument writer:
4984 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
4985 + Use more widely available bullet characters (#1400). The old
4986 characters weren't available in some font sets. These seem to work
4987 well on Windows and Linux versions of LibreOffice.
4988 + Wider labels for lists (#2421). This avoids overly narrow labels for
4989 ordered lists with `()` delimiters. However, arguably it creates
4990 overly wide labels for bullets. Also, lists now start flush with
4991 the margin, rather than indented.
4992 + Fixed dropped elements in some ordered lists (#2434).
4994 * FB2 writer:
4996 + Don't render `RawBlock` as code.
4997 + Don't fail with an error on interior headers (e.g. in list) (#3750).
4998 Instead, omit them with an INFO message.
4999 + Add support for "lang" metadata (Alexander Krotov, #3625).
5000 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
5001 produced one paragraph with `<empty-line/>` elements, which are not
5002 allowed inside `<p>` according to FB2 schema.
5003 + Replace `concatMap` with `cMap` (Alexander Krotov).
5004 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
5005 Krotov, #4004)
5007 * HTML writer:
5009 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
5010 + Render raw inline environments when `--mathjax` used (#3816).
5011 We previously did this only with raw blocks, on the assumption
5012 that math environments would always be raw blocks. This has changed
5013 since we now parse them as inline environments.
5014 + Ensure we don't get two style attributes for width and height.
5015 + Report when not rendering raw inline/block.
5016 + Issue warning if no title specified and template used (#3473).
5017 + Info message if `lang` is unspecified (#3486).
5018 + Removed unused parameter in `dimensionsToAttributeList`.
5019 + Avoid two class attributes when adding `uri` class (#3716).
5020 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
5021 Bieg).
5022 + Use revealjs's math plugin for mathjax (#3743). This is a thin
5023 wrapper around mathjax that makes math look better on revealjs.
5024 + Slidy: use h1 for all slides, even if they were originally
5025 level 2 headers (#3566). Otherwise the built-in table of contents
5026 in Slidy breaks.
5028 * LaTeX writer:
5030 + Don't render LaTeX images with data: URIs (#3636). Note that
5031 `--extract-media` can be used when the input contains data: URIs.
5032 + Make highlighted code blocks work in footnotes (Timm Albers).
5033 + Don't use figure inside table cell (#3836).
5034 + Use proper code for list enumerators (#3891). This should fix problems
5035 with lists that don't use arabic numerals.
5036 + Always add hypertarget when there's a non-empty identifier (#2719).
5037 Previously the hypertargets were only added when there was actually
5038 a link to that identifier.
5039 + Use `%` after hypertarget before code block.
5040 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
5041 fixes formatting problems in beamer citations).
5042 + Don't use `lstinline` in \item[..] (#645). If you do, the contents
5043 of item disappear or are misplaced. Use `\texttt` instead.
5044 + Fix problem with escaping in `lstinline` (#1629). Previously the
5045 LaTeX writer created invalid LaTeX when `--listings` was specified and
5046 a code span occurred inside emphasis or another construction.
5047 + Fix error with line breaks after empty content (#2874). LaTeX
5048 requires something before a line break, so we insert a `~` if no
5049 printable content has yet been emitted.
5050 + Use BCP47 parser.
5051 + Fixed detection of otherlangs (#3770). We weren't recursing into
5052 inline contexts.
5053 + Handle language in inline code with `--listings` (#3422).
5054 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
5055 The textcomp package allows pdfLaTeX to parse `€` directly, making the
5056 `\euro` command unneeded.
5057 + Fixed footnotes in table captions (#2378). Note that if the table has
5058 a first page header and a continuation page header, the notes will
5059 appear only on the first occurrence of the header.
5060 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
5061 Previously you could link to a header above or below slide level but
5062 not *to* slide level. This commit changes that. Hypertargets are
5063 inserted inside frame titles; technically the reference is to just
5064 after the title, but in normal use (where slides are viewed full
5065 screen in a slide show), this does not matter.
5066 + Remove `\strut` at beginning of table cells (#3436). This fixes a
5067 problem with alignment of lists in table cells. The `\strut` at the
5068 end seems to be enough to avoid the too-close spacing that motivated
5069 addition of the strut in #1573.
5070 + Add partial siunitx Support (Marc Schreiber, #3588).
5072 * ConTeXt writer:
5074 + Refactored to use BCP47 module.
5075 + Remove unnecessary `$` (Alexander Krotov, #3482).
5076 + Use header identifiers for chapters (#3968).
5078 * EPUB writer:
5080 + `title_page.xhtml` is now put in `text/`.
5081 + Don't strip formatting in TOC (#1611).
5083 * Textile reader:
5085 + Fix bug for certain links in table cells (#3667).
5086 + Allow 'pre' code in list item (#3916).
5088 * HTML reader:
5090 + Added warnings for ignored material (#3392).
5091 + Better sanity checks to avoid parsing unintended things as
5092 raw HTML in the Markdown reader (#3257).
5093 + Revise treatment of `li` with `id` attribute (#3596). Previously we
5094 always added an empty div before the list item, but this created
5095 problems with spacing in tight lists. Now we do this: If the list
5096 item contents begin with a `Plain` block, we modify the `Plain`
5097 block by adding a `Span` around its contents. Otherwise, we add a
5098 `Div` around the contents of the list item (instead of adding an
5099 empty `Div` to the beginning, as before).
5100 + Add `details` tag to list of block tags (#3694).
5101 + Removed `button` from block tag list (#3717). It is already in the
5102 `eitherBlockOrInlineTag` list, and should be both places.
5103 + Use `Set`s instead of lists for block tag lookup.
5104 + Rewrote to use `Text` throughout. Effect on memory usage is modest
5105 (< 10%).
5106 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
5107 #3765).
5108 + Ensure that paragraphs are closed properly when the parent block
5109 element closes, even without `</p>` (#3794).
5110 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
5111 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
5112 `<main>` closes `<p>` and behaves like a block element generally
5113 + Support column alignments (#1881). These can be set either
5114 with a `width` attribute or with `text-width` in a `style` attribute.
5115 + Modified state type to be an instance of `HasLogMessages`, so
5116 `registerHeader` can issue warnings.
5117 + `</td>` or `</th>` should close any open block tag (#3991).
5118 + `<td>` should close an open `<th>` or `<td>`.
5119 + `htmlTag` improvements (#3989). We previously failed on cases
5120 where an attribute contained a `>` character. This patch fixes the
5121 bug, which especially affects raw HTML in Markdown.
5123 * Txt2Tags reader:
5125 + Newline is not indentation (Alexander Krotov).
5127 * MediaWiki reader:
5129 + Allow extra hyphens after `|-` in tables (#2649).
5130 + Allow blank line after table start (#2649).
5131 + Fixed more table issues (#2649).
5132 + Ensure that list starts begin at left margin (#2606). Including when
5133 they're in tables or other list items.
5134 + Make smart double quotes depend on `smart` extension (#3585).
5135 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
5136 + Modified state type to be an instance of `HasLogMessages`, so
5137 `registerHeader` can issue warnings.
5139 * TWiki reader (Alexander Krotov):
5141 + Remove unnecessary `$` (#3597).
5142 + Simplify `linkText` (#3605).
5144 * EPUB reader:
5146 + Minor refactoring, avoiding explicit MediaBag handling.
5147 This all works behind the scenes in CommonState plumbing.
5149 * Docx reader:
5151 + Don't drop smartTag contents (#2242).
5152 + Handle local namespace declarations (#3365). Previously we didn't
5153 recognize math, for example, when the xmlns declaration occurred on
5154 the element and not the root.
5155 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
5156 does the work of `normalizeSpaces` as well, so we avoid the need for
5157 that function here.
5158 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
5159 paragraphs styled with "HeadingN" as "nth-level header." But if a
5160 document has a custom style named "Heading0", this will produce a
5161 0-level header, which shouldn't exist. We only parse this style
5162 if N>0. Otherwise we treat it as a normal style name, and
5163 follow its dependencies, if any.
5164 + Add tests for avoiding zero-level header (Jesse Rosenthal).
5166 * ODT reader:
5168 + Replaced `collectRights` with Rights from `Data.Either`.
5169 + Remove dead code (Albert Krewinkel).
5171 * Org reader (Albert Krewinkel, unless noted).
5173 + Don't allow tables inside list items (John MacFarlane, #3499).
5174 + Disallow tables on list marker lines (#3499).
5175 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
5176 + Allow emphasized text to be followed by `[` (#3577).
5177 + Handle line numbering switch for src blocks.
5178 The line-numbering switch that can be given to source blocks (`-n` with
5179 an start number as an optional parameter) is parsed and translated to a
5180 class/key-value combination used by highlighting and other readers and
5181 writers.
5182 + Stop adding rundoc prefix to src params. Source block parameter names
5183 are no longer prefixed with `rundoc`. This was intended to simplify
5184 working with the rundoc project, a babel runner. However, the rundoc
5185 project is unmaintained, and adding those markers is not the reader's
5186 job anyway. The original language that is specified for a source
5187 element is now retained as the `data-org-language` attribute and only
5188 added if it differs from the translated language.
5189 + Allow multi-word arguments to src block params (#3477). The reader now
5190 correctly parses src block parameter list even if parameter arguments
5191 contain multiple words.
5192 + Avoid creating `nullMeta` by applying `setMeta` directly
5193 (Alexander Krotov).
5194 + Replace `sequence . map` with `mapM`.
5195 + Fix smart parsing behavior. Parsing of smart quotes and special
5196 characters can either be enabled via the `smart` language extension or
5197 the `'` and `-` export options. Smart parsing is active if either the
5198 extension or export option is enabled. Only smart parsing of special
5199 characters (like ellipses and en and em dashes) is enabled by default,
5200 while smart quotes are disabled. Previously, all smart parsing was
5201 disabled unless the language extension was enabled.
5202 + Subject full doc tree to headline transformations (Albert Krewinkel,
5203 #3695). Emacs parses org documents into a tree structure, which is
5204 then post-processed during exporting. The reader is changed to do the
5205 same, turning the document into a single tree of headlines starting
5206 at level 0.
5207 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
5208 cite keys included special characters also at the end. This caused
5209 problems when citations occur right before colons or at the end of
5210 a sentence. With this change, all non alphanumeric characters at
5211 the end of a cite key are ignored. This also adds `,` to the list
5212 of special characters that are legal in cite keys to better mirror
5213 the behaviour of org-export.
5214 + Fix module names in haddock comments. Copy-pasting had lead to
5215 haddock module descriptions containing the wrong module names.
5216 + Recognize babel result blocks with attributes (#3706). Babel
5217 result blocks can have block attributes like captions and names.
5218 Result blocks with attributes were not recognized and were parsed
5219 as normal blocks without attributes.
5220 + Include tags in headlines. The Emacs default is to include tags in the
5221 headline when exporting. Instead of just empty spans, which contain the
5222 tag name as attribute, tags are rendered as small caps and wrapped in
5223 those spans. Non-breaking spaces serve as separators for multiple tags.
5224 + Respect export option for tags (#3713). Tags are appended to
5225 headlines by default, but will be omitted when the `tags` export option
5226 is set to nil.
5227 + Use `tag-name` attribute instead of `data-tag-name`.
5228 + Use `org-language` attribute rather than `data-org-language`.
5229 + Modified state type to be an instance of `HasLogMessages`, so
5230 `registerHeader` can issue warnings.
5231 + End footnotes after two blank lines. Footnotes can not only be
5232 terminated by the start of a new footnote or a header, but also by two
5233 consecutive blank lines.
5234 + Update emphasis border chars (#3933). The org reader was updated to
5235 match current org-mode behavior: the set of characters which are
5236 acceptable to occur as the first or last character in an org emphasis
5237 have been changed and now allows all non-whitespace chars at the
5238 inner border of emphasized text (see `org-emphasis-regexp-components`).
5240 * RST reader:
5242 + Fixed small bug in list parsing (#3432). Previously the parser didn't
5243 handle properly this case:
5245 * - a
5246 - b
5247 * - c
5248 - d
5249 + Handle multiline cells in simple tables (#1166).
5250 + Parse list table directive (Keiichiro Shikano, #3432).
5251 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
5252 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
5253 + Reorganize block parsers for ~20% faster parsing.
5254 + Fixed `..include::` directive (#3880).
5255 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
5256 Previously pandoc would sometimes combine two line blocks separated
5257 by blanks, and ignore trailing blank lines within the line block.
5258 + Fix indirect hyperlink targets (#512).
5260 * Markdown reader:
5262 + Allow attributes in reference links to start on next line (#3674).
5263 + Parse YAML metadata in a context that sees footnotes defined in
5264 the body of the document (#1279).
5265 + When splitting pipe table cells, skip tex math (#3481).
5266 You might have a `|` character inside math. (Or for that matter
5267 something that the parser might mistake for raw HTML.)
5268 + Treat span with class `smallcaps` as SmallCaps.
5269 This allows users to specify small caps in Markdown this way:
5270 `[my text]{.smallcaps}` (#1592).
5271 + Fixed internal header links (#2397).
5272 This patch also adds `shortcut_reference_links` to the list
5273 of mmd extensions.
5274 + Treat certain environments as inline
5275 when they occur without space surrounding them (#3309, #2171).
5276 E.g. equation, math. This avoids incorrect vertical space
5277 around equations.
5278 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
5279 + Allow latex macro definitions indented 1-3 spaces.
5280 Previously they only worked if nonindented.
5281 + Improved parsing of indented raw HTML blocks (#1841).
5282 Previously we inadvertently interpreted indented HTML as
5283 code blocks. This was a regression. We now seek to determine the
5284 indentation level of the contents of an HTML block, and (optionally)
5285 skip that much indentation. As a side effect, indentation may be
5286 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
5287 used. This is better than having things interpreted as indented
5288 code blocks.
5289 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
5290 + Warn for notes defined but not used (#1718).
5291 + Use `anyLineNewline` (Alexander Krotov).
5292 + Interpret YAML metadata as Inlines when possible (#3755). If
5293 the metadata field is all on one line, we try to interpret it as
5294 Inlines, and only try parsing as Blocks if that fails. If it
5295 extends over one line (including possibly the `|` or `>` character
5296 signaling an indented block), then we parse as Blocks. This was
5297 motivated by some German users finding that `date: '22. Juin 2017'`
5298 got parsed as an ordered list.
5299 + Fixed spurious parsing as citation as reference def (#3840).
5300 We now disallow reference keys starting with `@` if the
5301 `citations` extension is enabled.
5302 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
5303 Previously only `[-@roe]` (with brackets) was recognized as
5304 suppress-author, and `-@roe` was treated the same as `@roe`.
5305 + Fixed parsing of fenced code after list when there is no intervening
5306 blank line (#3733).
5307 + Allow raw latex commands starting with `\start` (#3558). Previously
5308 these weren't allowed because they were interpreted as starting
5309 ConTeXt environments, even without a corresponding `\stop`...
5310 + Added `inlines`, `inlines1`.
5311 + Require nonempty alt text for `implicit_figures` (#2844).
5312 A figure with an empty caption doesn't make sense.
5313 + Removed texmath macro material; now all this is handled
5314 in the LaTeX reader functions.
5315 + Fixed bug with indented code following raw LaTeX (#3947).
5317 * LaTeX reader:
5319 + Rewrote LaTeX reader with proper tokenization (#1390,
5320 #2118, #3236, #3779, #934, #982). This rewrite is primarily
5321 motivated by the need to get macros working properly. A side benefit
5322 is that the reader is significantly faster. We now tokenize the
5323 input text, then parse the token stream. Macros modify the token
5324 stream, so they should now be effective in any context, including
5325 math. Thus, we no longer need the clunky macro processing
5326 capacities of texmath.
5327 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
5328 + Allow `\newcommand\foo{blah}` without braces.
5329 + Support `\lstinputlisting` (#2116).
5330 + Issue warnings when skipping unknown latex commands (#3392).
5331 + Include contents of `\parbox`.
5332 + Allow `\hspace` and `\vspace` to count as raw block or inline.
5333 Previously we would refuse to parse anything as raw inline if
5334 it was in the `blockCommands` list. Now we allow exceptions
5335 if they're listed under ignoreInlines in inlineCommands.
5336 This should make it easier e.g. to include an `\hspace`
5337 between two side-by-side raw LaTeX tables.
5338 + Don't drop contents of `\hypertarget`.
5339 + Handle spaces before `\cite` arguments.
5340 + Allow newpage, clearpage, pagebreak in inline contexts as well as
5341 block contexts (#3494).
5342 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
5343 + Use `pMacroDefinition` in macro (for more direct parsing).
5344 Note that this means that `macro` will now parse one
5345 macro at a time, rather than parsing a whole group together.
5346 + Fixed failures on \ref{}, \label{} with `+raw_tex`. Now these
5347 commands are parsed as raw if `+raw_tex`; otherwise, their argument
5348 is parsed as a bracketed string.
5349 + Don't crash on empty `enumerate` environment (#3707).
5350 + Handle escaped `&` inside table cell (#3708).
5351 + Handle block structure inside table cells (#3709). `minipage` is no
5352 longer required.
5353 + Handle some width specifiers on table columns (#3709). Currently
5354 we only handle the form `0.9\linewidth`. Anything else would have
5355 to be converted to a percentage, using some kind arbitrary assumptions
5356 about line widths.
5357 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
5358 LaTeX reader's treatment of raw commands, but it also affects the
5359 Markdown reader.
5360 + Fixed regression with starred environment names (#3803).
5361 + Handle optional args in raw `\titleformat` (#3804).
5362 + Improved heuristic for raw block/inline. An unknown command at the
5363 beginning of the line that could be either block or inline is
5364 treated as block if we have a sequence of block commands followed by
5365 a newline or a `\startXXX` command (which might start a raw ConTeXt
5366 environment).
5367 + Don't remove macro definitions from the output, even if
5368 `Ext_latex_macros` is set, so that macros will be applied.
5369 Since they're only applied to math in Markdown, removing the macros
5370 can have bad effects. Even for math macros, keeping them should be
5371 harmless.
5372 + Removed `macro`. It is no longer necessary, since the
5373 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
5374 the need for a separate `latexMacro` parser in the Markdown reader.
5375 + Use `label` instead of `data-label` for label in caption (#3639).
5376 + Fixed space after \figurename etc.
5377 + Resolve references to section numbers.
5378 + Fix `\let\a=0` case, with single character token.
5379 + Allow `@` as a letter in control sequences. `@` is commonly used
5380 in macros using `\makeatletter`. Ideally we'd make the tokenizer
5381 sensitive to `\makeatletter` and `\makeatother`, but until then this
5382 seems a good change.
5383 + Track header numbers and correlate with labels.
5384 + Allow `]` inside group in option brackets (#3857).
5385 + lstinline with braces can be used (verb cannot be used with braces)
5386 (Marc Schreiber, #3535).
5387 + Fix keyval function: pandoc did not parse options in braces correctly
5388 (Marc Schreiber, #3642).
5389 + When parsing raw LaTeX commands, include trailing space (#1773).
5390 Otherwise things like `\noindent foo` break and turn into
5391 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
5392 formats that allow `raw_tex`).
5393 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
5394 `\texttt` contexts.
5395 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
5396 + Allow space before `=` in bracketd options (Ben Firshman).
5397 + Be more forgiving in parsing command options. This was needed, for
5398 example, to make some minted options work.
5399 + Strip off quotes in `\include` filenames.
5401 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
5403 * `Text.Pandoc.PDF`:
5405 + Got `--resource-path` working with PDF output (#852).
5406 + Fetch images when generating PDF via context (#3380).
5407 To do this, we create the temp directory as a subdirectory
5408 of the working directory. Since context mk IV by default looks
5409 for images in the parent directory, this works.
5410 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
5411 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
5412 This reduces code duplication.
5413 + `html2pdf`: use stdin instead of intermediate HTML file
5414 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
5415 doesn't use `TEXINPUTS`.
5417 * `Text.Pandoc.Pretty`:
5419 + Simplified definition of `realLength`.
5420 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
5422 * `Text.Pandoc.MIME`:
5424 + Use `application/javascript` (not `application/x-javascript`).
5425 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
5427 * `Text.Pandoc.ImageSize`:
5429 + Improve SVG image size code (Marc Schreiber, #3580).
5430 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
5432 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
5433 and reduction of memory usage in most of the writers.
5435 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
5437 * `Text.Pandoc.SelfContained`:
5439 + Fixed problem with embedded fonts (#3629).
5440 + Refactored getData from `getDataURI` in `SelfContained`.
5441 + Don't use data URIs for script or style (#3423). Instead, just use
5442 script or style tags with the content inside. The old method with
5443 data URIs prevents certain optimizations outside pandoc. Exception:
5444 data URIs are still used when a script contains `</script>` or a
5445 style contains `</`.
5446 + SelfContained: Handle URL inside material retrieved from a URL
5447 (#3629). This can happen e.g. with an @import of a google web font.
5448 (What is imported is some CSS which contains an url reference
5449 to the font itself.) Also, allow unescaped pipe (|) in URL.
5450 + Load resources from `data-src` (needed for lazy loading in
5451 reveal.js slide shows).
5452 + Handle `data-background-image` attribute on section (#3979).
5454 * `Text.Pandoc.Parsing`:
5456 + Added `indentWith` (Alexander Krotov, #3687).
5457 + Added `stateCitations` to `ParserState`.
5458 + Removed `stateChapters` from `ParserState`.
5459 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
5460 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
5461 + Adjusted type of `insertIncludedFile` so it can be used with token
5462 parser.
5463 + Replace old texmath macro stuff from Parsing. Use Macro from
5464 Text.Pandoc.Readers.LaTeX.Types instead.
5465 + Export `insertIncludedFile`.
5466 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
5467 + Replace partial with total function (Albert Krewinkel).
5468 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
5469 `insertIncludeFile` function is generalized to work with all parser
5470 states which are instances of that class.
5471 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
5472 The `insertIncludeFiles` function was generalized and renamed
5473 to `insertIncludedFiles'`; the specialized versions are based on that.
5474 + `many1Till`: Check for the end condition before parsing (Herwig
5475 Stuetz). By not checking for the end condition before the first
5476 parse, the parser was applied too often, consuming too much of the
5477 input. This only affects `many1Till p end` where `p` matches on a
5478 prefix of `end`.
5479 + Provide `parseFromString` (#3690). This is a version of
5480 `parseFromString` specialied to ParserState, which resets
5481 `stateLastStrPos` at the end. This is almost always what we want.
5482 This fixes a bug where `_hi_` wasn't treated as emphasis in the
5483 following, because pandoc got confused about the position of the
5484 last word: `- [o] _hi_`.
5485 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
5486 + Fix `blanklines` documentation (Alexander Krotov, #3843).
5487 + Give less misleading line information with `parseWithString`.
5488 Previously positions would be reported past the end of the chunk.
5489 We now reset the source position within the chunk and report
5490 positions "in chunk."
5491 + Add `anyLineNewline` (Alexander Krotov).
5492 + Provide shared F monad functions for Markdown and Org readers
5493 (Albert Krewinkel). The `F` monads used for delayed evaluation
5494 of certain values in the Markdown and Org readers are based on a
5495 shared data type capturing the common pattern of both `F` types.
5496 + Add `returnF` (Alexander Krotov).
5497 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
5498 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
5499 + Added `readerAbbreviations` to `ParserState`. Markdown reader
5500 now consults this to determine what is an abbreviation.
5501 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
5502 parsers for markdown and rst was combined into one single
5503 parser `gridTable`, slightly changing parsing behavior of both
5504 parsers: (1) The markdown parser now compactifies block content
5505 cell-wise: pure text blocks in cells are now treated as paragraphs
5506 only if the cell contains multiple paragraphs, and as plain blocks
5507 otherwise. Before, this was true only for single-column tables. (2)
5508 The rst parser now accepts newlines and multiple blocks in header
5509 cells.
5510 + Generalize tableWith, gridTableWith (Albert Krewinkel).
5511 The parsing functions `tableWith` and `gridTableWith` are generalized
5512 to work with more parsers. The parser state only has to be an
5513 instance of the `HasOptions` class instead of requiring a concrete
5514 type. Block parsers are required to return blocks wrapped into a
5515 monad, as this makes it possible to use parsers returning results
5516 wrapped in `Future`s.
5518 * `Text.Pandoc.Shared`:
5520 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
5521 + `stringify`: handle Quoted better (#3958). Previously we were losing
5522 the quotation marks in Quoted elements.
5524 * `Text.Pandoc.Writers.Shared`:
5526 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
5527 This allows us to add the variables AFTER using the metadata
5528 to generate a YAML header (in the Markdown writer).
5529 + Added `unsmartify` (previously in RST writer).
5530 Undo literal double curly quotes. Previously we left these.
5531 + Generalize type of `metaToJSON` so it can take a Text. Previously a
5532 String was needed as argument; now any ToJSON instance will do.
5533 + Added `gridTable` (previously in Markdown writer).
5534 + `gridTable`: Refactored to use widths in chars.
5535 + `gridTable`: remove unnecessary extra space in cells.
5536 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
5537 values to become lists.
5538 + Pipe tables: impose minimum cell size (see #3526).
5541 [default template changes]
5543 * HTML templates (including EPUB and HTML slide show templates):
5545 + Make default.html5 polyglot markup conformant (John Luke Bentley,
5546 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
5547 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
5548 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
5549 + Regularized CSS in html/epub/html slide templates (#3485).
5550 All templates now include `code{white-space: pre-wrap}`
5551 and CSS for `q` if `--html-q-tags` is used. Previously some templates
5552 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
5553 included.
5554 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
5555 + `default.revealjs`: make `history` default to true.
5556 + `default.revealjs`: use lazy loading (#2283).
5557 + `default.revealjs`: add `mathjax` variable and some conditional code
5558 to use the MathJaX plugin.
5559 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
5560 + `default.dzslides`: Load Google Font using HTTPS by default
5561 (Yoan Blanc).
5563 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
5564 #3855).
5566 * LaTeX/Beamer template:
5568 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
5569 `default.beamer` has been removed; beamer now uses the
5570 `default.latex` template. Beamer-specific parts are conditional
5571 on the `beamer` variable set by the writer. Note that
5572 `pandoc -D beamer` will return this (combined) template.
5573 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
5574 Beamer loads `xcolor` rather than `color`, and thus the
5575 `dvipsnames` option doesn't take effect. This also provides a wider
5576 range of colour selections with the `svgnames` option.
5577 + Use starred versions of `xcolor` names (Andrew Dunning).
5578 Prevents changes to documents defined using the `dvipsnames` list (e.g.
5579 `Blue` gives a different result with svgnames enabled).
5580 + Load `polyglossia` after header-includes (#3898). It needs to be
5581 loaded as late as possible.
5582 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
5583 XeLaTeX on request.
5584 + Don't load `fontspec` before `unicode-math` (over there).
5585 The `unicode-math` package loads `fontspec` so explicit loading of
5586 `fontspec` before `unicode-math` is not necessary.
5587 + Use `unicode-math` by default in default.latex template. mathspec will
5588 be used in xelatex if the `mathspec` variable is set; otherwise
5589 unicode-math will be used (Václav Haisman).
5590 + Use `dvipsnames` options when `colorlinks` specified (otherwise
5591 we get an error for `maroon`) (Thomas Hodgson).
5592 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
5593 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
5594 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
5595 clash when loading a package (e.g. `tufte-latex`) that uses
5596 `hyperref` settings different from those in the template.
5597 + Add `natbiboptions` variable (#3768).
5598 + Fix links inside captions in LaTeX output with links-as-notes
5599 (Václav Haisman, #3651). Declare our redefined `\href` robust.
5600 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
5601 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
5602 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
5603 packages. Use existing `CJKmainfont` and `CJKoptions` template
5604 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
5605 and `luatexjapresetoptions` for `luatexja-preset`.
5606 + Added `aspectratio` variable to beamer template (Václav Haisman,
5607 #3723).
5608 + Modified template.latex to fix XeLaTex being used with tables
5609 (lwolfsonkin, #3661). Reordered `lang` variable handling to
5610 immediately before `bidi`.
5612 * ConTeXt template: Improved font handling: `simplefonts` is now
5613 obsolete in ConTeXt (Pablo Rodríguez).
5616 [documentation improvements]
5618 * MANUAL.txt:
5620 + Add URL for Prince HTML > PDF engine (Ian, #3919).
5621 + Document that content above slide-level will be omitted in
5622 slide shows. See #3460, #2265.
5623 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
5624 + Small clarification in YAML metadata section.
5625 + Document that html4 is technically XHTML 1.0 transitional.
5626 + Remove refs to highlighting-kate (#3672).
5627 + Document ibooks specific epub metadata.
5628 + Clarify that mathml is used for ODT math.
5629 + Mention limitations of Literate Haskell Support (#3410,
5630 Joachim Breitner).
5631 + Add documentation of limitations of grid tables (Stephen
5632 McDowell, #3864).
5633 + Clarify that meta-json contains transformed values (Jakob Voß,
5634 #3491) Make clear that template variable `meta-json` does not
5635 contain plain text values or JSON output format but field values
5636 transformed to the selected output format.
5638 * COPYRIGHT:
5640 + Clarify that templates are dual-licensed.
5641 + Clarify that pandoc-types is BSD3 licensed.
5642 + List new files not written by jgm (Albert Krewinkel).
5643 + Update dates in copyright notices (Albert Krewinkel). This follows
5644 the suggestions given by the FSF for GPL licensed software.
5645 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
5647 * INSTALL.md:
5649 + Improved instructions for tests with patterns.
5650 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
5652 * CONTRIBUTING.md:
5654 + Fixed typos (Wandmalfarbe, #3479).
5655 + Add "ask on pandoc-discuss" (Mauro Bieg).
5657 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
5658 end of this document is autogenerated from `data/pandoc.lua`
5659 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
5660 (Albert Krewinkel).
5662 * Add `doc/filters.md`. This is the old scripting tutorial from
5663 the website.
5665 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
5666 to using pandoc as a Haskell library.
5669 [build infrastructure improvements]
5671 * Removed `data/templates` submodule. Templates are now a subtree
5672 in `data/templates`. This removes the need to do `git submodule
5673 update`.
5675 * Renamed `tests` -> `test`.
5677 * Remove `https` flag. Always build with HTTPS support.
5679 * Use `file-embed` instead of `hsb2hs` to embed data files when
5680 `embed_data_files` flag is set. `file-embed` gives us better dependency
5681 tracking: if a data file changes, ghc/stack/cabal know to recompile
5682 the Data module. This also removes `hsb2hs` as a build dependency.
5684 * Add `custom-setup` stanza to pandoc, lowercase field names.
5686 * Add `static` Cabal flag.
5688 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
5689 than -OSX. Changed local names from osx to macos.
5691 * make_macos_package.sh - Use strip to reduce executable size.
5693 * Revised binary linux package. Now a completely static executable
5694 is created, using Docker and alpine. We create both a deb and a
5695 tarball. The old `deb` directory has been replaced with a `linux`
5696 directory. Running `make` in the `linux` directory should
5697 perform the build, putting the binary packages in `artifacts/`.
5699 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
5700 pandoc-data packages will be uninstalled; this package provides
5701 both (#3822). Add latex packages as 'suggested', update
5702 description.
5704 * Remove cpphs build requirement -- it is no longer needed.
5706 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
5708 * Name change OSX -> macOS (ickc, #3869).
5710 * Fix casing of Linux, UNIX, and Windows (ickc).
5712 * `.travis.yml`: create a source dist and do cabal build and test there.
5713 That way we catch errors due to files missing from the data
5714 section of pandoc.cabal.
5716 * Makefile:
5718 + Split `make haddock` from `make full`.
5719 + Add BRANCH variable for winpkg.
5720 + Add `lint` target.
5721 + Improve `make full`. Disable optimizations.
5722 Build everything, inc. trypandoc and benchmarks. Use parallel build.
5723 + Allow `make test` to take `TESTARGS`.
5725 * Added new command tests (`Tests.Command`), using small text files
5726 in `test/command/`. Any files added in this directory will be treated
5727 as shell tests (see smart.md for an example). This makes it very easy
5728 to add regression tests etc.
5730 * Test fixes so we can find data files. In old tests & command tests,
5731 we now set the environment variable `pandoc_datadir`. In lua tests,
5732 we set the datadir explicitly.
5734 * Refactored `compareOutput` in docx writer test.
5736 * Consolidated some common functions in `Tests.Helper`.
5738 * Small change to unbalanced bracket test to speed up test suite.
5740 * Speed up Native writer quickcheck tests.
5742 * Use tasty for tests rather than test-framework.
5744 * Add simple Emacs mode to help with Pandoc templates editing.
5745 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
5748pandoc (1.19.2)
5750 * Use skylighting library instead of highlighting-kate for syntax
5751 highlighting. Skylighting is faster and more accurate (#3363).
5752 Later we'll be able to add features like warning messages, dynamic
5753 loading of xml syntax definitions, and dynamic loading of themes.
5755 * Added a new highlight style, `breezeDark`.
5757 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
5758 This allows more languages to be used when using the `--listings`
5759 option.
5761 * OpenDocument writer:
5763 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
5764 + Don't profilerate text styles unnecessarily (#3371).
5765 This change makes the writer create only as many temporary
5766 text styles as are absolutely necessary. It also consolidates
5767 adjacent nodes with the same style.
5769 * Org reader (Albert Krewinkel):
5771 + Allow short hand for single-line raw blocks (Albert Krewinkel,
5772 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
5773 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
5774 + Accept org-ref citations followed by commas (Albert Krewinkel).
5775 Bugfix for an issue which, whenever the citation was immediately
5776 followed by a comma, prevented correct parsing of org-ref citations.
5777 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
5778 `/*strong and emphasized*/`) was interpreted incorrectly in that the
5779 inner markup was not recognized.
5780 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
5782 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
5783 In the past, the docx reader wrote an empty header as an empty list. It
5784 should have the same width as a row (and be filled with empty cells).
5786 * MediaWiki reader:
5788 + Improved handling of display math (#3362). Sometimes display math is
5789 indented with more than one colon. Previously we handled these cases
5790 badly, generating definition lists and missing the math.
5791 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
5792 behavior when the smart option is parsed to match other readers'
5793 behavior.
5795 * Markdown reader:
5797 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
5798 (#3341). Previously this did not properly enable escaped line breaks.
5799 + Disallow space between inline code and attributes (#3326, #3323,
5800 Mauro Bieg).
5802 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
5804 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
5806 * LaTeX writer: allow tables with empty cells to count as "plain."
5807 This addresses a problem of too-wide tables when empty cells
5808 are used. Thanks to Joost Kremers for reporting the issue.
5810 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
5811 Unprefixed numbers where used by older org-mode versions, but are no
5812 longer supported.
5814 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
5815 Mauro Bieg).
5817 * Markdown writer: Fix display math with `--webtex` (#3298).
5819 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
5820 bumper314).
5822 * Templates:
5824 + default.latex: Moved geometry after hyperref (Václav Haisman).
5825 Otherwise PDF sizes can be wrong in some circumstances.
5826 + Copied a few changes from default.latex to default.beamer
5827 (Wandmalfarbe).
5828 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
5829 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
5830 that contain verbatim in notes (#3361). (Note: the beamer template
5831 was updated to match the LaTeX template, but at this point verbatim
5832 in notes seems not to work in beamer.)
5833 + default.latex: Allow passing `microtypeoptions` to microtype
5834 (Václav Haisman).
5835 + default.latex: Add hyphen option to url package.
5836 + default.docbook5: Fix namespace declarations (Mauro Bieg).
5838 * Moved `make_osx_package.sh` to `osx/` directory.
5840 * Travis continuous integration:
5842 + Fix false positives with dist build.
5843 + Speed improvements (Kolen Cheung, #3304, #3357).
5845 * MANUAL.txt:
5847 + Clarify that blank space is needed around footnotes (#3352).
5848 + Fixed typo (#3351, Alexey Rogechev).
5849 + Note that `--wrap=auto` does not work in HTML output.
5850 + Default `--columns` width is 72, not 80.
5851 + Fixed broken links (#3316, Kolen Cheung).
5852 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
5854 * INSTALL.md:
5856 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
5857 + Added instructions for extracting binary from OSX, Windows packages.
5859 * CONTRIBUTING.md: Describe labels currently used in issue tracker
5860 (Albert Krewinkel). The labels have changed over time, the list of
5861 labels is updated to reflect the current set of labels used in the
5862 issue tracker.
5864 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
5866 * Bumped version bounds for dependencies.
5869pandoc (1.19.1)
5871 * Set `PANDOC_VERSION` environment variable for filters (#2640).
5872 This allows filters to check the pandoc version that produced
5873 the JSON they are receiving.
5875 * Docx reader: Ensure one-row tables don't have header (#3285,
5876 Jesse Rosenthal). Tables in MS Word are set by default to have
5877 special first-row formatting, which pandoc uses to determine whether
5878 or not they have a header. This means that one-row tables will, by
5879 default, have only a header -- which we imagine is not what people
5880 want. This change ensures that a one-row table is not understood to
5881 be a header only. Note that this means that it is impossible to
5882 produce a header-only table from docx, even though it is legal
5883 pandoc. But we believe that in nearly all cases, it will be an
5884 accidental (and unwelcome) result
5886 * HTML reader:
5888 + Fixed some bad regressions in HTML table parser (#3280).
5889 This regression leads to the introduction of empty rows
5890 in some circumstances.
5891 + Understand `style=width:` as well as `width` in `col` (#3286).
5893 * RST reader:
5895 + Print warnings when keys, substitition, notes not found.
5896 Previously the parsers failed and we got raw text. Now we get a
5897 link with an empty URL, or empty inlines in the case of a note or
5898 substitution.
5900 + Fix hyperlink aliases (#3283).
5902 * Man writer: Ensure that periods are escaped at beginning of line
5903 (#3270).
5905 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
5906 (#3272, Albert Krewinkel). Fix interaction of top-level divisions
5907 `part` or `chapter` with unnumbered headers when emitting LaTeX. Headers
5908 are ensured to be written using stared commands (like `\subsection*{}`).
5910 * LaTeX template: use comma not semicolon to separate keywords for
5911 `pdfkeywords`. Thanks to Wandmalfarbe.
5913 * Markdown writer: Fixed incorrect word wrapping (#3277). Previously pandoc
5914 would sometimes wrap lines too early due to this bug.
5916 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
5917 possible to insert escape codes for content that needs escaping at the
5918 beginning of a line.
5920 * Removed old MathMLInHTML.js from 2004, which should no longer
5921 be needed for MathML with modern browsers.
5923 * Fixed tests with dynamic linking (#2709).
5925 * Makefile: Use stack instead of cabal for targets. This is just
5926 a convenience for developers.
5928 * Fixed bash completion of filenames with space (#2749).
5930 * MANUAL: improved documentation on how to create a custom `reference.docx`.
5932 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
5934pandoc (1.19)
5936 * Changed resolution of filter paths.
5938 + We now first treat the argument of `--filter` as a full (absolute
5939 or relative) path, looking for a program there. If it's found, we
5940 run it.
5941 + If not, and if it is a simple program name or a relative path, we
5942 try resolving it relative to `$DATADIR/filters`.
5943 + If this fails, then we treat it as a program name and look in the
5944 user's PATH.
5945 + Removed a hardcoded '/' that may have caused problems with
5946 Windows paths.
5948 Previously if you did `--filter foo` and you had `foo` in your path and
5949 also an executable `foo` in your working directory, the one in the path
5950 would be used. Now the one in the working directory is used.
5952 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
5953 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
5954 `foo/bar.hs` relative to the working directory.
5956 * Allow `file://` URIs as arguments (#3196). Also improved default reader
5957 format detection. Previously with a URI ending in .md or .markdown,
5958 pandoc would assume HTML input. Now it treats these as markdown.
5960 * Allow to overwrite top-level division type heuristics (#3258,
5961 Albert Krewinkel). Pandoc uses heuristics to determine the most
5962 reasonable top-level division type when emitting LaTeX or
5963 Docbook markup. It is now possible to overwrite this implicitly set
5964 top-level division via the `top-level-division` command line parameter.
5966 * Text.Pandoc.Options \[API changes\]:
5968 + Removed `writerStandalone` field in `WriterOptions`, made
5969 `writerTemplate` a `Maybe` value. Previously setting
5970 `writerStandalone = True` did nothing unless a template was provided
5971 in writerTemplate. Now a fragment will be generated if
5972 `writerTemplate` is `Nothing`; otherwise, the specified template
5973 will be used and standalone output generated.
5974 + `Division` has been renamed `TopLevelDivision` (#3197). The
5975 `Section`, `Chapter`, and `Part` constructors were renamed to
5976 `TopLevelSection`, `TopLevelChapter`, and
5977 `TopLevelPart`, respectively. An additional `TopLevelDefault`
5978 constructor was added, which is now also the new default value of
5979 the `writerTopLevelDivision` field in `WriterOptions`.
5981 * Improved error if they give wrong arg to `--top-level-division`.
5983 * Use new module from texmath to lookup MS font codepoints in Docx reader.
5984 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
5985 lives in texmath (0.9).
5987 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
5988 when the qnames lacked the docbook namespace URI.
5990 * HTML reader:
5992 + Improved table parsing (#3027). We now check explicitly for non-1
5993 rowspan or colspan attributes, and fail when we encounter them.
5994 Previously we checked that each row had the same number of cells,
5995 but that could be true even with rowspans/colspans. And there are
5996 cases where it isn't true in tables that we can handle fine -- e.g.
5997 when a tr element is empty. So now we just pad rows with empty cells
5998 when needed.
5999 + Treat `<math>` as MathML by default unless something else is
6000 explicitly specified in xmlns. Provided it parses as MathML,
6001 of course. Also fixed default which should be to inline math if no
6002 display attribute is used.
6003 + Only treat "a" element as link if it has href (#3226). Otherwise
6004 treat as span.
6006 * Docx reader (Jesse Rosenthal):
6008 + Add a placeholder value for CHART. We wrap `[CHART]` in a
6009 `<span class="chart">`. Note that it maps to inlines because, in
6010 docx, anything in a drawing tag can be part of a larger paragraph.
6011 + Be more specific in parsing images We not only want `w:drawing`,
6012 because that could also include charts. Now we specify
6013 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
6014 a first step toward allowing other sorts of drawing data as well.
6015 + Abstract out function to avoid code repetition.
6016 + Update tests for img title and alt (#3204).
6017 + Handle Alt text and titles in images. We use the "description" field
6018 as alt text and the "title" field as title. These can be accessed
6019 through the "Format Picture" dialog in Word.
6020 + Docx reader utils: handle empty namespace in `elemName`. Previously,
6021 if given an empty namespace `(elemName ns "" "foo")` `elemName`
6022 would output a QName with a `Just ""` namespace. This is never what
6023 we want. Now we output a `Nothing`. If someone *does* want a
6024 `Just ""` in the namespace, they can enter the QName
6025 value explicitly.
6027 * ODT reader/writer:
6029 + Inline code when text has a special style (Hubert Plociniczak). When
6030 a piece of text has a text `Source_Text` then we assume that this is
6031 a piece of the document that represents a code that needs to
6032 be inlined. Adapted the writer to also reflect that change.
6033 Previously it was just writing a 'preformatted' text using a
6034 non-distinguishable font style. Code blocks are still not recognized
6035 by the ODT reader. That's a separate issue.
6036 + Infer table's caption from the paragraph (#3224,
6037 Hubert Plociniczak). ODT's reader always put empty captions for the
6038 parsed tables. This commit
6040 1. checks paragraphs that follow the table definition
6041 2. treats specially a paragraph with a style named 'Table'
6042 3. does some postprocessing of the paragraphs that combines tables
6043 followed immediately by captions
6045 The ODT writer used the `TableCaption` style for the caption
6046 paragraph. This commit follows the OpenOffice approach which allows
6047 for appending captions to table but uses a built-in style named
6048 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
6049 should change the style's name from `TableCaption` to `Table`.
6051 * ODT reader: Infer tables' header props from rows (#3199,
6052 Hubert Plociniczak). ODT reader simply provided an empty header list
6053 which meant that the contents of the whole table, even if not empty, was
6054 simply ignored. While we still do not infer headers we at least have to
6055 provide default properties of columns.
6057 * Markdown reader:
6059 + Allow reference link labels starting with `@...` if `citations`
6060 extension disabled (#3209). Example: in
6062 \[link text\]\[@a\]
6064 `link text` isn't hyperlinked because `[@a]` is parsed as
6065 a citation. Previously this happened whether or not the `citations`
6066 extension was enabled. Now it happens only if the `citations`
6067 extension is enabled.
6068 + Allow alignments to be specified in Markdown grid tables. For
6069 example,
6071 +-------+---------------+--------------------+
6072 | Right | Left | Centered |
6073 +=========:+:=================+:=============:+
6074 | Bananas | $1.34 | built-in wrapper |
6075 +-------+---------------+--------------------+
6077 + Allow Small Caps elements to be created using bracketed spans (as
6078 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
6080 * LaTeX reader:
6082 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
6083 Fixed an error which came up, for example, with `\vspace` inside
6084 a caption. (Captions expect inlines.)
6085 + Improved table handling. We can now parse all of the tables emitted
6086 by pandoc in our tests. The only thing we don't get yet are
6087 alignments and column widths in more complex tables. See #2669.
6088 + Limited support for minipage.
6089 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
6090 + Handle BVerbatim from fancyvrb (#3203).
6091 + Handle hungarumlaut (#3201).
6092 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
6093 (#3184). This allows use of things like `\only<2,3>{my content}` in
6094 Markdown that is going to be converted to beamer.
6096 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
6097 overly long code will appear on every slide.
6099 * Org reader (Albert Krewinkel):
6101 + Respect column width settings (#3246). Table column properties can
6102 optionally specify a column's width with which it is displayed in
6103 the buffer. Some exporters, notably the ODT exporter in org-mode
6104 v9.0, use these values to calculate relative column widths. The org
6105 reader now implements the same behavior. Note that the org-mode
6106 LaTeX and HTML exporters in Emacs don't support this feature yet,
6107 which should be kept in mind by users who use the column
6108 widths parameters.
6109 + Allow HTML attribs on non-figure images (#3222). Images which are
6110 the only element in a paragraph can still be given HTML attributes,
6111 even if the image does not have a caption and is hence not a figure.
6112 The following will add set the `width` attribute of the image to
6113 `50%`:
6115 +ATTR\_HTML: :width 50%
6116 =======================
6118 \[\[file:image.jpg\]\]
6120 + Support `ATTR_HTML` for special blocks (#3182). Special
6121 blocks (i.e. blocks with unrecognized names) can be prefixed with an
6122 `ATTR_HTML` block attribute. The attributes defined in that
6123 meta-directive are added to the `Div` which is used to represent the
6124 special block.
6125 + Support the `todo` export option. The `todo` export option allows to
6126 toggle the inclusion of TODO keywords in the output. Setting this to
6127 `nil` causes TODO keywords to be dropped from headlines. The default
6128 is to include the keywords.
6129 + Add support for todo-markers. Headlines can have optional
6130 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
6131 or `#+TYP_TODO` meta directive. Multiple such directives can be
6132 given, each adding a new set of recognized todo-markers. If no
6133 custom todo-markers are defined, the default `TODO` and `DONE`
6134 markers are used. Todo-markers are conceptually separate from
6135 headline text and are hence excluded when autogenerating
6136 headline IDs. The markers are rendered as spans and labelled with
6137 two classes: One class is the markers name, the other signals the
6138 todo-state of the marker (either `todo` or `done`).
6140 * LaTeX writer:
6142 + Use `\autocites*` when "suppress-author" citation used.
6143 + Ensure that simple tables have simple cells (#2666). If cells
6144 contain more than a single Plain or Para, then we need to set
6145 nonzero widths and put contents into minipages.
6146 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
6148 * Markdown writer:
6150 + Fix calculation of column widths for aligned multiline tables
6151 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
6152 usage for tables when `--columns` is set in such a way that cells
6153 must be very tiny. Now cells are guaranteed to be big enough so that
6154 single words don't need to line break, even if this pushes the line
6155 length above the column width.
6156 + Use bracketed form for native spans when `bracketed_spans`
6157 enabled (#3229).
6158 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
6159 sublist got rendered with a blank line after, while a tight ordered
6160 sublist did not. Now we don't get the blank line in either case.
6161 + Fix escaping of spaces in super/subscript (#3225). Previously two
6162 backslashes were inserted, which gave a literal backslash.
6163 + Adjust widths in Markdown grid tables so that they match
6164 on round-trip.
6166 * Docx writer:
6168 + Give full detail when there are errors converting tex math.
6169 + Handle title text in images (Jesse Rosenthal). We already handled
6170 alt text. This just puts the image "title" into the docx
6171 "title" attr.
6172 + Fixed XML markup for empty cells (#3238). Previously the Compact
6173 style wasn't being applied properly to empty cells.
6175 * HTML writer:
6177 + Updated `renderHtml` import from blaze-html.
6179 * Text.Pandoc.Pretty:
6181 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
6182 caused spurious blank lines in grid tables when we had things like
6183 `blankline $$ blankline`.
6184 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
6185 + Added error message for illegal call to `block` (Björn Peemöller).
6187 * Text.Pandoc.Shared:
6189 + Put `warn` in MonadIO.
6190 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
6191 URL starts with `//` and there is no "base URL" (as there would be
6192 if a URL were used on the command line), then default to http:.
6194 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
6196 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
6197 fixes a crash with `pandoc --version` on unusual systems with no real
6198 user (e.g. SQL Server 2016).
6200 * Added weigh-pandoc for memory usage diagnostics (#3169).
6202 * Use correct mime types for woff and woff2 (#3228).
6204 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
6206 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
6207 1.18 section where it belongs.
6209 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
6210 Kolen Cheung).
6212 * Further revisions to manual for `--version` changes (#3244).
6215pandoc (1.18)
6217 * Added `--list-input-formats`, `--list-output-formats`,
6218 `--list-extensions`, `--list-highlight-languages`, and
6219 `--list-highlight-styles` (#3173). Removed list of highlighting
6220 languages from `--version` output. Removed list of input and output
6221 formats from default `--help` output.
6223 * Added `--reference-location=block|section|document` option
6224 (Jesse Rosenthal). This determines whether Markdown link references
6225 and footnotes are placed at the end of the document, the end of the
6226 section, or the end of the top-level block.
6228 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
6229 This determines what a level-1 header corresponds to in LaTeX,
6230 ConTeXt, DocBook, and TEI output. The default is `section`.
6231 The `--chapters` option has been deprecated in favor of
6232 `--top-level-division=chapter`.
6234 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
6235 is now used in parsing RST and Markdown line blocks, DocBook
6236 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
6237 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
6238 are handled specially in the following output formats: AsciiDoc
6239 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
6240 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
6241 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
6242 other output formats, a paragraph with hard linebreaks is emitted.
6244 * Allow binary formats to be written to stdout (but not to tty) (#2677).
6245 Only works on posix, since we use the unix library to check whether
6246 output is to tty. On Windows, pandoc works as before and always requires
6247 an output file parameter for binary formats.
6249 * Changed JSON output format (Jesse Rosenthal). Previously we used
6250 generically generated JSON, but this was subject to change depending
6251 on the version of aeson pandoc was compiled with. To ensure stability,
6252 we switched to using manually written ToJSON and FromJSON
6253 instances, and encoding the API version. **Note:** pandoc filter
6254 libraries will need to be revised to handle the format change.
6255 Here is a summary of the essential changes:
6257 + The toplevel JSON format is now `{"pandoc-api-version" :
6258 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
6259 instead of `[{"unMeta": META}, [BLOCKS]]`.
6260 Decoding fails if the major and minor version numbers don't
6261 match.
6262 + Leaf nodes no longer have an empty array for their "c" value.
6263 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
6264 rather than `{"t":"Space","c":[]}` as before.
6266 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
6267 module to pandoc-types (Jesse Rosenthal). This makes it easier
6268 to use QuickCheck with pandoc types outside of pandoc itself.
6270 * Add `bracketed_spans` Markdown extension, enabled by default
6271 in pandoc `markdown`. This allows you to create a native span
6272 using this syntax: `[Here is my span]{#id .class key="val"}`.
6274 * Added `angle_brackets_escapable` Markdown extension (#2846).
6275 This is needed because github flavored Markdown has a slightly
6276 different set of escapable symbols than original Markdown;
6277 it includes angle brackets.
6279 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
6281 * Print highlighting-kate version in `--version`.
6283 * `Text.Pandoc.Options`:
6285 + `Extension` has new constructors `Ext_brackted_spans` and
6286 `Ext_angle_brackets_escapable` [API change].
6287 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
6288 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
6289 Rosenthal).
6291 * `--filter`: we now check `$DATADIR/filters` for filters before
6292 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
6293 Voß for the idea). Filters placed in this directory need not
6294 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
6295 or `.rb`, pandoc will run the right interpreter.
6297 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
6298 default (Kolen Cheung).
6300 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
6302 * Execute .js filters with node (Jakob Voß).
6304 * Textile reader:
6306 + Support `bc..` extended code blocks (#3037). Also, remove trailing
6307 newline in code blocks (consistently with Markdown reader).
6308 + Improve table parsing. We now handle cell and row attributes, mostly
6309 by skipping them. However, alignments are now handled properly.
6310 Since in pandoc alignment is per-column, not per-cell, we
6311 try to devine column alignments from cell alignments.
6312 Table captions are also now parsed, and textile indicators
6313 for thead and tfoot no longer cause parse failure. (However,
6314 a row designated as tfoot will just be a regular row in pandoc.)
6315 + Improve definition list parsing. We now allow multiple terms
6316 (which we concatenate with linebreaks). An exponential parsing
6317 bug (#3020) is also fixed.
6318 + Disallow empty URL in explicit link (#3036).
6320 * RST reader:
6322 + Use Div instead of BlockQuote for admonitions (#3031).
6323 The Div has class `admonition` and (if relevant) one of the
6324 following: `attention`, `caution`, `danger`, `error`, `hint`,
6325 `important`, `note`, `tip`, `warning`. **Note:** This will change
6326 the rendering of some RST documents! The word ("Warning", "Attention",
6327 etc.) is no longer added; that must be done with CSS or a filter.
6328 + A Div is now used for `sidebar` as well.
6329 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
6330 space before a footnote marker. We discard those spaces so that footnotes
6331 will be adjacent to the text that comes before it. This is in line with
6332 what rst2latex does.
6333 + Allow empty lines when parsing line blocks (Albert Krewinkel).
6335 * Markdown reader:
6337 + Allow empty lines when parsing line blocks (Albert Krewinkel).
6338 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
6340 * LaTeX reader:
6342 + More robust parsing of unknown environments (#3026).
6343 We no longer fail on things like `^` inside options for tikz.
6344 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
6345 Some custom environments give these a meaning, so we should try not to
6346 fall over when we encounter them.
6347 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
6349 * MediaWiki reader:
6351 + Fix for unquoted attribute values in mediawiki tables (#3053).
6352 Previously an unquoted attribute value in a table row
6353 could cause parsing problems.
6354 + Improved treatment of verbatim constructions (#3055).
6355 Previously these yielded strings of alternating Code and Space
6356 elements; we now incorporate the spaces into the Code. Emphasis
6357 etc. is still possible inside these.
6358 + Properly interpret XML tags in pre environments (#3042). They are meant
6359 to be interpreted as literal text.
6361 * EPUB reader: don't add root path to data: URIs (#3150).
6362 Thanks to @lep for the bug report and patch.
6364 * Org reader (Albert Krewinkel):
6366 + Preserve indentation of verse lines (#3064). Leading spaces in verse
6367 lines are converted to non-breaking spaces, so indentation is preserved.
6368 + Ensure image sources are proper links. Image sources as those in plain
6369 images, image links, or figures, must be proper URIs or relative file
6370 paths to be recognized as images. This restriction is now enforced
6371 for all image sources. This also fixes the reader's usage of uncleaned
6372 image sources, leading to `file:` prefixes not being deleted from
6373 figure images. Thanks to @bsag for noticing this bug.
6374 + Trim verse lines properly (Albert Krewinkel).
6375 + Extract meta parsing code to module. Parsing of meta-data is well
6376 separable from other block parsing tasks. Moving into new module to
6377 get small files and clearly arranged code.
6378 + Read markup only for special meta keys. Most meta-keys should be read
6379 as normal string values, only a few are interpreted as marked-up text.
6380 + Allow multiple, comma-separated authors. Multiple authors can be
6381 specified in the `#+AUTHOR` meta line if they are given as a
6382 comma-separated list.
6383 + Give precedence to later meta lines. The last meta-line of any given
6384 type is the significant line. Previously the value of the first line
6385 was kept, even if more lines of the same type were encountered.
6386 + Read LaTeX_header as header-includes. LaTeX-specific header commands
6387 can be defined in `#+LaTeX_header` lines. They are parsed as
6388 format-specific inlines to ensure that they will only show up in LaTeX
6389 output.
6390 + Set documentclass meta from LaTeX_class.
6391 + Set classoption meta from LaTeX_class_options.
6392 + Read HTML_head as header-includes. HTML-specific head content can be
6393 defined in `#+HTML_head` lines. They are parsed as format-specific
6394 inlines to ensure that they will only show up in HTML output.
6395 + Respect `author` export option. The `author` option controls whether
6396 the author should be included in the final markup. Setting
6397 `#+OPTIONS: author:nil` will drop the author from the final meta-data
6398 output.
6399 + Respect `email` export option. The `email` option controls whether the
6400 email meta-field should be included in the final markup. Setting
6401 `#+OPTIONS: email:nil` will drop the email field from the final
6402 meta-data output.
6403 + Respect `creator` export option. The `creator` option controls whether
6404 the creator meta-field should be included in the final markup. Setting
6405 `#+OPTIONS: creator:nil` will drop the creator field from the final
6406 meta-data output. Org-mode recognizes the special value `comment` for
6407 this field, causing the creator to be included in a comment. This is
6408 difficult to translate to Pandoc internals and is hence interpreted the
6409 same as other truish values (i.e. the meta field is kept if it's
6410 present).
6411 + Respect unnumbered header property (#3095). Sections the `unnumbered`
6412 property should, as the name implies, be excluded from the automatic
6413 numbering of section provided by some output formats. The Pandoc
6414 convention for this is to add an "unnumbered" class to the header. The
6415 reader treats properties as key-value pairs per default, so a special
6416 case is added to translate the above property to a class instead.
6417 + Allow figure with empty caption (Albert Krewinkel, #3161).
6418 A `#+CAPTION` attribute before an image is enough to turn an image into
6419 a figure. This wasn't the case because the `parseFromString` function,
6420 which processes the caption value, would fail on empty values. Adding
6421 a newline character to the caption value fixes this.
6423 * Docx reader:
6425 + Use XML convenience functions (Jesse Rosenthal).
6426 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
6427 the code a lot cleaner than the original XML.Light functions, but they
6428 had been used inconsistently. This puts them in wherever applicable.
6429 + Handle anchor spans with content in headers. Previously, we would only
6430 be able to figure out internal links to a header in a docx if the
6431 anchor span was empty. We change that to read the inlines out of the
6432 first anchor span in a header.
6433 + Let headers use existing id. Previously we always generated an id for
6434 headers (since they wouldn't bring one from Docx). Now we let it use an
6435 existing one if possible. This should allow us to recurs through anchor
6436 spans.
6437 + Use all anchor spans for header ids. Previously we only used the first
6438 anchor span to affect header ids. This allows us to use all the anchor
6439 spans in a header, whether they're nested or not (#3088).
6440 + Test for nested anchor spans in header. This ensures that anchor spans
6441 in header with content (or with other anchor spans inside) will resolve
6442 to links to a header id properly.
6444 * ODT reader (Hubert Plociniczak)
6446 + Include list's starting value. Previously the starting value of
6447 the lists' items has been hardcoded to 1. In reality ODT's list
6448 style definition can provide a new starting value in one of its
6449 attributes.
6450 + Infer caption from the text following the image.
6451 Frame can contain other frames with the text boxes.
6452 + Add `fig:` to title for Image with a caption (as expected
6453 by pandoc's writers).
6454 + Basic support for images in ODT documents.
6455 + Don't duplicate text for anchors (#3143). When creating an anchor
6456 element we were adding its representation as well as the original
6457 content, leading to text duplication.
6459 * DocBook writer:
6461 + Include an anchor element when a div or span has an id (#3102).
6462 Note that DocBook does not have a class attribute, but at least this
6463 provides an anchor for internal links.
6465 * LaTeX writer:
6467 + Don't use * for unnumbered paragraph, subparagraph. The starred
6468 variants don't exist. This helps with part of #3058...it gets rid of
6469 the spurious `*`s. But we still have numbers on the 4th and 5th level
6470 headers.
6471 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
6472 Otherwise they can cause unintended ligatures like `` ?` ``.
6473 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
6474 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
6475 This allows figure placement defaults to be changed by the user
6476 in the template.
6478 * HTML writer (slide show formats): In slide shows, don't change slide title
6479 to level 1 header (#2221).
6481 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
6482 TEI doesn't have `<book>` elements but only generic `<divN>` division
6483 elements. Checking the template for a trailing `</book>` is nonsensical.
6485 * MediaWiki writer: transform filename with underscores in images (#3052).
6486 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
6487 for internal links, but it also needs to happen for images.
6489 * ICML writer: replace partial function (!!) in table handling (#3175,
6490 Mauro Bieg).
6492 * Man writer: allow section numbers that are not a single digit (#3089).
6494 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
6495 (#3068). In AsciiDoc, you must use a special form of emphasis
6496 (double `__`) for intraword emphasis. Pandoc was previously using
6497 this more than necessary.
6499 * EPUB writer: use stringify instead of plain writer for metadata
6500 (#3066). This means that underscores won't be used for emphasis,
6501 or CAPS for bold. The metadata fields will just have unadorned
6502 text.
6504 * Docx Writer:
6506 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
6507 with a `custom-style` key in the attributes will apply the corresponding
6508 key to the contained blocks or inlines.
6509 + Add ReaderT env to the docx writer (Jesse Rosenthal).
6510 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
6511 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
6512 on the command line. For finer-grained control, you can set
6513 the `dir` attribute in Div or Span elements.
6515 * Org writer (Albert Krewinkel):
6517 + Remove blank line after figure caption. Org-mode only treats an image
6518 as a figure if it is directly preceded by a caption.
6519 + Ensure blank line after figure. An Org-mode figure should be surrounded
6520 by blank lines. The figure would be recognized regardless, but images
6521 in the following line would unintentionally be treated as figures as
6522 well.
6523 + Ensure link targets are paths or URLs. Org-mode treats links as
6524 document internal searches unless the link target looks like a URL or
6525 file path, either relative or absolute. This change ensures that this
6526 is always the case.
6527 + Translate language identifiers. Pandoc and Org-mode use different
6528 programming language identifiers. An additional translation between
6529 those identifiers is added to avoid unexpected behavior. This fixes a
6530 problem where language specific source code would sometimes be output
6531 as example code.
6532 + Drop space before footnote markers (Albert Krewinkel, #3162).
6533 The writer no longer adds an extra space before footnote markers.
6535 * Markdown writer:
6537 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
6538 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
6539 is disabled.
6540 + Check for the `raw_html` extension before emitting a raw HTML block.
6541 + Abstract out note/ref function (Jesse Rosenthal).
6542 + Add ReaderT monad for environment variables (Jesse Rosenthal).
6544 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
6545 subtitle, author, date (#3119). Note that, as a result of this change,
6546 authors may need to update CSS.
6548 * revealjs template: Added `notes-server` option
6549 (jgm/pandoc-templates#212, Yoan Blanc).
6551 * Beamer template:
6553 + Restore whitespace between paragraphs. This was
6554 a regression in the last release (jgm/pandoc-templates#207).
6555 + Added `themeoptions` variable (Carsten Gips).
6556 + Added `beamerarticle` variable. This causes the `beamerarticle`
6557 package to be loaded in beamer, to produce an article from beamer
6558 slides. (Carsten Gips)
6559 + Added support for `fontfamilies` structured variable
6560 (Artem Klevtsov).
6561 + Added hypersetup options (Jake Zimmerman).
6563 * LaTeX template:
6565 + Added dummy definition for `\institute`.
6566 This isn't a standard command, and we want to avoid a crash when
6567 `institute` is used with the default template.
6568 + Define default figure placement (Václav Haisman), since pandoc
6569 no longer includes `[htbp]` for figures. Users with custom templates
6570 will want to add this. See #3103.
6571 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
6572 Václav Haisman).
6574 * Moved template compiling/rendering code to a separate library.
6575 `doctemplates`. This allows the pandoc templating system to be
6576 used independently.
6578 * Text.Pandoc.Error: Fix out of index error in `handleError`
6579 (Matthew Pickering). The fix is to not try to show the exact line when
6580 it would cause an out-of-bounds error as a result of included files.
6582 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
6584 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
6585 addresses. Technically `**@user` is a valid email address, but if we
6586 allow things like this, we get bad results in markdown flavors
6587 that autolink raw email addresses (see #2940). So we exclude a few
6588 valid email addresses in order to avoid these more common bad cases.
6590 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
6591 emit the alt text, emphasized. This accords with what the ODT writer
6592 currently does. The user will still get a warning about a nonexistent
6593 image.
6595 * Fix example in API documentation (#3176, Thomas Weißschuh).
6597 * Tell where to get tarball in INSTALL (#3062).
6599 * Rename README to MANUAL.txt and add GitHub-friendly README.md
6600 (Albert Krewinkel, Kolen Cheung).
6602 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
6604 * MANUAL.txt:
6606 + Put note on structured vars in separate paragraph (#2148, Albert
6607 Krewinkel). Make it clearer that structured author variables require a
6608 custom template
6609 + Note that `--katex` works best with `html5` (#3077).
6610 + Fix the LaTeX and EPUB links in manual (Morton Fox).
6611 + Document `biblio-title` variable.
6613 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
6615 * Update KaTeX to v0.6.0 (Kolen Cheung).
6617 * Allow latest dependencies.
6619 * Use texmath 0.8.6.6 (#3040).
6621 * Allow http-client 0.4.30, which is the version in stackage lts.
6622 Previously we required 0.5.
6623 Remove CPP conditionals for earlier versions.
6625 * Remove support for GHC < 7.8 (Jesse Rosenthal).
6627 + Remove Compat.Monoid.
6628 + Remove an inline monad compatibility macro.
6629 + Remove Text.Pandoc.Compat.Except.
6630 + Remove directory compat.
6631 + Change constraint on mtl.
6632 + Remove unnecessary CPP condition in UTF8.
6633 + Bump base lower bound to 4.7.
6634 + Remove 7.6 build from .travis.yaml.
6635 + Bump supported ghc version in CONTRIBUTING.md.
6636 + Add note about GHC version support to INSTALL.
6637 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
6638 + Remove TagSoup compat.
6639 + Add EOL note to time compat module. Because time 1.4 is a boot library
6640 for GHC 7.8, we will support the compatibility module as long as we
6641 support 7.8. But we should be clear about when we will no longer need
6642 it.
6643 + Remove blaze-html CPP conditional.
6644 + Remove unnecessary CPP in custom Prelude.
6646pandoc (1.17.2)
6648 * Added Zim Wiki writer, template and tests. `zimwiki` is now
6649 a valid output format. (Alex Ivkin)
6651 * Changed email-obfuscation default to no obfuscation (#2988).
6652 + `writerEmailObfuscation` in `defaultWriterOptions` is now
6653 `NoObfuscation`.
6654 + the default for the command-line `--email-obfuscation` option is
6655 now `none`.
6657 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
6659 * Org writer:
6661 + Support arbitrary raw inlines (Albert Krewinkel).
6662 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
6663 parlance) to be included as `@@format:raw foreign format text@@`.
6664 + Improve Div handling (Albert Krewinkel). Div blocks handling is
6665 changed to make the output look more like idiomatic org mode:
6666 - Div-wrapped content is output as-is if the div's attribute is the
6667 null attribute.
6668 - Div containers with an id but neither classes nor key-value pairs
6669 are unwrapped and the id is added as an anchor.
6670 - Divs with classes associated with greater block elements are
6671 wrapped in a `#+BEGIN`...`#+END` block.
6672 - The old behavior for Divs with more complex attributes is kept.
6674 * HTML writer:
6676 + Better support for raw LaTeX environments (#2758).
6677 Previously we just passed all raw TeX through when MathJax was used for
6678 HTML math. This passed through too much. With this patch, only raw
6679 LaTeX environments that MathJax can handle get passed through.
6680 This patch also causes raw LaTeX environments to be treated
6681 as math, when possible, with MathML and WebTeX output.
6683 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
6684 (#2993). Markdown line breaks involve a newline, and simple and pipe
6685 tables can't contain one.
6687 * Make --webtex work with the Markdown writer (#1177).
6688 This is a convenient option for people using
6689 websites whose Markdown flavors don't provide for math.
6691 * Docx writer:
6693 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
6694 We treat display math like block quotes, and apply FirstParagraph style
6695 to paragraphs that follow them. These can be styled as the user
6696 wishes. (But, when the user is using indentation, this allows for
6697 paragraphs to continue after display math without indentation.)
6698 + Use actual creation time as doc prop (Jesse Rosenthal).
6699 Previously, we had used the user-supplied date, if available, for Word's
6700 document creation metadata. This could lead to weird results, as in
6701 cases where the user post-dates a document (so the modification might be
6702 prior to the creation). Here we use the actual computer time to set the
6703 document creation.
6705 * LaTeX writer:
6707 + Don't URI-escape image source (#2825). Usually this is a local file,
6708 and replacing spaces with `%20` ruins things.
6709 + Allow 'standout' as a beamer frame option (#3007).
6710 `## Slide title {.standout}`.
6712 * RST reader: Fixed links with no explicit link text. The link
6713 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
6714 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
6715 Closes Debian #828167 -- reported by Christian Heller.
6717 * Textile reader:
6719 + Fixed attributes (#2984). Attributes can't be followed by
6720 a space. So, `_(class)emph_` but `_(noclass) emph_`.
6721 + Fixed exponential parsing bug (#3020).
6722 + Fix overly aggressive interpretation as images (#2998).
6723 Spaces are not allowed in the image URL in textile.
6725 * LaTeX reader:
6727 + Fix `\cite` so it is a NormalCitation not AuthorInText.
6728 + Strip off double quotes around image source if present (#2825).
6729 Avoids interpreting these as part of the literal filename.
6731 * Org reader:
6733 + Add semicolon to list of special chars (Albert Krewinkel)
6734 Semicolons are used as special characters in citations syntax. This
6735 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
6736 suffix]`. Previously, parsing would have failed unless there was a space
6737 or other special character as the last <prefix> character.
6738 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
6739 A specification for an official Org-mode citation syntax was drafted by
6740 Richard Lawrence and enhanced with the help of others on the orgmode
6741 mailing list. Basic support for this citation style is added to the
6742 reader.
6743 + Support arbitrary raw inlines (Albert Krewinkel).
6744 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
6745 parlance) to be included as `@@format:raw foreign format text@@`.
6746 + Remove partial functions (Albert Krewinkel, #2991).
6747 Partial functions like `head` lead to avoidable errors and should be
6748 avoided. They are replaced with total functions.
6749 + Support figure labels (Albert Krewinkel, #2496, #2999).
6750 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
6751 respective image. This allows e.g. the LaTeX to add proper `\label`
6752 markup.
6753 + Improve tag and properties type safety (Albert Krewinkel).
6754 Specific newtype definitions are used to replace stringly typing of tags
6755 and properties. Type safety is increased while readability is improved.
6756 + Parse as headlines, convert to blocks (Albert Krewinkel).
6757 Emacs org-mode is based on outline-mode, which treats documents as trees
6758 with headlines are nodes. The reader is refactored to parse into a
6759 similar tree structure. This simplifies transformations acting on
6760 document (sub-)trees.
6761 * Refactor comment tree handling (Albert Krewinkel).
6762 Comment trees were handled after parsing, as pattern matching on lists
6763 is easier than matching on sequences. The new method of reading
6764 documents as trees allows for more elegant subtree removal.
6765 * Support archived trees export options (Albert Krewinkel).
6766 Handling of archived trees can be modified using the `arch` option.
6767 Archived trees are either dropped, exported completely, or collapsed to
6768 include just the header when the `arch` option is nil, non-nil, or
6769 `headline`, respectively.
6770 * Put export setting parser into module (Albert Krewinkel).
6771 Export option parsing is distinct enough from general block parsing to
6772 justify putting it into a separate module.
6773 * Support headline levels export setting (Albert Krewinkel).
6774 The depths of headlines can be modified using the `H` option. Deeper
6775 headlines will be converted to lists.
6776 * Replace ugly code with view pattern (Albert Krewinkel).
6777 Some less-than-smart code required a pragma switching of overlapping
6778 pattern warnings in order to compile seamlessly. Using view patterns
6779 makes the code easier to read and also doesn't require overlapping
6780 pattern checks to be disabled.
6781 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
6782 Org rules for allowed characters before or after markup chars were not
6783 checked for verbatim text. This resultet in wrong parsing outcomes of
6784 if the verbatim text contained e.g. space enclosed markup characters as
6785 part of the text (`=is_substr = True=`). Forcing the parser to update
6786 the positions of allowed/forbidden markup border characters fixes this.
6788 * LaTeX template: fix for obscure hyperref/xelatex issue.
6789 Here's a minimal case:
6791 \documentclass[]{article}
6792 \usepackage{hyperref}
6793 \begin{document}
6794 \section{\%á}
6795 \end{document}
6797 Without this change, this fails on the second invocation of xelatex.
6798 This affects inputs this like `# %á` with pdf output via xelatex.
6800 * trypandoc: call results 'html' instead of 'result'.
6801 This is for better compatibility with babelmark2.
6803 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
6804 MultiMarkdown was only mentioned as a supported Markdown dialect but not
6805 as a possible input or output format. A brief mention is added
6806 everywhere the other supported markdown dialects are mentioned.
6808 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
6809 Raw HTML is kept when the output format is Emacs Org mode.
6811 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
6813 * Text.Pandoc.Shared:
6815 + Introduce blocksToInlines function (Jesse Rosenthal).
6816 This is a lossy function for converting `[Block] -> [Inline]`. Its main
6817 use, at the moment, is for docx comments, which can contain arbitrary
6818 blocks (except for footnotes), but which will be converted to spans.
6819 This is, at the moment, pretty useless for everything but the basic
6820 `Para` and `Plain` comments. It can be improved, but the docx reader
6821 should probably emit a warning if the comment contains more than this.
6822 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
6823 + Add further formats for `normalizeDate` (Jesse Rosenthal).
6824 We want to avoid illegal dates -- in particular years with greater than
6825 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
6826 `%Y%m`, and finally `%Y`.
6827 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
6828 We only allow years between 1601 and 9999, inclusive. The ISO 8601
6829 actually says that years are supposed to start with 1583, but MS Word
6830 only allows 1601-9999. This should stop corrupted word files if the date
6831 is out of that range, or is parsed incorrectly.
6832 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
6833 Previously we parsed a list of dates, took the first one, and then
6834 tested its year range. That meant that if the first one failed, we
6835 returned nothing, regardless of what the others did. Now we test for
6836 sanity before running `msum` over the list of Maybe values. Anything
6837 failing the test will be Nothing, so will not be a candidate.
6839 * Docx reader:
6841 + Add simple comment functionality. (Jesse Rosenthal).
6842 This adds simple track-changes comment parsing to the docx reader. It is
6843 turned on with `--track-changes=all`. All comments are converted to
6844 inlines, which can list some information. In the future a warning will be
6845 added for comments with formatting that seems like it will be excessively
6846 denatured. Note that comments can extend across blocks. For that reason
6847 there are two spans: `comment-start` and `comment-end`. `comment-start`
6848 will contain the comment. `comment-end` will always be empty. The two
6849 will be associated by a numeric id.
6850 + Enable warnings in top-level reader (Jesse Rosenthal).
6851 Previously we had only allowed for warnings in the parser. Now we allow
6852 for them in the `Docx.hs` as well. The warnings are simply concatenated.
6853 + Add warning for advanced comment formatting. (Jesse Rosenthal).
6854 We can't guarantee we'll convert every comment correctly, though we'll
6855 do the best we can. This warns if the comment includes something other
6856 than Para or Plain.
6857 + Add tests for warnings. (Jesse Rosenthal).
6858 + Add tests for comments (Jesse Rosenthal).
6859 We test for comments, using all track-changes options. Note that we
6860 should only output comments if `--track-changes=all`. We also test for
6861 emitting warnings if there is complicated formatting.
6863 * README: update to include track-changes comments. (Jesse Rosenthal)
6865 * Improved Windows installer - don't ignore properties set on command-line.
6866 See #2708. Needs testing to see if this resolves the issue.
6867 Thanks to @nkalvi.
6869 * Process markdown extensions on command line in L->R order (#2995).
6870 Previously they were processed, very unintuitively, in R->L
6871 order, so that `markdown-tex_math_dollars+tex_math_dollars`
6872 had `tex_math_dollars` disabled.
6874 * Added `secnumdepth` variable to LaTeX template (#2920).
6876 * Include table of contents in README.html in Windows package.
6878 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
6879 In Writers.Shared, we strip leading and trailing spaces for display
6880 math. Since SoftBreak's are treated as spaces, we should strip those
6881 too.
6883 * beamer, latex templates: pass biblatexoptions directly in package load.
6884 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
6886 * CPP workaround for deprecation of `parseUrl` in http-client.
6888 * Removed some redundant class constraints.
6890 * make_oxs_package.sh - use OSX env variable.
6892 * Replaced INSTALL with INSTALL.md, incorporating INSTALL and the
6893 old installing page from website.
6895 * Added `winpkg` target to Makefile. This downloads the windows package
6896 from appveyor and signs it using the key.
6898 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
6899 Raw TeX is kept verbatim when the output format is Emacs Org mode.
6901 * Support math with haddock-library >= 1.4.
6903 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
6904 wouldn't accept the package.
6906 * Update library dependency versions.
6908pandoc (1.17.1)
6910 * New output format: `docbook5` (Ivo Clarysse).
6912 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
6913 (API change).
6915 * Org writer:
6917 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
6918 This allows header attributes to be added to org documents in the form
6919 of `:PROPERTIES:` drawers. All available attributes are stored as
6920 key/value pairs. This reflects the way the org reader handles
6921 `:PROPERTIES:` blocks.
6922 + Add drawer capability (Carlos Sosa). For the implementation of the
6923 Drawer element in the Org Writer, we make use of a generic Block
6924 container with attributes. The presence of a `drawer` class defines
6925 that the `Div` constructor is a drawer. The first class defines the
6926 drawer name to use. The key-value list in the attributes defines
6927 the keys to add inside the Drawer. Lastly, the list of Block elements
6928 contains miscellaneous blocks elements to add inside of the Drawer.
6929 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
6930 reserved for internal use by Org-mode and should not be used.
6931 The `CUSTOM_ID` property is to be used instead, it is converted to the
6932 `ID` property for certain export format.
6934 * LaTeX writer:
6936 + Ignore `--incremental` unless output format is beamer (#2843).
6937 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
6938 Allow for optional argument in square brackets.
6939 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
6940 This allows one to access the hyphenation patterns in CTAN's
6941 hyph-utf8.
6942 + Add missing languages from hyph-utf8 (Andrew Dunning).
6943 + Improve use of `\strut` with `\minipage` inside tables
6944 (Jose Luis Duran). This improves spacing in multiline
6945 tables.
6946 + Use `{}` around options containing special chars (#2892).
6947 + Avoid lazy `foldl`.
6948 + Don't escape underscore in labels (#2921). Previously they were
6949 escaped as `ux5f`.
6950 + brazilian -> brazil for polyglossia (#2953).
6952 * HTML writer: Ensure mathjax link is added when math appears in footnote
6953 (#2881). Previously if a document only had math in a footnote, the
6954 MathJax link would not be added.
6956 * EPUB writer: set `navpage` variable on nav page.
6957 This allows templates to treat it differently.
6959 * DocBook writer:
6961 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
6962 + Properly handle `ulink`/`link` (Ivo Clarysse).
6964 * EPUB reader:
6966 + Unescape URIs in spine (#2924).
6967 + EPUB reader: normalise link id (Mauro Bieg).
6969 * Docx Reader:
6971 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
6972 `moveTo` and `moveFrom` are track-changes tags that are used when a
6973 block of text is moved in the document. We now recognize these tags and
6974 treat them the same as `insert` and `delete`, respectively. So,
6975 `--track-changes=accept` will show the moved version, while
6976 `--track-changes=reject` will show the original version.
6977 + Tests for track-changes moving (Jesse Rosenthal).
6979 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
6980 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
6981 would error out if zip-archive failed. We change the archive extraction
6982 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
6984 * Markdown, HTML readers: be more forgiving about unescaped `&` in
6985 HTML (#2410). We are now more forgiving about parsing invalid HTML with
6986 unescaped `&` as raw HTML. (Previously any unescaped `&`
6987 would cause pandoc not to recognize the string as raw HTML.)
6989 * Markdown reader:
6991 + Added bracket syntax for native spans (#168).
6992 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
6993 + Added `-s` to markdown-reader-more test.
6995 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
6996 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
6998 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
6999 (roblabla).
7001 * RST reader: Support `:class:` option for code block in RST reader
7002 (Sidharth Kapur).
7004 * Org reader (all Albert Krewinkel, except where noted otherwise):
7006 + Stop padding short table rows.
7007 Emacs Org-mode doesn't add any padding to table rows. The first
7008 row (header or first body row) is used to determine the column count,
7009 no other magic is performed.
7010 + Refactor rows-to-table conversion. This refactors
7011 the codes conversing a list table lines to an org table ADT.
7012 The old code was simplified and is now slightly less ugly.
7013 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
7014 This fixes Org mode parsing of some corner cases regarding empty cells
7015 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
7016 two empty cells, but would be parsed as a single cell containing a pipe
7017 character. Empty rows where parsed as alignment rows and dropped from
7018 the output.
7019 + Fix spacing after LaTeX-style symbols.
7020 The org-reader was dropping space after unescaped LaTeX-style symbol
7021 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
7022 instead. This seems to be because the LaTeX-reader treats the
7023 command-terminating space as part of the command. Dropping the trailing
7024 space from the symbol-command fixes this issue.
7025 + Print empty table rows. Empty table rows should not
7026 be dropped from the output, so row-height is always set to be at least 1.
7027 + Move parser state into separate module.
7028 The org reader code has become large and confusing. Extracting smaller
7029 parts into submodules should help to clean things up.
7030 + Add support for sub/superscript export options.
7031 Org-mode allows to specify export settings via `#+OPTIONS` lines.
7032 Disabling simple sub- and superscripts is one of these export options,
7033 this options is now supported.
7034 + Support special strings export option Parsing of special strings
7035 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
7036 option.
7037 + Support emphasized text export option. Parsing of emphasized text can
7038 be toggled using the `*` option. This influences parsing of text marked
7039 as emphasized, strong, strikeout, and underline. Parsing of inline math,
7040 code, and verbatim text is not affected by this option.
7041 + Support smart quotes export option. Reading of smart quotes can be
7042 toggled using the `'` option.
7043 + Parse but ignore export options. All known export options are parsed
7044 but ignored.
7045 + Refactor block attribute handling. A parser state attribute was used
7046 to keep track of block attributes defined in meta-lines. Global state
7047 is undesirable, so block attributes are no longer saved as part of the
7048 parser state. Old functions and the respective part of the parser state
7049 are removed.
7050 + Use custom `anyLine`. Additional state changes need to be made after
7051 a newline is parsed, otherwise markup may not be recognized correctly.
7052 This fixes a bug where markup after certain block-types would not be
7053 recognized.
7054 + Add support for `ATTR_HTML` attributes (#1906).
7055 Arbitrary key-value pairs can be added to some block types using a
7056 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
7057 when exporting to HTML, but since we cannot make this distinction here,
7058 the attributes are always added. The functionality is now supported
7059 for figures.
7060 + Add `:PROPERTIES:` drawer support (#1877).
7061 Headers can have optional `:PROPERTIES:` drawers associated with them.
7062 These drawers contain key/value pairs like the header's `id`. The
7063 reader adds all listed pairs to the header's attributes; `id` and
7064 `class` attributes are handled specially to match the way `Attr` are
7065 defined. This also changes behavior of how drawers of unknown type
7066 are handled. Instead of including all unknown drawers, those are not
7067 read/exported, thereby matching current Emacs behavior.
7068 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
7069 + Respect drawer export setting. The `d` export option can be used
7070 to control which drawers are exported and which are discarded.
7071 Basic support for this option is added here.
7072 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
7073 Also fix up tab handling for leading whitespace in code blocks.
7074 + Support new syntax for export blocks. Org-mode version 9
7075 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
7076 where `<FORMAT>` is the format of the block's content, the new
7077 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
7078 supported.
7079 + Refactor `BEGIN...END` block parsing.
7080 + Fix handling of whitespace in blocks, allowing content to be indented
7081 less then the block header.
7082 + Support org-ref style citations. The *org-ref* package is an
7083 org-mode extension commonly used to manage citations in org
7084 documents. Basic support for the `cite:citeKey` and
7085 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
7086 + Split code into separate modules, making for cleaner code and
7087 better decoupling.
7089 * Added `docbook5` template.
7091 * `--mathjax` improvements:
7093 + Use new CommonHTML output for MathJax (updated default MathJax URL,
7094 #2858).
7095 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
7096 This is designed for cases where the input is always TeX and maximal
7097 conformity with TeX is desired. It seems to be smaller and load faster
7098 than what we used before. See #2858.
7099 + Load the full MathJax config to maximize loading speed (KolenCheung).
7101 * Bumped upper version bounds to allow use of latest packages
7102 and compilation with ghc 8.
7104 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
7105 #2310, #2310, #2824). This fixes behavior of roots, e.g.
7106 `\sqrt[3]{x}`, and issues with sub/superscript positioning
7107 and matrix column alignment in docx.
7109 * README:
7111 + Clarified documentation of `implicit_header_references` (#2904).
7112 + Improved documentation of `--columns` option.
7114 * Added appveyor setup, with artifacts (Jan Schulz).
7116 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
7118 * LaTeX template: support for custom font families (vladipus).
7119 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
7120 can find some other usages. Example usage in YAML metadata:
7122 fontfamilies:
7123 - name: \cyrillicfont
7124 font: Liberation Serif
7125 - name: \cyrillicfonttt
7126 options: Scale=MatchLowercase
7127 font: Liberation
7129 * Create unsigned msi as build artifact in appveyor build.
7131 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
7133pandoc (1.17.0.3)
7135 * LaTeX writer: Fixed position of label in figures (#2813).
7136 Previously the label wasn't in the right place, and `\ref`
7137 wouldn't work properly.
7138 * Added .tei test files to pandoc.cabal so they'll be included
7139 in tarball (#2811).
7140 * Updated copyright dates.
7142pandoc (1.17.0.2)
7144 * Fixed serious regression in `htmlInBalanced`, which caused
7145 newlines to be omitted in some raw HTML blocks in Markdown
7146 (#2804).
7148pandoc (1.17.0.1)
7150 * File scope is no longer used when there are no input files (i.e.,
7151 when input comes from stdin). Previously file scope was triggered
7152 when the `json` reader was specified and input came from `stdin`,
7153 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
7154 thanks to Fedor Sheremetyev for calling the bug to our attention.)
7155 * Improved documentation of templates (#2797).
7157pandoc (1.17)
7159 * Added `--file-scope` option (Jesse Rosenthal).
7160 By default pandoc operates on multiple files by first concatenating
7161 them (around extra line breaks) and then processing the joined file. So
7162 it only parses a multi-file document at the document scope. This has the
7163 benefit that footnotes and links can be in different files, but for
7164 some purposes it is useful to parse the individual files first
7165 and then combine their outputs (e.g. when the files use footnotes
7166 or links with the same labels). The `--file-scope` option causes
7167 pandoc to parse the files first, and then combine the parsed output,
7168 instead of combining before parsing. `--file-scope` is selected
7169 automatically for binary input files (which cannot be concatenated)
7170 and for pandoc json.
7172 * Add TEI Writer (Chris Forster) and `tei` output format.
7174 * Added a general `ByteStringReader` with warnings, used by the docx
7175 reader (API change, Jesse Rosenthal).
7177 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
7179 * Changed type of `Shared.uniqueIdent`'s argument from `[String]`
7180 to `Set String.` This avoids performance problems in documents with
7181 many identically named headers (API change, #2671).
7183 * Removed `tex_math_single_backslash` from `markdown_github` options
7184 (#2707).
7186 * Make language extensions as well as full language names
7187 trigger syntax highlighting. For example, `py` will now work as
7188 well as `python` (jgm/highlighting-kate#83).
7190 * Added `institute` variable to latex, beamer templates (Fraser
7191 Tweedale, Josef Svenningsson).
7193 * Docx reader (Jesse Rosenthal):
7195 + Handle alternate content. Some word functions (especially graphics)
7196 give various choices for content so there can be backwards compatibility.
7197 + Don't turn numbered headers into lists.
7198 + Docx Reader: Add state to the parser, for warnings
7199 + Update feature checklist in source code.
7200 + Get rid of `Modifiable` typeclass.
7201 + Add tests for adjacent hyperlinks.
7202 + Add a "Link" modifier to `Reducible`. We want to make sure that
7203 links have their spaces removed, and are appropriately smushed
7204 together (#2689).
7206 * HTML reader:
7208 + Fixed behavior of base tag (#2777).
7209 If the base path does not end with slash, the last component
7210 will be replaced. E.g. base = `http://example.com/foo`
7211 combines with `bar.html` to give `http://example.com/bar.html`.
7212 If the href begins with a slash, the whole path of the base
7213 is replaced. E.g. base = `http://example.com/foo/` combines
7214 with `/bar.html` to give `http://example.com/bar.html`.
7215 + Rewrote `htmlInBalanced`. This version avoids an exponential
7216 performance problem with `<script>` tags, and it should be faster
7217 in general (#2730).
7218 + Properly handle an empty cell in a simple table (#2718).
7219 + Handle multiple `<meta>` tags with same name. Put them in a list
7220 in the metadata so they are all preserved, rather than (as before)
7221 throwing out all but one..
7223 * Markdown reader:
7225 + Improved pipe table parsing (#2765).
7226 + Allow `+` separators in pipe table cells. We already allowed
7227 them in the header, but not in the body rows, for some reason.
7228 This gives compatibility with org-mode tables.
7229 + Don't cross line boundary parsing pipe table row.
7230 Previously an Emph element could be parsed across the newline
7231 at the end of the pipe table row.
7232 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
7233 performance (#2730).
7234 + Fixed bug with smart quotes around tex math.
7236 * LaTeX reader:
7238 + Handle interior `$` characters in math (#2743). For example,
7239 `$$\hbox{$i$}$$`.
7240 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
7241 This gives better results when people write e.g. `\TeX{}` in Markdown.
7242 + Properly handle LaTeX "math" environment as inline math (#2171).
7244 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
7245 Closes #2674.
7247 * Org reader (Albert Krewinkel):
7249 + Prefix even empty figure names with "fig:" (#2643). The
7250 convention used by pandoc for figures is to mark them by prefixing
7251 the name with `fig:`. The org reader failed to do this if a figure
7252 had no name.
7253 + Refactor link-target processing (#2684).
7255 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
7256 Thanks to @c-foster.
7258 * HTML writer: Don't include alignment attribute for default table columns.
7259 Previously these were given "left" alignment. Better to leave off
7260 alignment attributes altogether (#2694).
7262 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
7263 better compatibility with other Markdown flavors (Henrik Tramberend).
7265 * LaTeX writer:
7267 + Use image identifier to create a label and hypertarget for
7268 figures (Mauro Bieg).
7269 + Avoid double toprule in headerless table with caption (#2742).
7270 + Clean up options parser (Jesse Rosenthal).
7271 + Treat `memoir` template with `article` option as article, instead
7272 of treating all `memoir` templates as books.
7273 + Allow more flexible table alignment (Henrik Tramberend, #2665).
7274 New default is not to include `[c]` option (which is the default
7275 anyway if no positioning is specified). Now LaTeX emplates can
7276 control the overall table alignment in a document by setting the
7277 longtable length variables `LTleft` and `LTright`. For example,
7278 `\setlength\LTleft\parindent\setlength\LTright\fill`
7279 will create left-aligned tables that respect paragraph indentation.
7281 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
7283 * Org writer - pass through RawInline with format "org".
7285 * DokuWiki writer: use `$$` for display math.
7287 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
7289 * Make protocol-relative URIs work again (#2737).
7291 * make_osx_package.sh: Use env variable for developer id certs.
7293 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
7294 problems (#2734).
7296 * Allow `zip-archive` 0.3.
7298 * Allow `aeson` 0.11.
7300pandoc (1.16.0.2)
7302 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
7304 * Fixed regression in latex smart quote parsing (#2645).
7305 In cases where a match was not found for a quote, everything
7306 from the open quote to the end of the paragraph was being dropped.
7308pandoc (1.16.0.1)
7310 * Fixed regression with `--latex-engine` (#2618). In 1.16 `--latex-engine`
7311 raises an error if a full path is given.
7313 * Org reader: Fix function dropping subtrees tagged `:noexport`
7314 (Albert Krewinkel, #2628):
7316 * Markdown reader: renormalize table column widths if they exceed 100%
7317 (#2626).
7319 * Textile reader: don't allow block HTML tags in inline contexts.
7320 The reader previously did allow this, following redcloth,
7321 which happily parses
7323 Html blocks can be <div>inlined</div> as well.
7325 as
7327 <p>Html blocks can be <div>inlined</div> as well.</p>
7329 This is invalid HTML. The above sample now produces;
7331 <p>Html blocks can be</p>
7332 <div>
7333 <p>inlined</p>
7334 </div>
7335 <p>as well.</p>
7337 * Improved default template lookup for custom lua scripts (#2625).
7338 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
7339 pandoc would look for the template in
7340 `~/.pandoc/templates/default./path/to/lua/script.lua`.
7341 With this change it will look in the more reasonable
7342 `~/.pandoc/templates/default.script.lua`. This makes it possible to
7343 store default templates for custom writers.
7345 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
7346 (#2615).
7348 * LaTeX writer: restore old treatment of Span (#2624). A Span is
7349 now rendered with surrounding `{}`, as it was before 1.16.
7351 * Entity handling fixes: improved handling of entities like
7352 `&lang;` that require a trailing semicolon. Allow uppercase
7353 `x` in numerical hexadecimal character references, working
7354 around a tagsoup bug.
7356 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
7357 memory use on compile. With aeson 0.10 we were getting an out of
7358 memory error on a 2GB Ubuntu 64-bit VM.
7360 * Improved deb package creation script. Made `DPKGVER` work.
7361 Renamed `COMMIT` to `TREE`. You should now be able to do
7362 `TREE=1.16.0.1 DPKGVER=2 make deb`.
7365pandoc (1.16)
7367 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
7369 + Added syntax for link and image attributes to pandoc's Markdown.
7370 + Updated readers and writers to use link and image attributes
7371 when appropriate.
7372 + Support image attributes in Docx, Textile, RST readers.
7374 * Renamed link attribute extensions. The old `link_attributes` is
7375 now `mmd_link_attributes`, and `link_attributes` now enables the
7376 new pandoc-style link and image attributes (API change).
7377 Note: this change could break some existing workflows.
7379 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
7380 Added threefold wrapping option.
7382 + Command line option: deprecated `--no-wrap`, added
7383 `--wrap=[auto|none|preserve]`
7384 + Added `WrapOption`, exported from `Text.Pandoc.Options`
7385 + Changed type of `writerWrapText` in `WriterOptions` from
7386 `Bool` to `WrapOption`.
7387 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
7388 + Supported `SoftBreak` in readers and writers.
7390 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
7391 change, Mauro Bieg).
7393 * Added `--dpi` command-line option (Mauro Bieg).
7395 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
7396 This change makes `--no-tex-ligatures` affect the LaTeX reader
7397 as well as the LaTeX and ConTeXt writers. If it is used,
7398 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
7399 literally, rather than parsing ligatures for quotation marks
7400 and dashes. And the LaTeX writer will print unicode quotation
7401 mark and dash characters literally, rather than converting
7402 them to the standard ASCII ligatures. Note that `--smart` has
7403 no effect on the LaTeX reader. `--smart` is still the default
7404 for all input formats when LaTeX or ConTeXt is the output format,
7405 *unless* `--no-tex-ligatures` is used.
7407 Some examples to illustrate the logic:
7409 ```
7410 % echo "'hi'" | pandoc -t latex
7411 `hi'
7412 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
7413 'hi'
7414 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
7415 ‘hi’
7416 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
7417 <p>'hi'</p>
7418 % echo "'hi'" | pandoc -f latex
7419 <p>’hi’</p>
7420 ```
7422 * Removed deprecated options `--offline` and `--html5`.
7424 * Fixed language code for Czech (`cs` not `cz`) (#2597).
7426 * Implemented `east_asian_line_breaks` extension (#2586).
7427 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
7428 to `Extension` (API change). This extension is like
7429 `ignore_line_breaks`, but smarter -- it only ignores line breaks
7430 between two East Asian wide characters. This makes it better suited
7431 for writing with a mix of East Asian and non-East Asian scripts.
7433 * Added support for PDF creation via `wkhtmltopdf`.
7434 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
7435 if you have math.) Margins can be set using the variables
7436 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
7437 Other styling can be done through CSS.
7439 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
7440 We were capturing final colons as in `[@foo: bar]`; the citation id
7441 was being parsed as `@foo:`.
7443 * ICML writer:
7445 + Fixed image syntax for local files (#2589).
7446 + Changed type of `writeICML` (Mauro Bieg).
7447 API change: It is now `WriterOptions -> Pandoc -> IO String`.
7448 Also handle new image attributes.
7449 + Intersperse line breaks instead of appending them to
7450 every `ParagraphStyleRange` (Mauro Bieg, #2501).
7451 + Add `Cite` style to citations (Mauro Bieg).
7452 + Added figure handling (#2590, Mauro Bieg).
7453 + Better handling of math. Instead of just printing the raw tex,
7454 we now try to fake it with unicode characters.
7456 * HTML writer: Include `example` class for example lists (#2524).
7458 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
7460 + Support for percentage widths/heights
7461 + Use `Attr` instead of title to get dimensions from ODT walker
7462 to `writeOpenDocument`.
7464 * AsciiDoc writer:
7466 + Support anchors in spans and divs with id elements
7467 (jgm/pandoc-citeproc#143).
7468 + Fixed code blocks (#1861).
7470 * Haddock writer: omit formatting inside links, which isn't supported
7471 by Haddock (#2515).
7473 * MediaWiki writer: Fixed spacing issues in table cells.
7475 + Start cell on new line unless it's a single Para or Plain
7476 (#2606).
7477 + For single Para or Plain, insert a space after the `|` to
7478 avoid problems when the text begins with a character like
7479 `-` (#2604).
7481 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
7483 * LaTeX writer:
7485 + Add support for GAP highlighting using listings (Raniere Silva).
7486 + Consider `header-includes` content as well as templates
7487 when determining whether to use csquotes (Andreas Lööw).
7488 + Create defaults for geometry using `margin-left` etc.
7489 If `geometry` has no value, but `margin-left`, `margin-right`,
7490 `margin-top`, and/or `-margin-bottom` are given, a default value
7491 for `geometry` is created from these. Note that these variables
7492 already affect PDF production via HTML5 with `wkhtmltopdf`.
7494 * ConTeXt writer: set default layout based on `margin-left`, etc.
7495 This sets up `\setuplayout` based on the variables `margin-left`,
7496 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
7497 is given.
7499 * Docx writer: better handling of PDF images. Previously we tried
7500 to get the image size from the image even if an explicit size was
7501 specified. Since we still can't get image size for PDFs, this made
7502 it impossible to use PDF images in docx. Now we don't try to get
7503 the image size when a size is already explicitly specified.
7505 * Markdown writer: use raw HTML for link/image attributes when
7506 the `link_attributes` extension is unset and `raw_html` is set (#2554).
7508 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
7510 * LaTeX reader:
7512 + Improved smart quote parsing (#2555). This fixes redering of
7513 unmatched quotes.
7514 + Use curly quotes for unmatched ` (#2555).
7515 + Allow blank space between braced arguments of commands (#2592).
7517 * Markdown reader:
7519 + Improved pipe table relative widths. Previously pipe table
7520 columns got relative widths (based on the header underscore lines)
7521 when the source of one of the rows was greater in width than the
7522 column width. This gave bad results in some cases where much of
7523 the width of the row was due to nonprinting material (e.g. link
7524 URLs). Now pandoc only looks at printable width (the width of a
7525 plain string version of the source), which should give better results.
7526 Thanks to John Muccigrosso for bringing up the issue.
7527 + Fixed parsing bug with macros. Previously macro definitions in
7528 indented code blocks were being parsed as macro definitions, not code.
7530 * Textile reader: skip over attribute in image source (#2515).
7531 We don't have a place yet for styles or sizes on images, but
7532 we can skip the attributes rather than incorrectly taking them
7533 to be part of the filename.
7535 * Docx reader: Handle dummy list items (Jesse Rosenthal).
7536 These come up when people create a list item and then delete the
7537 bullet. It doesn't refer to any real list item, and we used to ignore
7538 it.
7540 * CommonMark reader/writer rewritten to use latest `cmark`.
7542 * Fixed Emoji character definitions (#2523). There were many bugs in the
7543 definitions.
7545 * `Text.Pandoc.CSS`:
7547 + Added `pickStylesToKVs` function to extract multiple properties at
7548 once (API change, Mauro Bieg).
7549 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
7551 * `trypandoc`: sort drop-down lists.
7553 * Beamer template:
7555 + Made `\euro` conditional on presence of character.
7556 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
7557 + Moved `header-includes` before setting of title (Thomas Hodgson),
7558 to match the LaTeX template (jgm/pandoc-templates#168).
7559 + Added `section-titles` variable (defaults to true)
7560 to enable/suppress section title pages in beamer
7561 slide shows (Thomas Hodgson).
7562 + Moved beamer themes after fonts, so that themes can
7563 change fonts. (Previously the fonts set were being
7564 clobbered by lmodern.sty.) (Thomas Hodgson).
7566 * Beamer/LaTeX template changes (Thomas Hodgson):
7567 + Added `thanks` variable
7568 + Use `parskip.sty` when `indent` isn't set (fall back to using
7569 `setlength` as before if `parskip.sty` isn't available).
7570 + Use `biblio-style` with biblatex.
7571 + Added `biblatexoptions` variable.
7573 * LaTeX template changes:
7575 + Added `paper` after `$papersize$` variable in latex template.
7576 Thus you can say `papersize: a4` and the latex will contain
7577 `a4paper`. This change may break some existing workflows; if
7578 you currently specify `a4paper`, you'll get `a4paperpaper` which
7579 is meaningless. However, the change seems worth it, as it will
7580 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
7581 and html->pdf via wkhtmltopdf.
7582 + Only pass options to color package if `colorlinks` is set
7583 (Andrew Dunning).
7584 + Make definition of `\euro` conditional in xelatex/lualatex,
7585 as it is already for pdflatex (Andrew Dunning).
7586 + Removed setting of `subject` in PDF metadata.
7587 This used to be set to the subtitle, but really the subtitle
7588 need not give the subject. Also, `subtitle` can contain formatting,
7589 so we'd need, at least, a plain text version for this.
7590 + Moved `header-includes` before setting of `\title`, `\author`,
7591 etc. This allows these macros to be redefined.
7592 + Use `\subtitle` command for `subtitle`, instead of tacking it
7593 on to the title as before. We give a no-op fallback definition if it
7594 is not defined. This change should produce much better results
7595 in classes that support `\subtitle`. With the default article
7596 class, which does not define `\subtitle`, subtitles will no
7597 longer be printed unless the user defines `\subtitle` and
7598 redefines `\maketitle`.
7599 + Moved redefinitions of `\paragraph` and `\subparagraph` to
7600 before header-includes.
7602 * Context template:
7604 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
7605 needed for things to work on ConTeXt stable from TeXLive 2015.
7606 + Revert use of `\setuphead` in title block (Andrew Dunning,
7607 Rik Kabel).
7609 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
7611 * Fixed man template so disabling hyphenation actually works.
7612 The command needs to come after .TH.
7614 * Added 'navigation' variable to beamer template (#2543).
7615 Valid values are `empty` (the default), `horizontal`, `vertical`,
7616 and `frame`. Note that this changes the default behavior from
7617 `horizontal` to `empty`. Closes #2543.
7619 * Added `toc` to HTML slide format templates (Andrew Dunning),
7620 so that `--toc` creates a contents slide.
7622 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
7624 * Allow pipe tables with no body rows (#2556).
7625 Previously this raised a runtime error.
7627 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
7628 as URL. The Haskell URI parsing routines will accept "C:" as a
7629 scheme, so we rule that out manually. This helps with
7630 `--self-contained` and absolute Windows paths.
7632 * Define a `meta-json` variable for all writers (#2019). This contains
7633 a JSON version of all the metadata, in the format selected for the
7634 writer. So, for example, to get just the YAML metadata, you can run
7635 pandoc with the following custom template: `$meta-json$`. The intent
7636 is to make it easier for static site generators and other tools to get
7637 at the metadata.
7639 * Document limitations of --self-contained (#2553).
7641 * Improved Citations section of README (#2551). Added information
7642 about `link-citations` and a link to the pandoc-citeproc man page.
7644 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
7645 in base < 4.6.
7647 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
7649 * Improved implicit pandoc-citeproc inclusion.
7650 The filter pandoc-citeproc is automatically used when
7651 `--bibliography` is specified on the command line, unless
7652 `--natbib` or `--biblatex` is used. However, previously this
7653 only worked if `--bibliography` was spelled out in full, and not
7654 if `--biblio` was used.
7656 * reveal.js: Interpret pauses correctly for all headers (#2530).
7657 Previously, when using headers below the slide level, pauses are left
7658 uninterpreted into pauses. In my opinion, unexpected behavior but
7659 intentional looking at the code.
7661 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
7663 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
7664 Bieg, API change).
7666 * ImageSize: Added functions for converting between image dimensions
7667 (Mauro Bieg).
7669 * Use lts-3.18 in stack.yaml. This avoids Windows build
7670 issues with the HTTP library.
7672 * Bump version bounds for dependencies.
7674pandoc (1.15.2.1)
7676 * Added two missing test files, and `stack.yaml`, to
7677 `extra-source-files` so they're included in the source tarball.
7679 * reveal.js template: Fixed parallaxBackground options.
7680 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
7681 need integer values, not strings. (Vaughn Iverson)
7683pandoc (1.15.2)
7685 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
7686 ConTeXt rather than LaTeX (#2463).
7688 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
7690 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
7691 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
7692 (API change).
7694 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
7695 parsing (#2469). Tightened up the inline HTML parser so it disallows
7696 TagWarnings.
7698 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
7700 * Org reader:
7702 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
7703 Paragraphs can be followed by lists, even if there is no blank line
7704 between the two blocks. However, this should only be true if the
7705 paragraph is not within a list, were the preceding block should be
7706 parsed as a plain instead of paragraph (to allow for compact lists).
7707 Thanks to @rgaiacs for bringing this up.
7708 + Allow toggling header args (Albert Krewinkel, #2269).
7709 Org-mode allows to skip the argument of a code block header argument if
7710 it's toggling a value. Argument-less headers are now recognized,
7711 avoiding weird parsing errors.
7712 + Fix markup parsing in headers (Albert Krewinkel, #2504).
7713 Markup as the very first item in a header wasn't recognized. This was
7714 caused by an incorrect parser state: positions at which inline markup
7715 can start need to be marked explicitly by changing the parser state.
7716 This wasn't done for headers. The proper function to update the state
7717 is now called at the beginning of the header parser, fixing this issue.
7718 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
7719 Smart quotes, ellipses, and dashes should behave like normal quotes,
7720 single dashes, and dots with respect to text markup parsing.
7721 + Require whitespace around definition list markers (#2518).
7722 This rule was not checked before, resulting in bugs with footnotes
7723 and some link types.
7725 * Markdown reader:
7727 + Pipe tables with long lines now get relative cell widths (#2471).
7728 If a pipe table contains a line longer than the column width (as set by
7729 `--columns` or 80 by default), relative widths are computed based on the
7730 widths of the separator lines relative to the column width. This should
7731 solve persistent problems with long pipe tables in LaTeX/PDF output, and
7732 give more flexibility for determining relative column widths in other
7733 formats, too. For narrower pipe tables, column widths of 0 are used,
7734 telling pandoc not to specify widths explicitly in output formats that
7735 permit this.
7736 + Improved parser for `mmd_title_block`. We now allow blank metadata
7737 fields. These were explicitly disallowed before.
7738 + Citation keys can now contain `://`, so URLs and DOIs can be used
7739 as citation keys (jgm/pandoc-citeproc#166).
7741 * Beamer template: fix incompatibility of section slides with natbib.
7742 Natbib (and presumably biblatex) bibliography commands create
7743 their own section. Since these are in frame environments,
7744 we have an incompatibility with the `\AtBeginSection` macro
7745 which creates a special frame when a new section occurs.
7746 (We can't have a frame inside another frame.) This change disables
7747 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
7748 bringing the problem to my attention. This supersedes #145. See
7749 discussion there.
7751 * Textile reader: don't do smart punctuation unless explicitly asked
7752 (#2480). Note that although smart punctuation is part of the textile
7753 spec, it's not always wanted when converting from textile
7754 to, say, Markdown. So it seems better to make this an option.
7756 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
7757 The `comment` environment is handled in a similar way to the
7758 `verbatim` environment, except that its content is discarded.
7760 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
7761 Jesse Rosenthal). This fixes a problem with links in notes.
7763 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
7764 (Mauro Bieg). For LaTeX, also collect `lang` and `dir` attributes on
7765 spans and divs to set the `lang`, `otherlangs` and `dir` variables if
7766 they aren’t set already. See #895.
7768 * LaTeX writer:
7770 + Use proper command for `\textarabic` (Mauro Bieg).
7771 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
7772 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
7773 to link to Div or Span elements. We now don't bother defining `\label`
7774 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
7775 + Avoid footnotes in list of figures (#1506).
7776 + Properly handle footnotes in captions (#1506).
7777 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
7778 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
7779 `toccolor` is set (#2508).
7781 * Textile writer: support start number in ordered lists (#2465).
7783 * OpenDocument writer: Allow customization of opendocument
7784 automatic styles. Automatic styles can now be inserted in the
7785 template, which now provides the enclosing `<office:automatic-styles>`
7786 tags (#2520).
7788 * Docx writer: insert space between footnote reference and note (#2527).
7789 This matches Word's default behavior.
7791 * EPUB writer: don't download linked media when `data-external` attribute
7792 set (#2473). By default pandoc downloads all linked media and includes it
7793 in the EPUB container. This can be disabled by setting `data-external` on
7794 the tags linking to media that should not be downloaded. Example:
7796 <audio controls="1">
7797 <source src="http://example.com/music/toccata.mp3"
7798 data-external="1" type="audio/mpeg">
7799 </source>
7800 </audio>
7802 * HTML writer: use width on whole table if col widths sum to < 100%.
7803 Otherwise some browsers display the table with the columns
7804 separated far apart.
7806 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
7807 `abstract` (Andrew Dunning).
7809 * HTML-based templates (Andrew Dunning):
7811 + Use en dash instead of hyphen between title prefix and title.
7812 + Add `keywords` to metadata.
7813 + Add `lang`, `dir`, `quotes` where missing.
7814 + Always make author and date display conditional.
7815 + Updated dzslides template from source.
7817 * Man template: make "generated by" comment conditional.
7819 * LaTeX, Beamer templates:
7821 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
7822 filled by commands that make babel understand the polyglossia-style
7823 language directives (Mauro Bieg, #137).
7824 + Improved formatting of conditionals; `$for$` is always provided to allow
7825 multiple options (Andrew Dunning, #141).
7826 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
7827 to improve support for LuaTeX (Andrew Dunning, #135).
7828 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
7829 - use same options for all LaTeX engines;
7830 - add `subtitle` and `keywords` to PDF metadata;
7831 - do not override `hyperref` link coloring without user input, effectively making
7832 the `hidelinks` option the default (removed as a separate variable);
7833 - link colors can be enabled (using a slightly darker version of the old
7834 defaults) using a new `colorlinks` variable, automatically used by
7835 the LaTeX writer when custom colors are specified;
7836 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
7837 `colorlinks`, and is only applied if `colorlinks` is disabled.
7839 * ConTeXt template (Andrew Dunning):
7841 + New variables for controlling styles: `linkstyle`, `linkcolor`,
7842 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
7843 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
7844 `monofont`, `mathfont`, `fontsize`.
7845 + Default template no longer supports MkII.
7846 + Improve writing of title block (suppressing numbering of first page).
7847 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
7848 + Support `subtitle`, `abstract`.
7849 + Support list of figures (`lof`), list of tables (`lot`).
7850 + Disable link styling by default.
7851 + Define styles for all section types.
7852 + Enable microtype.
7853 + Improved formatting of conditionals.
7855 * Beamer template: added code to prevent slide breaks inside paragraphs
7856 (#2422, thanks to Nick Bart). This will matter, in practice, only when
7857 `allowframebreaks` is used. It is especially helpful for bibliography
7858 slides.
7860 * OpenDocument template: Add `<office:automatic-styles>` tag around
7861 automatic styles. The writer now longer provides this (see #2520).
7863 * Restored Text.Pandoc.Compat.Monoid.
7865 * Do not export (<>) from custom Prelude. The Prelude now matches
7866 base 4.8 Prelude's API.
7868 * Don't use custom prelude with ghc 7.10. Use the custom prelude
7869 only for earlier versions. This change makes `stack ghci` and
7870 `cabal repl` work (#2503), at least with ghc 7.10.
7872 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
7873 This prevents problems building haddocks with "C" locale.
7875 * Change default for old-locale flag to False.
7877 * Use stack in deb, osx, and Windows package generators.
7879 * Added Vagrantfile for building deb in vm.
7880 This should help in automating binary package creation. 'make package'
7881 will make the package. 'make package COMMIT=blah' will make the package
7882 from commit blah.
7884 * README:
7886 + Consistent capitalization for pandoc and Markdown.
7887 + Fixed `auto_identifiers` examples (Benoit Schweblin).
7888 + Improved documentation of template variables (Andrew Dunning).
7890pandoc (1.15.1.1)
7892 * `Text.Pandoc.Data`: store paths in dataFiles using posix separators.
7893 This way we have uniform separators, whether on Windows or Linux.
7894 This should solve a problem where on some Windows versions
7895 the data files weren't being found (#2459).
7897pandoc (1.15.1)
7899 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
7900 and reexported from `Text.Pandoc` (Alex Vong). This allows
7901 writers to access it. (Alex Vong) (API change)
7903 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
7904 `subscripts` (#2401).
7906 * Added `odt` as input format (Martin Linnemann). Added new module
7907 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
7908 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
7909 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
7910 Partly implemented features: Citations, Tables.
7912 * Markdown Reader:
7914 + Add basic tests for each header style (Ophir Lifshitz).
7915 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
7916 + Skip spaces in headers (Ophir Lifshitz).
7917 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
7918 `# Header {id="myid" class="foo bar"}`
7919 is now equivalent to `# Header {#myid .foo .bar}`.
7920 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
7921 (Kristof Bastiaensen)
7922 + Pipe tables: allow indented columns. Previously the left-hand column
7923 could not start with 4 or more spaces indent. This was inconvenient
7924 for right-aligned left columns. Note that the first (header column)
7925 must still have 3 or fewer spaces indentation, or the table will be
7926 treated as an indented code block.
7927 + Fix regression: allow HTML comments containing `--`.
7928 Technically this isn't allowed in an HTML comment, but
7929 we've always allowed it, and so do most other implementations.
7930 It is handy if e.g. you want to put command line arguments
7931 in HTML comments.
7933 * LaTeX reader:
7935 + Don't eat excess whitespace after macros with only optional
7936 arguments (#2446).
7937 + Support longtable (#2411).
7938 + Implement `\Cite` (#2335).
7939 + Support abstract environment. The abstract populates an
7940 `abstract` metadata field.
7941 + Properly handle booktabs lines. Lines aren't part of the
7942 pandoc table model, so we just ignore them (#2307).
7944 * HTML reader:
7946 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
7947 + Updated for new automatic header attributes.
7948 + Add auto identifiers if not present on headers. This makes
7949 TOC linking work properly.
7950 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
7951 + Test `<ol>` type, class, and inline list-style(-type) CSS
7952 (Ophir Lifshitz).
7953 + Better handling of "section" elements (#2438). Previously
7954 `<section>` tags were just parsed as raw HTML blocks. With
7955 this change, section elements are parsed as Div elements with
7956 the class "section".
7958 * MediaWiki reader: handle unquoted table attributes (#2355).
7960 * DocBook reader:
7962 + Added proper support for DocBook `xref` elements (Frerich Raabe).
7963 Added `dbContent` field to reader state, so we can lookup
7964 cross refs.
7965 + Handle `informalexample` (#2319).
7967 * Docx Reader:
7969 + Create special punctuation test (Ophir Lifshitz).
7970 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
7971 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
7972 in `headers.docx` with pandoc's current `styles.xml`, which
7973 contains styles for Heading 1 through 6. Added Heading 4
7974 through 7 to the test document. Note that Heading 7 is not
7975 parsed as a Heading because there is no Heading 7 style.
7977 * RST reader: better handling of indirect roles.
7978 Previously the parser failed on this kind of case
7980 .. role:: indirect(code)
7982 .. role:: py(indirect)
7983 :language: python
7985 :py:`hi`
7987 Now it correctly recognizes `:py:` as a code role.
7989 * Org reader:
7991 + Add auto identifiers if not present on headers
7992 (#2354, Juliusz Gonera).
7993 + Allow verse blocks to contain empty lines (#2402,
7994 Albert Krewinkel).
7996 * EPUB reader: stop mangling external URLs (#2284).
7998 * RST writer:
8000 + Don't insert `\ ` when complex expression in matched pairs.
8001 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
8002 + Ensure that `\ ` is inserted when needed before Cite and Span
8003 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
8004 + Normalize headers only in "standalone" mode (#2394).
8006 * Haddock writer: escape `*` and `^` (G. Bataille).
8008 * Markdown writer:
8010 + In TOC, add links to headers (#829).
8011 + Use unicode super/subscripts for digits in plain output
8012 (when the `superscripts` and `subscripts` extensions are
8013 not enabled).
8015 * Docx writer:
8017 + Moved invalid character stripping to `formattedString`.
8018 This avoids an inefficient generic traversal (#2356).
8019 + Use user data directory for `reference.docx` archive.
8020 This allows the test suite to work without installing pandoc first.
8021 It also brings the docx writer in line with the odt writer.
8022 + Tests: docx writer tests now use `../data` for data directory.
8023 This allows tests to be run without installing first.
8024 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
8026 * LaTeX writer:
8028 + Fixed detection of 'chapters' from template.
8029 If a documentclass isn't specified in metadata, but the
8030 template has a hardwired bookish documentclass, act as if
8031 `--chapters` was used. This was the default in earlier
8032 versions, but it has been broken for a little while.
8033 + Correctly recognize book documentclass in metadata (#2395).
8034 + Set language-related variables automatically, depending
8035 on the value of the `lang` field, which is now always
8036 assumed to be in BCP47 format (Mauro Bieg, #1614, #2437).
8037 + Add `\protect` to `\hyperdef` in inline context. This way we
8038 don't get an error when this is used as a moveable argument (#2136).
8039 + Support all frame attributes in Beamer.
8040 + Percent-encode more special characters in URLs (#1640, #2377).
8041 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
8043 * HTML writer:
8045 + Update KaTeX JS and CSS versions (Emily Eisenberg).
8046 + For dzslides, add `role="note"` for speaker notes (#1693).
8047 + Percent-encode more special characters in URLs (#1640, #2377).
8048 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
8049 + Render Div with class `section` as `<section>` in HTML5.
8051 * EPUB writer:
8053 + In TOC, replace literal `<br/>` with space (#2105).
8054 + With `--webtex`, include image file rather than `data:` URI (#2363).
8056 * Native writer: format Div properly, with blocks separated.
8058 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
8059 (#2191, Mauro Bieg).
8061 * Reference Docx:
8063 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
8064 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
8066 * Templates
8068 + Beamer: Add `innertheme`, `outertheme` variables
8069 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
8070 Integrate recent font and language updates from LaTeX template;
8071 allow use of `mainfont` variable for changing the slide text
8072 in XeTeX and LuaTeX (Andrew Dunning, #131).
8073 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
8074 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
8075 (Andrew Dunning, #122). Support handling of bidirectional
8076 text (Mauro Bieg, #120). Improve reliability of superscripts/subscripts
8077 under XeTeX and prevent letters and numbers from appearing on a
8078 different baseline by removing use of the `realscripts` package
8079 (via `xltxtra`). To restore use of OpenType characters for these
8080 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
8081 `header-includes` (Andrew Dunning, #130). Remove redundant
8082 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
8083 `indent`, `subparagraph` variables (Andrew Dunning).
8084 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
8085 #113). Prevent package clash with `tufte-latex` and other classes that
8086 include `hyperref` or `color` (Xavier Olive, #115).
8087 + ConTeXt: Support handling of bidirectional text (Mauro Bieg, #120).
8088 + LaTeX and ConTeXt: Use more specific language variables.
8089 Instead of directly using `lang`, we now use `babel-lang` and
8090 `polyglossia-lang` and `context-lang`. These variables are set by
8091 the writers to the necessary values, based on the `lang` variable
8092 (which now always takes a value in BCP47 format). (Mauro Bieg, #114,
8093 #129).
8094 + HTML: Support handling of bidirectional text (Mauro Bieg, #120).
8095 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
8096 Add dir attribute in html5 (Andrew Dunning).
8097 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
8098 Add `width`, `height` variables (Andrew Dunning). Update template
8099 from 3.1 source (Andrew Dunning). All configuration options are now
8100 available as variables, but are only be included if set (reveal.js
8101 uses defaults otherwise).
8102 + man: Added comment stating that the page is autogenerated by pandoc,
8103 giving version. Added `adjusting` and `hyphenate` variables
8104 (Alex Vong, #123).
8106 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
8108 * MediaBag: ensure that `/` is always used as path separator.
8110 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
8112 * Added `--bash-completion` option. This generates a bash completion
8113 script. To use: `eval "$(pandoc --bash-completion)"`.
8115 * Text.Pandoc.Error: Define Typeable and Exception instances
8116 for PandocError (#2386).
8118 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
8119 This makes keys with extra space at the beginning and end
8120 work: e.g.
8122 [foo]: bar
8124 [ foo ]
8126 will now be a link to bar (it wasn't before).
8128 * Text.Pandoc: disable `auto_identifiers` for epub.
8129 The epub writer inserts its own auto identifiers;
8130 this is more complex due to splitting into "chapter" files.
8132 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
8133 It now reexports Data.Time.
8135 * Use custom Prelude to avoid compiler warnings.
8137 + The (non-exported) prelude is in prelude/Prelude.hs.
8138 + It exports Monoid and Applicative, like base 4.8 prelude,
8139 but works with older base versions.
8140 + It exports (<>) for mappend.
8141 + It hides 'catch' on older base versions.
8143 * Added a `stack.ymal` and stack install instructions to INSTALL.
8145 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
8147 * Added note to CONTRIBUTING.md about ghc versions and travis.
8149 * Clarify docs on block quotes. The space after `>` is optional (#2346).
8151 * Removed obsolete reference to default.csl (#2372).
8153 * List all styles in manual for `--reference-docx` (Chris Black)
8155 * Don't capitalize header links in man page.
8157 * Added section on repl to CONTRIBUTING.md.
8159 * README: Added space after backslash in image example (#2329).
8161 * Document details of citation locator terms (Nick Bart).
8163 * Fixed some internal links in README (#2309).
8165 * Improve CSL documentation, variables documentations,
8166 links, and cross-references in README. (Andrew Dunning)
8168 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
8170 * Use `newManager` instead of `withManager` in recent `http-client`.
8171 This avoids a deprecation warning.
8173 * Allow building with latest versions of http-types,
8174 HUnit, criterion, syb, aeson.
8176 * Updated benchmark program for new criterion API.
8178 * Setup.hs: rewrite so as not to use process, directory, filepath.
8179 Using anything outside base is dangerous, since older
8180 versions of ghc may link against two different versions.
8182 * Added appveyor (Windows continuous integration) builds.
8184 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
8185 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
8186 `make .travis.yml` regenerates it based on the tested-with
8187 field of the cabal file.
8189pandoc (1.15.0.6)
8191 * `--self-contained`: Fixed overaggressive CSS minimization (#2301, 2286).
8192 Previously `--self-contained` wiped out all spaces in CSS,
8193 including semantically significant spaces. This was a regression
8194 from 1.14.x.
8196 * Markdown reader: don't allow bare URI links or autolinks in link
8197 label (#2300). Added test cases.
8199 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
8200 Previously we disallowed `-` at the end of an autolink,
8201 and disallowed the combination `=-`. This commit liberalizes the
8202 rules for allowing punctuation in a bare URI, and adds test cases.
8203 One potential drawback is that you can no longer put a bare
8204 URI in em dashes like this:
8205 `this uri---http://example.com---is an example.`
8206 But in this respect we now match github's treatment of bare URIs.
8208 * HTML writer: support speaker notes in dzslides.
8209 With this change `<div class="notes">` and also `<div class="notes"
8210 role="note">` will be output if `-t dzslides` is used. So we can
8211 have speaker notes in dzslides too. Thanks to maybegeek.
8213 * Updated dzslides template.
8215 * Improved documentation of options to print system default files (#2298).
8216 `--print-default-data-file` and `--print-default-template`.
8218 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
8219 (Tiziano Müller). MathJax seems currently to be the only maintained
8220 math rendering extension for DokuWiki.
8222 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
8223 div as top-level header (#2294). This fixes a bug with `--section-divs`,
8224 where the final references section added by pandoc-citeproc, enclosed in
8225 its own div, got nested in the div for the section previous to it.
8227 * Allow vector 0.11.
8229 * Require cmark > 0.4.
8231pandoc (1.15.0.5)
8233 * HTML writer: Fixed email javascript obfuscation with `mailto:`
8234 URLs (#2280). This fixes a potential security issue. Because
8235 single quotes weren't being escaped in the link portion, a
8236 specially crafted email address could allow javascript code injection.
8238 * Markdown/HTML readers: Avoid parsing partial URLs like
8239 `<www.pandoc.org/blah#foo>` as HTML tags (#2277).
8241 * RST reader: allow inline formatting in definition list field
8242 names (Lars-Dominik Braun).
8244 * PDF: Make sure `--latex-engine-opt` goes before the filename
8245 on the command line. LaTeX needs the argument to come after
8246 the options (#1779).
8248 * CommonMark writer: fixed tags used for super/subscript.
8250 * ConTeXt template: activate hanging indent for definition lists
8251 (Mauro Bieg).
8253 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
8254 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
8255 to include `hsb2hs` in Build-Tools in cabal.
8257 * Improved Windows installer (thanks to nkalvi).
8259 + When per-machine installation is chosen, the system path
8260 is updated instead of the user's.
8261 + An appropriate default is used for per-machine installation
8262 directory.
8263 + Admin privileges are no longer required for a per-user install
8265 * Travis: unpack sdist for build to catch packaging bugs.
8267 * Improved documentation on where user templates go (#2272).
8269pandoc (1.15.0.4)
8271 * Added pandoc.1 man page to the repository. It is no longer
8272 built as part of the cabal build process. (This proved too
8273 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
8274 when `README` is changed.
8276 * Copying of the man page now respects `--destdir` (#2262).
8278 * Improved error messages for filters. User is now informed if
8279 the filter requires an interpreter that isn't found in the path,
8280 or if the filter returns an error status.
8282pandoc (1.15.0.3)
8284 * Ensure target directory is created when installing man page.
8286pandoc (1.15.0.2)
8288 * Added files needed for building man page to Extra-Source-Files.
8290pandoc (1.15.0.1)
8292 * Man page is now built and installed as part of the cabal build
8293 process. Removed Makefile target for man page.
8295pandoc (1.15)
8297 * Man page changes:
8299 + Removed `--man1`, `--man5` options (breaking change).
8300 + Removed `Text.Pandoc.ManPages` module (breaking API change).
8301 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
8302 create the man page from README using a custom template and filters.
8303 + Added `man/` directory with template and filters needed to build
8304 man page.
8305 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
8306 Now there is just pandoc.1, which has all the content from README.
8307 This change was needed because of the extensive cross-references
8308 between parts of the README.
8309 + Removed old `data/pandoc.1.template` and
8310 `data/pandoc_markdown.5.template`.
8312 * OpenDocument writer: Do not add a carriage return after a hard
8313 line break (Michael Chladek).
8315 * ConTeXt writer:
8317 + use `\goto` for internal links.
8318 + Added a `%` at end for `\reference` to avoid spurious space.
8320 * Ignore sandbox on 'make quick'
8322pandoc (1.14.1)
8324 * Added `--man1` and `--man5` options to pandoc, allowing pandoc
8325 to generate its own man pages. Man pages are no longer automatically
8326 generated in the build process (the process for this was too complex
8327 and prone to failure, #2190). The `make-pandoc-man-pages` executable
8328 has been removed. The `man/` directory has been removed, and man page
8329 templates have been moved to `data/`. NOTE TO PACKAGERS: You will no
8330 longer find pandoc's man pages in `man/`, but you can generate them using
8331 `pandoc --man1 > pandoc.1` and `pandoc --man5 > pandoc_markdown.5`.
8333 * Added new unexported module: `Text.Pandoc.ManPages`.
8335 * `README` now acts like a data file (even though it isn't in
8336 `data/`). So, for example, `pandoc --print-default-data-file README`
8337 will produce the README.) This change was required for the `--man1`
8338 and `--man5` options, since the man pages are produced from the
8339 README, but it may be useful for other purposes as well.
8341 * Allow `reference.docx` and `reference.odt` to be used with
8342 `--print-default-data-file` and to shadow defaults if placed in
8343 the user data directory. Note that as of 1.14, we no longer
8344 include these files as data files; instead, we include their
8345 components. This change causes pandoc to behave as if it has
8346 these data files; they are constructed on demand when needed
8347 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
8349 * Fixed regression in CSS parsing with `--self-contained` (#2224).
8350 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
8351 silently drops big sections of CSS. This commit replaces the
8352 use of css-text with a small but principled CSS preprocessor,
8353 which removes whitespace and comments and replaces `url()` with
8354 base 64 data when possible.
8356 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
8357 This will allow math to work when pages are being viewed locally.
8359 * `Text.Pandoc.Options`: Export `plainExtensions`.
8360 These are the extensions used in `plain` output.
8362 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
8363 math mode; treat them as regular inline text. Normally these will
8364 cause an error in LaTeX, but there are contexts (e.g. `alltt`
8365 environments) where they are allowed.
8367 * HTML reader: allow `<body>` to close `<head>`.
8369 * DocBook reader: support `mediaobject`s and `figures` (#2184, Mauro Bieg).
8371 * RST reader: Fix reference names with special characters
8372 (Lars-Dominik Braun).
8374 * Textile writer: escape `+` and `-` as entities (#2225).
8376 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
8378 * Plain writer: don't use symbols for super/subscript (#2237).
8379 Simplified code by using `plainExtensions`.
8381 * InDesign writer: Properly escape URLs containing more than one
8382 colon character (gohai).
8384 * Docx writer: Make sure we use dist version of `reference.docx`
8385 (and not the user's version) for certain settings. Taking some
8386 settings values from a user-supplied reference.docx can lead to
8387 corruption. This fixes a regression from the last release (#2249).
8389 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
8390 `getDefaultReferenceODT` (API change). These functions have been
8391 removed from the Docx and ODT writers.
8393 * LaTeX template (Xavier Olive):
8394 + Added `CJKmainfont` and `CJKoptions` variables.
8395 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
8397 * Epub templates: use `author.role`, not `author.type`.
8399 * Bump cmark version to >= 0.3.4.
8401 * Improved Windows installer (#2205, thanks to nkalvi).
8402 Users can now select a per-user or systemwide install, and can set
8403 the installation path. At the end of installation, the install location
8404 is given. The install location is also now given in the list of
8405 installed programs in Control Panel. Cleaner WiX syntax is used for
8406 setting the path.
8408 * Added `download_stats` target to Makefile.
8410pandoc (1.14.0.4)
8412 * Added missing commonmark template.
8414 * Improved try pandoc (moved button, show raw command).
8416pandoc (1.14.0.3)
8418 * Allow compilation with syb 0.5.*.
8420 * Custom writer: fixed some compiler warnings for ghc < 7.10.
8422pandoc (1.14.0.2)
8424 * Allow building with hslua 0.4.
8426pandoc (1.14.0.1)
8428 * Fixed problem with building of `reference.docx` and `reference.odt`
8429 when the `embed_data_files` flag is used. Instead of having a phase
8430 of the build where `reference.docx` and `reference.odt` are created
8431 from their constituent data files, we now construct these archives
8432 from their constituents when a `docx` or `odt` is built. The
8433 constituent files have been moved from `extra-source-files` to
8434 `data-files`, and `reference.docx` and `reference.odt` have been
8435 removed. Users can create their own `reference.docx` or
8436 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
8437 `make-reference-files.hs` has been removed, simplifying the build
8438 process (#2187)
8440 * Don't include generated man pages in extra-source-files (#2189).
8442 * Bumped upper bound for aeson.
8444 * ConTeXt writer: create internal link anchors for Div elements with
8445 identifiers. (This is needed for linked citations to work.)
8447pandoc (1.14)
8449 [new features]
8451 * Added `commonmark` as input and output format.
8453 * Added `--verbose` flag for debugging output in PDF production (#1840,
8454 #1653).
8456 * Allow wildcards in `--epub-embed-font` arguments (#1939).
8458 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
8460 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
8461 This is enabled by default for those markdown flavors that
8462 support reading shortcut reference links, namely: `markdown`,
8463 `markdown_strict`, `markdown_github`, `markdown_php`.
8464 If the extension is enabled, the reader parses shortcut reference
8465 links like `[foo]`, and the writer creates such links unless doing
8466 so would cause problems. Users of markdown flavors that support
8467 shortcut reference links should not notice a difference in reading
8468 markdown, but the markdown pandoc produces may differ.
8469 If shortcut links are not desired, the extension can be disabled
8470 in the normal way.
8472 [behavior changes]
8474 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
8475 A "dirty" TOC is created at the beginning of document.
8476 It can be regenerated after the document has been opened.
8478 * An implicit `--filter pandoc-citeproc` is now triggered only when the
8479 `--bibliography` option is used, and not when the `bibliography`
8480 field in metadata is specified (#1849).
8482 * Markdown reader:
8484 + Reference links with `implicit_header_references` are no longer
8485 case-sensitive (#1606).
8486 + Definition lists no longer require indentation for first line (#2087).
8487 Previously the body of the definition (after the `:` or `~` marker)
8488 needed to be in column 4. This commit relaxes that requirement,
8489 to better match the behavior of PHP Markdown Extra. So, now
8490 this is a valid definition list:
8492 foo
8493 : bar
8494 + Resolve a potentially ambiguity with table captions:
8496 foo
8498 : bar
8500 -----
8501 table
8502 -----
8504 Is "bar" a definition, or the caption for the table? We'll count
8505 it as a caption for the table.
8506 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
8507 Markdown Extra. Note: If you have been using headerless pipe tables,
8508 this change may cause existing tables to break.
8509 + Allow pipe tables with header but no body (#2017).
8510 + Allow a digit as first character of a citation key (Matthias Troffaes).
8511 See https://github.com/jgm/pandoc-citeproc/issues/97
8513 * LaTeX reader:
8515 + Don't limit includes to `.tex` extension (#1882).
8516 If the extension is not `.tex`, it must be given explicitly in
8517 the `\input` or `\include`.
8519 * Docx reader:
8521 + Allow numbering in the style file. This allows inherited styles
8522 with numbering (lists) (Jesse Rosenthal).
8524 * Org reader:
8526 + Support smart punctuation (Craig Bosma).
8527 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
8528 `:noexport:` tag set are not exported. This mirrors org-mode.
8529 + Put header tags into empty spans (Albert Krewinkel, #2160).
8530 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
8531 Instead of being interpreted as part of the headline, the tags are now
8532 put into the attributes of empty spans. Spans without textual content
8533 won't be visible by default, but they are detectable by filters. They
8534 can also be styled using CSS when written as HTML.
8535 + Generalize code block result parsing (Albert Krewinkel).
8536 Previously, only code blocks were recognized as result blocks;
8537 now, any kind of block can be the result.
8539 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
8540 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
8542 * HTML writer:
8544 + Add "inline" or "display" class to math spans (#1914).
8545 This allows inline and display math to be styled differently.
8546 + Include raw latex blocks if `--mathjax` specified (#1938).
8547 + Require highlighting-kate >= 0.5.14 (#1903).
8548 This ensures that all code blocks will be wrapped in a `div`
8549 with class `sourceCode`. Also, the default highlighting CSS
8550 now adds `div.sourceCode { x-overflow: auto; }`, which means
8551 that code blocks (even with line numbers) will acquire a scroll
8552 bar on screens too small to display them (e.g. mobile phones).
8553 See also jgm/highlighting-kate#65.
8555 * LaTeX writer:
8557 + Use a declaration for tight lists (Jose Luis Duran, Joseph
8558 Harriott). Previously, pandoc hard-coded some commands to make
8559 tight lists in LaTeX. Now we use a custom command instead,
8560 allowing the styling to be changed in a macro in the header.
8561 (Note: existing templates may need to be modified to include
8562 the definition of this macro. See the current template.)
8563 + Beamer output: if the header introducing a slide has the
8564 class `fragile`, add the `[fragile]` option to the slide (#2119).
8566 * MediaWiki writer:
8568 + Use `File:` instead of the deprecated `Image:` for images and
8569 other media files (Greg Rundlett).
8571 * DocBook writer:
8573 + Render a `Div (id,_,_) [Para _]` element as a `para` element
8574 with an `id` attribute. This makes links to citations work in
8575 DocBook with pandoc-citeproc.
8577 * RST writer:
8579 + Normalize headings to sequential levels (Nikolay Yakimov).
8580 This is pretty much required by docutils.
8581 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
8582 + Better handling of raw latex inline (#1961). We use
8583 `` :raw-latex:`...` `` and add a definition for this role to
8584 the template.
8586 * EPUB writer:
8588 + Remove `linear=no` from cover `itemref` (#1609).
8589 + Don't use `sup` element for epub footnotes (#1995).
8590 Instead, just use an a element with class `footnoteRef`.
8591 This allows more styling options, and provides better results
8592 in some readers (e.g. iBooks, where anything inside the a
8593 tag breaks popup footnotes).
8594 + Take TOC title from `toc-title` metadata field.
8596 * Docx writer:
8598 + Implemented `FirstParagraph` style (Jesse Rosenthal).
8599 Following the ODT writer, we add the `FirstParagraph` style to the
8600 first text paragraph following an image, blockquote, table, heading,
8601 or beginning of document. This allows it to be styled differently.
8602 The default is for it to be the same as `Normal`.
8603 + Added `BodyText` style (Jesse Rosenthal).
8604 We apply a `BodyText` style to all unstyled paragraphs. This is,
8605 essentially, the same as `Normal`, except that since not everything
8606 inherits from `BodyText` (the metadata won't, for example, or
8607 the headers or footnote numbers), we can change the text in the body
8608 without having to make exceptions for everything. If we do want to
8609 change *everything*, we can still do it through `Normal`.
8610 + Altered `Blockquote` style slightly (Jesse Rosenthal).
8611 Since `BlockQuote` derives from `BodyText`, we just want to specify
8612 by default that it won't indent, regardless of what `BodyText` does.
8613 Note that this will not produce any visible difference in the default
8614 configuration.
8615 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
8616 + Added a style to figure images (Nikolay Yakimov).
8617 Figures with empty captions use style `Figure`.
8618 Figures with nonempty captions use style `Figure with Caption`, which
8619 is based on `Figure`, and additionally has `keepNext` set.
8621 * ODT writer:
8623 + Added figure captions (Nikolay Yakimov). The following styles are
8624 used for figures:
8625 `Figure` -- for figure with empty caption),
8626 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
8627 `FigureCaption` (based on `Caption`) -- for figure captions.
8628 Also, `TableCaption` (based on `Caption`) is used for table captions.
8630 [API changes]
8632 * New `Text.Pandoc.Error` module with `PandocError` type
8633 (Matthew Pickering).
8635 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
8636 (Matthew Pickering). This allows better handling of errors.
8638 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
8640 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
8642 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
8643 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
8644 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
8645 Youssefi).
8647 * New `Ext_shortcut_reference_links` constructor for `Extension`
8648 (Konstantin Zudov).
8650 [bug fixes]
8652 * Markdown reader:
8654 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
8655 + Check for tex macros after indented code (#1973).
8656 + Rewrote `charsInBalancedBrackets` for efficiency.
8657 + Make sure a closing `</div>` doesn't get included in a
8658 definition list item (#2127).
8659 + Don't parse bracketed text as citation if it might be a link,
8660 image, or footnote (Nikolay Yakimov).
8661 + Require space after key in mmd title block (#2026, Nikolay
8662 Yakimov). Require space after key-value delimiter colon in mmd title
8663 block.
8664 + Require nonempty value in mmd title block (Nikolay Yakimov).
8665 + Disable all metadata block extensions when parsing
8666 metadata field values (#2026, Nikolay Yakimov). Otherwise we
8667 could get a mmd title block inside YAML metadata, for example.
8669 * HTML reader:
8671 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
8672 + Handle tables with `<th>` in body rows (#1859, Mauro Bieg).
8673 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
8674 to see if the input starts with `<!--`. If not, it's bogus comment
8675 mode and we fail `htmlTag`.
8676 + Handle `base` tag; if it has an `href` value, this is added to
8677 all relative URLs in links and images.
8679 * DocBook reader:
8681 + Look inside "info" elements for section titles (#1931).
8683 * Docx reader:
8685 + Parse images in deprecated vml format (Jesse Rosenthal).
8686 + Allow sub/superscript verbatims (Jesse Rosenthal).
8687 Verbatim usually shuts off all other run styles, but we don't want it
8688 to shut off sub/superscript.
8690 * LaTeX reader:
8692 + Handle `tabular*` environment (#1850).
8693 Note that the table width is not actually parsed or taken into
8694 account, but pandoc no longer chokes on it.
8695 + Ignore options in `\lstinline` rather than raising error (#1997).
8696 + Add some test cases for simple tables (Mathias Schenner).
8697 + Handle valign argument in tables (Mathias Schenner) (currently
8698 we just ignore this).
8699 + Allow non-empty colsep in tables (Mathias Schenner).
8700 The `tabular` environment allows non-empty column separators
8701 with the "@{...}" syntax. Previously, pandoc would fail to
8702 parse tables if a non-empty colsep was present. With this
8703 commit, these separators are still ignored, but the table gets
8704 parsed. A test case is included.
8705 + Recognize `\newpage` as a block command.
8706 + Allow block content in \title{} (#2001).
8707 + Check for block-level newcommand aliases in blockCommand (Nikolay
8708 Yakimov).
8709 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
8710 + Properly gobble spaces after `\\` (#2007).
8712 * Textile reader:
8714 + Handle newlines in table cells, and empty cells (#1919).
8716 * Org reader:
8718 + Allow image links with non-image targets (Hans-Peter Deifel).
8719 This matches behavior of Org-Mode for links like
8720 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
8722 * Docbook writer:
8724 + Don't print empty id attributes (thanks to Steve Horne).
8726 * HTML writer:
8728 + Fixed list-style-type for numbered example lists.
8729 Should be "decimal," not "example" (#1902).
8730 + Do not omit missing `alt` attribute on `img` tag (#1131,
8731 Konstantin Zudov).
8732 + Allow multiple colgroups in table (#2122).
8733 + In revealjs, ensure that lists in speaker notes don't add "fragment"
8734 classes, which can cause additional keypresses to be needed to
8735 advance a slide (#1394).
8737 * LaTeX writer:
8739 + Don't escape `$` in URL (#1913).
8740 + Don't use listings in headers (Matthew Pickering, #1963).
8741 + Recognize book documentclass if set in metadata (#1971).
8742 This sets `--chapters` implicitly if the documentclass in metadata
8743 is a book documentclass. Previously this was done only if a book
8744 documentclass was set in a variable.
8745 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
8746 + Make `mainlang` work when `lang` is in metadata (#2174).
8748 * Texinfo writer:
8750 + Fix wrapping by using breakable spaces (Tim Lin).
8752 * RST writer:
8754 + Fixed toc depth in RST writer. Previously the depth was being
8755 rendered as a floating point number with a decimal point.
8757 * Markdown writer:
8759 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
8760 compatibility with original Markdown. We now escape `<` and `>`
8761 with entities. Also, we now backslash-escape square brackets.
8762 + Avoid introducing spurious list items through wrapping (#1946).
8763 + Don't emit span tags if plain or raw HTML disabled.
8765 * MediaWiki writer:
8767 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
8769 * AsciiDoc writer:
8771 + Insert some needed blank lines (#1860).
8772 + Avoid wrapping after list marker (#1858).
8774 * EPUB writer:
8776 + Properly handle internal links to IDs in spans, divs (#1884).
8777 + Use plain writer for metadata dc: fields (#2121).
8778 This gives better results when we have, e.g. multiple paragraphs.
8779 Note that tags aren't allowed in these fields.
8780 + Properly handle image links without an extension (#1855).
8781 + Improved chapter splitting and internal link rewriting (#1887,
8782 #2162, #2163). This will ensure that internal links work and
8783 that the references section produced by pandoc-citeproc is
8784 in its own chapter.
8785 + Fixed handling of svg images (#2183).
8787 * ICML writer:
8789 + Better handling of raw blocks and inlines (#1951).
8790 Previously these were always escaped and printed verbatim.
8791 Now they are ignored unless the format is `icml`, in which
8792 case they are passed through unescaped.
8793 + Fixed image URIs in ICML output (gohai).
8795 * Custom writer:
8797 + Raise error if loadstring returns an error status.
8798 + Raise `PandocLuaException` instead of using 'error'.
8799 Eventually we'll change the return type so that no exception
8800 is involved, but at least this can be trapped.
8801 + Use UTF-8 aware bytestring conversion.
8802 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
8803 Also factored out ByteString, since it's only used as an intermediate
8804 representation.
8806 * Docx writer:
8808 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
8809 + Filter out illegal XML characters (#1992, Matthew Pickering).
8810 + Added `noProof` to docx syntax highlighting `SourceCode` style.
8811 + Added footnotes id -1 and 0 (Jesse Rosenthal).
8812 Word uses, by default, footnotes with id -1 and 0 for separators. If a
8813 user modifies `reference.docx`, they will end up with a `settings.xml`
8814 file that references these footnotes, but no such footnotes in the
8815 document. This will produce a corruption error. Here we add these to the
8816 document and `settings.xml` file, so future modifications won't break
8817 the file.
8818 + Handle lists correctly inside table cells (Jesse Rosenthal).
8819 Previously we didn't transform lists inside table cells.
8820 + Set firstRow information in tables (Nikolay Yakimov).
8821 + Don't replace `SourceCode` style in `reference.docx` if it is defined
8822 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
8823 any `SourceCode` and `*Tok` styles in `reference.docx`.
8824 + Attempt to match international style names (#1607, Nikolay Yakimov).
8825 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
8826 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
8827 `Definition`, `First Paragraph`.
8828 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
8829 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
8830 `Footnote Ref -> Footnote Reference`.
8831 + Added `Caption` style (Nikolay Yakimov).
8832 + Changed these styles' inheritance (Nikolay Yakimov):
8833 `Image Caption <- Caption`, `Table Caption <- Caption`.
8834 + Remove `SourceCode` style from `reference.docx` (#1872).
8835 This is added automatically by the docx writer.
8836 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
8838 * `Text.Pandoc.PDF`
8840 + Don't suggest "Try xelatex" if xelatex already in use (Mauro Bieg,
8841 #1832).
8842 + More comprehensible errors on image conversion (#2067).
8843 EPS can't be supported without shelling out to something like
8844 ImageMagick, but at least we can avoid mysterious error messages.
8846 * `Text.Pandoc.Shared`:
8848 + Make safeRead safe (#1801, Matthew Pickering).
8849 + Added `mapLeft`, `hush` (Matthew Pickering).
8851 * `Text.Pandoc.Pretty`:
8853 + Remove partial function (Matthew Pickering).
8855 * `Text.Pandoc.SelfContained`:
8857 + Add `;charset=utf-8` to script mime type if missing (#1842).
8858 + Improved building of data URIs (#1940). Now base64 is used except
8859 for `text/*` mime types.
8860 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
8861 + Properly handle data URIs in css urls (#2129).
8862 Use a proper CSS parser (adds dependency on `text-css`).
8864 * `Text.Pandoc.UTF8`:
8866 + Better handling of bare CRs in input files (#2132).
8867 Previously we just stripped them out; now we convert
8868 other line ending styles to LF line endings.
8870 * `Text.Pandoc.ImageSize`:
8872 + Fixed some exif header parsing bugs (#1834).
8873 + Make imageSize return an Either, not a Maybe (#1834).
8874 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
8875 parse failure (rather than `error`).
8876 + Improved warnings when image size can't be determined.
8877 + Removed error landmines (Matthew Pickering).
8879 * Added woff2 to MIME types (Alfred Wechselberger).
8881 * pandoc: When a binary input format is used, warn that file
8882 arguments past the first one are being ignored (Matthew Pickering).
8884 [template changes]
8886 * LaTeX template:
8888 + Degrade gracefully if `\paragraph` not defined.
8889 + Include `grffile` together with `graphicx` (#2074).
8890 This properly handles filenames containing spaces and dots.
8891 + Redefine `\paragraph`, `\subparagraph`... to behave more
8892 like section headers (#1658).
8893 + Import hyperref before polyglossia to avoid an error with xelatex,
8894 "please load package hyperref before bidi package" (Nick Bart).
8895 + Added `toccolor` variable to control link color in toc (Kaixhin).
8897 * LaTeX, Beamer templates:
8899 + Provide `\tightlist`, which is now used by the LaTeX writer.
8900 + Use polyglossia in beamer (#85).
8901 + Use `bibliography` instead of `biblio-files`
8902 (#1661). Also use `\addbibresource` instead of `\bibliography` for
8903 biblatex.
8904 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
8905 variable that is derived from a comma-separated list in `lang`;
8906 the last language is `mainlang` and the others are `otherlang`.
8908 * EPUB templates:
8910 + Use `div`, not `p`, for "rights" on title page.
8911 + Added header-includes, include-before, include-after (#1987).
8913 * OpenDocument template:
8915 + Use `text:p` instead of `text:h` for title.
8916 Using `text:h` causes problems with numbering. Closes #2059.
8917 Thanks to @nkalvi for diagnosing this.
8919 * reveal.js template:
8921 + Link to non-minified css, js. The minified versions no longer
8922 ship with the library.
8923 + Correctly include style CSS (#1949).
8924 + New configurable options options: `center`, `maxScale`, `slideNuber`
8925 (Dmitry Smirnov, pandoc-templates#89).
8926 + Moved custom CSS after theme. This allows custom CSS to modify
8927 themes, instead of being replaced by them.
8928 + Allow `center` to be set to false.
8930 [under the hood improvements]
8932 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
8933 Yakimov). Instead the repository now includes the component text files,
8934 and the zipped binaries are built from these using a helper
8935 program, `make-reference-files`. This should make maintenance of
8936 these components easier going forward.
8938 * `Text.Pandoc.Parsing`:
8940 + Added new `<+?>` combinator (Nikolay Yakimov).
8941 + Added `stateHeaderKeys` to `ParserState`.
8943 * `make_deb.sh` fixes:
8945 + Detect architecture.
8946 + Add Installed-Size to debian package control file (#1900).
8947 + Use `fakeroot` to get permissions right.
8948 + Use `mkdir` and `cp` instead of `install`.
8949 + Set permissions of directories to 755.
8950 + Install in `/usr` rather than `/usr/local`.
8951 + Compress man pages.
8952 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
8954 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
8955 to assist with transition to `time` 1.5.
8957 * Updated CONTRIBUTING.md with information about issue tags (Matthew
8958 Pickering).
8960 * Updated travis installs to the new sudo-less syntax (Tim Lin).
8962 * Updated dependency version bounds.
8964 * EPUB tests: don't use `joinPath`, which varies across platforms.
8965 Instead, use a forward-slash to join paths, regardless of the
8966 platform. This matches the way `MediaBag` now works.
8968 * Clarify JSON input and output in usage message (Caleb McDaniel).
8970 * Improved INSTALL instructions.
8972 * Always build man pages. Removed make-pandoc-man-pages flag.
8974 * Makefile: removed man target, now that we generate man pages by default.
8976 * README:
8978 + Fixed typos (J. Lewis Muir).
8979 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
8980 + Added note on in-field markup in biblio databases (Nick Bart).
8981 + Fixed misleading example of raw HTML block.
8982 + Various minor formatting and consistency fixes for the program
8983 options (Andreas Lööw).
8984 + Made definition lists for options all "loose" for consistency.
8985 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
8986 `--bib2json` and `--bib2yaml` options (Nick Bart).
8987 + Removed obsolete reference to `mods2yaml` (Nick Bart).
8988 + Added section on syntax highlighting.
8989 + Documented `toccolor` variable.
8991pandoc (1.13.2.1)
8993 * Updated to build with ghc 7.10.1.
8995 * Bumped package upper bounds for filepath, blaze-html,
8996 blaze-markup.
8998pandoc (1.13.2)
9000 * TWiki Reader: add new twiki reader (API change, Alexander Sulfrian).
9002 * Markdown reader:
9004 + Better handling of paragraph in div (#1591).
9005 Previously text that ended a div would be parsed as Plain
9006 unless there was a blank line before the closing div tag.
9007 + Don't treat a citation as a reference link label (#1763).
9008 + Fix autolinks with following punctuation (#1811).
9009 The price of this is that autolinked bare URIs can no longer
9010 contain `>` characters, but this is not a big issue.
9011 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
9012 + Allow `startnum` to work without `fancy_lists`. Formerly
9013 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
9015 * RST reader (all Daniel Bergey):
9017 + Parse quoted literal blocks (#65). RST quoted literal blocks are
9018 the same as indented literal blocks (which pandoc already supports)
9019 except that the quote character is preserved in each line.
9020 + Parse RST class directives. The class directive accepts one or more
9021 class names, and creates a Div value with those classes. If the
9022 directive has an indented body, the body is parsed as the children of
9023 the Div. If not, the first block following the directive is made a
9024 child of the Div. This differs from the behavior of rst2xml, which
9025 does not create a Div element. Instead, the specified classes are
9026 applied to each child of the directive. However, most Pandoc Block
9027 constructors to not take an Attr argument, so we can't duplicate this
9028 behavior.
9029 + Warn about skipped directives.
9030 + Literal role now produces Code. Code role should have "code" class.
9031 + Improved support for custom roles
9033 - Added `sourceCode` to classes for `:code:` role, and anything
9034 inheriting from it.
9035 - Add the name of the custom role to classes if the Inline
9036 constructor supports Attr.
9037 - If the custom role directive does not specify a parent role,
9038 inherit from the `:span:` role.
9040 This differs somewhat from the `rst2xml.py` behavior. If a custom
9041 role inherits from another custom role, Pandoc will attach both
9042 roles' names as classes. `rst2xml.py` will only use the class of
9043 the directly invoked role (though in the case of inheriting from a
9044 `:code:` role with a `:language:` defined, it will also provide the
9045 inherited language as a class).
9046 + Warn about ignored fields in role directives.
9048 * LaTeX reader:
9050 + Parse label after caption into a span instead of
9051 inserting an additional paragraph of bracketed text (#1747).
9052 + Parse math environments as inline when possible (#1821).
9053 + Better handling of `\noindent` and `\greektext` (#1783).
9054 + Handle `\texorpdfstring` more gracefully.
9055 + Handle `\cref` and `\sep` (Wikiwide).
9056 + Support `\smartcite` and `\Smartcite` from biblatex.
9058 * HTML reader:
9060 + Retain display type of MathML output (#1719, Matthew Pickering).
9061 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
9062 + Make `embed` tag either block or inline (#1756).
9064 * DocBook reader:
9066 + Handle `keycombo`, `keycap` (#1815).
9067 + Get string content in inner tags for literal elements (#1816).
9068 + Handle `menuchoice` elements better, with a `>` between (#1817).
9069 + Include `id` on section headers (#1818).
9070 + Document/test "type" as implemented (Brian O'Sullivan).
9071 + Add support for calloutlist and callout (Brian O'Sullivan).
9072 We treat a calloutlist as a bulleted list. This works well in practice.
9073 + Add support for `classname` (Bryan O'Sullivan).
9075 * Docx reader:
9077 + Fix window path for image lookup (Jesse Rosenthal).
9078 Don't use os-sensitive "combine", since we always want the paths in our
9079 zip-archive to use forward-slashes.
9080 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
9081 When users number their headers, Word understands that as a single item
9082 enumerated list. We make the assumption that such a list is, in fact,
9083 a header.
9084 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
9085 There could be new top-level headers after making lists, so we have to
9086 rewrite links after that.
9087 + Use polyglot header list (Jesse Rosenthal).
9088 We're just keeping a list of header formats that different languages
9089 use as their default styles. At the moment, we have English, German,
9090 Danish, and French. We can continue to add to this.
9091 This is simpler than parsing the styles file, and perhaps less
9092 error-prone, since there seems to be some variations, even within a
9093 language, of how a style file will define headers.
9094 + Remove header class properly in other langs (Jesse Rosenthal).
9095 When we encounter one of the polyglot header styles, we want to remove
9096 that from the par styles after we convert to a header. To do that, we
9097 have to keep track of the style name, and remove it appropriately.
9098 + Account for external link URLs with anchors. Previously, if a URL
9099 had an anchor, the reader would incorrectly identify it as an
9100 internal link and return only the anchor as URL. (Caleb McDaniel)
9101 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
9103 * Org reader:
9105 + Added state changing blanklines (Jesse Rosenthal).
9106 This allows us to emphasize at the beginning of a new paragraph (or, in
9107 general, after blank lines).
9108 + Fixed bug with bulleted lists:
9110 - a
9111 - b
9112 * c
9114 was being parsed as a list, even though an unindented `*`
9115 should make a heading. See
9116 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
9117 + Org reader: absolute, relative paths in link (#1741, Albert
9118 Krewinkel). The org reader was too restrictive when parsing links;
9119 some relative links and links to files given as absolute paths
9120 were not recognized correctly.
9121 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
9122 This is important for use in gitit, which uses empty links
9123 for wikilinks.
9124 + Respect indent when parsing Org bullet lists (#1650, Timothy
9125 Humphries). Fixes issue with top-level bullet list parsing.
9126 + Fix indent issue for definition lists (Timothy Humphries,
9127 see #1650, #1698, #1680).
9128 + Parse multi-inline terms correctly in definition list (#1649,
9129 Matthew Pickering).
9130 + Fix rules for emphasis recognition (Albert Krewinkel).
9131 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
9132 strings. This is wrong, as `,` and `'` are forbidden border chars and
9133 may not occur on the inner border of emphasized text.
9134 + Drop COMMENT document trees (Albert Krewinkel).
9135 Document trees under a header starting with the word `COMMENT` are
9136 comment trees and should not be exported. Those trees are dropped
9137 silently (#1678).
9138 + Properly handle links to `file:target` (Albert Krewinkel).
9139 Org links like `[[file:target][title]]` were not handled correctly,
9140 parsing the link target verbatim. The org reader is changed such that
9141 the leading `file:` is dropped from the link target (see #756, #1812).
9142 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
9143 Org supports special symbols which can be included using LaTeX syntax,
9144 but are actually MathML entities. Examples for this are
9145 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
9146 or `\copy` (the copyright sign ©)
9148 * EPUB reader:
9150 + URI handling improvements. Now we outsource most of the work to
9151 `fetchItem'`. Also, do not include queries in file extensions (#1671).
9153 * LaTeX writer:
9155 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
9156 + Handle consecutive linebreaks (#1733).
9157 + Protect graphics in headers (Jesse Rosenthal).
9158 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
9159 + Put `~` before header in list item text (Jesse Rosenthal).
9160 Because of the built-in line skip, LaTeX can't handle a section header
9161 as the first element in a list item.
9162 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
9163 + Better handling of display math in simple tables (#1754).
9164 We convert display math to inline math in simple tables,
9165 since LaTeX can't deal with display math in simple tables.
9166 + Escape spaces in code (#1694, Bjorn Buckwalter).
9168 * MediaWiki writer:
9170 + Fixed links with URL = text. Previously these were rendered as bare
9171 words, even if the URL was not an absolute URL (#1825).
9173 * ICML writer:
9175 + Don't force all citations into footnotes.
9177 * RTF writer:
9179 + Add blankline at end of output (#1732, Matthew Pickering).
9181 * RST writer:
9183 + Ensure blank line after figure.
9184 + Avoid exces whitespace after last list item (#1777).
9185 + Wrap line blocks with spaces before continuations (#1656).
9186 + Fixed double-rendering of footnotes in RST tables (#1769).
9188 * DokuWiki writer:
9190 + Better handling of block quotes. This change ensures that
9191 multiple paragraph blockquotes are rendered using native `>`
9192 rather than as HTML (#1738).
9193 + Fix external images (#1739). Preface relative links with ":",
9194 absolute URIs without. (Timothy Humphries)
9196 * HTML writer:
9198 + Use protocol-relative URL for mathjax.
9199 + Put newline btw img and caption paragraph.
9200 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
9201 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
9202 This adds `KaTeX` to `HTMLMathMethod` (API change).
9203 + Don't double render when `email-obfuscation=none` (#1625, Matthew
9204 Pickering).
9205 + Make header attributes work outside top level (#1711).
9206 Previously they only appeared on top level header elements.
9207 Now they work e.g. in blockquotes.
9209 * ODT writer:
9211 + Correctly handle images without extensions (#1729).
9212 + Strip querystring in ODT write (#1682, Todd Sifleet).
9214 * FB2 writer:
9216 + Add newline to output.
9218 * EPUB writer:
9220 + Don't add `sourceURL` to absolute URIs (#1669).
9221 + Don't use unsupported `opf:title-type` for epub2.
9222 + Include "landmarks" section in nav document for epub3 (#1757).
9223 + Removed playOrder from navpoint elements in ncx file (#1760).
9224 These aren't required, and they make manual modification of epubs
9225 difficult.
9226 + Extract title even from structured title.
9227 + Don't include nav node in spine unless `--toc` was requested.
9228 Previously we included it in the spine with `linear="no"`, leading
9229 to odd results in some readers (#1593).
9230 + Fixed absolute URI detection (#1672).
9231 + Correctly resolve relative URIs (#1671).
9232 + Use regular page template for `nav.xhtml`, including doctype (#1759).
9234 * Docx writer:
9236 + Put docx table captions above tables (#1641, Nikolay Yakimov).
9237 + Get the page width from the reference docx file, and use
9238 it to scale images that are too large to fit (Grégory Bataille).
9239 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
9240 are inferred based on `<w:name val="heading #">` fallback, if there
9241 are no en-US "Heading#" styles
9242 + Look in user data dir for archive `reference.docx`.
9243 + Renumber header and footer relationships to avoid collisions (Jesse
9244 Rosenthal). We previously took the old relationship names of the
9245 headers and footer in secptr. That led to collisions. We now make
9246 a map of availabl names in the relationships file, and then rename
9247 in secptr.
9249 * ConTeXt writer:
9251 + Add function toLabel (Mark Szepieniec).
9252 This function can be used to sanitize reference labels so that
9253 they do not contain any of the illegal characters \#[]",{}%()|= .
9254 Currently only Links have their labels sanitized, because they
9255 are the only Elements that use passed labels.
9257 * `Text.Pandoc.Shared`:
9259 + Moved import of `toChunks` outside of CPP conditional (#1590).
9260 + Fix `inDirectory` to reset to the original directory in case
9261 an exception occurs (Freiric Barral).
9263 * Templates:
9265 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
9266 Thanks to bluebirch.
9267 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
9268 (#1616).
9269 + LaTeX template: Add shorthands=off to babel options (#1648).
9270 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
9271 This aids styling, making it possible for example to set 0 margins
9272 on the title page (#1758).
9273 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
9274 Previously we just expected 'title', 'subtitle', 'author', 'date'.
9275 Now we still support those, but also support the format recommended
9276 for epub metadata in the pandoc README:
9278 ---
9279 title:
9280 - type: main
9281 text: My Book
9282 - type: subtitle
9283 text: An investigation of metadata
9284 creator:
9285 - role: author
9286 text: John Smith
9287 - role: editor
9288 text: Sarah Jones
9289 identifier:
9290 - scheme: DOI
9291 text: doi:10.234234.234/33
9292 publisher: My Press
9293 rights: (c) 2007 John Smith, CC BY-NC
9294 ...
9296 * `Text.Pandoc.Templates.getDefaultTemplate`:
9297 don't fail when called with "fb2" (#1660).
9299 * `Text.Pandoc.Parsing`:
9301 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
9302 For example: `$x = \text{the $n$th root of $y$}` (#1677).
9303 + Change `parseFromString` to fail if not all input is consumed.
9304 (Matthew Pickering)
9305 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
9306 used by more readers (API change, Daniel Bergey).
9308 * `Text.Pandoc.Pretty`:
9310 + Improve performance of `realLength` (Matthew Pickering).
9311 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
9312 were getting at the end of markdown fragments (as well as rst, org,
9313 etc.) (#1705).
9315 * `Text.Pandoc.MIME`:
9317 + Add mime type for WebVTT (Jason Ronallo).
9318 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
9319 This is needed for epub3 validation.
9321 * `Text.Pandoc.MediaBag`:
9323 + Fix Windows specific path problems (#1597).
9325 * `Text.Pandoc.Shared`:
9327 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
9329 * Link the test suite using `-threaded`.
9330 This allows the test suite to be run using `+RTS -N`.
9332 * Added `network` dependency under `network-uri` flag in test section.
9334 * Give better error messages when someone tries to convert from
9335 pdf, doc, odt (#1683).
9337 * Added `track` to list of tags treated by `--self-contained` (#1664).
9339pandoc (1.13.1)
9341 * Fixed `--self-contained` with Windows paths (#1558).
9342 Previously `C:\foo.js` was being wrongly interpreted as a URI.
9344 * HTML reader: improved handling of tags that can be block or inline.
9345 Previously a section like this would be enclosed in a paragraph,
9346 with RawInline for the video tags (since video is a tag that can
9347 be either block or inline):
9349 <video controls="controls">
9350 <source src="../videos/test.mp4" type="video/mp4" />
9351 <source src="../videos/test.webm" type="video/webm" />
9352 <p>
9353 The videos can not be played back on your system.<br/>
9354 Try viewing on Youtube (requires Internet connection):
9355 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
9356 Youtube</a>.
9357 </p>
9358 </video>
9360 This change will cause the video and source tags to be parsed
9361 as RawBlock instead, giving better output.
9362 The general change is this: when we're parsing a "plain" sequence
9363 of inlines, we don't parse anything that COULD be a block-level tag.
9365 * Docx reader:
9367 + Be sensitive to user styles. Note that "Hyperlink" is
9368 "blacklisted," as we don't want the default underline styling to be
9369 inherited by all links by default (Jesse Rosenthal).
9370 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
9371 This makes to docx reader's native output fit with the way the markdown
9372 reader understands its markdown output.
9374 * Textile writer: Extended the range of cases where native textile
9375 tables will be used (as opposed to raw HTML): we now handle any
9376 alignment type, but only for simple tables with no captions.
9378 * Txt2Tags reader:
9380 + Header is now parsed only if standalone flag is set (Matthew Pickering).
9381 + The header is now parsed as meta information. The first line is the
9382 `title`, the second is the `author` and third line is the `date`
9383 (Matthew Pickering).
9384 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
9385 + Fixed crash when reading from stdin.
9387 * EPUB writer: Don't use page-progression-direction in EPUB2, which
9388 doesn't support it. Also, if page-progression-direction not specified
9389 in metadata, don't include the attribute even in EPUB3; not including it
9390 is the same as including it with the value "default", as we did before.
9391 (#1550)
9393 * Org writer: Accept example lines with indentation at the beginning
9394 (Calvin Beck).
9396 * DokuWiki writer:
9398 + Refactor to use Reader monad (Matthew Pickering).
9399 + Avoid using raw HTML in table cells; instead, use `\\`
9400 instead of newlines (Jesse Rosenthal).
9401 + Properly handle HTML table cell alignments, and use spacing
9402 to make the tables look prettier (#1566).
9404 * Docx writer:
9406 + Bibliography entries get `Bibliography` style (#1559).
9407 + Implement change tracking (Jesse Rosenthal).
9409 * LaTeX writer:
9411 + Fixed a bug that caused a table caption to repeat across all pages
9412 (Jose Luis Duran).
9413 + Improved vertical spacing in tables and made it customizable using
9414 standard lengths set by booktab. See
9415 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
9416 (Jose Luis Duran).
9417 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
9418 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
9419 + Made horizontal rules more flexible (Jose Luis Duran).
9421 * Text.Pandoc.MIME:
9423 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
9424 Code cleanups (Artyom Kazak).
9426 * Templates:
9428 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
9429 thanks lemzwerg).
9431 * Improved OSX build procedure.
9433 * Added `network-uri` flag, to deal with split of `network-uri` from
9434 `network`.
9436 * Fix build dependencies for the `trypandoc` flag, so that they are
9437 ignored if `trypandoc` flag is set to False (Gabor Pali).
9439 * Updated README to remove outdated claim that `--self-contained`
9440 looks in the user data directory for missing files.
9442pandoc (1.13.0.1)
9444 * Docx writer:
9446 + Fixed regression which bungled list numbering (#1544), causing
9447 all lists to appear as basic ordered lists.
9448 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
9449 Added a property to all table rows where the sum of column widths
9450 is specified in pct (fraction of 5000). This helps persuade Word
9451 to lay out the table with the widths we specify.
9453 * Fixed a bug in Windows 8 which caused pandoc not to find the
9454 `pandoc-citeproc` filter (#1542).
9456 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
9457 Most significantly, the reader now uses Builder, leading to some
9458 performance improvements.
9460 * HTML reader: Parse appropriately styled span as SmallCaps.
9462 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
9463 `superscript`, and `subscript` extensions, respectively, are
9464 deactivated (#1127).
9466 * Added `trypandoc` flag to build CGI executable used in the online
9467 demo.
9469 * Makefile: Added 'quick', 'osxpkg' targets.
9471 * Updated README in templates to indicate templates license.
9472 The templates are dual-licensed, BSD3 and GPL2+.
9474pandoc (1.13)
9476 [new features]
9478 * Added `docx` as an input format (Jesse Rosenthal). The docx
9479 reader includes conversion of native Word equations to pandoc
9480 LaTeX `Math` elements. Metadata is taken from paragraphs at the
9481 beginning of the document with styles `Author`, `Title`, `Subtitle`,
9482 `Date`, and `Abstract`.
9484 * Added `epub` as an input format (Matthew Pickering). The epub
9485 reader includes conversion of MathML to pandoc LaTeX `Math`
9486 elements.
9488 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
9489 Txt2tags is a lightweight markup format described at
9490 <http://txt2tags.org/>.
9492 * Added `dokuwiki` as an output format (Clare Macrae).
9494 * Added `haddock` as an output format.
9496 * Added `--extract-media` option to extract media contained in a zip
9497 container (docx or epub) while adjusting image paths to point to the
9498 extracted images.
9500 * Added a new markdown extension, `compact_definition_lists`, that
9501 restores the syntax for definition lists of pandoc 1.12.x, allowing
9502 tight definition lists with no blank space between items, and
9503 disallowing lazy wrapping. (See below under behavior changes.)
9505 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
9507 * Added extensions `native_spans` and `native_divs` to activate
9508 parsing of material in HTML span or div tags as Pandoc Span
9509 inlines or Div blocks.
9511 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
9512 Textile, and MediaWiki readers. This is an option intended
9513 for debugging parsing problems; ordinary users should not need
9514 to use it.
9516 [behavior changes]
9518 * Changed behavior of the `markdown_attribute` extension, to bring
9519 it in line with PHP markdown extra and multimarkdown. Setting
9520 `markdown="1"` on an outer tag affects all contained tags,
9521 recursively, until it is reversed with `markdown="0"` (#1378).
9523 * Revised markdown definition list syntax (#1429). Both the reader
9524 and writer are affected. This change brings pandoc's definition list
9525 syntax into alignment with that used in PHP markdown extra and
9526 multimarkdown (with the exception that pandoc is more flexible about
9527 the definition markers, allowing tildes as well as colons). Lazily
9528 wrapped definitions are now allowed. Blank space is required
9529 between list items. The space before a definition is used to determine
9530 whether it is a paragraph or a "plain" element. **WARNING: This change
9531 may break existing documents!** Either check your documents for
9532 definition lists without blank space between items, or use
9533 `markdown+compact_definition_lists` for the old behavior.
9535 * `.numberLines` now works in fenced code blocks even if no language
9536 is given (#1287, jgm/highlighting-kate#40).
9538 * Improvements to `--filter`:
9540 + Don't search PATH for a filter with an explicit path.
9541 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
9542 the system path, even if there was a `caps.py` in the working directory.
9543 + Respect shebang if filter is executable (#1389).
9544 + Don't print misleading error message.
9545 Previously pandoc would say that a filter was not found,
9546 even in a case where the filter had a syntax error.
9548 * HTML reader:
9550 + Parse `div` and `span` elements even without `--parse-raw`,
9551 provided `native_divs` and `native_spans` extensions are set.
9552 Motivation: these now generate native pandoc Div and Span
9553 elements, not raw HTML.
9554 + Parse EPUB-specific elements if the `epub_html_exts`
9555 extension is enabled. These include `switch`, `footnote`,
9556 `rearnote`, `noteref`.
9558 * Org reader:
9560 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
9561 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
9562 `\cite{Coffee}`), can be used without any further escaping (Albert
9563 Krewinkel).
9565 * Textile reader and writer:
9567 + The `raw_tex` extension is no longer set by default. You can
9568 enable it with `textile+raw_tex`.
9570 * DocBook reader:
9572 + Support `equation`, `informalequation`, `inlineequation` elements with
9573 `mml:math` content. This is converted into LaTeX and put into a Pandoc
9574 Math inline.
9576 * Revised `plain` output, largely following the style of Project
9577 Gutenberg:
9579 + Emphasis is rendered with `_underscores_`, strong emphasis
9580 with ALL CAPS.
9581 + Headings are rendered differently, with space to set them off,
9582 not with setext style underlines. Level 1 headers are ALL CAPS.
9583 + Math is rendered using unicode when possible, but without the
9584 distracting emphasis markers around variables.
9585 + Footnotes use a regular `[n]` style.
9587 * Markdown writer:
9589 + Horizontal rules are now a line across the whole page.
9590 + Prettier pipe tables. Columns are now aligned (#1323).
9591 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
9592 no longer emits any raw HTML, including span and div tags
9593 generated by Span and Div elements.
9594 + Use span with style for `SmallCaps` (#1360).
9596 * HTML writer:
9598 + Autolinks now have class `uri`, and email autolinks have class
9599 `email`, so they can be styled.
9601 * Docx writer:
9603 + Document formatting is carried over from `reference.docx`.
9604 This includes margins, page size, page orientation, header,
9605 and footer, including images in headers and footers.
9606 + Include abstract (if present) with `Abstract` style (#1451).
9607 + Include subtitle (if present) with `Subtitle` style, rather
9608 than tacking it on to the title (#1451).
9610 * Org writer:
9612 + Write empty span elements with an id attribute as org anchors.
9613 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
9615 * LaTeX writer:
9617 + Put table captions above tables, to match the conventional
9618 standard. (Previously they appeared below tables.)
9619 + Use `\(..\)` instead of `$..$` for inline math (#1464).
9620 + Use `\nolinkurl` in email autolinks. This allows them to be styled
9621 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
9622 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
9623 curly quotes in the PDF output (#1364).
9624 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
9625 do not appear before the overlays in which their markers appear
9626 (#1525).
9627 + Don't produce a `\label{..}` for a Div or Span element. Do produce
9628 a `\hyperdef{..}` (#1519).
9630 * EPUB writer:
9632 + If the metadata includes `page-progression-direction` (which can be
9633 `ltr` or `rtl`, the `page-progression-direction` attribute will
9634 be set in the EPUB spine (#1455).
9636 * Custom lua writers:
9638 + Custom writers now work with `--template`.
9639 + Removed HTML header scaffolding from `sample.lua`.
9640 + Made citation information available in lua writers.
9642 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
9643 adjacent `RawBlock`s when possible.
9645 [API changes]
9647 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
9649 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
9650 Pickering).
9652 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
9653 Pickering).
9655 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
9656 (Clare Macrae).
9658 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
9660 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
9661 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
9662 readers return a pair of a `Pandoc` document and a `MediaBag` with
9663 the media resources they contain. This can be extracted using
9664 `--extract-media`. Writers that incorporate media (PDF, Docx,
9665 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
9666 for resources in the `MediaBag` generated by the reader, in addition to
9667 the file system or web.
9669 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
9670 Renamed `readTeXMath'` to `texMathToInlines`.
9672 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
9673 `readers` now associates names of readers with `Reader`
9674 structures. This allows inclusion of readers, like the docx
9675 reader, that take binary rather than textual input.
9677 * `Text.Pandoc.Shared`:
9679 + Added `capitalize` (Artyom Kazak), and replaced uses of
9680 `map toUpper` (which give bad results for many languages).
9681 + Added `collapseFilePath`, which removes intermediate `.` and
9682 `..` from a path (Matthew Pickering).
9683 + Added `fetchItem'`, which works like `fetchItem` but searches
9684 a `MediaBag` before looking on the net or file system.
9685 + Added `withTempDir`.
9686 + Added `removeFormatting`.
9687 + Added `extractSpaces` (from HTML reader) and generalized its type
9688 so that it can be used by the docx reader (Matthew Pickering).
9689 + Added `ordNub`.
9690 + Added `normalizeInlines`, `normalizeBlocks`.
9691 + `normalize` is now `Pandoc -> Pandoc` instead of
9692 `Data a :: a -> a`. Some users may need to change their uses of
9693 `normalize` to the newly exported `normalizeInlines` or
9694 `normalizeBlocks`.
9696 * `Text.Pandoc.Options`:
9698 + Added `writerMediaBag` to `WriterOptions`.
9699 + Removed deprecated and no longer used `readerStrict` in
9700 `ReaderOptions`. This is handled by `readerExtensions` now.
9701 + Added `Ext_compact_definition_lists`.
9702 + Added `Ext_epub_html_exts`.
9703 + Added `Ext_native_divs` and `Ext_native_spans`.
9704 This allows users to turn off the default pandoc behavior of
9705 parsing contents of div and span tags in markdown and HTML
9706 as native pandoc Div blocks and Span inlines.
9708 * `Text.Pandoc.Parsing`:
9710 + Generalized `readWith` to `readWithM` (Matthew Pickering).
9711 + Export `runParserT` and `Stream` (Matthew Pickering).
9712 + Added `HasQuoteContext` type class (Matthew Pickering).
9713 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
9714 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
9715 `applyMacros` (Matthew Pickering).
9716 + Added custom `token` (Matthew Pickering).
9717 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
9718 track of the ending tag we're waiting for when we're parsing inside
9719 HTML block tags.
9720 + Added `stateMarkdownAttribute` to `ParserState`. This is used
9721 to keep track of whether the markdown attribute has been set in
9722 an enclosing tag.
9723 + Generalized type of `registerHeader`, using new type classes
9724 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
9725 Pickering). These allow certain common functions to be reused
9726 even in parsers that use custom state (instead of `ParserState`),
9727 such as the MediaWiki reader.
9728 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
9729 and generalized their types (Matthew Pickering).
9731 * `Text.Pandoc.Pretty`:
9733 + Added `nestle`.
9734 + Added `blanklines`, which guarantees a certain number of blank lines
9735 (and no more).
9737 [bug fixes]
9739 * Markdown reader:
9741 + Fixed parsing of indented code in list items. Indented code
9742 at the beginning of a list item must be indented eight spaces
9743 from the margin (or edge of the container), or four spaces
9744 from the list marker, whichever is greater.
9745 + Fixed small bug in HTML parsing with `markdown_attribute`, which
9746 caused incorrect tag nesting for input like
9747 `<aside markdown="1">*hi*</aside>`.
9748 + Fixed regression with intraword underscores (#1121).
9749 + Improved parsing of inline links containing quote characters (#1534).
9750 + Slight rewrite of `enclosure`/`emphOrStrong` code.
9751 + Revamped raw HTML block parsing in markdown (#1330).
9752 We no longer include trailing spaces and newlines in the
9753 raw blocks. We look for closing tags for elements (but without
9754 backtracking). Each block-level tag is its own `RawBlock`;
9755 we no longer try to consolidate them (though `--normalize` will do so).
9756 + Combine consecutive latex environments. This helps when you have
9757 two minipages which can't have blank lines between them (#690, #1196).
9758 + Support smallcaps through span.
9759 `<span style="font-variant:small-caps;">foo</span>` will be
9760 parsed as a `SmallCaps` inline, and will work in all output
9761 formats that support small caps (#1360).
9762 + Prevent spurious line breaks after list items (#1137). When the
9763 `hard_line_breaks` option was specified, pandoc would formerly
9764 produce a spurious line break after a tight list item.
9765 + Fixed table parsing bug (#1333).
9766 + Handle `c++` and `objective-c` as language identifiers in
9767 github-style fenced blocks (#1318).
9768 + Inline math must have nonspace before final `$` (#1313).
9770 * LaTeX reader:
9772 + Handle comments at the end of tables. This resolves the issue
9773 illustrated in <http://stackoverflow.com/questions/24009489>.
9774 + Correctly handle table rows with too few cells. LaTeX seems to
9775 treat them as if they have empty cells at the end (#241).
9776 + Handle leading/trailing spaces in `\emph` better.
9777 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
9778 so that we don't get things like `* hi *` in markdown output.
9779 Also applies to `\textbf` and some other constructions (#1146).
9780 + Don't assume preamble doesn't contain environments (#1338).
9781 + Allow (and discard) optional argument for `\caption` (James Aspnes).
9783 * HTML reader:
9785 + Fixed major parsing problem with HTML tables. Table cells were
9786 being combined into one cell (#1341).
9787 + Fixed performance issue with malformed HTML tables.
9788 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
9789 + Allow space between `<col>` and `</col>`.
9790 + Added `audio` and `source` in `eitherBlockOrInline`.
9791 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
9792 `blockTags` to `eitherBlockOrInline`.
9793 + `map` and `object` were mistakenly in both lists; they have been removed
9794 from `blockTags`.
9795 + Ignore `DOCTYPE` and `xml` declarations.
9797 * MediaWiki reader:
9799 + Don't parse backslash escapes inside `<source>` (#1445).
9800 + Tightened up template parsing.
9801 The opening `{{` must be followed by an alphanumeric or `:`.
9802 This prevents the exponential slowdown in #1033.
9803 + Support "Bild" for images.
9805 * DocBook reader:
9807 + Better handle elements inside code environments. Pandoc's document
9808 model does not allow structure inside code blocks, but at least this way
9809 we preserve the text (#1449).
9810 + Support `<?asciidoc-br?>` (#1236).
9812 * Textile reader:
9814 + Fixed list parsing. Lists can now start without an intervening
9815 blank line (#1513).
9816 + HTML block-level tags that do not start a line are parsed as
9817 inline HTML and do not interrupt paragraphs (as in RedCloth).
9819 * Org reader:
9821 + Make tildes create inline code (#1345). Also relabeled `code` and
9822 `verbatim` parsers to accord with the org-mode manual.
9823 + Respect `:exports` header argument in code blocks (Craig Bosma).
9824 + Fixed tight lists with sublists (#1437).
9826 * EPUB writer:
9828 + Avoid excess whitespace in `nav.xhtml`. This should improve
9829 TOC view in iBooks (#1392).
9830 + Fixed regression on cover image.
9831 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
9832 because the metadata id was not correct. Now we derive the id from the
9833 actual cover image filename, which we preserve rather than using
9834 "cover-image."
9835 + Keep newlines between block elements. This allows
9836 easier diff-ability (#1424).
9837 + Use `stringify` instead of custom `plainify`.
9838 + Use `renderTags'` for all tag rendering. This properly handles tags
9839 that should be self-closing. Previously `<hr/>` would appear in EPUB
9840 output as `<hr></hr>` (#1420).
9841 + Better handle HTML media tags.
9842 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
9843 can have only one dc:date, so only the first one is used.
9845 * LaTeX writer:
9847 + Correctly handle figures in notes. Notes can't contain figures in
9848 LaTeX, so we fake it to avoid an error (#1053).
9849 + Fixed strikeout + highlighted code (#1294).
9850 Previously strikeout highlighted code caused an error.
9852 * ConTeXt writer:
9854 + Improved detection of autolinks with URLs containing escapes.
9856 * RTF writer:
9858 + Improved image embedding: `fetchItem'` is now used to get the
9859 images, and calculated image sizes are indicated in the RTF.
9860 + Avoid extra paragraph tags in metadata (#1421).
9862 * HTML writer:
9864 + Deactivate "incremental" inside slide speaker notes (#1394).
9865 + Don't include empty items in the table of contents for
9866 slide shows. (These would result from creating a slide
9867 using a horizontal rule.)
9869 * MediaWiki writer:
9871 + Minor renaming of `st` prefixed names.
9873 * AsciiDoc writer:
9875 + Double up emphasis and strong emphasis markers in intraword
9876 contexts, as required by asciidoc (#1441).
9878 * Markdown writer:
9880 + Avoid wrapping that might start a list, blockquote, or header (#1013).
9881 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
9882 + Don't use braced attributes for fenced code (#1416).
9883 If `Ext_fenced_code_attributes` is not set, the first class
9884 attribute will be printed after the opening fence as a bare word.
9885 + Separate adjacent lists of the same kind with an HTML comment (#1458).
9887 * PDF writer:
9889 + Fixed treatment of data uris for images (#1062).
9891 * Docx writer:
9893 + Use Compact style for empty table cells (#1353).
9894 Otherwise we get overly tall lines when there are empty
9895 table cells and the other cells are compact.
9896 + Create overrides per-image for `media/` in reference docx.
9897 This should be somewhat more robust and cover more types of images.
9898 + Improved `entryFromArchive` to avoid an unneeded parse.
9899 + Section numbering carries over from reference.docx (#1305).
9900 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
9901 we assign numbers based on the list marker styles.
9903 * `Text.Pandoc.Options`:
9905 + Removed `Ext_fenced_code_attributes` from `markdown_github`
9906 extensions.
9908 * `Text.Pandoc.ImageSize`:
9910 + Use default instead of failing if image size not found
9911 in exif header (#1358).
9912 + ignore unknown exif header tag rather than crashing.
9913 Some images seem to have tag type of 256, which was causing
9914 a runtime error.
9916 * `Text.Pandoc.Shared`:
9918 + `fetchItem`: unescape URI encoding before reading local file (#1427).
9919 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
9920 doing mime lookup, to improve mime type guessing.
9921 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
9922 other things are treated as relative URIs if `sourceURL` is `Just _`,
9923 otherwise as file paths on the local file system.
9924 + `fetchItem` now properly handles links without a protocol (#1477).
9925 + `fetchItem` now escapes characters not allowed in URIs before trying
9926 to parse the URIs.
9927 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
9929 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
9930 needed to resolve relative URLs when we fetch resources (#750).
9932 * `Text.Pandoc.Parsing`
9934 + Simplified `dash` and `ellipsis` (#1419).
9935 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
9936 + Generalized functions to use `ParsecT` (Matthew Pickering).
9937 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
9938 Pickering).
9940 [template changes]
9942 * Added haddock template.
9943 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
9944 be "advisory" in HTML5, but kindlegen seems to require them.
9945 * EPUB3: Put title page in section with `epub:type="titlepage"`.
9946 * LaTeX: Made `\subtitle` work properly (#1327).
9947 * LaTeX/Beamer: remove conditional around date (#1321).
9948 * LaTeX: Added `lot` and `lof` variables, which can be set to
9949 get `\listoftables` and `\listoffigures` (#1407). Note that
9950 these variables can be set at the command line with `-Vlot -Vlof`
9951 or in YAML metadata.
9953 [under the hood improvements]
9955 * Rewrote normalize for efficiency (#1385).
9957 * Rewrote Haddock reader to use `haddock-library` (#1346).
9959 + This brings pandoc's rendering of haddock markup in line
9960 with the new haddock.
9961 + Fixed line breaks in `@` code blocks.
9962 + alex and happy are no longer build-depends.
9964 * Added `Text.Pandoc.Compat.Directory` to allow building against
9965 different versions of the `directory` library.
9967 + Added `Text.Pandoc.Compat.Except` to allow building against
9968 different versions of `mtl`.
9970 * Code cleanup in some writers, using Reader monad to avoid
9971 passing options parameter around (Matej Kollar).
9973 * Improved readability in `pandoc.hs`.
9975 * Miscellaneous code cleanups (Artyom Kazak).
9977 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
9978 Thompson).
9980 * Changed `http-conduit` flag to `https`. Depend on `http-client`
9981 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
9982 depends on `conduit` via `yaml`.)
9984 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
9985 This change to highlighting-kate means that PHP fragments no longer need
9986 to start with `<?php`. It also fixes a serious bug causing failures with
9987 ocaml and fsharp.
9989 * Require latest `texmath`. This fixes `\tilde{E}` and allows
9990 `\left` to be used with `]`, `)` etc. (#1319), among many other
9991 improvements.
9993 * Require latest `zip-archive`. This has fixes for unicode path names.
9995 * Added tests for plain writer.
9997 * `Text.Pandoc.Templates`:
9999 + Fail informatively on template syntax errors.
10000 With the move from parsec to attoparsec, we lost good error
10001 reporting. In fact, since we weren't testing for end of input,
10002 malformed templates would fail silently. Here we revert back to
10003 Parsec for better error messages.
10004 + Use `ordNub` (#1022).
10006 * Benchmarks:
10008 + Made benchmarks compile again (Artyom Kazak).
10009 + Fixed so that the failure of one benchmark does not prevent others
10010 from running (Artyom Kazak).
10011 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
10012 + Changed benchmark to use only the test suite, so that benchmarks
10013 run more quickly.
10015 * Windows build script:
10017 + Add `-windows` to file name.
10018 + Use one install command for pandoc, pandoc-citeproc.
10019 + Force install of pandoc-citeproc.
10021 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
10022 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
10023 will extract it into a folder named `SOMETHING.pkg`, which it
10024 will interpret as a defective package (#1308).
10026 * `README`:
10028 + Made headers for all extensions so they have IDs and can be
10029 linked to (Beni Cherniavsky-Paskin).
10030 + Fixed typos (Phillip Alday).
10031 + Fixed documentation of attributes (#1315).
10032 + Clarified documentation on small caps (#1360).
10033 + Better documentation for `fenced_code_attributes` extension
10034 (Caleb McDaniel).
10035 + Documented fact that you can put YAML metadata in a separate file
10036 (#1412).
10039pandoc (1.12.4.2)
10041 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
10043 * Shared: `addMetaValue` now behaves slightly differently:
10044 if both the new and old values are lists, it concatenates their
10045 contents to form a new list.
10047 * LaTeX reader:
10049 + Set `bibliography` in metadata from `\bibliography` or
10050 `\addbibresource` command.
10051 + Don't error on `%foo` with no trailing newline.
10053 * Org reader:
10055 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
10056 + Fix parsing of blank lines within blocks (Albert Krewinkel).
10057 + Support pandoc citation extension (Albert Krewinkel). This can
10058 be turned off by specifying `org-citations` as the input format.
10060 * Markdown reader:
10062 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
10063 other readers (Albert Krewinkel).
10065 * `Text.Pandoc.Parsing`:
10067 + Added `citeKey` (see above).
10068 + Added `HasLastStrPosition` type class and `updateLastStrPos`
10069 and `notAfterString` functions.
10071 * Updated copyright notices (Albert Krewinkel).
10073 * Added default.icml to data files so it installs with the package.
10075 * OSX package:
10077 + The binary is now built with options to ensure that it can be
10078 used with OSX 10.6+.
10079 + Moved OSX package materials to osx directory.
10080 + Added OSX package uninstall script, included in the zip container
10081 (thanks to Daniel T. Staal).
10083pandoc (1.12.4)
10085 * Made it possible to run filters that aren't executable (#1096).
10086 Pandoc first tries to find the executable (searching the path
10087 if path isn't given). If it fails, but the file exists and has
10088 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
10089 using the appropriate interpreter. This should make it easier to
10090 use filters on Windows, and make it more convenient for everyone.
10092 * Added Emacs org-mode reader (Albert Krewinkel).
10094 * Added InDesign ICML Writer (Mauro Bieg).
10096 * MediaWiki reader:
10098 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
10099 + Fixed bug in certain nested lists (#1213). If a level 2 list was
10100 followed by a level 1 list, the first item of the level 1 list
10101 would be lost.
10102 + Handle table rows containing just an HTML comment (#1230).
10104 * LaTeX reader:
10106 + Give better location information on errors, pointing to line
10107 numbers within included files (#1274).
10108 + LaTeX reader: Better handling of `table` environment (#1204).
10109 Positioning options no longer rendered verbatim.
10110 + Better handling of figure and table with caption (#1204).
10111 + Handle `@{}` and `p{length}` in tabular. The length is not actually
10112 recorded, but at least we get a table (#1180).
10113 + Properly handle `\nocite`. It now adds a `nocite` metadata
10114 field. Citations there will appear in the bibliography but not
10115 in the text (unless you explicitly put a `$nocite$` variable
10116 in your template).
10118 * Markdown reader:
10120 + Ensure that whole numbers in YAML metadata are rendered without
10121 decimal points. (This became necessary with changes to aeson
10122 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
10123 + Fixed regression on line breaks in strict mode (#1203).
10124 + Small efficiency improvements.
10125 + Improved parsing of nested `div`s. Formerly a closing `div` tag
10126 would be missed if it came right after other block-level tags.
10127 + Avoid backtracking when closing `</div>` not found.
10128 + Fixed bug in reference link parsing in `markdown_mmd`.
10129 + Fixed a bug in list parsing (#1154). When reading a raw list
10130 item, we now strip off up to 4 spaces.
10131 + Fixed parsing of empty reference link definitions (#1186).
10132 + Made one-column pipe tables work (#1218).
10134 * Textile reader:
10136 + Better support for attributes. Instead of being ignored, attributes
10137 are now parsed and included in Span inlines. The output will be a bit
10138 different from stock textile: e.g. for `*(foo)hi*`, we'll get
10139 `<em><span class="foo">hi</span></em>` instead of
10140 `<em class="foo">hi</em>`. But at least the data is not lost.
10141 + Improved treatment of HTML spans (%) (#1115).
10142 + Improved link parsing. In particular we now pick up on attributes.
10143 Since pandoc links can't have attributes, we enclose the whole link in
10144 a span if there are attributes (#1008).
10145 + Implemented correct parsing rules for inline markup (#1175, Matthew
10146 Pickering).
10147 + Use Builder (Matthew Pickering).
10148 + Fixed list parsing bug (#1500).
10149 + Don't allow inline formatting to extend over newlines.
10150 This matches the behavior of RedCarpet, avoids some ugly bugs,
10151 and improves performance.
10153 * DocBook reader:
10155 + Better treatment of `formalpara`. We now emit the title (if present)
10156 as a separate paragraph with boldface text (#1215).
10157 + Set metadata `author` not `authors`.
10158 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
10159 Matthew Pickering).
10160 + Converted current meta information parsing in DocBook to a more
10161 extensible version which is aware of the more recent meta
10162 representation (Matthew Pickering).
10164 * HTML reader:
10166 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
10167 (#1248).
10168 + Treat processing instructions & declarations as block. Previously
10169 these were treated as inline, and included in paragraph tags in HTML
10170 or DocBook output, which is generally not what is wanted (#1233).
10171 + Updated `closes` with rules from HTML5 spec.
10172 + Use Builder (Matthew Pickering, #1162).
10174 * RST reader:
10176 + Remove duplicate `http` in PEP links (Albert Krewinkel).
10177 + Make rst figures true figures (#1168, CasperVector)
10178 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
10179 rST parser now supports: all built-in rST roles, new role definition,
10180 role inheritance, though with some limitations.
10181 + Use `author` rather than `authors` in metadata.
10182 + Better handling of directives. We now correctly handle field
10183 lists that are indented more than three spaces. We treat an
10184 `aafig` directive as a code block with attributes, so it can be
10185 processed in a filter (#1212).
10187 * LaTeX writer:
10189 + Mark span contents with label if span has an ID (Albert Krewinkel).
10190 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
10191 + Handle line breaks in simple table cells (#1217).
10192 + Workaround for level 4-5 headers in quotes. These previously produced
10193 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
10194 This adds an `mbox{}` in these contexts to work around the problem.
10195 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
10196 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
10197 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
10198 ligature with LuaLaTeX but `\/` does.
10199 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
10201 * ConTeXt writer: Improved autolinks (#1270).
10203 * DocBook writer:
10205 + Improve handling of hard line breaks in Docbook writer
10206 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
10207 just for the newline character.
10208 + Don't let line breaks inside footnotes influence the enclosing
10209 paragraph (Neil Mayhew).
10210 + Distinguish tight and loose lists in DocBook output, using
10211 `spacing="compact"` (Neil Mayhew, #1250).
10213 * Docx writer: When needed files are not present in the user's
10214 `reference.docx`, fall back on the versions in the `reference.docx`
10215 in pandoc's data files. This fixes a bug that occurs when a
10216 `reference.docx` saved by LibreOffice is used. (#1185)
10218 * EPUB writer:
10220 + Include extension in epub ids. This fixes a problem with duplicate
10221 extensions for fonts and images with the same base name but different
10222 extensions (#1254).
10223 + Handle files linked in raw `img` tags (#1170).
10224 + Handle media in `audio` source tags (#1170).
10225 Note that we now use a `media` directory rather than `images`.
10226 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
10227 will both be incorporated into `content.opf` and the epub container.
10229 * HTML writer:
10231 + Add colgroup around col tags (#877). Also affects EPUB writer.
10232 + Fixed bug with unnumbered section headings. Unnumbered section
10233 headings (with class `unnumbered`) were getting numbers.
10234 + Improved detection of image links. Previously image links with
10235 queries were not recognized, causing `<embed>` to be used instead
10236 of `<img>`.
10238 * Man writer: Ensure that terms in definition lists aren't line wrapped
10239 (#1195).
10241 * Markdown writer:
10243 + Use proper escapes to avoid unwanted lists (#980). Previously we used
10244 0-width spaces, an ugly hack.
10245 + Use longer backtick fences if needed (#1206). If the content contains a
10246 backtick fence and there are attributes, make sure longer fences are
10247 used to delimit the code. Note: This works well in pandoc, but github
10248 markdown is more limited, and will interpret the first string of three
10249 or more backticks as ending the code block.
10251 * RST writer: Avoid stack overflow with certain tables (#1197).
10253 * RTF writer: Fixed table cells containing paragraphs.
10255 * Custom writer:
10257 + Correctly handle UTF-8 in custom lua scripts (#1189).
10258 + Fix bugs with lua scripts with mixed-case filenames and
10259 paths containing `+` or `-` (#1267). Note that `getWriter`
10260 in `Text.Pandoc` no longer returns a custom writer on input
10261 `foo.lua`.
10263 * AsciiDoc writer: Handle multiblock and empty table cells
10264 (#1245, #1246). Added tests.
10266 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
10268 * `Text.Pandoc.Shared`:
10270 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
10271 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
10272 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
10273 Jesse Rosenthal.
10274 + `openURL`: set proxy with value of http_proxy env variable (#1211).
10275 Note: proxies with non-root paths are not supported, due to
10276 limitations in `http-conduit`.
10278 * `Text.Pandoc.PDF`:
10280 + Ensure that temp directories deleted on Windows (#1192). The PDF is
10281 now read as a strict bytestring, ensuring that process ownership will
10282 be terminated, so the temp directory can be deleted.
10283 + Use `/` as path separators in a few places, even on Windows.
10284 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
10285 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
10286 + Changes to error reporting, to handle non-UTF8 error output.
10288 * `Text.Pandoc.Templates`:
10290 + Removed unneeded datatype context (Merijn Verstraaten).
10292 + YAML objects resolve to "true" in conditionals (#1133).
10293 Note: If `address` is a YAML object and you just have `$address$`
10294 in your template, the word `true` will appear, which may be
10295 unexpected. (Previously nothing would appear.)
10297 * `Text.Pandoc.SelfContained`:
10299 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
10300 the string.
10301 * It no longer looks in data files. This only made sense when we
10302 had copies of slidy and S5 code there.
10303 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
10304 + Handle `poster` attribute in `video` tags (#1188).
10306 * `Text.Pandoc.Parsing`:
10308 + Made `F` an instance of Applicative (#1138).
10309 + Added `stateCaption`.
10310 + Added `HasMacros`, simplified other typeclasses.
10311 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
10312 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
10313 + Changed the smart punctuation parser to return `Inlines`
10314 rather than `Inline` (Matthew Pickering).
10315 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
10316 from typeclasses of monads to typeclasses of states. This simplifies
10317 the instance definitions and provides more flexibility. Generalized
10318 type of `getOption` and added a default definition. Removed
10319 `askReaderOption`. Added `extractReaderOption`. Added
10320 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
10321 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
10322 `modifyHeaderMap`. Added `extractIdentifierList` and
10323 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
10324 for `getIdentifierList`, `putIdentifierList`, and
10325 `modifyIdentifierList`. The ultimate goal here is to allow different
10326 parsers to use their own, tailored parser states (instead of
10327 `ParserState`) while still using shared functions.
10329 * Template changes:
10331 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
10332 + LaTeX template: Add `linestretch` and `fontfamily` variables.
10333 + LaTeX template: Conditionalize author and date commands.
10334 + Beamer template: Consistent styles for figure and table captions
10335 (aaronwolen).
10336 + LaTeX and beamer template: Adjust widths correctly for oversized
10337 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
10338 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
10339 `upquote` only after `fontenc` (Yihui Xie).
10340 + Beamer template: Added caption package (#1200).
10341 + Beamer template: changes for better unicode handling (KarolS).
10342 + DocBook template: use `authorgroup` if there are authors.
10343 + revealjs template: Move `include-after` to end (certainlyakey).
10344 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
10346 * Bumped version bounds of dependencies.
10348 * Added a `--trace` command line option, for debugging backtracking
10349 bugs. So far this only works with the markdown reader.
10351 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
10353 * Updated travis script to test with multiple GHC versions.
10355 * Force failure of a Travis build if GHC produces warnings (Albert
10356 Krewinkel).
10358 * Add `.editorconfig` (Albert Krewinkel).
10359 See <http://editorconfig.org/> for details.
10361 * Give more useful error message if '-t pdf' is specified (#1155).
10363 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
10365 * Allow `html4` as a synonym of `html` as a reader (it already works
10366 as a writer).
10368 * README:
10370 + Added an explanation of how to use YAML metadata to
10371 force items to appear in the bibliography without citations in
10372 the text (like LaTeX `\nocite`).
10373 + Added note to `--bibtex/--natbib`: not for use in making PDF
10374 (#1194, thanks to nahoj).
10375 + Added explanatory notes about `--natbib` and `--biblatex`.
10376 + Added specification of legal syntax for citation keys.
10377 + Fixed variable defaults documentation (Albert Krewinkel).
10379 * Removed copyright statements for files that have been removed
10380 (Albert Krewinkel).
10382 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
10383 They aren't needed at runtime. We keep README and COPYRIGHT in data
10384 to ensure that they'll be available on all systems on which pandoc
10385 is installed.
10387 * Use cabal sandboxes in Windows build script.
10389pandoc (1.12.3.3)
10391 * To changes to source; recompiled tarball with latest alex and
10392 happy, so they will work with GHC 7.8.
10394pandoc (1.12.3.2)
10396 * Bumped version bounds for blaze-html, blaze-markup.
10398 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
10399 (#1124).
10401 * Fixed mediawiki ordered list parsing (#1122).
10403 * HTML reader: Fixed bug reading inline math with `$$` (#225).
10405 * Added support for LaTeX style literate Haskell code blocks in rST
10406 (Merijn Verstraaten).
10408pandoc (1.12.3.1)
10410 * Relaxed version constraint on binary, allowing the use of binary 0.5.
10412pandoc (1.12.3)
10414 * The `--bibliography` option now sets the `biblio-files` variable.
10415 So, if you're using `--natbib` or `--biblatex`, you can just use
10416 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
10418 * Don't run pandoc-citeproc filter if `--bibliography` is
10419 used together with `--natbib` or `--biblatex` (Florian Eitel).
10421 * Template changes:
10423 + Updated beamer template to include booktabs.
10424 + Added `abstract` variable to LaTeX template.
10425 + Put `header-includes` after `title` in LaTeX template (#908).
10426 + Allow use of `\includegraphics[size]` in beamer.
10427 This just required porting a macro definition from the default
10428 LaTeX template to the default beamer template.
10430 * `reference.docx`: Include `FootnoteText` style.
10431 Otherwise Word ignores the style, even when specified in the `pPr`.
10432 (#901)
10434 * `reference.odt`: Tidied `styles.xml`.
10436 * Relaxed version bounds for dependencies.
10438 * Added `withSocketsDo` around http conduit code in `openURL`,
10439 so it works on Windows (#1080).
10441 * Added `Cite` function to `sample.lua`.
10443 * Markdown reader:
10445 + Fixed regression in title blocks (#1089).
10446 If author field was empty, date was being ignored.
10447 + Allow backslash-newline hard line breaks in grid and
10448 multiline table cells.
10449 + Citation keys may now start with underscores, and may contain
10450 underscores adjacent to internal punctuation.
10452 * LaTeX reader:
10454 + Add support for `Verb` macro (jrnold) (#1090).
10455 + Support babel-style quoting: `` "`..."' ``.
10457 * Properly handle script blocks in strict mode. (That is,
10458 `markdown-markdown_in_html_blocks`.) Previously a spurious
10459 `<p>` tag was being added (#1093).
10461 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
10462 elements.
10464 * LaTeX writer:
10466 + Factored out function for table cell creation.
10467 + Better treatment of footnotes in tables.
10468 Notes now appear in the regular sequence, rather than in the
10469 table cell. (This was a regression in 1.10.)
10471 * HTML reader: Parse name/content pairs from meta tags as metadata.
10472 Closes #1106.
10474 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
10476 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
10478 * ODT writer: Use mathml for proper rendering of formulas.
10479 Note: LibreOffice's support for this seems a bit buggy. But
10480 it should be better than what we had before.
10482 * RST writer: Ensure no blank line after def in definition list (#992).
10484 * Markdown writer: Don't use tilde code blocks with braced attributes in
10485 `markdown_github` output. A consequence of this change is that the
10486 backtick form will be preferred in general if both are enabled. That
10487 is good, as it is much more widespread than the tilde form. (#1084)
10489 * Docx writer: Fixed problem with some modified reference docx files.
10490 Include `word/_rels/settings.xml.rels` if it exists, as well as other
10491 `rels` files besides the ones pandoc generates explicitly.
10493 * HTML writer:
10495 + With `--toc`, headers no longer link to themselves (#1081).
10496 + Omit footnotes from TOC entries. Otherwise we get doubled
10497 footnotes when headers have notes!
10499 * EPUB writer:
10501 + Avoid duplicate notes when headings contain notes.
10502 This arose because the headings are copied into the metadata
10503 "title" field, and the note gets rendered twice. We strip the
10504 note now before putting the heading in "title".
10505 + Strip out footnotes from toc entries.
10506 + Fixed bug with `--epub-stylesheet`. Now the contents of
10507 `writerEpubStylesheet` (set by `--epub-stylesheet`)
10508 should again work, and take precedence over a stylesheet specified
10509 in the metadata.
10511 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
10513 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
10514 with `//`.
10516 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
10517 we could only get size information for JFIF format, which led
10518 to squished images in Word documents. Closes #976.
10520 * Removed old `MarkdownTest_1.0.3` directory (#1104).
10522pandoc (1.12.2.1)
10524 * Markdown reader: Fixed regression in list parser, involving
10525 continuation lines containing raw HTML (or even verbatim raw HTML).
10527pandoc (1.12.2)
10529 * Metadata may now be included in YAML blocks in a markdown document.
10530 For example,
10532 ---
10533 title:
10534 - type: main
10535 text: My Book
10536 - type: subtitle
10537 text: An investigation of metadata
10538 creator:
10539 - role: author
10540 text: John Smith
10541 - role: editor
10542 text: Sarah Jones
10543 identifier:
10544 - scheme: DOI
10545 text: doi:10.234234.234/33
10546 publisher: My Press
10547 rights: (c) 2007 John Smith, CC BY-NC
10548 cover-image: img/mypic.jpg
10549 ...
10551 Metadata may still be provided using `--epub-metadata`; it will
10552 be merged with the metadata in YAML blocks.
10554 * EPUB writer:
10556 + `meta` tags are now used instead of `opf` attributes for EPUB3.
10557 + Insert "svg" property as needed in opf (EPUB 3).
10558 + Simplify `imageTypeOf` using `getMimeType`.
10559 + Add properties attribute to `cover-image` item for EPUB 3.
10560 + Don't include node for `cover.xhtml` if no cover!
10561 + Ensure that same identifier is used throughout (#1044).
10562 If an identifier is given in metadata, we use that; otherwise
10563 we generate a random uuid.
10564 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
10565 Fixes an issue with Calibre putting the cover at the end of the book
10566 if the spine has `linear="no"`. Apparently this is best practice
10567 for other converters as well:
10568 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
10569 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
10570 + Allow partial dates: `YYYY`, `YYYY-MM`.
10572 * Markdown writer: Fix rendering of tight sublists (#1050).
10573 Previously a spurious blank line was included after a tight sublist.
10575 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
10576 This is reported to be necessary to avoid an error from recent
10577 versions of Libre Office when files contain more than one image
10578 Thanks to wmanley for reporting and diagnosing the problem.
10580 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
10581 Instead, let this be set in the template, using `\setupfloat`.
10582 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
10584 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
10586 * Fixed bug with markdown intraword emphasis. Closes #1066.
10588 * Docbook writer: Hierarchicalize block content in metadata.
10589 Previously headers just disappeared from block-level metadata
10590 when it was used in templates. Now we apply the 'hierarchicalize'
10591 transformation. Note that a block headed by a level-2 header will
10592 turn into a `<sect1>` element.
10594 * OpenDocument writer: Skip raw HTML (#1035).
10595 Previously it was erroneously included as verbatim text.
10597 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
10598 This allows better control of formatting, since the `<a>`
10599 tags have a distinguishing class (#1049).
10601 * Docx writer:
10603 + Use mime type info returned by fetchItem.
10604 + Fixed core metadata (#1046).
10605 Don't create empty date nodes if no date given.
10606 Don't create multiple `dc:creator` nodes; instead separate by
10607 semicolons.
10608 + Fix URL for core-properties in `_rels/.rels` (#1046).
10610 * Plain writer: don't print `<span>` tags.
10612 * LaTeX writer:
10614 + Fix definition lists with internal links in terms (#1032).
10615 This fix puts braces around a term that contains an internal
10616 link, to avoid problems with square brackets.
10617 + Properly escape pdftitle, pdfauthor (#1059).
10618 + Use booktabs package for tables (thanks to Jose Luis Duran).
10620 * Updated beamer template. Now references should work properly
10621 (in a slide) when `--biblatex` or `--natbib` is used.
10623 * LaTeX reader:
10625 + Parse contents of curly quotes or matched `"` as quotes.
10626 + Support `\textnormal` as span with class `nodecor`.
10627 This is needed for pandoc-citeproc.
10628 + Improved citation parsing. This fixes a run-time error that occurred
10629 with `\citet{}` (empty list of keys). It also ensures that empty keys
10630 don't get produced.
10632 * MediaWiki reader: Add automatic header identifiers.
10634 * HTML reader:
10636 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
10637 `--parse-raw`.
10638 + Recognize `svg` tags as block level content (thanks to MinRK).
10639 + Parse LaTeX math if appropriate options are set.
10641 * Markdown reader:
10643 + Yaml block must start immediately after `---`. If there's a blank
10644 line after `---`, we interpreted it as a horizontal rule.
10645 + Correctly handle empty bullet list items.
10646 + Stop parsing "list lines" when we hit a block tag.
10647 This fixes exponential slowdown in certain input, e.g.
10648 a series of lists followed by `</div>`.
10650 * Slides: Preserve `<div class="references">` in references slide.
10652 * `Text.Pandoc.Writer.Shared`:
10654 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
10655 attributes, leading to invalid HTML.
10656 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
10657 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
10658 encoded bytestring was returned. We now decode it so it's a proper
10659 image!
10661 * DocBook reader: Handle numerical attributes starting with decimal.
10662 Also use `safeRead` instead of `read`.
10664 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
10665 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
10666 in all the writers. Require `texmath >= 0.6.5.2`.
10668 * `Text.Pandoc.MIME`:
10670 + Add entry for `jfif`.
10671 + In looking up extensions, drop the encoding info.
10672 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
10674 * Templates: Changed how array variables are resolved. Previously if
10675 `foo` is an array (which might be because multiple values were set on
10676 the command line), `$foo$` would resolve to the concatenation of the
10677 elements of foo. This is rarely useful behavior. It has been changed
10678 so that the first value is rendered. Of course, you can still iterate
10679 over the values using `$for(foo)$`. This has the result that you can
10680 override earlier settings using `-V` by putting new values later on the
10681 command line, which is useful for many purposes.
10683 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
10685 * Allow "epub2" as synonym for "epub", "html4" for "html".
10687 * Don't look for slidy files in data files with `--self-contained`.
10689 * Allow `https:` command line arguments to be downloaded.
10691 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
10693pandoc (1.12.1)
10695 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
10696 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
10697 "c": "foo"}`. This new format is easier to work with outside of Haskell.
10698 Incidentally, "t" stands for "tag", "c" for "contents".
10700 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
10701 when converting to markdown (#1027).
10703 * LaTeX reader:
10705 + Ensure that preamble doesn't contribute to the text of
10706 the document.
10707 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
10708 properly, among others.
10709 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
10710 bibtex titles, since we need to know what was protected from
10711 titlecase conversions.
10713 * LaTeX writer:
10715 + Specially escape non-ascii characters in labels.
10716 Otherwise we can get compile errors and other bugs when
10717 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
10718 + Add link anchors for code blocks with identifiers (#1025).
10720 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
10721 It allows fragments identifiers.
10723 * Slide formats:
10725 + A Div element with class "notes" is treated as speaker
10726 notes. Currently beamer goes to `\note{}`, revealjs to
10727 `<aside class="notes">`, and the notes are simply suppressed in
10728 other formats (#925).
10729 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
10730 The old version caused a pause to be inserted before the first
10731 material on a slide. This has been fixed.
10732 + Removed data files for s5, slideous, slidy.
10733 Users of s5 and slideous will have to download the needed
10734 files, as has been documented for some time in the README.
10735 By default, slidy code will be sought on the web, as before.
10737 * HTML writer: Insert command to typeset mathjax only in slideous output
10738 (#966, #1012).
10740 * RST writer: Skip spaces after display math. Otherwise we get indentation
10741 problems, and part of the next paragraph may be rendered as part of the
10742 math.
10744 * OpenDocument writer: Fix formatting of strikeout code (#995),
10745 thanks to wilx. don't use `font-face-decls` variable.
10747 * Fixed test suite so it works with cabal sandboxes.
10749pandoc (1.12.0.2)
10751 * Removed `stringable` dependency.
10753pandoc (1.12.0.1)
10755 * Allow `--metadata` to be repeated for the same key to form a list.
10756 This also has the effect that `--bibliography` can be repeated,
10757 as before.
10759 * Handle boolean values in `--metadata`. Note that anything not parseable
10760 as a YAML boolean or string is treated as a literal string.
10761 You can get a string value with "yes", or any of the strings interpretable
10762 as booleans, by quoting it:
10764 -M boolvalue=yes -M stringvalue='"yes"'
10766 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
10767 option used.
10769 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
10770 in which docx files could not be read by some versions of Word
10771 and LibreOffice (#990).
10773 * Fixed a regression involving slide shows with bibliographies.
10774 The Div container around references messed up the procedure for carving
10775 a document into slides. So we now remove the surrounding Div in
10776 `prepSlides`.
10778 * More informative error message when a filter is not found in path.
10780 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
10781 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
10783 * Don't use unicode_collation in building OSX package:
10784 it adds something like 50MB of dependencies to the package.
10786 * Declare alex and happy as build-tools (#986).
10788pandoc (1.12)
10790 [new features]
10792 * Much more flexible metadata, including arbitrary fields and structured
10793 values. Metadata can be specified flexibly in pandoc markdown using
10794 YAML metadata blocks, which may occur anywhere in the document:
10796 ---
10797 title: Here is my title.
10798 abstract: |
10799 This is the abstract.
10801 1. It can contain
10802 2. block content
10803 and *inline markup*
10805 tags: [cat, dog, animal]
10806 ...
10808 Metadata fields automatically populate template variables.
10810 * Added `opml` (OPML) as input and output format. The `_note` attribute,
10811 used in OmniOutliner and supported by multimarkdown, is supported.
10812 We treat the contents as markdown blocks under a section header.
10814 * Added `haddock` (Haddock markup) as input format (David Lazar).
10816 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
10817 (Thanks to Jamie F. Olson for the initial patch.)
10818 Nested vertical stacks are used for hierarchical structure.
10819 Results for more than one level of nesting may be odd.
10821 * Custom writers can now be written in lua.
10823 pandoc -t data/sample.lua
10825 will load the script sample.lua and use it as a custom writer.
10826 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
10827 Note that pandoc embeds a lua interpreter, so lua need not be
10828 installed separately.
10830 * New `--filter/-F` option to make it easier to run "filters"
10831 (Pandoc AST transformations that operate on JSON serializations).
10832 Filters are always passed the name of the output format, so their
10833 behavior can be tailored to it. The repository
10834 <https://github.com/jgm/pandocfilters> contains
10835 a python module for writing pandoc filters in python, with
10836 a number of examples.
10838 * Added `--metadata/-M` option.
10839 This is like `--variable/-V`, but actually adds to metadata, not
10840 just variables.
10842 * Added `--print-default-data-file` option, which allows printing
10843 of any of pandoc's data files. (For example,
10844 `pandoc --print-default-data-file reference.odt` will print
10845 `reference.odt`.)
10847 * Added syntax for "pauses" in slide shows:
10849 This gives
10851 . . .
10853 me pause.
10855 * New markdown extensions:
10857 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
10858 rather than being treated as hard line breaks or spaces. This is useful
10859 for some East Asian languages, where spaces aren't used between words,
10860 but text is separated into lines for readability.
10861 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
10862 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
10863 only. (Default for `markdown_github`.) (#807)
10864 + `lists_without_preceding_blankline`: Allow lists to start without
10865 preceding blank space. (Default for `markdown_github`.) (#972)
10867 [behavior changes]
10869 * `--toc-level` no longer implies `--toc`.
10870 Reason: EPUB users who don't want a visible TOC may still want
10871 to set the TOC level for in the book navigation.
10873 * `--help` now prints in and out formats in alphabetical order, and
10874 says something about PDF output (#720).
10876 * `--self-contained` now returns less verbose output (telling you
10877 which URLs it is fetching, but not giving the full header). In
10878 addition, there are better error messages when fetching a URL fails.
10880 * Citation support is no longer baked in to core pandoc. Users who
10881 need citations will need to install and use a separate filter
10882 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
10883 `csl`, and `citation-abbreviations` from the metadata, though it
10884 may still be specified on the command line as before.
10886 * A `Cite` element is now created in parsing markdown whether or not
10887 there is a matching reference.
10889 * The `pandoc-citeproc` script will put the bibliography at the
10890 end of the document, as before. However, it will be put inside a `Div`
10891 element with class "references", allowing users some control
10892 over the styling of references. A final header, if any, will
10893 be included in the `Div`.
10895 * The markdown writer will not print a bibliography if the
10896 `citations` extension is enabled. (If the citations are formatted
10897 as markdown citations, it is redundant to have a bibliography,
10898 since one will be generated automatically.)
10900 * Previously we used to store the directory of the first input file,
10901 even if it was local, and used this as a base directory for finding
10902 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
10903 users. So we now look for images relative to the current
10904 working directory, even if the first file argument is in another
10905 directory. Note that this change may break some existing workflows.
10906 If you have been assuming that relative links will be interpreted
10907 relative to the directory of the first file argument, you'll need
10908 to make that the current directory before running pandoc. (#942)
10910 * Better error reporting in some readers, due to changes in `readWith`:
10911 the line in which the error occurred is printed, with a caret pointing
10912 to the column.
10914 * All slide formats now support incremental slide view for definition lists.
10916 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
10917 Parse `:<math>...</math>` as display math. These notations are used with
10918 the MathJax MediaWiki extension.
10920 * All writers: template variables are set automatically from metadata
10921 fields. However, variables specified on the command line with
10922 `--variable` will completely shadow metadata fields.
10924 * If `--variable` is used to set many variables with the same name,
10925 a list is created.
10927 * Man writer: The `title`, `section`, `header`, and `footer` can now
10928 all be set individually in metadata. The `description` variable has been
10929 removed. Quotes have been added so that spaces are allowed in the
10930 title. If you have a title that begins
10932 COMMAND(1) footer here | header here
10934 pandoc will still parse it into a title, section, header, and
10935 footer. But you can also specify these elements explicitly (#885).
10937 * Markdown reader
10939 + Added support for YAML metadata blocks, which can come anywhere
10940 in the document (not just at the beginning). A document can contain
10941 multiple YAML metadata blocks.
10942 + HTML span and div tags are parsed as pandoc Span and Div elements.
10944 * Markdown writer
10946 + Allow simple tables to be printed as grid tables,
10947 if other table options are disabled. This means you can do
10948 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
10949 and all tables will render as grid tables.
10950 + Support YAML title block (render fields in alphabetical order
10951 to make output predictable).
10953 [API changes]
10955 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
10956 structured metadata. (Note: existing code that pattern-matches
10957 on `Meta` will have to be revised.) Metadata can now contain
10958 indefinitely many fields, with content that can be a string,
10959 a Boolean, a list of `Inline` elements, a list of `Block`
10960 elements, or a map or list of these.
10962 * A new generic block container (`Div`) has been added to `Block`,
10963 and a generic inline container (`Span`) has been added to `Inline`.
10964 These can take attributes. They will render in HTML, Textile,
10965 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
10966 extension) as HTML `<div>` and `<span>` elements; in other formats
10967 they will simply pass through their contents. But they can be
10968 targeted by scripts.
10970 * `Format` is now a newtype, not an alias for String.
10971 Equality comparisons are case-insensitive.
10973 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
10974 functions that are much faster than the SYB functions from
10975 `Text.Pandoc.Generic`. These functions are now used where possible
10976 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
10977 match the generic traversals `bottomUp` and `queryWith`.)
10979 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
10980 instances for the basic pandoc types. They use GHC generics and
10981 should be faster than the old JSON serialization using
10982 `Data.Aeson.Generic`.
10984 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
10985 This is a souped-up version of `readProcessWithErrorcode` that
10986 uses lazy bytestrings instead of strings and allows setting
10987 environment variables. (Used in `Text.Pandoc.PDF`.)
10989 * New module `Text.Pandoc.Readers.OPML`.
10991 * New module `Text.Pandoc.Writers.OPML`.
10993 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
10994 This is based on Haddock's own lexer/parser.
10996 * New module `Text.Pandoc.Writers.Custom`.
10998 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
10999 Either, for better error handling.
11001 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
11003 * Removed `stripTags` from `Text.Pandoc.XML`.
11005 * `Text.Pandoc.Templates`:
11007 + Simplified `Template` type to a newtype.
11008 + Removed `Empty`.
11009 + Changed type of `renderTemplate`: it now takes a JSON context
11010 and a compiled template.
11011 + Export `compileTemplate`.
11012 + Export `renderTemplate'` that takes a string instead of a compiled
11013 template.
11014 + Export `varListToJSON`.
11016 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
11017 The signature of `makePDF` has changed and now contains
11018 an additional argument for pdf engine options.
11020 * `Text.Pandoc`:
11022 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
11023 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
11024 `Text.Pandoc.JSON` should be used instead. (Compiling against
11025 pandoc-types instead of pandoc will also produce smaller executables.)
11026 * Removed the deprecated `jsonFilter` function.
11027 + Added `readJSON`, `writeJSON` to the API (#817).
11029 * `Text.Pandoc.Options`:
11031 + Added `Ext_lists_without_preceding_blankline`,
11032 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
11033 `Ext_yaml_metadataBlock` to `Extension`.
11034 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
11035 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
11036 first command-line argument is an absolute URL. (So, relative links
11037 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
11038 + All bibliography-related fields have been removed from
11039 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
11040 `readerReferences`, `readerCitationStyle`.
11041 + Removed `writerPdfArgs` from `WriterOptions`. These are now
11042 passed in as a parameter to `makePDF`.
11044 * The `Text.Pandoc.Biblio` module has been removed. Users of the
11045 pandoc library who want citation support will need to use
11046 `Text.CSL.Pandoc` from `pandoc-citeproc`.
11049 [bug fixes]
11051 * In markdown, don't autolink a bare URI that is followed by `</a>`
11052 (#937).
11054 * `Text.Pandoc.Shared`
11056 + `openURL` now follows redirects (#701), properly handles `data:`
11057 URIs, and prints diagnostic output to stderr rather than stdout.
11058 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
11059 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
11060 + Fixed `readDefaultDataFile` so it works on Windows.
11061 + Better error messages for `readDefaultDataFile`. Instead of
11062 listing the last path tried, which can confuse people who are
11063 using `--self-contained`, so now we just list the data file name.
11064 + URL-escape pipe characters. Even though these are legal, `Network.URI`
11065 doesn't regard them as legal in URLs. So we escape them first (#535).
11067 * Mathjax in HTML slide shows: include explicit "Typeset" call.
11068 This seems to be needed for some formats (e.g. slideous) and won't
11069 hurt in others (#966).
11071 * `Text.Pandoc.PDF`
11073 + On Windows, create temdir in working directory, since the system
11074 temp directory path may contain tildes, which can cause
11075 problems in LaTeX (#777).
11076 + Put temporary output directory in `TEXINPUTS` (see #917).
11077 + `makePDF` tries to download images that are not found locally,
11078 if the first argument is a URL (#917).
11079 + If compiling with `pdflatex` yields an encoding error, offer
11080 the suggestion to use `--latex-engine=xelatex`.
11082 * Produce automatic header identifiers in parsing textile, RST,
11083 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
11085 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
11086 before treating as a filename. This fixes `--self-contained` when used
11087 with CSS files that include web fonts using the method described here:
11088 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
11089 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
11091 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
11092 percent-encoding, or a `+` character, as final punctuation.
11094 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
11095 EPS images properly sized on conversion to Word.
11097 * Slidy: Use slidy.js rather than slidy.js.gz.
11098 Reason: some browsers have trouble with the gzipped js file,
11099 at least on the local file system (#795).
11101 * Markdown reader
11103 + Properly handle blank line at beginning of input (#882).
11104 + Fixed bug in unmatched reference links. The input
11105 `[*infile*] [*outfile*]` was getting improperly parsed:
11106 "infile" was emphasized, but "*outfile*" was literal (#883).
11107 + Allow internal `+` in citation identifiers (#856).
11108 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
11109 + Do not generate blank title, author, or date metadata elements.
11110 Leave these out entirely if they aren't present.
11111 + Allow backtick code blocks not to be preceded by blank line (#975).
11113 * Textile reader:
11115 + Correctly handle entities.
11116 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
11117 in code blocks, rather than printing them verbatim. Parse attributes
11118 on `<pre>` tag for code blocks.
11120 * HTML reader: Handle non-simple tables (#893). Column widths are read from
11121 `col` tags if present, otherwise divided equally.
11123 * LaTeX reader
11125 + Support alltt environment (#892).
11126 + Support `\textasciitilde`, `\textasciicircum` (#810).
11127 + Treat `\textsl` as emphasized text reader (#850).
11128 + Skip positional options after `\begin{figure}`.
11129 + Support `\v{}` for hacek (#926).
11130 + Don't add spurious ", " to citation suffixes.
11131 This is added when needed in pandoc-citeproc.
11132 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
11133 + Improved support for accented characters (thanks to Scott Morrison).
11134 + Parse label after section command and set id (#951).
11136 * RST reader:
11138 + Don't insert paragraphs where docutils doesn't.
11139 `rst2html` doesn't add `<p>` tags to list items (even when they are
11140 separated by blank lines) unless there are multiple paragraphs in the
11141 list. This commit changes the RST reader to conform more closely to
11142 what docutils does (#880).
11143 + Improved metadata. Treat initial field list as metadata when
11144 standalone specified. Previously ALL fields "title", "author",
11145 "date" in field lists were treated as metadata, even if not at
11146 the beginning. Use `subtitle` metadata field for subtitle.
11147 + Fixed 'authors' metadata parsing in reST. Semicolons separate
11148 different authors.
11150 * MediaWiki reader
11152 + Allow space before table rows.
11153 + Fixed regression for `<ref>URL</ref>`.
11154 `<` is no longer allowed in URLs, according to the uri parser
11155 in `Text.Pandoc.Parsing`. Added a test case.
11156 + Correctly handle indented preformatted text without preceding
11157 or following blank line.
11158 + Fixed `|` links inside table cells. Improved attribute parsing.
11159 + Skip attributes on table rows. Previously we just crashed if
11160 rows had attributes, now we ignore them.
11161 + Ignore attributes on headers.
11162 + Allow `Image:` for images (#971).
11163 + Parse an image with caption in a paragraph by itself as a figure.
11165 * LaTeX writer
11167 + Don't use ligatures in escaping inline code.
11168 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
11169 wherein notes were numbered incorrectly in tables (#827).
11170 + Always create labels for sections. Previously the labels were only
11171 created when there were links to the section in the document (#871).
11172 + Stop escaping `|` in LaTeX math.
11173 This caused problems with array environments (#891).
11174 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
11175 `\` will cause major problems if unescaped.
11176 + Write id for code block to label attribute in LaTeX when listings
11177 is used (thanks to Florian Eitel).
11178 + Scale LaTeX tables so they don't exceed columnwidth.
11179 + Avoid problem with footnotes in unnumbered headers (#940).
11181 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
11182 to the slide if it is one of the header classes. It is recommended
11183 that your bibliography slide have this attribute:
11185 # References {.allowframebreaks}
11187 This causes multiple slides to be created if necessary, depending
11188 on the length of the bibliography.
11190 * ConTeXt writer: Properly handle tables without captions. The old output
11191 only worked in MkII. This should work in MkIV as well (#837).
11193 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
11195 * HTML writer:
11197 + Fixed `--no-highlight` (Alexander Kondratskiy).
11198 + Don't convert to lowercase in email obfuscation (#839).
11199 + Ensure proper escaping in `<title>` and `<meta>` fields.
11201 * AsciiDoc writer:
11203 + Support `--atx-headers` (Max Rydahl Andersen).
11204 + Don't print empty identifier blocks `([[]])` on headers (Max
11205 Rydahl Andersen).
11207 * ODT writer:
11209 + Fixing wrong numbered-list indentation in open document format
11210 (Alexander Kondratskiy) (#369).
11211 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
11212 + Minor changes for ODF 1.2 conformance (#939). We leave the
11213 nonconforming `contextual-spacing` attribute, which is provided by
11214 LibreOffice itself and seems well supported.
11216 * Docx writer:
11218 + Fixed rendering of display math in lists.
11219 In 1.11 and 1.11.1, display math in lists rendered as a new list
11220 item. Now it always appears centered, just as outside of lists,
11221 and in proper display math style, no matter how far indented the
11222 containing list item is (#784).
11223 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
11224 Previously we used `w:cr` (#873).
11225 + Use Compact style for Plain block elements, to
11226 differentiate between tight and loose lists (#775).
11227 + Ignore most components of `reference.docx`.
11228 We take the `word/styles.xml`, `docProps/app.xml`,
11229 `word/theme/theme1.xml`, and `word/fontTable.xml` from
11230 `reference.docx`, ignoring everything else. This should help
11231 with the corruption problems caused when different versions of
11232 Word resave the reference.docx and reorganize things.
11233 + Made `--no-highlight` work properly.
11235 * EPUB writer
11237 + Don't add `dc:creator` tags if present in EPUB metadata.
11238 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
11239 + Don't put blank title page in reading sequence.
11240 Set `linear="no"` if no title block. Addresses #797.
11241 + Download webtex images and include as data URLs.
11242 This allows you to use `--webtex` in creating EPUBs.
11243 Math with `--webtex` is automatically made self-contained.
11244 + In `data/epub.css`, removed highlighting styles (which
11245 are no longer needed, since styles are added by the HTML
11246 writer according to `--highlighting-style`). Simplified
11247 margin fields.
11248 + If resource not found, skip it, as in Docx writer (#916).
11250 * RTF writer:
11252 + Properly handle characters above the 0000-FFFF range.
11253 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
11254 + Fixed regression with RTF table of contents.
11255 + Only autolink absolute URIs. This fixes a regression, #830.
11257 * Markdown writer:
11259 + Only autolink absolute URIs. This fixes a regression, #830.
11260 + Don't wrap attributes in fenced code blocks.
11261 + Write full metadata in MMD style title blocks.
11262 + Put multiple authors on separate lines in pandoc titleblock.
11263 Also, don't wrap long author entries, as new lines get treated
11264 as new authors.
11266 * `Text.Pandoc.Templates`:
11268 + Fixed bug retrieving default template for markdown variants.
11269 + Templates can now contain "record lookups" in variables;
11270 for example, `author.institution` will retrieve the `institution`
11271 field of the `author` variable.
11272 + More consistent behavior of `$for$`. When `foo` is not a list,
11273 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
11274 So if `foo` resolves to "", no output should be produced.
11275 See pandoc-templates#39.
11277 * Citation processing improvements (now part of pandoc-citeproc):
11279 + Fixed `endWithPunct` The new version correctly sees a sentence
11280 ending in '.)' as ending with punctuation. This fixes a bug which
11281 led such sentences to receive an extra period at the end: '.).'.
11282 Thanks to Steve Petersen for reporting.
11283 + Don't interfere with Notes that aren't citation notes.
11284 This fixes a bug in which notes not generated from citations were
11285 being altered (e.g. first letter capitalized) (#898).
11286 + Only capitalize footnote citations when they have a prefix.
11287 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
11288 inserted before it before passing to citeproc-hs, so that bare numbers
11289 are treated as page numbers by default. A suffix not beginning with
11290 punctuation has a space added at the beginning (rather than a comma and
11291 space, as was done before for not-author-in-text citations).
11292 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
11293 properly, with '23' treated as a locator of type 'page'.
11294 + Many improvements to citation rendering, due to fixes in citeproc-hs
11295 (thanks to Andrea Rossato).
11296 + Warnings are issued for undefined citations, which are rendered
11297 as `???`.
11298 + Fixed hanging behavior when locale files cannot be found.
11300 [template changes]
11302 * DocBook: Use DocBook 4.5 doctype.
11304 * Org: '#+TITLE:' is inserted before the title.
11305 Previously the writer did this.
11307 * LaTeX: Changes to make mathfont work with xelatex.
11308 We need the mathspec library, not just fontspec, for this.
11309 We also need to set options for setmathfont (#734).
11311 * LaTeX: Use `tex-ansi` mapping for `monofont`.
11312 This ensures that straight quotes appear as straight, rather than
11313 being treated as curly. See #889.
11315 * Made `\includegraphics` more flexible in LaTeX template.
11316 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
11318 * LaTeX/Beamer: Added `classoption` variable.
11319 This is intended for class options like `oneside`; it may
11320 be repeated with different options. (Thanks to Oliver Matthews.)
11322 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
11324 * LaTeX: Added `biblio-style` variable (#920).
11326 * DZSlides: title attribute on title section.
11328 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
11330 [under-the-hood improvements]
11332 * Markdown reader:Improved strong/emph parsing, using the strategy of
11333 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
11334 no backtracking, and no keeping track of nesting levels. It will give
11335 different results in some edge cases, but these should not affect normal
11336 uses.
11338 * Added `Text.Pandoc.Compat.Monoid`.
11339 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
11340 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
11342 * Added `Text.Pandoc.Compat.TagSoupEntity`.
11343 This allows pandoc to compile with `tagsoup` 0.13.x.
11344 Thanks to Dirk Ullrich for the patch.
11346 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
11347 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
11348 handle simple math in bibliography fields.)
11350 * Added `Text.Pandoc.Writers.Shared` for shared functions used
11351 only in writers. `metaToJSON` is used in writers to create a
11352 JSON object for use in the templates from the pandoc metadata
11353 and variables. `getField`, `setField`, and `defField` are
11354 for working with JSON template contexts.
11356 * Added `Text.Pandoc.Asciify` utility module.
11357 This exports functions to create ASCII-only versions of identifiers.
11359 * `Text.Pandoc.Parsing`
11361 + Generalized state type on `readWith` (API change).
11362 + Specialize readWith to `String` input. (API change).
11363 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
11364 with `stateMeta` and `stateMeta'`.
11366 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
11367 bytestrings seemed to cause problems using pandoc on 64-bit Windows
11368 7/8 (#874).
11370 * Factored out `registerHeader` from markdown reader, added to
11371 `Text.Pandoc.Parsing`.
11373 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
11374 Reason: < 0.5 does not provide a monoid instance for Attribute,
11375 which is now needed by the HTML writer (#803).
11377 * Added `http-conduit` flag, which allows fetching https resources.
11378 It also brings in a large number of dependencies (`http-conduit`
11379 and its dependencies), which is why for now it is an optional flag
11380 (#820).
11382 * Added CONTRIBUTING.md.
11384 * Improved INSTALL instructions.
11386 * `make-windows-installer.bat`: Removed explicit paths for executables.
11388 * `aeson` is now used instead of `json` for JSON.
11390 * Set default stack size to 16M. This is needed for some large
11391 conversions, esp. if pandoc is compiled with 64-bit ghc.
11393 * Various small documentation improvements.
11394 Thanks to achalddave and drothlis for patches.
11396 * Removed comment that chokes recent versions of CPP (#933).
11398 * Removed support for GHC version < 7.2, since pandoc-types now
11399 requires at least GHC 7.2 for GHC generics.
11402pandoc (1.11.1)
11404 * Markdown reader:
11406 + Fixed regression in which parentheses were lost in link URLs.
11407 Added tests. Closes #786.
11408 + Better handling of unmatched double quotes in `--smart` mode.
11409 These occur frequently in fiction, since it is customary not to
11410 close quotes in dialogue if the speaker does not change between
11411 paragraphs. The unmatched quotes now get turned into literal
11412 left double quotes. (No `Quoted` inline is generated, however.)
11413 Closes #99 (again).
11415 * HTML writer: Fixed numbering mismatch between TOC and sections.
11416 `--number-offset` now affects TOC numbering as well
11417 as section numbering, as it should have all along. Closes #789.
11419 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
11420 as markdown citations, even if `--bibliography` was specified, unless
11421 `citation` extension is disabled. Now, formatted citations are always
11422 printed if `--bibliography` was specified. If you want to reformat
11423 markdown keeping pandoc markdown citations intact, don't use
11424 `--bibliography`. Note that citations parsed from LaTeX documents will
11425 be rendered as pandoc markdown citations when `--bibliography` is not
11426 specified.
11428 * ODT writer: Fixed regression leading to corrupt ODTs.
11429 This was due to a change in the `Show` instance for
11430 `Text.Pandoc.Pretty.Doc`. Closes #780.
11432 * Fixed spacing bugs involving code block attributes in
11433 RST reader and Markdown writer. Closes #763.
11435 * Windows package: Various improvements due to Fyodor Sheremetyev.
11437 + Automatically set installation path (Program Files or Local App Data).
11438 + Set system PATH environment variable when installing for all users.
11439 + Pandoc can installed for all users using the following command.
11440 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
11442 * Bumped QuickCheck version bound.
11444pandoc (1.11)
11446 * Added `--number-offset` option. (See README for description.)
11448 * Added `--default-image-extension` option. (See README for description.)
11450 * `--number-sections` behavior change: headers with class `unnumbered`
11451 will not be numbered.
11453 * `--version` now reports the default data directory.
11455 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
11457 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
11459 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
11460 a field for `Attr` rather than just `String`. (API change.)
11462 * Added `markdown_github` as input format. This was an accidental
11463 omission in 1.10.
11465 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
11466 change.)
11468 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
11470 * Beamer template:
11472 + Fixed captions with longtable. Thanks to Joost Kremers.
11473 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
11475 * LaTeX template:
11477 + Load microtype after fonts. Microtype needs to know
11478 what fonts are being used. Thanks to dfc for the patch.
11479 + Set `secnumdepth` to 5 if `--number-sections` specified.
11480 This yields behavior equivalent to the other writers, numbering
11481 level 4 and 5 headers too. Closes #753.
11483 * HTML reader:
11485 + Handle `<colgroup>` tag.
11486 + Preserve all header attributes.
11488 * LaTeX reader:
11490 + Parse `\hrule` as `HorizontalRule`. Closes #746.
11491 + Parse starred variants of `\section` etc. as headers with
11492 attribute `unnumbered`.
11493 + Read optional attributes in `lstlisting` and `Verbatim` environments.
11494 We convert these to pandoc standard names, e.g. `numberLines`
11495 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
11496 + Handle language attribute for lstlistings.
11497 + Better support for Verbatim and minted environments. Closes #763.
11499 * Markdown reader:
11501 + `-` in an attribute context = `.unnumbered`. The point of this
11502 is to provide a way to specify unnumbered headers in non-English
11503 documents.
11504 + Fixed bug parsing key/value attributes. Parsing failed if you
11505 had an unquoted attribute immediately before the final '}'.
11506 + Make backslash escape work in attributes.
11507 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
11508 pandoc will parse a MMD title block if it sees one, even if
11509 `pandoc_title_blocks` is enabled.
11510 + Refactoring: `litChar` now includes entities, so we don't need
11511 to use `fromEntities` e.g. on titles.
11512 + Allow spaces around borders in pipe tables. Closes #772.
11513 + Allow all punctuation in angle-bracket autolinks. Previously
11514 things like `----` were disallowed, because the uri parser
11515 treated them as trailing punctuation. Closes #768.
11516 + Make `implicit_header_references` work properly when
11517 headers are given explicit identifiers.
11518 + Check for tables before line blocks. Otherwise some pipe
11519 tables get treated as line blocks.
11520 + Allow `&` in emails (for entities).
11521 + Properly handle entities in titles and links. A markdown link
11522 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
11523 Closes #723.
11525 * Textile reader:
11527 + Handle attributes on headers.
11529 * LaTeX reader:
11531 + Add `fig:` as title for images with captions.
11532 This is needed for them to be rendered as figures. Closes #766.
11533 + Never emit an empty paragraph. See #761.
11534 + Handle `\caption` for images in figures. Closes #766.
11535 + Parse `\section*`, etc. as unnumbered sections.
11537 * HTML writer:
11539 + Support header attributes. The attributes go on
11540 the enclosing `section` or `div` tag if `--section-divs` is specified.
11541 + Fixed a regression (only now noticed) in html+lhs output.
11542 Previously the bird tracks were being omitted.
11544 * LaTeX writer:
11546 + Omit lists with no items to avoid LaTeX errors.
11547 + Support line numbering with `--listings`.
11548 If `numberLines` class is present, we add `numbers=left`;
11549 if `startFrom` is present, we add `firstnumber=`. (#763)
11551 * ConTeXt writer:
11553 + Removed `\placecontent`. This produced a duplicate toc,
11554 in conjunction with `\placelist`.
11555 + Use `\title`, `\subject` etc. for headers with
11556 `unnumbered` class.
11558 * Textile writer:
11560 + Support header attributes.
11562 * Markdown writer:
11564 + Use grid tables when needed, and if enabled. Closes #740.
11565 + Render citations as pandoc-markdown citations.
11566 Previously citations were rendered as citeproc-formatted citations
11567 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
11568 unless the `citations` extension is disabled.
11569 If you still want formatted citations in your markdown output,
11570 use `pandoc -t markdown-citations`.
11572 * RST writer:
11574 + Support `:number-lines:` in code blocks.
11576 * Docx writer:
11578 + Better treatment of display math. Display math inside a
11579 paragraph is now put in a separate paragraph, so it will render
11580 properly (centered and without extra blank lines around it).
11581 Partially addresses #742.
11582 + Content types and document rels xml files are now created from
11583 scratch, rather than being taken over from `reference.docx`.
11584 This fixes problems that arise when you edit the `reference.docx`
11585 with Word.
11586 + We also now encode mime types for each individual image rather
11587 than using defaults. This should allow us to handle a wider
11588 range of image types (including PDF). Closes #414.
11589 + Changed style names in `reference docx`.
11590 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
11591 The old names got changed by Word when the `reference.docx` was
11592 edited. Closes #414.
11594 * EPUB writer:
11596 + Fix section numbering. Previously the numbering restarted from 1
11597 in each chapter (with `--number-sections`), though the numbers in
11598 the table of contents were correct.
11599 + Headers with "unnumbered" attribute are not numbered. (Nor do they
11600 cause an increment in running numbering.) Section numbers now work
11601 properly, even when there is material before the first numbered section.
11602 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
11603 but `linear` is set to `no` unless the `--toc` option is specified.
11604 Include `<guide>` element in OPF. This should allow the TOC to
11605 be usable in Kindles when converted with kindlegen. Closes #773.
11607 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
11608 This dramatically reduces the speed penalty that comes from enabling the
11609 `autolink_bare_uris` extension. The penalty is still substantial (in one
11610 test, from 0.33s to 0.44s), but nowhere near what it used to be.
11611 The RST reader is also much faster now, as it autodetects URIs.
11613 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
11614 with class "unnumbered". Unnumbered sections get `[]` for their
11615 section number.
11617 * `Text.Pandoc.Pretty`:
11619 + Fixed `chomp` so it works inside `Prefixed` elements.
11620 + Changed `Show` instance so it is better for debugging.
11622 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
11624 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
11626 * Windows installer improvements:
11628 + The installer is now signed with a certificate (thanks to
11629 Fyodor Sheremetyev).
11630 + WiX is used instead of InnoSetup. The installer is now a
11631 standard msi file.
11632 + The version number is now auto-detected, and need not be
11633 updated separately.
11635 * OSX installer improvements:
11637 + The package and pandoc executable are now signed with a
11638 certificate (thanks to Fyodor Sheremetyev).
11639 + RTF version of license is used.
11640 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
11641 Closes #580.
11643 * Converted COPYING to markdown.
11645 * pandoc.cabal: Require latest versions of highlighting-kate,
11646 texmath, citeproc-hs, zip-archive.
11648pandoc (1.10.1)
11650 * Markdown reader: various optimizations, leading to a
11651 significant performance boost.
11653 * RST reader: Allow anonymous form of inline links:
11654 `` `hello <url>`__ `` Closes #724.
11656 * Mediawiki reader: Don't require newlines after tables.
11657 Thanks to jrunningen for the patch. Closes #733.
11659 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
11660 when output is LaTeX, and applied when it is another format.
11661 Partially addresses #730.
11663 * Markdown and RST readers: Added parser to `block` that skips blank
11664 lines. This fixes a subtle regression involving grid tables with
11665 empty cells. Also added test for grid table with empty cells.
11666 Closes #732.
11668 * RST writer: Use `.. code:: language` for code blocks with language.
11669 Closes #721.
11671 * DocBook writer: Fixed output for hard line breaks, adding a newline
11672 between `<literallayout>` tags.
11674 * Markdown writer: Use an autolink when link text matches url.
11675 Previously we also checked for a null title, but this
11676 test fails for links produced by citeproc-hs in bibliographies.
11677 So, if the link has a title, it will be lost on conversion
11678 to an autolink, but that seems okay.
11680 * Markdown writer: Set title, author, date variables as before.
11681 These are no longer used in the default template, since we use
11682 titleblock, but we set them anyway for those who use custom templates.
11684 * LaTeX writer: Avoid extra space at start/end of table cell.
11685 Thanks to Nick Bart for the suggestion of using @{}.
11687 * `Text.Pandoc.Parsing`:
11689 + More efficient version of `anyLine`.
11690 + Type of `macro` has changed; the parser now returns `Blocks`
11691 instead of `Block`.
11693 * Relaxed old-time version bound, allowing 1.0.*.
11695 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
11696 should create a symlink as described in the README.
11698pandoc (1.10.0.5)
11700 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
11701 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
11702 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
11704 * Markdown reader: Fixed bug with headerless grid tables.
11705 The 1.10 code assumed that each table header cell contains exactly one
11706 block. That failed for headerless tables (0) and also for tables with
11707 multiple blocks in a header cell. The code is fixed and tests provided.
11708 Thanks to Andrew Lee for pointing out the bug.
11710 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
11712 + Tilde code fences can again take a bare language string
11713 (`~~~ haskell`), not just curly-bracketed attributes
11714 (`~~~ {.haskell}`).
11715 + Backtick code blocks can take the curly-bracketed attributes.
11716 + Backtick code blocks don't *require* a language.
11717 + Consolidated code for the two kinds of fenced code blocks.
11719 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
11721 * Markdown writer: Use proportional font for email autolinks with
11722 obfuscation. Closes #714.
11724 * Corrected name of `blank_before_blockquote` in README. Closes #718.
11726 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
11727 The bug prevented an autolink at the end of a string (e.g.
11728 at the end of a line block line) from counting as a link. Closes #711.
11730 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
11731 This should work on Windows, unlike the TH solution with
11732 file-embed.
11734 * Eliminated use of TH in test suite.
11736 * Added `Text.Pandoc.Data` (non-exported) to hold the association
11737 list of embedded data files, if the `embed_data_files` flag is selected.
11738 This isolates the code that needs special treatment with file-embed or
11739 `hsb2hs`.
11741 * Changes to `make-windows-installer.bat`.
11743 + Exit batch file if any of the cabal-dev installs fail.
11744 + There's no longer any need to reinstall `highlighting-kate`.
11745 + Don't start with a `cabal update`; leave that to the user.
11746 + Force reinstall of pandoc.
11748 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
11749 Jens Petersen.
11751pandoc (1.10.0.4)
11753 * Fixed bug with escaped % in LaTeX reader. Closes #710.
11755pandoc (1.10.0.3)
11757 * Added further missing fb2 tests to cabal file.
11759pandoc (1.10.0.2)
11761 * Added fb2 tests to cabal file's extra-source-files.
11763pandoc (1.10.0.1)
11765 * Bump version bounds on test-framework packages.
11767pandoc (1.10)
11769 [new features]
11771 * New input formats: `mediawiki` (MediaWiki markup).
11773 * New output formats: `epub3` (EPUB v3 with MathML),
11774 `fb2` (FictionBook2 ebooks).
11776 * New `--toc-depth` option, specifying how many levels of
11777 headers to include in a table of contents.
11779 * New `--epub-chapter-level` option, specifying the header
11780 level at which to divide EPUBs into separate files.
11781 Note that this normally affects only performance, not the
11782 visual presentation of the EPUB in a reader.
11784 * Removed the `--strict` option. Instead of using `--strict`,
11785 one can now use the format name `markdown_strict` for either input
11786 or output. This gives more fine-grained control that `--strict`
11787 did, allowing one to convert from pandoc's markdown to strict
11788 markdown or vice versa.
11790 * It is now possible to enable or disable specific syntax
11791 extensions by appending them (with `+` or `-`) to the writer
11792 or reader name. For example,
11794 pandoc -f markdown-footnotes+hard_line_breaks
11796 disables footnotes and enables treating newlines as hard
11797 line breaks. The literate Haskell extensions are now implemented
11798 this way as well, using either `+lhs` or `+literate_haskell`.
11799 For a list of extension names, see the README under
11800 "Pandoc's Markdown."
11802 * The following aliases have been introduced for specific
11803 combinations of markdown extensions: `markdown_phpextra`,
11804 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
11805 work just like regular reader and writer names, and can be modified
11806 with extension modifiers as described above. (Note that conversion
11807 from one markdown dialect to another does not work perfectly,
11808 because there are differences in markdown parsers besides
11809 just the extensions, and because pandoc's internal document model is
11810 not rich enough to capture all of the extensions.)
11812 * New `--html-q-tags` option. The previous default was to use `<q>`
11813 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
11814 Moreover, they are not a robust way of typesetting quotes, since
11815 some user agents don't support them, and some CSS resets (e.g.
11816 bootstrap) prevent pandoc's quotes CSS from working properly.
11817 We now just insert literal quote characters by default in both
11818 `html` and `html5` output, but this option is provided for
11819 those who still want `<q>` tags.
11821 * The markdown reader now prints warnings (to stderr) about
11822 duplicate link and note references. Closes #375.
11824 * Markdown syntax extensions:
11826 + Added pipe tables. Thanks to François Gannaz for the initial patch.
11827 These conform to PHP Markdown Extra's pipe table syntax. A subset
11828 of org-mode table syntax is also supported, which means that you can
11829 use org-mode's nice table editor to create tables.
11831 + Added support for RST-style line blocks. These are
11832 useful for verse and addresses.
11834 + Attributes can now be specified for headers, using the same
11835 syntax as in code blocks. (However, currently only the
11836 identifier has any effect in most writers.) For example,
11838 # My header {#foo}
11840 See [the header above](#foo).
11842 + Pandoc will now act as if link references have been defined
11843 for all headers without explicit identifiers.
11844 So, you can do this:
11846 # My header
11848 Link to [My header].
11849 Another link to [it][My header].
11851 Closes #691.
11853 * LaTeX reader:
11855 + Command macros now work everywhere, including non-math.
11856 Environment macros still not supported.
11857 + `\input` now works, as well as `\include`. TEXINPUTS is used.
11858 Pandoc looks recursively into included files for more included files.
11860 [behavior changes]
11862 * The Markdown reader no longer puts the text of autolinks in a
11863 `Code` inline. This means that autolinks will no longer appear
11864 in a monospace font.
11866 * The character `/` can now appear in markdown citation keys.
11868 * HTML blocks in strict_markdown are no longer required to begin
11869 at the left margin. Technically this is required, according to
11870 the markdown syntax document, but `Markdown.pl` and other markdown
11871 processors are more liberal.
11873 * The `-V` option has been changed so that if there are duplicate
11874 variables, those specified later on the command line take precedence.
11876 * Tight lists now work in LaTeX and ConTeXt output.
11878 * The LaTeX writer no longer relien on the `enumerate` package.
11879 Instead, it uses standard LaTeX commands to change the list numbering
11880 style.
11882 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
11883 tables to be split over page boundaries.
11885 * The RST writer now uses a line block to render paragraphs containing
11886 linebreaks (which previously weren't supported at all).
11888 * The markdown writer now applies the `--id-prefix` to footnote IDs.
11889 Closes #614.
11891 * The plain writer no longer uses backslash-escaped line breaks
11892 (which are not very "plain").
11894 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
11895 Read bytestring and use `Text`'s decodeUtf8 instead of using
11896 `System.IO.hGetContents`. This way you get a message saying
11897 "invalid UTF-8 stream" instead of "invalid byte sequence."
11898 You are also told which byte caused the problem.
11900 * Docx, ODT, and EPUB writers now download images specified by a URL
11901 instead of skipping them or raising an error.
11903 * EPUB writer:
11905 + The default CSS now left-aligns headers by default, instead of
11906 centering. This is more consistent with the rest of the writers.
11907 + A proper multi-level table of contents is now used in `toc.ncx`.
11908 There is no longer a subsidiary table of contents at the beginning
11909 of each chapter.
11910 + Code highlighting now works by default.
11911 + Section divs are used by default for better semantic markup.
11912 + The title is used instead of "Title Page" in the table of contents.
11913 Otherwise we have a hard-coded English string, which looks
11914 strange in ebooks written in other languages. Closes #572.
11916 * HTML writer:
11918 + Put mathjax in span with class "math". Closes #562.
11919 + Put citations in a span with class "citation." In HTML5, also include
11920 a `data-cite` attribute with a space-separated list of citation
11921 keys.
11923 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
11924 This treats both `\r\n` and `\n` as `\n` on input, no matter
11925 what platform we're running on.
11927 * Citation processing is now done in the Markdown and LaTeX
11928 readers, not in `pandoc.hs`. This makes it easier for library users
11929 to use citations.
11931 [template changes]
11933 * HTML: Added css to template to preserve spaces in `<code>` tags.
11934 Thanks to Dirk Laurie.
11936 * Beamer: Remove English-centric strings in section pages.
11937 Section pages used to have "Section" and a number as well as the
11938 section title. Now they just have the title. Similarly for part
11939 and subsection. Closes #566.
11941 * LaTeX, ConTeXt: Added papersize variable.
11943 * LaTeX, Beamer templates: Use longtable instead of ctable.
11945 * LaTeX, Beamer templates: Don't require 'float' package for tables.
11946 We don't actually seem to use the '[H]' option.
11948 * LaTeX: Use `upquote` package if it is available. This fixes
11949 straight quotes in verbatim environments.
11951 * Markdown, plain: Fixed titleblock so it is just a single string.
11952 Previously separate title, author, and date variables were used,
11953 but this didn't allow different kinds of title blocks.
11955 * EPUB:
11957 + Rationalized templates. Previously there were three different
11958 templates involved in epub production. There is now just one
11959 template, `default.epub` or `default.epub3`. It can now be
11960 overridden using `--template`, just like other templates.
11961 The titlepage is now folded into the default template.
11962 A `titlepage` variable selects it.
11963 + UTF-8, lang tag, meta tags, title element.
11965 * Added scale-to-width feature to beamer template
11967 [API changes]
11969 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
11970 Previously header identifiers were autogenerated by the writers.
11971 Now they are added in the readers (either automatically or explicitly).
11973 * `Text.Pandoc.Builder`:
11975 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
11976 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
11977 custom Monoid instances for `Many Inline` and `Many Block. This
11978 allows `Many` to be made an instance of `Foldable` and `Traversable`.
11979 + The old `Listable` class has been removed.
11980 + The module now exports `isNull`, `toList`, `fromList`.
11981 + The old `Read` and `Show` instances have been removed; derived
11982 instances are now used.
11983 + Added `headerWith`.
11985 * The readers now take a `ReaderOptions` rather than a `ParserState`
11986 as a parameter. Indeed, not all parsers use the `ParserState` type;
11987 some have a custom state. The motivation for this change was to separate
11988 user-specifiable options from the accounting functions of parser state.
11990 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
11991 formerly in `Text.Pandoc.Shared`, and its associated
11992 data types. It also includes a new type `ReaderOptions`, which
11993 contains many options formerly in `ParserState`, and its associated
11994 data types:
11996 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
11997 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
11998 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
11999 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
12000 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
12001 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
12002 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
12003 + `ParserState.stateIndentedCodeClasses` ->
12004 `ReaderOptions.readerIndentedCodeClasses`.
12005 + Added `ReaderOptions.readerCitationStyle`.
12007 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
12008 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
12009 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
12010 been renamed `writerEpubMetadata` for consistency.
12012 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
12013 longer stylesheet, fonts, reference files as separate parameters.
12015 * Removed `writerLiterateHaskell` from `WriterOptions`, and
12016 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
12017 by an extension (`Ext_literate_haskell`).
12019 * Removed deprecated `writerXeTeX`.
12021 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
12022 Strict is now handled through extensions.
12024 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
12025 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
12026 and `multimarkdownExtensions`, as well as the `Extensions` type.
12028 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
12029 `readMediaWiki`.
12031 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
12032 (thanks to Sergey Astanin).
12034 * `Text.Pandoc`:
12036 + Added `getReader`, `getWriter` to `Text.Pandoc`.
12037 + `writers` is now an association list `(String, Writer)`.
12038 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
12039 an `IOByteStringWriter`. ALL writers are now in the 'writers'
12040 list, including the binary writers and FB2 writer. This allows
12041 code in `pandoc.hs` to be simplified.
12042 + Changed type of `readers`, so all readers are in IO.
12043 Users who want pure readers can still get them form the reader
12044 modules; this just affects the function `getReader` that looks up
12045 a reader based on the format name. The point of this change is to
12046 make it possible to print warnings from the parser.
12048 * `Text.Pandoc.Parsing`:
12050 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
12051 No other module directly imports Parsec. This will make it easier
12052 to change the parsing backend in the future, if we want to.
12053 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
12054 + Export the type synonym `Parser`.
12055 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
12056 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
12057 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
12058 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
12059 + `ParserState` is no longer an instance of `Show`.
12060 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
12061 + Generalized type of `withQuoteContext`.
12062 + Added `guardEnabled`, `guardDisabled`, `getOption`.
12063 + Removed `failIfStrict`.
12064 + `lookupKeySrc` and `fromKey` are no longer exported.
12066 * `Data.Default` instances are now provided for `ReaderOptions`,
12067 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
12068 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
12069 of `defaultWriterOptions` (which is still defined). Closes #546.
12071 * `Text.Pandoc.Shared`:
12073 + Added `safeRead`.
12074 + Renamed `removedLeadingTrailingSpace` to `trim`,
12075 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
12076 + Count `\r` as space in `trim` functions.
12077 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
12078 to `Shared`.
12079 + Removed `failUnlessLHS`.
12080 + Export `compactify'`, formerly in Markdown reader.
12081 + Export `isTightList`.
12082 + Do not export `findDataFile`.
12083 + `readDataFile` now returns a strict ByteString.
12084 + Export `readDataFileUTF8` which returns a String, like the
12085 old `readDataFile`.
12086 + Export `fetchItem` and `openURL`.
12088 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
12089 Removed `readImageSize`.
12091 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
12092 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
12093 `fromStringLazy`.
12095 * `Text.Pandoc.UTF8` is now an exposed module.
12097 * `Text.Pandoc.Biblio`:
12099 + csl parameter now a `String` rather than a `FilePath`.
12100 + Changed type of `processBiblio`. It is no longer in the IO monad.
12101 It now takes a `Maybe Style` argument rather than parameters for CSL
12102 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
12103 the style file and add abbreviations.)
12105 * Markdown reader now exports `readMarkdownWithWarnings`.
12107 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
12108 `rtfEmbedImage`.
12110 [bug fixes]
12112 * Make `--ascii` work properly with `--self-contained`. Closes #568.
12114 * Markdown reader:
12116 + Fixed link parser to avoid exponential slowdowns. Closes #620.
12117 Previously the parser would hang on input like this:
12119 [[[[[[[[[[[[[[[[[[hi
12121 We fixed this by making the link parser parser characters
12122 between balanced brackets (skipping brackets in inline code spans),
12123 then parsing the result as an inline list. One change is that
12125 [hi *there]* bud](/url)
12127 is now no longer parsed as a link. But in this respect pandoc behaved
12128 differently from most other implementations anyway, so that seems okay.
12130 + Look for raw html/latex blocks before tables.
12131 Otherwise the following gets parsed as a table:
12133 \begin{code}
12134 --------------
12135 -- My comment.
12136 \end{code}
12138 Closes #578.
12140 * RST reader:
12142 + Added support for `:target:` on `.. image::` blocks
12143 and substitutions.
12144 + Field list fixes:
12146 - Fixed field lists items with body beginning after a new line
12147 (Denis Laxalde).
12148 - Allow any char but ':' in names of field lists in RST reader
12149 (Denis Laxalde).
12150 - Don't allow line breaks in field names.
12151 - Require whitespace after field list field names.
12152 - Don't create empty definition list for metadata field lists.
12153 Previously a field list consisting only of metadata fields (author,
12154 title, date) would be parsed as an empty DefinitionList, which is
12155 not legal in LaTeX and not needed in any format.
12157 + Don't recognize inline-markup starts inside words.
12158 For example, `2*2 = 4*1` should not contain an emphasized
12159 section. Added test case for "Literal symbols". Closes #569.
12160 + Allow dashes as separator in simple tables. Closes #555.
12161 + Added support for `container`, `compound`, `epigraph`,
12162 `rubric`, `highlights`, `pull-quote`.
12163 + Added support for `.. code::`.
12164 + Made directive labels case-insensitive.
12165 + Removed requirement that directives begin at left margin.
12166 This was (correctly) not in earlier releases; docutils doesn't
12167 make the requirement.
12168 + Added support for `replace::` and `unicode::` substitutions.
12169 + Ignore unknown interpreted roles.
12170 + Renamed image parser to `subst`, since it now handles all
12171 substitution references.
12173 * Textile reader:
12175 + Allow newlines before pipes in table. Closes #654.
12176 + Fixed bug with list items containing line breaks.
12177 Now pandoc correctly handles hard line breaks inside list items.
12178 Previously they broke list parsing.
12179 + Implemented comment blocks.
12180 + Fixed bug affected words ending in hyphen.
12181 + Properly handle links with surrounding brackets.
12182 Square brackets need to be used when the link isn't surrounded by
12183 spaces or punctuation, or when the URL ending may be ambiguous.
12184 Closes #564.
12185 + Removed nullBlock. Better to know about parsing problems than
12186 to skip stuff when we get stuck.
12187 + Allow ID attributes on headers.
12188 + Textile reader: Avoid parsing dashes as strikeout.
12189 Previously the input
12191 text--
12192 text--
12193 text--
12194 text--
12196 would be parsed with strikeouts rather than dashes. This fixes
12197 the problem by requiring that a strikeout delimiting - not be
12198 followed by a -. Closes #631.
12199 + Expanded list of `stringBreakers`.
12200 This fixes a bug on input like "(_hello_)" which should
12201 be a parenthesized emphasized "hello".
12202 The new list is taken from the PHP source of textile 2.4.
12203 + Fixed autolinks. Previously the textile reader and writer
12204 incorrectly implented RST-style autolinks for URLs and email
12205 addresses. This has been fixed. Now an autolink is done this way:
12206 `"$":http://myurl.com`.
12207 + Fixed footnotes bug in textile. This affected notes occurring
12208 before punctuation, e.g. `foo[1].`. Closes #518.
12210 * LaTeX reader:
12212 + Better handling of citation commands.
12213 + Better handling of `\noindent`.
12214 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
12215 Closes #622.
12216 + Made `rawLaTeXInline` try to parse block commands as well. This
12217 is usually what we want, given how `rawLaTeXInline` is used in
12218 the markdown and textile readers. If a block-level LaTeX command
12219 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
12220 we can treat it as raw inline LaTeX.
12221 + Handle \slash command. Closes #605.
12222 + Basic `\enquote` support.
12223 + Fixed parsing of paragraphs beginning with a group. Closes #606.
12224 + Use curly quotes for bare straight quotes.
12225 + Support obeylines environment. Closes #604.
12226 + Guard against "begin", "end" in inlineCommand and
12227 blockCommand.
12228 + Better error messages for environments. Now it should tell you that
12229 it was looking for \end{env}, instead of giving "unknown parse error."
12231 * HTML reader:
12233 + Added HTML 5 tags to list of block-level tags.
12234 + HTML reader: Fixed bug in `htmlBalanced`, which
12235 caused hangs in parsing certain markdown input using
12236 strict mode.
12237 + Parse `<q>` as `Quoted DoubleQuote`.
12238 + Handle nested `<q>` tags properly.
12239 + Modified `htmlTag` for fewer false positives.
12240 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
12241 This makes it more useful in the wikimedia and markdown parsers.
12243 * DocBook reader: Support title in "figure" element. Closes #650.
12245 * MediaWiki writer:
12247 + Remove newline after `<br/>` in translation of `LineBreak`
12248 There's no particular need for a newline (other than making the
12249 generated MediaWiki source look nice to a human), and in fact
12250 sometimes it is incorrect: in particular, inside an enumeration, list
12251 items cannot have embedded newline characters. (Brent Yorgey)
12252 + Use `<code>` not `<tt>` for Code.
12254 * Man writer: Escape `-` as `\-`.
12255 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
12256 signs. That is preferable for use with command-line options. See
12257 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
12258 to Andrea Bolognani for bringing the issue to our attention.
12260 * RST writer:
12262 + Improved line block output. Use nonbreaking spaces for
12263 initial indent (otherwise lost in HTML and LaTeX).
12264 Allow multiple paragraphs in a single line block.
12265 Allow soft breaks w continuations in line blocks.
12266 + Properly handle images with no alt text. Closes #678.
12267 + Fixed bug with links with duplicate text. We now (a) use anonymous
12268 links for links with inline URLs, and (b) use an inline link instead
12269 of a reference link if the reference link would require a label that
12270 has already been used for a different link. Closes #511.
12271 + Fixed hyperlinked images. Closes #611. Use `:target:`
12272 field when you have a simple linked image.
12273 + Don't add `:align: center` to figures.
12275 * Texinfo writer: Fixed internal cross-references.
12276 Now we insert anchors after each header, and use `@ref` instead of `@uref`
12277 for links. Commas are now escaped as `@comma{}` only when needed;
12278 previously all commas were escaped. (This change is needed, in part,
12279 because `@ref` commands must be followed by a real comma or period.) Also
12280 insert a blank line in from of `@verbatim` environments.
12282 * DocBook writer:
12284 + Made --id-prefix work in DocBook as well as HTML.
12285 Closes #607.
12286 + Don't include empty captions in figures. Closes #581.
12288 * LaTeX writer:
12290 + Use `\hspace*` for nonbreaking space after line break,
12291 since `~` spaces after a line break are just ignored.
12292 Closes #687.
12293 + Don't escape `_` in URLs or hyperref identifiers.
12294 + Properly escape strings inside \url{}. Closes #576.
12295 + Use `[fragile]` only for slides containing code rendered
12296 using listings. Closes #649.
12297 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
12298 highlighting-kate's macros, which redefine `|` as a short verbatim
12299 delimiter. Thanks to Björn Peemöller for raising this issue.
12300 + Use minipage rather than parbox for block containers in tables.
12301 This allows verbatim code to be included in grid tables.
12302 Closes #663.
12303 + Prevent paragraphs containing only linebreaks or spaces.
12305 * HTML writer:
12307 + Included `highlighting-css` for code spans, too.
12308 Previously it was only included if used in a code block. Closes #653.
12309 + Improved line breaks with `<dd>` tags. We now put a newline between
12310 `</dd>` and `<dd>` when there are multiple definitions.
12311 + Changed mathjax cdn url so it doesn't use https. (This caused
12312 problems when used with `--self-contained`.) See #609.
12314 * EPUB writer:
12316 + `--number-sections` now works properly.
12317 + Don't strip meta and link elements in epub metadata.
12318 Patch from aberrancy. Closes #589.
12319 + Fixed a couple validation bugs.
12320 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
12321 of chapters in some readers, which apparently sort ch2 after ch10.
12322 Closes #610.
12324 * ODT writer: properly set title property (Arlo O'Keeffe).
12326 * Docx writer:
12328 + Fixed bug with nested lists. Previously a list like
12330 1. one
12331 - a
12332 - b
12333 2. two
12335 would come out with a bullet instead of "2."
12336 Thanks to Russell Allen for reporting the bug.
12337 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
12338 This seems to fix a problem viewing pandoc-generated
12339 docx files in LibreOffice.
12340 + Use integer ids for bookmarks. Closes #626.
12341 + Added nsid to abstractNum elements. This helps when merging
12342 word documents with numbered or bulleted lists. Closes #627.
12343 + Use separate footnotes.xml for notes.
12344 This seems to help LibreOffice convert the file, even though
12345 it was valid docx before. Closes #637.
12346 + Use rIdNN identifiers for r:embed in images.
12347 + Avoid reading image files again when we've already processed them.
12348 + Fixed typo in `referenc.docx` that prevented image captions from
12349 working. Thanks to Huashan Chen.
12351 * `Text.Pandoc.Parsing`:
12353 + Fixed bug in `withRaw`, which didn't correctly handle the case
12354 where nothing is parsed.
12355 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
12356 though it still doesn't implement quoted strings in email addresses.
12357 + Revised URI parser. It now allows many more schemes, allows
12358 uppercase URIs, and better handles trailing punctuation and
12359 trailing slashes in bare URIs. Added many tests.
12360 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
12361 etc. parse properly. Formerly we had some English-centric heuristics,
12362 but they are no longer needed. Closes #698.
12364 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
12365 This fixes bug with Chinese commas in markdown and reST tables, and
12366 a bug that caused combining characters to be dropped.
12368 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
12370 * `Text.Pandoc.Biblio`:
12372 + Run `mvPunc` and `deNote` on metadata too.
12373 This fixed a bug with notes on titles using footnote styles.
12374 + Fixed bug in fetching CSL files from CSL data directory.
12376 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
12377 is provided. It should be the URL up to the path.
12379 * Fixed/simplified diff output for tests.
12380 Biblio: Make sure mvPunc and deNote run on metadata too.
12381 This fixed a bug with notes on titles using footnote styles.
12383 [under the hood improvements]
12385 * We no longer depend on `utf8-string`. Instead we use functions
12386 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
12388 * Use `safeRead` instead of using `reads` directly (various modules).
12390 * "Implicit figures" (images alone in a paragraph) are now handled
12391 differently. The markdown reader gives their titles the prefix `fig:`; the
12392 writers look for this before treating the image as a figure. Though this
12393 is a bit of a hack, it has two advantages: (i) implicit figures can be
12394 limited to the markdown reader, and (ii) they can be deactivated by turning
12395 off the `implicit_figures` extension.
12397 * `catch` from `Control.Exception` is now used instead of the
12398 old Preface `catch`.
12400 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
12401 and `oneOfStrings` (which is now non-backtracking).
12403 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
12404 Now citeproc-hs is fixed upstream, so this is no longer needed.
12405 Closes #531.
12407 * Textile reader: Improved speed of `hyphenedWords`.
12408 This speeds up the textile reader by about a factor of 4.
12410 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
12411 better performance, and automatic normalization.
12413 * Major rewrite of markdown reader:
12415 + Use `Text.Pandoc.Builder` instead of lists. This also
12416 means that everything is normalized automatically.
12417 + Move to a one-pass parsing strategy, returning values in the reader
12418 monad, which are then run (at the end of parsing) against the final
12419 parser state.
12421 * In HTML writer, we now use `toHtml` instead of pre-escaping.
12422 We work around the problem that blaze-html unnecessarily escapes `'`
12423 by pre-escaping just the `'` characters, instead of the whole string.
12424 If blaze-html later stops escaping `'` characters, we can simplify
12425 `strToHtml` to `toHtml`. Closes #629.
12427 * Moved code for embedding images in RTFs from `pandoc.hs` to the
12428 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
12430 * Moved citation processing from `pandoc.hs` into the readers.
12431 This makes things more convenient for library users.
12433 * The man pages are now built by an executable `make-pandoc-man-pages`,
12434 which has its own stanza in the cabal file so that dependencies can be
12435 handled by Cabal. Special treatment in `Setup.hs` ensures that this
12436 executable never gets installed; it is only used to create the man pages.
12438 * The cabal file has been modified so that the pandoc library is used
12439 in building the pandoc executable. (This required moving `pandoc.hs`
12440 from `src` to `.`.) This cuts compile time in half.
12442 * `-O2` is no longer used in building pandoc. The performance improvement
12443 it yields is so slight that it is not worth it. (Measured with
12444 benchmarks on ghc 7.4.)
12446 * The `executable` and `library` flags have been removed.
12448 * `-threaded` has been removed from ghc-options.
12450 * Version bounds of dependencies have been raised, and the
12451 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
12452 GHC 7.6.
12454 * We now require base >= 4.2.
12456 * Integrated the benchmark program into cabal. One can now do:
12458 cabal configure --enable-benchmarks && cabal build
12459 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
12461 The benchmark now uses README + testsuite, so benchmark results
12462 from older versions aren't comparable.
12464 * Integrated test suite with cabal.
12465 To run tests, configure with `--enable-tests`, then `cabal test`.
12466 You can specify particular tests using `--test-options='-t markdown'`.
12467 No output is shown unless tests fail. The Haskell test modules
12468 have been moved from `src/` to `tests/`.
12470 * Moved all data files and templates to the `data/` subdirectory.
12472 * Added an `embed_data_files` cabal flag. This causes all
12473 data files to be embedded in the binary, so that the binary
12474 is self-sufficient and can be relocated anywhere, copied on
12475 a USB key, etc. The Windows installer now uses this.
12476 (Since we no longer have the option to build the executable
12477 without the library, this is the only way to get a relocatable
12478 binary on Windows.)
12480 * Removed pcre3.dll from windows package.
12481 It isn't needed unless highlighting-kate is compilled with the
12482 `pcre-light` flag. By default, regex-prce-builtin is used.
12485pandoc (1.9.4.2)
12487 * Don't encode/decode file paths if base >= 4.4.
12488 Prior to base 4.4, filepaths and command line arguments were treated
12489 as unencoded lists of bytes, not unicode strings, so we had to work
12490 around that by encoding and decoding them. This commit adds CPP
12491 checks for the base version that intelligibly enable encoding/decoding
12492 when needed. Fixes a bug with multilingual filenames when pandoc was
12493 compiled with ghc 7.4 (#540).
12495 * Don't generate an empty H1 after hrule slide breaks.
12496 We now use a slide-level header with contents `[Str "\0"]` to mark
12497 an hrule break. This avoids creation of an empty H1 in these
12498 contexts. Closes #484.
12500 * Docbook reader: Added support for "bold" emphasis. Thanks to Mauro Bieg.
12502 * In make_osx_package.sh, ensure citeproc-hs is built with the
12503 embed_data_files flag.
12505 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
12507 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
12508 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
12510 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
12511 Closes #535.
12513 * Added webm to mime types. Closes #543.
12515 * Added some missing exports and tests to the cabal file
12516 (Alexander V Vershilov).
12518 * Compile with `-rtsopts` and `-threaded` by default.
12520pandoc (1.9.4.1)
12522 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
12524 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
12525 variables. Make TOC links black.
12527 * LaTeX template improvements.
12529 + Don't print date unless one is given explicitly in the document.
12530 + Simplified templates.
12531 + Use fontenc [T1] by default, and lmodern.
12532 + Use microtype if available.
12534 * Biblio:
12536 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
12537 Motivation: `@item1 [50]` should be as close as possible to
12538 `[@item1, 50]`.
12539 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
12540 beginning with a citation to be empty. Closes #531.
12542 * Fixed documentation on mixed lists. Closes #533.
12544pandoc (1.9.4)
12546 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
12547 footnotes and captions. We now handle note citations by inserting
12548 footnotes during initial citation processing, and doing a separate
12549 pass later to remove notes inside notes.
12551 * Added 'zenburn' highlight style from highlighting-kate.
12553 * Added Slideous writer. Slideous is an HTML + javascript slide show
12554 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
12556 * LaTeX writer:
12558 + Ensure we don't have extra blank lines at ends of cells.
12559 This can cause LaTeX errors, as they are interpreted as new paragraphs.
12560 + More consistent interblock spacing.
12561 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
12562 code in LaTeX. Closes #527.
12563 + Ensure that a Verbatim at the end of a footnote is followed by
12564 a newline. (Fixes a regression in the previous version.)
12565 + In default template, use black for internal links and TOC.
12566 Added commented-out code to use footnotes for links, as would
12567 be suitable in print output.
12569 * Beamer writer: When `--incremental` is used, lists inside
12570 a block quote should appear all at once. (This makes Beamer
12571 output consistent with the HTML slide show formats.)
12573 * ConTeXt writer:
12575 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
12576 to avoid gobbling spaces after the `%` sign.
12577 + Ensure space after `\stopformula`.
12579 * Markdown writer:
12581 + Use `:` form instead of `~` in definition lists, for better
12582 compatibility with other markdown implementations.
12583 + Don't wrap the term, because it breaks definition lists.
12584 + Use a nonzero space to prevent false recognition
12585 of list marker in ordered lists. Closes #516.
12587 * Org writer: Add space before language name. Closes #523.
12589 * Docx writer: Simplified bullet characters so they work properly
12590 with Word 2007. Closes #520.
12592 * LaTeX reader: Support `\centerline`.
12594 * RST reader: handle figures. Closes #522.
12596 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
12597 (Paul Rivier)
12599pandoc (1.9.3)
12601 * Fixed bug in `fromEntities`. The previous version would turn
12602 `hi & low you know;` into `hi &`.
12604 * HTML reader:
12606 + Don't skip nonbreaking spaces.
12607 Previously a paragraph containing just `&nbsp;` would be rendered
12608 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
12609 + Support `<col>` and `<caption>` in tables. Closes #486.
12611 * Markdown reader:
12613 + Don't recognize references inside delimited code blocks.
12614 + Allow list items to begin with lists.
12616 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
12618 * LaTeX reader:
12620 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
12621 + Control sequences can't be followed by a letter.
12622 This fixes a bug where `\begingroup` was parsed as `\begin`
12623 followed by `group`.
12624 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
12625 + Make `\label` and `\ref` sensitive to `--parse-raw`.
12626 If `--parse-raw` is selected, these will be parsed as raw latex
12627 inlines, rather than bracketed text.
12628 + Don't crash on unknown block commands (like `\vspace{10pt}`)
12629 inside `\author`; just skip them. Closes #505.
12631 * Textile reader:
12633 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
12634 + Added support for LaTeX blocks and inlines (Paul Rivier).
12635 + Better conformance to RedCloth inline parsing (Paul Rivier).
12636 + Parse '+text+' as emphasized (should be underlined, but this
12637 is better than leaving literal plus characters in the output.
12639 * Docx writer: Fixed multi-paragraph list items. Previously they each
12640 got a list marker. Closes #457.
12642 * LaTeX writer:
12644 + Added `--no-tex-ligatures` option to avoid replacing
12645 quotation marks and dashes with TeX ligatures.
12646 + Use `fixltx2e` package to provide '\textsubscript'.
12647 + Improve spacing around LaTeX block environments:
12648 quote, verbatim, itemize, description, enumerate.
12649 Closes #502.
12650 + Use blue instead of pink for URL links in latex/pdf output.
12652 * ConTeXt writer: Fixed escaping of `%`.
12653 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
12654 Inside URLs, `%` needs to be escaped as `\%`
12655 Thanks to jmarca and adityam for the fix. Closes #492.
12657 * Texinfo writer: Escape special characters in node titles.
12658 This fixes a problem pointed out by Joost Kremers. Pandoc used
12659 to escape an '@' in a chapter title, but not in the corresponding
12660 node title, leading to invalid texinfo.
12662 * Fixed document encoding in texinfo template.
12663 Resolves Debian Bug #667816.
12665 * Markdown writer:
12667 + Don't force delimited code blocks to be flush left.
12668 Fixes bug with delimited code blocks inside lists etc.
12669 + Escape `<` and `$`.
12671 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
12672 Previously we used `\href{\#ident}{text}`, which didn't work on
12673 all systems. Thanks to Dirk Laurie.
12675 * RST writer: Don't wrap link references. Closes #487.
12677 * Updated to use latest versions of blaze-html, mtl.
12680pandoc (1.9.2)
12682 * LaTeX reader:
12684 + Made `lstlisting` work as a proper verbatim environment.
12685 + Fixed bug parsing LaTeX tables with one column.
12687 * LaTeX writer:
12689 + Use `{}` around `ctable` caption, so that formatting can be used.
12690 + Don't require eurosym package unless document has a €.
12692 * LaTeX template: Added variables for `geometry`, `romanfont`,
12693 `sansfont`, `mathfont`, `mainfont` so users can more easily
12694 customize fonts.
12696 * PDF writer:
12698 + Run latex engine at least two times, to ensure
12699 that PDFs will have hyperlinked bookmarks.
12700 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
12702 * Texinfo writer: retain directories in image paths. (Peter Wang)
12704 * RST writer: Better handling of inline formatting, in accord
12705 with docutils' "inline markup recognition rules" (though we don't
12706 implement the unicode rules fully). Now `hi*there*hi` gets
12707 rendered properly as `hi\ *there*\ hi`, and unnecessary
12708 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
12710 * RST reader:
12712 + Parse `\ ` as null, not escaped space.
12713 + Allow `` :math:`...` `` even when not followed by blank
12714 or `\`. This does not implement the complex rule docutils follows,
12715 but it should be good enough for most purposes.
12716 + Add support for the rST default-role directive. (Greg Maslov)
12718 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
12719 (Greg Maslov)
12721 * Markdown reader: Properly handle citations nested in other inline
12722 elements.
12724 * Markdown writer: don't replace empty alt in image with "image".
12726 * DZSlides: Updated template.html and styles in default template.
12727 Removed bizarre CSS for `q` in dzslides template.
12729 * Avoid repeated `id` attribute in section and header in HTML slides.
12731 * README improvements: new instructions on internal links,
12732 removed misleading note on reST math.
12734 * Build system:
12736 + Fixed Windows installer so that dzslides works.
12737 + Removed stripansi.sh.
12738 + Added .travis.yml for Travis continuous integration support..
12739 + Fixed upper bound for zlib (Sergei Trofimovich).
12740 + Fixed upper bound for test-framework.
12741 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
12743pandoc (1.9.1.2)
12745 * Added `beamer+lhs` as output format.
12747 * Don't escape `<` in `<style>` tags with `--self-contained`.
12748 This fixes a bug which prevented highlighting from working
12749 when using `--self-contained`.
12751 * PDF: run latex engine three times if `--toc` specified.
12752 This fixes page numbers in the table of contents.
12754 * Docx writer: Added TableNormal style to tables.
12756 * LaTeX math environment fixes. `aligned` is now used instead of
12757 the nonexistent `aligned*`. `multline` instead of the nonexistent
12758 `multiline`.
12760 * LaTeX writer: Use `\textasciitilde` for literal `~`.
12762 * HTML writer: Don't escape contents of EQ tags with --gladtex.
12763 This fixes a regression from 1.8.
12765 * Use `<q>` tags for Quoted items for HTML5 output.
12766 The quote style can be changed by modifying the template
12767 or including a css file. A default quote style is included.
12769 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
12770 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
12772 * Updated LaTeX template for better language support.
12773 Use `polyglossia` instead of `babel` with xetex.
12774 Set `lang` as documentclass option.
12775 `\setmainlanguage` will use the last of a comma-separated
12776 list of languages. Thanks to François Gannaz.
12778 * Fixed default LaTeX template so `\euro` and `€` work. The
12779 `eurosym` package is needed if you are using pdflatex.
12781 * Fixed escaping of period in man writer (thanks to Michael Thompson).
12783 * Fixed list label positions in beamer.
12785 * Set `mainlang` variable in context writer.
12786 This parallels behavior of latex writer. `mainlang` is the last
12787 of a comma-separated list of languages in lang.
12789 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
12791 * Changed `-V` so that you can specify a key without a value.
12792 Such keys get the value `true`.
12794 * Fixed permissions on installed man pages - thanks Magnus Therning.
12796 * Windows installer: require XP or higher. The installer is
12797 now compiled on a Windows 7 machine, which fixes a problem
12798 using citation functions on Windows 7.
12800 * OSX package: Check for 64-bit Intel CPU before installing.
12802pandoc (1.9.1.1)
12804 * Better handling of raw latex environments in markdown. Now
12806 \begin{equation}
12807 a_1
12808 \end{equation}
12810 turns into a raw latex block as expected.
12812 * Improvements to LaTeX reader:
12814 + Skip options after block commands.
12815 + Correctly handle `{\\}` in braced.
12816 + Added a needed 'try'.
12817 + Citations: add `, ` to suffix if it doesn't start with space or
12818 punctuation. Otherwise we get no space between the year and the
12819 suffix in author-date styles.
12821 * Added two needed data files for S5. This fixes a problem with
12822 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
12823 which was no longer being used.
12825 * Fixed some minor problems in `reference.docx`:
12826 name on "Date" style, `xCs` instead of `xIs`.
12828 * Fixed a problem creating docx files using a reference docx
12829 modified using Word. The problem seems to be that Word
12830 modifies `_rels/.rels`, changing the Type of the Relationship to
12831 `docProps/core.xml`. Pandoc now changes this back to the correct
12832 value if it has been altered, fixing the problem.
12834 * Fixed html5 template so it works properly with highlighting.
12836pandoc (1.9.1)
12838 * LaTeX reader:
12840 + Fixed regression in 1.9; properly handle escaped $ in latex math.
12841 + Put LaTeX verse environments in blockquotes.
12843 * Markdown reader:
12845 + Limit nesting of strong/emph. This avoids exponential lookahead
12846 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
12847 + Improved attributes syntax (inn code blocks/spans):
12848 (1) Attributes can contain line breaks. (2) Values in key-value
12849 attributes can be surrounded by either double or single quotes, or
12850 left unquoted if they contain no spaces.
12852 * Don't wrap headers in markdown or RST writers.
12854 * Added `stateMaxNestingLevel` to `ParserState`.
12855 We set this to 6, so you can still have `Emph` inside `Emph`,
12856 just not indefinitely.
12858 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
12860 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
12861 is present.
12863 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
12865pandoc (1.9.0.5)
12867 * Changed cabal file so that build-depends for the test program
12868 are not required unless the tests flag is used.
12870 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
12871 form ligatures (dashes) in code spans.
12873pandoc (1.9.0.4)
12875 * Raised version bound on test-framework to avoid problems
12876 compiling tests on GHC 7.4.1.
12878 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
12879 so citations don't just disappear unless you process with
12880 citeproc. Ignore `\bibliographystyle`, `\nocite`.
12882 * Simplified tex2pdf; it will always run latex twice to
12883 resolve table of contents and hyperrefs.
12885pandoc (1.9.0.3)
12887 * Require Cabal >= 1.10.
12888 * Tweaked cabal file to meet Cabal 1.10 requirements.
12890pandoc (1.9.0.2)
12892 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
12893 ghc 6.12.
12895pandoc (1.9)
12897 [new features]
12899 * Added a Microsoft Word `docx` writer. The writer includes support
12900 for highlighted code and for math (which is converted from TeX to OMML,
12901 Office's native math markup language, using texmath's new OMML module).
12902 A new option `--reference-docx` allows the user to customize the
12903 styles.
12905 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
12907 * Better support for slide shows:
12909 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
12910 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
12912 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
12913 slide presentations.
12915 + New, flexible rules for dividing documents into sections and slides
12916 (see the "Structuring the slide show" in the User's Guide). These
12917 are backward-compatible with the old rules, but they allow slide
12918 shows to be organized into sections and subsections containing
12919 multiple slides.
12921 + A new `--slide-level` option allows users to override defaults
12922 and select a slide level below the first header level with content.
12924 * A new `--self-contained` option produces HTML output that does not
12925 depend on an internet connection or the presence of any external
12926 files. Linked images, CSS, and javascript is downloaded (or fetched
12927 locally) and encoded in `data:` URIs. This is useful for making portable
12928 `HTML slide shows. The --offline` option has been deprecated and is now
12929 `treated as a synonym or --self-contained`.
12931 * Support for PDF output:
12933 + Removed the old `markdown2pdf`.
12934 + `pandoc` can now create PDFs (assuming you have latex and a set of
12935 appropriate packages installed): just specify an output file with the
12936 `.pdf` extension.
12937 + A new option `--latex-engine` allows you to specify `pdflatex`,
12938 `xelatex`, or `lualatex` as the processor.
12940 * Highlighting changes:
12942 + Syntax highlighting is now a standard feature; the `highlighting`
12943 flag is no longer needed when compiling.
12944 + A new `--no-highlight` option allows highlighting to be disabled.
12945 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
12946 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
12947 + A new `--highlight-style` option selects between various highlighting
12948 color themes.
12950 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
12952 * LaTeX `\include` and `\usepackage` commands are now processed,
12953 provided the files are in the working directory.
12955 * EPUB improvements:
12957 + Internal and external links now work in EPUB.
12958 + Raw HTML is allowed.
12959 + New `--epub-embed-font` option.
12960 + Customizable templates for EPUB pages offer more control over
12961 formatting: `epub-page.html`, `epub-coverimage.html`,
12962 `epub-titlepage.html`.
12964 * `--mathml` now works with DocBook.
12966 * Added support for math in RST reader and writer. Inline math uses the
12967 `` :math:`...` `` construct. Display math uses
12969 .. math:: ...
12971 or if the math is multiline,
12973 .. math::
12975 ...
12977 These constructions are now supported now by `rst2latex.py`.
12979 * GitHub syntax for fenced code blocks is supported in pandoc's
12980 markdown. You can now write
12982 ```ruby
12983 x = 2
12984 ```
12986 instead of
12988 ~~~ {.ruby}
12989 x = 2
12990 ~~~~
12992 * Easier scripting: a new `toJsonFilter` function makes it easier to
12993 write Haskell scripts to manipulate the Pandoc AST.
12995 [behavior changes]
12997 * Fixed parsing of consecutive lists in markdown.
12998 Pandoc previously behaved like Markdown.pl for consecutive
12999 lists of different styles. Thus, the following would be parsed
13000 as a single ordered list, rather than an ordered list followed
13001 by an unordered list:
13003 1. one
13004 2. two
13006 - one
13007 - two
13009 This change makes pandoc behave more sensibly, parsing this as
13010 two lists. Any change in list type (ordered/unordered) or in
13011 list number style will trigger a new list. Thus, the following
13012 will also be parsed as two lists:
13014 1. one
13015 2. two
13017 a. one
13018 b. two
13020 Since we regard this as a bug in Markdown.pl, and not something
13021 anyone would ever rely on, we do not preserve the old behavior
13022 even when `--strict` is selected.
13024 * Dashes work differently with `--smart`: `---` is always em-dash,
13025 and `--` is always en-dash. Pandoc no longer tries to guess when
13026 `-` should be en-dash. *Note:* This may change how existing documents
13027 look when processed with pandoc. A new option, `--old-dashes`,
13028 is provided for legacy documents.
13030 * The markdown writer now uses setext headers for levels 1-2.
13031 The old behavior (ATX headers for all levels) can be restored
13032 using the new `--atx-headers` option.
13034 * Links are now allowed in markdown image captions. They are also
13035 allowed in links, but will appear there as regular text. So,
13037 [link with [link](/url)](/url)
13039 will turn into
13041 <p><a href="/url">link with link</a></p>
13043 * Improved handling of citations using `citeproc-hs-0.3.4`.
13044 Added `--citation-abbreviations` option.
13046 * Citation keys can no longer end with a punctuation character.
13047 This means that `@item1.` will be parsed as a citation with key
13048 'item1', followed by a period, instead of a citation with key
13049 'item1.', as was the case previously.
13051 * In HTML output, citations are now put in a span with class `citation`.
13053 * The markdown reader now recognizes DocBook block and inline tags.
13054 It was always possible to include raw DocBook tags in a markdown
13055 document, but now pandoc will be able to distinguish block from
13056 inline tags and behave accordingly. Thus, for example,
13058 <sidebar>
13059 hello
13060 </sidebar>
13062 will not be wrapped in `<para>` tags.
13064 * The LaTeX parser has been completely rewritten; it is now much more
13065 accurate, robust, and extensible. However, there are two important
13066 changes in how it treats unknown LaTeX. (1) Previously, unknown
13067 environments became BlockQuote elements; now, they are treated
13068 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
13069 same as `xyz`. (2) Previously, arguments of unknown commands
13070 were passed through with their braces; now the braces are stripped
13071 off.
13073 * `--smart` is no longer selected automatically with `man` output.
13075 * The deprecated `--xetex` option has been removed.
13077 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
13078 instead. `html5` and `html5+lhs` are now separate output formats.
13080 * Single quotes are no longer escaped in HTML output. They do not
13081 need to be escaped outside of attributes.
13083 * Pandoc will no longer transform leading newlines in code
13084 blocks to `<br/>` tags.
13086 * The ODT writer now sizes images appropriately, using the image
13087 size and DPI information embedded in the image.
13089 * `--standalone` is once again implicitly for a non-text output format
13090 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
13091 and get a standalone ODT file.
13093 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
13094 `<section>`.
13096 * The HTML writer now uses `<del>` for strikeout.
13098 * In HTML output with `--section-divs`, the classes `section` and
13099 `level[1,2,..6]` are put on the `div` tags so they can be styled.
13100 In HTML 5 output with `--section-divs`, the classes
13101 `level[1,2,...6]` are put on `section` tags.
13103 * EPUB writer changes:
13105 + The `lang` variable now sets the language
13106 in the metadata (if it is not set, we default to the locale).
13107 + EPUB: UTF-8 is used rather than decimal entities.
13109 * Added `titleslide` class to title slide in S5 template.
13111 * In HTML, EPUB, and docx metadata, the date is normalized into
13112 YYYY-MM-DD format if possible. (This is required for validation.)
13114 * Attributes in highlighted code blocks are now preserved in HTML.
13115 The container element will have the classes, id, and key-value attributes
13116 you specified in the delimited code block. Previously these were stripped
13117 off.
13119 * The reference backlink in the HTML writer no longer has a special
13120 `footnoteBacklink` class.
13122 * The HTML template has been split into `html` and `html5` templates.
13124 * Author and date are treated more consistently in HTML templates.
13125 Authors are now `<h2>`, date `<h3>`.
13127 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
13129 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
13131 [bug fixes]
13133 * Better support for combining characters and East Asian wide characters
13134 in markdown and reST.
13136 * Better handling of single quotes with `--smart`.
13137 Previously `D'oh l'*aide*` would be parsed with left and right single
13138 quotes instead of apostrophes. This kind of error is now fixed.
13140 * Highlighting: Use `reads` instead of `read` for better error handling.
13141 Fixes crash on `startNum="abc"`.
13143 * Added blank comment after directives in rst template.
13145 * Unescape entities in citation `refId`. The `refId`s coming
13146 from citeproc contain XML numeric entities, and these don't match with the
13147 citation keys parsed by pandoc. Solution is to unescape them.
13149 * HTML reader: Fixed bug parsing tables with both thead and tbody.
13151 * Markdown reader:
13153 + Better handling of escapes in link URLs and titles.
13154 + Fixed backslash escapes in reference links.
13155 + Fixed bug in table/hrule parsing, by checking that the top
13156 line of a table is not followed by a blank line. This bug caused
13157 slowdowns on some files with hrules and tables, as pandoc tried to
13158 interpret the hrules as the tops of multiline tables.
13159 + Fixed bug in code block attribute parser. Previously the ID attribute
13160 got lost if it didn't come first. Now attributes can come in any order.
13162 * RST reader: allow footnotes followed by newline without space characters.
13164 * LaTeX reader:
13166 + Ignore empty groups {}, { }.
13167 + LaTeX reader: Handle \@.
13168 + LaTeX reader: Don't crash on commands like `\itemsep`.
13169 + LaTeX reader: Better handling of letter environments.
13171 * RST writer: Fixed bug involving empty table cells. isSimple was being
13172 calculated in a way that assumed there were no non-empty cells.
13174 * ConTeXt writer:
13176 + Made `--toc` work even without `--number-sections`.
13177 + Escape # in link URLs.
13178 + Use buffering for footnotes containing code blocks.
13179 + Changed 'descr' to 'description', fixed alignment.
13181 * LaTeX writer:
13183 + Escape euro character.
13184 + Don't escape ~ inside href{...}.
13185 + Escape # in href URLs.
13186 + Improved detection of book classes. We now check the
13187 `documentclass` variable, and if that is not set, we look through
13188 the template itself. Also, we have added the KOMA classes scrreprt
13189 and scrbook. You can now make a book using
13190 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
13191 + LHS files now set the "listings" variable, so that the definition
13192 of the `code` environment will be included in the template.
13193 + Links are colored blue by default (this can be changed by
13194 modifying `hyperref` settings in the template).
13195 + Added `lang` variable to LaTeX template.
13197 * HTML writer:
13199 + Fixed bug in HTML template with html5 and mathml.
13200 + Don't use self-closing img, br, hr tags for HTML5.
13201 + Use `<section>` for footnotes if HTML5.
13202 + Update HTML templates to use Content-Style-Type meta tag.
13203 + Use separate variables for meta-date, meta-author.
13204 This makes footnotes work in author and date fields.
13205 + Use 'vertical-align:middle' in WebTeX math for better alignment.
13207 * S5/slidy writer: Make footnotes appear on separate slide at end.
13209 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
13210 META-INF/manifest.xml for ODT files will have everything it needs, so
13211 that ODT files modified by LibreOffice can be used as `--reference-odt`.
13213 * `Text.Pandoc.Templates`: Return empty string for json template.
13215 * `Text.Pandoc.Biblio`:
13217 + Expand citations recursively inside nested inlines.
13218 + Treat `\160` as space when parsing locator and suffix.
13219 This fixes a bug with "p. 33" when `--smart` is used. Previously
13220 the whole "p. 33" would be included in the suffix, with no locator.
13221 + Put whole author-in-text citation in a Cite. Previously just the
13222 date and other info went in the Cite.
13223 + Don't add comma+space to prefix if it ends in punctuation.
13225 * Updated chicago-author-date.csl. The old version did not work
13226 properly for edited volumes with no author.
13228 * EPUB writer:
13230 + Add date to EPUB titlepage and metadata.
13231 + Added TOC identifier in EPUB page template.
13232 + Don't generate superfluous file `cover-image.jpg`.
13234 [under the hood improvements]
13236 * Modified `make_osx_package.sh` to use cabal-dev.
13237 Items are no longer installed as root.
13238 Man pages are zipped and given proper permissions.
13240 * Modified windows installer generator to use cabal-dev.
13242 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
13243 Setup.hs we now invoke 'runghc' in a way that points it to the correct
13244 package databases, instead of always falling back to the default user
13245 package db.
13247 * Updated to work with GHC 7.4.1.
13249 * Removed dependency on old-time.
13251 * Removed dependency on dlist.
13253 * New slidy directory for "self-contained."
13255 * TeXMath writer: Use unicode thin spaces for thin spaces.
13257 * Markdown citations: don't strip off initial space in locator.
13259 [API changes]
13261 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
13262 from the native `Inline` type in pandoc-types. Now we use `Str`
13263 elements with unicode.
13265 * Improvements to `Text.Pandoc.Builder`:
13267 + `Inlines` and `Blocks` are now newtypes (not synonyms for
13268 sequences).
13269 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
13270 and a new `Listable` class, which allows these to be manipulated
13271 to some extent like lists. Monoid append includes automatic
13272 normalization.
13273 + `+++` has been replaced by `<>` (mappend).
13275 * Use blaze-html instead of xhtml for HTML generation.
13276 This changes the type of `writeHtml`.
13278 * `Text.Pandoc.Shared`:
13280 + Added `warn` and `err`.
13281 + Removed `unescapeURI`, modified `escapeURI`.
13282 (See under [behavior changes], above.)
13284 * Changes in URI escaping: Previously the readers escaped URIs by
13285 converting unicode characters to octets and then percent encoding.
13286 Now unicode characters are left as they are, and `escapeURI` only
13287 percent-encodes space characters. This gives more readable
13288 URIs, and works well with modern user agents. URIs are no longer unescaped
13289 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
13291 * New module `Text.Pandoc.SelfContained`.
13293 * New module `Text.Pandoc.Docx`.
13295 * New module `Text.Pandoc.PDF`.
13297 * Added `writerBeamer` to `WriterOptions`.
13299 * Added `normalizeDate` to `Text.Pandoc.Shared`.
13301 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
13302 This is like `splitWithIndices`, but it is sensitive to distinctions
13303 between wide, combining, and regular characters.
13305 * `Text.Pandoc.Pretty`:
13307 + Added `chomp` combinator.
13308 + Added `beforeNonBreak` combinator. This allows you to include
13309 something conditionally on it being before a nonblank.
13310 Used for RST inline math.
13311 + Added `charWidth` function. All characters marked W or F in the unicode
13312 spec EastAsianWidth.txt get width 2.
13313 + Added `realLength`, based on `charWidth`. `realLength` is now
13314 used in calculating offsets.
13316 * New module `Text.Pandoc.Slides`, for common functions for breaking
13317 a document into slides.
13319 * Removed `Text.Pandoc.S5`, which is no longer needed.
13321 * Removed `Text.Pandoc.CharacterReferences`. Moved
13322 `characterReference` to `Text.Pandoc.Parsing`.
13323 `decodeCharacterReferences` is replaced by `fromEntities`
13324 in `Text.Pandoc.XML`.
13326 * Added `Text.Pandoc.ImageSize`. This is intened for use
13327 in `docx` and `odt` writers, so the size and dpi of images
13328 can be calculated.
13330 * Removed `writerAscii` in `WriterOptions`.
13332 * Added `writerHighlight` to `WriterOptions`.
13334 * Added `DZSlides` to `HTMLSlideVariant`.
13336 * `writeEPUB` has a new argument for font files to embed.
13338 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
13339 of whether we're parsing the position immediately after a regular
13340 (non-space, non-symbol) string, which is useful for distinguishing
13341 apostrophes from single quote starts.
13343 * `Text.Pandoc.Parsing`:
13345 + `escaped` now returns a `Char`.
13346 + Removed `charsInBalanced'`, added a character parser as
13347 a parameter of `charsInBalanced`. This is needed for
13348 proper handling of escapes, etc.
13349 + Added `withRaw`.
13351 * Added `toEntities` to `Text.Pandoc.XML`.
13353 * `Text.Pandoc.Readers.LaTeX`:
13355 + Export `handleIncludes`.
13356 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
13358 * Added `ToJsonFilter` class and `toJsonFilter` function to
13359 `Text.Pandoc`, deprecating the old `jsonFilter` function.
13361 * `Text.Pandoc.Highlighting`:
13363 + Removed `highlightHtml`, `defaultHighlightingCss`.
13364 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
13365 key functions from highlighting-kate.
13366 + Changed types of highlighting function. `highlight` returns a
13367 `Maybe`, not an `Either`.
13369pandoc (1.8.2.1)
13371 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
13373 * Relaxed cabal constraints for pandoc-types.
13375 * Adjusted Arbitrary instance to help avoid timeouts in tests.
13377 * Added `Tests.Writers.Markdown` to cabal file.
13379pandoc (1.8.2)
13381 * Added script to produce OS X package.
13383 * Made `templates` directory a git submodule. This should make it
13384 easier for people to revise their custom templates when the default
13385 templates change.
13387 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
13388 **Note:** If you have existing templates in `~/.pandoc/templates`, you
13389 must rename them to conform to the new scheme!
13391 * Fixed smart quotes bug, now handling `'...hi'` properly.
13393 * RST reader:
13395 + Partial support for labeled footnotes.
13396 + Improved accuracy of `simpleReferenceName` parser.
13398 * HTML reader:
13400 + Substitute correct unicode characters for
13401 characters in the 128..159 range, which are often found even in
13402 HTML that purports to be UTF-8.
13404 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
13405 to the title, after a colon and linebreak). Closes #280.
13407 * Leaner `reference.odt`.
13409 * Added unexported module `Text.Pandoc.MIME` for use in
13410 the ODT writer.
13412 * ODT writer: Construct `manifest.xml` based on archive contents.
13413 This fixes a bug in ODTs containing images. Recent versions of
13414 LibreOffice would reject these as corrupt, because `manifest.xml`
13415 did not contain a reference to the image files.
13417 * LaTeX writer:
13419 + Make verbatim environments flush to avoid spurious
13420 blank lines. Closes #277.
13421 + Use `\texttt` and escapes insntead of `\verb!...!`, which
13422 is too fragile (doesn't work in command arguments).
13423 + Use `\enquote{}` for quotes if the template includes
13424 the `csquotes` package. This provides better support for
13425 local quoting styles. (Thanks to Andreas Wagner for the idea.)
13427 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
13428 margin, preventing spurious blank lines.
13430 * Slidy writer:
13432 + Use non-minimized version of `slidy.css` with `--offline`
13433 option, so users can more easily edit it.
13434 + Also fixed a bug in the CSS that prevented proper centering
13435 of title (now reported and fixed upstream).
13437 * S5 writer:
13439 + Replaced `s5/default/slides.js.{comment,packed}` with
13440 new compressed `s5/default/slides.min.js`.
13441 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
13442 when `--offline` is specified. Using inline CSS didn't
13443 work with Chrome or Safari. This fixes offline
13444 S5 on those browsers.
13446 * HTML writer: Removed English title on footnote backlinks.
13447 This is incongrous in non-English documents.
13449 * Docbook writer:
13451 + Use CALS tables. (Some older docbook software does not work
13452 well with XHTML tables.) Closes #77.
13453 + Use `programlisting` tags (instead of `screen`) for code blocks.
13455 * `markdown2pdf`:
13457 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
13458 of `-interaction=batchmode`, which essentially just ignored errors,
13459 leading to bad results. Better to know when something is wrong.
13460 + Fixed issues with non-UTF-8 output of `pdflatex`.
13461 + Better error reporting.
13463 * `--mathjax` now takes an optional URL argument. If it is not
13464 provided, pandoc links directly to the (secure) mathjax CDN,
13465 as now recommended (thanks to dsanson).
13467 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
13468 since the LaTeX writer now produces a file that can be processed by
13469 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
13471 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
13472 to be used to create the PDF.
13474 * If a template specified with `--template` is not found, look for it
13475 in `datadir`. Also, if no extension is provided, supply one based
13476 on the writer. So now you can put your `special.latex` template in
13477 `~/.pandoc/templates`, and use it from any directory via
13478 `pandoc -t latex --template special`.
13480 * Default template improvements:
13482 + HTML: Display author and date after title.
13483 + HTML: Made table of contents more customizable. The container
13484 for the TOC is now in the template, so users can insert a header
13485 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
13486 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
13487 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
13488 hard-coding. If you want to put your slidy files in the slidy
13489 subdirectory, for example, you can do
13490 `pandoc -t slidy -V slidy-url=slidy -s`.
13491 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
13492 & writer). Closes #279.
13493 + LaTeX: Use different `hyperref` options for `xetex`, fixing
13494 problems with unicode bookmarks (thanks to CircleCode).
13495 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
13496 with `inputenc`. This covers fewer characters but is more
13497 robust with other packages, and `ucs` is unmaintained. Users
13498 who need better unicode support should use xelatex or lualatex.
13500pandoc (1.8.1.2)
13502 * Added `--epub-cover-image` option.
13504 * Documented `--biblatex` and `--natbib` options.
13506 * Allow `--section-divs` with slidy output. Resolves Issue #296.
13508 * Disallow notes within notes in reST and markdown.
13509 These previously caused infinite looping and stack overflows.
13510 For example:
13512 [^1]
13514 [^1]: See [^1]
13516 Note references are allowed in reST notes, so this isn't a full
13517 implementation of reST. That can come later. For now we need to
13518 prevent the stack overflows. Partially resolves Issue #297.
13520 * EPUB writer: Allow non-plain math methods.
13522 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
13523 `(@item1; @item2)` because the final paren was being parsed as part of
13524 the item key.
13526 * Changed URI parser so it doesn't include trailing punctuation.
13527 So, in RST, `http://google.com.` should be parsed as a link followed by a
13528 period. The parser is smart enough to recognize balanced parentheses, as
13529 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
13531 * Markdown+lhs reader: Require space after inverse bird tracks, so that
13532 HTML tags can be used freely at the left margin of a markdown+lhs document.
13533 Thanks to Conal Elliot for the suggestion.
13535 * Markdown reader:
13537 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
13538 + Fixed bug in footnote order (reported by CircleCode).
13540 * RST reader:
13541 + Fixed bug in in field lists with multi-line items at the
13542 end of the list.
13543 + Added parentheses to RST `specialChars`, so
13544 `(http://google.com)` will be parsed as a link in parens.
13545 Resolves Issue #291.
13546 + Allow `|` followed by newline in RST line block.
13548 * LaTeX reader:
13549 + Support `\dots`.
13550 + Gobble option & space after linebreak `\\[10pt]`.
13552 * Textile reader:
13553 + Make it possible to have colons after links. (qerub)
13554 + Make it possible to have colons after links. (Christoffer Sawicki)
13556 * HTML reader:
13557 + Skip spaces after `<b>`, `<emph>`, etc.
13558 + Handle tbody, thead in simple tables. Closes #274.
13559 + Implicit `Para`s instead of `Plains` in some contexts.
13561 * OpenDocument writer: Use special `First paragraph` style for
13562 first paragraph after most non-paragraph blocks. This allows users to
13563 specify e.g. that only paragraphs after the first paragraph of a block are
13564 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
13566 * LaTeX writer: use `deVerb` on table and picture captions.
13567 Otherwise LaTeX complains about `\verb` inside command argument.
13568 Thanks to bbanier for reporting the bug.
13570 * Markdown writer: Insert HTML comment btw list and indented code block.
13571 This prevents the code block from being interpreted as part of the list.
13573 * EPUB writer: Add a meta element specify the cover.
13574 Some EPUB e-readers, such as the Nook, require a meta element inside the
13575 OPF metadata block to ensure the cover image is properly displayed.
13576 (Kelsey Hightower)
13578 * HTML writer: Use embed tag for images with non-image extensions.
13579 (e.g. PDFs). Closes #264.
13581 * LaTeX writer: Improved tables.
13583 + More space between lines, top-align cells.
13584 + Use ctable package, which allows footnotes and
13585 provides additional options.
13586 + Made cell alignments work in multiline tables.
13587 + Closes #271, #272.
13589 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
13590 Also do this when copying image files into EPUBs and ODTs.
13591 Closes #263.
13593 * Changed to github issue tracker.
13595 * Added failing emph/strong markdown test case due to Perry Wagle.
13597 * Slidy improvements:
13598 + Updated to use Slidy2.
13599 + Fixed bug, unclosed div tag.
13600 + Added `duration` variable in template.
13601 Setting this activates the timer.
13602 + Use 'titlepage' instead of 'cover' for title div.
13604pandoc (1.8.1.1)
13606 * `markdown2pdf`: Removed some debugging lines accidentally included
13607 in the 1.8.1 release. With those lines, the temp directory is created
13608 in the working directory, and it is not deleted. This fix restores
13609 the original behavior.
13611pandoc (1.8.1)
13613 * Added `--ascii` option. Currently supported only in HTML writer,
13614 which it causes to use numerical entities instead of UTF-8.
13616 * EPUB writer: `--toc` now works to provide a table of contents
13617 at the beginning of each chapter.
13619 * LaTeX writer: Change figure defaults to `htbp`.
13620 This prevents "too many unprocessed floats." Resolves
13621 Issue #285.
13623 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
13624 base.
13626 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
13627 Tanimoto. Resolves Issue #286.
13629 * HTML writer: Put line breaks in section divs.
13631 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
13633pandoc (1.8.0.3)
13635 * Fixed Source-repository stanza in cabal file.
13637pandoc (1.8.0.2)
13639 * HTML writer:
13641 + Stringify alt text instead of converting to HTML.
13642 + Break lines after block elements, not inside tags.
13643 HTML output now closely resembles that of tidy. Resolves Issue #134.
13645 * Markdown reader: Fixed bug in footnote block parser (pointed out
13646 by Jesse Rosenthal). The problem arose when the blank line
13647 at the end of a footnote block contained indenting spaces.
13649 * Shared: Improved 'normalize' function so it normalizes Spaces too.
13650 In normal form, Space elements only occur to separate two non-Space
13651 elements. So, we never have [Space], or [, ..., Space].
13653 * Tests:
13655 + Improved Arbitrary instance.
13656 + Added timeout for test instances.
13658 * README:
13660 + Added section on four-space rule for lists. Resolves Issue #283.
13661 + Clarified optional arguments on math options.
13663 * markdown2pdf: Fixed bug with output file extensions.
13664 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
13665 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
13667pandoc (1.8.0.1)
13669 * Revised Interact.hs so that it works with the CPP macros
13670 in the UTF8 module.
13672 * Revised Setup.hs so that we don't call MakeManPage.hs unless
13673 the man pages are out of date.
13675pandoc (1.8)
13677 [new features]
13679 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
13680 You can now write, for example,
13682 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
13684 and, when you process your document using `pandoc`, specifying
13685 a citation style using `--csl` and a bibliography using `--bibliography`,
13686 the citation will be replaced by an appropriately formatted
13687 citation, and a list of works cited will be added to the end
13688 of the document.
13690 This means that you can switch effortlessly between different citation
13691 and bibliography styles, including footnote, numerical, and author-date
13692 formats. The bibliography can be in any of the following formats: MODS,
13693 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
13694 See the README for further details.
13696 Citations are supported in the markdown reader, using a special
13697 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
13698 (Thanks to Nathan Gass for the natbib and biblatex support.)
13700 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
13701 the `textile` reader, an almost complete implementation of the textile
13702 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
13703 Resolves Issue #51.
13705 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
13707 * New `json` reader and writer, for reading and writing a JSON
13708 representation of the native Pandoc AST. These are much faster
13709 than the `native` reader and writer, and should be used for
13710 serializing Pandoc to text. To convert between the JSON representation
13711 and native Pandoc, use `encodeJSON` and `decodeJSON` from
13712 `Text.JSON.Generic`.
13714 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
13715 to write scripts that transform a JSON-encoded pandoc document.
13716 For example:
13718 -- removelinks.hs - removes links from document
13719 import Text.Pandoc
13720 main = interact $ jsonFilter $ bottomUp removeLink
13721 where removeLink (Link xs _) = Emph xs
13722 removeLink x = x
13724 To use this to remove links while translating markdown to LaTeX:
13726 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
13728 * Attributes are now allowed in inline `Code` elements, for example:
13730 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
13732 The attribute syntax is the same as for delimited code blocks.
13733 `Code` inline has an extra argument place for attributes, just like
13734 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
13735 is compiled with highlighting support. Resolves Issue #119.
13737 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
13738 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
13739 scripts to transform Pandoc documents. Scripts can now change
13740 how each element is rendered in each output format.
13742 * You can now define LaTeX macros in markdown documents, and pandoc
13743 will apply them to TeX math. For example,
13745 \newcommand{\plus}[2]{#1 + #2}
13746 $\plus{3}{4}$
13748 yields `3+4`. Since the macros are applied in the reader, they
13749 will work in every output format, not just LaTeX.
13751 * LaTeX macros can also be used in LaTeX documents (both in math
13752 and in non-math contexts).
13754 * A new `--mathjax` option has been added for displaying
13755 math in HTML using MathJax. Resolves issue #259.
13757 * Footnotes are now supported in the RST reader. (Note, however,
13758 that unlike docutils, pandoc ignores the numeral or symbol used in
13759 the note; footnotes are put in an auto-numbered ordered list.)
13760 Resolves Issue #258.
13762 * A new `--normalize` option causes pandoc to normalize the AST
13763 before writing the document. This means that, for example,
13764 `*hi**there*` will be rendered as `<em>hithere</em>`
13765 instead of `<em>hi</em><em>there</em>`. This is not the default,
13766 because there is a significant performance penalty.
13768 * A new `--chapters` command-line option causes headers
13769 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
13770 Resolves Issue #265.
13772 * In DocBook output, `<chapter>` is now used for top-level
13773 headers if the template contains `<book>`. Resolves Issue #265.
13775 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
13776 the LaTeX writer to use the listings package for code blocks.
13777 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
13778 Millon for the markdown2pdf patch.)
13780 * `markdown2pdf` now supports `--data-dir`.
13782 * URLs in autolinks now have class "url" so they can be styled.
13784 * Improved prettyprinting in most formats. Lines will be wrapped
13785 more evenly and duplicate blank lines avoided.
13787 * New `--columns` command-line option sets the column width for
13788 line wrapping and relative width calculations for tables.
13790 * Made `--smart` work in HTML, RST, and Textile readers, as well
13791 as markdown.
13793 * Added `--html5` option for HTML5 output.
13795 * Added support for listings package in LaTeX reader
13796 (Puneeth Chaganti).
13798 * Added support for simple tables in the LaTeX reader.
13800 * Added support for simple tables in the HTML reader.
13802 * Significant performance improvements in many readers and writers.
13804 [API and program changes]
13806 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
13807 auxiliary package, `pandoc-types`. This will make it possible for other
13808 programs to supply output in Pandoc format, without depending on the whole
13809 pandoc package.
13811 * Added `Attr` field to `Code`.
13813 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
13814 `RawBlock` and `RawInline`.
13816 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
13817 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
13818 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
13820 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
13822 * `Text.Pandoc` now exports association lists `readers` and `writers`.
13824 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
13825 `readNative` can now read full pandoc documents, block lists, blocks,
13826 inline lists, or inlines. It will interpret `Str "hi"`
13827 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
13828 This should make testing easier.
13830 * Removed deprecated `-C/--custom-header` option.
13831 Use `--template` instead.
13833 * `--biblio-file` has been replaced by `--bibliography`.
13834 `--biblio-format` has been removed; pandoc now guesses the format
13835 from the file extension (see README).
13837 * pandoc will treat an argument as a URI only if it has an
13838 `http(s)` scheme. Previously pandoc would treat some
13839 Windows pathnames beginning with `C:/` as URIs.
13841 * The `--sanitize-html` option and the `stateSanitize` field in
13842 `ParserState` have been removed. Sanitization is better done in the
13843 resulting HTML using `xss-sanitize`, which is based on pandoc's
13844 sanitization, but improved.
13846 * pandoc now adds a newline to the end of its output in fragment
13847 mode (= not `--standalone`).
13849 * Added support for `lang` in `html` tag in the HTML template,
13850 so you can do `pandoc -s -V lang=es`, for example.
13852 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
13853 a boolean argument that selects between "inline" and
13854 "block" HTML.
13856 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
13857 Images are embedded in RTF output when possible (png, jpeg).
13858 Resolves Issue #275.
13860 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
13861 `pretty` package. Changed all writers that used
13862 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
13864 * Rewrote `writeNative` using the new prettyprinting module. It is
13865 now much faster. The output has been made more consistent and compressed.
13866 `writeNative` is also now sensitive to writerStandalone`, and will simply
13867 `print a block list if writerStandalone` is False.
13869 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
13870 blocks and concatenate them, so a separate module is no longer needed.
13872 * `Text.Pandoc.Shared`:
13874 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
13875 `WriterOptions`.
13876 + Added `normalize`.
13877 + Removed unneeded prettyprinting functions:
13878 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
13879 `BlockWrapper`, `wrappedBlocksToDoc`.
13880 + Made `splitBy` take a test instead of an element.
13881 + Added `findDataFile`, refactored `readDataFile`.
13882 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
13883 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
13885 * `Text.Pandoc.Readers.HTML`:
13887 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
13888 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
13889 `htmlBlockElement`, `htmlComment`
13890 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
13891 `isTextTag`
13893 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
13894 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
13895 an inline parser.
13897 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
13899 * Ellipses are no longer allowed to contain spaces.
13900 Previously we allowed '. . .', ' . . . ', etc. This caused
13901 too many complications, and removed author's flexibility in
13902 combining ellipses with spaces and periods.
13904 * Allow linebreaks in URLs (treat as spaces). Also, a string of
13905 consecutive spaces or tabs is now parsed as a single space. If you have
13906 multiple spaces in your URL, use `%20%20`.
13908 * `Text.Pandoc.Parsing`:
13910 + Removed `refsMatch`.
13911 + Hid `Key` constructor.
13912 + Removed custom `Ord` and `Eq` instances for `Key`.
13913 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
13914 + Generalized type on `readWith`.
13916 * Small change in calculation of relative widths of table columns.
13917 If the size of the header > the specified column width, use
13918 the header size as 100% for purposes of calculating
13919 relative widths of columns.
13921 * Markdown writer now uses some pandoc-specific features when `--strict`
13922 is not specified: `\` newline is used for a hard linebreak instead of
13923 two spaces then a newline. And delimited code blocks are used when
13924 there are attributes.
13926 * HTML writer: improved gladTeX output by setting ENV appropriately
13927 for display or inline math (Jonathan Daugherty).
13929 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
13931 * LaTeX reader:
13933 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
13934 + `\index{}` commands are skipped.
13936 * Added `fontsize` variable to default LaTeX template.
13937 This makes it easy to set the font size using `markdown2pdf`:
13938 `markdown2pdf -V fontsize=12pt input.txt`.
13940 * Fixed problem with strikeout in LaTeX headers when using
13941 hyperref, by adding a command to the default LaTeX template
13942 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
13943 for the fix.
13945 * The `COLUMNS` environment variable no longer has any effect.
13947 [under-the-hood improvements]
13949 * Pandoc now compiles with GHC 7. (This alone leads to a
13950 significant performance improvement, 15-20%.)
13952 * Completely rewrote HTML reader using tagsoup as a lexer. The
13953 new reader is faster and more accurate. Unlike the
13954 old reader, it does not get bogged down on some input
13955 (Issues #277, 255). And it handles namespaces in tags
13956 (Issue #274).
13958 * Replaced `escapeStringAsXML` with a faster version.
13960 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
13961 for a significant performance boost.
13963 * Improved performance of all readers by rewriting parsers.
13965 * Simplified Text.Pandoc.CharacterReferences by using
13966 entity lookup functions from TagSoup.
13968 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
13969 from `System.IO` if base >= 4.2. This gives support for
13970 windows line endings on windows.
13972 * Remove duplications in documentation by generating the
13973 pandoc man page from README, using `MakeManPage.hs`.
13975 * README now includes a full description of markdown syntax,
13976 including non-pandoc-specific parts. A new `pandoc_markdown`
13977 man page is extracted from this, so you can look up markdown
13978 syntax by doing `man pandoc_markdown`.
13980 * Completely revised test framework (with help from Nathan Gass).
13981 The new test framework is built when the `tests` Cabal flag is set. It
13982 includes the old integration tests, but also some new unit and quickcheck
13983 tests. Test output has been much improved, and you can now specify a glob
13984 pattern after `cabal test` to indicate which tests should be run;
13985 for example `cabal test citations` will run all the citation tests.
13987 * Added a shell script, `stripansi.sh`, for filtering ANSI control
13988 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
13990 * Added `Interact.hs` to make it easier to use ghci while developing.
13991 `Interact.hs` loads `ghci` from the `src` directory, specifying
13992 all the options needed to load pandoc modules (including
13993 specific package dependencies, which it gets by parsing
13994 dist/setup-config).
13996 * Added `Benchmark.hs`, testing all readers + writers using criterion.
13998 * Added `stats.sh`, to make it easier to collect and archive
13999 benchmark and lines-of-code stats.
14001 * Added upper bounds to all cabal dependencies.
14003 * Include man pages in extra-source-files. This allows users to
14004 install pandoc from the tarball without needing to build the man
14005 pages.
14007 [bug fixes]
14009 * Filenames are encoded as UTF8. Resolves Issue #252.
14011 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
14012 were just parsed literally, leading to problems in some output formats.
14013 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
14014 Resolves Issue #270.
14016 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
14017 Spaces at end of line were not being stripped properly,
14018 resulting in unintended LineBreaks.
14020 * Markdown reader:
14022 + Allow HTML comments as inline elements in markdown.
14023 So, `aaa <!-- comment --> bbb` can be a single paragraph.
14024 + Fixed superscripts with links: `^[link](/foo)^` gets
14025 recognized as a superscripted link, not an inline note followed by
14026 garbage.
14027 + Fixed regression, making markdown reference keys case-insensitive again.
14028 Resolves Issue #272.
14029 + Properly handle abbreviations (like `Mr.`) at the end of a line.
14030 + Better handling of intraword underscores, avoiding exponential
14031 slowdowns in some cases. Resolves Issue #182.
14032 + Fixed bug in alignments in tables with blank rows in the header.
14034 * RST reader:
14036 + Field lists now allow spaces in field names, and
14037 block content in field values. (Thanks to Lachlan Musicman
14038 for pointing out the bug.)
14039 + Definition list items are now always `Para` instead of
14040 `Plain`, matching behavior of `rst2xml.py`.
14041 + In image blocks, the description is parsed properly and
14042 used for the alt attribute, not also the title.
14043 + Skip blank lines at beginning of file. Resolves
14044 Debian #611328.
14046 * LaTeX reader:
14048 + Improved parsing of preamble.
14049 Previously you'd get unexpected behavior on a document that
14050 contained `\begin{document}` in, say, a verbatim block.
14051 + Allow spaces between `\begin` or `\end` and `{`.
14052 + Support `\L` and `\l`.
14053 + Skip comments inside paragraphs.
14055 * LaTeX writer:
14057 + Escape strings in `\href{..}`.
14058 + In nonsimple tables, put cells in `\parbox`.
14060 * OpenDocument writer: don't print raw TeX.
14062 * Markdown writer:
14064 + Fixed bug in `Image`. URI was getting unescaped twice!
14065 + Avoid printing extra blank lines at the end if there are
14066 no notes or references.
14068 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
14069 This avoids unwanted interpretation as an optional argument.
14071 * ConTeXt writer: Fixed problem with inline code. Previously
14072 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
14073 If it contains neither, use `\type{}`; otherwise use `\mono{}`
14074 with an escaped version of the string.
14076 * `:` now allowed in HTML tags. Resolves Issue #274.
14078pandoc (1.6)
14080 [ John MacFarlane ]
14082 * New EPUB and HTML Slidy writers. (Issue #122)
14084 - EPUB is a standard ebook format, used in Apple's iBooks for
14085 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
14086 reader, and many other devices.
14087 - Slidy, like S5, is a system for producing HTML+javascript slide
14088 shows.
14090 * All input is assumed to be UTF-8, no matter what the locale and ghc
14091 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
14092 Also, a BOM, if present, is stripped from the input.
14094 * Markdown now supports grid tables, whose cells can contain
14095 arbitrary block elements. (Issue #43)
14097 * Sequentially numbered example lists in markdown with `@` marker.
14099 * Markdown table captions can begin with a bare colon and no longer need
14100 to include the English word "table." Also, a caption can now occur
14101 either before or after the table. (Issue #227)
14103 * New command-line options:
14105 - `--epub-stylesheet` allows you to specify a CSS file that will
14106 be used to style your ebook.
14107 - `--epub-metadata` allows you to specify metadata for the ebook.
14108 - `--offline` causes the generated HTML slideshow to include all
14109 needed scripts and stylesheets.
14110 - `--webtex` causes TeX math to be converted to images using the
14111 Google Charts API (unless a different URL is specified).
14112 - `--section-divs` causes div tags to be added around each section
14113 in an HTML document. (Issue #230, 239)
14115 * Default behavior of S5 writer in standalone mode has changed:
14116 previously, it would include all needed scripts and stylesheets
14117 in the generated HTML; now, only links are included unless
14118 the `--offline` option is used.
14120 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
14121 pandoc would enclose sections in div tags with identifiers on the
14122 div tags, so that the sections can be manipulated in javascript.
14123 This caused undesirable interactions with raw HTML div tags. So,
14124 starting with 1.6, the default is to put the identifiers directly
14125 on the header tags, and not to include the divs. The `--section-divs`
14126 option selects the 1.2-1.5 behavior.
14128 * API changes:
14130 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
14131 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
14132 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
14133 `writerIncludeAfter`.
14134 - Added `headerShift` to `Text.Pandoc.Shared`.
14135 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
14136 to a new module, `Text.Pandoc.Parsing`.
14137 - Added `stateHasChapters` to `ParserState`.
14138 - Added `HTMLSlideVariant`.
14139 - Made `KeyTable` a map instead of an association list.
14140 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
14141 `docDate`).
14142 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
14143 instances.
14144 - Reference keys now have a type of their own (`Key`), with its
14145 own `Ord` instance for case-insensitive comparison.
14146 - Added `Text.Pandoc.Writers.EPUB`.
14147 - Added `Text.Pandoc.UUID`.
14148 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
14149 Removed `saveOpenDocumentAsODT`, added `writeODT`.
14150 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
14151 Removed `prettyPandoc`.
14152 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
14153 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
14154 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
14155 To write S5, you now use `writeHtml` with `writerSlideVariant`
14156 set to `S5Slides` or `SlidySlides`.
14158 * Template changes. If you use custom templates, please update them,
14159 particularly if you use syntax highlighting with pandoc. The old HTML
14160 templates hardcoded highlighting CSS that will no longer work with
14161 the most recent version of highlighting-kate.
14163 - HTML template: avoid empty meta tag if no date.
14164 - HTML template: Use default highlighting CSS from highlighting-kate
14165 instead of hard-coding the CSS into the template.
14166 - HTML template: insert-before text goes before the title, and
14167 immediately after the <body> tag, as documented. (Issue #241)
14168 - Added slidy and s5 templates.
14169 - Added amssymb to preamble of latex template. (github Issue 1)
14171 * Removed excess newlines at the end of output. Note: because output
14172 will not contain an extra newline, you may need to make adjustments
14173 if you are inserting pandoc's output into a template.
14175 * In S5 and slidy, horizontal rules now cause a new slide, so you
14176 are no longer limited to one slide per section.
14178 * Improved handling of code in man writer. Inline code is now monospace,
14179 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
14181 * HTML reader parses `<tt>` as Code. (Issue #247)
14183 * html+lhs output now contains bird tracks, even when compiled without
14184 highlighting support. (Issue #242)
14186 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
14187 since they have a special meaning in XML.
14189 * Code improvements in ODT writer. Remote images are now replaced with
14190 their alt text rather than a broken link.
14192 * LaTeX reader improvements:
14194 - Made latex `\section`, `\chapter` parsers more forgiving of
14195 whitespace.
14196 - Parse `\chapter{}` in latex.
14197 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
14198 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
14199 for use in markdown reader.
14200 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
14201 in markdown document.
14203 * LaTeX writer: images are automatically shrunk if they would extend
14204 beyond the page margin.
14206 * Plain, markdown, RST writers now use unicode for smart punctuation.
14208 * Man writer converts math to unicode when possible, as in other writers.
14210 * `markdown2pdf` can now recognize citeproc options.
14212 * Command-line arguments are converted to UTF-8. (Issue #234)
14214 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
14215 This allows it to handle a wider range of formulas. Also, if a formula
14216 cannot be converted, it is left in raw TeX; formulas are no longer
14217 partially converted.
14219 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
14220 #143)
14222 * Cabal file changes:
14224 - Removed parsec < 3 restriction.
14225 - Added 'threaded' flag for architectures where GHC lacks a threaded
14226 runtime.
14227 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
14228 - Require highlighting-kate 0.2.7.
14230 * Use explicit imports from `Data.Generics`. Otherwise we have a
14231 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
14233 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
14235pandoc (1.5.1.1)
14237 [ John MacFarlane ]
14239 * Fixed uniqueIdent in Shared so that header identifiers work as
14240 advertized in the README and are are valid XHTML names.
14242pandoc (1.5.1)
14244 [ John MacFarlane ]
14246 * Fixed treatment of unicode characters in URIs.
14247 + Shared now exports escapeURI and unescapeURI. These handle
14248 UTF8 encoding and decoding as well as URI escaping/unescaping.
14249 + Shared: uri and emailAddress now return a pair of the original
14250 parsed text and the escaped URI (in the latter case, with
14251 the mailto: prefix).
14252 + HTML reader: unsanitaryURI has been modified to allow unicode
14253 high characters in a URI.
14254 + Readers: All link and image URIs are now escaped using
14255 escapeURI.
14256 + Markdown and RST writers: unescapeURI is used so that URIs
14257 in these formats are human-readable.
14259 * Setup.hs: Don't assume that the build directory is "dist".
14260 Instead, get it from localBuildInfo.
14262 * OpenDocument writer: Use a Map for stTextStyleAttr.
14263 This avoids duplicates (and invalid xml). Resolves Issue #222.
14265pandoc (1.5.0.1)
14267 [ John MacFarlane ]
14269 * HTML writer: Fixed error in math writer (with MathML option)
14270 that caused an infinite loop for unparsable MathML.
14272pandoc (1.5)
14274 [ John MacFarlane ]
14276 * Added --mathml option. When this is selected, pandoc will convert
14277 TeX math into MathML.
14278 + Added data/MathMLinHTML.js, which is included when no URL is
14279 provided for --mathml. This allows MathML to be displayed (in
14280 better browsers) as text/html.
14281 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
14282 necessary; it was replaced by two lines in pandoc.hs.
14283 + Replaced LaTeXMathML.js.comment and LaTeXMathML.js.packed with a
14284 single combined file, LaTeXMathML.js.
14286 * Added --data-dir option.
14287 This specifies a user data directory. If not specified, will default
14288 to ~/.pandoc on unix or Application Data\pandoc on Windows.
14289 Files placed in the user data directory will override system default
14290 data files.
14292 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
14293 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
14294 Nothing, no user directory is searched for an override.
14296 * Added 'plain' output format. This is similar to markdown, but
14297 removes links, pictures, inline formatting, and most anything that
14298 looks even vaguely markupish. The function writePlain is exported by
14299 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
14301 * Allow multi-line titles and authors in meta block.
14302 Titles may span multiple lines, provided continuation lines
14303 begin with a space character. Separate authors may be put on
14304 multiple lines, provided each line after the first begins with
14305 a space character. Each author must fit on one line. Multiple
14306 authors on a single line may still be separated by a semicolon.
14307 Based on a patch by Justin Bogner.
14309 * When given an absolute URI as parameter, pandoc will try to fetch
14310 the content via HTTP. So you can do:
14311 'pandoc -r html -w markdown http://www.fsf.org'
14312 Adds dependency on HTTP.
14314 * Made HTML reader much more forgiving.
14315 + Incorporated idea (from HXT) that an element can be closed
14316 by an open tag for another element.
14317 + Javascript is partially parsed to make sure that a <script>
14318 section is not closed by a </script> in a comment or string.
14319 + More lenient non-quoted attribute values.
14320 Now we accept anything but a space character, quote, or <>.
14321 This helps in parsing e.g. www.google.com!
14322 + Bare & signs are now parsed as a string. This is a common
14323 HTML mistake.
14324 + Skip a bare < in malformed HTML.
14326 * Removed html2markdown and hsmarkdown.
14327 + html2markdown is no longer needed, since you can now pass URI
14328 arguments to pandoc and directly convert web pages. (Note,
14329 however, that pandoc assumes the pages are UTF8. html2markdown
14330 made an attempt to guess the encoding and convert them.)
14331 + hsmarkdown is pointless -- a large executable that could be
14332 replaced by 'pandoc --strict'.
14334 * In most writers, an image in a paragraph by itself is now rendered
14335 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
14336 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
14337 rendered inline.
14339 * Depend on extensible-exceptions. This allows pandoc to be compiled
14340 on GHC 6.8.
14342 * Added --base-header-level option. For example, --base-header-level=2
14343 will change level 1 headers to level 2, level 2 to level 3, etc.
14344 Closes Debian #563416.
14346 * Incomplete support for RST tables (simple and grid).
14347 Thanks to Eric Kow. Colspans and rowspans not yet supported.
14349 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
14351 * MediaWiki writer: format links with relative URLs as wikilinks.
14352 The new rule: If the link target is an absolute URL, an external
14353 link is created. Otherwise, a wikilink is created.
14355 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
14356 identifier. Note: This may break links to sections that involve
14357 tildes.
14359 * Markdown(+lhs) reader: handle "inverse bird tracks."
14360 Inverse bird tracks (<) are used for haskell example code that is not
14361 part of the literate Haskell program. Resolves Issue #211.
14363 * LaTeX reader:
14364 + Recognize '\ ' (interword space).
14365 + Recognize nonbreaking space '~'.
14366 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
14367 section headers. Don't treat \section as inline LaTeX.
14368 Resolves Issue #202.
14369 + LaTeX reader: allow any special character to be escaped.
14370 Resolves Issue #221.
14371 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
14372 headers. Resolves Issue #207.
14374 * Use template variables for include-before/after.
14375 + These options now imply -s; previously they worked also in fragment
14376 mode.
14377 + Users can now adjust position of include-before and include-after
14378 text in the templates.
14379 + Default position of include-before moved back (as it was before 1.4)
14380 before table of contents.
14381 + Resolves Issue #217.
14383 * Don't print an empty table header: (all writers).
14384 Resolves Issue #210.
14386 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
14388 * HTML writer: Don't include TOC div if table of contents is empty.
14390 * Markdown writer: Fixed citations.
14391 Previously the markdown writer printed raw citation codes, e.g.
14392 [geach1970], rather than the expanded citations provided by
14393 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
14394 This means that the document produced can be processed as a markdown
14395 document without citeproc. Thanks to dsanson for reporting, and
14396 Andrea Rossato for the patch.
14398 * Improved and simplified title block in context template.
14399 Previously it caused an error if there was no title.
14400 This method should also be easier for users to customize.
14402 * Markdown reader:
14403 + Treat p., pp., sec., ch., as abbreviations in smart mode.
14404 + Disallow blank lines in inline code span.
14405 + Allow footnotes to be indented < 4 spaces.
14406 This fixes a regression. A test case has been added.
14407 + Escape spaces in URLs as %20. Previously they were incorrectly
14408 escaped as +, which is appropriate only for the query part of
14409 a URL. Resolves Issue #220.
14410 + Require two spaces after capital letter + period for list item.
14411 Otherwise "E. coli" starts a list. This might change the semantics
14412 of some existing documents, since previously the two-space
14413 requirement was only enforced when the second word started
14414 with a capital letter. But it is consistent with the existing
14415 documentation and follows the principle of least surprise.
14416 Resolves Issue #212.
14418 * LaTeX template: redefine labelwidth when using enumerate package.
14419 Otherwise the list labels (numbers) often extend past the left
14420 margin, which looks bad.
14422 * Mediawiki writer: Don't print a "== Notes ==" header before
14423 references. This is too English-centric. Writers can provide their
14424 own header at the end of the document.
14426 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
14427 level 2, etc. This seems to be correct; it's only by convention
14428 that wikipedia articles have level 2 headers at most.
14429 Patch due to Eric Kow.
14431 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
14432 data files don't need to have been installed. This removes the need to
14433 set HOME.
14435 * HTML reader:
14436 + Handle spaces before <html>. Resolves Issue #216.
14437 + Be forgiving in parsing a bare list within a list.
14438 The following is not valid xhtml, but the intent is clear:
14439 <ol>
14440 <li>one</li>
14441 <ol><li>sub</li></ol>
14442 <li>two</li>
14443 </ol>
14444 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
14446 * Updated INSTALL instructions. cabal method is now promoted.
14448 * Updated markdown2pdf man page. It no longer says all pandoc options
14449 are accepted.
14451 * README/man pages: Removed advice to pipe through tidy before HTML
14452 reader. This is obsolete, now that we have a forgiving HTML parser.
14454 * LaTeX writer: set numbersections template variable, so
14455 the section numbering options work again.
14457 * Removed obsolete Makefile.
14459 * Website: renamed index.txt.in -> index.txt.
14461 * New batch file to make-windows-installer.
14462 + Removed old Makefile.windows
14463 + Added make-windows-installer.bat
14464 + Modified default installer name in pandoc-setup.iss
14466 * Removed freebsd and macports directories.
14467 They are no longer up to date.
14469 * Setup.hs:
14470 + Made man page building sensitive to build verbosity.
14471 + Improved detection of highlighting support in test hook.
14472 + Install wrapper scripts into cabal bin directory.
14473 + Also simplified installManpages.
14474 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
14476 * Changed default of writerXeTeX to False.
14478 * HTML writer: don't include empty UL if --toc but no sections.
14479 Resolves Issue #199.
14481 * LaTeX writer:
14483 + If book, report, or memoir documentclass, use \chapter{}
14484 for first-level headers. Otherwise use \section{}.
14485 + Removed stLink, link template variable. Reason: we now always
14486 include hyperref in the template.
14488 * LaTeX template:
14490 + Only show \author if there are some.
14491 + Always include hyperref package. It is used not just for links but
14492 for toc, section heading bookmarks, footnotes, etc. Also added
14493 unicode=true on hyperref options.
14495 * markdown2pdf: always do at least two runs. hyperref bookmarks
14496 require this.
14498 * cabal file: Removed unneeded dependency on template-haskell.
14500 * Windows installer - fixed bug in data file locations.
14501 Resolves Issue #197.
14503 * Deprecated --custom-header in documentation.
14504 Removed old "Custom Headers" section in README.
14506pandoc (1.4)
14508 [ John MacFarlane ]
14510 * Pandoc will now compile with either GHC 6.10 or 6.12.
14511 + Don't use System.IO.UTF8 when compiling with 6.12
14512 + Use -fno-warn-unused-do-bind option when compiling with 6.12
14514 * Replaced old headers with templates. Now users have much more
14515 control over the way documents appear in --standalone mode,
14516 and writer code is simplified. Resolves Issues #59, 147.
14517 Every effort has been made to retain backwards compatibility.
14518 So, the --custom-header option should still work as before.
14520 + Added Text.Pandoc.Templates. This provides functions for
14521 retrieving default templates and for rendering templates.
14522 + System templates (in the pandoc data directory) can be
14523 overridden by user templates in $HOME/.pandoc/templates.
14524 + Removed Text.Pandoc.DefaultHeaders.
14525 + Removed data/headers directory.
14526 + Added templates directory.
14527 + Added writerTemplate and writerVariables fields to WriterOptions.
14528 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
14529 + Changed --print-default-header to --print-default-template.
14530 + Added --template option.
14531 + Added -V/--variable option to set custom template variables.
14533 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
14535 + Removed need for TH in ODT module. Instead get reference.odt from
14536 data file at run time.
14537 + Removed TH dependency from S5 module. S5 module now exports
14538 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
14539 standalone.
14540 + Refactored LaTeXMathML not to use TH.
14542 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
14543 Meta [Inline] [String] String. Authors and date in Meta are now lists
14544 of Inline elements rather than raw strings. This means that they can
14545 be formatted and can include footnotes. NOTE: This may be a breaking
14546 change for those using pandoc as a library.
14548 * Added readDataFile to Text.Pandoc.Shared. This retrieves
14549 a data file from the user pandoc data directory (~/.pandoc
14550 on unix), or, if not found there, from the system data
14551 directory ($CABALDIR/shared/pandoc-VERSION/). All data
14552 files, including templates, LaTeXMathML.js, s5 styles,
14553 and reference.odt, can be overridden by the user.
14555 * s5 files moved from data/ui/default to s5/default.
14557 * Use unicode instead of entities in HTML and XML output. Resolves
14558 Issue #163.
14560 * Prettier HTML footnote references: put anchor inside sup,
14561 instead of other way. Resolves Issue #191. Thanks to
14562 infinity0x.
14564 * Added --xetex option to pandoc and markdown2pdf.
14565 If --xetex is specified, pandoc produces latex suitable for
14566 processing by xelatex, and markdown2pdf uses xelatex to create
14567 the PDF. Resolves Issue #185.
14569 * RTF writer: multiple authors now occupy multiple paragraphs rather
14570 than using a line break.
14572 * Man writer: now the "--after-body" will come after the "AUTHORS"
14573 section, whereas before it would come before it. This is a
14574 slight break from backwards compatibility.
14576 * Added --reference-odt option, so users may customize the styles
14577 used in pandoc-generated ODT files. Users may also place a
14578 default reference.odt in the ~\.pandoc directory.
14580 * ODT writer:
14581 + Indented and line-broke styles.xml so it can be modified more easily.
14582 + Omitted some unnecessary style declarations.
14583 + Don't wrap text in OpenDocument writer. The tags are too long, making
14584 wrapping ugly and pointless.
14586 * LaTeX reader: use \\ to separate multiple authors.
14588 * Markdown reader: use ; as separator between authors.
14589 This allows you to use ',' within author names: e.g. "John Jones, Jr."
14591 * S5 writer: use linebreak to separate authors in title page.
14593 * RST reader: Allow :: before lhs code block. The RST spec requires the
14594 :: before verbatim blocks. This :: should not be treated as literal
14595 colons. Resolves Issue #189.
14597 * Documented pandoc 1.3's new definition list syntax in README.
14598 (An oversight in the last release.)
14600 * markdown2pdf.hs:
14601 + interpret ! in a log as an error line.
14602 + --toc now works properly.
14604 * Changes in RunTests.hs:
14605 + Use the Diff library rather than a local copy of Diff.hs.
14606 (This vastly increases performance.) This change means that 'cabal
14607 test' presupposes that the Diff library is installed.
14608 + Removed tests/Diff.hs from cabal file.
14609 + Changed RunTests to use local environment. We need at least HOME, so
14610 pandoc can find its data directory.
14612 * Updated windows installer to install data files in the app directory.
14614 * Windows installer now installs portable wrappers hsmarkdown and
14615 markdown2pdf.
14617pandoc (1.3)
14619 [ John MacFarlane ]
14621 * Added --id-prefix option (Issue #41). This adds a prefix to all
14622 automatically generated HTML identifiers, which helps prevent
14623 duplicate identifiers when you're generating a fragment (say a blog
14624 post).
14626 * Added --indented-code-classes option. This specifies classes
14627 to use for indented code blocks. (Patch due to buttock; Issue #87.)
14629 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
14630 (Issue #150).
14632 * Improved syntax for markdown definition lists (Issue #24).
14633 Definition lists are now more compatible with PHP Markdown Extra.
14634 + You can have multiple definitions for a term (but still not
14635 multiple terms).
14636 + Multi-block definitions no longer need a column before each block
14637 (indeed, this will now cause multiple definitions).
14638 + The marker no longer needs to be flush with the left margin,
14639 but can be indented at or two spaces. Also, ~ as well as :
14640 can be used as the marker (this suggestion due to David
14641 Wheeler.)
14642 + There can now be a blank line between the term and the
14643 definitions.
14645 * Better looking simple tables. Resolves Issue #180.
14646 + Markdown reader: simple tables are now given column widths of 0.
14647 + Column width of 0 is interpreted as meaning: use default column width.
14648 + Writers now include explicit column width information only
14649 for multiline tables. (Exception: RTF writer, which requires
14650 column widths. In this case, columns are given equal widths,
14651 adding up to the text width.)
14652 + Simple tables should now look better in most output formats.
14654 * Allow markdown tables without headers (Issue #50).
14655 The new syntax is described in README. Also allow optional line of
14656 dashes at bottom of simple tables.
14658 * Compensate for width of final table column (Issue #144).
14660 * Treat a backslash followed by a newline as a hard line break
14661 in markdown. Resolves Issue #154. This is a nice alternative
14662 to markdown's "invisible" way of indicating hardline breaks
14663 using lines that end with two spaces.
14665 * Improved performance of markdown reader by ~10% by eliminating the
14666 need for a separate parsing pass for notes. Raw notes are now stored
14667 on the first pass (which parses references), then parsed when the
14668 note is inserted into the AST. The stateNotes field in ParserState
14669 is now a list of [(String, String)] pairs instead of [(String,
14670 [Block])].
14672 * In markdown reader, treat 4 or more * or _ in a row as literal
14673 text. (Trying to parse long strings of * or _ as strong or emph
14674 leads to exponential performance problems.)
14676 * Markdown reader: Use + rather than %20 for spaces in URLs.
14678 * Fixed htmlComment parser, adding a needed 'try'.
14680 * Don't print raw HTML in man output.
14682 * Allow . _ and ~ in header identifiers.
14684 * Specially mark code blocks that were "literate" in the input.
14685 They can then be treated differently in the writers. This allows
14686 authors to distinguish bits of the literate program they are writing
14687 from source code examples, even if the examples are marked as
14688 Haskell for highlighting. (Issue #174.)
14690 * Modified html+lhs output to use "haskell" highlighter instead
14691 of "literateHaskell". The highlighting module now adds bird tracks
14692 after highlighting (for HTML output), if the code block has the
14693 "literate" class. This gives better results, because kate's
14694 haskell highlighter is much better than the literateHaskell
14695 highlighter.
14697 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
14698 (Issue #137.)
14700 * Support for "..code-block" directive in RST reader. Not core
14701 RST, but used in Sphinx for code blocks annotated with syntax
14702 information. Thanks to Luke Plant for the patch.
14704 * Added "head" to list of block-level HTML tags. Resolves
14705 Issue #108.
14707 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
14709 * Set utf-8 encoding in texinfo headers.
14711 * Docbook writer: add ids to sections. Use link for internal links.
14712 (Issue #60.)
14714 * Blank lines after lists in MediaWiki writer.
14716 * Properly handle commented-out list items in markdown.
14717 Resolves Issue #142. Example:
14719 - a
14720 <!--
14721 - b
14722 -->
14723 - c
14725 * Changed heuristic in compactify. compactify has to decide whether a
14726 Para that ends a list is a Para intentionally, or just because of
14727 the blank lines at the end of every list. In the latter case the
14728 Para is turned to a Plain. The old heuristic was: change final Para
14729 to Plain iff the other items all end in Plain. This produces bad
14730 results when, for example, an item contains just a Plain and an HTML
14731 comment, as it does in the list above. The new heuristic: change
14732 final Para to Plain iff the other items don't contain a Para.
14734 * Added % as an rst underline character. Resolves Issue #173.
14736 * Fix inline math parser so that \$ is allowed in math.
14737 Resolves Issue #169.
14739 * Translate \int (integral) into unicode when using unicode math
14740 method. Resolves Issue #177.
14742 * markdown2pdf.hs improvements:
14743 + Use System.IO.UTF8.
14744 + Print error messages on last attempt.
14745 + Do not create a backup when overwriting a PDF (Issue #166).
14746 + Accept --longopt=val options.
14747 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
14748 it is properly cleaned.
14750 * Added haddock comments warning that readers assume \n line endings.
14752 * Updated COPYRIGHT file.
14754 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
14755 markdown2pdf. Otherwise strip tries to strip shell scripts when you
14756 install using 'make'.
14758 * Changed Makefile so it doesn't build Haskell wrappers.
14760 * Fixed Makefile so it doesn't try to build man pages in build-doc.
14762 * Install pcre3.dll in Windows install script; this allows us to
14763 package a version of pandoc with highlighting support.
14765pandoc (1.2.1)
14767 [ John MacFarlane ]
14769 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
14770 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
14771 side effect: strings of 0 spaces were interpreted as indentation.
14772 So, with --preserve-tabs, unindented paragraphs were treated as
14773 code. Resolves Issue #138.
14775 * HTML writer: wrap sections in divs. Resolves Issue #70.
14777 + hierarchicalize has been rationalized; it builds a hierarchical
14778 representation of the document from the headers, and simultaneously
14779 gives each section a unique identifier based on the heading title.
14780 + Identifiers are now attached to the divs rather than
14781 to the headers themselves.
14782 + Table of content backlinks go to the beginning of the table, rather
14783 than to the section reference that was clicked.
14784 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
14785 from the HTML writer, since it is now consumed only by
14786 hierarchicalize.
14787 + In --strict mode, pandoc just prints bare headings, as before
14788 (unless --toc has been specified).
14789 + In s5 output, it does not wrap sections in divs, as that seems to
14790 confuse the s5 javascript.
14792 * Man writer: break lines at end of each sentence. groff expects this
14793 and treats '.' and '?' differently when followed by line ending as
14794 opposed to ordinary space. Also, don't escape periods. Instead, use
14795 zero-width character \& to avoid unwanted interpretation of periods
14796 at start of line. Resolves Issue #148.
14798 * Markdown writer: Added '#' and '>' to list of characters to be
14799 escaped in markdown output. Removed '<', as it is not an officially
14800 escapable character. This partially resolves Issue #96.
14802 * Make --smart the default for man output format. Otherwise we have
14803 trouble dividing lists of endlines into sentences.
14805 * DocBook writer: Use language attribute to indicate source language
14806 in code blocks.
14808 * RST reader:
14810 + Allow # to continue list, even if the list was started with an
14811 explicit marker. For example:
14813 A. my list
14814 #. continued
14816 Resolves Issue #140.
14817 + Allow continuation lines in line blocks. Also added test cases for
14818 line blocks for RST reader. Resolves Issue #149.
14819 + Allow explicit links with spaces in URL: `link <to this>`_
14821 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
14822 (which is not in LaTeX) and recognize all the amsmath environments
14823 that are alternatives to eqnarray, namely equation, equation*,
14824 gather, gather*, gathered, multline, multline*, align, align*,
14825 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
14826 Thanks to shreevatsa.public for the patch.
14828 * Markdown reader:
14830 + Allow -, _, :, . in markdown attribute names. These are legal in
14831 XML attribute names.
14832 + Use non-breaking spaces in abbreviations.
14833 + Markdown reader: improved efficiency of abbreviation parsing.
14834 Instead of a separate abbrev parser, we just check for
14835 abbreviations each time we parse a string. This gives a huge
14836 performance boost with -S. Resolves Issue #141.
14838 * Improved efficiency of shared parsers: hexNum, htmlComment,
14839 whitespace, indentSpaces.
14841 * Export HTMLMathMethod in Text.Pandoc.
14843 * Export languagesByExtension in Text.Pandoc.Highlighting.
14845 * Added new Haskell version of markdown2pdf, due to
14846 Paulo Tanimoto. This should be more portable than the old
14847 shell script.
14849 * Made 'pandoc -v' more explicit about compiler options.
14850 Resolves Issue #139.
14852 * pandoc.hs: Made --strict compatible with --standalone, --toc.
14854 * Use Paths_pandoc to get version number, instead of hard-coding it
14855 into Text/Pandoc.hs.
14857pandoc (1.2)
14859 [ John MacFarlane ]
14861 * Added support for literate Haskell. lhs support is triggered by
14862 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
14863 Haskell LaTeX. '.lhs' files are treated by default as literate
14864 markdown.
14866 + Added stateLiterateHaskell to parser state.
14867 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
14868 + Added parser for |inline lhs| to LaTeX reader.
14869 + Added writerLiterateHaskell to WriterOptions.
14870 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
14871 + Added definition of code environment to LaTeX header.
14872 + Added tests (run only if highlighting support compiled in).
14873 + Documented lhs features in man page and README.
14875 * In Text.Pandoc.Definition, added processWith, processWithM,
14876 and queryWith, and deprecated processPandoc and queryPandoc
14877 for these more general functions.
14879 * Fixed bug in mediawiki writer: improper closing tags in tables.
14880 Thanks to Benct Philip Jonsson for reporting the bug.
14882 * Added --email-obfuscation option.
14884 + Added writer option for email obfuscation.
14885 + Implemented email obfuscation options in HTML writer.
14886 + Added option to option parser.
14887 + Documented in README and pandoc man page.
14888 + Resolves Issue #97.
14890 * LaTeX writer: fixed bug with empty table cells.
14891 Resolves Issue #107. Thanks to rodja.trappe for the patch.
14893 * Fixed bug with header spacing in Markdown and RST writers.
14894 A null header (Meta [] [] []) should not cause a blank line
14895 at the beginning of output. But a blank line is needed between
14896 a non-null header and the main text.
14898 * Markdown reader: Relax spacing rules for $$ in display math. Now
14899 space and newlines are allowed after the opening $$ and before the
14900 closing $$. However, the display math cannot contain an entirely
14901 blank line. Resolves Issue #105.
14903 * Markdown reader: Gobble space after Plain blocks containing only
14904 raw html inline. Otherwise following header blocks are not parsed
14905 correctly, since the parser sees blank space before them. Resolves
14906 Issue #124.
14908 * Markdown reader: Allow " as well as '' to end a latex double-quote.
14910 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
14911 Resolves Issue #109.
14913 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
14915 + Added hang' function to Text.Pandoc.Shared; this will be used instead
14916 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
14917 is upgraded, we can go back to hang.
14918 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
14919 + Use hang' (and some different techniques) in RST and markdown writers.
14920 Some output is now a bit different.
14922 * Brought citeproc support up to date for citeproc-hs-0.2.
14923 (Patch by Andrea Rossato.)
14925 * Moved all haskell source to src subdirectory. Renamed Main.hs to
14926 pandoc.hs.
14928 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
14929 For now, keeping the old shell script too.
14931 * Added TemplateHaskell to Extensions for executable, removed
14932 -threaded for library. Thanks to duncan.coutts for the bug report.
14933 Resolves Issue #121.
14935 * Moved some Extra-Source-Files to Data-Files.
14937 * Moved tabFilter to Shared.
14939 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
14940 preserve tabs.
14942 * Minor code cleanup based on hlint suggestions.
14944pandoc (1.1)
14946 [ John MacFarlane ]
14948 * Main.hs:
14950 + Changed date on copyright message in Main.hs.
14951 + Have the '-v' option print syntax highlighting languages
14952 separated by commas, and wrapped in lines, instead of in five
14953 columns as before.
14955 * Added --jsmath option. Resolves Issue #68.
14957 + Added --jsmath option to Main.hs
14958 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
14959 + Handle math appropriately in HTML writer when JsMath selected.
14960 + Documented the option in README and man page.
14962 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
14963 for tight and loose lists. Final Para is changed to Plain if all
14964 other list items *end* with a Plain block. Addresses Issue #99.
14966 * HTML reader:
14968 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
14969 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
14970 Added rawVerbatimBlock parser. Resolves Issue #94.
14972 * Markdown reader:
14974 + Allow URLs with spaces in them in links and references, but escape
14975 them as "%20".
14976 + Allow blank space at the end of horizontal rules.
14978 * RST reader: Modified 'unknownDirective' parser to handle comment
14979 blocks correctly, and added tests for comment blocks. Resolves Issue
14980 #86. Closes Debian Bug #500662.
14982 * HTML writer:
14984 + Include classes on tr elements in HTML output:
14985 "header", "odd", "even". This allows tables to be styled with
14986 lines in alternating colors. Resolves Issue #91.
14987 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
14988 This prevents parts of the document that are not math from being
14989 interpreted as math by LaTeXMathML.js.
14991 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
14992 which were formerly ignored. Resolves Issue #95.
14994 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
14995 between a footnote and immediately following nonspace characters in
14996 LaTeX and ConTeXt output. (This gets interpreted as a space, which
14997 is not desired in cases like `text^[note]---`.) Resolves Issue #93.
14999 * Windows installer: Don't require admin privileges to run
15000 installer. Modified pandoc-setup.iss, and changed modpath.iss to
15001 modify HKCU path if user lacks admin privileges. Also fixed case
15002 where oldpath is empty (previously this led to the new path
15003 beginning with a semicolon).
15005 * Updated INSTALL instructions for Arch packages and OS X install using
15006 cabal-install.
15008 * Removed the (now unneeded) debian directory.
15009 Removed empty Codec and System directories.
15011 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
15013 * Modified Setup.hs so that the "test" target returns an error status
15014 when tests fail, and "build" returns a success status if
15015 the build succeeds. Resolves Issue #100.
15017 * Added BUGS to files in tarball.
15020pandoc (1.0.0.1)
15022 [ John MacFarlane ]
15024 * Removed spurious reference to pdf output format from pandoc(1) man page.
15026pandoc (1.0)
15028 [ Andrea Rossato ]
15030 * Added new OpenDocument writer.
15032 * Added support for SmallCaps inline element.
15034 * Added support for integrating pandoc with citeproc-hs.
15036 + Added Cite element to definition and writers.
15037 + Added Text.Pandoc.Biblio module
15038 + Note: This support is included only if the 'citeproc'
15039 Cabal configuration flag is set.
15041 * Made Pandoc data structure an instance of Typeable.
15042 Added new processPandoc and queryPandoc functions, to query
15043 or transform matching elements in a Pandoc structure.
15045 [ Peter Wang ]
15047 * Added new Texinfo writer.
15049 [ John MacFarlane ]
15051 * Changes to Texinfo writer:
15053 + No space between paragraph and following @verbatim (provides more
15054 pleasing appearance in text formats)
15055 + Blank line consistently after list environments.
15056 + Removed deVerb.
15057 + Use @code instead of @verb for inline code (this solves the character
15058 escaping problem for texi2dvi and texi2pdf).
15059 + Added news of Texinfo writer to README.
15060 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
15061 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
15062 default output extension.
15063 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
15065 * Added tests for OpenDocument writer.
15067 * Added ODT writer (using zip-archive library to package output of
15068 OpenDocument writer). Added odt-styles directory with default ODT styles.
15070 * Added new mediawiki writer and tests.
15072 * Markdown reader: Added support for delimited code blocks, with optional
15073 syntax highlighting using highlighting-kate (if the 'highlighting'
15074 configuration option is selected).
15076 + Currently highlighting is supported only in the HTML writer.
15077 + Delimited code blocks can have attributes; using the language name as
15078 class triggers highlighting.
15079 + New Attributes parameter in CodeBlock structure.
15080 + --version now indicates whether syntax highlighting support is compiled
15081 in, and prints a list of supported languages
15083 * Removed debian directory. Pandoc is no longer a native debian package.
15085 * Changes to build process: pandoc can now be built from the repository
15086 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
15087 without Cygwin).
15089 + Include shell scripts themselves in repo, rather than generating from wrappers.
15090 Removed wrappers directory and wrappers Makefile target.
15091 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
15092 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
15093 from templates in the templates/ directory. Instead, they use template
15094 haskell to read data at compile time from the relevant files in data/.
15095 Template haskell functions go in a new module, Text.Pandoc.TH.
15096 + man pages are now generated in Setup.hs hook, not by Makefile
15097 + Makefile 'tarball' target now calls Cabal's 'sdist'
15098 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
15099 + Added "Build-Type" field to pandoc.cabal to avoid warning.
15100 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
15101 so 'sdist' and 'clean' will work properly.
15102 + Setup.hs now generates man pages in a postbuild hook.
15103 + Added dependency-checking to Setup.hs, so it only rebuilds things
15104 that need rebuilding.
15105 + Added 'library' and 'executable' configuration flags.
15106 Cabal can now be told to build just the library or just the executable.
15107 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
15108 For example: CABALOPTS=-fhighlighting make
15110 * Rewrote test suite so it doesn't depend on perl or unix tools.
15112 + Replaced old runtests.pl with a Haskell script RunTests.hs.
15113 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
15114 + Added test hook to Setup.hs, so tests may be run from cabal.
15115 + Changed Makefile's 'test' target to run tests via cabal.
15116 + Removed old generate.sh.
15117 + Since we no longer have 'sed' to filter out raw HTML sections
15118 from the docbook writer test, or raw LaTeX sections from the
15119 context writer test, we now just include these sections.
15120 They can be taken out if it is necessary to process the files.
15121 + Updated latex and context writer tests to remove extra spaces
15122 after '\\item'
15123 + Added a markdown table reader test.
15124 + Added markdown-reader-more.txt to test suite, for additional test cases
15125 for raw ConTeXt environments and more.
15127 * Compatibility fixes for CPP, Cabal, and haddock:
15129 + Use CPP in "Extensions" field in pandoc.cabal.
15130 + Removed use of backslash string continuations in source files.
15132 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
15133 base >= 3.
15135 * Require parsec < 3.
15136 The compatibility module in parsec 3.0.0 gives far worse performance than
15137 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
15138 version of parsec, and then we'll go to parsec 3.0.0.
15140 * Removed Text.Regex dependencies by rewriting using plain Haskell
15141 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
15143 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
15145 * Makefile:
15147 + Added 'configure' as dependency of 'uninstall-all'.
15148 (It uses the Cabal build program.)
15149 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
15150 Note that Cabal will automatically choose the ghc-pkg appropriate
15151 for the compiler selected, so normally specifying GHC by itself
15152 is sufficient.
15154 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
15155 its IO and conversion functions.
15157 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
15158 everything is -Wall clean.
15160 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
15161 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
15162 (These are caused by the Lift instance for ByteString.)
15164 * Changed the comment used to replace unsafe HTML if sanitize-html option
15165 selected.
15167 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
15169 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
15171 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
15172 "nbsp" isn't a predefined XML entity.
15174 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
15175 Added some try's in ordered list parsers.
15177 * Man writer: don't escape " as \".
15179 * Allow newline before URL in markdown link references. Resolves Issue #81.
15180 Added tests for this issue in new "markdown-reader-more" tests.
15181 Changed RunTests.hs to run these tests.
15183 * Support for display math. Resolves Issue #47.
15185 + Added a DisplayMath/InlineMath selector to Math inlines.
15186 + Markdown parser yields DisplayMath for $$...$$.
15187 + LaTeX parser yields DisplayMath when appropriate. Removed
15188 mathBlock parsers, since the same effect is achieved by the math
15189 inline parsers, now that they handle display math.
15190 + Writers handle DisplayMath as appropriate for the format.
15191 + Modified tests accordingly; added new tests for display math.
15193 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
15194 to LaTeX in its display of math, and supports many non-math LaTeX environments.
15196 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
15197 + Modified HTML writer to print raw TeX when LaTeXMathML is
15198 being used instead of suppressing it.
15199 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
15200 + Replaced ASCIIMathML with LaTeXMathML in source files.
15201 + Modified README and pandoc man page source.
15202 + Added --latexmathml option (kept --asciimathml as a synonym
15203 for backwards compatibility)
15205 * Markdown reader: Parse setext headers before atx headers.
15206 Test case:
15207 # hi
15208 ====
15209 parsed by Markdown.pl as an H1 header with contents "# hi".
15211 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
15212 The marker on the first list item determines the type of the whole
15213 list. Thus, a list like
15214 1. one
15215 - two
15216 * three
15217 gets parsed as a single ordered list. (Previous versions of pandoc
15218 treated this as an ordered list with an unordered sublist.)
15220 * Markdown smart typography:
15222 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
15223 + Use nonbreaking spaces after known abbreviations in markdown parser.
15224 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
15225 not produce a sentence-separating space. Resolves Issue #75.
15227 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
15229 * Treat '\ ' in (extended) markdown as nonbreaking space.
15230 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
15232 * The '--sanitize-html' option now examines URIs in markdown links
15233 and images, and in HTML href and src attributes. If the URI scheme
15234 is not on a whitelist of safe schemes, it is rejected. The main point
15235 is to prevent cross-site scripting attacks using 'javascript:' URIs.
15236 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
15237 and http://ha.ckers.org/xss.html. Resolves Issue #62.
15239 * HTML writer:
15241 + Override Text.XHtml's stringToHtml function,
15242 so that characters below 0xff are not converted to numerical entity
15243 references. Also convert '\160' to "&nbsp;". This should aid readability
15244 and editability of the HTML source. It does presuppose that the HTML
15245 will be served as UTF-8.
15246 + In code blocks, change leading newlines to <br /> tags.
15247 (Some browsers ignore them.) Resolves Issue #71.
15248 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
15249 + Use style attributes rather than css classes for strikethrough
15250 and ordered list styles. This works better when fragments, rather than
15251 standalone documents, are generated.
15253 * HTML reader: Count anything that isn't a known block (HTML) tag as an
15254 inline tag (rather than the other way around). Added "html", "head", and
15255 "body" to list of block tags. Resolves Issue #66, allowing
15256 <lj> to count as an inline tag.
15258 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
15259 boldface, and other inline elements. Resolves Issue #64.
15261 * LaTeX reader: improvements in raw LaTeX parsing.
15263 + "loose punctuation" (like {}) parsed as Space
15264 + Para elements must contain more than Str "" and Space elements
15265 + Added parser for "\ignore" command used in literate haskell.
15266 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
15267 mode, these parsers simply strip off the command part and allow
15268 the arguments to be parsed normally. So, for example,
15269 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
15270 Str "{\\emph{hi}}".
15271 + Parse lhs "code" environments as verbatim.
15272 Refactored parsers for verbatim environments.
15273 + Removed specialEnvironment parser.
15274 + parse '{}', if present, after \textless, \textgreater,
15275 \textbar, \textbackslash, \ldots.
15276 + Parse unescaped special characters verbatim rather than
15277 changing them to spaces. This way arguments of unknown
15278 commands will appear in braces.
15280 * Parse raw ConTeXt environments as TeX in markdown reader.
15281 Resolves Issue #73.
15283 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
15285 * Made some structural changes to parsing of raw LaTeX environments.
15286 Previously there was a special block parser for LaTeX environments.
15287 It returned a Para element containing the raw TeX inline. This has
15288 been removed, and the raw LaTeX environment parser is now used in the
15289 rawLaTeXInline parser. The effect is exactly the same, except that we
15290 can now handle consecutive LaTeX and ConTeXt environments not separated
15291 by spaces. This new flexibility is required by the example in
15292 Issue #73:
15294 \placeformula \startformula
15295 L_{1} = L_{2}
15296 \stopformula
15298 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
15299 returns a string) rather than rawLaTeXEnvironment (which returns a block
15300 element). This is more likely to be useful in other applications.
15302 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
15303 \textsubscript conflicts with a definition in the memoir class.
15304 Resolves Issue #65.
15306 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
15308 * Added amsmath package to default LaTeX header. Resolves Issue #48.
15310 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
15311 list introduction lines.
15313 * Changed Float to Double in definition of Table element.
15314 (Double is more efficient in GHC.)
15316 * Fixed bug in Markdown parser: regular $s triggering math mode.
15317 For example: "shoes ($20) and socks ($5)."
15318 The fix consists in two new restrictions:
15320 + the $ that ends a math span may not be directly followed by a digit.
15321 + no blank lines may be included within a math span.
15323 Thanks to Joseph Reagle for noticing the bug.
15325 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
15326 Removed 'joinWithSep' from Text.Pandoc.Shared.
15328 * Updated README and man pages. Acknowledge contributors in README.
15329 Added paragraph to README about producing S5 with separate CSS/javascript.
15331 * Updated INSTALL to reflect new build system (including configuration
15332 options) and document new dependencies. Added note to INSTALL that
15333 Cabal >= 1.2 is required for build. Resolves Issue #74.
15335 * Fixed some haddock documentation errors.
15337 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
15339pandoc (0.46) unstable; urgency=low
15341 [ John MacFarlane ]
15343 * Made -H, -A, and -B options cumulative: if they are specified
15344 multiple times, multiple files will be included.
15346 * Added optional HTML sanitization using a whitelist.
15347 When this option is specified (--sanitize-html on the command line),
15348 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
15349 attributes will be removed. This option should be especially useful
15350 for those who want to use pandoc libraries in web applications, where
15351 users will provide the input.
15353 + Main.hs: Added --sanitize-html option.
15355 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
15357 + Text.Pandoc.Readers.HTML:
15358 - Added whitelists of sanitaryTags and sanitaryAttributes.
15359 - Added parsers to check these lists (and state) to see if a given
15360 tag or attribute should be counted unsafe.
15361 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
15362 with comments.
15363 - Modified htmlAttribute to remove unsafe attributes.
15364 - Modified htmlScript and htmlStyle to remove these elements if
15365 unsafe.
15367 + Modified README and man pages to document new option.
15369 * Improved handling of email addresses in markdown and reStructuredText.
15370 Consolidated uri and email address parsers. (Resolves Issue #37.)
15372 + New emailAddress and uri parsers in Text.Pandoc.Shared.
15373 - uri parser uses parseURI from Network.URI.
15374 - emailAddress parser properly handles email addresses with periods
15375 in them.
15377 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
15378 and Text.Pandoc.Readers.Markdown.
15380 * Markdown reader:
15382 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
15383 nested in an Emph. (A '*' is only recognized as the end of the
15384 emphasis if it's not the beginning of a strong emphasis.)
15386 + Moved blockQuote parser before list parsers for performance.
15388 + Modified 'source' parser to allow backslash-escapes in URLs.
15389 So, for example, [my](/url\(1\)) yields a link to /url(1).
15390 Resolves Issue #34.
15392 + Disallowed links within links. (Resolves Issue #35.)
15393 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
15394 instead of hard-coding the inline parser takes an inline parser
15395 as a parameter.
15396 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
15397 - Removed unneeded inlineString function.
15398 - Added inlineNonLink parser, which is now used in the definition of
15399 reference.
15400 - Added inlineParsers list and redefined inline and inlineNonLink parsers
15401 in terms of it.
15402 - Added failIfLink parser.
15404 + Better handling of parentheses in URLs and quotation marks in titles.
15405 - 'source' parser first tries to parse URL with balanced parentheses;
15406 if that doesn't work, it tries to parse everything beginning with
15407 '(' and ending with ')'.
15408 - source parser now uses an auxiliary function source'.
15409 - linkTitle parser simplified and improved, under assumption that it
15410 will be called in context of source'.
15412 + Make 'block' conditional on strictness state, instead of using
15413 failIfStrict in block parsers. Use a different ordering of parsers
15414 in strict mode (raw HTML block before paragraph) for performance.
15415 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
15416 Simplified htmlBlock, since we know it's only called in strict
15417 mode.
15419 + Improved handling of raw HTML. (Resolves Issue #36.)
15420 - Tags that can be either block or inline (e.g. <ins>) should
15421 be treated as block when appropriate and as inline when
15422 appropriate. Thus, for example,
15423 <ins>hi</ins>
15424 should be treated as a paragraph with inline <ins> tags, while
15425 <ins>
15427 </ins>
15428 should be treated as a paragraph within <ins> tags.
15429 - Moved htmlBlock after para in list of block parsers. This ensures
15430 that tags that can be either block or inline get parsed as inline
15431 when appropriate.
15432 - Modified rawHtmlInline' so that block elements aren't treated as
15433 inline.
15434 - Modified para parser so that paragraphs containing only HTML tags and
15435 blank space are not allowed. Treat these as raw HTML blocks instead.
15437 + Fixed bug wherein HTML preceding a code block could cause it to
15438 be parsed as a paragraph. The problem is that the HTML parser
15439 used to eat all blank space after an HTML block, including the
15440 indentation of the code block. (Resolves Issue #39.)
15441 - In Text.Pandoc.Readers.HTML, removed parsing of following space
15442 from rawHtmlBlock.
15443 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
15444 indentation is eaten *only* on the first line after the HTML
15445 block. This means that in
15446 <div>
15447 foo
15448 <div>
15449 the foo won't be treated as a code block, but in
15450 <div>
15452 foo
15454 </div>
15455 it will. This seems the right approach for least surprise.
15457 * RST reader:
15459 + Fixed bug in parsing explicit links (resolves Issue #44).
15460 The problem was that we were looking for inlines until a '<' character
15461 signaled the start of the URL; so, if you hit a reference-style link,
15462 it would keep looking til the end of the document. Fix: change
15463 inline => (notFollowedBy (char '`') >> inline). Note that this won't
15464 allow code inlines in links, but these aren't allowed in resT anyway.
15466 + Cleaned up parsing of reference names in key blocks and links.
15467 Allow nonquoted reference links to contain isolated '.', '-', '_', so
15468 so that strings like 'a_b_' count as links.
15470 + Removed unnecessary check for following link in str.
15471 This is unnecessary now that link is above str in the definition of
15472 'inline'.
15474 * HTML reader:
15476 + Modified rawHtmlBlock so it parses </html> and </body> tags.
15477 This allows these tags to be handled correctly in Markdown.
15478 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
15479 since these are handled in parseHtml. (Resolves Issue #38.)
15481 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
15483 + Don't interpret contents of style tags as markdown.
15484 (Resolves Issue #40.)
15485 - Added htmlStyle, analogous to htmlScript.
15486 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
15487 - Moved "script" from the list of tags that can be either block or
15488 inline to the list of block tags.
15490 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
15491 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
15492 inline tags would be included in raw HTML blocks.
15494 + Modified anyHtmlBlockTag to test for (not inline) rather than
15495 directly for block. This allows us to handle e.g. docbook in
15496 the markdown reader.
15498 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
15499 Updated LaTeX reader test to use --parse-raw.
15501 * HTML writer:
15503 + Modified rules for automatic HTML header identifiers to
15504 ensure that identifiers begin with an alphabetic character.
15505 The new rules are described in README. (Resolves Issue #33.)
15507 + Changed handling of titles in HTML writer so you don't get
15508 "titleprefix - " followed by nothing.
15510 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
15511 spacing. Each block element is wrapped with either Pad or Reg.
15512 Pad'ed elements are guaranteed to have a blank line in between.
15514 * RST writer:
15516 + Refactored RST writer to use a record instead of a tuple for state,
15517 and to include options in state so it doesn't need to be passed as
15518 a parameter.
15520 + Use an interpreted text role to render math in restructuredText.
15521 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
15522 strategy.
15524 [ Recai Oktaş ]
15526 * Debian packaging changes:
15528 + Remove the empty 'include' directory in -dev package, which lintian
15529 complains about.
15530 + Bump Standarts-Version to 3.7.3.
15531 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
15532 lintian.
15534 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
15536pandoc (0.45) unstable; urgency=low
15538 [ John MacFarlane ]
15540 * Simplified parsing of reference keys and notes in markdown and RST
15541 readers: The Reference data structure from Text.Pandoc.Shared is no
15542 longer needed, since referenceKey and noteBlock parses return strings
15543 (as many blank lines as were occupied by the key or note) and update
15544 state themselves. getPosition and setPosition are now used to ensure
15545 that error messages will give the correct line number. This yields
15546 cleaner (and slightly faster) code, with more accurate parsing error
15547 messages.
15549 * Added new Math inline element:
15551 + Markdown and LaTeX readers now convert TeX math into Math elements,
15552 not TeX.
15553 + This allows math to be treated differently from raw TeX in output.
15554 TeX elements are no longer printed in output formats other than
15555 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
15557 * New default handling of math in writers:
15559 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
15560 parses raw TeX math and outputs a string of Pandoc inlines that
15561 tries to render it as far as possible using unicode characters,
15562 lapsing into literal TeX when needed.
15563 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
15564 and Docbook, if no other method for displaying math in HTML is
15565 specified. Enclosing $'s are no longer printed by default.
15566 + By default, math is put inside `<span class="math">`. This way it can be
15567 distinguished from the surrounding text, e.g. put in a different
15568 font.
15570 * New --gladtex and --mimetex options for display of math in HTML:
15572 + If --gladtex is specified, math is output between `<eq>` tags, so
15573 it can be processed by gladTeX.
15574 + If --mimetex is specified, math is put in `<img>` tags with a link
15575 to the mimetex CGI script (or any other script that takes TeX math
15576 as input and outputs an image). The URL of the script may be
15577 specified, but defaults to /cgi-bin/mimetex.cgi.
15578 + HTMLMathMethod structure in WriterOptions keeps track of how to
15579 display math in HTML output.
15580 + Updated README with a description of the four options for displaying
15581 math in HTML.
15583 * HTML reader:
15585 + Fixed bug: parser for minimized attributes should not swallow
15586 trailing spaces.
15587 + Simplified HTML attribute parsing.
15588 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
15589 longer needed. `<pre>` suffices. All HTML tags in the code block
15590 (e.g. for syntax highlighting) are skipped, because they are not
15591 portable to other output formats. A `<code>...</code>` block not
15592 surrounded by `<pre>` now counts as inline HTML, not a code block.
15593 + Remove just one leading and one trailing newline from contents of
15594 `<pre>...</pre>` in codeBlock parser.
15596 * Markdown reader:
15598 + Removed support for box-style block quotes.
15599 + Require space before title in links and references.
15600 This fixes a bug in parsing URLs like http://silly/url(withparen).
15601 + Improved and simplified setextHeader parser.
15602 + Fixed logic in smart quote parsing, adding some needed 'try'
15603 statements.
15604 + Fixed smart quote parsing so that unicode characters 8216 and 8217
15605 are recognized as single quotes, and 8220 and 8221 as double quotes.
15607 * RST reader:
15609 + Fixed bug in parsing of code blocks. Previously a full tab indent
15610 was required, but RST allows code to be indented any amount.
15611 Resolves Issue #27.
15612 + Allow field lists to be indented.
15613 + Parse the contents of field lists instead of treating as a raw string.
15614 + Represent field lists as definition lists instead of blockquotes.
15615 + Fixed bug in which metadata would be overridden if the document
15616 contained multiple field lists.
15617 + Parse fields associated with '.. image::' blocks, and use 'alt'
15618 field, if given, for image alt and title attributes.
15620 * LaTeX reader:
15622 + Modified specialChar so that '"' characters are parsed.
15623 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
15625 * HTML writer:
15627 + Changes in handling of math (see above).
15628 + Don't produce HTML for table of contents if there are
15629 no headers. (This would be an empty list, which is invalid XHTML.)
15631 * Markdown writer:
15633 + Don't print title attribute if title is empty. (This differs from
15634 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
15635 Gruber has indicated that he prefers this behavior.) Adjusted test
15636 suite accordingly.
15637 + Fixed incorrect line wrapping in paragraphs including hard line
15638 breaks. Resolves Issue #25.
15639 + Fixed bug in markdown writer: If an ordered list item began with
15640 a marker greater than 3 characters in width, and the item took more
15641 than one line, it would appear on the line after the list marker,
15642 e.g.:
15644 (12)
15645 My list item.
15646 Multiline.
15648 Now it works as follows:
15650 (12) My list item.
15651 Multiline.
15653 * RST writer
15655 + Fixed bug in RST writer's handling of ordered lists. Previously,
15656 list items with multiple lines would not always line up with
15657 single-line list items. Now, list items are nested the length of
15658 the list marker + 1. This looks better and ensures that list items
15659 all line up. (Note that list markers are padded to the length of
15660 the longest list marker in the series.)
15661 + Use 3-space indent for unordered lists.
15662 + If label for a link reference contains a colon, surround it by `
15663 signs so it won't be interpreted as the end of the link label.
15665 * LaTeX writer:
15667 + Cleaner output for footnotes. Footnotes now always begin on a new
15668 line, and the final } is on a line by itself only when it needs to
15669 be (i.e. only when the note ends with a Verbatim environment).
15670 + Added writer options to state, so state doesn't need to be passed as
15671 a parameter.
15672 + Text wrapping now provided, using wrapTeXIfNeeded.
15674 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
15675 (thanks to Idris Samawi Hamid for suggestions).
15677 + PrettyPrint module now used for output.
15678 + Writer options are now in state, so they don't have to be passed as
15679 a parameter.
15680 + Text wrapping now provided, using wrapTeXIfNeeded.
15681 + Better treatment of footnotes: footnotes are always on lines by
15682 themselves, and the final } is on a line by itself only when
15683 it needs to be (after \stoptyping).
15684 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
15685 depending on whether --number-sections option is selected.
15686 + Extra blank line inserted after \stopitemize
15687 + Use new, "official" definition of blockquote environment. Also, use
15688 blank line after \startblockquote to balance blank line at the end.
15689 + Both itemized and enumerated lists are now generated using
15690 \start-stopitemize, with appropriate options. Removed definitions
15691 of ltxenum and ltxitem, which are no longer needed. Provided
15692 defaults for itemized lists in the preamble. State keeps track of
15693 ordered list level, so that when default numbering is specified,
15694 the appropriate scheme can be used.
15695 + Changed \useurl to \useURL.
15696 + Changed link color from red to blue.
15697 + Use \subsubsubsubsection etc., since these are supported
15698 (up to at least sub x 5).
15700 * Text.Pandoc.Shared:
15702 + Save and restore position in parseFromString, so that accurate
15703 error messages can be given.
15704 + Improved efficiency of romanNumeral parser.
15705 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
15706 that footnotes occur on lines by themselves (to make them
15707 easier to see and move) and do not screw up line wrapping.
15709 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
15710 if present. Windows Notepad and other applications insert a
15711 BOM at the beginning of a UTF8 file.
15713 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
15714 addition to "\r\n" and '\n').
15716 * Added a writer option for wrapped text and a command-line option
15717 '--no-wrap', which disables text wrapping and minimizes whitespace
15718 in HTML. (Resolves Issue #26.)
15720 + Added support for '--no-wrap' to Main.hs.
15721 + Added wrapIfNeeded function to Text.Pandoc.Shared.
15722 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
15723 Markdown writers.
15724 + Added render and renderFragment helpers to HTML writer.
15726 * Modified html2markdown to run tidy only if the HTML cannot be
15727 parsed. Previously html2markdown piped all input through tidy
15728 before passing it to pandoc. This caused problems on certain pages
15729 (e.g. http://daringfireball.com/markdown) which have well-formed
15730 XHTML that causes tidy to choke. The solution is to pipe through
15731 tidy only if pandoc cannot parse the input by itself. This means
15732 that a temp file is now always used, even when input comes from a
15733 local file or standard input.
15735 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
15736 Text.Pandoc library.
15738 * pandoc.cabal:
15740 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
15741 6.8, pretty and containers must be added to Build-Depends, and it
15742 is desirable to use the -O2 compiler option.) Cabal configurations
15743 allows one to select options depending on the compiler version.
15744 For GHC 6.6, the splitBase option can be disabled.
15745 + pandoc.cabal.ghc66 is provided for users with older versions of
15746 Cabal, which do not support configurations.
15747 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
15748 '--enable-(executable|library)-profiling' is specified. Updated
15749 PROFILING instructions accordingly.
15751 * Makefile:
15753 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
15754 is copied to pandoc.cabal, and the old pandoc.cabal is copied
15755 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
15756 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
15757 will work properly with either GHC 6.6 or 6.8.
15758 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
15759 This is where current versions of Cabal put it.
15760 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
15761 + Removed dependency of templates on ./templates, which is circular
15762 now that templates is a subdirectory of the top-level.
15764 * MacPorts Portfile:
15766 + Modified to install the pandoc library in addition to programs.
15767 + Installation must be done manually rather than using Makefile's
15768 install-all.
15769 + Note that the library must be registered in the activate phase,
15770 after the library files have been copied out of the destroot.
15771 Cabal generates a 'register.sh' script that will do this.
15773 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
15774 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
15775 Closes: #445235
15777 * debian/rules: Converted to UTF-8.
15779 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
15781 * Updated ASCIIMathML.js to latest version.
15783 * Directory structure:
15785 + Moved everything from src into the top-level directory.
15786 + Changed references to source directory in Makefile and
15787 pandoc.cabal.*.
15788 + Moved ASCIIMathML.js, headers, and ui into templates directory.
15789 + Modified fillTemplates.pl to reflect new paths.
15791 [ Recai Oktaş ]
15793 * Makefile: Fixed the issue of having two copies of the library
15794 documentation under some usage scenarios.
15796 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
15797 and GHC_PKG configurable through the environment, to support
15798 unusual ghc installations. For example:
15799 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
15801 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
15803pandoc (0.44) unstable; urgency=low
15805 [ John MacFarlane ]
15807 * Fixed bug in HTML writer: when --toc was used, anchors were put around
15808 headers, which is invalid XHTML (block content within inline element).
15809 Now the anchors are put inside the header tags. Resolves Issue #23.
15811 * Added xmlns attribute to html element in html writer tests.
15812 This attribute is added by more recent versions of the
15813 xhtml library (>= 3000), and is required for valid XHTML.
15815 [ Recai Oktaş ]
15817 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
15818 command instead of 'runhaskell', which, on some platforms (such as s390,
15819 alpha, m68k), throws the following error:
15821 runhaskell Setup.hs configure --prefix=/usr
15822 ghc-6.6.1: not built for interactive use
15824 This causes a serious FTBFS bug. Closes: #440668.
15826 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
15828pandoc (0.43) unstable; urgency=low
15830 [ John MacFarlane ]
15832 * The focus of this release is performance. The markdown parser
15833 is about five times faster than in 0.42, based on benchmarks
15834 with the TextMate manual.
15836 * Main.hs: Replaced CRFilter and tabFilter with single function
15837 tabFilter, which operates on the whole string rather than breaking
15838 it into lines, and handles dos-style line-endings as well as tabs.
15840 * Added separate LaTeX reader and native reader tests; removed
15841 round-trip tests.
15843 * Text.Pandoc.Shared:
15845 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
15846 + General code cleanup (to elimante warnings when compiling with -Wall.)
15847 + Added 'wrapped' function, which helps wrap text into paragraphs,
15848 using the prettyprinting library.
15849 + Rewrote charsInBalanced and charsInBalanced'.
15850 - Documented restriction: open and close must be distinct characters.
15851 - Rearranged options for greater efficiency.
15852 - Bug fix: Changed inner call to charsInBalanced inside
15853 charsInBalanced' to charsInBalanced'.
15854 + anyLine now requires that the line end with a newline (not eof).
15855 This is a harmless assumption, since we always add newlines to the
15856 end of a block before parsing with anyLine, and it yields a 10% speed
15857 boost.
15858 + Removed unnecessary 'try' in anyLine.
15859 + Removed unneeded 'try' from romanNumeral parser.
15860 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
15861 + Removed unneeded 'try' in parseFromString.
15862 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
15863 like 'string'.)
15864 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
15865 'try' is not automatically applied to the 'end' parser. Added
15866 'try' in calls to 'enclosed' where needed. Slight speed increase.
15868 * Writers:
15870 + Replaced individual wrapping routines in RST, Man, and Markdown
15871 writers with 'wrapped' from Text.Pandoc.Shared.
15872 + Rewrote LaTeX writer to use the prettyprinting library,
15873 so we get word wrapping, etc.
15874 + Modified latex writer tests for new latex writer using prettyprinter.
15875 + Fixed bug in LaTeX writer: autolinks would not cause
15876 '\usepackage{url}' to be put in the document header. Also, changes
15877 to state in enumerated list items would be overwritten.
15878 + In Markdown writer, escape paragraphs that begin with ordered list
15879 markers, so they don't get interpreted as ordered lists.
15881 * Text.Pandoc.Reades.LaTeX:
15883 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
15884 numeral after "enum" in "setcounter" would consist entirely of
15885 "i"s. 'enumiv' is legitimate.
15886 + LaTeX command and environment names can't contain numbers.
15887 + Rearranged order of parsers in inline for slight speed improvement.
15888 + Added '`' to special characters and 'unescapedChar'.
15890 * Text.Pandoc.Readers.RST:
15892 + Removed unneeded try's in RST reader; also minor code cleanup.
15893 + Removed tabchar.
15894 + Rearranged parsers in inline (doubled speed).
15896 * Text.Pandoc.Readers.Markdown:
15898 + Skip notes parsing if running in strict mode. (This yields a nice
15899 speed improvement in strict mode.)
15900 + Simplify autolink parsing code, using Network.URI to test for
15901 URIs. Added dependency on network library to debian/control and
15902 pandoc.cabal.
15903 + More perspicuous definition of nonindentSpaces.
15904 + Removed unneeded 'try' in 'rawLine'.
15905 + Combined linebreak and whitespace into a new whitespace parser, to
15906 avoid unnecessary reparsing of space characters.
15907 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
15908 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
15909 + Use lookAhead in parsers for setext headers and definition lists
15910 to see if the next line begins appropriately; if not, don't waste
15911 any more time parsing.
15912 + Don't require blank lines after code block. (It's sufficient to
15913 end code block with a nonindented line.)
15914 + Changed definition of 'emph': italics with '_' must not
15915 be followed by an alphanumeric character. This is to help
15916 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
15917 `[LC<em>TYPE]:my</em>type`.
15918 + Improved Markdown.pl-compatibility in referenceLink: the two parts
15919 of a reference-style link may be separated by one space, but not
15920 more... [a] [link], [not] [a link].
15921 + Fixed markdown inline code parsing so it better accords with
15922 Markdown.pl: the marker for the end of the code section is a clump
15923 of the same number of `'s with which the section began, followed
15924 by a non-` character. So, for example,
15925 ` h ``` i ` -> `<code>h ``` i</code>`.
15926 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
15927 rules are slightly different.
15928 + Rewrote 'para' for greater efficiency.
15929 + Rewrote link parsers for greater efficiency.
15930 + Removed redundant 'referenceLink' in definition of inline (it's
15931 already in 'link').
15932 + Refactored escapeChar so it doesn't need 'try'.
15933 + Refactored hrule for performance in Markdown reader.
15934 + More intelligent rearranging of 'inline' so that most frequently
15935 used parsers are tried first.
15936 + Removed tabchar parser, as whitespace handles tabs anyway.
15938 * Text.Pandoc.CharacterReferences:
15940 + Refactored.
15941 + Removed unnecessary 'try's for a speed improvement.
15942 + Removed unnecessary '&' and ';' from the entity table.
15944 * Build process:
15946 + Makefile: Get VERSION from cabal file, not Main.hs.
15947 + Modified MacPorts Portfile:
15948 - Depend on haddock
15949 - Build and install libraries and library documentation in
15950 addition to pandoc executable
15951 - Added template item for md5 sum in Portfile.in.
15952 - Incorporated changes from MacPorts repository (r28278).
15953 + FreeBSD port: Don't try to generate distinfo in Makefile.
15954 It can be made using 'make makesum' in FreeBSD.
15955 + Make both freebsd and macports targets depend on tarball.
15957 * Website and documentation:
15959 + Updated INSTALL instructions.
15960 + Added pandocwiki demo to website.
15961 + Removed local references to Portfile, since pandoc is now in the
15962 MacPorts repository.
15964 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
15966pandoc (0.42) unstable; urgency=low
15968 [ John MacFarlane ]
15970 * Main.hs: Use utf8 conversion on the extra files loaded with
15971 the -H, -C, -B, and -A options. This fixes problems with unicode
15972 characters in these files.
15974 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
15975 Text.Pandoc.Readers.HTML and without it we get a linking error when
15976 using the library.
15978 * Markdown reader:
15980 + Added new rule for enhanced markdown ordered lists: if the list
15981 marker is a capital letter followed by a period (including a
15982 single-letter capital roman numeral), then it must be followed by
15983 at least two spaces. The point of this is to avoid accidentally
15984 treating people's initials as list markers: a paragraph might begin,
15985 "B. Russell was an English philosopher," and this shouldn't be
15986 treated as a list. Documented change in README.
15987 + Blocks that start with "p. " and a digit are no longer treated
15988 as ordered lists (it's a page number).
15989 + Added a needed 'try' to listItem.
15990 + Removed check for a following setext header in endline.
15991 A full test is too inefficient (doubles benchmark time), and the
15992 substitute we had before is not 100% accurate.
15993 + Don't use Code elements for autolinks if --strict specified.
15995 * LaTeX writer: When a footnote ends with a Verbatim environment, the
15996 close } of the footnote cannot occur on the same line or an error occurs.
15997 Fixed this by adding a newline before the closing } of every footnote.
15999 * HTML writer:
16000 + Removed incorrect "{}" around style information in HTML tables.
16001 Column widths now work properly in HTML.
16002 + If --strict option is specified (and --toc is not), don't include
16003 identifiers in headers, for better Markdown compatibility.
16005 * Build process:
16007 + Separated $(web_dest) and website targets.
16008 + In website, index.txt is now constructed from template index.txt.in.
16009 + Added freebsd target to Markefile. This creates the freebsd Makefile
16010 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
16011 from the repository.
16012 + Added macport target to Makefile. Portfile is built from template
16013 Portfile.in.
16014 + Removed OSX package targets. (Too many difficulties involving
16015 dependencies on dynamic libraries.)
16016 + More complete INSTALL instructions for all architectures.
16018 * Website:
16019 + Added a programming demo, pandocwiki.
16021 [ Recai Oktaş ]
16023 * Do not forget to close pandoc's ITP. Closes: #391666
16025 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
16027pandoc (0.41) unstable; urgency=low
16029 [ John MacFarlane ]
16031 * Fixed bugs in HTML reader:
16032 + Skip material at end *only if* `</html>` is present (previously,
16033 only part of the document would be parsed if an error was
16034 found; now a proper error message is given).
16035 + Added new constant eitherBlockOrInline with elements that may
16036 count either as block-level or as inline. Modified isInline and
16037 isBlock to take this into account.
16038 + Modified rawHtmlBlock to accept any tag (even an inline tag):
16039 this is innocuous, because rawHtmlBlock is tried only if a regular
16040 inline element can't be parsed.
16041 + Added a necessary 'try' in definition of 'para'.
16043 * Fixed bug in markdown ordered list parsing. The problem was that
16044 anyOrderedListStart did not check for a space following the
16045 ordered list marker. So in 'A.B. 2007' the parser would be
16046 expecting a list item, but would not find one, causing an error.
16047 Fixed a similar bug in the RST reader. Resolves Issue #22.
16049 * Refactored RST and Markdown readers using parseFromString.
16051 * LaTeX reader will now skip anything after \end{document}.
16053 * Fixed blockquote output in markdown writer: previously, block
16054 quotes in indented contexts would be indented only in the first
16055 line.
16057 * Added note to INSTALL about variations in versions of the xhtml
16058 library that can lead to failed tests (thanks to Leif LeBaron).
16060 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
16062pandoc (0.4) unstable; urgency=low
16064 [ John MacFarlane ]
16066 * Added two new output formats: groff man pages and ConTeXt. By
16067 default, output files with extensions ".ctx" and ".context" are
16068 assumed to be ConTeXt, and output files with single-digit extensions
16069 are assumed to be man pages.
16071 * Enhanced ordered lists (documented in README, under Lists):
16072 + The OrderedList block element now stores information about
16073 list number style, list number delimiter, and starting number.
16074 + The readers parse this information when possible.
16075 + The writers use this information to style ordered lists.
16076 + The enhancement can be disabled using the --strict option.
16078 * Added support for tables (with a new Table block element). Two kinds
16079 of tables are supported: a simple table with one-line rows, and a
16080 more complex variety with multiline rows. All output formats are
16081 supported, but only markdown tables are parsed at the moment. The
16082 syntax is documented in README.
16084 * Added support for definition lists (with a new DefinitionList block
16085 element). All output and input formats are supported. The syntax is
16086 documented in README.
16088 * Added support for superscripts and subscripts (with new Superscript
16089 and Subscript inline elements). All input and output
16090 formats. The syntax is documented in README.
16092 * Added support for strikeout (with a new Strikeout inline element).
16093 All input and output formats are supported. Thanks to Bradley Kuhn,
16094 who contributed a patch. The syntax is documented in README. Resolves
16095 Issue #18.
16097 * Added a --toc|--table-of-contents option. This causes an automatically
16098 generated table of contents (or an instruction that creates one) to
16099 be inserted at the beginning of the document. Not supported in S5,
16100 DocBook, or man page writers.
16102 * Modified the -m|--asciimathml option:
16104 + If an optional URL argument is provided, a link is inserted
16105 instead of the contents of the ASCIIMathML.js script.
16106 + Nothing is inserted unless the document actually contains
16107 LaTeX math.
16109 * Removed Blank block element as unnecessary.
16111 * Removed Key and Note blocks from the Pandoc data structure. All
16112 links are now stored as explicit links, and note contents are
16113 stored with the (inline) notes.
16115 + All link Targets are now explicit (URL, title) pairs; there
16116 is no longer a 'Ref' target.
16117 + Markdown and RST parsers now need to extract data from key and
16118 note blocks and insert them into the relevant inline elements.
16119 Other parsers have been simplified, since there is no longer any need
16120 to construct separate key and note blocks.
16121 + Markdown, RST, and HTML writers need to construct lists of
16122 notes; Markdown and RST writers need to construct lists of link
16123 references (when the --reference-links option is specified); and
16124 the RST writer needs to construct a list of image substitution
16125 references. All writers have been rewritten to use the State monad
16126 when state is required.
16127 + Several functions (generateReference, keyTable,
16128 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
16129 used by them) have been removed from Text.Pandoc.Shared, since
16130 they are no longer needed. New functions and data structures
16131 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
16132 added. The functions inTags, selfClosingTag, inTagsSimple, and
16133 inTagsIndented have been moved to the DocBook writer, since that
16134 is now the only module that uses them. NoteTable is now exported
16135 in Text.Pandoc.Shared.
16136 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
16137 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
16138 + Added writerNotes and writerReferenceLinks to WriterOptions.
16140 * Added Text.Pandoc module that exports basic readers, writers,
16141 definitions, and utility functions. This should export everything
16142 needed for most uses of Pandoc libraries. The haddock documentation
16143 includes a short example program.
16145 * Text.Pandoc.ASCIIMathML is no longer an exported module.
16147 * Added Text.Pandoc.Blocks module to help in printing markdown
16148 and RST tables. This module provides functions for working with
16149 fixed-width blocks of text--e.g., placing them side by side, as
16150 in a table row.
16152 * Refactored to avoid reliance on Haskell's Text.Regex library, which
16153 (a) is slow, and (b) does not properly handle unicode. This fixed
16154 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
16156 + Replaced 'gsub' with a general list function 'substitute'
16157 that does not rely on Text.Regex.
16158 + Rewrote extractTagType in HTML reader so that it doesn't use
16159 regexs.
16160 + In Markdown reader, replaced email regex test with a custom email
16161 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
16162 with a custom function isSelfClosingTag.
16163 + Modified Docbook writer so that it doesn't rely on Text.Regex for
16164 detecting 'mailto' links.
16165 + Removed escapePreservingRegex and reamped entity-handling
16166 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
16167 avoid reliance on Text.Regex (see below on character reference
16168 handling changes).
16170 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
16172 * Changed handling of XML entities. Entities are now parsed (and unicode
16173 characters returned) in the Markdown and HTML readers, rather than being
16174 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
16175 instead of entities for characters above 128. This makes the HTML and
16176 DocBook output much more readable and more easily editable.
16178 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
16179 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
16180 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
16181 Moved both functions to Text.Pandoc.Writers.Docbook.
16182 + Added characterReference parser to Text.Pandoc.CharacterReferences.
16183 This parses a string and return a unicode character.
16184 + Rewrote decodeCharacterReferences to use the new parser instead of
16185 Text.Regex.
16186 + Added new charRef parser for Markdown and HTML, which replaces the
16187 old 'entity' parser. Added '&' as a special character in Markdown reader.
16188 + Modified HTML and Markdown readers to call decodeEntities on all raw
16189 strings (e.g. authors, dates, link titles), to ensure that no
16190 unprocessed entities are included in the native representation of
16191 the document. (In the HTML reader, most of this work is done by a
16192 change in extractAttributeName.)
16193 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
16194 since a unicode non-breaking space is impossible to distinguish visually
16195 from a regular space. (Resolves Issue #3.)
16196 + Removed encodeEntitiesNumerical.
16197 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
16198 slight performance boost over the old association list.
16199 + Removed unneeded decodeEntities from 'str' parser in HTML and
16200 Markdown readers.
16202 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
16203 fromUTF8, for clarity.
16205 * Replaced old haskell98 module names replaced by hierarchical module
16206 names, e.g. List by Data.List. Removed haskell98 from dependencies
16207 in pandoc.cabal, and added mtl (needed for state monad). Substituted
16208 xhtml for html.
16210 * Refactored and cleaned up character escaping in writers, using
16211 backslashEscapes and escapeStringUsing functions.
16213 * Instead of adding "\n\n" to the end of an input string in Main.hs,
16214 this is now done in the readers. This makes the libraries behave
16215 the way you'd expect from the pandoc program. Resolves Issue #10.
16217 * URLs and email addresses in autolinks are now typeset as Code.
16219 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
16220 doesn't display the whole output unless there's a line ending.
16222 * Major code cleanup in all modules, for greater consistency, concision,
16223 and readability.
16225 * HTML reader:
16227 + Fixed several bugs (extractTagType, attribute parsing).
16228 + Remove Null blocks in lists of blocks when possible.
16229 + Allow HTML comments as raw HTML inline.
16231 * Markdown reader:
16233 + Ordered list items may no longer begin with uppercase letters, or
16234 letters greater than 'n'. (This prevents first initials and page
16235 reference, e.g. 'p. 400', from being parsed as beginning lists.)
16236 Also, numbers beginning list items may no longer end with ')',
16237 which is now allowed only after letters. Note: These changes
16238 may cause documents to be parsed differently. Users should take
16239 care in upgrading.
16240 + Changed autoLink parsing to conform better to Markdown.pl's
16241 behavior. `<google.com>` is not treated as a link, but
16242 `<http://google.com>`, `<ftp://google.com>`, and
16243 `<mailto:google@google.com>` are.
16244 + Cleaned up handling of embedded quotes in link titles. Now these are
16245 stored as a '"' character, not as '&quot;'.
16246 + Use lookAhead parser for the 'first pass' (looking for reference keys),
16247 instead of parsing normally, then using setInput to reset input. This
16248 yields a slight performance boost.
16249 + Fixed several bugs in smart quote recognition.
16250 + Fixed bug in indentSpaces (which didn't properly handle
16251 cases with mixed spaces and tabs).
16252 + Consolidated 'text', 'special', and 'inline' into 'inline'.
16253 + Fixed bug which allowed URL and title to be separated by multiple blank
16254 lines in links and reference keys. They can be on separate lines but
16255 can't have blank lines between them.
16256 + Correctly handle bracketed text inside inline footnotes and links,using
16257 new function inlinesInBalanced. Resolves Issue #14.
16258 + Fixed bug in footnotes: links in footnotes were not being
16259 processed. Solution: three-stage parse. First, get all the
16260 reference keys and add information to state. Next, get all the
16261 notes and add information to state. (Reference keys may be needed
16262 at this stage.) Finally, parse everything else.
16263 + Replaced named constants like 'emphStart' with literals.
16264 + Removed an extra occurrence of escapedChar in definition of inline.
16266 * RST reader:
16268 + Allow the URI in a RST hyperlink target to start on the line
16269 after the reference key.
16270 + Added 'try' in front of 'string', where needed, or used a different
16271 parser. This fixes a bug where ````` would not be correctly parsed as
16272 a verbatim `.
16273 + Fixed slow performance in parsing inline literals in RST reader. The
16274 problem was that ``#`` was seen by 'inline' as a potential link or image.
16275 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
16276 Resolves Issue #8.
16277 + Use lookAhead instead of getInput/setInput in RST reader. Removed
16278 unneeded getState call, since lookAhead automatically saves and
16279 restores the parser state.
16280 + Allow hyperlink target URIs to be split over multiple lines, and
16281 to start on the line after the reference. Resolves Issue #7.
16282 + Fixed handling of autolinks.
16284 * LaTeX reader:
16286 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
16287 for clarity.
16288 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
16289 caret is \^{}, not \^ as before.
16290 + Added parsing for \url.
16291 + Parse \texttt{} as code, provided there's nothing fancy inside.
16293 * HTML writer:
16295 + Modified HTML writer to use the Text.XHtml library. This results
16296 in cleaner, faster code, and it makes it easier to use Pandoc in
16297 other projects, like wikis, which use Text.XHtml. Two functions are
16298 now provided, writeHtml and writeHtmlString: the former outputs an
16299 Html structure, the latter a rendered string. The S5 writer is also
16300 changed, in parallel ways (writeS5, writeS5String).
16301 + The Html header is now written programmatically, so it has been
16302 removed from the 'headers' directory. The S5 header is still
16303 needed, but the doctype and some of the meta declarations have
16304 been removed, since they are written programmatically. This change
16305 introduces a new dependency on the xhtml package.
16306 + Fixed two bugs in email obfuscation involving improper escaping
16307 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
16308 Issue #9.
16309 + Fixed another bug in email obfuscation: If the text to be obfuscated
16310 contains an entity, this needs to be decoded before obfuscation.
16311 Thanks to thsutton for the patch. Resolves Issue #15.
16312 + Changed the way the backlink is displayed in HTML footnotes.
16313 Instead of appearing on a line by itself, it now generally
16314 appears on the last line of the note. (Exception: when the
16315 note does not end with a Plain or Para block.) This saves space
16316 and looks better.
16317 + Added automatic unique identifiers to headers:
16318 - The identifier is derived from the header via a scheme
16319 documented in README.
16320 - WriterState now includes a list of header identifiers and a table
16321 of contents in addition to notes.
16322 - The function uniqueIdentifiers creates a list of unique identifiers
16323 from a list of inline lists (e.g. headers).
16324 - This list is part of WriterState and gets consumed by blockToHtml
16325 each time a header is encountered.
16326 + Include CSS for .strikethrough class in header only if strikethrough
16327 text appears in the document.
16328 + If the 'strict' option is specified, elements that do not appear in
16329 standard markdown (like definition lists) are passed through as
16330 raw HTML.
16331 + Simplified treatment of autolinks, using pattern matching instead of
16332 conditionals.
16334 * Markdown writer:
16336 + Links in markdown output are now printed as inline links by default,
16337 rather than reference links. A --reference-links option has been added
16338 that forces links to be printed as reference links. Resolves Issue #4.
16339 + Use autolinks when possible. Instead of `[site.com](site.com)`,
16340 use `<site.com>`.
16342 * LaTeX writer:
16344 + Rewrote to use the State monad. The preamble now includes only those
16345 packages that are actually required, given the document's content.
16346 Thus, for example, if strikeout is not used, ulem is not required.
16347 Modified LaTeXHeader accordingly.
16348 + Modified LaTeX writer to insert '\,' between consecutive quotes.
16349 + Removed unused function tableRowColumnWidths.
16350 + Simplified code for escaping special characters.
16351 + Leave extra blank line after \maketitle.
16352 + Include empty '\author{}' when no author specified to avoid LaTeX
16353 errors.
16354 + Include fancyvrb code in header only if needed -- that is, only
16355 if there is actually code in a footnote.
16356 + Use \url{} for autolinks.
16357 + Include [mathletters] option in ucs package, so that basic unicode
16358 Greek letters will work correctly.
16360 * RST writer: Force blank line before lists, so that sublists will
16361 be handled correctly.
16363 * Docbook writer: Fixed a bug: email links with text, like
16364 [foo](me@bar.baz), were being incorrectly treated as autolinks.
16366 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
16367 Text.Pandoc.Shared.
16369 * Text.Pandoc.Shared:
16371 + Added defaultWriterOptions.
16372 + Added writerTableOfContents to WriterOptions.
16373 + Added writerIgnoreNotes option to WriterOptions. This is needed
16374 for processing header blocks for a table of contents, since notes on
16375 headers should not appear in the TOC.
16376 + Added prettyprinting for native Table format.
16377 + Removed some unneeded imports.
16378 + Moved escape and nullBlock parsers from
16379 Text.ParserCombinators.Pandoc, since the latter is for
16380 general-purpose parsers that don't depend on Text.Pandoc.Definition.
16381 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
16382 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
16383 writer, because HTML writer now uses these in constructing a table
16384 of contents.
16385 + Added clauses for new inline elements (Strikeout, Superscript,
16386 Subscript) to refsMatch.
16387 + Removed backslashEscape; added new functions escapeStringUsing and
16388 backslashEscapes.
16389 + Moved failIfStrict from markdown reader, since it is now used also
16390 by the HTML reader.
16391 + Added a 'try' to the definition of indentSpaces.
16392 + In definition of 'reference', added check to make sure it's not a note
16393 reference.
16394 + Added functions: camelCaseToHyphenated, toRomanNumeral,
16395 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
16396 charsInBalanced', withHorizDisplacement, romanNumeral
16397 + Fixed a bug in the anyLine parser. Previously it would parse an empty
16398 string "", but it should fail on an empty string, or we get an error
16399 when it is used inside "many" combinators.
16400 + Removed followedBy' parser, replacing it with the lookAhead parser from
16401 Parsec.
16402 + Added some needed 'try's before multicharacter parsers, especially in
16403 'option' contexts.
16404 + Removed the 'try' from the 'end' parser in 'enclosed', so that
16405 'enclosed' behaves like 'option', 'manyTill', etc.
16406 + Added lineClump parser, which parses a raw line block up to and
16407 including any following blank lines.
16408 + Renamed parseFromStr to parseFromString.
16409 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
16410 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
16411 in calling code.
16412 + Removed unneeded 'try' in blanklines.
16413 + Removed endsWith function and rewrote calling functions to use
16414 isSuffixOf instead.
16415 + Added >>~ combinator.
16416 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
16417 Space.
16419 * Refactored runtests.pl; added separate tests for tables.
16421 * Shell scripts:
16423 + Added -asxhtml flag to tidy in html2markdown. This will
16424 perhaps help the parser, which expects closing tags.
16425 + Modified markdown2pdf to run pdflatex a second time if --toc or
16426 --table-of-contents was specified; otherwise the table of
16427 contents won't appear.
16428 + Modified markdown2pdf to print a helpful message if the 'ulem'
16429 LaTeX package is required and not found.
16431 * Changes to build process:
16433 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
16434 is now required.
16435 + Removed cabalize and Pandoc.cabal.in. The repository now contains
16436 pandoc.cabal itself.
16437 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
16438 likes the cabal file to have the same name as the tarball.
16439 + Expanded and revised the package description in pandoc.cabal.
16440 Revised the package synopsis.
16441 + The tarball built by 'make tarball' now contains files built from
16442 templates (including man pages and shell scripts), so pandoc can
16443 be built directly using Cabal tools, without preprocessing.
16444 + Executable binaries are now stripped before installing.
16445 + Man pages are now generated from markdown sources, using pandoc's
16446 man page writer.
16447 + Use HTML version of README (instead of RTF) in Mac OS X installer.
16448 + Instead of testing for the existence of a pandoc symlink in build-exec,
16449 use ln -f.
16451 * Documentation:
16453 + Updated README and man pages with information on new features.
16454 + Updated INSTALL instructions with some useful clarifications and
16455 links.
16456 + Updated web content.
16458 * Added FreeBSD port.
16460 [ Recai Oktaş ]
16462 * debian/control:
16464 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
16465 libghc6-xhtml-dev. Removed libghc6-html-dev.
16466 + Suggest texlive-latex-recommended | tetex-extra instead of
16467 tetex-bin. This brings in fancyvrb and unicode support.
16469 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
16471pandoc (0.3) unstable; urgency=low
16473 [ John MacFarlane ]
16475 * Changes in pandoc options:
16477 + Allow options to follow or precede arguments.
16478 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
16479 + Added '--strict' option.
16480 + Added '-o/--output' option.
16481 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
16482 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
16483 error conditions. This is helpful for writing wrappers.
16484 + Added copyright message to '-v' output, modeled after FSF messages.
16485 + Reformatted usage message so that it doesn't wrap illegibly.
16486 + Removed extra blanks after '-h' and '-D' output.
16488 * Added docbook writer.
16490 * Added implicit setting of default input and output format based
16491 on input and output filename extensions. These defaults are
16492 overridden if explicit input and output formats are specified using
16493 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
16494 and README.
16496 * Allow ordered list items to begin with (single) letters, as well
16497 as numbers. The list item marker may now be terminated either by
16498 '.' or by ')'. This extension to standard markdown is documented
16499 in README.
16501 * Revised footnote syntax. (See README for full details.) The
16502 '[^1]' format now standard in markdown extensions is supported,
16503 as are inline footnotes with this syntax: `^[My note.]`.
16504 The earlier footnote syntax `^(1)` is no longer supported.
16506 * Improved HTML representation of footnotes. All footnotes
16507 are now auto-numbered and appear in an ordered list at the
16508 end of the HTML document. Since the default appearance is now
16509 acceptable, the old footnote styles have been removed from the
16510 HTML header.
16512 * Bug fixes:
16514 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
16515 These readers ran 'runParser' on processed chunks of text to handle
16516 embedded block lists in lists and quotation blocks. But then
16517 any changes made to the parser state in these chunks was lost,
16518 as the state is local to the parser. So, for example, footnotes
16519 didn't work in quotes or list items. The fix: instead of calling
16520 runParser on some raw text, use setInput to make it the input, then
16521 parse it, then use setInput to restore the input to what it was
16522 before. This is shorter and more elegant, and it fixes the problem.
16523 + Fixed bug in notFollowedBy' combinator (adding 'try' before
16524 'parser'). Adjusted code that uses this combinator accordingly.
16525 + Fixed bug in RTF writer that caused improper indentation on
16526 footnotes occurring in indented blocks like lists.
16527 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
16528 and date are parsed correctly. Everything else in the preamble
16529 is skipped.
16530 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
16531 line to count as escaped whitespace.
16532 + Modified LaTeX reader to produce inline links rather than reference
16533 links. Otherwise, links in footnotes aren't handled properly.
16534 + Fixed handling of titles in links in Markdown reader, so that
16535 embedded quotation marks are now handled properly.
16536 + Fixed Markdown reader's handling of embedded brackets in links.
16537 + Fixed Markdown reader so that it only parses bracketed material
16538 as a reference link if there is actually a corresponding key.
16539 + Revised inline code parsing in Markdown reader to conform to
16540 markdown standard. Now any number of `s can begin inline code,
16541 which will end with the same number of `s. For example, to
16542 have two backticks as code, write ``` `` ```. Modified Markdown
16543 writer accordingly.
16544 + Fixed bug in text-wrapping routine in Markdown and RST writers.
16545 Now LineBreaks no longer cause wrapping problems.
16546 + Supported hexadecimal numerical entity references as well as
16547 decimal ones.
16548 + Fixed bug in Markdown reader's handling of underscores and other
16549 inline formatting markers inside reference labels: for example,
16550 in '[A_B]: /url/a_b', the material between underscores was being
16551 parsed as emphasized inlines.
16552 + Changed Markdown reader's handling of backslash escapes so that
16553 only non-alphanumeric characters can be escaped. Strict mode
16554 follows Markdown.pl in only allowing a select group of punctuation
16555 characters to be escaped.
16556 + Modified HTML reader to skip a newline following a `<br>` tag.
16557 Otherwise the newline will be treated as a space at the beginning
16558 of the next line.
16560 * Made handling of code blocks more consistent. Previously, some
16561 readers allowed trailing newlines, while others stripped them.
16562 Now, all readers strip trailing newlines in code blocks. Writers
16563 insert a newline at the end of code blocks as needed.
16565 * Modified readers to make spacing at the end of output more consistent.
16567 * Minor improvements to LaTeX reader:
16569 + '\thanks' now treated like a footnote.
16570 + Simplified parsing of LaTeX command arguments and options.
16571 commandArgs now returns a list of arguments OR options (in
16572 whatever order they appear). The brackets are included, and
16573 a new stripFirstAndLast function is provided to strip them off
16574 when needed. This fixes a problem in dealing with \newcommand
16575 and \newenvironment.
16577 * Revised RTF writer:
16579 + Default font is now Helvetica.
16580 + An '\f0' is added to each '\pard', so that font resizing works
16581 correctly.
16583 * Moved handling of "smart typography" from the writers to the Markdown
16584 and LaTeX readers. This allows great simplification of the writers
16585 and more accurate smart quotes, dashes, and ellipses. DocBook can
16586 now use `<quote>`. The '--smart' option now toggles an option in
16587 the parser state rather than a writer option. Several new kinds
16588 of inline elements have been added: Quoted, Ellipses, Apostrophe,
16589 EmDash, EnDash.
16591 * Changes in HTML writer:
16593 + Include title block in header even when title is null.
16594 + Made javascript obfuscation of emails even more obfuscatory,
16595 by combining it with entity obfuscation.
16597 * Changed default ASCIIMathML text color to black.
16599 * Test suite:
16601 + Added --strip-trailing-cr option to diff in runtests.pl, for
16602 compatibility with Windows.
16603 + Added regression tests with footnotes in quote blocks and lists.
16605 * Makefile changes:
16607 + osx-pkg target creates a Mac OS X package (directory). New osx
16608 directory contains files needed for construction of the package.
16609 + osx-dmg target creates a compressed disk image containing the package.
16610 + win-pkg target creates Windows binary package.
16611 + tarball target creates distribution source tarball.
16612 + website target generates pandoc's website automatically, including
16613 demos. New 'web' directory contains files needed for construction
16614 of the website (which will be created as the 'pandoc' subdirectory
16615 of 'web').
16616 + Makefile checks to see if we're running Windows/Cygwin; if so,
16617 a '.exe' extension is added to each executable in EXECS.
16619 * Removed all wrappers except markdown2pdf and html2markdown.
16621 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
16622 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
16623 option and disables other options.
16625 * Added code to html2markdown that tries to determine the character
16626 encoding of an HTML file, by parsing the "Content-type" meta tag.
16628 + If the encoding can't be determined, then if the content is local,
16629 the local encoding is used; if it comes from a URL, UTF-8 is used
16630 by default.
16631 + If input is from STDIN, don't try to determine character encoding.
16632 + Encoding can be specified explicitly using '-e' option.
16634 * Improved warning messages in wrappers:
16636 + Print warning if iconv not available
16637 + More user-friendly error messages in markdown2pdf, when
16638 pdflatex fails.
16640 * Code cleanup:
16642 + Renamed 'Text/Pandoc/HtmlEntities' module to
16643 'Text/Pandoc/Entities'. Also changed function names so as
16644 not to be HTML-specific.
16645 + Refactored SGML string escaping functions from HTML and Docbook
16646 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
16647 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
16648 used anywhere.
16649 + Removed splitBySpace and replaced it with a general, polymorphic
16650 splitBy function.
16651 + Refactored LaTeX reader for clarity (added isArg function).
16652 + Converted some CR's to LF's in src/ui/default/print.css.
16653 + Added license text to top of source files.
16654 + Added module data for haddock to source files.
16655 + Reformatted code for consistency.
16657 * Rewrote documentation and man pages. Split README into INSTALL
16658 and README.
16660 * Split LICENSE into COPYING and COPYRIGHT.
16662 * Removed TODO, since we now maintain ToDo on the wiki.
16664 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
16665 duplication.
16667 [ Recai Oktaş ]
16669 * Revamped build process to conform to debian standards and created
16670 a proper debian package. Closes: #391666.
16672 * Modified build process to support GHC 6.6.
16674 + The package can still be compiled using GHC 6.4.2, though because
16675 of dependencies the "make deb" target works only with GHC 6.6+.
16676 + The script 'cabalize' is used to create an appropriate
16677 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
16678 Cabal versions.
16680 * Refactored template processing (fillTemplates.pl).
16682 * Modified wrapper scripts to make them more robust and portable.
16683 To avoid code duplication and ensure consistency, wrappers are
16684 generated via a templating system from templates in src/wrappers.
16686 + Wrappers now accept multiple filenames, when appropriate.
16687 + Spaces and tabs allowed in filenames.
16688 + getopts shell builtin is used for portable option parsing.
16689 + Improved html2markdown's web grabber code, making it more robust,
16690 configurable and verbose. Added '-e', '-g' options.
16692 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
16694pandoc (0.2) unstable; urgency=low
16696 * Fixed unicode/utf-8 translation
16698 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
16700pandoc (0.1) unstable; urgency=low
16702 * Initial creation of debian package
16704 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400