1pandoc (2.6) PROVISIONAL
3 * Support ipynb (Jupyter notebook) as input and output format.
5 + Add `ipynb` as input and output format (extension `.ipynb`).
6 + Added Text.Pandoc.Readers.Ipynb [API change].
7 + Added Text.Pandoc.Writers.Ipynb [API change].
8 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
10 + Depend on ipynb library.
11 + Note: there is no template for ipynb.
13 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
14 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
17 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
18 extension. Task lists are supported from markdown and gfm input.
19 They should work, to some degree, in all output formats, though in
20 most formats you'll get a bullet list with a unicode character for
21 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
22 box is used as the list marker. API changes:
24 + Added constructor `Ext_task_lists` to `Extension`.
25 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
28 * Allow some command line options to take URL in addition to FILE.
29 `--include-in-header`, `--include-before-body`, `--include-after-body`.
33 + Handle empty `start` attribute (see #5162).
34 + Treat `textarea` as a verbatim environment (#5241) and preserve
39 + Change treatment of `number-lines` directive (Brian Leung,
40 #5207). Directives of this type without numeric inputs should
41 not have a `startFrom` attribute; with a blank value, the
42 writers can produce extra whitespace.
43 + Removed superfluous `sourceCode` class on code blocks (#5047).
44 + Handle `sourcecode` directive as synonynm for `code` (#5204).
48 + Remove `sourceCode` class for literate Haskell code blocks
49 (#5047). Reverse order of `literate` and `haskell` classes on
50 code blocks when parsing literate Haskell, so `haskell` is
52 + Treat `<textarea>` as a verbatim environment (#5241).
56 + Handle `minlevel` option differently (#5190, Brian Leung).
57 When `minlevel` exceeds the original minimum level observed in
58 the file to be included, every heading should be shifted
60 + Allow for case of `:minlevel == 0` (#5190).
61 + Fix treatment of links to images (#5191, Albert Krewinkel).
62 Links with descriptions which are pointing to images are no
63 longer parsed as inline images, but as links.
64 + Add support for #+SELECT_TAGS (Brian Leung).
65 + Separate filtering logic from conversion function (Brian Leung).
67 * TWiki reader: Fix performance issue with underscores (#3921).
69 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
70 We may not still be exactly matching mediawiki's algorithm.
74 + Remove `sourceCode` class for literate Haskell code blocks
75 (#5047). Reverse order of `literate` and `haskell` classes on
76 code blocks when parsing literate Haskell, so `haskell` is
78 + Support `\DeclareMathOperator` (#5149).
79 + Support `\inputminted` (#5103).
80 + Support `\endinput` (#5233).
81 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
82 was interpreted as a file extension, leading pandoc not to add
83 `.tex` (and thus not to find the file). The new behavior matches
88 + Use `mapLeft` from Shared instead of defining own.
90 * Docx reader (Jesse Rosenthal):
92 + Handle level overrides (#5134).
96 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
97 Also supports additional core properties: `subject`, `lang`,
98 `category`, `description`.
99 + Make Level into a real type, instead of an alias for a tuple
102 * ICML writer (Mauro Bieg):
104 + Support custom-styles (#5137, see #2106).
105 + Support unnumbered headers (#5140).
107 * Texinfo writer: Use header identifier for anchor if present (#4731).
108 Previously we were overwriting an existing identifier with a new one.
110 * Org writer: Preserve line-numbering for example and code blocks
113 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
114 in HTML and PDF as a unicode minus sign.
116 * Ms writer: Ensure we have a newline after .EN in disply math (#5251).
118 * RST writer: Don't wrap simple table header lines (#5128).
120 * Asciidoc writer: Shorter delimiters for tables, blockquotes
121 (#4364). This matches asciidoctor reference docs.
123 * Dokuwiki writer: Remove automatic `:` prefix before internal image
124 links (#5183, Damien Clochard). This prevented users from making
125 relative image links.
127 * Zimwiki writer: remove automatic colon prefix before internal
128 images (#5183, Damien Clochard).
130 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
131 (#5105). Captions used to have the word 'caption' prepended; this
132 has been removed. Also, 'thumb' is used instead of 'frame' to
133 allow images to be resized.
137 + Ensure that we don't get > 2 levels of section nesting,
138 even with slide level > 2 (#5168).
139 + If slide level == N but there is no N-level header, make
140 sure the next header with level > N gets treated as a slide
141 and put in a section, rather than remaining loose (#5168).
145 + Make `plain` RawBlocks pass through in `plain` output.
146 + Include needed whitespace after HTML figure (#5121).
147 We use HTML for a figure in markdown dialects that can't
148 represent it natively.
152 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
153 + Implement `--toc` (`writerTableOfContents`)
154 in commonmark/gfm writers (#5172).
158 + Ensure that picture transforms are done on metadata too.
159 + Small fixes to `nav.xhtml`:
160 Add 'landmarks' id attribute to the landmarks nav.
161 Replace old default CSS removing numbers from ol.toc li
162 with new rules that match `nav#toc ol, nav#landmarks ol`.
163 We keep the `toc` class on `ol` for backwards compatibility.
167 + Make raw content marked `beamer` pass through in `beamer`
168 output (pandoc/lua-filters#40).
169 + Beamer: avoid duplicated `fragile` property in some cases
171 + Add `#` special characters for listings (#4939).
172 This character needs special handling in `\lstinline`.
174 * RTF writer: use `toTableOfContents` from Shared to replace
179 + Support custom properties. Also supports additional core
180 properties: `subject`, `category`, `description` (#5252,
181 Agustín Martín Barbero).
182 + Use `toTableOfContents` from Shared to replace old duplicated code.
184 * ODT writer (Augustín Martín Barbero):
186 + Fix typo in custom properties (#2839).
187 + Improve standard properties, including the following core
188 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
189 `keywords`, `initial-creator` (from authors), `creation-date`
190 (actual creation date) (#5252).
194 + Allow '-' in filenames for custom lua writers (#5187).
195 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
196 + sample.lua: Add a missing `>` (MichaWiedenmann).
198 * reveal.js template: Add `zoomKey` config (#4249).
200 * HTML5 template: Remove unnecessary type="text/css" on style and
201 link for HTML5 (#5146).
203 * LaTeX template (Andrew Dunning, except where noted):
205 + Prevent fontspec from scaling `mainfont` to match the default
206 font, Latin Modern. A main font set to 12pt could
207 previously appear between 11pt to 13pt depending on its design.
208 To return to the earlier rendering, use `-V
209 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
210 + Display monospaced fonts without TeX ligatures when using
211 `--pdf-engine=lualatex`. It now matches the behaviour of other
212 engines (#5212, #5218).
213 + Remove the deprecated `romanfont` variable. The functionality of
214 `mainfont` is identical (#5218).
215 + Render `\subtitle` with the standard document classes.
216 Previously, `subtitle` only appeared when using the KOMA-Script
217 classes or Beamer (#5213, #5244).
218 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
219 several language selection problems, notably with retaining
220 French spacing conventions when switching to a verbatim
221 environment or another language; and in printing Greek text
222 without hyphenation (#5193).
223 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
224 available, improving the appearance of URLs by allowing them to
225 break at additional points (#5193).
226 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
227 to correct heading levels in PDF bookmarks: see the [KOMA-Script
228 3.26 release notes](https://komascript.de/release3.26) (#5193).
229 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
230 avoid a possible error when using additional packages alongside
231 footnotes in tables (#5193, closes #4861).
232 + Remove obsolete `fixltx2e` package, which has no functionality
233 with TeX Live 2015 or later (#5193).
234 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
235 + Restrict `institute` variable to Beamer (#5219).
236 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
237 package if available to make footnotes in tables compatible
238 with `hyperref` (#5234).
239 + Number parts and chapters in book classes only if the
240 `numbersections` variable is set, for consistency with other
241 output formats. To return to the previous behaviour, use
242 `-V numbersections -V secnumdepth=0` (#5235).
243 + Reindent file (#5193).
244 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
245 + Set default listings language for lua, assembler (#5227, John
246 MacFarlane). Otherwise we get an error when trying to compile code
247 with lua or assembler code. To change the default dialect
248 (currenty 5.3 for lua and x86masm for assembler), you can use
249 `--include-in-header` to inject something like
250 `\lstset{defaultdialect=[5.2]Lua}`.
252 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
253 in an instance of PandocMonad, like the other readers and
254 writers. [API change]
256 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
257 in an instance of PandocMonad, like the other readers and
258 writers. [API change]
260 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
261 for `PandocError`. [API change]
263 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
264 This is refactored out from the Markdown writer.
265 It can be used in other writers to create a table of contents.
267 * Improve error messages for UTF-8 decoding errors. Now we give
268 the filename and byte offset (#4765).
270 * Text.Pandoc.XML: Strip out illegal XML characters in
271 `escapeXMLString` (#5119).
273 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
274 The implementation of `pipeProcess` was rewritten to fix sporadic
275 failures caused by prematurely closed pipes.
277 * Use `safeRead` instead of `read` everywhere in the code
278 (John MacFarlane, Mauro Bieg, #5162, #5180).
280 * Text.Pandoc.SelfContained: Decompress `.svgz` when
281 converting to `data:` URI (#5163, Alexander Krotov).
283 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
284 (#5175, Alexander Krotov). [API change]
286 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
287 When pandoc is compiled with ghc 8.6, Windows paths are treated
288 differently, and paths beginning `\\server` no longer work.
289 This commit rewrites such patsh to `\\?\UNC\server` which works.
290 The change operates at the level of argument parsing, so it
291 only affects the command line program.
293 * Simplify/fix reading of `--metadata` values on command line
294 to avoid problems relating to hvr/HsYAML#7 (#5177).
296 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
297 Krewinkel). Incorrect types to pandoc element constructors are
298 automatically converted to the correct types when possible. This was
299 already done for most constructors, but conversions are now also done
300 for nested types (like lists of lists).
302 * Removed custom Setup.hs, use build-type: simple. The only thing we
303 gained from the custom build was automatic installation of the man
304 page when using 'cabal install'. But custom builds cause problems,
305 e.g., with cross-compilation. Installation of the man page is
306 better handled by packagers. Note to packagers (e.g. Debian): it
307 may be necessary to add a step installing the man page with the
310 * Allow latest http-client, tasty, zip-archive, Glob.
312 * Require skylighting >= 0.7.5, adding support for sml, J,
315 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
316 works well with cabal v2.
320 + Use button for installer links (John MacFarlane, Mauro Bieg,
322 + Fix links and bump required stack version (max).
323 + Improve installation notes on associated software (Andrew
324 Dunning). Includes explanation of how to install related tools
325 with package managers (since the method of installing
326 `rsvg-convert` is not obvious).
328 * doc/org.md: improve documentation of org features (Albert
331 * doc/lua-filters.md: use 3rd level headers for module fields.
335 + Clarify automatic identifiers (#5201). We remove
336 non-alphanumerics. This includes, e.g., emojis.
337 + Fix example for Div with id (Geoffrey Ely).
338 + Update list of LaTeX packages used.
339 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
340 + Mention `raw_attribute` in documentation for `raw_html` and
341 `raw_tex` (#5240, thanks to @eiro).
342 + Clarify that `$sep$` must come right before `$endfor$` in templates
344 + Document metadata support for docx, odt, pptx writers (Agustín
346 + Reorganize template variables (#5249, Andrew Dunning).
347 Add additional headings to categorize variables, and
348 alphabetize when there is large number; add more examples.
349 + Document `date-meta` template variable (#5260, Tristan Stenner).
351 * trypandoc: Fix CSS and viewport.
355 * Text.Pandoc.App: split into several unexported submodules (Albert
356 Krewinkel): Text.Pandoc.App.FormatHeuristics,
357 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
358 Text.Pandoc.App.OutputSettings. This is motivated partly by the
359 desire to reduce recompilations when something is modified,
360 since App previously depended on virtually every other module.
362 * Text.Pandoc.Extensions
364 + Semantically, `gfm_auto_identifiers` is now a modifier of
365 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
366 be turned on, and then the type of identifier produced depends on
367 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
368 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
369 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
370 GitHub doesn't seem to strip non-ascii characters any more.
372 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
374 + Test AST object equality via Haskell (#5092). Equality of Lua
375 objects representing pandoc AST elements is tested by unmarshalling
376 the objects and comparing the result in Haskell.
377 A new function `equals` which performs this test has been added to the
378 `pandoc.utils` module.
379 + Improve stringify. Meta value strings (MetaString)
380 and booleans (MetaBool) are now converted to the literal string and the
381 lowercase boolean name, respectively. Previously, all values of these
382 types were converted to the empty string.
384 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
385 already exists (Alexander Krotov).
387 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
388 or beginning of line (#5050).
390 * Text.Pandoc.Readers.Markdown
392 + Fix parsing of citations, quotes, and underline emphasis
393 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
394 and underline emphasis were no longer recognized after certain
395 symbols, like parentheses (#5099, #5053).
396 + In pandoc 2.4, a soft break after an abbreviation would be
397 relocated before it to allow for insertion of a nonbreaking
398 space after the abbreviation. This behavior is here reverted.
399 A soft break after an abbreviation will remain, and no nonbreaking
400 space will be added. Those who care about this issue should take care not
401 to end lines with an abbreviation, or to insert nonbreaking spaces
404 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
405 `<body>` (Alexander Krotov). Some libraries include custom elements
408 * Text.Pandoc.Readers.HTML
410 + Allow `tfoot` before body rows (#5079).
411 + Parse `<small>` as a Span with class "small" (#5080).
412 + Allow thead containing a row with `td` rather than `th` (#5014).
414 * Text.Pandoc.Readers.LaTeX
416 + Cleaned up handling of dimension arguments. Allow decimal points,
418 + Don't allow arguments for verbatim, etc.
419 + Allow space before bracketed options.
420 + Allow optional arguments after `\\` in tables.
421 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
422 but know that these font changing commands take no arguments.
424 * Text.Pandoc.Readers.Muse
426 + Trim whitespace before parsing grid table cells (Alexander Krotov).
427 + Add grid tables support (Alexander Krotov).
431 + For bibliography match Div with id `refs`, not class `references`.
432 This was a mismatch between pandoc's docx, epub, latex, and markdown
433 writers and the behavior of pandoc-citeproc, which actually looks for a
434 div with id `refs` rather than one with class `references`.
435 + Exactly match GitHub's identifier generating algorithm (#5057).
436 + Add parameter for `Extensions` to `uniqueIdent` and
437 `inlineListToIdentifier` (#5057). [API change]
438 This allows these functions to be sensitive to the settings of
439 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
440 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
441 also means that `gfm_auto_identifiers` can now be used in all formats.
443 * Text.Pandoc.Writers.AsciiDoc
445 + Use `.`+ as list markers to support nested ordered lists (#5087).
446 + Support list number styles (#5089).
447 + Render Spans using `[#id .class]#contents#` (#5080).
449 * Text.Pandoc.Writers.CommonMark
451 + Respect `--ascii` (#5043, quasicomputational).
452 + Make sure `--ascii` affects quotes, super/subscript.
454 * Text.Pandoc.Writers.Docx
456 + Fix bookmarks to headers with long titles (#5091).
457 Word has a 40 character limit for bookmark names. In addition, bookmarks
458 must begin with a letter. Since pandoc's auto-generated identifiers may
459 not respect these constraints, some internal links did not work. With
460 this change, pandoc uses a bookmark name based on the SHA1 hash of the
461 identifier when the identifier isn't a legal bookmark name.
462 + Add bookmarks to code blocks (Nikolay Yakimov).
463 + Add bookmarks to images (Nikolay Yakimov).
464 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
466 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
469 <meta name="calibre:series" content="Classics on War and Politics"/>
471 are now included from an epub XML metadata file. You can also include
472 this information in your YAML metadata, like so:
475 series: Classics on War and Policitics
477 In addition, ibooks-specific metadata can now be included via an XML
478 file. (Previously, it could only be included via YAML metadata, see
481 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `"` outside of
484 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
485 This avoids splitting up the output unnecessarily into separate elements.
487 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
488 if `writerIncremental` is True (#5072).
490 * Text.Pandoc.Writers.Muse (Alexander Krotov).
492 + Output tables as grid tables if they have multi-line cells.
493 + Indent simple tables only on the top level.
494 + Output tables with one column as grid tables.
495 + Add support for `--reference-location`.
496 + Internal improvements.
498 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
499 #5095). This was a regression in pandoc 2.4.
501 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
503 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
505 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
506 when there are several choices for a particular character.
510 + Add additional abbreviations (Andrew Dunning)
511 Many of these borrowed from the Chicago Manual of Style 10.42,
512 'Scholarly abbreviations'.
516 + Asciidoc template: add :lang: to title header is lang is set in
519 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
520 Disabling the flag will cause derivation of ToJSON and FromJSON
521 instances via GHC Generics instead of Template Haskell. The flag is
522 enabled by default, as deriving via Generics can be slow (see #4083).
526 + Tweaked drop-down lists.
527 + Put link to site in footer.
528 + Preselect output format.
529 + Update on change of in or out format.
530 + Add man input format.
534 + Fix outdated description of latex_macros extension.
535 + Clarified placement of bibliography.
536 + Added "A note on security."
537 + Fix note on curly brace syntx for locators.
538 + Document new explicit syntax for citeproc locators.
539 + Remove confusing cross-links for some extensions.
540 + Don't put pandoc in code ticks in heading.
541 + Document that `--ascii` works for gfm and commonmark too.
542 + Add `man` to `--from` options.
544 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
551 * New input format `man` (Yan Pashkovsky, John MacFarlane).
555 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
556 via the new `writerPreferAscii` field in `WriterOptions`.
557 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
558 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
559 Previously the to-ascii translation was done in Text.Pandoc.App,
560 and thus not available to those using the writer functions
563 * `--ascii` now works with Markdown output. HTML5 character reference
566 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
567 guaranteed, but the writer will use commands like `\"{a}` and `\l`
568 whenever possible, to avoid emiting a non-ASCII character.
570 * For HTML5 output, `--ascii` now uses HTML5 character reference
571 entities rather than numerical entities.
573 * Improved detection of format based on extension (in Text.Pandoc.App).
574 We now ensure that if someone tries to convert a file for a
575 format that has a pandoc writer but not a reader, it won't just
578 * Add viz. to abbreviations file (#5007, Nick Fleisher).
580 * AsciiDoc writer: always use single-line section headers,
581 instead of the old underline style (#5038). Previously the single-line
582 style would be used if `--atx-headers` was specified, but
583 now it is always used.
585 * RST writer: Use simple tables when possible (#4750).
587 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
588 quasicomputational). Previously, the writer would unconditionally
589 emit HTML output for subscripts, superscripts, strikeouts (if the
590 strikeout extension is disabled) and small caps, even with
591 `raw_html` disabled. Now there are plain-text (and, where
592 possible, fancy Unicode) fallbacks for all of these corresponding
593 (mostly) to the Markdown fallbacks, and the HTML output is only
594 used when `raw_html` is enabled.
596 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
597 This allows raw openxml blocks and inlines to be used in the pptx
598 writer. Caveats: (1) It's up to the user to write
599 well-formed openxml. The chances for corruption, especially with
600 such a brittle format as pptx, is high. (2) Because of
601 the tricky way that blocks map onto shapes, if you are using
602 a raw block, it should be the only block on a slide
603 (otherwise other text might end up overlapping it). (3) The
604 pptx ooxml namespace abbreviations are different from the
605 docx ooxml namespaces. Again, it's up to the user to get it
606 right. Unzipped document and ooxml specification should be
609 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
610 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
611 we tell katex to convert the contents of span elements with
612 class "math". Since math has already been identified, this
613 avoids wasted time parsing for LaTeX delimiters. Note, however,
614 that this may yield unexpected results if you have span elements
615 with class "math" that don't contain LaTeX math.
616 Also, use latest version of KaTeX by default (0.9.0).
618 * The man writer now produces ASCII-only output, using groff escapes,
623 + Add title, author and date to metadata; any remaining
624 metadata fields are added as `meta:user-defined` tags.
625 + Implement table caption numbering (#4949, Nils Carlson).
626 Captioned tables are numbered and labeled with format "Table 1:
627 caption", where "Table" is replaced by a translation, depending
628 on the value of `lang` in metadata. Uncaptioned tables are not
630 + OpenDocument writer: Implement figure numbering in captions (#4944,
631 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
632 The format in the caption is "Figure 1: caption" and so on
633 (where "Figure" is replaced by a translation, depending on the
634 value of `lang` in the metadata). Captioned figures are numbered
635 consecutively and uncaptioned figures are not enumerated. This
636 is necessary in order for LibreOffice to generate an
637 Illustration Index (Table of Figures) for included figures.
639 * RST reader: Pass through fields in unknown directives as div attributes
640 (#4715). Support `class` and `name` attributes for all directives.
642 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
643 Brian Leung). Headers with the corresponding tags should not
644 appear in the output.
646 * Log warnings about missing title attributes now include a
647 suggestion about how to fix the problem (#4909).
649 * Lua filter changes (Albert Krewinkel):
651 + Report traceback when an error occurs. A proper Lua traceback is
652 added if either loading of a file or execution of a filter
653 function fails. This should be of help to authors of Lua filters
654 who need to debug their code.
656 + Allow access to pandoc state (#5015). Lua filters and custom
657 writers now have read-only access to most fields of pandoc's
658 internal state via the global variable `PANDOC_STATE`.
660 + Push ListAttributes via constructor (Albert Krewinkel).
661 This ensures that ListAttributes, as present in OrderedList elements,
662 have additional accessors (viz. `start`, `style`, and `delimiter`).
664 + Rename ReaderOptions fields, use snake_case. Snake case is used
665 in most variable names, using camelCase for these fields was an
666 oversight. A metatable is added to ensure that the old field
667 names remain functional.
669 + Iterate over AST element fields when using `pairs`. This makes
670 it possible to iterate over all ield names of an AST element by
671 using a generic `for` loop with pairs`:
673 for field_name, field_content in pairs(element) do
677 Raw table fields of AST elements should be considered an
678 implementation detail and might change in the future. Accessing
679 element properties should always happen through the fields
680 listed in the Lua filter docs.
682 Note that the iterator currently excludes the `t`/`tag` field.
684 + Ensure that MetaList elements behave like Lists. Methods usable
685 on Lists can also be used on MetaList objects.
687 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
688 object to the constructor `pandoc.MetaList` now returns the
689 passed list as a MetaList. This is consistent with the
690 constructor behavior when passed an (untagged) list.
692 * Custom writers: Custom writers have access to the global variable
693 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
694 a userdata wrapper around the full pandoc AST and exposes two
695 fields, `meta` and `blocks`. The field content is only
696 marshaled on-demand, performance of scripts not accessing the
697 fields remains unaffected.
701 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
703 * Text.Pandoc.Shared:
705 + Export `splitSentences`. This was previously duplicated in the Man and
707 + Add `ToString` typeclass (Alexander Krotov).
709 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
711 * Text.Pandoc.Parsing
713 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
714 + Generalize `readWithM` from `[Char]` to any `Char` Stream
715 that is a `ToString` instance (Alexander Krotov).
717 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
719 * Text.Pandoc.XML: add `toHtml5Entities`.
721 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
724 * Text.Pandoc.Writers.Shared
726 + Add exported functions `toSuperscript` and
727 `toSubscript` (quasicomputational, #4528).
728 + Remove exported functions `metaValueToInlines`,
729 `metaValueToString`. Add new exported functions
730 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
731 `lookupMetaString`. Use these whenever possible for uniformity
732 in writers (Mauro Bieg, #4907). (Note that
733 removed function `metaValueToInlines` was in previous
735 + Add `metaValueToString`.
739 + Expose more useful internals (Albert Krewinkel):
741 - `runFilterFile` to run a Lua filter from file;
742 - data type `Global` and its constructors; and
743 - `setGlobals` to add globals to a Lua environment.
745 This module also contains `Pushable` and `Peekable` instances
746 required to get pandoc's data types to and from Lua. Low-level
747 Lua operation remain hidden in Text.Pandoc.Lua.
749 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
751 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
752 `apply` (Albert Krewinkel).
754 [bug fixes and under-the-hood improvements]
756 * Text.Pandoc.Parsing
758 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
759 + Rewrite `uri` without `withRaw` (Alexander Krotov).
760 + Generalize `parseFromString` and `parseFromString'` to any
761 streams with Char token (Alexander Krotov)
762 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
764 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
767 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
772 + Work around HXT limitation for --syntax-definition with windows
774 + Always preserve tabs for man format. We need it for tables.
775 + Split command line parsing code into a separate unexported
776 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
778 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
781 * New unexported module Text.Pandoc.RoffChar, provided character
782 escape tables for roff formats.
784 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
785 accept processing instructions (#3123, regression since 2.0).
787 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
788 account for empty lists (Alexander Krotov).
790 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
791 headerless table (#4382).
793 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
794 blocks (Brian Leung).
796 * Text.Pandoc.Readers.Vimwiki:
798 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
800 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
802 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
803 `[Char]` (Alexander Krotov).
805 * Text.Pandoc.Readers.LaTeX
807 + Allow space at end of math after `\` (#5010).
808 + Add support for `nolinkurl` command (#4992, Brian Leung).
809 + Simplified type on `doMacros'`.
810 + Tokenize before pulling tokens, rather than after (#4408). This
811 has some performance penalty but is more reliable.
812 + Make macroDef polymorphic and allow in inline context.
813 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
814 I have actually seen tex like this in the wild.
815 + Improved parsing of `\def`, `\let`. We now correctly parse:
825 + Improve parsing of `\def` argspec.
826 + Skip `\PackageError` commands (see #4408).
827 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
828 so no raw tex should result unless we explicitly say `+raw_tex`.
829 Previously some raw commands did make it through.
830 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
831 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
832 Text.Pandoc.Readers.LaTeX.Lang (unexported).
833 + Simplified accent code using unicode-transforms.
834 New dependency on unicode-transforms package for normalization.
835 + Allow verbatim blocks ending with blank lines (#4624).
836 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
837 This collects some of the general-purpose code from the LaTeX reader,
838 with the aim of making the module smaller.
840 * Text.Pandoc.Readers.Markdown
842 + Fix awkward soft break movements before abbreviations (#4635).
843 + Add updateStrPos in a couple places where needed.
845 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
846 (#4947). These are variants for "complex scripts" like Arabic
847 and are now treated just like b, i (bold, italic).
849 * Text.Pandoc.Readers.Muse (Alexander Krotov)
851 + Try to parse lists before trying to parse table.
852 This ensures that tables inside lists are parsed correctly.
853 + Forbid whitespace after opening and before closing markup
856 + Simplify `museToPandocTable` to get rid of partial functions.
857 + Allow footnotes to start with empty line.
858 + Make sure that the whole text is parsed.
859 + Allow empty headers. Previously empty headers caused parser to
860 terminate without parsing the rest of the document.
861 + Allow examples to be indented with tabs.
862 + Remove indentation from examples indicated by `{{{` and `}}}`.
863 + Fix parsing of empty cells.
864 + Various changes to internals.
865 + Rewrite some parsers in applicative style.
866 + Avoid tagsoup dependency.
867 + Allow table caption to contain `+`.
869 * Text.Pandoc.Writers.LaTeX
871 + Add newline if math ends in a comment (#4880). This prevents the
872 closing delimiter from being swalled up in the comment.
873 + With `--listings`, don't pass through org-babel attributes (#4889).
874 + With `--biblatex`, use `\autocite` when possible (#4960).
875 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
876 we don't have prefixes and suffixes, we use instead
877 `\autocite{a1,a2,a3}`.
878 + Fix description lists contining highlighted code (#4662).
880 * Text.Pandoc.Writers.Man
882 + Don't wrap `.SH` and `.SS` lines (#5019).
883 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
884 one paragraph definitions.
885 + Moved common groff functions to Text.Pandoc.Writers.Groff.
886 * Fix strong/code combination on man (should be `\f[CB]` not
887 `\f[BC]`, see #4973).
888 + Man writer: use `\f[R]` instead of `\f[]` to reset font
889 (Alexander Krotov, #4973).
890 + Move `splitSentences` to Text.Pandoc.Shared.
892 * Text.Pandoc.Writers.Docx
894 + Add framework for custom properties (#3034). So far, we don't
895 actually write any custom properties, but we have the
896 infrastructure to add this.
898 + Handle tables in table cells (#4953). Although this is not
899 documented in the spec, some versions of Word require a `w:p`
900 element inside every table cell. Thus, we add one when the
901 contents of a cell do not already include one (e.g. when a table
902 cell contains a table).
904 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
905 Adjust header levels so that n+1 level headers are only
906 found under n level headers, and the top level is 1.
908 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
909 alignment (#4385). This change eliminates the large gap we used
910 to have between bullet and text, and also ensures that numbers
911 in numbered lists will be right-aligned.
913 * Text.Pandoc.Writers.ZimWiki
915 + Number ordered list items sequentially, rather than always
917 + Remove extra indentation on lists (#4963).
919 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
920 `stylesheet` (Mauro Bieg, #4990).
922 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
923 normal content (#4629). Otherwise a raw block can prevent a
924 paragraph from being recognized as such.
926 * Text.Pandoc.Writers.Ms
928 + Removed old `escapeBar`. We don't need this now that we use
930 + Moved common code to Text.Pandoc.Writers.Roff and to
931 Text.Pandoc.RoffChar.
932 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
933 with the man writer).
935 * Text.Pandoc.Writers.Muse (Alexander Krotov).
937 + Add support for grid tables.
938 + Fix Muse writer style.
939 + Use `length` instead of `realLength` to calculate definition
940 indentation. Muse parsers don't take character width into
941 account when calculating indentation.
942 + Do not insert newline before lists.
943 + Use lightweight markup after `</em>` tag.
945 * New unexported module Text.Pandoc.Writers.Roff, providing functions
946 useful for all roff format writers (man, ms).
950 + Move globals handling to separate module Text.Pandoc.Lua.Global
953 + Lua filter internals: push Shared.Element as userdata (Albert
954 Krewinkel). Hierarchical Elements were pushed to Lua as plain
955 tables. This is simple, but has the disadvantage that marshaling
956 is eager: all child elements will be marshaled as part of the
957 object. Using a Lua userdata object instead allows lazy access
958 to fields, causing content marshaling just (but also each time)
959 when a field is accessed. Filters which do not traverse the full
960 element contents tree become faster as a result.
962 [default template changes]
966 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
967 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
969 * AsciiDoc template: use single-line style for title.
971 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
974 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
977 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
979 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
982 [documentation improvements]
986 + Add chromeos install instructions (#4958) (Evan Pratten).
987 + Add note about TinyTeX.
991 + Change `groff` -> `roff`.
992 + Implement `--ascii` for Markdown writer.
993 + Clarify LaTeX image dimensions output (Mauro Bieg).
995 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
997 * doc/getting-started.md: Added title to test1.md to avoid warning.
999 * doc/lua-filters.md: merge type references into main document,
1000 fix description of Code.text (Albert Krewinkel).
1002 [build infrastructure improvements]
1006 + Makefile: added quick-cabal, full-cabal targets.
1007 + Make .msi download targets insensitive to order of appveyor builds.
1009 * Update benchmarks for ghc 8.6.1.
1013 + Enable more compiler warnings (Albert Krewinkel).
1014 + Make base lower bound 4.8.
1015 + Bump upper bound for QuickCheck.
1016 + Bump upper bound for binary.
1017 + Updated version bounds for containers and haddock-library (#4974).
1018 + Added docx/docPropos/custom.xml to cabal data-files.
1019 + Require skylighting 0.7.4 (#4920).
1020 + New dependency on unicode-transforms package for normalization.
1022 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
1024 * Added `tools/changelog-helper.sh`.
1026 * Added test/grofftest.sh for testing the man reader on real man pages.
1032 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
1033 This eliminates a regression introduced after pandoc 2.1.1, which
1034 caused inline constructions containing newlines not to be recognized.
1035 + Fix bug with internal link targets (#4919). They were gobbling up
1036 indented content underneath.
1038 * Markdown reader: distinguish autolinks in the AST. With this change,
1039 autolinks are parsed as Links with the `uri` class. (The same is true
1040 for bare links, if the `autolink_bare_uris` extension is enabled.)
1041 Email autolinks are parsed as Links with the `email` class. This
1042 allows the distinction to be represented in the AST.
1046 + Force inline code blocks to honor export options (Brian Leung).
1047 + Parse empty argument array in inline src blocks (Brian Leung).
1049 * Muse reader (Alexander Krotov):
1051 + Added additional tests.
1052 + Do not allow code markup to be followed by digit.
1053 + Remove heading level limit.
1054 + Simplify `<literal>` tag parsers
1055 + Parse Text instead of String. Benchmark shows 7% improvement.
1056 + Get rid of HTML parser dependency.
1057 + Various code improvements.
1059 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
1060 We do this in the LaTeX writer, and it avoids problems.
1061 Note that `/` works as a LaTeX path separator on Windows.
1065 + Add support for multiprenote and multipostnote arguments
1066 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
1067 the first prefix of a multicite, and the multipostnotes follow the
1069 + Fix a use of `last` that might take empty list. If you ran with
1070 `--biblatex` and have an empty document (metadata but no blocks),
1071 pandoc would previously raise an error because of the use of
1072 `last` on an empty list.
1074 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
1075 MonadFail instance (Jonas Scholl).
1077 * ODT Writer: Improve table header row style handling (Nils Carlson).
1078 This changes the way styles for cells in the header row
1079 and normal rows are handled in ODT tables.
1080 Previously a new (but identical) style was generated for
1081 every table, specifying the style of the cells within the table.
1082 After this change there are two style definitions for table cells,
1083 one for the cells in the header row, one for all other cells.
1084 This doesn't change the actual styles, but makes post-processing
1085 changes to the table styles much simpler as it is no longer
1086 necessary to introduce new styles for header rows and there are
1087 now only two styles where there was previously one per table.
1091 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
1092 class was added to autolinks by the HTML writer, but it had to
1093 guess what was an autolink and could not distinguish
1094 `[http://example.com](http://example.com)` from
1095 `<http://example.com>`. It also incorrectly recognized
1096 `[pandoc](pandoc)` as an autolink. Now the HTML writer
1097 simply passes through the `uri` attribute if it is present,
1098 but does not add anything.
1099 + Avoid adding extra section nestings for revealjs.
1100 Previously revealjs title slides at level (slidelevel - 1)
1101 were nested under an extra section element, even when
1102 the section contained no additional (vertical) content.
1103 That caused problems for some transition effects.
1104 + Omit unknown attributes in EPUB2 output. For example,
1105 `epub:type` attributes should not be passed through,
1106 or the epub produced will not validate.
1108 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
1109 The JATS spec does not allow these.
1111 * Textile writer: don't represent `uri` class explicitly
1112 for autolinks (#4913).
1114 * Lua filters (Albert Krewinkel):
1116 + Cleanup filter execution code.
1117 + Better error on test failure.
1119 * HTML, Muse reader tests: reduce time taken by round-trip test.
1121 * Added cabal.project.
1123 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
1125 * Use hslua v1.0.0 (Albert Krewinkel).
1127 * Fix `translations/ru` to use modern Russian orthography
1130 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
1131 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
1135 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
1136 users to specify metadata in a YAML file, regardless of the
1137 input format (#1960).
1139 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
1141 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
1144 * Text.Pandoc.Readers.LaTeX.Types:
1146 + New type `ArgSpec` (API change).
1147 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
1152 + Use `tex` instead of `latex` for raw tex-ish content. We can't
1153 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
1154 use `tex` always. Note that if `context` or `latex` specifically
1155 is desired, you can still force that in a markdown document by
1156 using the raw attribute. Note that this change may affect some
1157 filters, if they assume that raw tex parsed by the Markdown reader
1158 will be RawBlock (Format `latex`). In most cases it should be
1159 trivial to modify the filters to accept `tex` as well.
1160 + Refactor and reorganize YAML code (Mauro Bieg).
1161 + Make `example_lists` work for interrupted lists
1162 without `startnum` (#4908).
1166 + Parse `<script type="math/tex` tags as math (#4877).
1167 These are used by MathJax in some configurations.
1168 + Extract spaces inside links instead of trimming them
1169 (Alexander Krotov, #4845).
1170 + Added round-trip tests (Alexander Krotov).
1171 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
1172 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
1173 (which is helpful for translation HTML documents using MathJaX).
1175 * Org reader (Albert Krewinkel):
1177 + Respect export option `p` for planning info. Inclusion of planning info
1178 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
1179 `p` export option: setting the option to `t` will add all planning
1180 information in a *Plain* block below the respective headline.
1181 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
1183 + Strip planning info from output. Planning info is parsed, but not
1184 included in the output (as is the default with Emacs Org-mode, #4867).
1188 + Split some general-purpose definitions into a separate, unexported
1189 module, Text.Pandoc.Readers.LaTeX.Parsing. This is to avoid
1190 out-of-memory errors compiling the LaTeX reader.
1191 + Handle parameter patterns for `\def` (#4768, #4771).
1192 For example: `\def\foo#1[#2]{#1 and #2}`.
1193 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
1194 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
1195 argument as the content.
1196 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
1197 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
1198 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
1199 will be parsed as a regular Quoted inline (not using the quotes
1200 appropriate to the foreign language).
1201 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
1202 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
1203 `\textcircled`. Also fall back to combining characters when composed
1204 characters are not available.
1205 + Resolve `\ref` for figure numbers.
1206 + Support `mintinline` (#4365, Marc Schreiber).
1207 + Fix siunitx unit commands so they are only recognized in
1208 siunitx contexts (#4842). For example, `\l` outside of an
1209 siunitx context should be l-slash, not l (for liter).
1210 + Fix double `unnumbered` class (#4838). The `unnumbered` class
1211 was being included twice for starred sections.
1213 * RST reader: Don't skip link definitions after comments (#4860).
1215 * Muse reader (Alexander Krotov):
1217 + Close the `</quote>` in indented tag test.
1218 There is already a separate test for unclosed `</quote>`.
1219 + Autonumber sections in the correct order. Parsing now stops
1220 at each section header to ensure the header is registered before
1221 parsing of the next section starts.
1222 + Move duplicate code into `headingStart` function.
1223 + Allow newline after opening `*` or `**`.
1224 + Don't allow digits after closing marker in lightweight markup
1225 This change makes reader more compatible with Emacs Muse.
1226 + Parse `<verse>` tag in one pass instead of using
1227 `parseFromString`. This change makes it possible to have
1228 verbatim `</verse>` tag inside verse.
1230 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
1231 (#4336). This allows pandoc to parse ODT document produced by KDE's
1234 * Muse writer (Alexander Krotov):
1236 + Output headers without asterisks if not on the top level.
1237 + Never wrap definition list terms.
1238 + Set `envInsideBlock = True` when rendering notes.
1239 + Use `""` instead of `[]` for empty String.
1240 + Check for whitespace in the beginning and end of Str's.
1241 + Escape `-`, `;` and `>` in the beginning of strings.
1242 + Escape list markers in the beginning of notes.
1243 + Normalize inline list before testing if tags should be used.
1244 + Use tags instead of lightweight markup for empty strings.
1245 + Use lightweight markup when possible.
1246 + Escape empty strings. This guarantees that `conditionalEscapeString`
1247 never returns empty string.
1248 + Wrap conditionalEscapeString result into `Muse` type.
1249 This removes the need to pass `envInsideLinkDescription` to it.
1250 + Separate `shouldEscapeString` function.
1251 + Simplify inline list rendering.
1252 + Replace newlines in strings with spaces.
1256 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
1257 + Properly handle display math in spans (#4826). This isn't a
1258 complete solution, since other nestings of display math may still
1259 cause problems, but it should work for what is by far the most
1264 + Always output `<dt>` element, even if it is empty (#4883,
1266 + Don't prefix `epub:` attributes with `data-`.
1268 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
1269 recognize these escapes.
1271 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
1272 Image scaling was broken when a width was set to a percentage.
1274 * EPUB writer: set `epub:type` on body element in each chapter,
1275 depending on the `epub:type` of the first section (#4823). This
1276 only affects epub3. See
1277 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
1279 * FB2 writer: put `coverpage` element between title and date rather than in
1280 `document-info` element (#4854).
1282 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
1284 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
1285 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
1286 tex is now used. Previously we'd "fake it with unicode" and fall
1287 back to tex when that didn't work. But newer haddock versions
1292 + Ensure that title element is always present, even if empty (#4839).
1293 + Put author tags in the template, rather than adding them in
1296 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
1297 `linkcolor` only affects internal links, and `urlcolor` only
1298 affects linked URLs. For external links, the option to use is
1301 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
1305 + Use `.. raw:: latex` for `tex` content.
1306 + Use `.. container` for generic Divs, instead of raw HTML.
1307 + Render Divs with admonition classes as admonitions (#4833).
1308 Also omit Div with class `admonition-title`. These are generated
1309 by the RST reader and should be omitted on round-trip.
1311 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
1312 (#4855, Antonio Terceiro).
1314 * HTML5 template: add the `title-block-header` identifier to the
1315 `header` element, to make it easier to style precisely (#4767,
1318 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
1319 José de Mattos Neto).
1321 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
1322 (#4853, Wandmalfarbe).
1324 * TEI template: improve `publicationStmt`. Add support for
1325 `publisher`, `address`, `pubPlace`, and `date` variables.
1327 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
1329 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
1331 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
1335 + Clarify that `--biblatex/--natbib` don't work directly for PDF
1337 + Document `epub:type` attribute (Mauro Bieg, #4901)
1338 + Clarify when `--resource-path` has an effect.
1339 + More detail on customization in syntax highlighting section.
1340 + Document encoding issue with `--listings` (#4871, Damien Clochard).
1341 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
1342 + Use https for context wiki links (#4910).
1346 + Link to lua-filters repository (#4874).
1347 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
1349 * lua-filters.md: add links to filters, and to lua-filters repository
1354 + Indicate that cabal >= 2.0 is needed.
1355 + Added chocolatey installation method (#4844, Miodrag Milić).
1357 * Travis: exclude round-trip tests, except for nightly test which can fail.
1359 * Use latest texmath, pandoc-citeproc.
1361 * Use a patched version of foundation until
1362 https://github.com/haskell-foundation/foundation/pull/503
1365 * Clean up appveyor build and Windows package creation.
1366 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
1367 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
1369 * Remove obsolete RELEASE-CHECKLIST.md.
1371 * Added additional compiler warnings in Makefile and CI builds.
1375 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
1376 This fixes a regression in 2.2.3, which cause boolean values to
1377 be parsed as MetaInlines instead of MetaBool.
1379 We here record another undocumented (but desirable) change in 2.2.3:
1380 numerical metadata fields are now parsed as MetaInlines rather than
1385 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
1386 (#4817). This fixes a regression in 2.2.3 which caused embedded
1387 mappings (e.g. mappings in sequences) not to work in YAML metadata.
1391 * RST reader: improve parsing of inline interpreted text roles (#4811).
1393 + Use a Span with class "title-reference" for the default
1394 title-reference role.
1395 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
1396 and `Str`s for `title-reference`.
1397 + Use Code with class "interpreted-text" instead of Span and Str for
1398 unknown roles. (The RST writer has also been modified to round-trip
1400 + Disallow blank lines in interpreted text.
1401 + Backslash-escape now works in interpreted text.
1402 + Backticks followed by alphanumerics no longer end interpreted text.
1403 + Remove support for nested inlines (Francesco Occhipinti).
1404 RST does not allow nested emphasis, links, or other inline
1405 constructs. This fixes several bugs (#4581, #4561, #4792).
1407 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
1408 Krewinkel). Emphasis was not parsed when it followed directly after
1409 some block types (e.g., lists).
1411 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
1412 keys. Previously in 2.2.2 you could not do
1424 With this change, both forms work.
1426 * DocBook reader: metadata handling improvements.
1427 Now we properly parse title and subtitle elements that are direct
1428 children of book and article (as well as children of bookinfo,
1429 articleinfo, or info). We also now use the `subtitle` metadata
1430 field for subtitles, rather than tacking the subtitle on to the
1435 + Allow images to be directly nested within links (#4810, Francesco
1437 + Use `titleblock` instead of `title` variable for title block (#4803,
1438 Francesco Occhipinti). `titleblock` contains a properly formatted
1439 title and subtitle (using top-level headers). `title` and
1440 `subtitle` variables are still available and just contain the
1441 title and subtitle text. Note that this change will require an
1442 update to custom rst templates.
1443 + Render Code with class "interpreted-text" as interpreted text role.
1445 * MediaWiki writer: Avoid extra blank line in tables with empty cells
1446 (#4794). Note that the old output is semantically identical, but the
1447 new output looks better.
1449 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
1450 Krewinkel). Exposes a function converting which flattenes a list of
1451 blocks into a list of inlines. An example use case would be the
1452 conversion of Note elements into other inlines.
1454 * RST template: use `titleblock` instead of `title`. Users of
1455 custom RST templates will want to update this.
1457 * LaTeX template: Moved some beamer code in default.latex template.
1458 This change allows beamer themes to change the template and font (as
1459 Metropolis does) (#4450).
1461 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
1463 * Added test case for #4669 to repository.
1465 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
1469 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
1470 + Clarify when `csquotes` is used in LaTeX writer (#4514).
1471 + Add `commonmark` to list of output formats where `raw_tex` has an
1477 * Fix regression finding templates in user data directory (#4777).
1478 Under version 2.2.1 and prior pandoc found latex templates in the
1479 templates directory under the data directory, but this broke in 2.2.2.
1481 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
1482 `rawLaTeXInline` (#4781). (This primarily affects the markdown
1483 reader, and other readers that accept raw tex.)
1484 Starting in 2.2.2, everything after an `\input` (or `\include`)
1485 in a markdown file would be parsed as raw LaTeX.
1489 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
1490 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
1491 Unlike `tags`, `keywords` is used in some of the writers
1492 and default templates.
1494 * Add missing `rollingLinks` option to revealjs template (#4778,
1499 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
1500 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
1502 Note: HsYAML implements YAML 1.2, in which the valid true
1503 values are `true`, `True`, `TRUE`. This means a change in
1504 the semantics of YAML metadata that could affect users:
1505 `y`, `yes`, and `on` no longer count as true values.
1507 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
1510 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
1511 Anders Waldenborg). Non-ascii characters were not stripped from
1512 identifiers even if the `ascii_identifiers` extension was
1513 enabled (which is is by default for gfm).
1515 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
1516 Remove trailing Space from list items. Parse lists that have no space
1521 + Treat `lilypond` as a verbatim environment (#4725).
1522 + Parse figure label into Image id (#4700, Mauro Bieg).
1523 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
1524 + Allow spaces around `\graphicspath` arguments (#4698).
1525 + Handle includes without surrounding blanklines (#4553).
1526 In addition, `\input` can now be used in an inline context,
1527 e.g. to provide part of a paragraph, as it can in LaTeX.
1528 + In `rawLaTeXBlock`, handle macros that resolve to a
1529 `\begin` or `\end` (#4667).
1530 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
1531 Note that this only affected LaTeX in markdown.
1532 + Tighten up reading of beamer overlay specifications (#4669).
1533 Ideally we'd turn these on only when reading beamer, but currently
1534 beamer is not distinguished from latex as an input format.
1535 This commit also activates parsing of overlay specifications
1536 after commands in general (e.g. `\item`), since they can occur
1537 in many contexts in beamer.
1538 + Parse more siunitx unit commands (#4296, #4773).
1539 + Be more forgiving in key/value option parsing (#4761).
1543 + Allow empty code spans, e.g. `` ` ` ``.
1544 + Emojis are now wrapped in Spans with class `emoji` and
1545 attribute `data-emoji` (Anders Waldenborg, #4743).
1546 This allows the writer to handle them in a special way
1547 (e.g. using a special font, or just rendering the
1550 * Muse reader (Alexander Krotov, except where indicated):
1552 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
1553 + Add support for floating images.
1554 + Add support for images with specified width.
1555 + Parse image URLs without "guard" and "takeExtension".
1556 + Split link and image parsing into separate functions.
1557 + Parse links starting with "URL:" explicitly instead of trying to strip
1558 "URL:" prefix after parsing.
1560 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
1563 * Markdown writer: Preserve `implicit_figures` with attributes, even if
1564 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
1566 * Markdown and commonmark/github writers now respect the `emoji`
1567 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
1568 `:smile:` as `:smile:` rather than converting it to a smile
1571 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
1573 * ODT/OpenDocument writer: Make internal links work (#4358).
1574 This adds proper bookmarks to the headers with non-null IDs.
1576 * EPUB writer: Properly escape pagetitle. Previously we weren't
1577 escaping `&` and other XML characters in the pagetitle, so a title
1578 containing a `&` would be invalid.
1580 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
1585 + Don't treat 'example' as a syntax name (#4748).
1586 This fixes conversions from org with example blocks.
1587 + Support `--number-sections` via the `section-numbering`
1588 directive in standalone output.
1590 * reveal.js writer and template: reuse mathjax URL
1591 provided by the argument to `--mathjax` or the normal pandoc default,
1592 rather than a hard-coded one in the template (#4701).
1596 + Properly handle footnotes in table captions (#4683).
1597 Refactored code from figure captions to use in both places.
1598 + In beamer output, fix single digit column percentage (#4690, Mauro
1601 * FB2 writer (Alexander Krotov):
1603 + Convert Plain to Para in annotation (#2424).
1604 + Fix order of items in title-info (#2424).
1606 * Custom writer: fix error message on script failure (Albert Krewinkel).
1607 Error messages produced by Lua were not displayed by Pandoc.
1609 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
1610 inline containing the emoji character and some attributes with metadata
1611 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
1612 Anders Waldenborg, #4743).
1616 + Revert fix for #4484 (only compress images on last run, #4755).
1617 This will mean some increase in the time it takes to
1618 produce an image-heavy PDF with xelatex, but it will
1619 make tables of contents correct, which is more important.
1620 + Fix logic error in `runTeXProgram`. We were running the tex program
1621 one more time than requested. This should speed up PDF production.
1623 * Allow `--template` to take a URL as argument.
1625 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
1626 highlighting style (#4687, Adrian Sieber, API change).
1628 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
1629 installer the recommended method, and note that on some older versions of
1630 macOS, homebrew installs from source and takes a lot of disk space
1635 + Clarify EPUB linked media (#4756, Mauro Bieg)
1636 + Update manual for "true" YAML values. Now that we're using HsYAML and
1637 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
1638 `y`, `yes`, `on` no longer count as true values.
1639 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
1640 + Update manual on how math is rendered in LaTeX.
1641 + Add proxy description (#4131, Mauro Bieg).
1642 + Clarify that `--toc` requires `--standalone` (#4703).
1643 + Update citation styles link (#4699, wiefling).
1645 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
1646 (kaizshang91). Note that it will not take effect when readers/writers
1647 are called as libraries (#4674).
1649 * Improved translations/fr (#4766, lux-lth).
1651 * Removed inadvertently added `.orig` files from repository (#4648).
1653 * Remove `network-uri` flag and use 'Network.Socket'.
1654 This removes a compiler warning. There is no need for the old
1655 `network-uri` flag, since network 2.6 was released in 2014.
1657 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
1659 * Bump upper bounds for dependent packages.
1661 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
1662 confused because of the way ghc 7.10 is excluded in foundation's
1663 cabal file. This can be removed when haskell-foundation/foundation#500
1666 * Require cabal-version >= 2.0. This is needed for haddock-library.
1671 * Restored and undeprecated gladtex for HTML math (#4607).
1673 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
1674 [API change, reverts removal in v2.2]
1675 + Restored and undeprecated `--gladtex` option, removed in v2.2.
1677 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
1679 * Org reader: Fix image filename recognition (Albert Krewinkel).
1680 Use a function from the filepath library to check whether a string is a
1681 valid file name. The custom validity checker that was used before gave
1682 wrong results (e.g. for absolute file paths on Windows,
1683 kawabata/ox-pandoc#52).
1685 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
1689 + Strip links from headers when creating TOC (#4340).
1690 Otherwise the TOC entries will not link to the sections.
1691 + Fix regression with tex math environments in HTML + MathJax (#4639).
1693 * Muse writer (Alexander Krotov): Add support for left-align and
1694 right-align classes (#4542).
1696 * Docx writer: Support underline (#4633).
1698 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
1699 `singleQuoteStart` and `doubleQuoteStart` (#4637).
1701 * `test-pandoc-utils.lua`: more robust testing on both windows
1702 and \*nix. Previously the pipe tests were only run if
1703 `\bin/false` and `/bin/sed` were present, which they aren't
1704 in default MacOS and Windows systems. Fixed by using `tr`
1705 and `false`, which should always be in the path on a \*nix
1706 system, and `find` and `echo` for Windows.
1708 * Text.Pandoc.Shared: add `uriPathToPath`.
1709 This adjusts the path from a file: URI in a way that is sensitive
1710 to Windows/Linux differences. Thus, on Windows,
1711 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
1712 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
1714 * Use `uriPathToPath` with file: URIs (#4613).
1716 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
1719 * Text.Pandoc.Class: Catch IO errors when writing media files
1720 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
1722 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
1724 * MANUAL (Mauro Bieg):
1726 + Clarify truthiness in template variables (#2281).
1727 + Clarify pipe table width calculation (#4520).
1729 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
1730 CMU Serif gives better typographic results than the previous
1731 Greek fallback DejaVu Serif.
1733 * Make HTML template polyglot (#4606, OvidiusCicero), by making
1734 `<link rel="stylesheet" href="$css$">` self-closing.
1736 * Use texmath 0.11, allowing better translation of non-ASCII
1737 characters in math (#4642).
1741 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
1743 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
1744 and for `ms` and `man`.
1746 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
1747 `--asciimathml` options.
1749 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
1750 Krotov, API change).
1754 + Allow empty key-value attributes, like `title=""` (#2944).
1755 + Handle table w/o following blank line in fenced div (#4560).
1756 + Remove "fallback" for `doubleQuote` parser. Previously the
1757 parser tried to be efficient -- if no end double quote was found,
1758 it would just return the contents. But this could backfire in a
1759 case `**this should "be bold**`, since the fallback would return
1760 the content `"be bold**` and the closing boldface delimiter
1761 would never be encountered.
1762 + Improve computation of the relative width of the last column in a
1763 multiline table, so we can round-trip tables without constantly
1764 shrinking the last column.
1768 + Fix images with space in file path (#4344).
1772 + Properly resolve section numbers with `\ref` and chapters (#4529).
1773 + Parse sloppypar environment (#4517, Marc Schreiber).
1774 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
1775 Previously there were some bugs in how macros were handled.
1776 + Support `\MakeUppercase`, `\MakeLowercase', `\uppercase`, `\lowercase`,
1777 and also `\MakeTextUppercase` and `\MakeTextLowercase` from textcase
1782 + Fixed tables with no body rows (#4513).
1783 Previously these raised an exception.
1787 + Improve table parsing (#4508). This fixes detection of table
1788 attributes and also handles `!` characters in cells.
1792 + Properly handle title in `section` element (#4526).
1793 Previously we just got `section_title` for `section` (though `sect1`,
1794 `sect2`, etc. were handled properly).
1795 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
1799 + Combine adjacent CodeBlocks with the same attributes into
1800 a single CodeBlock. This prevents a multiline codeblock in
1801 Word from being read as different paragraphs.
1805 + Allow < 3 spaces indent under directives (#4579).
1806 + Fix anonymous redirects with backticks (#4598).
1808 * Muse reader (Alexander Krotov):
1810 + Add support for Text::Amuse multiline headings.
1811 + Add `<math>` tag support.
1812 + Add support for `<biblio>` and `<play>` tags.
1813 + Allow links to have empty descriptions.
1814 + Require block `<literal>` tags to be on separate lines.
1815 + Allow `-` in anchors.
1816 + Allow verse to be indented.
1817 + Allow nested footnotes.
1818 + Internal improvements.
1820 * Muse writer (Alexander Krotov):
1822 + Escape `>` only at the beginning of a line.
1823 + Escape `]` in image title.
1824 + Escape `]` brackets in URLs as `%5D`.
1825 + Only escape brackets when necessary.
1826 + Escape ordered list markers.
1827 + Do not escape list markers unless preceded by space.
1828 + Escape strings starting with space.
1829 + Escape semicolons and markers after line break.
1830 + Escape `;` to avoid accidental comments.
1831 + Don't break headers, line blocks and tables with line breaks.
1832 + Correctly output empty headings.
1833 + Escape horizontal rule only if at the beginning of the line.
1834 + Escape definition list terms starting with list markers.
1835 + Place header IDs before header.
1836 + Improve span writing.
1837 + Do not join Spans in normalization.
1838 + Don't align ordered list items.
1839 + Remove key-value pairs from attributes before normalization.
1840 + Enable `--wrap=preserve` for all tests by default.
1841 + Reduced `<verbatim>` tags in output.
1846 + Use more consistent indentation (#4563). Previously we
1847 used an odd mix of 3- and 4-space indentation. Now we use 3-space
1848 indentation, except for ordered lists, where indentation must
1849 depend on the width of the list marker.
1850 + Flatten nested inlines (#4368, Francesco Occhipinti).
1851 Nested inlines are not valid RST syntax, so we flatten them following
1852 some readability criteria discussed in #4368.
1856 + Ensure that `pagetitle` is always set, even when structured titles
1857 are used. This prevents spurious warnings about empty title
1860 * FB2 writer (Alexander Krotov):
1862 + Output links inline instead of producing notes. Previously all links
1863 were turned into footnotes with unclickable URLs inside.
1864 + Allow emphasis and notes in titles.
1865 + Don't intersperse paragraph with empty lines.
1866 + Convert metadata value `abstract` to book annotation.
1867 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
1868 FB2 does not have a way to represent line breaks inside paragraphs;
1869 previously we used `<empty-line />` elements, but these are not allowed
1872 * Powerpoint writer (Jesse Rosenthal):
1874 + Handle Quoted Inlines (#4532).
1875 + Simplify code with `ParseXml`.
1876 + Allow fallback options when looking for placeholder type.
1877 + Check reference-doc for all layouts.
1878 + Simplify speaker notes logic.
1879 + Change notes state to a simpler per-slide value.
1880 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
1881 means no speaker notes.
1882 + Add tests for improved speaker notes.
1883 + Handle speaker notes earlier in the conversion process.
1884 + Keep notes with related blocks (#4477). Some blocks automatically
1885 split slides (imgs, tables, `column` divs). We assume that any
1886 speaker notes immediately following these are connected to these
1887 elements, and keep them with the related blocks, splitting after them.
1888 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
1889 It contained a nonfree ICC color calibration profile and is not needed
1890 for production of a powerpoint document.
1894 + Include a blank line at the end of the row in a single-row multiline
1895 table, to prevent it from being interpreted as a simple table (#4578).
1897 * CommonMark writer:
1899 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
1900 enabled (#4527, quasicomputational).
1904 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
1908 + In beamer, don't use format specifier for default ordered lists
1909 (#4556). This gives better results for styles that put ordered list
1910 markers in boxes or circles.
1911 + Update `\lstinline` delimiters (#4369, Tim Parenti).
1915 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
1916 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
1917 since the header font is automatically bold (#4552).
1918 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
1919 + Create pdf anchor for a Div with an identifier (#4515).
1920 + Escape `/` character in anchor ids (#4515).
1921 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
1926 + Don't escape U+2019 as `'` (#4550).
1928 * Text.Pandoc.Options:
1930 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
1931 `Text.Pandoc.Options.HTMLMathMethod` [API change].
1933 * Text.Pandoc.Class:
1935 + `writeMedia`: unescape URI-escaping in file path. This avoids
1936 writing things like `file%20one.png` to the file system.
1938 * Text.Pandoc.Parsing:
1940 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
1942 + `uri`: don't treat `*` characters at end as part of URI (#4561).
1946 + Use the alias `application/eps` for EPS (#2067).
1947 This will ensure that we retain the eps extension after reading the
1948 image into a mediabag and writing it again.
1952 + Use `withTempDir` in `html2pdf`.
1953 + With `xelatex`, don't compress images til the last run (#4484).
1954 This saves time for image-heavy documents.
1955 + Don't try to convert EPS files (#2067). `pdflatex` converts them
1956 itself, and JuicyPixels can't do it.
1957 + For `pdflatex`, use a temp directory in the working directory.
1958 Otherwise we can have problems with the EPS conversion pdflatex
1959 tries to do, which can't operate on a file above the working
1960 directory without `--shell-escape`.
1962 * Changes to tests to accommodate changes in pandoc-types.
1963 In <https://github.com/jgm/pandoc-types/pull/36> we changed
1964 the table builder to pad cells. This commit changes tests
1965 (and two readers) to accord with this behavior.
1967 * Set default extensions for `beamer` same as `latex`.
1971 + Add `beameroption` variable (#4359, Étienne Bersac).
1972 + Use `pgfpages` package; this is needed for notes on second
1973 screen in beamer (Étienne Bersac).
1974 + Add `background-image` variable (#4601, John Muccigrosso).
1976 * reveal.js template: Add `background-image` variable (#4600,
1979 * ms template: Fix date. Previously `.ND` was used, but this only
1980 works if you have a title page, which we don't. Thanks to @teoric.
1982 * Removed pragmas for unused extensions (#4506, Anabra).
1984 * Fix bash completion for `--print-default-data-file` (#4549).
1985 Previously this looked in the filesystem, even if pandoc
1986 was compiled with `embed_data_files` (and sometimes it looked
1987 in a nonexistent build directory). Now the bash completion
1988 script just includes a hard-coded list of data file names.
1992 + Clarify template vs metadata variables (#4501, Mauro Bieg).
1993 + Fix raw content example (#4479, Mauro Bieg).
1994 + Specify that you use html for raw output in epub.
1995 + Add examples for raw docx blocks (#4472, Tristan Stenner).
1996 The documentation states that the target format name should match
1997 the output format, which isn't the case for `docx`/`openxml` and
1999 + Don't say that `empty_paragraphs` affects markdown output (#4540).
2000 + Consolidate input/output format documentation (#4577, Mauro Bieg).
2002 * New README template. Take in/out formats from manual.
2004 * Fix example in lua-filters docs (#4459, HeirOfNorton).
2006 * Use the `-threaded` GHC flag when building benchmarks (#4587,
2007 Francesco Occhipinti).
2009 * Bump temporary upper bound to 1.4.
2011 * Use pandoc-citeproc 0.14.3.1.
2013 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
2015 * Removed old lib directory. This was used for something long ago,
2016 but plays no role now.
2018 * Removed unneeded data file `LaTeXMathML.js`.
2020 * Create 64- and 32-bit versions of Windows binary packages.
2024 * Docx reader (Jesse Rosenthal):
2026 + Add tests for nested smart tags.
2027 + Parse nested smart tags.
2028 + Make unwrapSDT into a general `unwrap` function that can unwrap both
2029 nested SDT tags and smartTags. This makes the SmartTags constructor in
2030 the Docx type unnecessary, so we remove it (#4446).
2031 + Remove unused `docxWarnings` (Alexander Krotov).
2033 * RST reader: Allow unicode bullet characters (#4454).
2035 * Haddock reader: Better table handling, using haddock-library's
2036 new table support, if compiled against a version that
2037 includes it. Note that tables with col/rowspans will not
2038 translate well into Pandoc.
2040 * Muse reader (Alexander Krotov):
2042 + Require closing tag to have the same indentation as opening.
2043 + Do not reparse blocks inside unclosed block tag (#4425).
2044 + Parse `<class>` tag (supported by Emacs Muse).
2045 + Do not produce empty Str element for unindented verse lines.
2046 + Don't allow footnote references inside links.
2047 + Allow URL to be empty.
2048 + Require that comment semicolons are in the first column (#4551).
2049 + Various internal improvements.
2053 + Add support to parse unit string of `\SI` command (closes #4296,
2056 * Haddock writer: In the writer, we now render tables always as
2057 grid tables, since Haddock supports these.
2059 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
2061 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
2062 docx writer. We want decimal for the top level, not lower roman.
2066 + Strip whitespace at beginning and ending of inline containers
2067 (#4327, Francesco Occhipinti).
2068 + Filter out empty inline containers (#4434). There is nothing in
2069 RST that corresponds to e.g. `Emph []`, so we just ignore elements
2070 like this (Francesco Occhipinti).
2072 * Muse writer (Alexander Krotov):
2074 + Support spans with anchors.
2075 + Replace smallcaps with emphasis before normalization.
2076 + Output smallcaps as emphasis.
2077 + Expand Cite before list normalization.
2078 + Write empty inline lists as `<verbatim></verbatim>`.
2079 + Remove empty Str from the beginning of inline lists during normalization.
2080 + Escape "-" to avoid creating bullet lists.
2081 + Fix math expansion for more than one expression per paragraph.
2082 + Expand math before inline list normalization.
2084 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
2088 + Asciify pdf anchors, since unicode anchors don't work (#4436).
2089 Internal links should be converted automatically, so this shouldn't
2090 affect users directly.
2091 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
2093 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
2094 (#4307). If it's in the title, then we get a titlebar on slides with
2095 the `plain` attribute, when the id is non-null. This fixes a regression
2098 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
2100 * JATS writer: Remove extraneous, significant whitespace (#4335,
2103 * html2pdf: inject base tag with current working directory (#4413, Mauro
2104 Bieg). This helps ensure that linked resources are included.
2106 * Add Semigroup instances for everything for which we defined a
2107 Monoid instance previously (API change):
2109 + Text.Pandoc.Class.FileTree.
2110 + Text.Pandoc.Translations.Translations.
2111 + Text.Pandoc.Extensions.Extensions.
2112 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
2113 + Text.Pandoc.Pretty.Doc.
2114 + Text.Pandoc.MediaBag.MediaBag.
2116 * Add custom Prelude to give clean code for Monoid and Semigroup
2117 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
2118 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
2119 in all source files, and Prelude is explicitly imported
2120 (this is necessary for ghci to work properly with the custom prelude).
2122 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
2124 + Export `stripLeadingTrailingSpace`.
2125 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
2126 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
2127 expand cells, even if it results in cells that don't respect relative
2128 widths or surpass page column width. This change affects RST,
2129 Markdown, and Haddock writers.
2131 * Raise error if someone tries to print docx, odt, etc. template (#4441).
2133 * LaTeX template: Provide `bidi` package's option using
2134 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
2135 clash when `polyglossia` loads it first and then it is loaded again
2138 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
2139 Menke). Instructions on how to install the ICC profiles on ConTeXt
2140 standalone can be found in the wiki:
2141 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
2142 If the ICC profiles are not available the log will contain error
2145 * Use latest pandoc-types, skylighting
2147 * Use latest pandoc-citeproc in binary package.
2149 * Bump upper bound for time, criterion, haddock-library, exceptions,
2150 http-types, aeson, haddock-library.
2152 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
2154 * pandoc.cabal: fix up other-extensions and language fields.
2155 Language is now consistently `Haskell2010`, and other-extensions
2156 is consistently `NoImplicitPrelude`. Everything else to be specified
2157 in the module header as needed.
2159 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
2160 This is no longer necessary since we no longer support ghc 7.8.
2162 * Make `weigh-pandoc` into a benchmark program.
2163 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
2164 automatically when you build (and run) benchmarks.
2166 * MANUAL: add instructions for background images reveal.js (#4325, John
2169 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
2176 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
2177 "nonindent spaces" before the opening and closing `:::`, but this
2178 interfered with list parsing, so now we require the fences to be flush with
2179 the margin of the containing block.
2181 * Commonmark reader:
2183 + `raw_html` is now on by default. It can be disabled explicitly
2184 using `-f commonmark-raw_html`.
2186 * Org reader (Albert Krewinkel):
2188 + Move citation tests to separate module.
2189 + Allow changing emphasis syntax (#4378). The characters allowed before
2190 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
2191 `#+pandoc-emphasis-post`, respectively. This allows to change which
2192 strings are recognized as emphasized text on a per-document or even
2193 per-paragraph basis. Example:
2195 #+pandoc-emphasis-pre: "-\t ('\"{"
2196 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
2200 + Fixed comments inside citations (#4374).
2201 + Fix regression in package options including underscore (#4424).
2202 + Make `--trace` work.
2203 + Fixed parsing of `tabular*` environment (#4279).
2207 + Fix regression in parsing of headers with trailing space (#4280).
2209 * Muse reader (Alexander Krotov):
2211 + Enable `<literal>` tags even if amuse extension is enabled.
2212 Amusewiki disables <literal> tags for security reasons.
2213 If user wants similar behavior in pandoc, RawBlocks and RawInlines
2214 can be removed or replaced with filters.
2215 + Remove space prefix from `<literal>` tag contents.
2216 + Do not consume whitespace while looking for closing end tag.
2217 + Convert alphabetical list markers to decimal in round-trip test.
2218 Alphabetical lists are an addition of Text::Amuse.
2219 They are not present in Emacs Muse and can be ambiguous
2220 when list starts with "i.", "c." etc.
2221 + Allow `<quote>` and other tags to be indented.
2222 + Allow single colon in definition list term.
2223 + Fix parsing of verse in lists.
2224 + Improved parsing efficiency. Avoid `parseFromString`.
2225 Lists are parsed in linear instead of exponential time now.
2226 + Replace ParserState with MuseState.
2227 + Prioritize lists with roman numerals over alphabetical lists.
2228 This is to make sure "i." starts a roman numbered list,
2229 instead of a list with letter "i" (followed by "j", "k", ...").
2230 + Fix directive parsing.
2231 + Parse definition lists with multiple descriptions.
2232 + Parse next list item before parsing more item contents.
2233 + Fixed a bug: headers did not terminate lists.
2234 + Move indentation parsing from `definitionListItem` to `definitionList`.
2235 + Paragraph indentation does not indicate nested quote.
2236 Muse allows indentation to indicate quotation or alignment,
2237 but only on the top level, not within a <quote> or list.
2238 + Require that block tags are on separate lines.
2239 Text::Amuse already explicitly requires it anyway.
2240 + Fix matching of closing inline tags.
2241 + Various internal changes.
2242 + Fix parsing of nested definition lists.
2243 + Require only one space for nested definition list indentation.
2244 + Do not remove trailing whitespace from `<code>`.
2245 + Fix parsing of trailing whitespace. Newline after whitespace now
2246 results in softbreak instead of space.
2248 * Docx reader (Jesse Rosenthal, except where noted):
2250 + Handle nested sdt tags (#4415).
2251 + Don't look up dependent run styles if `+styles` is enabled.
2252 + Move pandoc inline styling inside custom-style span.
2253 + Read custom styles (#1843). This will read all paragraph and
2254 character classes as divs and spans, respectively. Dependent styles
2255 will still be resolved, but will be wrapped with appropriate style
2256 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
2257 This can be used in conjunction with the `custom-style` feature in the
2258 docx writer for a pandoc-docx editing workflow. Users can convert from
2259 an input docx, reading the custom-styles, and then use that same input
2260 docx file as a reference-doc for producing an output docx file. Styles
2261 will be maintained across the conversion, even if pandoc doesn't
2263 + Small change to Fields hyperlink parser. Previously, unquoted string
2264 required a space at the end of the line (and consumed it). Now we
2265 either take a space (and don't consume it), or end of input.
2266 + Pick table width from the longest row or header (Francesco Occhipinti,
2269 * Muse writer (Alexander Krotov):
2271 + Change verse markup: `> ` instead of `<verse>` tag.
2272 + Remove empty strings during inline normalization.
2273 + Don't indent nested definition lists.
2274 + Use unicode quotes for quoted text.
2275 + Write image width specified in percent in Text::Amuse mode.
2276 + Don't wrap displayMath into `<verse>`.
2277 + Escape nonbreaking space (`~~`).
2278 + Join code with different attributes during normalization.
2279 + Indent lists inside Div.
2280 + Support definitions with multiple descriptions.
2282 * Powerpoint writer (Jesse Rosenthal):
2284 + Use table styles This will use the default table style in the
2285 reference-doc file. As a result they will be easier when using
2286 in a template, and match the color scheme.
2287 + Remove empty slides. Because of the way that slides were split, these
2288 could be accidentally produced by comments after images. When animations
2289 are added, there will be a way to add an empty slide with either
2290 incremental lists or pauses.
2291 + Implement syntax highlighting. Note that background colors can't
2292 be implemented in PowerPoint, so highlighting styles that require
2293 these will be incomplete.
2294 + New test framework for pptx. We now compare the output of the
2295 Powerpoint writer with files that we know to (a) not be corrupt,
2296 and (b) to show the desired output behavior (details below).
2297 + Add `notesMaster` to `presentation.xml` if necessary.
2298 + Ignore links and (end)notes in speaker notes.
2299 + Output speaker notes.
2300 + Read speaker note templates conditionally. If there are speaker
2301 notes in the presentation, we read in the notesMasters templates
2302 from the reference pptx file.
2303 + Fix deletion track changes (#4303, Jesse Rosenthal).
2305 * Markdown writer: properly escape @ to avoid capture as citation
2310 + Put hypertarget inside figure environment (#4388).
2311 This works around a problem with the endfloat package and
2312 makes pandoc's output compatible with it.
2313 + Fix image height with percentage (#4389). This previously caused
2314 the image to be resized to a percentage of textwidth, rather than
2317 * ConTeXt writer (Henri Menke):
2319 + New section syntax and support `--section-divs` (#2609).
2320 `\section[my-header]{My Header}` ->
2321 `\section[title={My Header},reference={my-header}]`.
2322 The ConTeXt writer now supports the `--section-divs` option to
2323 write sections in the fenced style, with `\startsection` and
2325 + xtables: correct wrong usage of caption (Henri Menke).
2329 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
2330 + Use new golden framework (Jesse Rosenthal).
2331 + Make more deterministic to facilitate testing (Jesse Rosenthal).
2332 - `getUniqueId` now calls to the state to get an incremented digit,
2333 instead of calling to P.uniqueHash.
2334 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
2335 seed (1848), so our randoms should be the same each time.
2336 + Fix ids in comment writing (Jesse Rosenthal). Comments from
2337 `--track-changes=all` were producing corrupt docx, because the
2338 writer was trying to get id from the `(ID,_,_)` field of
2339 the attributes, and ignoring the "id" entry in the key-value pairs. We
2342 * Ms writer: Added papersize variable.
2346 + Use `height` instead of `depth` for images (#4331).
2347 + Ensure that id prefix is always used.
2348 + Don't emit `role` attribute; that was a leftover from the
2350 + Use 'xml:id', not 'id' attribute (#4371).
2354 + Do not output implicit heading IDs (#4363, Alexander
2355 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
2359 + Remove `blockToRST'` moving its logic into `fixBlocks`
2360 (Francesco Occhipinti).
2361 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
2363 * RST template: remove definition of 'math' role as raw.
2364 This used to be needed prior to v 0.8 of docutils, but
2365 now math support is built-in.
2367 * Slides: Use divs to set incremental/non-incremental (#4381,
2368 Jesse Rosenthal). The old method (list inside blockquote) still
2369 works, but we are encouraging the use of divs with class
2370 `incremental` or `nonincremental`.
2372 * Text.Pandoc.ImageSize:
2374 + Make image size detection for PDFs more robust (#4322).
2375 + Determine image size for PDFs (#4322).
2376 + EMF Image size support (#4375, Andrew Pritchard).
2378 * Text.Pandoc.Extensions:
2380 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
2381 the docx reader (defaulting to off) to read pargraph and character
2382 styles not understood by pandoc (as divs and spans, respectively).
2383 + Made `Ext_raw_html` default for `commonmark` format.
2385 * Text.Pandoc.Parsing:
2387 + Export `manyUntil` (Alexander Krotov, API change).
2388 + Export improved `sepBy1` (Alexander Krotov).
2389 + Export list marker parsers: `upperRoman`, `lowerRoman`,
2390 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
2392 * Tests/Lua: fix tests on windows (Albert Krewinkel).
2394 * Lua: register script name in global variable (#4393). The name of the Lua
2395 script which is executed is made available in the global Lua variable
2396 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
2398 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
2399 There is very little pptx-specific in these tests, so we abstract out
2400 the basic testing function so it can be used for docx as well. This
2401 should allow us to catch some errors in the docx writer that slipped
2402 by the roundtrip testing.
2404 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
2405 functions used to construct AST element values are stored in the Lua
2406 registry for quicker access. Getting a value from the registry is much
2407 faster than getting a global value (partly to idiosyncrasies of hslua);
2408 this change results in a considerable performance boost.
2412 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
2413 + `doc/lua-filters.md`: document global vars set for filters
2415 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
2416 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
2417 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
2418 Rosenthal). Blockquoted lists are still described, but fenced divs are
2419 presented in preference.
2420 + MANUAL.txt: document header and footer variables (newmana).
2421 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
2422 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
2424 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
2426 * Use latest texmath.
2428 * Use latest pandoc-citeproc.
2430 * Allow exceptions 0.9.
2432 * Require aeson-pretty 0.8.5 (#4394).
2434 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
2436 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
2438 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
2440 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
2448 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
2449 blank line. See lierdakil/pandoc-crossref#160.
2450 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
2451 The change both improves performance and fixes a regression whereby
2452 normal citations inside inline notes and figure captions were not
2457 + Better handling for headers with an anchor (#4240). Instead of creating a
2458 Div containing the header, we put the id directly on the header.
2459 This way header promotion will work properly.
2460 + Add aligned environment when needed in math (#4254). `rst2latex.py`
2461 uses an `align*` environment for math in `.. math::` blocks, so this
2462 math may contain line breaks. If it does, we put the math in an
2463 `aligned` environment to simulate `rst2latex.py`'s behavior.
2467 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
2471 + Advance source position at end of stream.
2472 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
2473 extension is set (#4246). This reverts to earlier behavior and is
2474 probably safer on the whole, since some macros only modify things in
2475 included packages, which pandoc's macro expansion can't modify.
2476 + Fixed pos calculation in tokenizing escaped space.
2477 + Allow macro definitions inside macros (#4253). Previously we went into
2478 an infinite loop with
2480 \newcommand{\noop}[1]{#1}
2481 \noop{\newcommand{\foo}[1]{#1}}
2484 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
2485 widths for the body were different from widths for the header in some
2488 * Docx reader (Jesse Rosenthal):
2490 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
2491 hyperlink found in older versions of word. The changes introduced for
2492 this, though, create a framework for parsing further fields in MS Word
2493 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
2494 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
2495 contains a simple parsec parser. At the moment, only simple hyperlink
2496 fields are accepted, but that can be extended in the future.
2498 * Muse reader (Alexander Krotov):
2500 + Parse `~~` as non-breaking space in Text::Amuse mode.
2501 + Refactor list parsing.
2503 * Powerpoint writer (Jesse Rosenthal):
2505 + Change reference to `notesSlide` to `endNotesSlide`.
2506 + Move image sizing into `picProps`.
2507 + Improve table placement.
2508 + Make our own `_rels/.rels` file.
2509 + Import reference-doc images properly.
2510 + Move `Presentation.hs` out of `PandocMonad`.
2511 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
2512 defines the Presentation datatype and goes Pandoc->Presentation;
2513 T.P.W.Pandoc.Output goes Presentation->Archive.
2514 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
2515 + Avoid overlapping blocks in column output.
2516 + Position images correctly in two-column layout.
2517 + Make content shape retrieval environment-aware.
2518 + Improve image handling. We now determine image and caption placement
2519 by getting the dimensions of the content box in a given layout.
2520 This allows for images to be correctly sized and positioned in a
2521 different template. Note that images without captions and headers are
2522 no longer full-screened. We can't do this dependably in different
2523 layouts, because we don't know where the header is (it could be to
2524 the side of the content, for example).
2525 + Read presentation size from reference file. Our presentation size is
2526 now dependent on the reference/template file we use.
2527 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
2528 subheaders will be printed in bold and given a bit of extra space
2529 before them. Note that at the moment, no distinction is made between
2530 levels of headers above the slide header, though that can be changed.
2531 + Check for required files. Since we now import from reference/dist
2532 file by glob, we need to make sure that we're getting the files we
2533 need to make a non-corrupt Powerpoint. This performs that check.
2534 + Improve templating using `--reference-doc`. Templating should work
2535 much more reliably now.
2536 + Include Notes slide in TOC.
2537 + Set notes slide header to slide-level.
2538 + Add table of contents. This is triggered by the `--toc` flag. Note
2539 that in a long slide deck this risks overrunning the text box. The user
2540 can address this by setting `--toc-depth=1`.
2541 + Set notes slide number correctly.
2542 + Clean up adding metadata slide. We want to count the slide numbers
2543 correctly if it's in there.
2544 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
2545 an anchor link. In powerpoint these are links to slides, so we keep
2546 track of a map relating anchors to the slides they occur on.
2547 + Make the slide number available to the blocks. For anchors,
2548 block-processing functions need to know what slide number
2549 they're in. We make the `envCurSlideId` available to blocks.
2550 + Move `curSlideId` to environment.
2551 + Allow setting `toc-title` in metadata.
2552 + Link notes to endnotes slide.
2556 + Fix cell width calculation (#4265). Previously we could get
2557 ever-lengthening cell widths when a table was run repeatedly through
2558 `pandoc -f markdown -t markdown`.
2562 + Escape `&` in lstinline (Robert Schütz).
2566 + Use xtables instead of Tables (#4223, Henri Menke).
2567 Default to xtables for context output. Natural Tables are used
2568 if the new `ntb` extension is set.
2572 + Fixed footnote backlinks with `--id-prefix` (#4235).
2574 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
2577 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
2578 (Jesse Rosenthal, API change).
2580 * Lua filters (Albert Krewinkel):
2582 + Make `PANDOC_READER_OPTIONS` available.
2583 The options which were used to read the document are made available to
2584 Lua filters via the `PANDOC_READER_OPTIONS` global.
2585 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
2586 on a Pandoc document.
2587 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
2588 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
2589 + Improve error messages. Provide more context about the task
2590 which caused an error.
2592 * data/pandoc.lua (Albert Krewinkel):
2594 + Accept singleton inline as a list. Every constructor which accepts a
2595 list of inlines now also accepts a single inline element for
2597 + Accept single block as singleton list. Every constructor which accepts
2598 a list of blocks now also accepts a single block element for
2599 convenience. Furthermore, strings are accepted as shorthand for
2600 `{pandoc.Str "text"}` in constructors.
2601 + Add attr, listAttributes accessors. Elements with
2602 attributes got an additional `attr` accessor. Attributes were
2603 accessible only via the `identifier`, `classes`, and `attributes`,
2604 which was in conflict with the documentation, which indirectly states
2605 that such elements have the an `attr` property.
2606 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
2607 module is closely tied to the pandoc version, which is available via
2609 + Fix access to Attr components. Accessing an Attr value (e.g.,
2610 ` Attr().classes`) was broken; the more common case of accessing it via
2611 an Inline or Block element was unaffected by this.
2613 * Move `metaValueToInlines` to from Docx writer to
2614 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
2619 + Clarify otherlangs in LaTeX (#4072).
2620 + Clarify `latex_macros` extension.
2621 + Recommend use of `raw_attribute` extension in header includes (#4253).
2623 * Allow latest QuickCheck, tasty, criterion.
2625 * Remove custom prelude and ghc 7.8 support.
2627 * Reduce compiler noise (exact paths for compiled modules).
2631 * Allow filters and lua filters to be interspersed (#4196). Previously
2632 we ran all lua filters before JSON filters. Now we run filters in
2633 the order they are presented on the command line, whether lua or JSON.
2634 There are two incompatible API changes: The type of `applyFilters`
2635 has changed, and `applyLuaFilters` has been removed. `Filter` is
2638 * Use latest skylighting and omit the `missingIncludes` check, fixing
2639 a major performance regression in earlier releases of the 2.x series
2640 (#4226). Behavior change: If you use a custom syntax definition that
2641 refers to a syntax you haven't loaded, pandoc will now complain when
2642 it is highlighting the text, rather than doing a check at the start.
2643 This change dramatically speeds up invocations of pandoc on short
2646 * Text.Pandoc.Class: make `FileTree` opaque (don't export
2647 `FileTree` constructor). This forces users to interact with it using
2648 `insertInFileTree` and `getFileInfo`, which normalize file names.
2652 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
2653 direct, avoiding `parseFromString`. And it performs significantly
2654 better; unfortunately, parsing time still increases exponentially
2656 + Avoid parsing raw tex unless `\` + letter seen. This seems to
2657 help with the performance problem, #4216.
2659 * LaTeX reader: Simplified a check for raw tex command.
2661 * Muse reader (Alexander Krotov):
2663 + Enable round trip test (#4107).
2664 + Automatically translate `#cover` into `#cover-image`.
2665 Amusewiki uses #cover directive to specify cover image.
2667 * Docx reader (Jesse Rosenthal):
2669 + Allow for insertion/deletion of paragraphs (#3927).
2670 If the paragraph has a deleted or inserted paragraph break (depending
2671 on the track-changes setting) we hold onto it until the next
2672 paragraph. This takes care of accept and reject. For this we introduce
2673 a new state which holds the ils from the previous para if necessary.
2674 For `--track-changes=all`, we add an empty span with class
2675 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
2676 prior to the break to be inserted or deleted.
2677 + Remove unused anchors (#3679). Docx produces a lot of anchors with
2678 nothing pointing to them---we now remove these to produce cleaner
2679 output. Note that this has to occur at the end of the process
2680 because it has to follow link/anchor rewriting.
2681 + Read multiple children of `w:sdtContents`.
2682 + Combine adjacent anchors. There isn't any reason to have numerous
2683 anchors in the same place, since we can't maintain docx's
2684 non-nesting overlapping. So we reduce to a single anchor.
2687 * Muse writer (Alexander Krotov): don't escape URIs from AST
2691 + Removed redundant subtitle in title (Sebastian Talmon).
2692 + `firstRow` table definition compatibility for Word 2016 (Sebastian
2693 Talmon). Word 2016 seems to use a default value of "1" for table
2694 headers, if there is no firstRow definition (although a default
2695 value of 0 is documented), so all tables get the first Row formatted
2696 as header. Setting the parameter to 0 if the table has no header
2697 row fixes this for Word 2016
2698 + Fix custom styles with spaces in the name (#3290).
2700 * Powerpoint writer (Jesse Rosenthal):
2702 + Ignore Notes div for parity with other slide outputs.
2703 + Set default slidelevel correctly. We had previously defaulted to
2704 slideLevel 2. Now we use the correct behavior of defaulting to the
2705 highest level header followed by content. We change an expected test
2706 result to match this behavior.
2707 + Split blocks correctly for linked images.
2708 + Combine adjacent runs.
2709 + Make inline code inherit code size. Previously (a) the code size
2710 wasn't set when we force size, and (b) the properties was set from
2711 the default, instead of inheriting.
2712 + Simplify `replaceNamedChildren` function.
2713 + Allow linked images. The following markdown:
2714 `[](http://www.example.com)`
2715 will now produce a linked image in the resulting PowerPoint file.
2716 + Fix error with empty table cell. We require an empty `<a:p>` tag,
2717 even if the cell contains no paragraphs---otherwise PowerPoint
2718 complains of corruption.
2719 + Implement two-column slides. This uses the columns/column div
2720 format described in the pandoc manual. At the moment, only two
2721 columns (half the screen each) are allowed. Custom widths are not
2725 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
2727 * Lua filters (Albert Krewinkel):
2729 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
2730 + The current pandoc-types version is made available to Lua programs in
2731 the global `PANDOC_API_VERSION`. It contains the version as a list of
2733 + The pandoc version available as a global `PANDOC_VERSION` (a list
2735 + `data/pandoc.lua`: make `Attr` an `AstElement`.
2736 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
2737 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
2738 not set a metatable on the returned value, which made it difficult
2739 to amend objects of these types with new behavior. They are now
2740 subtypes of AstElement, meaning that all their objects can gain
2741 new features when a method is added to the behavior object
2742 (e.g., `pandoc.Pandoc.behavior`).
2743 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
2744 between a type and the behavioral properties of an instance of that
2745 type. The behavior of a type (and all its subtypes) can now be
2746 amended by adding methods to that types `behavior` object, without
2747 exposing the type objects internals. E.g.:
2749 pandoc.Inline.behavior.frob = function () print'42' end
2750 local str = pandoc.Str'hello'
2751 str.frob() -- outputs '42'
2753 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
2754 of a given type (e.g., all inline elements) was difficult, as the
2755 table used to lookup unknown methods would be reset every time a
2756 new element of that type was created, preventing recursive property
2757 lookup. This is was changed in that all methods and attributes of
2758 supertypes are now available to their subtypes.
2759 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
2760 fields were named like the Haskell fields, not like the documented,
2761 shorter version. The names are changed to match the documentation
2762 and Citations are given a shared metatable to enable simple
2764 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
2765 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
2766 difficult to handle failures while getting lists or a Map from Lua.
2767 A bug in pandoc, which made it necessary to always pass a tag when
2768 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
2769 module's constructor functions for these values is now optional
2770 (if still recommended).
2771 + Stop exporting `pushPandocModule` (API change). The introduction
2772 of `runPandocLua` renders direct use of this function obsolete.
2773 + Update generation of module docs for lua filters.
2774 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
2775 MacFarlane). I'm sure this was intended in the first place,
2776 but currently only `Meta` is supported.
2778 * Improve benchmarks.
2780 + Set the default extensions properly.
2781 + Improve benchmark argument parsing. You can now say
2782 `make bench BENCHARGS="markdown latex reader"` and both the
2783 markdown and latex readers will be benchmarked.
2785 * MANUAL.txt simplify and add more structure (Mauro Bieg).
2787 * Generate README.md from template and MANUAL.txt.
2788 `make README.md` will generate the README.md after changes
2789 to MANUAL.txt have been made.
2791 * Update copyright notices to include 2018 (Albert Krewinkel).
2795 * Added `jats` as an input format.
2797 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
2798 change) (Hamish Mackenzie).
2799 + Improved citation handling in JATS reader. JATS citations
2800 are now converted to pandoc citations, and JATS ref-lists
2801 are converted into a `references` field in metadata, suitable
2802 for use with pandoc-citeproc. Thus a JATS article with embedded
2803 bibliographic information can be processed with pandoc and
2804 pandoc-citeproc to produce a formatted bibliography.
2806 * Allow `--list-extensions` to take an optional FORMAT argument.
2807 This lists the extensions set by default for the selected FORMAT.
2808 The extensions are now alphabetized, and the `+` or `-`
2809 indicating the default setting comes before, rather than after,
2814 + Preserve original whitespace between blocks.
2815 + Recognize `\placeformula` as context.
2816 + Be pickier about table captions. A caption starts with a `:` which
2817 can't be followed by punctuation. Otherwise we can falsely interpret
2818 the start of a fenced div, or even a table header line like
2819 `:--:|:--:`, as a caption.
2820 + Always use four space rule for example lists. It would be awkward
2821 to indent example list contents to the first non-space character after
2822 the label, since example list labels are often long. Thanks to
2823 Bernhard Fisseni for the suggestion.
2824 + Improve raw tex parsing. Note that the Markdown reader is also
2825 affected by the `latex_macros` extension changes described below
2826 under the LaTeX reader.
2830 + `latex_macros` extension changes (#4179). Don't pass through macro
2831 definitions themselves when `latex_macros` is set. The macros
2832 have already been applied. If `latex_macros` is enabled, then
2833 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
2834 a macro definition, and will update pandoc's internal macro map
2835 accordingly, but the empty string will be returned.
2836 + Export `tokenize`, `untokenize` (API change).
2837 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
2838 + Refactored `inlineCommand`.
2839 + Fix bug in tokenizer. Material following `^^` was
2840 dropped if it wasn't a character escape. This only affected
2841 invalid LaTeX, so we didn't see it in the wild, but it appeared
2842 in a QuickCheck test failure.
2843 + Fix regression in LateX tokenization (#4159). This mainly affects the
2844 Markdown reader when parsing raw LaTeX with escaped spaces.
2845 + Add tests of LaTeX tokenizer.
2846 + Support `\foreignlanguage` from babel.
2847 + Be more tolerant of `&` character (#4208). This allows us to parse
2848 unknown tabular environments as raw LaTeX.
2850 * Muse reader (Alexander Krotov):
2852 + Parse anchors immediately after headings as IDs.
2853 + Require that note references does not start with 0.
2854 + Parse empty comments correctly.
2856 * Org reader (Albert Krewinkel):
2858 + Fix asterisks-related parsing error (#4180).
2859 + Support minlevel option for includes (#4154). The level of headers
2860 in included files can be shifted to a higher level by specifying a
2861 minimum header level via the `:minlevel` parameter. E.g.
2862 `#+include: "tour.org" :minlevel 1` will shift the headers in
2863 tour.org such that the topmost headers become level 1 headers.
2864 + Break-up org reader test file into multiple modules.
2868 + Enable raw HTML and other extensions by default for notes
2869 (#4164). This fixes a regression in 2.0. Note that extensions can
2870 now be individually disabled, e.g. `-f opml-smart-raw_html`.
2874 + Allow empty list items (#4193).
2875 + More accurate parsing of references (#4156). Previously we erroneously
2876 included the enclosing backticks in a reference ID (#4156). This
2877 change also disables interpretation of syntax inside references, as
2878 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
2882 + Continue lists after interruption (#4025, Jesse Rosenthal).
2883 Docx expects that lists will continue where they left off after an
2884 interruption and introduces a new id if a list is starting again. So
2885 we keep track of the state of lists and use them to define a "start"
2886 attribute, if necessary.
2887 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
2888 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
2893 + Don't linkify table of contents.
2897 + Fix anchors for headers (#4188). We were missing an `_`.
2899 * PowerPoint writer (Jesse Rosenthal):
2901 + Treat lists inside BlockQuotes as lists. We don't yet produce
2902 incremental lists in PowerPoint, but we should at least treat lists
2903 inside BlockQuotes as lists, for compatibility with other slide formats.
2904 + Add ability to force size. This replaces the more specific
2905 `blockQuote runProp`, which only affected the size of blockquotes. We
2906 can use this for notes, etc.
2907 + Implement notes. This currently prints all notes on a final slide.
2908 Note that at the moment, there is a danger of text overflowing the
2909 note slide, since there is no logic for adding further slides.
2910 + Implement basic definition list functionality to PowerPoint writer.
2911 + Don't look for default template file for Powerpoint (#4181).
2912 + Add pptx to isTextFormat list. This is used to check standalone
2913 and not writing to the terminal.
2914 + Obey slide level option (Jesse Rosenthal).
2919 + Ensure that `distArchive` is the one that comes with pandoc
2920 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
2921 dir) would be used instead, and this could cause problems because a
2922 user-modified docx sometimes lacks vital sections that we count
2923 on the `distArchive` to supply.
2927 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
2928 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
2929 Alexander Krotov). Otherwise they can be interpreted as footnote
2932 * Muse writer (Alexander Krotov):
2934 + Don't wrap note references to the next line (#4172).
2938 + Use br elements in line blocks instead of relying on CSS
2939 (#4162). HTML-based templates have had the custom CSS for
2940 `div.line-block` removed. Those maintaining custom templates will want
2941 to remove this too. We still enclose line blocks in a div with class
2946 + Use `\renewcommand` for `\textlatin` with babel (#4161).
2947 This avoids a clash with a deprecated `\textlatin` command defined
2949 + Allow fragile=singleslide attribute in beamer slides (#4169).
2950 + Use `\endhead` after `\toprule` in headerless tables (#4207).
2954 + Add cover image specified by `cover-image` meta (Alexander Krotov,
2957 * JATS writer (Hamish Mackenzie):
2959 + Support writing `<fig>` and `<table-wrap>` elements
2960 with `<title>` and `<caption>` inside them by using Divs with class set
2961 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
2962 title is included as a Heading so the constraint on where Heading can
2963 occur is also relaxed.
2964 + Leave out empty alt attributes on links.
2965 + Deduplicate image mime type code.
2966 + Make `<p>` optional in `<td>` and `<th>` (#4178).
2967 + Self closing tags for empty xref (#4187).
2968 + Improve support for code language.
2972 + Use init file to setup Lua interpreter (Albert Krewinkel).
2973 The same init file (`data/init`) that is used to setup the Lua
2974 interpreter for Lua filters is also used to setup the interpreter of
2976 + Define instances for newtype wrapper (Albert Krewinkel). The custom
2977 writer used its own `ToLuaStack` instance definitions, which made
2978 it difficult to share code with Lua filters, as this could result
2979 in conflicting instances. A `Stringify` wrapper is introduced to
2981 + Added tests for custom writer.
2982 + Fixed definition lists and tables in `data/sample.lua`.
2984 * Fixed regression: when target is PDF, writer extensions were being
2985 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
2986 did not work properly.
2988 * Lua modules (Albert Krewinkel):
2990 + Add `pandoc.utils` module, to hold utility functions.
2991 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
2992 define the `pandoc` lua module.
2993 + Make a Haskell module for each Lua module. Move definitions for the
2994 `pandoc.mediabag` modules to a separate Haskell module.
2995 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
2996 + Add function `pandoc.utils.hierarchicalize` (convert list of
2997 Pandoc blocks into (hierarchical) list of Elements).
2998 + Add function `pandoc.utils.normalize_date` (parses a date and
2999 converts it (if possible) to "YYYY-MM-DD" format).
3000 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
3001 of numbers below 4000 into roman numerals).
3002 + Add function `pandoc.utils.stringify` (converts any AST element
3003 to a string with formatting removed).
3004 + `data/init.lua`: load `pandoc.utils` by default
3005 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
3006 utility functions are converted from hybrid lua/haskell functions
3007 into full Haskell functions. This avoids the need for intermediate
3008 `_pipe`/`_read` helper functions, which have dropped.
3009 + pandoc.lua: re-add missing MetaMap function. This was a bug
3010 introduced in version 2.0.4.
3012 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
3013 a pure way to insert an ersatz file into a `FileTree`. In addition, we
3014 normalize paths both on insertion and on lookup.
3016 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
3018 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
3020 * Text.Pandoc.Extensions: Alphabetical order constructors for
3021 `Extension`. This makes them appear in order in `--list-extensions`.
3023 * Allow lenient decoding of latex error logs, which are not always
3024 properly UTF8-encoded (#4200).
3026 * Update latex template to work with recent versions of beamer.
3027 The old template produced numbered sections with some recent
3028 versions of beamer. Thanks to Thomas Hodgson.
3030 * Updated reference.docx (#4175). Instead of just "Hello, world", the
3031 document now contains exemplars of most of the styles that have an
3032 effect on pandoc documents. This makes it easier to see the effect
3035 * Removed `default.theme` data file (#4096). It is no longer needed now
3036 that we have `--print-highlight-style`.
3038 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
3039 We still need this for the alpine static linux build, since
3040 we don't have ghc 8.2.2 for that yet.
3042 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
3043 can put flag settings for pandoc-citeproc there.
3045 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
3046 make releases easier.
3050 + Add note on what formats have `+smart` by default.
3051 + Use native syntax for custom-style (#4174, Mauro Bieg).
3052 + Introduce dedicated Extensions section, since some extensions
3053 affect formats other than markdown (Mauro Bieg, #4204).
3054 + Clarify default html output for `--section-divs` (Richard Edwards).
3056 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
3057 Closes jgm/pandoc-website#16.
3059 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
3063 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
3064 generated with `--print-highlight-style` (#4133). Improve JSON
3065 serialization of styles.
3067 * Fix CSS issues involving line numbers (#4128).
3068 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
3069 Highlighting CSS no longer sets a generic color for pre and code; we only
3070 set these for class `sourceCode`.
3072 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
3074 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
3075 It works following the standard Pandoc conventions for making other
3076 sorts of slides. Caveats:
3078 + Syntax highlighting is not yet implemented. (This is difficult
3079 because there are no character classes in Powerpoint.)
3080 + Footnotes and Definition lists are not yet implemented. (Notes will
3081 usually take the form of a final slide.
3082 + Image placement and auto-resizing has a few glitches.
3083 + Reference powerpoint files don't work dependably from the command
3084 line. This will be implemented, but at the moment users are advised
3085 to change themes from within Powerpoint.
3087 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
3088 This is for functions used by both Powerpoint and Docx writers.
3090 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
3092 * Add `empty_paragraphs` extension.
3094 + Deprecate `--strip-empty-paragraphs` option. Instead we now
3095 use an `empty_paragraphs` extension that can be enabled on
3096 the reader or writer. By default, disabled.
3097 + Add `Ext_empty_paragraphs` constructor to `Extension`.
3098 + Revert "Docx reader: don't strip out empty paragraphs."
3099 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
3100 + Implement `empty_paragraphs` extension in docx reader and writer,
3101 opendocument writer, HTML reader and writer.
3102 + Add tests for `empty_paragraphs` extension.
3106 + Don't parse native div as table caption (#4119).
3107 + Improved computation of column widths in pipe tables.
3108 Pipe tables with lines longer than the text width (as set
3109 by `--columns`) are now scaled to text width, with the relative
3110 widths of columns determined by the ratios between the
3111 header lines. Previously we computed column widths using
3112 the ratio of header line lengths to column width, so that
3113 tables with narrow header lines were extremely thin, which
3114 was very rarely the desired result.
3116 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
3117 as long as it's not followed by a blank line. This has been fixed at the
3120 * Muse reader (Alexander Krotov):
3122 + Add test for `#disable-tables` directive in Emacs mode.
3123 + Don't allow emphasis to be preceded by letter.
3124 + Add underline support in Emacs Muse mode..
3125 + Support multiline directives in Amusewiki mode
3127 * Man writer: omit internal links (#4136). That is, just print the link
3128 text without the URL.
3130 * Markdown reader: accept processing instructions as raw HTML (#4125).
3132 * Lua filters (Albert Krewinkel):
3134 + Use script to initialize the interpreter. The file `init.lua` is
3135 used to initialize the Lua interpreter which is used in Lua filters.
3136 This gives users the option to require libraries which they want to
3137 use in all of their filters, and to extend default modules.
3138 + Fix package loading for Lua 5.1. The list of package searchers is
3139 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
3140 in Lua 5.2 and later.
3141 + Refactor lua module handling. The integration with Lua's package/module
3142 system is improved: A pandoc-specific package searcher is prepended to
3143 the searchers in `package.searchers`. The modules `pandoc` and
3144 `pandoc.mediabag` can now be loaded via `require`.
3145 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
3146 function which makes using Haskell functions as package loaders much
3149 * reveal.js template: add title-slide identifier to title slide (#4120).
3150 This allows it to be styled more easily.
3152 * LaTeX template: Added support for `pagestyle` variable (#4135,
3155 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
3161 * Add `--print-highlight-style` option. This generates a JSON version
3162 of a highlighting style, which can be saved as a `.theme` file, modified,
3163 and used with `--highlight-style` (#4106, #4096).
3165 * Add `--strip-empty-paragraphs` option. This works for any input format.
3166 It is primarily intended for use with docx and odt documents where
3167 empty paragraphs have been used for inter-paragraph spaces.
3169 * Support `--webtex` for `gfm` output.
3171 * Recognize `.muse` file extension.
3173 * Support beamer `\alert` in LaTeX reader. Closes #4091.
3175 * Docx reader: don't strip out empty paragraphs (#2252).
3176 Users who have a conversion pipeline from docx may want to consider adding
3177 `--strip-empty-paragraphs` to the command line.
3179 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
3181 * Muse reader (Alexander Krotov):
3183 + Parse markup in definition list terms.
3184 + Allow definition to end with EOF.
3185 + Make code blocks round trip.
3186 + Drop common space prefix from list items.
3187 + Add partial round trip test.
3188 + Don't interpret XML entities.
3190 + Parse `~~` as non-breaking space in Emacs mode.
3191 + Correctly remove indentation from notes. Exactly one space is
3192 required and considered to be part of the marker.
3193 + Allow list items to be empty.
3194 + Add ordered list test.
3195 + Add more multiline definition tests.
3196 + Don't allow blockquotes within lists.
3197 + Fix reading of multiline definitions.
3198 + Add inline `<literal>` support.
3199 + Concatenate inlines of the same type
3201 * Docx writer: allow empty paragraphs (#2252).
3203 * CommonMark/gfm writer:
3205 + Use raw html for native divs/spans (#4113). This allows a pandoc
3206 markdown native div or span to be rendered in gfm using raw html tags.
3207 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
3208 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
3210 * Muse writer (Alexander Krotov):
3212 + Test that inline math conversion result is normalized.
3213 Without normalization this test produced
3214 `<em>a</em><em>b</em><em>c</em>`.
3215 + Improve inline list normalization and move to writer.
3216 + Escape hash symbol.
3217 + Escape `----` to avoid accidental horizontal rules.
3218 + Escape only `</code>` inside code tag.
3219 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
3223 + Allow specifying just width or height for image size.
3224 Previously both needed to be specified (unless the image was
3225 being resized to be smaller than its original size).
3226 If height but not width is specified, we now set width to
3227 textwidth. If width but not height is specified, we now set
3228 height to textheight. Since we have `keepaspectratio`, this
3229 yields the desired result.
3230 + Escape `~` and `_` in code with `--listings` (#4111).
3232 * HTML writer: export `tagWithAttributes`. This is a helper allowing
3233 other writers to create single HTML tags.
3235 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
3236 converting the case as needed in LaTeX and ConTeXt writers.
3238 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
3239 so that it no longer produces empty `Para`'s as an artifact.
3241 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
3242 This gives us automatic normalization, so we don't get
3243 for example two consecutive Spaces.
3245 * Include default CSS for 'underline' class in HTML-based templates.
3247 * revealjs template: add `tex2jax` configuration for the
3248 math plugin. With the next release of reveal.js, this will
3249 fix the problem of `$`s outside of math contexts being
3250 interpreted as math delimiters (#4027).
3252 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
3254 + Add basic lua List module (#4099, #4081). The List module is
3255 automatically loaded, but not assigned to a global variable. It can be
3256 included in filters by calling `List = require 'List'`. Lists of blocks,
3257 lists of inlines, and lists of classes are now given `List` as a metatable,
3258 making working with them more convenient. E.g., it is now possible to
3259 concatenate lists of inlines using Lua's concatenation operator `..`
3260 (requires at least one of the operants to have `List` as a metatable):
3262 function Emph (emph)
3263 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
3264 return pandoc.Span(emph.content .. s)
3267 The `List` metatable is assigned to the tables which get passed to
3268 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
3269 enables the use of the resulting objects as lists.
3270 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
3271 Pandoc and Meta elements are now pushed by calling the respective
3272 constructor functions of the pandoc Lua module. This makes serialization
3273 consistent with the way blocks and inlines are pushed to lua and allows
3274 to use List methods with the `blocks` value.
3275 + Add documentation for pandoc.List in `lua-filters.md`.
3277 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
3278 `&` (but not a valid entity) following them (#4094, #4088).
3280 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
3281 when `numberLines` is used (#4103).
3283 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
3284 requiring a leading 0 on single-digit days.
3286 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
3289 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
3290 Previously we only mentioned `--latexmathml`, even if `-m` was
3293 * Changelog: fix description of lua filters in 2.0 release
3294 (Albert Krewinkel). Lua filters were initially run *after* conventional
3295 (JSON) filters. However, this was changed later to make it easier to deal
3296 with files in the mediabag. The changelog is updated to describe that
3297 feature of the 2.0 release correctly.
3299 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
3300 #4085). This reduces compile time and memory usage significantly.
3302 * `lua-filters.md`: Added tikz filter example.
3304 * Create alternative zip file for macOS binaries.
3306 * Create alternative zip file for Windows binaries.
3308 * Update INSTALL.md since we now provide zips for binaries.
3310 * Relax `http-types` dependency (Justus Sagemüller, #4084).
3312 * Add `epub.md`, `getting-started.md` to docs. These used to live in
3315 * Add `packages` target to Makefile.
3317 * Bump bounds for binary, http-types, tasty-hunit
3321 * Lua filters: preload text module (Albert Krewinkel, #4077).
3322 The `text` module is preloaded in lua. The module contains some UTF-8
3323 aware string functions, implemented in Haskell. The module is loaded on
3326 text = require 'text'
3328 s.text = text.upper(s.text)
3332 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
3333 #4071). Attribute lists are represented as associative lists in Lua. Pure
3334 associative lists are awkward to work with. A metatable is attached to
3335 attribute lists, allowing to access and use the associative list as if
3336 the attributes were stored in as normal key-value pair in table.
3337 Note that this changes the way `pairs` works on attribute lists. Instead
3338 of producing integer keys and two-element tables, the resulting iterator
3339 function now returns the key and value of those pairs. Use `ipairs` to
3340 get the old behavior. Warning: the new iteration mechanism only works if
3341 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
3343 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
3344 This fixes a bug where pandoc would stop parsing a URI with an
3345 empty attribute: for example, `&a=&b=` wolud stop at `a`.
3346 (The uri parser tries to guess which punctuation characters
3347 are part of the URI and which might be punctuation after it.)
3349 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
3351 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
3353 + Reimplemented `isEnabled` function from `Options.hs` to accept both
3354 `ReaderOptions` and `WriterOptions`.
3355 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
3357 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
3358 behavior for `muse`. New `Ext_amuse` constructor for
3359 `Extension`. Note: this is switched on by default; for
3360 Emacs behavior, use `muse-amuse`.
3362 * Muse reader (Alexander Krotov):
3364 + Count only one space as part of list item marker.
3365 + Produce SoftBreaks on newlines. Now wrapping can be preserved
3366 with `--wrap=preserve`.
3367 + Add Text::Amuse footnote extensions. Footnote end is indicated by
3368 indentation, so footnotes can be placed anywhere in the text,
3369 not just at the end of it.
3370 + Accept Emacs Muse definition lists when `-amuse`.
3371 Emacs Muse does not require indentation.
3375 + Ensure we don't produce level 0 headers (#4076), even for chapter
3376 sections in epubs. This causes problems because writers aren't set
3378 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
3379 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
3380 `markdown` or `html` `+tex_math_single_backslash`.
3381 + Parse div with class `line-block` as LineBlock.
3382 + Don't fail with block-level content in figcaption (Mauro Bieg, #4183).
3384 * MANUAL: clarify that math extensions work with HTML.
3385 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
3386 will work with HTML as well as Markdown.
3388 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
3391 * RST reader: better support for 'container' directive (#4066).
3392 Create a div, incorporate name attribute and classes.
3396 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
3397 `rr`. We now expand it like a macro.
3398 + Allow optional args for parbox (#4056).
3399 + Allow optional arguments on `\footnote` (#4062).
3401 * EPUB writer: Fixed path for cover image (#4069). It was previously
3402 `media/media/imagename`, and should have been `media/imagename`.
3404 * Markdown writer: fix bug with doubled footnotes in grid tables
3407 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
3408 Otherwise we seem to get an error; biblatex wants polyglossia
3409 language to be defined.
3411 * Added examples to lua filters documentation.
3416 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
3417 `--mimetex`, `--jsmath`.
3419 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
3420 leading to invalid XML in default JATS output with pandoc-citeproc.
3422 * `lua-filters.md`: use real-world man page filter as example.
3424 * Add lua filter functions `walk_inline` and `walk_block`
3425 in the pandoc module, to apply filters inside particular
3426 inline and block elements.
3428 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
3429 into new internal module `Text.Pandoc.Lua.Filter`.
3433 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
3434 This brings our handling of them into alignment with CommonMark's.
3435 + Fix YAML metadata with "chomp" (`|-`). Previously if a
3436 YAML block under `|-` contained a blank line, pandoc would
3437 not parse it as metadata.
3439 * Removed `etc.` from abbreviations file. Often `etc.` ends a
3440 sentence, and we want the period to be treated as a
3441 sentence-ending period.
3443 * Fix regression with `--metadata` (#4054). Values specified with
3444 `--metadata` should replace a metadata value set in the document
3445 itself, rather than creating a list including a new value.
3449 + Fix EPUB OCF structure. #3720 had been improperly implemented.
3450 + Fix modified paths for raw HTML tags (src, poster, etc.)
3451 (#4050, #4055). This had not been updated for the new EPUB
3452 container layout, with a separate text/ subdirectory.
3453 + Fix image paths with empty `--epub-subdirectory`.
3455 * Miscellaneous code cleanup (Alexander Krotov).
3457 * Use pandoc-types 1.17.3, which adds `Walkable` instances
3458 for `[Block] Block` and `[Inline] Inline`.
3460 * Remove obsolete `stack.full.yaml` (#4052).
3462 * Change to using pandoc-citeproc 0.12.1 in binary packages.
3464 * Consolidate math output method documentation (#4049, Mauro Bieg).
3466 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
3468 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
3469 Haskell filters. This is easier and faster.
3471 * Improved `INSTALL.md`.
3473 * Update commands to extract deb archive on Linux (#4043, Salim B).
3478 * Improved fix to #3989 (parsing of HTML tags containing
3479 `>` in an attribute or comment). The previous fix (in 2.0.1) only
3480 worked in certain cases.
3482 * FB2 writer (Alexander Krotov):
3484 + Add `unrecognised` genre to `<title-info>`
3485 (Alexander Krotov). XML schema requires at least one genre.
3486 + Remove `<annotation>` from `<body>`.
3488 * CommonMark writer: fix strikethrough for `gfm` (#4038).
3490 * Use texmath 0.10, which adds support for a wider range of
3491 symbols and fixes default column alignments in MathML
3494 * Highlighting fixes, using skylighting 0.4.3.2:
3497 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
3498 + Ensure that code lines don't get duplicate identifiers (#4031).
3499 The line identifiers are built using the code block's identifier
3500 as a prefix. If the code block has null identifier, we use
3503 * Added a few abbreviations to `data/abbreviations`,
3504 and sorted the list (#3984, Wandmalfarbe).
3506 * Improved support for columns in HTML writer (#4028).
3508 + Remove `width` attribute from the `div`.
3509 + Remove space between `<div class="column">` elements,
3510 since this prevents columns whose widths sum to 100%
3511 (the space takes up space).
3512 + Move as much as possible of the CSS to the template.
3513 + Ensure that all the HTML-based templates (including epub)
3514 contain the CSS for columns.
3515 + Columns default to 50% width unless they are given a width
3516 attribute. So if you want two equal-width columns, you
3517 can use a div with class `column` and no `width` attribute.
3519 * SelfContained: use `base64` for css links with media attribute (#4026).
3520 This fixes `--self-contained` with S5.
3522 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
3524 * Issue INFO, not WARNING, when a .sty file cannot be
3525 read in LaTeX reader. It is normally not an issue requiring
3526 a fix from the user if .sty files are not found.
3528 * INSTALL.md: MacOS instructions needed xar -f (adam234).
3532 + Clarify that --setext-headers doesn't affect gfm output (#4035).
3533 + Clarify what is needed to open and close a div in `fenced_divs`
3534 (#4039, Tristano Ajmone).
3535 + Removed reference to `default.beamer` in docs (#4024).
3536 Also added mention of other templates affecting PDF output
3537 with different settings.
3541 * Fixed regression in parsing of HTML comments in markdown and other
3542 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
3543 The parser stopped at the first `>` character, even if it wasn't
3544 the end of the comment.
3546 * Creole reader (Sascha Wilde):
3548 + Fix some minor typos and formatting.
3549 + Add additional test on nowiki-block after para.
3550 + Fix lists with trailing white space.
3552 * LaTeX reader: handle `%` comment right after command.
3553 For example, `\emph%`.
3555 * Markdown reader: make sure fenced div closers work in lists.
3556 Previously the following failed:
3563 and you needed a blank line before the closing `:::`.
3565 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
3566 enabled, Divs will be rendered as fenced divs.
3568 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
3571 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
3572 Note: this change may require some changes in CSS rules.
3573 `footnoteRef` has become `footnote-ref`, `titleslide` has
3574 become `title-slide`, and `footnoteBack` has become `footnote-back`.
3576 * JATS writer: Properly pass through author metadata (#4020).
3578 * FB2 writer (Alexander Krotov):
3580 + Write blocks outside of `<p>` in definitions.
3581 + Make bullet lists consistent with ordered lists, repeating
3582 the marker for the outer list rather than indenting sublists,
3583 since indentation does not work in readers.
3584 + Add new style FB2 tests.
3586 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
3587 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
3590 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
3592 * Fix broken reference links in manual (Andrew Dunning, #4014)
3594 * Fixed example of slide columns structure in changelog (#4015).
3595 Also documented this feature in MANUAL.txt.
3602 + Fixed filepaths for nonstandard epub-subdirectory values.
3603 + Ensure that epub2 is recognized as a non-text format,
3604 so that a template is used.
3605 + Don't include "prefix" attribute for ibooks for epub2.
3606 It doesn't validate.
3607 + Fix stylesheet paths; previously we had an incorrect
3608 stylesheet path for the cover page and nav page.
3612 + Insert space when needed in macro expansion (#4007).
3613 Sometimes we need to insert a space after a control sequence
3614 to prevent it merging with a following letter.
3615 + Allow unbraced arguments for macros (#4007).
3616 + Allow body of macro definition to be unbraced (#4007).
3618 * Linux package build: ensure that pandoc-citeproc is statically linked.
3620 * trypandoc: add native, ms.
3626 * New output format `ms` (groff ms). Complete support, including
3627 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
3628 texmath's new eqn writer to convert math to eqn format, so a ms file
3629 produced with this writer should be processed with `groff -ms -e` if
3632 * New output format `jats` (Journal Article Tag Suite). This is an XML
3633 format used in archiving and publishing articles. Note that a
3634 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
3635 unless a stylesheet is specified using `--css`.
3637 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
3638 This uses bindings to GitHub's fork of cmark, so it should parse
3639 gfm exactly as GitHub does (excepting certain postprocessing
3640 steps, involving notifications, emojis, etc.). `markdown_github`
3641 has been deprecated in favor of `gfm`.
3643 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
3645 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
3646 This uses bindings to GitHub's fork of cmark. `markdown_github`
3647 has been deprecated in favor of `gfm`.
3649 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
3651 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
3653 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
3654 Note that there is a new data file, `data/vimwiki.css`, which can
3655 be used to display the HTML produced by this reader and
3656 pandoc's HTML writer in the style of vimwiki's own HTML
3659 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
3661 * New syntax for Divs, with `fenced_divs` extension enabled by
3662 default (#168). This gives an attractive, plain-text way to create
3663 containers for block-level content.
3665 * Added new syntax for including raw content in any output format,
3666 enabled by the `raw_attribute` extension (which is on by default
3667 for `markdown` and `multimarkdown`). The syntax is the same as
3668 for fenced code blocks or code inlines, only with `{=FORMAT}` for
3669 attributes, where `FORMAT` is the name of the output format
3670 (e.g., `ms`, `html`).
3672 * Implement multicolumn support for slide formats (#1710).
3673 The structure expected is:
3675 :::::::::::::: {.columns}
3676 ::: {.column width="40%"}
3679 ::: {.column width="60%"}
3684 Support has been added for beamer and all HTML slide formats.
3686 * Allows line comments in templates, beginning with `$--` (#3806).
3687 (Requires doctemplates 0.2.1.)
3689 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
3690 (Stefan Dresselhaus, #3663, #2097).
3692 * Add `--log` option to save log messages in JSON format to a file (#3392).
3694 * Add `--request-header` option, to set request headers when pandoc
3695 makes HTTP requests to fetch external resources. For example:
3696 `--request-header User-Agent:blah`.
3698 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
3699 option works like `--filter` but takes pathnames of special lua filters
3700 and uses the lua interpreter baked into pandoc, so that no external
3701 interpreter is needed. Note that lua filters are all applied before
3702 regular filters, regardless of their position on the command line.
3703 For documentation of lua filters, see `doc/lua-filters.md`.
3705 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
3706 This contains a JSON representation of `ReaderOptions`, so filters
3709 * Support creation of pdf via groff `ms` and pdfroff.
3710 `pandoc -t ms -o output.pdf input.txt`.
3712 * Support for PDF generation via HTML and `weasyprint` or `prince`
3713 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
3715 * Added `--epub-subdirectory` option (#3720). This specifies the
3716 subdirectory in the OCF container that holds the EPUB specific content.
3717 We now put all EPUB related content in an `EPUB/` subdirectory by default
3718 (later this will be configurable).
3723 com.apple.ibooks.display-options.xml
3725 EPUB/ <<--configurable-->>
3726 fonts/ <<--static-->>
3728 media/ <<--static-->>
3731 styles/ <<--static-->>
3735 text/ <<--static-->>
3739 * Added `--resource-path=SEARCHPATH` command line option (#852).
3740 SEARCHPATH is separated by the usual character, depending on OS
3741 (: on unix, ; on windows). Default resource path is just working
3742 directory. However, the working directory must be explicitly
3743 specified if the `--resource-path` option is used.
3745 * Added `--abbreviations=FILE` option for custom abbreviations file
3746 (#256). Default abbreviations file (`data/abbreviations`) contains
3747 a list of strings that will be recognized by pandoc's
3748 Markdown parser as abbreviations. (A nonbreaking space will
3749 be inserted after the period, preventing a sentence space in
3750 formats like LaTeX.) Users can override the default by putting a file
3751 abbreviations in their user data directory (`~/.pandoc` on *nix).
3753 * Allow a theme file as argument to `--highlight-style`.
3754 Also include a sample, `default.theme`, in `data/`.
3756 * Allow `--syntax-definition` option for dynamic loading of syntax
3757 highlighting definitions (#3334).
3759 * Lists in `markdown` by default now use the CommonMark variable
3760 nesting rules (#3511). The indentation required for a block-level
3761 item to be included in a list item is no longer fixed, but is
3762 determined by the first line of the list item. To be included in
3763 the list item, a block must be indented to the level of the first
3764 non-space content after the list marker. Exception: if are 5 or more
3765 spaces after the list marker, then the content is interpreted as an
3766 indented code block, and continuation paragraphs must be indented
3767 two spaces beyond the end of the list marker. See the CommonMark
3768 spec for more details and examples.
3770 Documents that adhere to the four-space rule should, in most cases,
3771 be parsed the same way by the new rules. Here are some examples
3772 of texts that will be parsed differently:
3777 will be parsed as a list item with a sublist; under the four-space
3778 rule, it would be a list with two items.
3784 Here we have an indented code block under the list item, even though it
3785 is only indented six spaces from the margin, because it is four spaces
3786 past the point where a continuation paragraph could begin. With the
3787 four-space rule, this would be a regular paragraph rather than a code
3794 Here the code block will start with two spaces, whereas under
3795 the four-space rule, it would start with `code`. With the four-space
3796 rule, indented code under a list item always must be indented eight
3797 spaces from the margin, while the new rules require only that it
3798 be indented four spaces from the beginning of the first non-space
3799 text after the list marker (here, `a`).
3801 This change was motivated by a slew of bug reports from people
3802 who expected lists to work differently (#3125, #2367, #2575, #2210,
3803 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
3804 of CommonMark (now used by GitHub, for example). Those who
3805 prefer the old behavior can use `-f markdown+four_space_rule`.
3807 * Added `four_space_rule` extension. This triggers the old pandoc
3808 parsing rule for content nested under list items (the "four space
3811 * Added `spaced_reference_links` extension (#2602). It allows whitespace
3812 between the two parts of a reference link: e.g.
3818 This was previously enabled by default; it is now forbidden by default.
3820 * Add `space_in_atx_header` extension (#3512). This is enabled by default
3821 in pandoc and GitHub markdown but not the other flavors.
3822 This requires a space between the opening #'s and the header
3823 text in ATX headers (as CommonMark does but many other implementations
3824 do not). This is desirable to avoid falsely capturing things like
3832 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
3835 * Allow ibooks-specific metadata in epubs (#2693). You can now have
3836 the following fields in your YAML metadata, and it will be treated
3837 appropriately in the generated EPUB:
3842 specified-fonts: false
3843 ipad-orientation-lock: portrait-only
3844 iphone-orientation-lock: landscape-only
3846 scroll-axis: vertical
3852 * Reader functions no longer presuppose that CRs have been
3853 stripped from the input. (They strip CRs themselves, before
3854 parsing, to simplify the parsers.)
3856 * Added support for translations (localization) (#3559).
3857 Currently this only affects the LaTeX reader, for things
3858 like `\figurename`. Translation data files for 46 languages
3859 can be found in `data/translations`.
3861 * Make `--ascii` work with DocBook output too.
3863 * Rename `--latex-engine` to `--pdf-engine`,
3864 and `--latex-engine-opt` to `--pdf-engine-opt`.
3866 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
3867 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
3868 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
3869 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
3871 * With `--filter` R filters are now recognized, even if they are
3872 not executable (#3940, #3941, Andrie de Vries).
3874 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
3876 * Make epub an alias for epub3, not epub2.
3878 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
3879 Multiple stylesheets may be used. Stylesheets will be taken both from
3880 `--css` and from the `stylesheet` metadata field (which can contain
3881 either a file path or a list of them).
3883 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
3884 The argument was for a bridge JavaScript that used to be necessary
3885 in 2004. We have removed the script already.
3887 * `--katex` improvements. The latest version is used, and the
3888 autoload script is loaded by default.
3890 * Change MathJax CDN default since old one is shutting down (#3544).
3891 Note: The new URL requires a version number, which we'll have
3892 to update manually in subsequent pandoc releases in order to
3893 take advantage of mathjax improvements.
3895 * `--self-contained`: don't incorporate elements with `data-external="1"`
3896 (#2656). You can leave an external link as it is by adding the attribute
3897 data-external="1" to the element. Pandoc will then not try to
3898 incorporate its content when `--self-contained` is used. This is
3899 similar to a feature already supported by the EPUB writer.
3901 * Allow `--extract-media` to work with non-binary input formats
3902 (#1583, #2289). If `--extract-media` is supplied with a non-binary
3903 input format, pandoc will attempt to extract the contents of all
3904 linked images, whether in local files, data: uris, or external uris.
3905 They will be named based on the sha1 hash of the contents.
3907 * Make `papersize: a4` work regardless of the case of `a4`.
3908 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
3910 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
3912 * Underlined elements are now treated consistently by readers
3913 (#2270, hftf); they are always put in a Span with class `underline`.
3914 This allows the user to treat them differently from other emphasis,
3915 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
3918 * Improved behavior of `auto_identifiers` when there are explicit ids
3919 (#1745). Previously only autogenerated ids were added to the list
3920 of header identifiers in state, so explicit ids weren't taken
3921 into account when generating unique identifiers. Duplicated
3922 identifiers could result. This simple fix ensures that explicitly given
3923 identifiers are also taken into account.
3925 * Use `table-of-contents` for contents of toc, make `toc` a boolean
3926 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
3927 This allows you to set `toc: true` in the metadata; this
3928 previously produced strange results in some output formats.
3929 For backwards compatibility, `toc` is still set to the
3930 toc contents. But it is recommended that you update templates
3931 to use `table-of-contents` for the toc contents and `toc`
3934 * Change behavior with binary format output to stdout.
3935 Previously, for binary formats, output to stdout was disabled
3936 unless we could detect that the output was being piped (and not
3937 sent to the terminal). Unfortunately, such detection is not
3938 possible on Windows, leaving windows users no way to pipe binary
3939 output. So we have changed the behavior in the following way:
3941 + Output to stdout is allowed when it can be determined that
3942 the output is being piped (on non-Windows platforms).
3943 + If the `-o` option is not used, binary output is never sent
3944 to stdout by default; instead, an error is raised.
3945 + If `-o -` is used, binary output is sent to stdout, regardless
3946 of whether it is being piped. This works on Windows too.
3948 * Better error behavior: uses of `error` have been replaced by
3949 raising of `PandocError`, which can be trapped and handled by the
3952 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
3953 GitHub has two Markdown modes, one for long-form documents like READMEs
3954 and one for short things like issue comments. In issue comments, a line
3955 break is treated as a hard line break. In README, wikis, etc., it is
3956 treated as a space as in regular Markdown. Since pandoc is more likely to
3957 be used to convert long-form documents from GitHub Markdown,
3958 `-hard_line_breaks` is a better default.
3960 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
3962 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
3963 Previously they would be transmitted to the template without any
3964 escaping. Note that `--M title='*foo*'` yields a different result from
3970 In the latter case, we have emphasis; in the former case, just
3971 a string with literal asterisks (which will be escaped
3972 in formats, like Markdown, that require it).
3974 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
3976 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
3977 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
3978 it is valid HTML5. HTML4 is not affected. This will allow us to use
3979 custom attributes in pandoc without producing invalid HTML. (With help
3980 from Wandmalfarbe, #3817.)
3982 * Plain writer: improved super/subscript rendering. We now
3983 handle more non-digit characters for which there are
3984 sub/superscripted unicode characters. When unicode
3985 sub/superscripted characters are not available, we use
3986 `_(..)` or `^(..)` (#3518).
3988 * Docbook, JATS, TEI writers: print INFO message when omitting interior
3989 header (#3750). This only applies to section headers inside list items,
3990 e.g., which were otherwise silently omitted.
3992 * Change to `--reference-links` in Markdown writer (#3701). With
3993 `--reference-location` of `section` or `block`, pandoc will now repeat
3994 references that have been used in earlier sections. The Markdown
3995 reader has also been modified, so that *exactly* repeated references
3996 do not generate a warning, only references with the same label but
3997 different targets. The idea is that, with references after every block,
3998 one might want to repeat references sometimes.
4000 * ODT/OpenDocument writer:
4002 + Support `lang` attribute (#1667).
4003 + Added support for `--toc` (#2836). Thanks to @anayrat.
4007 + `lang` meta, see #1667 (Mauro Bieg, #3515).
4008 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
4009 + Use `Table` rather than `Table Normal` for table style (#3275).
4010 `Table Normal` is the default table style and can't be modified.
4011 + Pass through comments (#2994). We assume that comments are defined as
4012 parsed by the docx reader:
4014 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
4015 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
4016 have a comment <span class="comment-end" id="0"></span>on it.
4018 We assume also that the id attributes are unique and properly
4019 matched between comment-start and comment-end.
4020 + Bookmark improvements. Bookmark start/end now surrounds content rather
4021 than preceding it. Bookmarks generated for Div with id
4022 (jgm/pandoc-citeproc#205).
4023 + Add `keywords` metadata to docx document properties (Ian).
4025 * RST writer: support unknown interpreted text roles by
4026 parsing them as `Span` with `role` attributes (#3407). This
4027 way they can be manipulated in the AST.
4031 + Line block: Use class instead of style attribute (#1623). We now
4032 issue `<div class="line-block">` and include a default definition
4033 for `line-block` in the default templates, instead of hard-coding a
4035 + Add class `footnoteBack` to footnote back references (Timm Albers).
4036 This allows for easier CSS styling.
4037 + Render SmallCaps as span with smallcaps class (#1592), rather than
4038 using a style attribute directly. This gives the user more flexibility
4039 in styling small caps in CSS.
4040 + With reveal.js we use `data-src` instead of `src` for images for
4042 + Special-case `.stretch` class for images in reveal.js (#1291).
4043 Now in reveal.js, an image with class `stretch` in a paragraph
4044 by itself will stretch to fill the whole screen, with no
4045 caption or figure environment.
4047 * Added warnings for non-rendered blocks to writers.
4049 * Writers now raise an error on template failure.
4051 * When creating a PDF via LaTeX, warn if the font is missing some
4054 * Remove initial check for PDF-creating program (#3819).
4055 Instead, just try running it and raise the exception if it
4056 isn't found at that point. This improves things for users of Cygwin
4057 on Windows, where the executable won't be found by `findExecutable`
4058 unless `.exe` is added. The same exception is raised as before, but
4061 * Readers issue warning for duplicate header identifiers (#1745).
4062 Autogenerated header identifiers are given suffixes so as not to clash
4063 with previously used header identifiers. But they may still coincide with
4064 an explicit identifier that is given for a header later in the document,
4065 or with an identifier on a div, span, link, or image. We now issue
4066 a warning in this case, so users can supply an explicit identifier.
4068 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
4069 and `raw_html` extensions.
4073 + Don't allow backslash + newline to affect block structure (#3730).
4074 Note that as a result of this change, the following, which formerly
4075 produced a header with two lines separated by a line break, will
4076 now produce a header followed by a paragraph:
4081 This may affect some existing documents that relied on
4082 this undocumented and unintended behavior. This change makes pandoc
4083 more consistent with other Markdown implementations, and with itself
4084 (since the two-space version of a line break doesn't work inside ATX
4085 headers, and neither version works inside Setext headers).
4087 + A space between the opening # and the header is now required for
4088 pandoc and GitHub markdown (but not the other flavors). Disable
4089 the `space_in_atx_header` extension (#3512) to restore the
4093 * Org reader (Albert Krewinkel, unless noted):
4095 + Support `table.el` tables (#3314).
4096 + Support macros (#3401).
4097 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
4098 Recognized include types are `example`, `export`, `src`, and
4099 normal org file inclusion. Advanced features like line numbers
4100 and level selection are not implemented yet.
4101 + Interpret more meta value as inlines. The values of the following
4102 meta variables are now interpreted using org-markup instead of
4103 treating them as pure strings: `keywords` (comma-separated list of
4104 inlines), `subtitle` (inline values), `nocite` (inline values, can
4106 + Support `\n` export option (#3940). This turns all newlines in the
4107 text into hard linebreaks.
4111 + Improved admonition support (#223). We no longer add an
4112 `admonition` class, we just use the class for the type of admonition,
4113 `note` for example. We put the word corresponding to the label in
4114 a paragraph inside a `Div` at the beginning of the admonition with
4115 class `admonition-title`. This is about as close as we can get to
4117 + Initial support of `.. table` directive. This allows adding captions
4119 + Support `.. line-block` directive. This is deprecated but may still
4120 be in older documents.
4121 + Support scale and align attributes of images (#2662).
4122 + Implemented implicit internal header links (#3475).
4123 + Support RST-style citations (#853). The citations appear at the end
4124 of the document as a definition list in a special div with id
4125 `citations`. Citations link to the definitions.
4126 + Recurse into bodies of unknown directives (#3432).
4127 In most cases it's better to preserve the content than
4128 to emit it. This isn't guaranteed to have good results;
4129 it will fail spectacularly for unknown raw or verbatim directives.
4130 + Handle chained link definitions (#262). For example,
4133 .. _goodbye: example.com
4135 Here both `hello` and `goodbye` should link to `example.com`.
4136 + Support anchors (#262). E.g.
4144 This is supported by putting "paragraph" in a `Div` with id `hello`.
4145 + Support `:widths:` attribute for table directive.
4146 + Implement csv-table directive (#3533). Most attributes are supported,
4147 including `:file:` and `:url:`.
4148 + Support unknown interpreted text roles by parsing them as Span
4149 with "role" attributes (#3407). This way they can be manipulated in
4152 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
4156 + Implemented `\graphicspath` (#736).
4157 + Properly handle column prefixes/suffixes. For example, in
4158 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
4159 each cell will be interpreted as if it has a `$`
4160 before its content and a `$` after (math mode).
4161 + Handle komascript `\dedication` (#1845). It now adds a
4162 `dedication` field to metadata. It is up to the user to supply
4163 a template that uses this variable.
4164 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
4165 `sf`, `bf` (#3488). Spans with a class are used when there is
4167 + Expand `\newenvironment` macros (#987).
4168 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
4169 + Better support for subfigure package (#3577).
4170 A figure with two subfigures turns into two pandoc
4171 figures; the subcaptions are used and the main caption
4172 ignored, unless there are no subcaptions.
4173 + Add support for \vdots (Marc Schreiber, #3607).
4174 + Add basic support for hyphenat package (Marc Schreiber, #3603).
4175 + Add basic `\textcolor` support (Marc Schreiber).
4176 + Add support for `tabularx` environment (Marc Schreiber, #3632).
4177 + Better handling of comments inside math environments (#3113).
4178 This solves a problem with commented out `\end{eqnarray}` inside
4179 an eqnarray (among other things).
4180 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
4181 is selected (#3692). Otherwise skip with a warning. This is better
4182 than trying to parse it as text!
4183 + Add `\colorbox` support (Marc Schreiber).
4184 + Set identifiers on Spans used for `\label`.
4185 + Have `\setmainlanguage` set `lang` in metadata.
4186 + Support etoolbox's `\ifstrequal`.
4187 + Support `plainbreak`, `fancybreak` et al from the memoir class
4188 (bucklereed, #3833).
4189 + Support `\let`. Also, fix regular macros so they're expanded at the
4190 point of use, and NOT also the point of definition. `\let` macros,
4191 by contrast, are expanded at the point of definition. Added an
4192 `ExpansionPoint` field to `Macro` to track this difference.
4193 + Support simple `\def` macros. Note that we still don't support
4194 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
4195 + Support \chaptername, \partname, \abstractname, etc. (#3559,
4197 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
4198 attributes, so they can be handled in filters (Marc Schreiber, #3639)
4199 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
4200 #3589). Acronyms are not resolved by the reader, but acronym and
4201 glossary information is put into attributes on Spans so that they
4202 can be processed in filters.
4203 + Use `Link` instead of `Span` for `\ref`. This makes more sense
4204 semantically and avoids unnecessary `Span [Link]` nestings when
4205 references are resolved.
4206 + Rudimentary support for `\hyperlink`.
4207 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
4208 + Support `\lq`, `\rq`.
4209 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
4211 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
4212 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
4213 + Support `\k` ogonek accent.
4214 + Improve handling of accents. Handle ogonek, and fall back correctly
4215 with forms like `\"{}`.
4216 + Better support for ogonek accents.
4217 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
4218 + Support for `xspace` (Marc Schreiber, #3797).
4219 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
4221 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
4222 level 0 headers, and parts as level -1 headers. After parsing, we
4223 check for the lowest header level, and if it's less than 1 we bump
4224 everything up so that 1 is the lowest header level. So `\part` will
4225 always produce a header; no command-line options are needed.
4226 + Add block version of `\textcolor` (Marc Schreiber).
4227 + `\textcolor` works as inline and block command (Marc Schreiber).
4228 + `\textcolor` will be parse as span at the beginning of a paragraph
4230 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
4231 + Improved handling of include files in LaTeX reader (#3971).
4232 Previously `\include` wouldn't work if the included file
4233 contained, e.g., a begin without a matching end.
4234 + Support `\expandafter` (#3983).
4235 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
4236 as a synonym for `\newcommand`.
4237 + Handle `\lettrine` (Mauro Bieg).
4239 * Math improvements due to updates in texmath:
4241 + Improved handling of accents and upper/lower delimiters.
4242 + Support for output in GNU eqn format (used with *roff).
4243 + Allow `\boldsymbol` + a token without braces, and similarly
4244 with other styling commands.
4245 + Improve parsing of `\mathop` to allow multi-character operator names.
4246 + Add thin space after math operators when "faking it with
4249 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
4250 instance for `a -> [a]` (pandoc-types). Note that behavior
4251 will be slightly different, since `bottomUp`'s treatment of
4252 a function `[a] -> [a]` is to apply it to each sublist of a
4253 list, while walk applies it only to maximal sublists.
4254 Usually the latter behavior is what is wanted, and the
4255 former can be simulated when needed. But there may be
4256 existing filters that need to be rewritten in light of the
4257 new behavior. Performance should be improved.
4259 * There are some changes to syntax highlighting due to revisions
4260 in the `skylighting` library:
4262 + Support for `powershell` has been added, and many syntax
4263 definitions have been updated.
4264 + Background colors have been added to the `kate` style.
4265 + The way highlighted code blocks are formatted in HTML has
4266 been changed (David Baynard), in ways that may require
4267 changes in hard-coded CSS affecting highlighting.
4268 (If you haven't included hard-coded highlighting CSS in
4269 your template, you needn't change anything.)
4274 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
4275 This contains definitions of the `PandocMonad` typeclass, the
4276 `PandocIO` and `PandocPure` monads, and associated functions.
4278 * Changed types of all writers and readers.
4280 + We now use `Text` instead of `String` in the interface (#3731).
4281 (We have not yet changed the internals of most readers to work
4282 with `Text`, but making this change in the API now opens up a
4283 path to doing that.)
4284 + The result is now of form `m a` with constraint `PandocMonad m`.
4285 Readers and writers can be combined to form monadic values which
4286 can be run using either `runIO` or `runPure`. If `runIO` is used,
4287 then both readers and writers will be able to do IO when needed
4288 (for include files, for example); if `runPure` is used,
4289 then the functions are pure and will not touch IO.
4290 + Where previously you used
4291 `writeRST def (readMarkdown def "[foo](url)")`, now you
4293 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
4295 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
4296 contains reader helper functions formerly defined in the
4297 top-level `Text.Pandoc` module.
4299 + Changed `StringReader` -> `TextReader`.
4300 + `getReader` now returns a pair of a reader and
4301 `Extensions`, instead of building the extensions into the
4302 reader (#3659). The calling code must explicitly set
4303 `readerExtensions` using the `Extensions` returned. The
4304 point of the change is to make it possible for the calling
4305 code to determine what extensions are being used.
4307 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
4308 This contains writer helper functions formerly defined in the
4309 top-level `Text.Pandoc` module.
4311 + Changed `StringWriter` -> `TextWriter`.
4312 + `getWriter` now returns a pair of a reader and
4313 `Extensions`, instead of building the extensions into the
4314 reader (#3659). The calling code must explicitly set
4315 `readerExtensions` using the `Extensions` returned. The
4316 point of the change is to make it possible for the calling
4317 code to determine what extensions are being used.
4319 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
4322 * New module `Text.Pandoc.App`. This abstracts out the functionality
4323 of the command line program (`convertWithOpts`), so it can be reproduced
4324 e.g. in a desktop or web application. Instead of exiting, we throw errors
4325 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
4326 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
4327 The module also exports some utility functions for parsing options
4328 and running filters.
4330 * New module `Text.Pandoc.Logging` (exported module) (#3392).
4331 This now contains the `Verbosity` definition previously in
4332 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
4333 eventually be used instead of raw strings for warnings. This will enable
4334 us, among other things, to provide machine-readable warnings if desired.
4335 Include ToJSON instance and showLogMessage. This gives us the possibility
4336 of both machine-readable and human-readable output for log messages.
4338 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
4340 * New module `Text.Pandoc.Translations`, exporting `Term`,
4341 `Translations`, `readTranslations`.
4343 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
4344 `TokType`, `Line`, `Column`.
4346 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
4348 * Expose some previously private modules (#3260). These are often
4349 helpful to people writing their own reader or writer modules:
4351 + `Text.Pandoc.Writers.Shared`
4352 + `Text.Pandoc.Parsing`
4353 + `Text.Pandoc.Asciify`
4354 + `Text.Pandoc.Emoji`
4355 + `Text.Pandoc.ImageSize`
4356 + `Text.Pandoc.Highlighting`
4358 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
4359 Extension parsing and processing functions were defined in the top-level
4360 `Text.Pandoc` module. These functions are moved to the Extensions
4361 submodule as to enable reuse in other submodules.
4363 * Add `Ext_raw_attribute` constructor for `Extension`.
4365 * Add `Ext_fenced_divs` constructor for `Extension'.
4367 * Add `Ext_four_space_rule` constructor in `Extension`.
4369 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
4371 * Add `Monoid` instance for `Extensions`.
4373 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
4375 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
4377 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
4379 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
4381 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
4383 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
4385 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
4387 * Export `setVerbosity` from `Text.Pandoc`.
4389 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
4391 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
4393 * `Text.Pandoc.UTF8`:
4395 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
4396 Define `toString`, `toStringLazy` in terms of them.
4397 + Add new functions parameterized on `Newline`: `writeFileWith`,
4398 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
4400 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
4402 * `Text.Pandoc.Highlighting`:
4404 + `highlighting` now returns an Either rather than Maybe.
4405 This allows us to display error information returned by the skylighting
4406 library. Display a warning if the highlighting library throws an error.
4407 + Add parameter for `SyntaxMap` to `highlight`.
4409 * `Text.Pandoc.Writers.Math`:
4411 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
4412 we only need to update these in one place.
4414 * `Text.Pandoc.SelfContained`:
4416 + Removed `WriterOptions` parameter from `makeSelfContained`.
4417 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
4418 the need to pass MediaBag around and improves exceptions. It also
4419 opens up the possibility of using makeSelfContained purely.
4420 + Export `makeDataURI`.
4422 * `Text.Pandoc.ImageSize`:
4424 + Export `lengthToDim`, new function `scaleDimension`.
4425 + Export `inEm` from ImageSize (#3450).
4426 + Change `showFl` and `show` instance for `Dimension` so
4427 extra decimal places are omitted.
4428 + Added `Em` as a constructor of `Dimension`.
4429 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
4431 * `Text.Pandoc.Templates`:
4433 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
4434 and raises a proper `PandocTemplateError` if there are problems, rather
4435 than failing with uncatchable `error`.
4436 + Change signature of `getDefaultTemplate`. Now it runs in any instance
4437 of `PandocMonad`, and returns a `String` rather than an `Either` value.
4438 And it no longer takes a `datadir` parameter, since this can be
4439 retrieved from `CommonState`.
4441 * `Text.Pandoc.Options`:
4443 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
4444 The EPUB writer now takes its EPUB subdirectory from this option.
4445 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
4446 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
4447 + Add `writerSyntaxMap` to `WriterOptions`.
4448 + Removed `writerEpubStylesheet` from `WriterOptions`.
4449 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
4450 in `CommonState` in `PandocMonad` instances. (And thus it can be used
4452 + Changed `writerEpubMetadata` to a `Maybe String`.
4453 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
4454 the `latex_macros` reader extension.
4455 + FromJSON/ToJSON instances for `ReaderOptions`.
4456 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
4457 one string (for the KaTeX base URL), rather than two.
4458 + Removed `writerSourceURL` from `WriterOptions`. We now use
4459 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
4461 * `Text.Pandoc.Shared`:
4463 + `tabFilter` now takes a `Text`, not `String`.
4464 + `openURL`: Changed type from an Either. Now it will just raise
4465 an exception to be trapped later.
4466 + Remove `normalizeSpaces` (#1530).
4467 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
4468 + Export a new function `crFilter`.
4469 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
4470 + Provide custom `isURI` that rejects unknown schemes.
4471 (Albert Krewinkel, #2713). We also export the set of known
4472 `schemes`. The new function replaces the function of the same name
4473 from `Network.URI`, as the latter did not check whether a scheme is
4474 well-known. All official IANA schemes (as of 2017-05-22) are
4475 included in the set of known schemes. The four non-official schemes
4476 `doi`, `isbn`, `javascript`, and `pmid` are kept.
4478 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
4479 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
4480 where they are defined in terms of `PandocMonad`
4481 primitives and have different signatures.
4482 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
4483 + Add `underlineSpan`.
4485 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
4487 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
4488 With the new API one can simply use `getLog` after running
4491 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
4492 and `rawLaTeXBlock`. (Both now return a `String`, and they are
4493 polymorphic in state.)
4496 [bug fixes and under-the-hood improvements]
4498 * TEI writer: Added identifiers on `<div>` elements.
4500 * DokuWiki reader: Better handling for code block in list item (#3824).
4502 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
4504 * ZimWiki writer: Removed internal formatting from note and table cells,
4505 because ZimWiki does not support it (Alex Ivkin, #3446).
4509 + Updated list of syntax highlighting languages (#3461).
4510 Now `r` gets you `<source>` rather than `<code>` (among others).
4511 + Add display attribute on `<math>` tags (#3452). This allows display
4512 math to be rendered properly.
4513 + Remove newline before `</ref>` (#2652).
4514 + Don't softbreak lines inside list items (#3531).
4518 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
4519 + Add unit tests (Alexander Krotov).
4520 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
4521 + Do not strip `#` from Org anchor links (Alexander Krotov).
4523 * CommonMark writer:
4525 + Avoid excess blank lines at end of output.
4526 + Prefer pipe tables to HTML tables even if it means losing relative
4527 column width information (#3734).
4528 + Support table, strikethrough extensions, when enabled (as with gfm).
4529 Note that we bypass the commonmark writer from cmark and construct our
4530 own pipe tables, with better results.
4531 + Properly support `--wrap=none`.
4532 + Use smallcaps class for `SmallCaps` (#1592).
4533 + Omit "fig:" prefix in image titles. This is used internally to
4534 indicate internal figures.
4538 + Properly handle table captions.
4539 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
4540 + Implemented `+/-smart` and improved escaping with `+smart`.
4541 + Add empty comments when needed to avoid including a blockquote
4542 in the indented content of a preceding block (#3675).
4543 + Improve grid table output, fix bug with empty rows (#3516).
4544 Uses the new `gridTable` in Writers.Shared, which is here
4545 improved to better handle 0-width cells.
4546 + Remove space at beginning/end of RST code span (#3496). Otherwise
4547 we get invalid RST. There seems to be no way to escape the space.
4548 + Add header anchors when header has non-standard id (#3937).
4549 + Correctly handle inline code containing backticks, using a `:literal:`
4551 + Don't backslash-escape word-internal punctuation (#3978).
4555 + Don't include variables in metadata blocks. Previously variables set
4556 on the command line were included in e.g. YAML metadata, contrary to
4557 documentation and intentions.
4558 + Improved escaping with `+smart`.
4559 + Fixed grid tables embedded in grid tables (#2834).
4560 + Use span with class 'smallcaps' for SmallCaps, instead of a style
4561 attribute as before (#1592).
4562 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
4563 extension is enabled (#3454). Otherwise in a document starting with
4564 a literal `%` the first line is wrongly interpreted as a title.
4565 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
4566 properly escape things that would otherwise start ordered lists,
4572 + Better handling of tables with empty columns (#3337). We now
4573 calculate the number of columns based on the longest row (or the
4574 length of aligns or widths).
4575 + Escape unordered list markers at beginning of paragraph (#3497), to
4576 avoid false interpretation as a list.
4577 + Escape `|` appropriately.
4578 + Ensure space before list at top level (#3487).
4579 + Avoid spurious blanklines at end of document after tables and list,
4581 + Fixed bugs in simple/multiline list output (#3384).
4582 Previously we got overlong lists with `--wrap=none`. This is fixed.
4583 Previously a multiline list could become a simple list (and would
4584 always become one with `--wrap=none`).
4585 + Don't emit a simple table if `simple_tables` disabled (#3529).
4586 + Case-insensitive reference links (David A Roberts, #3616).
4587 Ensure that we do not generate reference links whose labels differ only
4588 by case. Also allow implicit reference links when the link
4589 text and label are identical up to case.
4590 + Put space before reference link definitions (Mauro Bieg, #3630).
4591 + Better escaping for links (David A. Roberts, #3619). Previously the
4592 Markdown writer would sometimes create links where there were none
4593 in the source. This is now avoided by selectively escaping bracket
4594 characters when they occur in a place where a link might be created.
4595 + Added missing `\n` (David A. Roberts, #3647).
4596 + Fixed duplicated reference links with `--reference-links`
4597 and `--reference-location=section` (#3674). Also ensure that there
4598 are no empty link references `[]`.
4599 + Avoid inline surround-marking with empty content (#3715).
4600 E.g. we don't want `<strong></strong>` to become `****`.
4601 Similarly for emphasis, super/subscript, strikeout.
4602 + Don't allow soft break in header (#3736).
4603 + Make sure `plain`, `markdown_github`, etc. work for raw.
4604 Previously only `markdown` worked. Note: currently a raw block labeled
4605 `markdown_github` will be printed for any `markdown` format.
4606 + Ensure that `+` and `-` are escaped properly so they don't cause
4607 spurious lists (#3773). Previously they were only
4608 if succeeded by a space, not if they were at end of line.
4609 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
4610 even if the table has relative width information (#3734).
4611 + Markdown writer: don't crash on `Str ""`.
4612 + Make `Span` with null attribute transparent. That is, we don't use
4613 brackets or `<span>` tags to mark spans when there are no attributes;
4614 we simply output the contents.
4615 + Escape pipe characters when `pipe_tables` enabled (#3887).
4616 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
4617 we backslash escape these. Otherwise we use entities as before.
4618 + When writing plain, don't use ` ` to separate list and indented
4619 code. There's no need for it in this context, since this isn't to be
4620 interpreted using Markdown rules.
4621 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
4622 HTML links containing classes originally now preserve them when using
4623 JavaScript email obfuscation.
4624 + Render `SmallCaps` as a native span when `native_spans` are enabled.
4625 + Always write attributes with `bracketed_spans` (d-dorazio).
4629 + Fix handling of nested font commands (#3568). Previously pandoc emitted
4630 incorrect markup for bold + italic, for example, or bold + code.
4631 + Avoid error for definition lists with no definitions (#3832).
4635 + Fix internal links with `writerIdentifierPrefix opt`
4636 (#3397, Mauro Bieg).
4640 + Don't include bookmarks on headers unless non-null id (#3476).
4641 + Support 9 levels of headers (#1642).
4642 + Allow 9 list levels (#3519).
4643 + Don't take `distArchive` from datadir (#3322). The docx writer takes
4644 components from the distribution's version of `reference.docx` when it
4645 can't find them in a user's custom `reference.docx`. Previously, we
4646 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
4647 to be used as the distribution's reference.docx. This led to a
4648 bizarre situation where pandoc would produce a good docx using
4649 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
4650 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
4651 + Fixed handling of soft hyphen (0173) (#3691).
4652 + Better handling of keywords (#3719).
4653 + Cleaner code for handling dir and style attributes for `Div`.
4654 + Use `Set` for dynamic styles to avoid duplicates.
4655 + Removed redundant element from data/docx/word/numbering.xml.
4656 The elements we need are generated when the document is
4657 compiled; this didn't do anything.
4658 + Activate `evenAndOddHeaders` from reference docx (#3901,
4659 Augustín Martín Barbero).
4661 * ODT/OpenDocument writer:
4663 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
4664 + Use more widely available bullet characters (#1400). The old
4665 characters weren't available in some font sets. These seem to work
4666 well on Windows and Linux versions of LibreOffice.
4667 + Wider labels for lists (#2421). This avoids overly narrow labels for
4668 ordered lists with `()` delimiters. However, arguably it creates
4669 overly wide labels for bullets. Also, lists now start flush with
4670 the margin, rather than indented.
4671 + Fixed dropped elements in some ordered lists (#2434).
4675 + Don't render `RawBlock` as code.
4676 + Don't fail with an error on interior headers (e.g. in list) (#3750).
4677 Instead, omit them with an INFO message.
4678 + Add support for "lang" metadata (Alexander Krotov, #3625).
4679 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
4680 produced one paragraph with `<empty-line/>` elements, which are not
4681 allowed inside `<p>` according to FB2 schema.
4682 + Replace `concatMap` with `cMap` (Alexander Krotov).
4683 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
4688 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
4689 + Render raw inline environments when `--mathjax` used (#3816).
4690 We previously did this only with raw blocks, on the assumption
4691 that math environments would always be raw blocks. This has changed
4692 since we now parse them as inline environments.
4693 + Ensure we don't get two style attributes for width and height.
4694 + Report when not rendering raw inline/block.
4695 + Issue warning if no title specified and template used (#3473).
4696 + Info message if `lang` is unspecified (#3486).
4697 + Removed unused parameter in `dimensionsToAttributeList`.
4698 + Avoid two class attributes when adding `uri` class (#3716).
4699 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
4701 + Use revealjs's math plugin for mathjax (#3743). This is a thin
4702 wrapper around mathjax that makes math look better on revealjs.
4703 + Slidy: use h1 for all slides, even if they were originally
4704 level 2 headers (#3566). Otherwise the built-in table of contents
4709 + Don't render LaTeX images with data: URIs (#3636). Note that
4710 `--extract-media` can be used when the input contains data: URIs.
4711 + Make highlighted code blocks work in footnotes (Timm Albers).
4712 + Don't use figure inside table cell (#3836).
4713 + Use proper code for list enumerators (#3891). This should fix problems
4714 with lists that don't use arabic numerals.
4715 + Always add hypertarget when there's a non-empty identifier (#2719).
4716 Previously the hypertargets were only added when there was actually
4717 a link to that identifier.
4718 + Use `%` after hypertarget before code block.
4719 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
4720 fixes formatting problems in beamer citations).
4721 + Don't use `lstinline` in \item[..] (#645). If you do, the contents
4722 of item disappear or are misplaced. Use `\texttt` instead.
4723 + Fix problem with escaping in `lstinline` (#1629). Previously the
4724 LaTeX writer created invalid LaTeX when `--listings` was specified and
4725 a code span occurred inside emphasis or another construction.
4726 + Fix error with line breaks after empty content (#2874). LaTeX
4727 requires something before a line break, so we insert a `~` if no
4728 printable content has yet been emitted.
4730 + Fixed detection of otherlangs (#3770). We weren't recursing into
4732 + Handle language in inline code with `--listings` (#3422).
4733 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
4734 The textcomp package allows pdfLaTeX to parse `€` directly, making the
4735 `\euro` command unneeded.
4736 + Fixed footnotes in table captions (#2378). Note that if the table has
4737 a first page header and a continuation page header, the notes will
4738 appear only on the first occurrence of the header.
4739 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
4740 Previously you could link to a header above or below slide level but
4741 not *to* slide level. This commit changes that. Hypertargets are
4742 inserted inside frame titles; technically the reference is to just
4743 after the title, but in normal use (where slides are viewed full
4744 screen in a slide show), this does not matter.
4745 + Remove `\strut` at beginning of table cells (#3436). This fixes a
4746 problem with alignment of lists in table cells. The `\strut` at the
4747 end seems to be enough to avoid the too-close spacing that motivated
4748 addition of the strut in #1573.
4749 + Add partial siunitx Support (Marc Schreiber, #3588).
4753 + Refactored to use BCP47 module.
4754 + Remove unnecessary `$` (Alexander Krotov, #3482).
4755 + Use header identifiers for chapters (#3968).
4759 + `title_page.xhtml` is now put in `text/`.
4760 + Don't strip formatting in TOC (#1611).
4764 + Fix bug for certain links in table cells (#3667).
4765 + Allow 'pre' code in list item (#3916).
4769 + Added warnings for ignored material (#3392).
4770 + Better sanity checks to avoid parsing unintended things as
4771 raw HTML in the Markdown reader (#3257).
4772 + Revise treatment of `li` with `id` attribute (#3596). Previously we
4773 always added an empty div before the list item, but this created
4774 problems with spacing in tight lists. Now we do this: If the list
4775 item contents begin with a `Plain` block, we modify the `Plain`
4776 block by adding a `Span` around its contents. Otherwise, we add a
4777 `Div` around the contents of the list item (instead of adding an
4778 empty `Div` to the beginning, as before).
4779 + Add `details` tag to list of block tags (#3694).
4780 + Removed `button` from block tag list (#3717). It is already in the
4781 `eitherBlockOrInlineTag` list, and should be both places.
4782 + Use `Set`s instead of lists for block tag lookup.
4783 + Rewrote to use `Text` throughout. Effect on memory usage is modest
4785 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
4787 + Ensure that paragraphs are closed properly when the parent block
4788 element closes, even without `</p>` (#3794).
4789 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
4790 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
4791 `<main>` closes `<p>` and behaves like a block element generally
4792 + Support column alignments (#1881). These can be set either
4793 with a `width` attribute or with `text-width` in a `style` attribute.
4794 + Modified state type to be an instance of `HasLogMessages`, so
4795 `registerHeader` can issue warnings.
4796 + `</td>` or `</th>` should close any open block tag (#3991).
4797 + `<td>` should close an open `<th>` or `<td>`.
4798 + `htmlTag` improvements (#3989). We previously failed on cases
4799 where an attribute contained a `>` character. This patch fixes the
4800 bug, which especially affects raw HTML in Markdown.
4804 + Newline is not indentation (Alexander Krotov).
4808 + Allow extra hyphens after `|-` in tables (#2649).
4809 + Allow blank line after table start (#2649).
4810 + Fixed more table issues (#2649).
4811 + Ensure that list starts begin at left margin (#2606). Including when
4812 they're in tables or other list items.
4813 + Make smart double quotes depend on `smart` extension (#3585).
4814 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
4815 + Modified state type to be an instance of `HasLogMessages`, so
4816 `registerHeader` can issue warnings.
4818 * TWiki reader (Alexander Krotov):
4820 + Remove unnecessary `$` (#3597).
4821 + Simplify `linkText` (#3605).
4825 + Minor refactoring, avoiding explicit MediaBag handling.
4826 This all works behind the scenes in CommonState plumbing.
4830 + Don't drop smartTag contents (#2242).
4831 + Handle local namespace declarations (#3365). Previously we didn't
4832 recognize math, for example, when the xmlns declaration occurred on
4833 the element and not the root.
4834 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
4835 does the work of `normalizeSpaces` as well, so we avoid the need for
4837 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
4838 paragraphs styled with "HeadingN" as "nth-level header." But if a
4839 document has a custom style named "Heading0", this will produce a
4840 0-level header, which shouldn't exist. We only parse this style
4841 if N>0. Otherwise we treat it as a normal style name, and
4842 follow its dependencies, if any.
4843 + Add tests for avoiding zero-level header (Jesse Rosenthal).
4847 + Replaced `collectRights` with Rights from `Data.Either`.
4848 + Remove dead code (Albert Krewinkel).
4850 * Org reader (Albert Krewinkel, unless noted).
4852 + Don't allow tables inside list items (John MacFarlane, #3499).
4853 + Disallow tables on list marker lines (#3499).
4854 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
4855 + Allow emphasized text to be followed by `[` (#3577).
4856 + Handle line numbering switch for src blocks.
4857 The line-numbering switch that can be given to source blocks (`-n` with
4858 an start number as an optional parameter) is parsed and translated to a
4859 class/key-value combination used by highlighting and other readers and
4861 + Stop adding rundoc prefix to src params. Source block parameter names
4862 are no longer prefixed with `rundoc`. This was intended to simplify
4863 working with the rundoc project, a babel runner. However, the rundoc
4864 project is unmaintained, and adding those markers is not the reader's
4865 job anyway. The original language that is specified for a source
4866 element is now retained as the `data-org-language` attribute and only
4867 added if it differs from the translated language.
4868 + Allow multi-word arguments to src block params (#3477). The reader now
4869 correctly parses src block parameter list even if parameter arguments
4870 contain multiple words.
4871 + Avoid creating `nullMeta` by applying `setMeta` directly
4873 + Replace `sequence . map` with `mapM`.
4874 + Fix smart parsing behavior. Parsing of smart quotes and special
4875 characters can either be enabled via the `smart` language extension or
4876 the `'` and `-` export options. Smart parsing is active if either the
4877 extension or export option is enabled. Only smart parsing of special
4878 characters (like ellipses and en and em dashes) is enabled by default,
4879 while smart quotes are disabled. Previously, all smart parsing was
4880 disabled unless the language extension was enabled.
4881 + Subject full doc tree to headline transformations (Albert Krewinkel,
4882 #3695). Emacs parses org documents into a tree structure, which is
4883 then post-processed during exporting. The reader is changed to do the
4884 same, turning the document into a single tree of headlines starting
4886 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
4887 cite keys included special characters also at the end. This caused
4888 problems when citations occur right before colons or at the end of
4889 a sentence. With this change, all non alphanumeric characters at
4890 the end of a cite key are ignored. This also adds `,` to the list
4891 of special characters that are legal in cite keys to better mirror
4892 the behaviour of org-export.
4893 + Fix module names in haddock comments. Copy-pasting had lead to
4894 haddock module descriptions containing the wrong module names.
4895 + Recognize babel result blocks with attributes (#3706). Babel
4896 result blocks can have block attributes like captions and names.
4897 Result blocks with attributes were not recognized and were parsed
4898 as normal blocks without attributes.
4899 + Include tags in headlines. The Emacs default is to include tags in the
4900 headline when exporting. Instead of just empty spans, which contain the
4901 tag name as attribute, tags are rendered as small caps and wrapped in
4902 those spans. Non-breaking spaces serve as separators for multiple tags.
4903 + Respect export option for tags (#3713). Tags are appended to
4904 headlines by default, but will be omitted when the `tags` export option
4906 + Use `tag-name` attribute instead of `data-tag-name`.
4907 + Use `org-language` attribute rather than `data-org-language`.
4908 + Modified state type to be an instance of `HasLogMessages`, so
4909 `registerHeader` can issue warnings.
4910 + End footnotes after two blank lines. Footnotes can not only be
4911 terminated by the start of a new footnote or a header, but also by two
4912 consecutive blank lines.
4913 + Update emphasis border chars (#3933). The org reader was updated to
4914 match current org-mode behavior: the set of characters which are
4915 acceptable to occur as the first or last character in an org emphasis
4916 have been changed and now allows all non-whitespace chars at the
4917 inner border of emphasized text (see `org-emphasis-regexp-components`).
4921 + Fixed small bug in list parsing (#3432). Previously the parser didn't
4922 handle properly this case:
4928 + Handle multiline cells in simple tables (#1166).
4929 + Parse list table directive (Keiichiro Shikano, #3432).
4930 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
4931 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
4932 + Reorganize block parsers for ~20% faster parsing.
4933 + Fixed `..include::` directive (#3880).
4934 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
4935 Previously pandoc would sometimes combine two line blocks separated
4936 by blanks, and ignore trailing blank lines within the line block.
4937 + Fix indirect hyperlink targets (#512).
4941 + Allow attributes in reference links to start on next line (#3674).
4942 + Parse YAML metadata in a context that sees footnotes defined in
4943 the body of the document (#1279).
4944 + When splitting pipe table cells, skip tex math (#3481).
4945 You might have a `|` character inside math. (Or for that matter
4946 something that the parser might mistake for raw HTML.)
4947 + Treat span with class `smallcaps` as SmallCaps.
4948 This allows users to specify small caps in Markdown this way:
4949 `[my text]{.smallcaps}` (#1592).
4950 + Fixed internal header links (#2397).
4951 This patch also adds `shortcut_reference_links` to the list
4953 + Treat certain environments as inline
4954 when they occur without space surrounding them (#3309, #2171).
4955 E.g. equation, math. This avoids incorrect vertical space
4957 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
4958 + Allow latex macro definitions indented 1-3 spaces.
4959 Previously they only worked if nonindented.
4960 + Improved parsing of indented raw HTML blocks (#1841).
4961 Previously we inadvertently interpreted indented HTML as
4962 code blocks. This was a regression. We now seek to determine the
4963 indentation level of the contents of an HTML block, and (optionally)
4964 skip that much indentation. As a side effect, indentation may be
4965 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
4966 used. This is better than having things interpreted as indented
4968 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
4969 + Warn for notes defined but not used (#1718).
4970 + Use `anyLineNewline` (Alexander Krotov).
4971 + Interpret YAML metadata as Inlines when possible (#3755). If
4972 the metadata field is all on one line, we try to interpret it as
4973 Inlines, and only try parsing as Blocks if that fails. If it
4974 extends over one line (including possibly the `|` or `>` character
4975 signaling an indented block), then we parse as Blocks. This was
4976 motivated by some German users finding that `date: '22. Juin 2017'`
4977 got parsed as an ordered list.
4978 + Fixed spurious parsing as citation as reference def (#3840).
4979 We now disallow reference keys starting with `@` if the
4980 `citations` extension is enabled.
4981 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
4982 Previously only `[-@roe]` (with brackets) was recognized as
4983 suppress-author, and `-@roe` was treated the same as `@roe`.
4984 + Fixed parsing of fenced code after list when there is no intervening
4986 + Allow raw latex commands starting with `\start` (#3558). Previously
4987 these weren't allowed because they were interpreted as starting
4988 ConTeXt environments, even without a corresponding `\stop`...
4989 + Added `inlines`, `inlines1`.
4990 + Require nonempty alt text for `implicit_figures` (#2844).
4991 A figure with an empty caption doesn't make sense.
4992 + Removed texmath macro material; now all this is handled
4993 in the LaTeX reader functions.
4994 + Fixed bug with indented code following raw LaTeX (#3947).
4998 + Rewrote LaTeX reader with proper tokenization (#1390,
4999 #2118, #3236, #3779, #934, #982). This rewrite is primarily
5000 motivated by the need to get macros working properly. A side benefit
5001 is that the reader is significantly faster. We now tokenize the
5002 input text, then parse the token stream. Macros modify the token
5003 stream, so they should now be effective in any context, including
5004 math. Thus, we no longer need the clunky macro processing
5005 capacities of texmath.
5006 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
5007 + Allow `\newcommand\foo{blah}` without braces.
5008 + Support `\lstinputlisting` (#2116).
5009 + Issue warnings when skipping unknown latex commands (#3392).
5010 + Include contents of `\parbox`.
5011 + Allow `\hspace` and `\vspace` to count as raw block or inline.
5012 Previously we would refuse to parse anything as raw inline if
5013 it was in the `blockCommands` list. Now we allow exceptions
5014 if they're listed under ignoreInlines in inlineCommands.
5015 This should make it easier e.g. to include an `\hspace`
5016 between two side-by-side raw LaTeX tables.
5017 + Don't drop contents of `\hypertarget`.
5018 + Handle spaces before `\cite` arguments.
5019 + Allow newpage, clearpage, pagebreak in inline contexts as well as
5020 block contexts (#3494).
5021 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
5022 + Use `pMacroDefinition` in macro (for more direct parsing).
5023 Note that this means that `macro` will now parse one
5024 macro at a time, rather than parsing a whole group together.
5025 + Fixed failures on \ref{}, \label{} with `+raw_tex`. Now these
5026 commands are parsed as raw if `+raw_tex`; otherwise, their argument
5027 is parsed as a bracketed string.
5028 + Don't crash on empty `enumerate` environment (#3707).
5029 + Handle escaped `&` inside table cell (#3708).
5030 + Handle block structure inside table cells (#3709). `minipage` is no
5032 + Handle some width specifiers on table columns (#3709). Currently
5033 we only handle the form `0.9\linewidth`. Anything else would have
5034 to be converted to a percentage, using some kind arbitrary assumptions
5036 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
5037 LaTeX reader's treatment of raw commands, but it also affects the
5039 + Fixed regression with starred environment names (#3803).
5040 + Handle optional args in raw `\titleformat` (#3804).
5041 + Improved heuristic for raw block/inline. An unknown command at the
5042 beginning of the line that could be either block or inline is
5043 treated as block if we have a sequence of block commands followed by
5044 a newline or a `\startXXX` command (which might start a raw ConTeXt
5046 + Don't remove macro definitions from the output, even if
5047 `Ext_latex_macros` is set, so that macros will be applied.
5048 Since they're only applied to math in Markdown, removing the macros
5049 can have bad effects. Even for math macros, keeping them should be
5051 + Removed `macro`. It is no longer necessary, since the
5052 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
5053 the need for a separate `latexMacro` parser in the Markdown reader.
5054 + Use `label` instead of `data-label` for label in caption (#3639).
5055 + Fixed space after \figurename etc.
5056 + Resolve references to section numbers.
5057 + Fix `\let\a=0` case, with single character token.
5058 + Allow `@` as a letter in control sequences. `@` is commonly used
5059 in macros using `\makeatletter`. Ideally we'd make the tokenizer
5060 sensitive to `\makeatletter` and `\makeatother`, but until then this
5061 seems a good change.
5062 + Track header numbers and correlate with labels.
5063 + Allow `]` inside group in option brackets (#3857).
5064 + lstinline with braces can be used (verb cannot be used with braces)
5065 (Marc Schreiber, #3535).
5066 + Fix keyval function: pandoc did not parse options in braces correctly
5067 (Marc Schreiber, #3642).
5068 + When parsing raw LaTeX commands, include trailing space (#1773).
5069 Otherwise things like `\noindent foo` break and turn into
5070 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
5071 formats that allow `raw_tex`).
5072 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
5074 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
5075 + Allow space before `=` in bracketd options (Ben Firshman).
5076 + Be more forgiving in parsing command options. This was needed, for
5077 example, to make some minted options work.
5078 + Strip off quotes in `\include` filenames.
5080 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
5082 * `Text.Pandoc.PDF`:
5084 + Got `--resource-path` working with PDF output (#852).
5085 + Fetch images when generating PDF via context (#3380).
5086 To do this, we create the temp directory as a subdirectory
5087 of the working directory. Since context mk IV by default looks
5088 for images in the parent directory, this works.
5089 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
5090 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
5091 This reduces code duplication.
5092 + `html2pdf`: use stdin instead of intermediate HTML file
5093 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
5094 doesn't use `TEXINPUTS`.
5096 * `Text.Pandoc.Pretty`:
5098 + Simplified definition of `realLength`.
5099 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
5101 * `Text.Pandoc.MIME`:
5103 + Use `application/javascript` (not `application/x-javascript`).
5104 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
5106 * `Text.Pandoc.ImageSize`:
5108 + Improve SVG image size code (Marc Schreiber, #3580).
5109 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
5111 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
5112 and reduction of memory usage in most of the writers.
5114 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
5116 * `Text.Pandoc.SelfContained`:
5118 + Fixed problem with embedded fonts (#3629).
5119 + Refactored getData from `getDataURI` in `SelfContained`.
5120 + Don't use data URIs for script or style (#3423). Instead, just use
5121 script or style tags with the content inside. The old method with
5122 data URIs prevents certain optimizations outside pandoc. Exception:
5123 data URIs are still used when a script contains `</script>` or a
5124 style contains `</`.
5125 + SelfContained: Handle URL inside material retrieved from a URL
5126 (#3629). This can happen e.g. with an @import of a google web font.
5127 (What is imported is some CSS which contains an url reference
5128 to the font itself.) Also, allow unescaped pipe (|) in URL.
5129 + Load resources from `data-src` (needed for lazy loading in
5130 reveal.js slide shows).
5131 + Handle `data-background-image` attribute on section (#3979).
5133 * `Text.Pandoc.Parsing`:
5135 + Added `indentWith` (Alexander Krotov, #3687).
5136 + Added `stateCitations` to `ParserState`.
5137 + Removed `stateChapters` from `ParserState`.
5138 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
5139 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
5140 + Adjusted type of `insertIncludedFile` so it can be used with token
5142 + Replace old texmath macro stuff from Parsing. Use Macro from
5143 Text.Pandoc.Readers.LaTeX.Types instead.
5144 + Export `insertIncludedFile`.
5145 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
5146 + Replace partial with total function (Albert Krewinkel).
5147 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
5148 `insertIncludeFile` function is generalized to work with all parser
5149 states which are instances of that class.
5150 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
5151 The `insertIncludeFiles` function was generalized and renamed
5152 to `insertIncludedFiles'`; the specialized versions are based on that.
5153 + `many1Till`: Check for the end condition before parsing (Herwig
5154 Stuetz). By not checking for the end condition before the first
5155 parse, the parser was applied too often, consuming too much of the
5156 input. This only affects `many1Till p end` where `p` matches on a
5158 + Provide `parseFromString` (#3690). This is a version of
5159 `parseFromString` specialied to ParserState, which resets
5160 `stateLastStrPos` at the end. This is almost always what we want.
5161 This fixes a bug where `_hi_` wasn't treated as emphasis in the
5162 following, because pandoc got confused about the position of the
5163 last word: `- [o] _hi_`.
5164 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
5165 + Fix `blanklines` documentation (Alexander Krotov, #3843).
5166 + Give less misleading line information with `parseWithString`.
5167 Previously positions would be reported past the end of the chunk.
5168 We now reset the source position within the chunk and report
5169 positions "in chunk."
5170 + Add `anyLineNewline` (Alexander Krotov).
5171 + Provide shared F monad functions for Markdown and Org readers
5172 (Albert Krewinkel). The `F` monads used for delayed evaluation
5173 of certain values in the Markdown and Org readers are based on a
5174 shared data type capturing the common pattern of both `F` types.
5175 + Add `returnF` (Alexander Krotov).
5176 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
5177 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
5178 + Added `readerAbbreviations` to `ParserState`. Markdown reader
5179 now consults this to determine what is an abbreviation.
5180 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
5181 parsers for markdown and rst was combined into one single
5182 parser `gridTable`, slightly changing parsing behavior of both
5183 parsers: (1) The markdown parser now compactifies block content
5184 cell-wise: pure text blocks in cells are now treated as paragraphs
5185 only if the cell contains multiple paragraphs, and as plain blocks
5186 otherwise. Before, this was true only for single-column tables. (2)
5187 The rst parser now accepts newlines and multiple blocks in header
5189 + Generalize tableWith, gridTableWith (Albert Krewinkel).
5190 The parsing functions `tableWith` and `gridTableWith` are generalized
5191 to work with more parsers. The parser state only has to be an
5192 instance of the `HasOptions` class instead of requiring a concrete
5193 type. Block parsers are required to return blocks wrapped into a
5194 monad, as this makes it possible to use parsers returning results
5195 wrapped in `Future`s.
5197 * `Text.Pandoc.Shared`:
5199 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
5200 + `stringify`: handle Quoted better (#3958). Previously we were losing
5201 the quotation marks in Quoted elements.
5203 * `Text.Pandoc.Writers.Shared`:
5205 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
5206 This allows us to add the variables AFTER using the metadata
5207 to generate a YAML header (in the Markdown writer).
5208 + Added `unsmartify` (previously in RST writer).
5209 Undo literal double curly quotes. Previously we left these.
5210 + Generalize type of `metaToJSON` so it can take a Text. Previously a
5211 String was needed as argument; now any ToJSON instance will do.
5212 + Added `gridTable` (previously in Markdown writer).
5213 + `gridTable`: Refactored to use widths in chars.
5214 + `gridTable`: remove unnecessary extra space in cells.
5215 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
5216 values to become lists.
5217 + Pipe tables: impose minimum cell size (see #3526).
5220 [default template changes]
5222 * HTML templates (including EPUB and HTML slide show templates):
5224 + Make default.html5 polyglot markup conformant (John Luke Bentley,
5225 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
5226 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
5227 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
5228 + Regularized CSS in html/epub/html slide templates (#3485).
5229 All templates now include `code{white-space: pre-wrap}`
5230 and CSS for `q` if `--html-q-tags` is used. Previously some templates
5231 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
5233 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
5234 + `default.revealjs`: make `history` default to true.
5235 + `default.revealjs`: use lazy loading (#2283).
5236 + `default.revealjs`: add `mathjax` variable and some conditional code
5237 to use the MathJaX plugin.
5238 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
5239 + `default.dzslides`: Load Google Font using HTTPS by default
5242 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
5245 * LaTeX/Beamer template:
5247 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
5248 `default.beamer` has been removed; beamer now uses the
5249 `default.latex` template. Beamer-specific parts are conditional
5250 on the `beamer` variable set by the writer. Note that
5251 `pandoc -D beamer` will return this (combined) template.
5252 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
5253 Beamer loads `xcolor` rather than `color`, and thus the
5254 `dvipsnames` option doesn't take effect. This also provides a wider
5255 range of colour selections with the `svgnames` option.
5256 + Use starred versions of `xcolor` names (Andrew Dunning).
5257 Prevents changes to documents defined using the `dvipsnames` list (e.g.
5258 `Blue` gives a different result with svgnames enabled).
5259 + Load `polyglossia` after header-includes (#3898). It needs to be
5260 loaded as late as possible.
5261 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
5263 + Don't load `fontspec` before `unicode-math` (over there).
5264 The `unicode-math` package loads `fontspec` so explicit loading of
5265 `fontspec` before `unicode-math` is not necessary.
5266 + Use `unicode-math` by default in default.latex template. mathspec will
5267 be used in xelatex if the `mathspec` variable is set; otherwise
5268 unicode-math will be used (Václav Haisman).
5269 + Use `dvipsnames` options when `colorlinks` specified (otherwise
5270 we get an error for `maroon`) (Thomas Hodgson).
5271 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
5272 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
5273 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
5274 clash when loading a package (e.g. `tufte-latex`) that uses
5275 `hyperref` settings different from those in the template.
5276 + Add `natbiboptions` variable (#3768).
5277 + Fix links inside captions in LaTeX output with links-as-notes
5278 (Václav Haisman, #3651). Declare our redefined `\href` robust.
5279 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
5280 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
5281 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
5282 packages. Use existing `CJKmainfont` and `CJKoptions` template
5283 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
5284 and `luatexjapresetoptions` for `luatexja-preset`.
5285 + Added `aspectratio` variable to beamer template (Václav Haisman,
5287 + Modified template.latex to fix XeLaTex being used with tables
5288 (lwolfsonkin, #3661). Reordered `lang` variable handling to
5289 immediately before `bidi`.
5291 * ConTeXt template: Improved font handling: `simplefonts` is now
5292 obsolete in ConTeXt (Pablo Rodríguez).
5295 [documentation improvements]
5299 + Add URL for Prince HTML > PDF engine (Ian, #3919).
5300 + Document that content above slide-level will be omitted in
5301 slide shows. See #3460, #2265.
5302 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
5303 + Small clarification in YAML metadata section.
5304 + Document that html4 is technically XHTML 1.0 transitional.
5305 + Remove refs to highlighting-kate (#3672).
5306 + Document ibooks specific epub metadata.
5307 + Clarify that mathml is used for ODT math.
5308 + Mention limitations of Literate Haskell Support (#3410,
5310 + Add documentation of limitations of grid tables (Stephen
5312 + Clarify that meta-json contains transformed values (Jakob Voß,
5313 #3491) Make clear that template variable `meta-json` does not
5314 contain plain text values or JSON output format but field values
5315 transformed to the selected output format.
5319 + Clarify that templates are dual-licensed.
5320 + Clarify that pandoc-types is BSD3 licensed.
5321 + List new files not written by jgm (Albert Krewinkel).
5322 + Update dates in copyright notices (Albert Krewinkel). This follows
5323 the suggestions given by the FSF for GPL licensed software.
5324 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
5328 + Improved instructions for tests with patterns.
5329 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
5333 + Fixed typos (Wandmalfarbe, #3479).
5334 + Add "ask on pandoc-discuss" (Mauro Bieg).
5336 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
5337 end of this document is autogenerated from `data/pandoc.lua`
5338 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
5341 * Add `doc/filters.md`. This is the old scripting tutorial from
5344 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
5345 to using pandoc as a Haskell library.
5348 [build infrastructure improvements]
5350 * Removed `data/templates` submodule. Templates are now a subtree
5351 in `data/templates`. This removes the need to do `git submodule
5354 * Renamed `tests` -> `test`.
5356 * Remove `https` flag. Always build with HTTPS support.
5358 * Use `file-embed` instead of `hsb2hs` to embed data files when
5359 `embed_data_files` flag is set. `file-embed` gives us better dependency
5360 tracking: if a data file changes, ghc/stack/cabal know to recompile
5361 the Data module. This also removes `hsb2hs` as a build dependency.
5363 * Add `custom-setup` stanza to pandoc, lowercase field names.
5365 * Add `static` Cabal flag.
5367 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
5368 than -OSX. Changed local names from osx to macos.
5370 * make_macos_package.sh - Use strip to reduce executable size.
5372 * Revised binary linux package. Now a completely static executable
5373 is created, using Docker and alpine. We create both a deb and a
5374 tarball. The old `deb` directory has been replaced with a `linux`
5375 directory. Running `make` in the `linux` directory should
5376 perform the build, putting the binary packages in `artifacts/`.
5378 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
5379 pandoc-data packages will be uninstalled; this package provides
5380 both (#3822). Add latex packages as 'suggested', update
5383 * Remove cpphs build requirement -- it is no longer needed.
5385 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
5387 * Name change OSX -> macOS (ickc, #3869).
5389 * Fix casing of Linux, UNIX, and Windows (ickc).
5391 * `.travis.yml`: create a source dist and do cabal build and test there.
5392 That way we catch errors due to files missing from the data
5393 section of pandoc.cabal.
5397 + Split `make haddock` from `make full`.
5398 + Add BRANCH variable for winpkg.
5399 + Add `lint` target.
5400 + Improve `make full`. Disable optimizations.
5401 Build everything, inc. trypandoc and benchmarks. Use parallel build.
5402 + Allow `make test` to take `TESTARGS`.
5404 * Added new command tests (`Tests.Command`), using small text files
5405 in `test/command/`. Any files added in this directory will be treated
5406 as shell tests (see smart.md for an example). This makes it very easy
5407 to add regression tests etc.
5409 * Test fixes so we can find data files. In old tests & command tests,
5410 we now set the environment variable `pandoc_datadir`. In lua tests,
5411 we set the datadir explicitly.
5413 * Refactored `compareOutput` in docx writer test.
5415 * Consolidated some common functions in `Tests.Helper`.
5417 * Small change to unbalanced bracket test to speed up test suite.
5419 * Speed up Native writer quickcheck tests.
5421 * Use tasty for tests rather than test-framework.
5423 * Add simple Emacs mode to help with Pandoc templates editing.
5424 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
5429 * Use skylighting library instead of highlighting-kate for syntax
5430 highlighting. Skylighting is faster and more accurate (#3363).
5431 Later we'll be able to add features like warning messages, dynamic
5432 loading of xml syntax definitions, and dynamic loading of themes.
5434 * Added a new highlight style, `breezeDark`.
5436 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
5437 This allows more languages to be used when using the `--listings`
5440 * OpenDocument writer:
5442 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
5443 + Don't profilerate text styles unnecessarily (#3371).
5444 This change makes the writer create only as many temporary
5445 text styles as are absolutely necessary. It also consolidates
5446 adjacent nodes with the same style.
5448 * Org reader (Albert Krewinkel):
5450 + Allow short hand for single-line raw blocks (Albert Krewinkel,
5451 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
5452 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
5453 + Accept org-ref citations followed by commas (Albert Krewinkel).
5454 Bugfix for an issue which, whenever the citation was immediately
5455 followed by a comma, prevented correct parsing of org-ref citations.
5456 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
5457 `/*strong and emphasized*/`) was interpreted incorrectly in that the
5458 inner markup was not recognized.
5459 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
5461 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
5462 In the past, the docx reader wrote an empty header as an empty list. It
5463 should have the same width as a row (and be filled with empty cells).
5467 + Improved handling of display math (#3362). Sometimes display math is
5468 indented with more than one colon. Previously we handled these cases
5469 badly, generating definition lists and missing the math.
5470 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
5471 behavior when the smart option is parsed to match other readers'
5476 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
5477 (#3341). Previously this did not properly enable escaped line breaks.
5478 + Disallow space between inline code and attributes (#3326, #3323,
5481 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
5483 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
5485 * LaTeX writer: allow tables with empty cells to count as "plain."
5486 This addresses a problem of too-wide tables when empty cells
5487 are used. Thanks to Joost Kremers for reporting the issue.
5489 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
5490 Unprefixed numbers where used by older org-mode versions, but are no
5493 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
5496 * Markdown writer: Fix display math with `--webtex` (#3298).
5498 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
5503 + default.latex: Moved geometry after hyperref (Václav Haisman).
5504 Otherwise PDF sizes can be wrong in some circumstances.
5505 + Copied a few changes from default.latex to default.beamer
5507 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
5508 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
5509 that contain verbatim in notes (#3361). (Note: the beamer template
5510 was updated to match the LaTeX template, but at this point verbatim
5511 in notes seems not to work in beamer.)
5512 + default.latex: Allow passing `microtypeoptions` to microtype
5514 + default.latex: Add hyphen option to url package.
5515 + default.docbook5: Fix namespace declarations (Mauro Bieg).
5517 * Moved `make_osx_package.sh` to `osx/` directory.
5519 * Travis continuous integration:
5521 + Fix false positives with dist build.
5522 + Speed improvements (Kolen Cheung, #3304, #3357).
5526 + Clarify that blank space is needed around footnotes (#3352).
5527 + Fixed typo (#3351, Alexey Rogechev).
5528 + Note that `--wrap=auto` does not work in HTML output.
5529 + Default `--columns` width is 72, not 80.
5530 + Fixed broken links (#3316, Kolen Cheung).
5531 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
5535 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
5536 + Added instructions for extracting binary from OSX, Windows packages.
5538 * CONTRIBUTING.md: Describe labels currently used in issue tracker
5539 (Albert Krewinkel). The labels have changed over time, the list of
5540 labels is updated to reflect the current set of labels used in the
5543 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
5545 * Bumped version bounds for dependencies.
5550 * Set `PANDOC_VERSION` environment variable for filters (#2640).
5551 This allows filters to check the pandoc version that produced
5552 the JSON they are receiving.
5554 * Docx reader: Ensure one-row tables don't have header (#3285,
5555 Jesse Rosenthal). Tables in MS Word are set by default to have
5556 special first-row formatting, which pandoc uses to determine whether
5557 or not they have a header. This means that one-row tables will, by
5558 default, have only a header -- which we imagine is not what people
5559 want. This change ensures that a one-row table is not understood to
5560 be a header only. Note that this means that it is impossible to
5561 produce a header-only table from docx, even though it is legal
5562 pandoc. But we believe that in nearly all cases, it will be an
5563 accidental (and unwelcome) result
5567 + Fixed some bad regressions in HTML table parser (#3280).
5568 This regression leads to the introduction of empty rows
5569 in some circumstances.
5570 + Understand `style=width:` as well as `width` in `col` (#3286).
5574 + Print warnings when keys, substitition, notes not found.
5575 Previously the parsers failed and we got raw text. Now we get a
5576 link with an empty URL, or empty inlines in the case of a note or
5579 + Fix hyperlink aliases (#3283).
5581 * Man writer: Ensure that periods are escaped at beginning of line
5584 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
5585 (#3272, Albert Krewinkel). Fix interaction of top-level divisions
5586 `part` or `chapter` with unnumbered headers when emitting LaTeX. Headers
5587 are ensured to be written using stared commands (like `\subsection*{}`).
5589 * LaTeX template: use comma not semicolon to separate keywords for
5590 `pdfkeywords`. Thanks to Wandmalfarbe.
5592 * Markdown writer: Fixed incorrect word wrapping (#3277). Previously pandoc
5593 would sometimes wrap lines too early due to this bug.
5595 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
5596 possible to insert escape codes for content that needs escaping at the
5597 beginning of a line.
5599 * Removed old MathMLInHTML.js from 2004, which should no longer
5600 be needed for MathML with modern browsers.
5602 * Fixed tests with dynamic linking (#2709).
5604 * Makefile: Use stack instead of cabal for targets. This is just
5605 a convenience for developers.
5607 * Fixed bash completion of filenames with space (#2749).
5609 * MANUAL: improved documentation on how to create a custom `reference.docx`.
5611 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
5615 * Changed resolution of filter paths.
5617 + We now first treat the argument of `--filter` as a full (absolute
5618 or relative) path, looking for a program there. If it's found, we
5620 + If not, and if it is a simple program name or a relative path, we
5621 try resolving it relative to `$DATADIR/filters`.
5622 + If this fails, then we treat it as a program name and look in the
5624 + Removed a hardcoded '/' that may have caused problems with
5627 Previously if you did `--filter foo` and you had `foo` in your path and
5628 also an executable `foo` in your working directory, the one in the path
5629 would be used. Now the one in the working directory is used.
5631 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
5632 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
5633 `foo/bar.hs` relative to the working directory.
5635 * Allow `file://` URIs as arguments (#3196). Also improved default reader
5636 format detection. Previously with a URI ending in .md or .markdown,
5637 pandoc would assume HTML input. Now it treats these as markdown.
5639 * Allow to overwrite top-level division type heuristics (#3258,
5640 Albert Krewinkel). Pandoc uses heuristics to determine the most
5641 reasonable top-level division type when emitting LaTeX or
5642 Docbook markup. It is now possible to overwrite this implicitly set
5643 top-level division via the `top-level-division` command line parameter.
5645 * Text.Pandoc.Options \[API changes\]:
5647 + Removed `writerStandalone` field in `WriterOptions`, made
5648 `writerTemplate` a `Maybe` value. Previously setting
5649 `writerStandalone = True` did nothing unless a template was provided
5650 in writerTemplate. Now a fragment will be generated if
5651 `writerTemplate` is `Nothing`; otherwise, the specified template
5652 will be used and standalone output generated.
5653 + `Division` has been renamed `TopLevelDivision` (#3197). The
5654 `Section`, `Chapter`, and `Part` constructors were renamed to
5655 `TopLevelSection`, `TopLevelChapter`, and
5656 `TopLevelPart`, respectively. An additional `TopLevelDefault`
5657 constructor was added, which is now also the new default value of
5658 the `writerTopLevelDivision` field in `WriterOptions`.
5660 * Improved error if they give wrong arg to `--top-level-division`.
5662 * Use new module from texmath to lookup MS font codepoints in Docx reader.
5663 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
5664 lives in texmath (0.9).
5666 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
5667 when the qnames lacked the docbook namespace URI.
5671 + Improved table parsing (#3027). We now check explicitly for non-1
5672 rowspan or colspan attributes, and fail when we encounter them.
5673 Previously we checked that each row had the same number of cells,
5674 but that could be true even with rowspans/colspans. And there are
5675 cases where it isn't true in tables that we can handle fine -- e.g.
5676 when a tr element is empty. So now we just pad rows with empty cells
5678 + Treat `<math>` as MathML by default unless something else is
5679 explicitly specified in xmlns. Provided it parses as MathML,
5680 of course. Also fixed default which should be to inline math if no
5681 display attribute is used.
5682 + Only treat "a" element as link if it has href (#3226). Otherwise
5685 * Docx reader (Jesse Rosenthal):
5687 + Add a placeholder value for CHART. We wrap `[CHART]` in a
5688 `<span class="chart">`. Note that it maps to inlines because, in
5689 docx, anything in a drawing tag can be part of a larger paragraph.
5690 + Be more specific in parsing images We not only want `w:drawing`,
5691 because that could also include charts. Now we specify
5692 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
5693 a first step toward allowing other sorts of drawing data as well.
5694 + Abstract out function to avoid code repetition.
5695 + Update tests for img title and alt (#3204).
5696 + Handle Alt text and titles in images. We use the "description" field
5697 as alt text and the "title" field as title. These can be accessed
5698 through the "Format Picture" dialog in Word.
5699 + Docx reader utils: handle empty namespace in `elemName`. Previously,
5700 if given an empty namespace `(elemName ns "" "foo")` `elemName`
5701 would output a QName with a `Just ""` namespace. This is never what
5702 we want. Now we output a `Nothing`. If someone *does* want a
5703 `Just ""` in the namespace, they can enter the QName
5706 * ODT reader/writer:
5708 + Inline code when text has a special style (Hubert Plociniczak). When
5709 a piece of text has a text `Source_Text` then we assume that this is
5710 a piece of the document that represents a code that needs to
5711 be inlined. Adapted the writer to also reflect that change.
5712 Previously it was just writing a 'preformatted' text using a
5713 non-distinguishable font style. Code blocks are still not recognized
5714 by the ODT reader. That's a separate issue.
5715 + Infer table's caption from the paragraph (#3224,
5716 Hubert Plociniczak). ODT's reader always put empty captions for the
5717 parsed tables. This commit
5719 1. checks paragraphs that follow the table definition
5720 2. treats specially a paragraph with a style named 'Table'
5721 3. does some postprocessing of the paragraphs that combines tables
5722 followed immediately by captions
5724 The ODT writer used the `TableCaption` style for the caption
5725 paragraph. This commit follows the OpenOffice approach which allows
5726 for appending captions to table but uses a built-in style named
5727 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
5728 should change the style's name from `TableCaption` to `Table`.
5730 * ODT reader: Infer tables' header props from rows (#3199,
5731 Hubert Plociniczak). ODT reader simply provided an empty header list
5732 which meant that the contents of the whole table, even if not empty, was
5733 simply ignored. While we still do not infer headers we at least have to
5734 provide default properties of columns.
5738 + Allow reference link labels starting with `@...` if `citations`
5739 extension disabled (#3209). Example: in
5743 `link text` isn't hyperlinked because `[@a]` is parsed as
5744 a citation. Previously this happened whether or not the `citations`
5745 extension was enabled. Now it happens only if the `citations`
5746 extension is enabled.
5747 + Allow alignments to be specified in Markdown grid tables. For
5750 +-------+---------------+--------------------+
5751 | Right | Left | Centered |
5752 +=========:+:=================+:=============:+
5753 | Bananas | $1.34 | built-in wrapper |
5754 +-------+---------------+--------------------+
5756 + Allow Small Caps elements to be created using bracketed spans (as
5757 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
5761 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
5762 Fixed an error which came up, for example, with `\vspace` inside
5763 a caption. (Captions expect inlines.)
5764 + Improved table handling. We can now parse all of the tables emitted
5765 by pandoc in our tests. The only thing we don't get yet are
5766 alignments and column widths in more complex tables. See #2669.
5767 + Limited support for minipage.
5768 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
5769 + Handle BVerbatim from fancyvrb (#3203).
5770 + Handle hungarumlaut (#3201).
5771 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
5772 (#3184). This allows use of things like `\only<2,3>{my content}` in
5773 Markdown that is going to be converted to beamer.
5775 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
5776 overly long code will appear on every slide.
5778 * Org reader (Albert Krewinkel):
5780 + Respect column width settings (#3246). Table column properties can
5781 optionally specify a column's width with which it is displayed in
5782 the buffer. Some exporters, notably the ODT exporter in org-mode
5783 v9.0, use these values to calculate relative column widths. The org
5784 reader now implements the same behavior. Note that the org-mode
5785 LaTeX and HTML exporters in Emacs don't support this feature yet,
5786 which should be kept in mind by users who use the column
5788 + Allow HTML attribs on non-figure images (#3222). Images which are
5789 the only element in a paragraph can still be given HTML attributes,
5790 even if the image does not have a caption and is hence not a figure.
5791 The following will add set the `width` attribute of the image to
5794 +ATTR\_HTML: :width 50%
5795 =======================
5797 \[\[file:image.jpg\]\]
5799 + Support `ATTR_HTML` for special blocks (#3182). Special
5800 blocks (i.e. blocks with unrecognized names) can be prefixed with an
5801 `ATTR_HTML` block attribute. The attributes defined in that
5802 meta-directive are added to the `Div` which is used to represent the
5804 + Support the `todo` export option. The `todo` export option allows to
5805 toggle the inclusion of TODO keywords in the output. Setting this to
5806 `nil` causes TODO keywords to be dropped from headlines. The default
5807 is to include the keywords.
5808 + Add support for todo-markers. Headlines can have optional
5809 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
5810 or `#+TYP_TODO` meta directive. Multiple such directives can be
5811 given, each adding a new set of recognized todo-markers. If no
5812 custom todo-markers are defined, the default `TODO` and `DONE`
5813 markers are used. Todo-markers are conceptually separate from
5814 headline text and are hence excluded when autogenerating
5815 headline IDs. The markers are rendered as spans and labelled with
5816 two classes: One class is the markers name, the other signals the
5817 todo-state of the marker (either `todo` or `done`).
5821 + Use `\autocites*` when "suppress-author" citation used.
5822 + Ensure that simple tables have simple cells (#2666). If cells
5823 contain more than a single Plain or Para, then we need to set
5824 nonzero widths and put contents into minipages.
5825 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
5829 + Fix calculation of column widths for aligned multiline tables
5830 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
5831 usage for tables when `--columns` is set in such a way that cells
5832 must be very tiny. Now cells are guaranteed to be big enough so that
5833 single words don't need to line break, even if this pushes the line
5834 length above the column width.
5835 + Use bracketed form for native spans when `bracketed_spans`
5837 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
5838 sublist got rendered with a blank line after, while a tight ordered
5839 sublist did not. Now we don't get the blank line in either case.
5840 + Fix escaping of spaces in super/subscript (#3225). Previously two
5841 backslashes were inserted, which gave a literal backslash.
5842 + Adjust widths in Markdown grid tables so that they match
5847 + Give full detail when there are errors converting tex math.
5848 + Handle title text in images (Jesse Rosenthal). We already handled
5849 alt text. This just puts the image "title" into the docx
5851 + Fixed XML markup for empty cells (#3238). Previously the Compact
5852 style wasn't being applied properly to empty cells.
5856 + Updated `renderHtml` import from blaze-html.
5858 * Text.Pandoc.Pretty:
5860 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
5861 caused spurious blank lines in grid tables when we had things like
5862 `blankline $$ blankline`.
5863 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
5864 + Added error message for illegal call to `block` (Björn Peemöller).
5866 * Text.Pandoc.Shared:
5868 + Put `warn` in MonadIO.
5869 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
5870 URL starts with `//` and there is no "base URL" (as there would be
5871 if a URL were used on the command line), then default to http:.
5873 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
5875 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
5876 fixes a crash with `pandoc --version` on unusual systems with no real
5877 user (e.g. SQL Server 2016).
5879 * Added weigh-pandoc for memory usage diagnostics (#3169).
5881 * Use correct mime types for woff and woff2 (#3228).
5883 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
5885 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
5886 1.18 section where it belongs.
5888 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
5891 * Further revisions to manual for `--version` changes (#3244).
5896 * Added `--list-input-formats`, `--list-output-formats`,
5897 `--list-extensions`, `--list-highlight-languages`, and
5898 `--list-highlight-styles` (#3173). Removed list of highlighting
5899 languages from `--version` output. Removed list of input and output
5900 formats from default `--help` output.
5902 * Added `--reference-location=block|section|document` option
5903 (Jesse Rosenthal). This determines whether Markdown link references
5904 and footnotes are placed at the end of the document, the end of the
5905 section, or the end of the top-level block.
5907 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
5908 This determines what a level-1 header corresponds to in LaTeX,
5909 ConTeXt, DocBook, and TEI output. The default is `section`.
5910 The `--chapters` option has been deprecated in favor of
5911 `--top-level-division=chapter`.
5913 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
5914 is now used in parsing RST and Markdown line blocks, DocBook
5915 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
5916 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
5917 are handled specially in the following output formats: AsciiDoc
5918 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
5919 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
5920 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
5921 other output formats, a paragraph with hard linebreaks is emitted.
5923 * Allow binary formats to be written to stdout (but not to tty) (#2677).
5924 Only works on posix, since we use the unix library to check whether
5925 output is to tty. On Windows, pandoc works as before and always requires
5926 an output file parameter for binary formats.
5928 * Changed JSON output format (Jesse Rosenthal). Previously we used
5929 generically generated JSON, but this was subject to change depending
5930 on the version of aeson pandoc was compiled with. To ensure stability,
5931 we switched to using manually written ToJSON and FromJSON
5932 instances, and encoding the API version. **Note:** pandoc filter
5933 libraries will need to be revised to handle the format change.
5934 Here is a summary of the essential changes:
5936 + The toplevel JSON format is now `{"pandoc-api-version" :
5937 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
5938 instead of `[{"unMeta": META}, [BLOCKS]]`.
5939 Decoding fails if the major and minor version numbers don't
5941 + Leaf nodes no longer have an empty array for their "c" value.
5942 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
5943 rather than `{"t":"Space","c":[]}` as before.
5945 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
5946 module to pandoc-types (Jesse Rosenthal). This makes it easier
5947 to use QuickCheck with pandoc types outside of pandoc itself.
5949 * Add `bracketed_spans` Markdown extension, enabled by default
5950 in pandoc `markdown`. This allows you to create a native span
5951 using this syntax: `[Here is my span]{#id .class key="val"}`.
5953 * Added `angle_brackets_escapable` Markdown extension (#2846).
5954 This is needed because github flavored Markdown has a slightly
5955 different set of escapable symbols than original Markdown;
5956 it includes angle brackets.
5958 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
5960 * Print highlighting-kate version in `--version`.
5962 * `Text.Pandoc.Options`:
5964 + `Extension` has new constructors `Ext_brackted_spans` and
5965 `Ext_angle_brackets_escapable` [API change].
5966 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
5967 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
5970 * `--filter`: we now check `$DATADIR/filters` for filters before
5971 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
5972 Voß for the idea). Filters placed in this directory need not
5973 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
5974 or `.rb`, pandoc will run the right interpreter.
5976 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
5977 default (Kolen Cheung).
5979 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
5981 * Execute .js filters with node (Jakob Voß).
5985 + Support `bc..` extended code blocks (#3037). Also, remove trailing
5986 newline in code blocks (consistently with Markdown reader).
5987 + Improve table parsing. We now handle cell and row attributes, mostly
5988 by skipping them. However, alignments are now handled properly.
5989 Since in pandoc alignment is per-column, not per-cell, we
5990 try to devine column alignments from cell alignments.
5991 Table captions are also now parsed, and textile indicators
5992 for thead and tfoot no longer cause parse failure. (However,
5993 a row designated as tfoot will just be a regular row in pandoc.)
5994 + Improve definition list parsing. We now allow multiple terms
5995 (which we concatenate with linebreaks). An exponential parsing
5996 bug (#3020) is also fixed.
5997 + Disallow empty URL in explicit link (#3036).
6001 + Use Div instead of BlockQuote for admonitions (#3031).
6002 The Div has class `admonition` and (if relevant) one of the
6003 following: `attention`, `caution`, `danger`, `error`, `hint`,
6004 `important`, `note`, `tip`, `warning`. **Note:** This will change
6005 the rendering of some RST documents! The word ("Warning", "Attention",
6006 etc.) is no longer added; that must be done with CSS or a filter.
6007 + A Div is now used for `sidebar` as well.
6008 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
6009 space before a footnote marker. We discard those spaces so that footnotes
6010 will be adjacent to the text that comes before it. This is in line with
6011 what rst2latex does.
6012 + Allow empty lines when parsing line blocks (Albert Krewinkel).
6016 + Allow empty lines when parsing line blocks (Albert Krewinkel).
6017 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
6021 + More robust parsing of unknown environments (#3026).
6022 We no longer fail on things like `^` inside options for tikz.
6023 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
6024 Some custom environments give these a meaning, so we should try not to
6025 fall over when we encounter them.
6026 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
6030 + Fix for unquoted attribute values in mediawiki tables (#3053).
6031 Previously an unquoted attribute value in a table row
6032 could cause parsing problems.
6033 + Improved treatment of verbatim constructions (#3055).
6034 Previously these yielded strings of alternating Code and Space
6035 elements; we now incorporate the spaces into the Code. Emphasis
6036 etc. is still possible inside these.
6037 + Properly interpret XML tags in pre environments (#3042). They are meant
6038 to be interpreted as literal text.
6040 * EPUB reader: don't add root path to data: URIs (#3150).
6041 Thanks to @lep for the bug report and patch.
6043 * Org reader (Albert Krewinkel):
6045 + Preserve indentation of verse lines (#3064). Leading spaces in verse
6046 lines are converted to non-breaking spaces, so indentation is preserved.
6047 + Ensure image sources are proper links. Image sources as those in plain
6048 images, image links, or figures, must be proper URIs or relative file
6049 paths to be recognized as images. This restriction is now enforced
6050 for all image sources. This also fixes the reader's usage of uncleaned
6051 image sources, leading to `file:` prefixes not being deleted from
6052 figure images. Thanks to @bsag for noticing this bug.
6053 + Trim verse lines properly (Albert Krewinkel).
6054 + Extract meta parsing code to module. Parsing of meta-data is well
6055 separable from other block parsing tasks. Moving into new module to
6056 get small files and clearly arranged code.
6057 + Read markup only for special meta keys. Most meta-keys should be read
6058 as normal string values, only a few are interpreted as marked-up text.
6059 + Allow multiple, comma-separated authors. Multiple authors can be
6060 specified in the `#+AUTHOR` meta line if they are given as a
6061 comma-separated list.
6062 + Give precedence to later meta lines. The last meta-line of any given
6063 type is the significant line. Previously the value of the first line
6064 was kept, even if more lines of the same type were encountered.
6065 + Read LaTeX_header as header-includes. LaTeX-specific header commands
6066 can be defined in `#+LaTeX_header` lines. They are parsed as
6067 format-specific inlines to ensure that they will only show up in LaTeX
6069 + Set documentclass meta from LaTeX_class.
6070 + Set classoption meta from LaTeX_class_options.
6071 + Read HTML_head as header-includes. HTML-specific head content can be
6072 defined in `#+HTML_head` lines. They are parsed as format-specific
6073 inlines to ensure that they will only show up in HTML output.
6074 + Respect `author` export option. The `author` option controls whether
6075 the author should be included in the final markup. Setting
6076 `#+OPTIONS: author:nil` will drop the author from the final meta-data
6078 + Respect `email` export option. The `email` option controls whether the
6079 email meta-field should be included in the final markup. Setting
6080 `#+OPTIONS: email:nil` will drop the email field from the final
6082 + Respect `creator` export option. The `creator` option controls whether
6083 the creator meta-field should be included in the final markup. Setting
6084 `#+OPTIONS: creator:nil` will drop the creator field from the final
6085 meta-data output. Org-mode recognizes the special value `comment` for
6086 this field, causing the creator to be included in a comment. This is
6087 difficult to translate to Pandoc internals and is hence interpreted the
6088 same as other truish values (i.e. the meta field is kept if it's
6090 + Respect unnumbered header property (#3095). Sections the `unnumbered`
6091 property should, as the name implies, be excluded from the automatic
6092 numbering of section provided by some output formats. The Pandoc
6093 convention for this is to add an "unnumbered" class to the header. The
6094 reader treats properties as key-value pairs per default, so a special
6095 case is added to translate the above property to a class instead.
6096 + Allow figure with empty caption (Albert Krewinkel, #3161).
6097 A `#+CAPTION` attribute before an image is enough to turn an image into
6098 a figure. This wasn't the case because the `parseFromString` function,
6099 which processes the caption value, would fail on empty values. Adding
6100 a newline character to the caption value fixes this.
6104 + Use XML convenience functions (Jesse Rosenthal).
6105 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
6106 the code a lot cleaner than the original XML.Light functions, but they
6107 had been used inconsistently. This puts them in wherever applicable.
6108 + Handle anchor spans with content in headers. Previously, we would only
6109 be able to figure out internal links to a header in a docx if the
6110 anchor span was empty. We change that to read the inlines out of the
6111 first anchor span in a header.
6112 + Let headers use existing id. Previously we always generated an id for
6113 headers (since they wouldn't bring one from Docx). Now we let it use an
6114 existing one if possible. This should allow us to recurs through anchor
6116 + Use all anchor spans for header ids. Previously we only used the first
6117 anchor span to affect header ids. This allows us to use all the anchor
6118 spans in a header, whether they're nested or not (#3088).
6119 + Test for nested anchor spans in header. This ensures that anchor spans
6120 in header with content (or with other anchor spans inside) will resolve
6121 to links to a header id properly.
6123 * ODT reader (Hubert Plociniczak)
6125 + Include list's starting value. Previously the starting value of
6126 the lists' items has been hardcoded to 1. In reality ODT's list
6127 style definition can provide a new starting value in one of its
6129 + Infer caption from the text following the image.
6130 Frame can contain other frames with the text boxes.
6131 + Add `fig:` to title for Image with a caption (as expected
6132 by pandoc's writers).
6133 + Basic support for images in ODT documents.
6134 + Don't duplicate text for anchors (#3143). When creating an anchor
6135 element we were adding its representation as well as the original
6136 content, leading to text duplication.
6140 + Include an anchor element when a div or span has an id (#3102).
6141 Note that DocBook does not have a class attribute, but at least this
6142 provides an anchor for internal links.
6146 + Don't use * for unnumbered paragraph, subparagraph. The starred
6147 variants don't exist. This helps with part of #3058...it gets rid of
6148 the spurious `*`s. But we still have numbers on the 4th and 5th level
6150 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
6151 Otherwise they can cause unintended ligatures like `` ?` ``.
6152 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
6153 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
6154 This allows figure placement defaults to be changed by the user
6157 * HTML writer (slide show formats): In slide shows, don't change slide title
6158 to level 1 header (#2221).
6160 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
6161 TEI doesn't have `<book>` elements but only generic `<divN>` division
6162 elements. Checking the template for a trailing `</book>` is nonsensical.
6164 * MediaWiki writer: transform filename with underscores in images (#3052).
6165 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
6166 for internal links, but it also needs to happen for images.
6168 * ICML writer: replace partial function (!!) in table handling (#3175,
6171 * Man writer: allow section numbers that are not a single digit (#3089).
6173 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
6174 (#3068). In AsciiDoc, you must use a special form of emphasis
6175 (double `__`) for intraword emphasis. Pandoc was previously using
6176 this more than necessary.
6178 * EPUB writer: use stringify instead of plain writer for metadata
6179 (#3066). This means that underscores won't be used for emphasis,
6180 or CAPS for bold. The metadata fields will just have unadorned
6185 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
6186 with a `custom-style` key in the attributes will apply the corresponding
6187 key to the contained blocks or inlines.
6188 + Add ReaderT env to the docx writer (Jesse Rosenthal).
6189 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
6190 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
6191 on the command line. For finer-grained control, you can set
6192 the `dir` attribute in Div or Span elements.
6194 * Org writer (Albert Krewinkel):
6196 + Remove blank line after figure caption. Org-mode only treats an image
6197 as a figure if it is directly preceded by a caption.
6198 + Ensure blank line after figure. An Org-mode figure should be surrounded
6199 by blank lines. The figure would be recognized regardless, but images
6200 in the following line would unintentionally be treated as figures as
6202 + Ensure link targets are paths or URLs. Org-mode treats links as
6203 document internal searches unless the link target looks like a URL or
6204 file path, either relative or absolute. This change ensures that this
6206 + Translate language identifiers. Pandoc and Org-mode use different
6207 programming language identifiers. An additional translation between
6208 those identifiers is added to avoid unexpected behavior. This fixes a
6209 problem where language specific source code would sometimes be output
6211 + Drop space before footnote markers (Albert Krewinkel, #3162).
6212 The writer no longer adds an extra space before footnote markers.
6216 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
6217 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
6219 + Check for the `raw_html` extension before emitting a raw HTML block.
6220 + Abstract out note/ref function (Jesse Rosenthal).
6221 + Add ReaderT monad for environment variables (Jesse Rosenthal).
6223 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
6224 subtitle, author, date (#3119). Note that, as a result of this change,
6225 authors may need to update CSS.
6227 * revealjs template: Added `notes-server` option
6228 (jgm/pandoc-templates#212, Yoan Blanc).
6232 + Restore whitespace between paragraphs. This was
6233 a regression in the last release (jgm/pandoc-templates#207).
6234 + Added `themeoptions` variable (Carsten Gips).
6235 + Added `beamerarticle` variable. This causes the `beamerarticle`
6236 package to be loaded in beamer, to produce an article from beamer
6237 slides. (Carsten Gips)
6238 + Added support for `fontfamilies` structured variable
6240 + Added hypersetup options (Jake Zimmerman).
6244 + Added dummy definition for `\institute`.
6245 This isn't a standard command, and we want to avoid a crash when
6246 `institute` is used with the default template.
6247 + Define default figure placement (Václav Haisman), since pandoc
6248 no longer includes `[htbp]` for figures. Users with custom templates
6249 will want to add this. See #3103.
6250 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
6253 * Moved template compiling/rendering code to a separate library.
6254 `doctemplates`. This allows the pandoc templating system to be
6257 * Text.Pandoc.Error: Fix out of index error in `handleError`
6258 (Matthew Pickering). The fix is to not try to show the exact line when
6259 it would cause an out-of-bounds error as a result of included files.
6261 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
6263 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
6264 addresses. Technically `**@user` is a valid email address, but if we
6265 allow things like this, we get bad results in markdown flavors
6266 that autolink raw email addresses (see #2940). So we exclude a few
6267 valid email addresses in order to avoid these more common bad cases.
6269 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
6270 emit the alt text, emphasized. This accords with what the ODT writer
6271 currently does. The user will still get a warning about a nonexistent
6274 * Fix example in API documentation (#3176, Thomas Weißschuh).
6276 * Tell where to get tarball in INSTALL (#3062).
6278 * Rename README to MANUAL.txt and add GitHub-friendly README.md
6279 (Albert Krewinkel, Kolen Cheung).
6281 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
6285 + Put note on structured vars in separate paragraph (#2148, Albert
6286 Krewinkel). Make it clearer that structured author variables require a
6288 + Note that `--katex` works best with `html5` (#3077).
6289 + Fix the LaTeX and EPUB links in manual (Morton Fox).
6290 + Document `biblio-title` variable.
6292 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
6294 * Update KaTeX to v0.6.0 (Kolen Cheung).
6296 * Allow latest dependencies.
6298 * Use texmath 0.8.6.6 (#3040).
6300 * Allow http-client 0.4.30, which is the version in stackage lts.
6301 Previously we required 0.5.
6302 Remove CPP conditionals for earlier versions.
6304 * Remove support for GHC < 7.8 (Jesse Rosenthal).
6306 + Remove Compat.Monoid.
6307 + Remove an inline monad compatibility macro.
6308 + Remove Text.Pandoc.Compat.Except.
6309 + Remove directory compat.
6310 + Change constraint on mtl.
6311 + Remove unnecessary CPP condition in UTF8.
6312 + Bump base lower bound to 4.7.
6313 + Remove 7.6 build from .travis.yaml.
6314 + Bump supported ghc version in CONTRIBUTING.md.
6315 + Add note about GHC version support to INSTALL.
6316 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
6317 + Remove TagSoup compat.
6318 + Add EOL note to time compat module. Because time 1.4 is a boot library
6319 for GHC 7.8, we will support the compatibility module as long as we
6320 support 7.8. But we should be clear about when we will no longer need
6322 + Remove blaze-html CPP conditional.
6323 + Remove unnecessary CPP in custom Prelude.
6327 * Added Zim Wiki writer, template and tests. `zimwiki` is now
6328 a valid output format. (Alex Ivkin)
6330 * Changed email-obfuscation default to no obfuscation (#2988).
6331 + `writerEmailObfuscation` in `defaultWriterOptions` is now
6333 + the default for the command-line `--email-obfuscation` option is
6336 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
6340 + Support arbitrary raw inlines (Albert Krewinkel).
6341 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
6342 parlance) to be included as `@@format:raw foreign format text@@`.
6343 + Improve Div handling (Albert Krewinkel). Div blocks handling is
6344 changed to make the output look more like idiomatic org mode:
6345 - Div-wrapped content is output as-is if the div's attribute is the
6347 - Div containers with an id but neither classes nor key-value pairs
6348 are unwrapped and the id is added as an anchor.
6349 - Divs with classes associated with greater block elements are
6350 wrapped in a `#+BEGIN`...`#+END` block.
6351 - The old behavior for Divs with more complex attributes is kept.
6355 + Better support for raw LaTeX environments (#2758).
6356 Previously we just passed all raw TeX through when MathJax was used for
6357 HTML math. This passed through too much. With this patch, only raw
6358 LaTeX environments that MathJax can handle get passed through.
6359 This patch also causes raw LaTeX environments to be treated
6360 as math, when possible, with MathML and WebTeX output.
6362 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
6363 (#2993). Markdown line breaks involve a newline, and simple and pipe
6364 tables can't contain one.
6366 * Make --webtex work with the Markdown writer (#1177).
6367 This is a convenient option for people using
6368 websites whose Markdown flavors don't provide for math.
6372 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
6373 We treat display math like block quotes, and apply FirstParagraph style
6374 to paragraphs that follow them. These can be styled as the user
6375 wishes. (But, when the user is using indentation, this allows for
6376 paragraphs to continue after display math without indentation.)
6377 + Use actual creation time as doc prop (Jesse Rosenthal).
6378 Previously, we had used the user-supplied date, if available, for Word's
6379 document creation metadata. This could lead to weird results, as in
6380 cases where the user post-dates a document (so the modification might be
6381 prior to the creation). Here we use the actual computer time to set the
6386 + Don't URI-escape image source (#2825). Usually this is a local file,
6387 and replacing spaces with `%20` ruins things.
6388 + Allow 'standout' as a beamer frame option (#3007).
6389 `## Slide title {.standout}`.
6391 * RST reader: Fixed links with no explicit link text. The link
6392 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
6393 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
6394 Closes Debian #828167 -- reported by Christian Heller.
6398 + Fixed attributes (#2984). Attributes can't be followed by
6399 a space. So, `_(class)emph_` but `_(noclass) emph_`.
6400 + Fixed exponential parsing bug (#3020).
6401 + Fix overly aggressive interpretation as images (#2998).
6402 Spaces are not allowed in the image URL in textile.
6406 + Fix `\cite` so it is a NormalCitation not AuthorInText.
6407 + Strip off double quotes around image source if present (#2825).
6408 Avoids interpreting these as part of the literal filename.
6412 + Add semicolon to list of special chars (Albert Krewinkel)
6413 Semicolons are used as special characters in citations syntax. This
6414 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
6415 suffix]`. Previously, parsing would have failed unless there was a space
6416 or other special character as the last <prefix> character.
6417 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
6418 A specification for an official Org-mode citation syntax was drafted by
6419 Richard Lawrence and enhanced with the help of others on the orgmode
6420 mailing list. Basic support for this citation style is added to the
6422 + Support arbitrary raw inlines (Albert Krewinkel).
6423 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
6424 parlance) to be included as `@@format:raw foreign format text@@`.
6425 + Remove partial functions (Albert Krewinkel, #2991).
6426 Partial functions like `head` lead to avoidable errors and should be
6427 avoided. They are replaced with total functions.
6428 + Support figure labels (Albert Krewinkel, #2496, #2999).
6429 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
6430 respective image. This allows e.g. the LaTeX to add proper `\label`
6432 + Improve tag and properties type safety (Albert Krewinkel).
6433 Specific newtype definitions are used to replace stringly typing of tags
6434 and properties. Type safety is increased while readability is improved.
6435 + Parse as headlines, convert to blocks (Albert Krewinkel).
6436 Emacs org-mode is based on outline-mode, which treats documents as trees
6437 with headlines are nodes. The reader is refactored to parse into a
6438 similar tree structure. This simplifies transformations acting on
6439 document (sub-)trees.
6440 * Refactor comment tree handling (Albert Krewinkel).
6441 Comment trees were handled after parsing, as pattern matching on lists
6442 is easier than matching on sequences. The new method of reading
6443 documents as trees allows for more elegant subtree removal.
6444 * Support archived trees export options (Albert Krewinkel).
6445 Handling of archived trees can be modified using the `arch` option.
6446 Archived trees are either dropped, exported completely, or collapsed to
6447 include just the header when the `arch` option is nil, non-nil, or
6448 `headline`, respectively.
6449 * Put export setting parser into module (Albert Krewinkel).
6450 Export option parsing is distinct enough from general block parsing to
6451 justify putting it into a separate module.
6452 * Support headline levels export setting (Albert Krewinkel).
6453 The depths of headlines can be modified using the `H` option. Deeper
6454 headlines will be converted to lists.
6455 * Replace ugly code with view pattern (Albert Krewinkel).
6456 Some less-than-smart code required a pragma switching of overlapping
6457 pattern warnings in order to compile seamlessly. Using view patterns
6458 makes the code easier to read and also doesn't require overlapping
6459 pattern checks to be disabled.
6460 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
6461 Org rules for allowed characters before or after markup chars were not
6462 checked for verbatim text. This resultet in wrong parsing outcomes of
6463 if the verbatim text contained e.g. space enclosed markup characters as
6464 part of the text (`=is_substr = True=`). Forcing the parser to update
6465 the positions of allowed/forbidden markup border characters fixes this.
6467 * LaTeX template: fix for obscure hyperref/xelatex issue.
6468 Here's a minimal case:
6470 \documentclass[]{article}
6471 \usepackage{hyperref}
6476 Without this change, this fails on the second invocation of xelatex.
6477 This affects inputs this like `# %á` with pdf output via xelatex.
6479 * trypandoc: call results 'html' instead of 'result'.
6480 This is for better compatibility with babelmark2.
6482 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
6483 MultiMarkdown was only mentioned as a supported Markdown dialect but not
6484 as a possible input or output format. A brief mention is added
6485 everywhere the other supported markdown dialects are mentioned.
6487 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
6488 Raw HTML is kept when the output format is Emacs Org mode.
6490 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
6492 * Text.Pandoc.Shared:
6494 + Introduce blocksToInlines function (Jesse Rosenthal).
6495 This is a lossy function for converting `[Block] -> [Inline]`. Its main
6496 use, at the moment, is for docx comments, which can contain arbitrary
6497 blocks (except for footnotes), but which will be converted to spans.
6498 This is, at the moment, pretty useless for everything but the basic
6499 `Para` and `Plain` comments. It can be improved, but the docx reader
6500 should probably emit a warning if the comment contains more than this.
6501 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
6502 + Add further formats for `normalizeDate` (Jesse Rosenthal).
6503 We want to avoid illegal dates -- in particular years with greater than
6504 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
6505 `%Y%m`, and finally `%Y`.
6506 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
6507 We only allow years between 1601 and 9999, inclusive. The ISO 8601
6508 actually says that years are supposed to start with 1583, but MS Word
6509 only allows 1601-9999. This should stop corrupted word files if the date
6510 is out of that range, or is parsed incorrectly.
6511 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
6512 Previously we parsed a list of dates, took the first one, and then
6513 tested its year range. That meant that if the first one failed, we
6514 returned nothing, regardless of what the others did. Now we test for
6515 sanity before running `msum` over the list of Maybe values. Anything
6516 failing the test will be Nothing, so will not be a candidate.
6520 + Add simple comment functionality. (Jesse Rosenthal).
6521 This adds simple track-changes comment parsing to the docx reader. It is
6522 turned on with `--track-changes=all`. All comments are converted to
6523 inlines, which can list some information. In the future a warning will be
6524 added for comments with formatting that seems like it will be excessively
6525 denatured. Note that comments can extend across blocks. For that reason
6526 there are two spans: `comment-start` and `comment-end`. `comment-start`
6527 will contain the comment. `comment-end` will always be empty. The two
6528 will be associated by a numeric id.
6529 + Enable warnings in top-level reader (Jesse Rosenthal).
6530 Previously we had only allowed for warnings in the parser. Now we allow
6531 for them in the `Docx.hs` as well. The warnings are simply concatenated.
6532 + Add warning for advanced comment formatting. (Jesse Rosenthal).
6533 We can't guarantee we'll convert every comment correctly, though we'll
6534 do the best we can. This warns if the comment includes something other
6536 + Add tests for warnings. (Jesse Rosenthal).
6537 + Add tests for comments (Jesse Rosenthal).
6538 We test for comments, using all track-changes options. Note that we
6539 should only output comments if `--track-changes=all`. We also test for
6540 emitting warnings if there is complicated formatting.
6542 * README: update to include track-changes comments. (Jesse Rosenthal)
6544 * Improved Windows installer - don't ignore properties set on command-line.
6545 See #2708. Needs testing to see if this resolves the issue.
6548 * Process markdown extensions on command line in L->R order (#2995).
6549 Previously they were processed, very unintuitively, in R->L
6550 order, so that `markdown-tex_math_dollars+tex_math_dollars`
6551 had `tex_math_dollars` disabled.
6553 * Added `secnumdepth` variable to LaTeX template (#2920).
6555 * Include table of contents in README.html in Windows package.
6557 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
6558 In Writers.Shared, we strip leading and trailing spaces for display
6559 math. Since SoftBreak's are treated as spaces, we should strip those
6562 * beamer, latex templates: pass biblatexoptions directly in package load.
6563 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
6565 * CPP workaround for deprecation of `parseUrl` in http-client.
6567 * Removed some redundant class constraints.
6569 * make_oxs_package.sh - use OSX env variable.
6571 * Replaced INSTALL with INSTALL.md, incorporating INSTALL and the
6572 old installing page from website.
6574 * Added `winpkg` target to Makefile. This downloads the windows package
6575 from appveyor and signs it using the key.
6577 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
6578 Raw TeX is kept verbatim when the output format is Emacs Org mode.
6580 * Support math with haddock-library >= 1.4.
6582 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
6583 wouldn't accept the package.
6585 * Update library dependency versions.
6589 * New output format: `docbook5` (Ivo Clarysse).
6591 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
6596 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
6597 This allows header attributes to be added to org documents in the form
6598 of `:PROPERTIES:` drawers. All available attributes are stored as
6599 key/value pairs. This reflects the way the org reader handles
6600 `:PROPERTIES:` blocks.
6601 + Add drawer capability (Carlos Sosa). For the implementation of the
6602 Drawer element in the Org Writer, we make use of a generic Block
6603 container with attributes. The presence of a `drawer` class defines
6604 that the `Div` constructor is a drawer. The first class defines the
6605 drawer name to use. The key-value list in the attributes defines
6606 the keys to add inside the Drawer. Lastly, the list of Block elements
6607 contains miscellaneous blocks elements to add inside of the Drawer.
6608 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
6609 reserved for internal use by Org-mode and should not be used.
6610 The `CUSTOM_ID` property is to be used instead, it is converted to the
6611 `ID` property for certain export format.
6615 + Ignore `--incremental` unless output format is beamer (#2843).
6616 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
6617 Allow for optional argument in square brackets.
6618 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
6619 This allows one to access the hyphenation patterns in CTAN's
6621 + Add missing languages from hyph-utf8 (Andrew Dunning).
6622 + Improve use of `\strut` with `\minipage` inside tables
6623 (Jose Luis Duran). This improves spacing in multiline
6625 + Use `{}` around options containing special chars (#2892).
6626 + Avoid lazy `foldl`.
6627 + Don't escape underscore in labels (#2921). Previously they were
6629 + brazilian -> brazil for polyglossia (#2953).
6631 * HTML writer: Ensure mathjax link is added when math appears in footnote
6632 (#2881). Previously if a document only had math in a footnote, the
6633 MathJax link would not be added.
6635 * EPUB writer: set `navpage` variable on nav page.
6636 This allows templates to treat it differently.
6640 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
6641 + Properly handle `ulink`/`link` (Ivo Clarysse).
6645 + Unescape URIs in spine (#2924).
6646 + EPUB reader: normalise link id (Mauro Bieg).
6650 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
6651 `moveTo` and `moveFrom` are track-changes tags that are used when a
6652 block of text is moved in the document. We now recognize these tags and
6653 treat them the same as `insert` and `delete`, respectively. So,
6654 `--track-changes=accept` will show the moved version, while
6655 `--track-changes=reject` will show the original version.
6656 + Tests for track-changes moving (Jesse Rosenthal).
6658 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
6659 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
6660 would error out if zip-archive failed. We change the archive extraction
6661 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
6663 * Markdown, HTML readers: be more forgiving about unescaped `&` in
6664 HTML (#2410). We are now more forgiving about parsing invalid HTML with
6665 unescaped `&` as raw HTML. (Previously any unescaped `&`
6666 would cause pandoc not to recognize the string as raw HTML.)
6670 + Added bracket syntax for native spans (#168).
6671 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
6672 + Added `-s` to markdown-reader-more test.
6674 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
6675 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
6677 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
6680 * RST reader: Support `:class:` option for code block in RST reader
6683 * Org reader (all Albert Krewinkel, except where noted otherwise):
6685 + Stop padding short table rows.
6686 Emacs Org-mode doesn't add any padding to table rows. The first
6687 row (header or first body row) is used to determine the column count,
6688 no other magic is performed.
6689 + Refactor rows-to-table conversion. This refactors
6690 the codes conversing a list table lines to an org table ADT.
6691 The old code was simplified and is now slightly less ugly.
6692 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
6693 This fixes Org mode parsing of some corner cases regarding empty cells
6694 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
6695 two empty cells, but would be parsed as a single cell containing a pipe
6696 character. Empty rows where parsed as alignment rows and dropped from
6698 + Fix spacing after LaTeX-style symbols.
6699 The org-reader was dropping space after unescaped LaTeX-style symbol
6700 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
6701 instead. This seems to be because the LaTeX-reader treats the
6702 command-terminating space as part of the command. Dropping the trailing
6703 space from the symbol-command fixes this issue.
6704 + Print empty table rows. Empty table rows should not
6705 be dropped from the output, so row-height is always set to be at least 1.
6706 + Move parser state into separate module.
6707 The org reader code has become large and confusing. Extracting smaller
6708 parts into submodules should help to clean things up.
6709 + Add support for sub/superscript export options.
6710 Org-mode allows to specify export settings via `#+OPTIONS` lines.
6711 Disabling simple sub- and superscripts is one of these export options,
6712 this options is now supported.
6713 + Support special strings export option Parsing of special strings
6714 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
6716 + Support emphasized text export option. Parsing of emphasized text can
6717 be toggled using the `*` option. This influences parsing of text marked
6718 as emphasized, strong, strikeout, and underline. Parsing of inline math,
6719 code, and verbatim text is not affected by this option.
6720 + Support smart quotes export option. Reading of smart quotes can be
6721 toggled using the `'` option.
6722 + Parse but ignore export options. All known export options are parsed
6724 + Refactor block attribute handling. A parser state attribute was used
6725 to keep track of block attributes defined in meta-lines. Global state
6726 is undesirable, so block attributes are no longer saved as part of the
6727 parser state. Old functions and the respective part of the parser state
6729 + Use custom `anyLine`. Additional state changes need to be made after
6730 a newline is parsed, otherwise markup may not be recognized correctly.
6731 This fixes a bug where markup after certain block-types would not be
6733 + Add support for `ATTR_HTML` attributes (#1906).
6734 Arbitrary key-value pairs can be added to some block types using a
6735 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
6736 when exporting to HTML, but since we cannot make this distinction here,
6737 the attributes are always added. The functionality is now supported
6739 + Add `:PROPERTIES:` drawer support (#1877).
6740 Headers can have optional `:PROPERTIES:` drawers associated with them.
6741 These drawers contain key/value pairs like the header's `id`. The
6742 reader adds all listed pairs to the header's attributes; `id` and
6743 `class` attributes are handled specially to match the way `Attr` are
6744 defined. This also changes behavior of how drawers of unknown type
6745 are handled. Instead of including all unknown drawers, those are not
6746 read/exported, thereby matching current Emacs behavior.
6747 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
6748 + Respect drawer export setting. The `d` export option can be used
6749 to control which drawers are exported and which are discarded.
6750 Basic support for this option is added here.
6751 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
6752 Also fix up tab handling for leading whitespace in code blocks.
6753 + Support new syntax for export blocks. Org-mode version 9
6754 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
6755 where `<FORMAT>` is the format of the block's content, the new
6756 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
6758 + Refactor `BEGIN...END` block parsing.
6759 + Fix handling of whitespace in blocks, allowing content to be indented
6760 less then the block header.
6761 + Support org-ref style citations. The *org-ref* package is an
6762 org-mode extension commonly used to manage citations in org
6763 documents. Basic support for the `cite:citeKey` and
6764 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
6765 + Split code into separate modules, making for cleaner code and
6768 * Added `docbook5` template.
6770 * `--mathjax` improvements:
6772 + Use new CommonHTML output for MathJax (updated default MathJax URL,
6774 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
6775 This is designed for cases where the input is always TeX and maximal
6776 conformity with TeX is desired. It seems to be smaller and load faster
6777 than what we used before. See #2858.
6778 + Load the full MathJax config to maximize loading speed (KolenCheung).
6780 * Bumped upper version bounds to allow use of latest packages
6781 and compilation with ghc 8.
6783 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
6784 #2310, #2310, #2824). This fixes behavior of roots, e.g.
6785 `\sqrt[3]{x}`, and issues with sub/superscript positioning
6786 and matrix column alignment in docx.
6790 + Clarified documentation of `implicit_header_references` (#2904).
6791 + Improved documentation of `--columns` option.
6793 * Added appveyor setup, with artifacts (Jan Schulz).
6795 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
6797 * LaTeX template: support for custom font families (vladipus).
6798 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
6799 can find some other usages. Example usage in YAML metadata:
6802 - name: \cyrillicfont
6803 font: Liberation Serif
6804 - name: \cyrillicfonttt
6805 options: Scale=MatchLowercase
6808 * Create unsigned msi as build artifact in appveyor build.
6810 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
6814 * LaTeX writer: Fixed position of label in figures (#2813).
6815 Previously the label wasn't in the right place, and `\ref`
6816 wouldn't work properly.
6817 * Added .tei test files to pandoc.cabal so they'll be included
6819 * Updated copyright dates.
6823 * Fixed serious regression in `htmlInBalanced`, which caused
6824 newlines to be omitted in some raw HTML blocks in Markdown
6829 * File scope is no longer used when there are no input files (i.e.,
6830 when input comes from stdin). Previously file scope was triggered
6831 when the `json` reader was specified and input came from `stdin`,
6832 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
6833 thanks to Fedor Sheremetyev for calling the bug to our attention.)
6834 * Improved documentation of templates (#2797).
6838 * Added `--file-scope` option (Jesse Rosenthal).
6839 By default pandoc operates on multiple files by first concatenating
6840 them (around extra line breaks) and then processing the joined file. So
6841 it only parses a multi-file document at the document scope. This has the
6842 benefit that footnotes and links can be in different files, but for
6843 some purposes it is useful to parse the individual files first
6844 and then combine their outputs (e.g. when the files use footnotes
6845 or links with the same labels). The `--file-scope` option causes
6846 pandoc to parse the files first, and then combine the parsed output,
6847 instead of combining before parsing. `--file-scope` is selected
6848 automatically for binary input files (which cannot be concatenated)
6849 and for pandoc json.
6851 * Add TEI Writer (Chris Forster) and `tei` output format.
6853 * Added a general `ByteStringReader` with warnings, used by the docx
6854 reader (API change, Jesse Rosenthal).
6856 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
6858 * Changed type of `Shared.uniqueIdent`'s argument from `[String]`
6859 to `Set String.` This avoids performance problems in documents with
6860 many identically named headers (API change, #2671).
6862 * Removed `tex_math_single_backslash` from `markdown_github` options
6865 * Make language extensions as well as full language names
6866 trigger syntax highlighting. For example, `py` will now work as
6867 well as `python` (jgm/highlighting-kate#83).
6869 * Added `institute` variable to latex, beamer templates (Fraser
6870 Tweedale, Josef Svenningsson).
6872 * Docx reader (Jesse Rosenthal):
6874 + Handle alternate content. Some word functions (especially graphics)
6875 give various choices for content so there can be backwards compatibility.
6876 + Don't turn numbered headers into lists.
6877 + Docx Reader: Add state to the parser, for warnings
6878 + Update feature checklist in source code.
6879 + Get rid of `Modifiable` typeclass.
6880 + Add tests for adjacent hyperlinks.
6881 + Add a "Link" modifier to `Reducible`. We want to make sure that
6882 links have their spaces removed, and are appropriately smushed
6887 + Fixed behavior of base tag (#2777).
6888 If the base path does not end with slash, the last component
6889 will be replaced. E.g. base = `http://example.com/foo`
6890 combines with `bar.html` to give `http://example.com/bar.html`.
6891 If the href begins with a slash, the whole path of the base
6892 is replaced. E.g. base = `http://example.com/foo/` combines
6893 with `/bar.html` to give `http://example.com/bar.html`.
6894 + Rewrote `htmlInBalanced`. This version avoids an exponential
6895 performance problem with `<script>` tags, and it should be faster
6897 + Properly handle an empty cell in a simple table (#2718).
6898 + Handle multiple `<meta>` tags with same name. Put them in a list
6899 in the metadata so they are all preserved, rather than (as before)
6900 throwing out all but one..
6904 + Improved pipe table parsing (#2765).
6905 + Allow `+` separators in pipe table cells. We already allowed
6906 them in the header, but not in the body rows, for some reason.
6907 This gives compatibility with org-mode tables.
6908 + Don't cross line boundary parsing pipe table row.
6909 Previously an Emph element could be parsed across the newline
6910 at the end of the pipe table row.
6911 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
6912 performance (#2730).
6913 + Fixed bug with smart quotes around tex math.
6917 + Handle interior `$` characters in math (#2743). For example,
6919 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
6920 This gives better results when people write e.g. `\TeX{}` in Markdown.
6921 + Properly handle LaTeX "math" environment as inline math (#2171).
6923 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
6926 * Org reader (Albert Krewinkel):
6928 + Prefix even empty figure names with "fig:" (#2643). The
6929 convention used by pandoc for figures is to mark them by prefixing
6930 the name with `fig:`. The org reader failed to do this if a figure
6932 + Refactor link-target processing (#2684).
6934 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
6935 Thanks to @c-foster.
6937 * HTML writer: Don't include alignment attribute for default table columns.
6938 Previously these were given "left" alignment. Better to leave off
6939 alignment attributes altogether (#2694).
6941 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
6942 better compatibility with other Markdown flavors (Henrik Tramberend).
6946 + Use image identifier to create a label and hypertarget for
6947 figures (Mauro Bieg).
6948 + Avoid double toprule in headerless table with caption (#2742).
6949 + Clean up options parser (Jesse Rosenthal).
6950 + Treat `memoir` template with `article` option as article, instead
6951 of treating all `memoir` templates as books.
6952 + Allow more flexible table alignment (Henrik Tramberend, #2665).
6953 New default is not to include `[c]` option (which is the default
6954 anyway if no positioning is specified). Now LaTeX emplates can
6955 control the overall table alignment in a document by setting the
6956 longtable length variables `LTleft` and `LTright`. For example,
6957 `\setlength\LTleft\parindent\setlength\LTright\fill`
6958 will create left-aligned tables that respect paragraph indentation.
6960 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
6962 * Org writer - pass through RawInline with format "org".
6964 * DokuWiki writer: use `$$` for display math.
6966 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
6968 * Make protocol-relative URIs work again (#2737).
6970 * make_osx_package.sh: Use env variable for developer id certs.
6972 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
6975 * Allow `zip-archive` 0.3.
6977 * Allow `aeson` 0.11.
6981 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
6983 * Fixed regression in latex smart quote parsing (#2645).
6984 In cases where a match was not found for a quote, everything
6985 from the open quote to the end of the paragraph was being dropped.
6989 * Fixed regression with `--latex-engine` (#2618). In 1.16 `--latex-engine`
6990 raises an error if a full path is given.
6992 * Org reader: Fix function dropping subtrees tagged `:noexport`
6993 (Albert Krewinkel, #2628):
6995 * Markdown reader: renormalize table column widths if they exceed 100%
6998 * Textile reader: don't allow block HTML tags in inline contexts.
6999 The reader previously did allow this, following redcloth,
7000 which happily parses
7002 Html blocks can be <div>inlined</div> as well.
7006 <p>Html blocks can be <div>inlined</div> as well.</p>
7008 This is invalid HTML. The above sample now produces;
7010 <p>Html blocks can be</p>
7016 * Improved default template lookup for custom lua scripts (#2625).
7017 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
7018 pandoc would look for the template in
7019 `~/.pandoc/templates/default./path/to/lua/script.lua`.
7020 With this change it will look in the more reasonable
7021 `~/.pandoc/templates/default.script.lua`. This makes it possible to
7022 store default templates for custom writers.
7024 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
7027 * LaTeX writer: restore old treatment of Span (#2624). A Span is
7028 now rendered with surrounding `{}`, as it was before 1.16.
7030 * Entity handling fixes: improved handling of entities like
7031 `⟨` that require a trailing semicolon. Allow uppercase
7032 `x` in numerical hexadecimal character references, working
7033 around a tagsoup bug.
7035 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
7036 memory use on compile. With aeson 0.10 we were getting an out of
7037 memory error on a 2GB Ubuntu 64-bit VM.
7039 * Improved deb package creation script. Made `DPKGVER` work.
7040 Renamed `COMMIT` to `TREE`. You should now be able to do
7041 `TREE=1.16.0.1 DPKGVER=2 make deb`.
7046 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
7048 + Added syntax for link and image attributes to pandoc's Markdown.
7049 + Updated readers and writers to use link and image attributes
7051 + Support image attributes in Docx, Textile, RST readers.
7053 * Renamed link attribute extensions. The old `link_attributes` is
7054 now `mmd_link_attributes`, and `link_attributes` now enables the
7055 new pandoc-style link and image attributes (API change).
7056 Note: this change could break some existing workflows.
7058 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
7059 Added threefold wrapping option.
7061 + Command line option: deprecated `--no-wrap`, added
7062 `--wrap=[auto|none|preserve]`
7063 + Added `WrapOption`, exported from `Text.Pandoc.Options`
7064 + Changed type of `writerWrapText` in `WriterOptions` from
7065 `Bool` to `WrapOption`.
7066 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
7067 + Supported `SoftBreak` in readers and writers.
7069 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
7070 change, Mauro Bieg).
7072 * Added `--dpi` command-line option (Mauro Bieg).
7074 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
7075 This change makes `--no-tex-ligatures` affect the LaTeX reader
7076 as well as the LaTeX and ConTeXt writers. If it is used,
7077 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
7078 literally, rather than parsing ligatures for quotation marks
7079 and dashes. And the LaTeX writer will print unicode quotation
7080 mark and dash characters literally, rather than converting
7081 them to the standard ASCII ligatures. Note that `--smart` has
7082 no effect on the LaTeX reader. `--smart` is still the default
7083 for all input formats when LaTeX or ConTeXt is the output format,
7084 *unless* `--no-tex-ligatures` is used.
7086 Some examples to illustrate the logic:
7089 % echo "'hi'" | pandoc -t latex
7091 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
7093 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
7095 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
7097 % echo "'hi'" | pandoc -f latex
7101 * Removed deprecated options `--offline` and `--html5`.
7103 * Fixed language code for Czech (`cs` not `cz`) (#2597).
7105 * Implemented `east_asian_line_breaks` extension (#2586).
7106 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
7107 to `Extension` (API change). This extension is like
7108 `ignore_line_breaks`, but smarter -- it only ignores line breaks
7109 between two East Asian wide characters. This makes it better suited
7110 for writing with a mix of East Asian and non-East Asian scripts.
7112 * Added support for PDF creation via `wkhtmltopdf`.
7113 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
7114 if you have math.) Margins can be set using the variables
7115 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
7116 Other styling can be done through CSS.
7118 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
7119 We were capturing final colons as in `[@foo: bar]`; the citation id
7120 was being parsed as `@foo:`.
7124 + Fixed image syntax for local files (#2589).
7125 + Changed type of `writeICML` (Mauro Bieg).
7126 API change: It is now `WriterOptions -> Pandoc -> IO String`.
7127 Also handle new image attributes.
7128 + Intersperse line breaks instead of appending them to
7129 every `ParagraphStyleRange` (Mauro Bieg, #2501).
7130 + Add `Cite` style to citations (Mauro Bieg).
7131 + Added figure handling (#2590, Mauro Bieg).
7132 + Better handling of math. Instead of just printing the raw tex,
7133 we now try to fake it with unicode characters.
7135 * HTML writer: Include `example` class for example lists (#2524).
7137 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
7139 + Support for percentage widths/heights
7140 + Use `Attr` instead of title to get dimensions from ODT walker
7141 to `writeOpenDocument`.
7145 + Support anchors in spans and divs with id elements
7146 (jgm/pandoc-citeproc#143).
7147 + Fixed code blocks (#1861).
7149 * Haddock writer: omit formatting inside links, which isn't supported
7152 * MediaWiki writer: Fixed spacing issues in table cells.
7154 + Start cell on new line unless it's a single Para or Plain
7156 + For single Para or Plain, insert a space after the `|` to
7157 avoid problems when the text begins with a character like
7160 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
7164 + Add support for GAP highlighting using listings (Raniere Silva).
7165 + Consider `header-includes` content as well as templates
7166 when determining whether to use csquotes (Andreas Lööw).
7167 + Create defaults for geometry using `margin-left` etc.
7168 If `geometry` has no value, but `margin-left`, `margin-right`,
7169 `margin-top`, and/or `-margin-bottom` are given, a default value
7170 for `geometry` is created from these. Note that these variables
7171 already affect PDF production via HTML5 with `wkhtmltopdf`.
7173 * ConTeXt writer: set default layout based on `margin-left`, etc.
7174 This sets up `\setuplayout` based on the variables `margin-left`,
7175 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
7178 * Docx writer: better handling of PDF images. Previously we tried
7179 to get the image size from the image even if an explicit size was
7180 specified. Since we still can't get image size for PDFs, this made
7181 it impossible to use PDF images in docx. Now we don't try to get
7182 the image size when a size is already explicitly specified.
7184 * Markdown writer: use raw HTML for link/image attributes when
7185 the `link_attributes` extension is unset and `raw_html` is set (#2554).
7187 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
7191 + Improved smart quote parsing (#2555). This fixes redering of
7193 + Use curly quotes for unmatched ` (#2555).
7194 + Allow blank space between braced arguments of commands (#2592).
7198 + Improved pipe table relative widths. Previously pipe table
7199 columns got relative widths (based on the header underscore lines)
7200 when the source of one of the rows was greater in width than the
7201 column width. This gave bad results in some cases where much of
7202 the width of the row was due to nonprinting material (e.g. link
7203 URLs). Now pandoc only looks at printable width (the width of a
7204 plain string version of the source), which should give better results.
7205 Thanks to John Muccigrosso for bringing up the issue.
7206 + Fixed parsing bug with macros. Previously macro definitions in
7207 indented code blocks were being parsed as macro definitions, not code.
7209 * Textile reader: skip over attribute in image source (#2515).
7210 We don't have a place yet for styles or sizes on images, but
7211 we can skip the attributes rather than incorrectly taking them
7212 to be part of the filename.
7214 * Docx reader: Handle dummy list items (Jesse Rosenthal).
7215 These come up when people create a list item and then delete the
7216 bullet. It doesn't refer to any real list item, and we used to ignore
7219 * CommonMark reader/writer rewritten to use latest `cmark`.
7221 * Fixed Emoji character definitions (#2523). There were many bugs in the
7224 * `Text.Pandoc.CSS`:
7226 + Added `pickStylesToKVs` function to extract multiple properties at
7227 once (API change, Mauro Bieg).
7228 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
7230 * `trypandoc`: sort drop-down lists.
7234 + Made `\euro` conditional on presence of character.
7235 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
7236 + Moved `header-includes` before setting of title (Thomas Hodgson),
7237 to match the LaTeX template (jgm/pandoc-templates#168).
7238 + Added `section-titles` variable (defaults to true)
7239 to enable/suppress section title pages in beamer
7240 slide shows (Thomas Hodgson).
7241 + Moved beamer themes after fonts, so that themes can
7242 change fonts. (Previously the fonts set were being
7243 clobbered by lmodern.sty.) (Thomas Hodgson).
7245 * Beamer/LaTeX template changes (Thomas Hodgson):
7246 + Added `thanks` variable
7247 + Use `parskip.sty` when `indent` isn't set (fall back to using
7248 `setlength` as before if `parskip.sty` isn't available).
7249 + Use `biblio-style` with biblatex.
7250 + Added `biblatexoptions` variable.
7252 * LaTeX template changes:
7254 + Added `paper` after `$papersize$` variable in latex template.
7255 Thus you can say `papersize: a4` and the latex will contain
7256 `a4paper`. This change may break some existing workflows; if
7257 you currently specify `a4paper`, you'll get `a4paperpaper` which
7258 is meaningless. However, the change seems worth it, as it will
7259 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
7260 and html->pdf via wkhtmltopdf.
7261 + Only pass options to color package if `colorlinks` is set
7263 + Make definition of `\euro` conditional in xelatex/lualatex,
7264 as it is already for pdflatex (Andrew Dunning).
7265 + Removed setting of `subject` in PDF metadata.
7266 This used to be set to the subtitle, but really the subtitle
7267 need not give the subject. Also, `subtitle` can contain formatting,
7268 so we'd need, at least, a plain text version for this.
7269 + Moved `header-includes` before setting of `\title`, `\author`,
7270 etc. This allows these macros to be redefined.
7271 + Use `\subtitle` command for `subtitle`, instead of tacking it
7272 on to the title as before. We give a no-op fallback definition if it
7273 is not defined. This change should produce much better results
7274 in classes that support `\subtitle`. With the default article
7275 class, which does not define `\subtitle`, subtitles will no
7276 longer be printed unless the user defines `\subtitle` and
7277 redefines `\maketitle`.
7278 + Moved redefinitions of `\paragraph` and `\subparagraph` to
7279 before header-includes.
7283 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
7284 needed for things to work on ConTeXt stable from TeXLive 2015.
7285 + Revert use of `\setuphead` in title block (Andrew Dunning,
7288 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
7290 * Fixed man template so disabling hyphenation actually works.
7291 The command needs to come after .TH.
7293 * Added 'navigation' variable to beamer template (#2543).
7294 Valid values are `empty` (the default), `horizontal`, `vertical`,
7295 and `frame`. Note that this changes the default behavior from
7296 `horizontal` to `empty`. Closes #2543.
7298 * Added `toc` to HTML slide format templates (Andrew Dunning),
7299 so that `--toc` creates a contents slide.
7301 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
7303 * Allow pipe tables with no body rows (#2556).
7304 Previously this raised a runtime error.
7306 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
7307 as URL. The Haskell URI parsing routines will accept "C:" as a
7308 scheme, so we rule that out manually. This helps with
7309 `--self-contained` and absolute Windows paths.
7311 * Define a `meta-json` variable for all writers (#2019). This contains
7312 a JSON version of all the metadata, in the format selected for the
7313 writer. So, for example, to get just the YAML metadata, you can run
7314 pandoc with the following custom template: `$meta-json$`. The intent
7315 is to make it easier for static site generators and other tools to get
7318 * Document limitations of --self-contained (#2553).
7320 * Improved Citations section of README (#2551). Added information
7321 about `link-citations` and a link to the pandoc-citeproc man page.
7323 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
7326 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
7328 * Improved implicit pandoc-citeproc inclusion.
7329 The filter pandoc-citeproc is automatically used when
7330 `--bibliography` is specified on the command line, unless
7331 `--natbib` or `--biblatex` is used. However, previously this
7332 only worked if `--bibliography` was spelled out in full, and not
7333 if `--biblio` was used.
7335 * reveal.js: Interpret pauses correctly for all headers (#2530).
7336 Previously, when using headers below the slide level, pauses are left
7337 uninterpreted into pauses. In my opinion, unexpected behavior but
7338 intentional looking at the code.
7340 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
7342 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
7345 * ImageSize: Added functions for converting between image dimensions
7348 * Use lts-3.18 in stack.yaml. This avoids Windows build
7349 issues with the HTTP library.
7351 * Bump version bounds for dependencies.
7355 * Added two missing test files, and `stack.yaml`, to
7356 `extra-source-files` so they're included in the source tarball.
7358 * reveal.js template: Fixed parallaxBackground options.
7359 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
7360 need integer values, not strings. (Vaughn Iverson)
7364 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
7365 ConTeXt rather than LaTeX (#2463).
7367 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
7369 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
7370 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
7373 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
7374 parsing (#2469). Tightened up the inline HTML parser so it disallows
7377 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
7381 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
7382 Paragraphs can be followed by lists, even if there is no blank line
7383 between the two blocks. However, this should only be true if the
7384 paragraph is not within a list, were the preceding block should be
7385 parsed as a plain instead of paragraph (to allow for compact lists).
7386 Thanks to @rgaiacs for bringing this up.
7387 + Allow toggling header args (Albert Krewinkel, #2269).
7388 Org-mode allows to skip the argument of a code block header argument if
7389 it's toggling a value. Argument-less headers are now recognized,
7390 avoiding weird parsing errors.
7391 + Fix markup parsing in headers (Albert Krewinkel, #2504).
7392 Markup as the very first item in a header wasn't recognized. This was
7393 caused by an incorrect parser state: positions at which inline markup
7394 can start need to be marked explicitly by changing the parser state.
7395 This wasn't done for headers. The proper function to update the state
7396 is now called at the beginning of the header parser, fixing this issue.
7397 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
7398 Smart quotes, ellipses, and dashes should behave like normal quotes,
7399 single dashes, and dots with respect to text markup parsing.
7400 + Require whitespace around definition list markers (#2518).
7401 This rule was not checked before, resulting in bugs with footnotes
7402 and some link types.
7406 + Pipe tables with long lines now get relative cell widths (#2471).
7407 If a pipe table contains a line longer than the column width (as set by
7408 `--columns` or 80 by default), relative widths are computed based on the
7409 widths of the separator lines relative to the column width. This should
7410 solve persistent problems with long pipe tables in LaTeX/PDF output, and
7411 give more flexibility for determining relative column widths in other
7412 formats, too. For narrower pipe tables, column widths of 0 are used,
7413 telling pandoc not to specify widths explicitly in output formats that
7415 + Improved parser for `mmd_title_block`. We now allow blank metadata
7416 fields. These were explicitly disallowed before.
7417 + Citation keys can now contain `://`, so URLs and DOIs can be used
7418 as citation keys (jgm/pandoc-citeproc#166).
7420 * Beamer template: fix incompatibility of section slides with natbib.
7421 Natbib (and presumably biblatex) bibliography commands create
7422 their own section. Since these are in frame environments,
7423 we have an incompatibility with the `\AtBeginSection` macro
7424 which creates a special frame when a new section occurs.
7425 (We can't have a frame inside another frame.) This change disables
7426 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
7427 bringing the problem to my attention. This supersedes #145. See
7430 * Textile reader: don't do smart punctuation unless explicitly asked
7431 (#2480). Note that although smart punctuation is part of the textile
7432 spec, it's not always wanted when converting from textile
7433 to, say, Markdown. So it seems better to make this an option.
7435 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
7436 The `comment` environment is handled in a similar way to the
7437 `verbatim` environment, except that its content is discarded.
7439 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
7440 Jesse Rosenthal). This fixes a problem with links in notes.
7442 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
7443 (Mauro Bieg). For LaTeX, also collect `lang` and `dir` attributes on
7444 spans and divs to set the `lang`, `otherlangs` and `dir` variables if
7445 they aren’t set already. See #895.
7449 + Use proper command for `\textarabic` (Mauro Bieg).
7450 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
7451 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
7452 to link to Div or Span elements. We now don't bother defining `\label`
7453 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
7454 + Avoid footnotes in list of figures (#1506).
7455 + Properly handle footnotes in captions (#1506).
7456 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
7457 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
7458 `toccolor` is set (#2508).
7460 * Textile writer: support start number in ordered lists (#2465).
7462 * OpenDocument writer: Allow customization of opendocument
7463 automatic styles. Automatic styles can now be inserted in the
7464 template, which now provides the enclosing `<office:automatic-styles>`
7467 * Docx writer: insert space between footnote reference and note (#2527).
7468 This matches Word's default behavior.
7470 * EPUB writer: don't download linked media when `data-external` attribute
7471 set (#2473). By default pandoc downloads all linked media and includes it
7472 in the EPUB container. This can be disabled by setting `data-external` on
7473 the tags linking to media that should not be downloaded. Example:
7475 <audio controls="1">
7476 <source src="http://example.com/music/toccata.mp3"
7477 data-external="1" type="audio/mpeg">
7481 * HTML writer: use width on whole table if col widths sum to < 100%.
7482 Otherwise some browsers display the table with the columns
7483 separated far apart.
7485 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
7486 `abstract` (Andrew Dunning).
7488 * HTML-based templates (Andrew Dunning):
7490 + Use en dash instead of hyphen between title prefix and title.
7491 + Add `keywords` to metadata.
7492 + Add `lang`, `dir`, `quotes` where missing.
7493 + Always make author and date display conditional.
7494 + Updated dzslides template from source.
7496 * Man template: make "generated by" comment conditional.
7498 * LaTeX, Beamer templates:
7500 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
7501 filled by commands that make babel understand the polyglossia-style
7502 language directives (Mauro Bieg, #137).
7503 + Improved formatting of conditionals; `$for$` is always provided to allow
7504 multiple options (Andrew Dunning, #141).
7505 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
7506 to improve support for LuaTeX (Andrew Dunning, #135).
7507 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
7508 - use same options for all LaTeX engines;
7509 - add `subtitle` and `keywords` to PDF metadata;
7510 - do not override `hyperref` link coloring without user input, effectively making
7511 the `hidelinks` option the default (removed as a separate variable);
7512 - link colors can be enabled (using a slightly darker version of the old
7513 defaults) using a new `colorlinks` variable, automatically used by
7514 the LaTeX writer when custom colors are specified;
7515 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
7516 `colorlinks`, and is only applied if `colorlinks` is disabled.
7518 * ConTeXt template (Andrew Dunning):
7520 + New variables for controlling styles: `linkstyle`, `linkcolor`,
7521 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
7522 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
7523 `monofont`, `mathfont`, `fontsize`.
7524 + Default template no longer supports MkII.
7525 + Improve writing of title block (suppressing numbering of first page).
7526 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
7527 + Support `subtitle`, `abstract`.
7528 + Support list of figures (`lof`), list of tables (`lot`).
7529 + Disable link styling by default.
7530 + Define styles for all section types.
7532 + Improved formatting of conditionals.
7534 * Beamer template: added code to prevent slide breaks inside paragraphs
7535 (#2422, thanks to Nick Bart). This will matter, in practice, only when
7536 `allowframebreaks` is used. It is especially helpful for bibliography
7539 * OpenDocument template: Add `<office:automatic-styles>` tag around
7540 automatic styles. The writer now longer provides this (see #2520).
7542 * Restored Text.Pandoc.Compat.Monoid.
7544 * Do not export (<>) from custom Prelude. The Prelude now matches
7545 base 4.8 Prelude's API.
7547 * Don't use custom prelude with ghc 7.10. Use the custom prelude
7548 only for earlier versions. This change makes `stack ghci` and
7549 `cabal repl` work (#2503), at least with ghc 7.10.
7551 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
7552 This prevents problems building haddocks with "C" locale.
7554 * Change default for old-locale flag to False.
7556 * Use stack in deb, osx, and Windows package generators.
7558 * Added Vagrantfile for building deb in vm.
7559 This should help in automating binary package creation. 'make package'
7560 will make the package. 'make package COMMIT=blah' will make the package
7565 + Consistent capitalization for pandoc and Markdown.
7566 + Fixed `auto_identifiers` examples (Benoit Schweblin).
7567 + Improved documentation of template variables (Andrew Dunning).
7571 * `Text.Pandoc.Data`: store paths in dataFiles using posix separators.
7572 This way we have uniform separators, whether on Windows or Linux.
7573 This should solve a problem where on some Windows versions
7574 the data files weren't being found (#2459).
7578 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
7579 and reexported from `Text.Pandoc` (Alex Vong). This allows
7580 writers to access it. (Alex Vong) (API change)
7582 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
7583 `subscripts` (#2401).
7585 * Added `odt` as input format (Martin Linnemann). Added new module
7586 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
7587 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
7588 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
7589 Partly implemented features: Citations, Tables.
7593 + Add basic tests for each header style (Ophir Lifshitz).
7594 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
7595 + Skip spaces in headers (Ophir Lifshitz).
7596 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
7597 `# Header {id="myid" class="foo bar"}`
7598 is now equivalent to `# Header {#myid .foo .bar}`.
7599 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
7600 (Kristof Bastiaensen)
7601 + Pipe tables: allow indented columns. Previously the left-hand column
7602 could not start with 4 or more spaces indent. This was inconvenient
7603 for right-aligned left columns. Note that the first (header column)
7604 must still have 3 or fewer spaces indentation, or the table will be
7605 treated as an indented code block.
7606 + Fix regression: allow HTML comments containing `--`.
7607 Technically this isn't allowed in an HTML comment, but
7608 we've always allowed it, and so do most other implementations.
7609 It is handy if e.g. you want to put command line arguments
7614 + Don't eat excess whitespace after macros with only optional
7616 + Support longtable (#2411).
7617 + Implement `\Cite` (#2335).
7618 + Support abstract environment. The abstract populates an
7619 `abstract` metadata field.
7620 + Properly handle booktabs lines. Lines aren't part of the
7621 pandoc table model, so we just ignore them (#2307).
7625 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
7626 + Updated for new automatic header attributes.
7627 + Add auto identifiers if not present on headers. This makes
7628 TOC linking work properly.
7629 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
7630 + Test `<ol>` type, class, and inline list-style(-type) CSS
7632 + Better handling of "section" elements (#2438). Previously
7633 `<section>` tags were just parsed as raw HTML blocks. With
7634 this change, section elements are parsed as Div elements with
7635 the class "section".
7637 * MediaWiki reader: handle unquoted table attributes (#2355).
7641 + Added proper support for DocBook `xref` elements (Frerich Raabe).
7642 Added `dbContent` field to reader state, so we can lookup
7644 + Handle `informalexample` (#2319).
7648 + Create special punctuation test (Ophir Lifshitz).
7649 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
7650 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
7651 in `headers.docx` with pandoc's current `styles.xml`, which
7652 contains styles for Heading 1 through 6. Added Heading 4
7653 through 7 to the test document. Note that Heading 7 is not
7654 parsed as a Heading because there is no Heading 7 style.
7656 * RST reader: better handling of indirect roles.
7657 Previously the parser failed on this kind of case
7659 .. role:: indirect(code)
7661 .. role:: py(indirect)
7666 Now it correctly recognizes `:py:` as a code role.
7670 + Add auto identifiers if not present on headers
7671 (#2354, Juliusz Gonera).
7672 + Allow verse blocks to contain empty lines (#2402,
7675 * EPUB reader: stop mangling external URLs (#2284).
7679 + Don't insert `\ ` when complex expression in matched pairs.
7680 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
7681 + Ensure that `\ ` is inserted when needed before Cite and Span
7682 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
7683 + Normalize headers only in "standalone" mode (#2394).
7685 * Haddock writer: escape `*` and `^` (G. Bataille).
7689 + In TOC, add links to headers (#829).
7690 + Use unicode super/subscripts for digits in plain output
7691 (when the `superscripts` and `subscripts` extensions are
7696 + Moved invalid character stripping to `formattedString`.
7697 This avoids an inefficient generic traversal (#2356).
7698 + Use user data directory for `reference.docx` archive.
7699 This allows the test suite to work without installing pandoc first.
7700 It also brings the docx writer in line with the odt writer.
7701 + Tests: docx writer tests now use `../data` for data directory.
7702 This allows tests to be run without installing first.
7703 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
7707 + Fixed detection of 'chapters' from template.
7708 If a documentclass isn't specified in metadata, but the
7709 template has a hardwired bookish documentclass, act as if
7710 `--chapters` was used. This was the default in earlier
7711 versions, but it has been broken for a little while.
7712 + Correctly recognize book documentclass in metadata (#2395).
7713 + Set language-related variables automatically, depending
7714 on the value of the `lang` field, which is now always
7715 assumed to be in BCP47 format (Mauro Bieg, #1614, #2437).
7716 + Add `\protect` to `\hyperdef` in inline context. This way we
7717 don't get an error when this is used as a moveable argument (#2136).
7718 + Support all frame attributes in Beamer.
7719 + Percent-encode more special characters in URLs (#1640, #2377).
7720 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
7724 + Update KaTeX JS and CSS versions (Emily Eisenberg).
7725 + For dzslides, add `role="note"` for speaker notes (#1693).
7726 + Percent-encode more special characters in URLs (#1640, #2377).
7727 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
7728 + Render Div with class `section` as `<section>` in HTML5.
7732 + In TOC, replace literal `<br/>` with space (#2105).
7733 + With `--webtex`, include image file rather than `data:` URI (#2363).
7735 * Native writer: format Div properly, with blocks separated.
7737 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
7738 (#2191, Mauro Bieg).
7742 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
7743 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
7747 + Beamer: Add `innertheme`, `outertheme` variables
7748 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
7749 Integrate recent font and language updates from LaTeX template;
7750 allow use of `mainfont` variable for changing the slide text
7751 in XeTeX and LuaTeX (Andrew Dunning, #131).
7752 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
7753 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
7754 (Andrew Dunning, #122). Support handling of bidirectional
7755 text (Mauro Bieg, #120). Improve reliability of superscripts/subscripts
7756 under XeTeX and prevent letters and numbers from appearing on a
7757 different baseline by removing use of the `realscripts` package
7758 (via `xltxtra`). To restore use of OpenType characters for these
7759 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
7760 `header-includes` (Andrew Dunning, #130). Remove redundant
7761 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
7762 `indent`, `subparagraph` variables (Andrew Dunning).
7763 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
7764 #113). Prevent package clash with `tufte-latex` and other classes that
7765 include `hyperref` or `color` (Xavier Olive, #115).
7766 + ConTeXt: Support handling of bidirectional text (Mauro Bieg, #120).
7767 + LaTeX and ConTeXt: Use more specific language variables.
7768 Instead of directly using `lang`, we now use `babel-lang` and
7769 `polyglossia-lang` and `context-lang`. These variables are set by
7770 the writers to the necessary values, based on the `lang` variable
7771 (which now always takes a value in BCP47 format). (Mauro Bieg, #114,
7773 + HTML: Support handling of bidirectional text (Mauro Bieg, #120).
7774 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
7775 Add dir attribute in html5 (Andrew Dunning).
7776 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
7777 Add `width`, `height` variables (Andrew Dunning). Update template
7778 from 3.1 source (Andrew Dunning). All configuration options are now
7779 available as variables, but are only be included if set (reveal.js
7780 uses defaults otherwise).
7781 + man: Added comment stating that the page is autogenerated by pandoc,
7782 giving version. Added `adjusting` and `hyphenate` variables
7785 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
7787 * MediaBag: ensure that `/` is always used as path separator.
7789 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
7791 * Added `--bash-completion` option. This generates a bash completion
7792 script. To use: `eval "$(pandoc --bash-completion)"`.
7794 * Text.Pandoc.Error: Define Typeable and Exception instances
7795 for PandocError (#2386).
7797 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
7798 This makes keys with extra space at the beginning and end
7805 will now be a link to bar (it wasn't before).
7807 * Text.Pandoc: disable `auto_identifiers` for epub.
7808 The epub writer inserts its own auto identifiers;
7809 this is more complex due to splitting into "chapter" files.
7811 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
7812 It now reexports Data.Time.
7814 * Use custom Prelude to avoid compiler warnings.
7816 + The (non-exported) prelude is in prelude/Prelude.hs.
7817 + It exports Monoid and Applicative, like base 4.8 prelude,
7818 but works with older base versions.
7819 + It exports (<>) for mappend.
7820 + It hides 'catch' on older base versions.
7822 * Added a `stack.ymal` and stack install instructions to INSTALL.
7824 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
7826 * Added note to CONTRIBUTING.md about ghc versions and travis.
7828 * Clarify docs on block quotes. The space after `>` is optional (#2346).
7830 * Removed obsolete reference to default.csl (#2372).
7832 * List all styles in manual for `--reference-docx` (Chris Black)
7834 * Don't capitalize header links in man page.
7836 * Added section on repl to CONTRIBUTING.md.
7838 * README: Added space after backslash in image example (#2329).
7840 * Document details of citation locator terms (Nick Bart).
7842 * Fixed some internal links in README (#2309).
7844 * Improve CSL documentation, variables documentations,
7845 links, and cross-references in README. (Andrew Dunning)
7847 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
7849 * Use `newManager` instead of `withManager` in recent `http-client`.
7850 This avoids a deprecation warning.
7852 * Allow building with latest versions of http-types,
7853 HUnit, criterion, syb, aeson.
7855 * Updated benchmark program for new criterion API.
7857 * Setup.hs: rewrite so as not to use process, directory, filepath.
7858 Using anything outside base is dangerous, since older
7859 versions of ghc may link against two different versions.
7861 * Added appveyor (Windows continuous integration) builds.
7863 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
7864 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
7865 `make .travis.yml` regenerates it based on the tested-with
7866 field of the cabal file.
7870 * `--self-contained`: Fixed overaggressive CSS minimization (#2301, 2286).
7871 Previously `--self-contained` wiped out all spaces in CSS,
7872 including semantically significant spaces. This was a regression
7875 * Markdown reader: don't allow bare URI links or autolinks in link
7876 label (#2300). Added test cases.
7878 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
7879 Previously we disallowed `-` at the end of an autolink,
7880 and disallowed the combination `=-`. This commit liberalizes the
7881 rules for allowing punctuation in a bare URI, and adds test cases.
7882 One potential drawback is that you can no longer put a bare
7883 URI in em dashes like this:
7884 `this uri---http://example.com---is an example.`
7885 But in this respect we now match github's treatment of bare URIs.
7887 * HTML writer: support speaker notes in dzslides.
7888 With this change `<div class="notes">` and also `<div class="notes"
7889 role="note">` will be output if `-t dzslides` is used. So we can
7890 have speaker notes in dzslides too. Thanks to maybegeek.
7892 * Updated dzslides template.
7894 * Improved documentation of options to print system default files (#2298).
7895 `--print-default-data-file` and `--print-default-template`.
7897 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
7898 (Tiziano Müller). MathJax seems currently to be the only maintained
7899 math rendering extension for DokuWiki.
7901 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
7902 div as top-level header (#2294). This fixes a bug with `--section-divs`,
7903 where the final references section added by pandoc-citeproc, enclosed in
7904 its own div, got nested in the div for the section previous to it.
7906 * Allow vector 0.11.
7908 * Require cmark > 0.4.
7912 * HTML writer: Fixed email javascript obfuscation with `mailto:`
7913 URLs (#2280). This fixes a potential security issue. Because
7914 single quotes weren't being escaped in the link portion, a
7915 specially crafted email address could allow javascript code injection.
7917 * Markdown/HTML readers: Avoid parsing partial URLs like
7918 `<www.pandoc.org/blah#foo>` as HTML tags (#2277).
7920 * RST reader: allow inline formatting in definition list field
7921 names (Lars-Dominik Braun).
7923 * PDF: Make sure `--latex-engine-opt` goes before the filename
7924 on the command line. LaTeX needs the argument to come after
7925 the options (#1779).
7927 * CommonMark writer: fixed tags used for super/subscript.
7929 * ConTeXt template: activate hanging indent for definition lists
7932 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
7933 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
7934 to include `hsb2hs` in Build-Tools in cabal.
7936 * Improved Windows installer (thanks to nkalvi).
7938 + When per-machine installation is chosen, the system path
7939 is updated instead of the user's.
7940 + An appropriate default is used for per-machine installation
7942 + Admin privileges are no longer required for a per-user install
7944 * Travis: unpack sdist for build to catch packaging bugs.
7946 * Improved documentation on where user templates go (#2272).
7950 * Added pandoc.1 man page to the repository. It is no longer
7951 built as part of the cabal build process. (This proved too
7952 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
7953 when `README` is changed.
7955 * Copying of the man page now respects `--destdir` (#2262).
7957 * Improved error messages for filters. User is now informed if
7958 the filter requires an interpreter that isn't found in the path,
7959 or if the filter returns an error status.
7963 * Ensure target directory is created when installing man page.
7967 * Added files needed for building man page to Extra-Source-Files.
7971 * Man page is now built and installed as part of the cabal build
7972 process. Removed Makefile target for man page.
7978 + Removed `--man1`, `--man5` options (breaking change).
7979 + Removed `Text.Pandoc.ManPages` module (breaking API change).
7980 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
7981 create the man page from README using a custom template and filters.
7982 + Added `man/` directory with template and filters needed to build
7984 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
7985 Now there is just pandoc.1, which has all the content from README.
7986 This change was needed because of the extensive cross-references
7987 between parts of the README.
7988 + Removed old `data/pandoc.1.template` and
7989 `data/pandoc_markdown.5.template`.
7991 * OpenDocument writer: Do not add a carriage return after a hard
7992 line break (Michael Chladek).
7996 + use `\goto` for internal links.
7997 + Added a `%` at end for `\reference` to avoid spurious space.
7999 * Ignore sandbox on 'make quick'
8003 * Added `--man1` and `--man5` options to pandoc, allowing pandoc
8004 to generate its own man pages. Man pages are no longer automatically
8005 generated in the build process (the process for this was too complex
8006 and prone to failure, #2190). The `make-pandoc-man-pages` executable
8007 has been removed. The `man/` directory has been removed, and man page
8008 templates have been moved to `data/`. NOTE TO PACKAGERS: You will no
8009 longer find pandoc's man pages in `man/`, but you can generate them using
8010 `pandoc --man1 > pandoc.1` and `pandoc --man5 > pandoc_markdown.5`.
8012 * Added new unexported module: `Text.Pandoc.ManPages`.
8014 * `README` now acts like a data file (even though it isn't in
8015 `data/`). So, for example, `pandoc --print-default-data-file README`
8016 will produce the README.) This change was required for the `--man1`
8017 and `--man5` options, since the man pages are produced from the
8018 README, but it may be useful for other purposes as well.
8020 * Allow `reference.docx` and `reference.odt` to be used with
8021 `--print-default-data-file` and to shadow defaults if placed in
8022 the user data directory. Note that as of 1.14, we no longer
8023 include these files as data files; instead, we include their
8024 components. This change causes pandoc to behave as if it has
8025 these data files; they are constructed on demand when needed
8026 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
8028 * Fixed regression in CSS parsing with `--self-contained` (#2224).
8029 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
8030 silently drops big sections of CSS. This commit replaces the
8031 use of css-text with a small but principled CSS preprocessor,
8032 which removes whitespace and comments and replaces `url()` with
8033 base 64 data when possible.
8035 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
8036 This will allow math to work when pages are being viewed locally.
8038 * `Text.Pandoc.Options`: Export `plainExtensions`.
8039 These are the extensions used in `plain` output.
8041 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
8042 math mode; treat them as regular inline text. Normally these will
8043 cause an error in LaTeX, but there are contexts (e.g. `alltt`
8044 environments) where they are allowed.
8046 * HTML reader: allow `<body>` to close `<head>`.
8048 * DocBook reader: support `mediaobject`s and `figures` (#2184, Mauro Bieg).
8050 * RST reader: Fix reference names with special characters
8051 (Lars-Dominik Braun).
8053 * Textile writer: escape `+` and `-` as entities (#2225).
8055 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
8057 * Plain writer: don't use symbols for super/subscript (#2237).
8058 Simplified code by using `plainExtensions`.
8060 * InDesign writer: Properly escape URLs containing more than one
8061 colon character (gohai).
8063 * Docx writer: Make sure we use dist version of `reference.docx`
8064 (and not the user's version) for certain settings. Taking some
8065 settings values from a user-supplied reference.docx can lead to
8066 corruption. This fixes a regression from the last release (#2249).
8068 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
8069 `getDefaultReferenceODT` (API change). These functions have been
8070 removed from the Docx and ODT writers.
8072 * LaTeX template (Xavier Olive):
8073 + Added `CJKmainfont` and `CJKoptions` variables.
8074 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
8076 * Epub templates: use `author.role`, not `author.type`.
8078 * Bump cmark version to >= 0.3.4.
8080 * Improved Windows installer (#2205, thanks to nkalvi).
8081 Users can now select a per-user or systemwide install, and can set
8082 the installation path. At the end of installation, the install location
8083 is given. The install location is also now given in the list of
8084 installed programs in Control Panel. Cleaner WiX syntax is used for
8087 * Added `download_stats` target to Makefile.
8091 * Added missing commonmark template.
8093 * Improved try pandoc (moved button, show raw command).
8097 * Allow compilation with syb 0.5.*.
8099 * Custom writer: fixed some compiler warnings for ghc < 7.10.
8103 * Allow building with hslua 0.4.
8107 * Fixed problem with building of `reference.docx` and `reference.odt`
8108 when the `embed_data_files` flag is used. Instead of having a phase
8109 of the build where `reference.docx` and `reference.odt` are created
8110 from their constituent data files, we now construct these archives
8111 from their constituents when a `docx` or `odt` is built. The
8112 constituent files have been moved from `extra-source-files` to
8113 `data-files`, and `reference.docx` and `reference.odt` have been
8114 removed. Users can create their own `reference.docx` or
8115 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
8116 `make-reference-files.hs` has been removed, simplifying the build
8119 * Don't include generated man pages in extra-source-files (#2189).
8121 * Bumped upper bound for aeson.
8123 * ConTeXt writer: create internal link anchors for Div elements with
8124 identifiers. (This is needed for linked citations to work.)
8130 * Added `commonmark` as input and output format.
8132 * Added `--verbose` flag for debugging output in PDF production (#1840,
8135 * Allow wildcards in `--epub-embed-font` arguments (#1939).
8137 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
8139 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
8140 This is enabled by default for those markdown flavors that
8141 support reading shortcut reference links, namely: `markdown`,
8142 `markdown_strict`, `markdown_github`, `markdown_php`.
8143 If the extension is enabled, the reader parses shortcut reference
8144 links like `[foo]`, and the writer creates such links unless doing
8145 so would cause problems. Users of markdown flavors that support
8146 shortcut reference links should not notice a difference in reading
8147 markdown, but the markdown pandoc produces may differ.
8148 If shortcut links are not desired, the extension can be disabled
8153 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
8154 A "dirty" TOC is created at the beginning of document.
8155 It can be regenerated after the document has been opened.
8157 * An implicit `--filter pandoc-citeproc` is now triggered only when the
8158 `--bibliography` option is used, and not when the `bibliography`
8159 field in metadata is specified (#1849).
8163 + Reference links with `implicit_header_references` are no longer
8164 case-sensitive (#1606).
8165 + Definition lists no longer require indentation for first line (#2087).
8166 Previously the body of the definition (after the `:` or `~` marker)
8167 needed to be in column 4. This commit relaxes that requirement,
8168 to better match the behavior of PHP Markdown Extra. So, now
8169 this is a valid definition list:
8173 + Resolve a potentially ambiguity with table captions:
8183 Is "bar" a definition, or the caption for the table? We'll count
8184 it as a caption for the table.
8185 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
8186 Markdown Extra. Note: If you have been using headerless pipe tables,
8187 this change may cause existing tables to break.
8188 + Allow pipe tables with header but no body (#2017).
8189 + Allow a digit as first character of a citation key (Matthias Troffaes).
8190 See https://github.com/jgm/pandoc-citeproc/issues/97
8194 + Don't limit includes to `.tex` extension (#1882).
8195 If the extension is not `.tex`, it must be given explicitly in
8196 the `\input` or `\include`.
8200 + Allow numbering in the style file. This allows inherited styles
8201 with numbering (lists) (Jesse Rosenthal).
8205 + Support smart punctuation (Craig Bosma).
8206 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
8207 `:noexport:` tag set are not exported. This mirrors org-mode.
8208 + Put header tags into empty spans (Albert Krewinkel, #2160).
8209 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
8210 Instead of being interpreted as part of the headline, the tags are now
8211 put into the attributes of empty spans. Spans without textual content
8212 won't be visible by default, but they are detectable by filters. They
8213 can also be styled using CSS when written as HTML.
8214 + Generalize code block result parsing (Albert Krewinkel).
8215 Previously, only code blocks were recognized as result blocks;
8216 now, any kind of block can be the result.
8218 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
8219 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
8223 + Add "inline" or "display" class to math spans (#1914).
8224 This allows inline and display math to be styled differently.
8225 + Include raw latex blocks if `--mathjax` specified (#1938).
8226 + Require highlighting-kate >= 0.5.14 (#1903).
8227 This ensures that all code blocks will be wrapped in a `div`
8228 with class `sourceCode`. Also, the default highlighting CSS
8229 now adds `div.sourceCode { x-overflow: auto; }`, which means
8230 that code blocks (even with line numbers) will acquire a scroll
8231 bar on screens too small to display them (e.g. mobile phones).
8232 See also jgm/highlighting-kate#65.
8236 + Use a declaration for tight lists (Jose Luis Duran, Joseph
8237 Harriott). Previously, pandoc hard-coded some commands to make
8238 tight lists in LaTeX. Now we use a custom command instead,
8239 allowing the styling to be changed in a macro in the header.
8240 (Note: existing templates may need to be modified to include
8241 the definition of this macro. See the current template.)
8242 + Beamer output: if the header introducing a slide has the
8243 class `fragile`, add the `[fragile]` option to the slide (#2119).
8247 + Use `File:` instead of the deprecated `Image:` for images and
8248 other media files (Greg Rundlett).
8252 + Render a `Div (id,_,_) [Para _]` element as a `para` element
8253 with an `id` attribute. This makes links to citations work in
8254 DocBook with pandoc-citeproc.
8258 + Normalize headings to sequential levels (Nikolay Yakimov).
8259 This is pretty much required by docutils.
8260 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
8261 + Better handling of raw latex inline (#1961). We use
8262 `` :raw-latex:`...` `` and add a definition for this role to
8267 + Remove `linear=no` from cover `itemref` (#1609).
8268 + Don't use `sup` element for epub footnotes (#1995).
8269 Instead, just use an a element with class `footnoteRef`.
8270 This allows more styling options, and provides better results
8271 in some readers (e.g. iBooks, where anything inside the a
8272 tag breaks popup footnotes).
8273 + Take TOC title from `toc-title` metadata field.
8277 + Implemented `FirstParagraph` style (Jesse Rosenthal).
8278 Following the ODT writer, we add the `FirstParagraph` style to the
8279 first text paragraph following an image, blockquote, table, heading,
8280 or beginning of document. This allows it to be styled differently.
8281 The default is for it to be the same as `Normal`.
8282 + Added `BodyText` style (Jesse Rosenthal).
8283 We apply a `BodyText` style to all unstyled paragraphs. This is,
8284 essentially, the same as `Normal`, except that since not everything
8285 inherits from `BodyText` (the metadata won't, for example, or
8286 the headers or footnote numbers), we can change the text in the body
8287 without having to make exceptions for everything. If we do want to
8288 change *everything*, we can still do it through `Normal`.
8289 + Altered `Blockquote` style slightly (Jesse Rosenthal).
8290 Since `BlockQuote` derives from `BodyText`, we just want to specify
8291 by default that it won't indent, regardless of what `BodyText` does.
8292 Note that this will not produce any visible difference in the default
8294 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
8295 + Added a style to figure images (Nikolay Yakimov).
8296 Figures with empty captions use style `Figure`.
8297 Figures with nonempty captions use style `Figure with Caption`, which
8298 is based on `Figure`, and additionally has `keepNext` set.
8302 + Added figure captions (Nikolay Yakimov). The following styles are
8304 `Figure` -- for figure with empty caption),
8305 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
8306 `FigureCaption` (based on `Caption`) -- for figure captions.
8307 Also, `TableCaption` (based on `Caption`) is used for table captions.
8311 * New `Text.Pandoc.Error` module with `PandocError` type
8312 (Matthew Pickering).
8314 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
8315 (Matthew Pickering). This allows better handling of errors.
8317 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
8319 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
8321 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
8322 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
8323 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
8326 * New `Ext_shortcut_reference_links` constructor for `Extension`
8333 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
8334 + Check for tex macros after indented code (#1973).
8335 + Rewrote `charsInBalancedBrackets` for efficiency.
8336 + Make sure a closing `</div>` doesn't get included in a
8337 definition list item (#2127).
8338 + Don't parse bracketed text as citation if it might be a link,
8339 image, or footnote (Nikolay Yakimov).
8340 + Require space after key in mmd title block (#2026, Nikolay
8341 Yakimov). Require space after key-value delimiter colon in mmd title
8343 + Require nonempty value in mmd title block (Nikolay Yakimov).
8344 + Disable all metadata block extensions when parsing
8345 metadata field values (#2026, Nikolay Yakimov). Otherwise we
8346 could get a mmd title block inside YAML metadata, for example.
8350 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
8351 + Handle tables with `<th>` in body rows (#1859, Mauro Bieg).
8352 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
8353 to see if the input starts with `<!--`. If not, it's bogus comment
8354 mode and we fail `htmlTag`.
8355 + Handle `base` tag; if it has an `href` value, this is added to
8356 all relative URLs in links and images.
8360 + Look inside "info" elements for section titles (#1931).
8364 + Parse images in deprecated vml format (Jesse Rosenthal).
8365 + Allow sub/superscript verbatims (Jesse Rosenthal).
8366 Verbatim usually shuts off all other run styles, but we don't want it
8367 to shut off sub/superscript.
8371 + Handle `tabular*` environment (#1850).
8372 Note that the table width is not actually parsed or taken into
8373 account, but pandoc no longer chokes on it.
8374 + Ignore options in `\lstinline` rather than raising error (#1997).
8375 + Add some test cases for simple tables (Mathias Schenner).
8376 + Handle valign argument in tables (Mathias Schenner) (currently
8377 we just ignore this).
8378 + Allow non-empty colsep in tables (Mathias Schenner).
8379 The `tabular` environment allows non-empty column separators
8380 with the "@{...}" syntax. Previously, pandoc would fail to
8381 parse tables if a non-empty colsep was present. With this
8382 commit, these separators are still ignored, but the table gets
8383 parsed. A test case is included.
8384 + Recognize `\newpage` as a block command.
8385 + Allow block content in \title{} (#2001).
8386 + Check for block-level newcommand aliases in blockCommand (Nikolay
8388 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
8389 + Properly gobble spaces after `\\` (#2007).
8393 + Handle newlines in table cells, and empty cells (#1919).
8397 + Allow image links with non-image targets (Hans-Peter Deifel).
8398 This matches behavior of Org-Mode for links like
8399 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
8403 + Don't print empty id attributes (thanks to Steve Horne).
8407 + Fixed list-style-type for numbered example lists.
8408 Should be "decimal," not "example" (#1902).
8409 + Do not omit missing `alt` attribute on `img` tag (#1131,
8411 + Allow multiple colgroups in table (#2122).
8412 + In revealjs, ensure that lists in speaker notes don't add "fragment"
8413 classes, which can cause additional keypresses to be needed to
8414 advance a slide (#1394).
8418 + Don't escape `$` in URL (#1913).
8419 + Don't use listings in headers (Matthew Pickering, #1963).
8420 + Recognize book documentclass if set in metadata (#1971).
8421 This sets `--chapters` implicitly if the documentclass in metadata
8422 is a book documentclass. Previously this was done only if a book
8423 documentclass was set in a variable.
8424 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
8425 + Make `mainlang` work when `lang` is in metadata (#2174).
8429 + Fix wrapping by using breakable spaces (Tim Lin).
8433 + Fixed toc depth in RST writer. Previously the depth was being
8434 rendered as a floating point number with a decimal point.
8438 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
8439 compatibility with original Markdown. We now escape `<` and `>`
8440 with entities. Also, we now backslash-escape square brackets.
8441 + Avoid introducing spurious list items through wrapping (#1946).
8442 + Don't emit span tags if plain or raw HTML disabled.
8446 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
8450 + Insert some needed blank lines (#1860).
8451 + Avoid wrapping after list marker (#1858).
8455 + Properly handle internal links to IDs in spans, divs (#1884).
8456 + Use plain writer for metadata dc: fields (#2121).
8457 This gives better results when we have, e.g. multiple paragraphs.
8458 Note that tags aren't allowed in these fields.
8459 + Properly handle image links without an extension (#1855).
8460 + Improved chapter splitting and internal link rewriting (#1887,
8461 #2162, #2163). This will ensure that internal links work and
8462 that the references section produced by pandoc-citeproc is
8464 + Fixed handling of svg images (#2183).
8468 + Better handling of raw blocks and inlines (#1951).
8469 Previously these were always escaped and printed verbatim.
8470 Now they are ignored unless the format is `icml`, in which
8471 case they are passed through unescaped.
8472 + Fixed image URIs in ICML output (gohai).
8476 + Raise error if loadstring returns an error status.
8477 + Raise `PandocLuaException` instead of using 'error'.
8478 Eventually we'll change the return type so that no exception
8479 is involved, but at least this can be trapped.
8480 + Use UTF-8 aware bytestring conversion.
8481 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
8482 Also factored out ByteString, since it's only used as an intermediate
8487 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
8488 + Filter out illegal XML characters (#1992, Matthew Pickering).
8489 + Added `noProof` to docx syntax highlighting `SourceCode` style.
8490 + Added footnotes id -1 and 0 (Jesse Rosenthal).
8491 Word uses, by default, footnotes with id -1 and 0 for separators. If a
8492 user modifies `reference.docx`, they will end up with a `settings.xml`
8493 file that references these footnotes, but no such footnotes in the
8494 document. This will produce a corruption error. Here we add these to the
8495 document and `settings.xml` file, so future modifications won't break
8497 + Handle lists correctly inside table cells (Jesse Rosenthal).
8498 Previously we didn't transform lists inside table cells.
8499 + Set firstRow information in tables (Nikolay Yakimov).
8500 + Don't replace `SourceCode` style in `reference.docx` if it is defined
8501 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
8502 any `SourceCode` and `*Tok` styles in `reference.docx`.
8503 + Attempt to match international style names (#1607, Nikolay Yakimov).
8504 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
8505 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
8506 `Definition`, `First Paragraph`.
8507 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
8508 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
8509 `Footnote Ref -> Footnote Reference`.
8510 + Added `Caption` style (Nikolay Yakimov).
8511 + Changed these styles' inheritance (Nikolay Yakimov):
8512 `Image Caption <- Caption`, `Table Caption <- Caption`.
8513 + Remove `SourceCode` style from `reference.docx` (#1872).
8514 This is added automatically by the docx writer.
8515 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
8519 + Don't suggest "Try xelatex" if xelatex already in use (Mauro Bieg,
8521 + More comprehensible errors on image conversion (#2067).
8522 EPS can't be supported without shelling out to something like
8523 ImageMagick, but at least we can avoid mysterious error messages.
8525 * `Text.Pandoc.Shared`:
8527 + Make safeRead safe (#1801, Matthew Pickering).
8528 + Added `mapLeft`, `hush` (Matthew Pickering).
8530 * `Text.Pandoc.Pretty`:
8532 + Remove partial function (Matthew Pickering).
8534 * `Text.Pandoc.SelfContained`:
8536 + Add `;charset=utf-8` to script mime type if missing (#1842).
8537 + Improved building of data URIs (#1940). Now base64 is used except
8538 for `text/*` mime types.
8539 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
8540 + Properly handle data URIs in css urls (#2129).
8541 Use a proper CSS parser (adds dependency on `text-css`).
8543 * `Text.Pandoc.UTF8`:
8545 + Better handling of bare CRs in input files (#2132).
8546 Previously we just stripped them out; now we convert
8547 other line ending styles to LF line endings.
8549 * `Text.Pandoc.ImageSize`:
8551 + Fixed some exif header parsing bugs (#1834).
8552 + Make imageSize return an Either, not a Maybe (#1834).
8553 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
8554 parse failure (rather than `error`).
8555 + Improved warnings when image size can't be determined.
8556 + Removed error landmines (Matthew Pickering).
8558 * Added woff2 to MIME types (Alfred Wechselberger).
8560 * pandoc: When a binary input format is used, warn that file
8561 arguments past the first one are being ignored (Matthew Pickering).
8567 + Degrade gracefully if `\paragraph` not defined.
8568 + Include `grffile` together with `graphicx` (#2074).
8569 This properly handles filenames containing spaces and dots.
8570 + Redefine `\paragraph`, `\subparagraph`... to behave more
8571 like section headers (#1658).
8572 + Import hyperref before polyglossia to avoid an error with xelatex,
8573 "please load package hyperref before bidi package" (Nick Bart).
8574 + Added `toccolor` variable to control link color in toc (Kaixhin).
8576 * LaTeX, Beamer templates:
8578 + Provide `\tightlist`, which is now used by the LaTeX writer.
8579 + Use polyglossia in beamer (#85).
8580 + Use `bibliography` instead of `biblio-files`
8581 (#1661). Also use `\addbibresource` instead of `\bibliography` for
8583 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
8584 variable that is derived from a comma-separated list in `lang`;
8585 the last language is `mainlang` and the others are `otherlang`.
8589 + Use `div`, not `p`, for "rights" on title page.
8590 + Added header-includes, include-before, include-after (#1987).
8592 * OpenDocument template:
8594 + Use `text:p` instead of `text:h` for title.
8595 Using `text:h` causes problems with numbering. Closes #2059.
8596 Thanks to @nkalvi for diagnosing this.
8598 * reveal.js template:
8600 + Link to non-minified css, js. The minified versions no longer
8601 ship with the library.
8602 + Correctly include style CSS (#1949).
8603 + New configurable options options: `center`, `maxScale`, `slideNuber`
8604 (Dmitry Smirnov, pandoc-templates#89).
8605 + Moved custom CSS after theme. This allows custom CSS to modify
8606 themes, instead of being replaced by them.
8607 + Allow `center` to be set to false.
8609 [under the hood improvements]
8611 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
8612 Yakimov). Instead the repository now includes the component text files,
8613 and the zipped binaries are built from these using a helper
8614 program, `make-reference-files`. This should make maintenance of
8615 these components easier going forward.
8617 * `Text.Pandoc.Parsing`:
8619 + Added new `<+?>` combinator (Nikolay Yakimov).
8620 + Added `stateHeaderKeys` to `ParserState`.
8622 * `make_deb.sh` fixes:
8624 + Detect architecture.
8625 + Add Installed-Size to debian package control file (#1900).
8626 + Use `fakeroot` to get permissions right.
8627 + Use `mkdir` and `cp` instead of `install`.
8628 + Set permissions of directories to 755.
8629 + Install in `/usr` rather than `/usr/local`.
8630 + Compress man pages.
8631 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
8633 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
8634 to assist with transition to `time` 1.5.
8636 * Updated CONTRIBUTING.md with information about issue tags (Matthew
8639 * Updated travis installs to the new sudo-less syntax (Tim Lin).
8641 * Updated dependency version bounds.
8643 * EPUB tests: don't use `joinPath`, which varies across platforms.
8644 Instead, use a forward-slash to join paths, regardless of the
8645 platform. This matches the way `MediaBag` now works.
8647 * Clarify JSON input and output in usage message (Caleb McDaniel).
8649 * Improved INSTALL instructions.
8651 * Always build man pages. Removed make-pandoc-man-pages flag.
8653 * Makefile: removed man target, now that we generate man pages by default.
8657 + Fixed typos (J. Lewis Muir).
8658 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
8659 + Added note on in-field markup in biblio databases (Nick Bart).
8660 + Fixed misleading example of raw HTML block.
8661 + Various minor formatting and consistency fixes for the program
8662 options (Andreas Lööw).
8663 + Made definition lists for options all "loose" for consistency.
8664 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
8665 `--bib2json` and `--bib2yaml` options (Nick Bart).
8666 + Removed obsolete reference to `mods2yaml` (Nick Bart).
8667 + Added section on syntax highlighting.
8668 + Documented `toccolor` variable.
8672 * Updated to build with ghc 7.10.1.
8674 * Bumped package upper bounds for filepath, blaze-html,
8679 * TWiki Reader: add new twiki reader (API change, Alexander Sulfrian).
8683 + Better handling of paragraph in div (#1591).
8684 Previously text that ended a div would be parsed as Plain
8685 unless there was a blank line before the closing div tag.
8686 + Don't treat a citation as a reference link label (#1763).
8687 + Fix autolinks with following punctuation (#1811).
8688 The price of this is that autolinked bare URIs can no longer
8689 contain `>` characters, but this is not a big issue.
8690 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
8691 + Allow `startnum` to work without `fancy_lists`. Formerly
8692 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
8694 * RST reader (all Daniel Bergey):
8696 + Parse quoted literal blocks (#65). RST quoted literal blocks are
8697 the same as indented literal blocks (which pandoc already supports)
8698 except that the quote character is preserved in each line.
8699 + Parse RST class directives. The class directive accepts one or more
8700 class names, and creates a Div value with those classes. If the
8701 directive has an indented body, the body is parsed as the children of
8702 the Div. If not, the first block following the directive is made a
8703 child of the Div. This differs from the behavior of rst2xml, which
8704 does not create a Div element. Instead, the specified classes are
8705 applied to each child of the directive. However, most Pandoc Block
8706 constructors to not take an Attr argument, so we can't duplicate this
8708 + Warn about skipped directives.
8709 + Literal role now produces Code. Code role should have "code" class.
8710 + Improved support for custom roles
8712 - Added `sourceCode` to classes for `:code:` role, and anything
8714 - Add the name of the custom role to classes if the Inline
8715 constructor supports Attr.
8716 - If the custom role directive does not specify a parent role,
8717 inherit from the `:span:` role.
8719 This differs somewhat from the `rst2xml.py` behavior. If a custom
8720 role inherits from another custom role, Pandoc will attach both
8721 roles' names as classes. `rst2xml.py` will only use the class of
8722 the directly invoked role (though in the case of inheriting from a
8723 `:code:` role with a `:language:` defined, it will also provide the
8724 inherited language as a class).
8725 + Warn about ignored fields in role directives.
8729 + Parse label after caption into a span instead of
8730 inserting an additional paragraph of bracketed text (#1747).
8731 + Parse math environments as inline when possible (#1821).
8732 + Better handling of `\noindent` and `\greektext` (#1783).
8733 + Handle `\texorpdfstring` more gracefully.
8734 + Handle `\cref` and `\sep` (Wikiwide).
8735 + Support `\smartcite` and `\Smartcite` from biblatex.
8739 + Retain display type of MathML output (#1719, Matthew Pickering).
8740 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
8741 + Make `embed` tag either block or inline (#1756).
8745 + Handle `keycombo`, `keycap` (#1815).
8746 + Get string content in inner tags for literal elements (#1816).
8747 + Handle `menuchoice` elements better, with a `>` between (#1817).
8748 + Include `id` on section headers (#1818).
8749 + Document/test "type" as implemented (Brian O'Sullivan).
8750 + Add support for calloutlist and callout (Brian O'Sullivan).
8751 We treat a calloutlist as a bulleted list. This works well in practice.
8752 + Add support for `classname` (Bryan O'Sullivan).
8756 + Fix window path for image lookup (Jesse Rosenthal).
8757 Don't use os-sensitive "combine", since we always want the paths in our
8758 zip-archive to use forward-slashes.
8759 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
8760 When users number their headers, Word understands that as a single item
8761 enumerated list. We make the assumption that such a list is, in fact,
8763 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
8764 There could be new top-level headers after making lists, so we have to
8765 rewrite links after that.
8766 + Use polyglot header list (Jesse Rosenthal).
8767 We're just keeping a list of header formats that different languages
8768 use as their default styles. At the moment, we have English, German,
8769 Danish, and French. We can continue to add to this.
8770 This is simpler than parsing the styles file, and perhaps less
8771 error-prone, since there seems to be some variations, even within a
8772 language, of how a style file will define headers.
8773 + Remove header class properly in other langs (Jesse Rosenthal).
8774 When we encounter one of the polyglot header styles, we want to remove
8775 that from the par styles after we convert to a header. To do that, we
8776 have to keep track of the style name, and remove it appropriately.
8777 + Account for external link URLs with anchors. Previously, if a URL
8778 had an anchor, the reader would incorrectly identify it as an
8779 internal link and return only the anchor as URL. (Caleb McDaniel)
8780 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
8784 + Added state changing blanklines (Jesse Rosenthal).
8785 This allows us to emphasize at the beginning of a new paragraph (or, in
8786 general, after blank lines).
8787 + Fixed bug with bulleted lists:
8793 was being parsed as a list, even though an unindented `*`
8794 should make a heading. See
8795 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
8796 + Org reader: absolute, relative paths in link (#1741, Albert
8797 Krewinkel). The org reader was too restrictive when parsing links;
8798 some relative links and links to files given as absolute paths
8799 were not recognized correctly.
8800 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
8801 This is important for use in gitit, which uses empty links
8803 + Respect indent when parsing Org bullet lists (#1650, Timothy
8804 Humphries). Fixes issue with top-level bullet list parsing.
8805 + Fix indent issue for definition lists (Timothy Humphries,
8806 see #1650, #1698, #1680).
8807 + Parse multi-inline terms correctly in definition list (#1649,
8809 + Fix rules for emphasis recognition (Albert Krewinkel).
8810 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
8811 strings. This is wrong, as `,` and `'` are forbidden border chars and
8812 may not occur on the inner border of emphasized text.
8813 + Drop COMMENT document trees (Albert Krewinkel).
8814 Document trees under a header starting with the word `COMMENT` are
8815 comment trees and should not be exported. Those trees are dropped
8817 + Properly handle links to `file:target` (Albert Krewinkel).
8818 Org links like `[[file:target][title]]` were not handled correctly,
8819 parsing the link target verbatim. The org reader is changed such that
8820 the leading `file:` is dropped from the link target (see #756, #1812).
8821 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
8822 Org supports special symbols which can be included using LaTeX syntax,
8823 but are actually MathML entities. Examples for this are
8824 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
8825 or `\copy` (the copyright sign ©)
8829 + URI handling improvements. Now we outsource most of the work to
8830 `fetchItem'`. Also, do not include queries in file extensions (#1671).
8834 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
8835 + Handle consecutive linebreaks (#1733).
8836 + Protect graphics in headers (Jesse Rosenthal).
8837 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
8838 + Put `~` before header in list item text (Jesse Rosenthal).
8839 Because of the built-in line skip, LaTeX can't handle a section header
8840 as the first element in a list item.
8841 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
8842 + Better handling of display math in simple tables (#1754).
8843 We convert display math to inline math in simple tables,
8844 since LaTeX can't deal with display math in simple tables.
8845 + Escape spaces in code (#1694, Bjorn Buckwalter).
8849 + Fixed links with URL = text. Previously these were rendered as bare
8850 words, even if the URL was not an absolute URL (#1825).
8854 + Don't force all citations into footnotes.
8858 + Add blankline at end of output (#1732, Matthew Pickering).
8862 + Ensure blank line after figure.
8863 + Avoid exces whitespace after last list item (#1777).
8864 + Wrap line blocks with spaces before continuations (#1656).
8865 + Fixed double-rendering of footnotes in RST tables (#1769).
8869 + Better handling of block quotes. This change ensures that
8870 multiple paragraph blockquotes are rendered using native `>`
8871 rather than as HTML (#1738).
8872 + Fix external images (#1739). Preface relative links with ":",
8873 absolute URIs without. (Timothy Humphries)
8877 + Use protocol-relative URL for mathjax.
8878 + Put newline btw img and caption paragraph.
8879 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
8880 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
8881 This adds `KaTeX` to `HTMLMathMethod` (API change).
8882 + Don't double render when `email-obfuscation=none` (#1625, Matthew
8884 + Make header attributes work outside top level (#1711).
8885 Previously they only appeared on top level header elements.
8886 Now they work e.g. in blockquotes.
8890 + Correctly handle images without extensions (#1729).
8891 + Strip querystring in ODT write (#1682, Todd Sifleet).
8895 + Add newline to output.
8899 + Don't add `sourceURL` to absolute URIs (#1669).
8900 + Don't use unsupported `opf:title-type` for epub2.
8901 + Include "landmarks" section in nav document for epub3 (#1757).
8902 + Removed playOrder from navpoint elements in ncx file (#1760).
8903 These aren't required, and they make manual modification of epubs
8905 + Extract title even from structured title.
8906 + Don't include nav node in spine unless `--toc` was requested.
8907 Previously we included it in the spine with `linear="no"`, leading
8908 to odd results in some readers (#1593).
8909 + Fixed absolute URI detection (#1672).
8910 + Correctly resolve relative URIs (#1671).
8911 + Use regular page template for `nav.xhtml`, including doctype (#1759).
8915 + Put docx table captions above tables (#1641, Nikolay Yakimov).
8916 + Get the page width from the reference docx file, and use
8917 it to scale images that are too large to fit (Grégory Bataille).
8918 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
8919 are inferred based on `<w:name val="heading #">` fallback, if there
8920 are no en-US "Heading#" styles
8921 + Look in user data dir for archive `reference.docx`.
8922 + Renumber header and footer relationships to avoid collisions (Jesse
8923 Rosenthal). We previously took the old relationship names of the
8924 headers and footer in secptr. That led to collisions. We now make
8925 a map of availabl names in the relationships file, and then rename
8930 + Add function toLabel (Mark Szepieniec).
8931 This function can be used to sanitize reference labels so that
8932 they do not contain any of the illegal characters \#[]",{}%()|= .
8933 Currently only Links have their labels sanitized, because they
8934 are the only Elements that use passed labels.
8936 * `Text.Pandoc.Shared`:
8938 + Moved import of `toChunks` outside of CPP conditional (#1590).
8939 + Fix `inDirectory` to reset to the original directory in case
8940 an exception occurs (Freiric Barral).
8944 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
8945 Thanks to bluebirch.
8946 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
8948 + LaTeX template: Add shorthands=off to babel options (#1648).
8949 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
8950 This aids styling, making it possible for example to set 0 margins
8951 on the title page (#1758).
8952 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
8953 Previously we just expected 'title', 'subtitle', 'author', 'date'.
8954 Now we still support those, but also support the format recommended
8955 for epub metadata in the pandoc README:
8962 text: An investigation of metadata
8970 text: doi:10.234234.234/33
8972 rights: (c) 2007 John Smith, CC BY-NC
8975 * `Text.Pandoc.Templates.getDefaultTemplate`:
8976 don't fail when called with "fb2" (#1660).
8978 * `Text.Pandoc.Parsing`:
8980 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
8981 For example: `$x = \text{the $n$th root of $y$}` (#1677).
8982 + Change `parseFromString` to fail if not all input is consumed.
8984 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
8985 used by more readers (API change, Daniel Bergey).
8987 * `Text.Pandoc.Pretty`:
8989 + Improve performance of `realLength` (Matthew Pickering).
8990 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
8991 were getting at the end of markdown fragments (as well as rst, org,
8994 * `Text.Pandoc.MIME`:
8996 + Add mime type for WebVTT (Jason Ronallo).
8997 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
8998 This is needed for epub3 validation.
9000 * `Text.Pandoc.MediaBag`:
9002 + Fix Windows specific path problems (#1597).
9004 * `Text.Pandoc.Shared`:
9006 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
9008 * Link the test suite using `-threaded`.
9009 This allows the test suite to be run using `+RTS -N`.
9011 * Added `network` dependency under `network-uri` flag in test section.
9013 * Give better error messages when someone tries to convert from
9014 pdf, doc, odt (#1683).
9016 * Added `track` to list of tags treated by `--self-contained` (#1664).
9020 * Fixed `--self-contained` with Windows paths (#1558).
9021 Previously `C:\foo.js` was being wrongly interpreted as a URI.
9023 * HTML reader: improved handling of tags that can be block or inline.
9024 Previously a section like this would be enclosed in a paragraph,
9025 with RawInline for the video tags (since video is a tag that can
9026 be either block or inline):
9028 <video controls="controls">
9029 <source src="../videos/test.mp4" type="video/mp4" />
9030 <source src="../videos/test.webm" type="video/webm" />
9032 The videos can not be played back on your system.<br/>
9033 Try viewing on Youtube (requires Internet connection):
9034 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
9039 This change will cause the video and source tags to be parsed
9040 as RawBlock instead, giving better output.
9041 The general change is this: when we're parsing a "plain" sequence
9042 of inlines, we don't parse anything that COULD be a block-level tag.
9046 + Be sensitive to user styles. Note that "Hyperlink" is
9047 "blacklisted," as we don't want the default underline styling to be
9048 inherited by all links by default (Jesse Rosenthal).
9049 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
9050 This makes to docx reader's native output fit with the way the markdown
9051 reader understands its markdown output.
9053 * Textile writer: Extended the range of cases where native textile
9054 tables will be used (as opposed to raw HTML): we now handle any
9055 alignment type, but only for simple tables with no captions.
9059 + Header is now parsed only if standalone flag is set (Matthew Pickering).
9060 + The header is now parsed as meta information. The first line is the
9061 `title`, the second is the `author` and third line is the `date`
9062 (Matthew Pickering).
9063 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
9064 + Fixed crash when reading from stdin.
9066 * EPUB writer: Don't use page-progression-direction in EPUB2, which
9067 doesn't support it. Also, if page-progression-direction not specified
9068 in metadata, don't include the attribute even in EPUB3; not including it
9069 is the same as including it with the value "default", as we did before.
9072 * Org writer: Accept example lines with indentation at the beginning
9077 + Refactor to use Reader monad (Matthew Pickering).
9078 + Avoid using raw HTML in table cells; instead, use `\\`
9079 instead of newlines (Jesse Rosenthal).
9080 + Properly handle HTML table cell alignments, and use spacing
9081 to make the tables look prettier (#1566).
9085 + Bibliography entries get `Bibliography` style (#1559).
9086 + Implement change tracking (Jesse Rosenthal).
9090 + Fixed a bug that caused a table caption to repeat across all pages
9092 + Improved vertical spacing in tables and made it customizable using
9093 standard lengths set by booktab. See
9094 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
9096 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
9097 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
9098 + Made horizontal rules more flexible (Jose Luis Duran).
9102 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
9103 Code cleanups (Artyom Kazak).
9107 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
9110 * Improved OSX build procedure.
9112 * Added `network-uri` flag, to deal with split of `network-uri` from
9115 * Fix build dependencies for the `trypandoc` flag, so that they are
9116 ignored if `trypandoc` flag is set to False (Gabor Pali).
9118 * Updated README to remove outdated claim that `--self-contained`
9119 looks in the user data directory for missing files.
9125 + Fixed regression which bungled list numbering (#1544), causing
9126 all lists to appear as basic ordered lists.
9127 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
9128 Added a property to all table rows where the sum of column widths
9129 is specified in pct (fraction of 5000). This helps persuade Word
9130 to lay out the table with the widths we specify.
9132 * Fixed a bug in Windows 8 which caused pandoc not to find the
9133 `pandoc-citeproc` filter (#1542).
9135 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
9136 Most significantly, the reader now uses Builder, leading to some
9137 performance improvements.
9139 * HTML reader: Parse appropriately styled span as SmallCaps.
9141 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
9142 `superscript`, and `subscript` extensions, respectively, are
9143 deactivated (#1127).
9145 * Added `trypandoc` flag to build CGI executable used in the online
9148 * Makefile: Added 'quick', 'osxpkg' targets.
9150 * Updated README in templates to indicate templates license.
9151 The templates are dual-licensed, BSD3 and GPL2+.
9157 * Added `docx` as an input format (Jesse Rosenthal). The docx
9158 reader includes conversion of native Word equations to pandoc
9159 LaTeX `Math` elements. Metadata is taken from paragraphs at the
9160 beginning of the document with styles `Author`, `Title`, `Subtitle`,
9161 `Date`, and `Abstract`.
9163 * Added `epub` as an input format (Matthew Pickering). The epub
9164 reader includes conversion of MathML to pandoc LaTeX `Math`
9167 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
9168 Txt2tags is a lightweight markup format described at
9169 <http://txt2tags.org/>.
9171 * Added `dokuwiki` as an output format (Clare Macrae).
9173 * Added `haddock` as an output format.
9175 * Added `--extract-media` option to extract media contained in a zip
9176 container (docx or epub) while adjusting image paths to point to the
9179 * Added a new markdown extension, `compact_definition_lists`, that
9180 restores the syntax for definition lists of pandoc 1.12.x, allowing
9181 tight definition lists with no blank space between items, and
9182 disallowing lazy wrapping. (See below under behavior changes.)
9184 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
9186 * Added extensions `native_spans` and `native_divs` to activate
9187 parsing of material in HTML span or div tags as Pandoc Span
9188 inlines or Div blocks.
9190 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
9191 Textile, and MediaWiki readers. This is an option intended
9192 for debugging parsing problems; ordinary users should not need
9197 * Changed behavior of the `markdown_attribute` extension, to bring
9198 it in line with PHP markdown extra and multimarkdown. Setting
9199 `markdown="1"` on an outer tag affects all contained tags,
9200 recursively, until it is reversed with `markdown="0"` (#1378).
9202 * Revised markdown definition list syntax (#1429). Both the reader
9203 and writer are affected. This change brings pandoc's definition list
9204 syntax into alignment with that used in PHP markdown extra and
9205 multimarkdown (with the exception that pandoc is more flexible about
9206 the definition markers, allowing tildes as well as colons). Lazily
9207 wrapped definitions are now allowed. Blank space is required
9208 between list items. The space before a definition is used to determine
9209 whether it is a paragraph or a "plain" element. **WARNING: This change
9210 may break existing documents!** Either check your documents for
9211 definition lists without blank space between items, or use
9212 `markdown+compact_definition_lists` for the old behavior.
9214 * `.numberLines` now works in fenced code blocks even if no language
9215 is given (#1287, jgm/highlighting-kate#40).
9217 * Improvements to `--filter`:
9219 + Don't search PATH for a filter with an explicit path.
9220 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
9221 the system path, even if there was a `caps.py` in the working directory.
9222 + Respect shebang if filter is executable (#1389).
9223 + Don't print misleading error message.
9224 Previously pandoc would say that a filter was not found,
9225 even in a case where the filter had a syntax error.
9229 + Parse `div` and `span` elements even without `--parse-raw`,
9230 provided `native_divs` and `native_spans` extensions are set.
9231 Motivation: these now generate native pandoc Div and Span
9232 elements, not raw HTML.
9233 + Parse EPUB-specific elements if the `epub_html_exts`
9234 extension is enabled. These include `switch`, `footnote`,
9235 `rearnote`, `noteref`.
9239 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
9240 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
9241 `\cite{Coffee}`), can be used without any further escaping (Albert
9244 * Textile reader and writer:
9246 + The `raw_tex` extension is no longer set by default. You can
9247 enable it with `textile+raw_tex`.
9251 + Support `equation`, `informalequation`, `inlineequation` elements with
9252 `mml:math` content. This is converted into LaTeX and put into a Pandoc
9255 * Revised `plain` output, largely following the style of Project
9258 + Emphasis is rendered with `_underscores_`, strong emphasis
9260 + Headings are rendered differently, with space to set them off,
9261 not with setext style underlines. Level 1 headers are ALL CAPS.
9262 + Math is rendered using unicode when possible, but without the
9263 distracting emphasis markers around variables.
9264 + Footnotes use a regular `[n]` style.
9268 + Horizontal rules are now a line across the whole page.
9269 + Prettier pipe tables. Columns are now aligned (#1323).
9270 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
9271 no longer emits any raw HTML, including span and div tags
9272 generated by Span and Div elements.
9273 + Use span with style for `SmallCaps` (#1360).
9277 + Autolinks now have class `uri`, and email autolinks have class
9278 `email`, so they can be styled.
9282 + Document formatting is carried over from `reference.docx`.
9283 This includes margins, page size, page orientation, header,
9284 and footer, including images in headers and footers.
9285 + Include abstract (if present) with `Abstract` style (#1451).
9286 + Include subtitle (if present) with `Subtitle` style, rather
9287 than tacking it on to the title (#1451).
9291 + Write empty span elements with an id attribute as org anchors.
9292 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
9296 + Put table captions above tables, to match the conventional
9297 standard. (Previously they appeared below tables.)
9298 + Use `\(..\)` instead of `$..$` for inline math (#1464).
9299 + Use `\nolinkurl` in email autolinks. This allows them to be styled
9300 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
9301 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
9302 curly quotes in the PDF output (#1364).
9303 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
9304 do not appear before the overlays in which their markers appear
9306 + Don't produce a `\label{..}` for a Div or Span element. Do produce
9307 a `\hyperdef{..}` (#1519).
9311 + If the metadata includes `page-progression-direction` (which can be
9312 `ltr` or `rtl`, the `page-progression-direction` attribute will
9313 be set in the EPUB spine (#1455).
9315 * Custom lua writers:
9317 + Custom writers now work with `--template`.
9318 + Removed HTML header scaffolding from `sample.lua`.
9319 + Made citation information available in lua writers.
9321 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
9322 adjacent `RawBlock`s when possible.
9326 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
9328 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
9331 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
9334 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
9337 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
9339 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
9340 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
9341 readers return a pair of a `Pandoc` document and a `MediaBag` with
9342 the media resources they contain. This can be extracted using
9343 `--extract-media`. Writers that incorporate media (PDF, Docx,
9344 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
9345 for resources in the `MediaBag` generated by the reader, in addition to
9346 the file system or web.
9348 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
9349 Renamed `readTeXMath'` to `texMathToInlines`.
9351 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
9352 `readers` now associates names of readers with `Reader`
9353 structures. This allows inclusion of readers, like the docx
9354 reader, that take binary rather than textual input.
9356 * `Text.Pandoc.Shared`:
9358 + Added `capitalize` (Artyom Kazak), and replaced uses of
9359 `map toUpper` (which give bad results for many languages).
9360 + Added `collapseFilePath`, which removes intermediate `.` and
9361 `..` from a path (Matthew Pickering).
9362 + Added `fetchItem'`, which works like `fetchItem` but searches
9363 a `MediaBag` before looking on the net or file system.
9364 + Added `withTempDir`.
9365 + Added `removeFormatting`.
9366 + Added `extractSpaces` (from HTML reader) and generalized its type
9367 so that it can be used by the docx reader (Matthew Pickering).
9369 + Added `normalizeInlines`, `normalizeBlocks`.
9370 + `normalize` is now `Pandoc -> Pandoc` instead of
9371 `Data a :: a -> a`. Some users may need to change their uses of
9372 `normalize` to the newly exported `normalizeInlines` or
9375 * `Text.Pandoc.Options`:
9377 + Added `writerMediaBag` to `WriterOptions`.
9378 + Removed deprecated and no longer used `readerStrict` in
9379 `ReaderOptions`. This is handled by `readerExtensions` now.
9380 + Added `Ext_compact_definition_lists`.
9381 + Added `Ext_epub_html_exts`.
9382 + Added `Ext_native_divs` and `Ext_native_spans`.
9383 This allows users to turn off the default pandoc behavior of
9384 parsing contents of div and span tags in markdown and HTML
9385 as native pandoc Div blocks and Span inlines.
9387 * `Text.Pandoc.Parsing`:
9389 + Generalized `readWith` to `readWithM` (Matthew Pickering).
9390 + Export `runParserT` and `Stream` (Matthew Pickering).
9391 + Added `HasQuoteContext` type class (Matthew Pickering).
9392 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
9393 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
9394 `applyMacros` (Matthew Pickering).
9395 + Added custom `token` (Matthew Pickering).
9396 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
9397 track of the ending tag we're waiting for when we're parsing inside
9399 + Added `stateMarkdownAttribute` to `ParserState`. This is used
9400 to keep track of whether the markdown attribute has been set in
9402 + Generalized type of `registerHeader`, using new type classes
9403 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
9404 Pickering). These allow certain common functions to be reused
9405 even in parsers that use custom state (instead of `ParserState`),
9406 such as the MediaWiki reader.
9407 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
9408 and generalized their types (Matthew Pickering).
9410 * `Text.Pandoc.Pretty`:
9413 + Added `blanklines`, which guarantees a certain number of blank lines
9420 + Fixed parsing of indented code in list items. Indented code
9421 at the beginning of a list item must be indented eight spaces
9422 from the margin (or edge of the container), or four spaces
9423 from the list marker, whichever is greater.
9424 + Fixed small bug in HTML parsing with `markdown_attribute`, which
9425 caused incorrect tag nesting for input like
9426 `<aside markdown="1">*hi*</aside>`.
9427 + Fixed regression with intraword underscores (#1121).
9428 + Improved parsing of inline links containing quote characters (#1534).
9429 + Slight rewrite of `enclosure`/`emphOrStrong` code.
9430 + Revamped raw HTML block parsing in markdown (#1330).
9431 We no longer include trailing spaces and newlines in the
9432 raw blocks. We look for closing tags for elements (but without
9433 backtracking). Each block-level tag is its own `RawBlock`;
9434 we no longer try to consolidate them (though `--normalize` will do so).
9435 + Combine consecutive latex environments. This helps when you have
9436 two minipages which can't have blank lines between them (#690, #1196).
9437 + Support smallcaps through span.
9438 `<span style="font-variant:small-caps;">foo</span>` will be
9439 parsed as a `SmallCaps` inline, and will work in all output
9440 formats that support small caps (#1360).
9441 + Prevent spurious line breaks after list items (#1137). When the
9442 `hard_line_breaks` option was specified, pandoc would formerly
9443 produce a spurious line break after a tight list item.
9444 + Fixed table parsing bug (#1333).
9445 + Handle `c++` and `objective-c` as language identifiers in
9446 github-style fenced blocks (#1318).
9447 + Inline math must have nonspace before final `$` (#1313).
9451 + Handle comments at the end of tables. This resolves the issue
9452 illustrated in <http://stackoverflow.com/questions/24009489>.
9453 + Correctly handle table rows with too few cells. LaTeX seems to
9454 treat them as if they have empty cells at the end (#241).
9455 + Handle leading/trailing spaces in `\emph` better.
9456 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
9457 so that we don't get things like `* hi *` in markdown output.
9458 Also applies to `\textbf` and some other constructions (#1146).
9459 + Don't assume preamble doesn't contain environments (#1338).
9460 + Allow (and discard) optional argument for `\caption` (James Aspnes).
9464 + Fixed major parsing problem with HTML tables. Table cells were
9465 being combined into one cell (#1341).
9466 + Fixed performance issue with malformed HTML tables.
9467 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
9468 + Allow space between `<col>` and `</col>`.
9469 + Added `audio` and `source` in `eitherBlockOrInline`.
9470 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
9471 `blockTags` to `eitherBlockOrInline`.
9472 + `map` and `object` were mistakenly in both lists; they have been removed
9474 + Ignore `DOCTYPE` and `xml` declarations.
9478 + Don't parse backslash escapes inside `<source>` (#1445).
9479 + Tightened up template parsing.
9480 The opening `{{` must be followed by an alphanumeric or `:`.
9481 This prevents the exponential slowdown in #1033.
9482 + Support "Bild" for images.
9486 + Better handle elements inside code environments. Pandoc's document
9487 model does not allow structure inside code blocks, but at least this way
9488 we preserve the text (#1449).
9489 + Support `<?asciidoc-br?>` (#1236).
9493 + Fixed list parsing. Lists can now start without an intervening
9495 + HTML block-level tags that do not start a line are parsed as
9496 inline HTML and do not interrupt paragraphs (as in RedCloth).
9500 + Make tildes create inline code (#1345). Also relabeled `code` and
9501 `verbatim` parsers to accord with the org-mode manual.
9502 + Respect `:exports` header argument in code blocks (Craig Bosma).
9503 + Fixed tight lists with sublists (#1437).
9507 + Avoid excess whitespace in `nav.xhtml`. This should improve
9508 TOC view in iBooks (#1392).
9509 + Fixed regression on cover image.
9510 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
9511 because the metadata id was not correct. Now we derive the id from the
9512 actual cover image filename, which we preserve rather than using
9514 + Keep newlines between block elements. This allows
9515 easier diff-ability (#1424).
9516 + Use `stringify` instead of custom `plainify`.
9517 + Use `renderTags'` for all tag rendering. This properly handles tags
9518 that should be self-closing. Previously `<hr/>` would appear in EPUB
9519 output as `<hr></hr>` (#1420).
9520 + Better handle HTML media tags.
9521 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
9522 can have only one dc:date, so only the first one is used.
9526 + Correctly handle figures in notes. Notes can't contain figures in
9527 LaTeX, so we fake it to avoid an error (#1053).
9528 + Fixed strikeout + highlighted code (#1294).
9529 Previously strikeout highlighted code caused an error.
9533 + Improved detection of autolinks with URLs containing escapes.
9537 + Improved image embedding: `fetchItem'` is now used to get the
9538 images, and calculated image sizes are indicated in the RTF.
9539 + Avoid extra paragraph tags in metadata (#1421).
9543 + Deactivate "incremental" inside slide speaker notes (#1394).
9544 + Don't include empty items in the table of contents for
9545 slide shows. (These would result from creating a slide
9546 using a horizontal rule.)
9550 + Minor renaming of `st` prefixed names.
9554 + Double up emphasis and strong emphasis markers in intraword
9555 contexts, as required by asciidoc (#1441).
9559 + Avoid wrapping that might start a list, blockquote, or header (#1013).
9560 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
9561 + Don't use braced attributes for fenced code (#1416).
9562 If `Ext_fenced_code_attributes` is not set, the first class
9563 attribute will be printed after the opening fence as a bare word.
9564 + Separate adjacent lists of the same kind with an HTML comment (#1458).
9568 + Fixed treatment of data uris for images (#1062).
9572 + Use Compact style for empty table cells (#1353).
9573 Otherwise we get overly tall lines when there are empty
9574 table cells and the other cells are compact.
9575 + Create overrides per-image for `media/` in reference docx.
9576 This should be somewhat more robust and cover more types of images.
9577 + Improved `entryFromArchive` to avoid an unneeded parse.
9578 + Section numbering carries over from reference.docx (#1305).
9579 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
9580 we assign numbers based on the list marker styles.
9582 * `Text.Pandoc.Options`:
9584 + Removed `Ext_fenced_code_attributes` from `markdown_github`
9587 * `Text.Pandoc.ImageSize`:
9589 + Use default instead of failing if image size not found
9590 in exif header (#1358).
9591 + ignore unknown exif header tag rather than crashing.
9592 Some images seem to have tag type of 256, which was causing
9595 * `Text.Pandoc.Shared`:
9597 + `fetchItem`: unescape URI encoding before reading local file (#1427).
9598 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
9599 doing mime lookup, to improve mime type guessing.
9600 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
9601 other things are treated as relative URIs if `sourceURL` is `Just _`,
9602 otherwise as file paths on the local file system.
9603 + `fetchItem` now properly handles links without a protocol (#1477).
9604 + `fetchItem` now escapes characters not allowed in URIs before trying
9606 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
9608 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
9609 needed to resolve relative URLs when we fetch resources (#750).
9611 * `Text.Pandoc.Parsing`
9613 + Simplified `dash` and `ellipsis` (#1419).
9614 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
9615 + Generalized functions to use `ParsecT` (Matthew Pickering).
9616 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
9621 * Added haddock template.
9622 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
9623 be "advisory" in HTML5, but kindlegen seems to require them.
9624 * EPUB3: Put title page in section with `epub:type="titlepage"`.
9625 * LaTeX: Made `\subtitle` work properly (#1327).
9626 * LaTeX/Beamer: remove conditional around date (#1321).
9627 * LaTeX: Added `lot` and `lof` variables, which can be set to
9628 get `\listoftables` and `\listoffigures` (#1407). Note that
9629 these variables can be set at the command line with `-Vlot -Vlof`
9630 or in YAML metadata.
9632 [under the hood improvements]
9634 * Rewrote normalize for efficiency (#1385).
9636 * Rewrote Haddock reader to use `haddock-library` (#1346).
9638 + This brings pandoc's rendering of haddock markup in line
9639 with the new haddock.
9640 + Fixed line breaks in `@` code blocks.
9641 + alex and happy are no longer build-depends.
9643 * Added `Text.Pandoc.Compat.Directory` to allow building against
9644 different versions of the `directory` library.
9646 + Added `Text.Pandoc.Compat.Except` to allow building against
9647 different versions of `mtl`.
9649 * Code cleanup in some writers, using Reader monad to avoid
9650 passing options parameter around (Matej Kollar).
9652 * Improved readability in `pandoc.hs`.
9654 * Miscellaneous code cleanups (Artyom Kazak).
9656 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
9659 * Changed `http-conduit` flag to `https`. Depend on `http-client`
9660 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
9661 depends on `conduit` via `yaml`.)
9663 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
9664 This change to highlighting-kate means that PHP fragments no longer need
9665 to start with `<?php`. It also fixes a serious bug causing failures with
9668 * Require latest `texmath`. This fixes `\tilde{E}` and allows
9669 `\left` to be used with `]`, `)` etc. (#1319), among many other
9672 * Require latest `zip-archive`. This has fixes for unicode path names.
9674 * Added tests for plain writer.
9676 * `Text.Pandoc.Templates`:
9678 + Fail informatively on template syntax errors.
9679 With the move from parsec to attoparsec, we lost good error
9680 reporting. In fact, since we weren't testing for end of input,
9681 malformed templates would fail silently. Here we revert back to
9682 Parsec for better error messages.
9683 + Use `ordNub` (#1022).
9687 + Made benchmarks compile again (Artyom Kazak).
9688 + Fixed so that the failure of one benchmark does not prevent others
9689 from running (Artyom Kazak).
9690 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
9691 + Changed benchmark to use only the test suite, so that benchmarks
9694 * Windows build script:
9696 + Add `-windows` to file name.
9697 + Use one install command for pandoc, pandoc-citeproc.
9698 + Force install of pandoc-citeproc.
9700 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
9701 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
9702 will extract it into a folder named `SOMETHING.pkg`, which it
9703 will interpret as a defective package (#1308).
9707 + Made headers for all extensions so they have IDs and can be
9708 linked to (Beni Cherniavsky-Paskin).
9709 + Fixed typos (Phillip Alday).
9710 + Fixed documentation of attributes (#1315).
9711 + Clarified documentation on small caps (#1360).
9712 + Better documentation for `fenced_code_attributes` extension
9714 + Documented fact that you can put YAML metadata in a separate file
9720 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
9722 * Shared: `addMetaValue` now behaves slightly differently:
9723 if both the new and old values are lists, it concatenates their
9724 contents to form a new list.
9728 + Set `bibliography` in metadata from `\bibliography` or
9729 `\addbibresource` command.
9730 + Don't error on `%foo` with no trailing newline.
9734 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
9735 + Fix parsing of blank lines within blocks (Albert Krewinkel).
9736 + Support pandoc citation extension (Albert Krewinkel). This can
9737 be turned off by specifying `org-citations` as the input format.
9741 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
9742 other readers (Albert Krewinkel).
9744 * `Text.Pandoc.Parsing`:
9746 + Added `citeKey` (see above).
9747 + Added `HasLastStrPosition` type class and `updateLastStrPos`
9748 and `notAfterString` functions.
9750 * Updated copyright notices (Albert Krewinkel).
9752 * Added default.icml to data files so it installs with the package.
9756 + The binary is now built with options to ensure that it can be
9757 used with OSX 10.6+.
9758 + Moved OSX package materials to osx directory.
9759 + Added OSX package uninstall script, included in the zip container
9760 (thanks to Daniel T. Staal).
9764 * Made it possible to run filters that aren't executable (#1096).
9765 Pandoc first tries to find the executable (searching the path
9766 if path isn't given). If it fails, but the file exists and has
9767 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
9768 using the appropriate interpreter. This should make it easier to
9769 use filters on Windows, and make it more convenient for everyone.
9771 * Added Emacs org-mode reader (Albert Krewinkel).
9773 * Added InDesign ICML Writer (Mauro Bieg).
9777 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
9778 + Fixed bug in certain nested lists (#1213). If a level 2 list was
9779 followed by a level 1 list, the first item of the level 1 list
9781 + Handle table rows containing just an HTML comment (#1230).
9785 + Give better location information on errors, pointing to line
9786 numbers within included files (#1274).
9787 + LaTeX reader: Better handling of `table` environment (#1204).
9788 Positioning options no longer rendered verbatim.
9789 + Better handling of figure and table with caption (#1204).
9790 + Handle `@{}` and `p{length}` in tabular. The length is not actually
9791 recorded, but at least we get a table (#1180).
9792 + Properly handle `\nocite`. It now adds a `nocite` metadata
9793 field. Citations there will appear in the bibliography but not
9794 in the text (unless you explicitly put a `$nocite$` variable
9799 + Ensure that whole numbers in YAML metadata are rendered without
9800 decimal points. (This became necessary with changes to aeson
9801 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
9802 + Fixed regression on line breaks in strict mode (#1203).
9803 + Small efficiency improvements.
9804 + Improved parsing of nested `div`s. Formerly a closing `div` tag
9805 would be missed if it came right after other block-level tags.
9806 + Avoid backtracking when closing `</div>` not found.
9807 + Fixed bug in reference link parsing in `markdown_mmd`.
9808 + Fixed a bug in list parsing (#1154). When reading a raw list
9809 item, we now strip off up to 4 spaces.
9810 + Fixed parsing of empty reference link definitions (#1186).
9811 + Made one-column pipe tables work (#1218).
9815 + Better support for attributes. Instead of being ignored, attributes
9816 are now parsed and included in Span inlines. The output will be a bit
9817 different from stock textile: e.g. for `*(foo)hi*`, we'll get
9818 `<em><span class="foo">hi</span></em>` instead of
9819 `<em class="foo">hi</em>`. But at least the data is not lost.
9820 + Improved treatment of HTML spans (%) (#1115).
9821 + Improved link parsing. In particular we now pick up on attributes.
9822 Since pandoc links can't have attributes, we enclose the whole link in
9823 a span if there are attributes (#1008).
9824 + Implemented correct parsing rules for inline markup (#1175, Matthew
9826 + Use Builder (Matthew Pickering).
9827 + Fixed list parsing bug (#1500).
9828 + Don't allow inline formatting to extend over newlines.
9829 This matches the behavior of RedCarpet, avoids some ugly bugs,
9830 and improves performance.
9834 + Better treatment of `formalpara`. We now emit the title (if present)
9835 as a separate paragraph with boldface text (#1215).
9836 + Set metadata `author` not `authors`.
9837 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
9839 + Converted current meta information parsing in DocBook to a more
9840 extensible version which is aware of the more recent meta
9841 representation (Matthew Pickering).
9845 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
9847 + Treat processing instructions & declarations as block. Previously
9848 these were treated as inline, and included in paragraph tags in HTML
9849 or DocBook output, which is generally not what is wanted (#1233).
9850 + Updated `closes` with rules from HTML5 spec.
9851 + Use Builder (Matthew Pickering, #1162).
9855 + Remove duplicate `http` in PEP links (Albert Krewinkel).
9856 + Make rst figures true figures (#1168, CasperVector)
9857 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
9858 rST parser now supports: all built-in rST roles, new role definition,
9859 role inheritance, though with some limitations.
9860 + Use `author` rather than `authors` in metadata.
9861 + Better handling of directives. We now correctly handle field
9862 lists that are indented more than three spaces. We treat an
9863 `aafig` directive as a code block with attributes, so it can be
9864 processed in a filter (#1212).
9868 + Mark span contents with label if span has an ID (Albert Krewinkel).
9869 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
9870 + Handle line breaks in simple table cells (#1217).
9871 + Workaround for level 4-5 headers in quotes. These previously produced
9872 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
9873 This adds an `mbox{}` in these contexts to work around the problem.
9874 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
9875 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
9876 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
9877 ligature with LuaLaTeX but `\/` does.
9878 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
9880 * ConTeXt writer: Improved autolinks (#1270).
9884 + Improve handling of hard line breaks in Docbook writer
9885 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
9886 just for the newline character.
9887 + Don't let line breaks inside footnotes influence the enclosing
9888 paragraph (Neil Mayhew).
9889 + Distinguish tight and loose lists in DocBook output, using
9890 `spacing="compact"` (Neil Mayhew, #1250).
9892 * Docx writer: When needed files are not present in the user's
9893 `reference.docx`, fall back on the versions in the `reference.docx`
9894 in pandoc's data files. This fixes a bug that occurs when a
9895 `reference.docx` saved by LibreOffice is used. (#1185)
9899 + Include extension in epub ids. This fixes a problem with duplicate
9900 extensions for fonts and images with the same base name but different
9902 + Handle files linked in raw `img` tags (#1170).
9903 + Handle media in `audio` source tags (#1170).
9904 Note that we now use a `media` directory rather than `images`.
9905 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
9906 will both be incorporated into `content.opf` and the epub container.
9910 + Add colgroup around col tags (#877). Also affects EPUB writer.
9911 + Fixed bug with unnumbered section headings. Unnumbered section
9912 headings (with class `unnumbered`) were getting numbers.
9913 + Improved detection of image links. Previously image links with
9914 queries were not recognized, causing `<embed>` to be used instead
9917 * Man writer: Ensure that terms in definition lists aren't line wrapped
9922 + Use proper escapes to avoid unwanted lists (#980). Previously we used
9923 0-width spaces, an ugly hack.
9924 + Use longer backtick fences if needed (#1206). If the content contains a
9925 backtick fence and there are attributes, make sure longer fences are
9926 used to delimit the code. Note: This works well in pandoc, but github
9927 markdown is more limited, and will interpret the first string of three
9928 or more backticks as ending the code block.
9930 * RST writer: Avoid stack overflow with certain tables (#1197).
9932 * RTF writer: Fixed table cells containing paragraphs.
9936 + Correctly handle UTF-8 in custom lua scripts (#1189).
9937 + Fix bugs with lua scripts with mixed-case filenames and
9938 paths containing `+` or `-` (#1267). Note that `getWriter`
9939 in `Text.Pandoc` no longer returns a custom writer on input
9942 * AsciiDoc writer: Handle multiblock and empty table cells
9943 (#1245, #1246). Added tests.
9945 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
9947 * `Text.Pandoc.Shared`:
9949 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
9950 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
9951 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
9953 + `openURL`: set proxy with value of http_proxy env variable (#1211).
9954 Note: proxies with non-root paths are not supported, due to
9955 limitations in `http-conduit`.
9957 * `Text.Pandoc.PDF`:
9959 + Ensure that temp directories deleted on Windows (#1192). The PDF is
9960 now read as a strict bytestring, ensuring that process ownership will
9961 be terminated, so the temp directory can be deleted.
9962 + Use `/` as path separators in a few places, even on Windows.
9963 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
9964 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
9965 + Changes to error reporting, to handle non-UTF8 error output.
9967 * `Text.Pandoc.Templates`:
9969 + Removed unneeded datatype context (Merijn Verstraaten).
9971 + YAML objects resolve to "true" in conditionals (#1133).
9972 Note: If `address` is a YAML object and you just have `$address$`
9973 in your template, the word `true` will appear, which may be
9974 unexpected. (Previously nothing would appear.)
9976 * `Text.Pandoc.SelfContained`:
9978 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
9980 * It no longer looks in data files. This only made sense when we
9981 had copies of slidy and S5 code there.
9982 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
9983 + Handle `poster` attribute in `video` tags (#1188).
9985 * `Text.Pandoc.Parsing`:
9987 + Made `F` an instance of Applicative (#1138).
9988 + Added `stateCaption`.
9989 + Added `HasMacros`, simplified other typeclasses.
9990 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
9991 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
9992 + Changed the smart punctuation parser to return `Inlines`
9993 rather than `Inline` (Matthew Pickering).
9994 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
9995 from typeclasses of monads to typeclasses of states. This simplifies
9996 the instance definitions and provides more flexibility. Generalized
9997 type of `getOption` and added a default definition. Removed
9998 `askReaderOption`. Added `extractReaderOption`. Added
9999 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
10000 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
10001 `modifyHeaderMap`. Added `extractIdentifierList` and
10002 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
10003 for `getIdentifierList`, `putIdentifierList`, and
10004 `modifyIdentifierList`. The ultimate goal here is to allow different
10005 parsers to use their own, tailored parser states (instead of
10006 `ParserState`) while still using shared functions.
10008 * Template changes:
10010 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
10011 + LaTeX template: Add `linestretch` and `fontfamily` variables.
10012 + LaTeX template: Conditionalize author and date commands.
10013 + Beamer template: Consistent styles for figure and table captions
10015 + LaTeX and beamer template: Adjust widths correctly for oversized
10016 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
10017 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
10018 `upquote` only after `fontenc` (Yihui Xie).
10019 + Beamer template: Added caption package (#1200).
10020 + Beamer template: changes for better unicode handling (KarolS).
10021 + DocBook template: use `authorgroup` if there are authors.
10022 + revealjs template: Move `include-after` to end (certainlyakey).
10023 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
10025 * Bumped version bounds of dependencies.
10027 * Added a `--trace` command line option, for debugging backtracking
10028 bugs. So far this only works with the markdown reader.
10030 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
10032 * Updated travis script to test with multiple GHC versions.
10034 * Force failure of a Travis build if GHC produces warnings (Albert
10037 * Add `.editorconfig` (Albert Krewinkel).
10038 See <http://editorconfig.org/> for details.
10040 * Give more useful error message if '-t pdf' is specified (#1155).
10042 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
10044 * Allow `html4` as a synonym of `html` as a reader (it already works
10049 + Added an explanation of how to use YAML metadata to
10050 force items to appear in the bibliography without citations in
10051 the text (like LaTeX `\nocite`).
10052 + Added note to `--bibtex/--natbib`: not for use in making PDF
10053 (#1194, thanks to nahoj).
10054 + Added explanatory notes about `--natbib` and `--biblatex`.
10055 + Added specification of legal syntax for citation keys.
10056 + Fixed variable defaults documentation (Albert Krewinkel).
10058 * Removed copyright statements for files that have been removed
10059 (Albert Krewinkel).
10061 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
10062 They aren't needed at runtime. We keep README and COPYRIGHT in data
10063 to ensure that they'll be available on all systems on which pandoc
10066 * Use cabal sandboxes in Windows build script.
10070 * To changes to source; recompiled tarball with latest alex and
10071 happy, so they will work with GHC 7.8.
10075 * Bumped version bounds for blaze-html, blaze-markup.
10077 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
10080 * Fixed mediawiki ordered list parsing (#1122).
10082 * HTML reader: Fixed bug reading inline math with `$$` (#225).
10084 * Added support for LaTeX style literate Haskell code blocks in rST
10085 (Merijn Verstraaten).
10089 * Relaxed version constraint on binary, allowing the use of binary 0.5.
10093 * The `--bibliography` option now sets the `biblio-files` variable.
10094 So, if you're using `--natbib` or `--biblatex`, you can just use
10095 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
10097 * Don't run pandoc-citeproc filter if `--bibliography` is
10098 used together with `--natbib` or `--biblatex` (Florian Eitel).
10100 * Template changes:
10102 + Updated beamer template to include booktabs.
10103 + Added `abstract` variable to LaTeX template.
10104 + Put `header-includes` after `title` in LaTeX template (#908).
10105 + Allow use of `\includegraphics[size]` in beamer.
10106 This just required porting a macro definition from the default
10107 LaTeX template to the default beamer template.
10109 * `reference.docx`: Include `FootnoteText` style.
10110 Otherwise Word ignores the style, even when specified in the `pPr`.
10113 * `reference.odt`: Tidied `styles.xml`.
10115 * Relaxed version bounds for dependencies.
10117 * Added `withSocketsDo` around http conduit code in `openURL`,
10118 so it works on Windows (#1080).
10120 * Added `Cite` function to `sample.lua`.
10124 + Fixed regression in title blocks (#1089).
10125 If author field was empty, date was being ignored.
10126 + Allow backslash-newline hard line breaks in grid and
10127 multiline table cells.
10128 + Citation keys may now start with underscores, and may contain
10129 underscores adjacent to internal punctuation.
10133 + Add support for `Verb` macro (jrnold) (#1090).
10134 + Support babel-style quoting: `` "`..."' ``.
10136 * Properly handle script blocks in strict mode. (That is,
10137 `markdown-markdown_in_html_blocks`.) Previously a spurious
10138 `<p>` tag was being added (#1093).
10140 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
10145 + Factored out function for table cell creation.
10146 + Better treatment of footnotes in tables.
10147 Notes now appear in the regular sequence, rather than in the
10148 table cell. (This was a regression in 1.10.)
10150 * HTML reader: Parse name/content pairs from meta tags as metadata.
10153 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
10155 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
10157 * ODT writer: Use mathml for proper rendering of formulas.
10158 Note: LibreOffice's support for this seems a bit buggy. But
10159 it should be better than what we had before.
10161 * RST writer: Ensure no blank line after def in definition list (#992).
10163 * Markdown writer: Don't use tilde code blocks with braced attributes in
10164 `markdown_github` output. A consequence of this change is that the
10165 backtick form will be preferred in general if both are enabled. That
10166 is good, as it is much more widespread than the tilde form. (#1084)
10168 * Docx writer: Fixed problem with some modified reference docx files.
10169 Include `word/_rels/settings.xml.rels` if it exists, as well as other
10170 `rels` files besides the ones pandoc generates explicitly.
10174 + With `--toc`, headers no longer link to themselves (#1081).
10175 + Omit footnotes from TOC entries. Otherwise we get doubled
10176 footnotes when headers have notes!
10180 + Avoid duplicate notes when headings contain notes.
10181 This arose because the headings are copied into the metadata
10182 "title" field, and the note gets rendered twice. We strip the
10183 note now before putting the heading in "title".
10184 + Strip out footnotes from toc entries.
10185 + Fixed bug with `--epub-stylesheet`. Now the contents of
10186 `writerEpubStylesheet` (set by `--epub-stylesheet`)
10187 should again work, and take precedence over a stylesheet specified
10190 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
10192 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
10195 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
10196 we could only get size information for JFIF format, which led
10197 to squished images in Word documents. Closes #976.
10199 * Removed old `MarkdownTest_1.0.3` directory (#1104).
10203 * Markdown reader: Fixed regression in list parser, involving
10204 continuation lines containing raw HTML (or even verbatim raw HTML).
10208 * Metadata may now be included in YAML blocks in a markdown document.
10216 text: An investigation of metadata
10224 text: doi:10.234234.234/33
10225 publisher: My Press
10226 rights: (c) 2007 John Smith, CC BY-NC
10227 cover-image: img/mypic.jpg
10230 Metadata may still be provided using `--epub-metadata`; it will
10231 be merged with the metadata in YAML blocks.
10235 + `meta` tags are now used instead of `opf` attributes for EPUB3.
10236 + Insert "svg" property as needed in opf (EPUB 3).
10237 + Simplify `imageTypeOf` using `getMimeType`.
10238 + Add properties attribute to `cover-image` item for EPUB 3.
10239 + Don't include node for `cover.xhtml` if no cover!
10240 + Ensure that same identifier is used throughout (#1044).
10241 If an identifier is given in metadata, we use that; otherwise
10242 we generate a random uuid.
10243 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
10244 Fixes an issue with Calibre putting the cover at the end of the book
10245 if the spine has `linear="no"`. Apparently this is best practice
10246 for other converters as well:
10247 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
10248 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
10249 + Allow partial dates: `YYYY`, `YYYY-MM`.
10251 * Markdown writer: Fix rendering of tight sublists (#1050).
10252 Previously a spurious blank line was included after a tight sublist.
10254 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
10255 This is reported to be necessary to avoid an error from recent
10256 versions of Libre Office when files contain more than one image
10257 Thanks to wmanley for reporting and diagnosing the problem.
10259 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
10260 Instead, let this be set in the template, using `\setupfloat`.
10261 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
10263 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
10265 * Fixed bug with markdown intraword emphasis. Closes #1066.
10267 * Docbook writer: Hierarchicalize block content in metadata.
10268 Previously headers just disappeared from block-level metadata
10269 when it was used in templates. Now we apply the 'hierarchicalize'
10270 transformation. Note that a block headed by a level-2 header will
10271 turn into a `<sect1>` element.
10273 * OpenDocument writer: Skip raw HTML (#1035).
10274 Previously it was erroneously included as verbatim text.
10276 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
10277 This allows better control of formatting, since the `<a>`
10278 tags have a distinguishing class (#1049).
10282 + Use mime type info returned by fetchItem.
10283 + Fixed core metadata (#1046).
10284 Don't create empty date nodes if no date given.
10285 Don't create multiple `dc:creator` nodes; instead separate by
10287 + Fix URL for core-properties in `_rels/.rels` (#1046).
10289 * Plain writer: don't print `<span>` tags.
10293 + Fix definition lists with internal links in terms (#1032).
10294 This fix puts braces around a term that contains an internal
10295 link, to avoid problems with square brackets.
10296 + Properly escape pdftitle, pdfauthor (#1059).
10297 + Use booktabs package for tables (thanks to Jose Luis Duran).
10299 * Updated beamer template. Now references should work properly
10300 (in a slide) when `--biblatex` or `--natbib` is used.
10304 + Parse contents of curly quotes or matched `"` as quotes.
10305 + Support `\textnormal` as span with class `nodecor`.
10306 This is needed for pandoc-citeproc.
10307 + Improved citation parsing. This fixes a run-time error that occurred
10308 with `\citet{}` (empty list of keys). It also ensures that empty keys
10309 don't get produced.
10311 * MediaWiki reader: Add automatic header identifiers.
10315 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
10317 + Recognize `svg` tags as block level content (thanks to MinRK).
10318 + Parse LaTeX math if appropriate options are set.
10322 + Yaml block must start immediately after `---`. If there's a blank
10323 line after `---`, we interpreted it as a horizontal rule.
10324 + Correctly handle empty bullet list items.
10325 + Stop parsing "list lines" when we hit a block tag.
10326 This fixes exponential slowdown in certain input, e.g.
10327 a series of lists followed by `</div>`.
10329 * Slides: Preserve `<div class="references">` in references slide.
10331 * `Text.Pandoc.Writer.Shared`:
10333 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
10334 attributes, leading to invalid HTML.
10335 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
10336 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
10337 encoded bytestring was returned. We now decode it so it's a proper
10340 * DocBook reader: Handle numerical attributes starting with decimal.
10341 Also use `safeRead` instead of `read`.
10343 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
10344 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
10345 in all the writers. Require `texmath >= 0.6.5.2`.
10347 * `Text.Pandoc.MIME`:
10349 + Add entry for `jfif`.
10350 + In looking up extensions, drop the encoding info.
10351 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
10353 * Templates: Changed how array variables are resolved. Previously if
10354 `foo` is an array (which might be because multiple values were set on
10355 the command line), `$foo$` would resolve to the concatenation of the
10356 elements of foo. This is rarely useful behavior. It has been changed
10357 so that the first value is rendered. Of course, you can still iterate
10358 over the values using `$for(foo)$`. This has the result that you can
10359 override earlier settings using `-V` by putting new values later on the
10360 command line, which is useful for many purposes.
10362 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
10364 * Allow "epub2" as synonym for "epub", "html4" for "html".
10366 * Don't look for slidy files in data files with `--self-contained`.
10368 * Allow `https:` command line arguments to be downloaded.
10370 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
10374 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
10375 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
10376 "c": "foo"}`. This new format is easier to work with outside of Haskell.
10377 Incidentally, "t" stands for "tag", "c" for "contents".
10379 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
10380 when converting to markdown (#1027).
10384 + Ensure that preamble doesn't contribute to the text of
10386 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
10387 properly, among others.
10388 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
10389 bibtex titles, since we need to know what was protected from
10390 titlecase conversions.
10394 + Specially escape non-ascii characters in labels.
10395 Otherwise we can get compile errors and other bugs when
10396 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
10397 + Add link anchors for code blocks with identifiers (#1025).
10399 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
10400 It allows fragments identifiers.
10404 + A Div element with class "notes" is treated as speaker
10405 notes. Currently beamer goes to `\note{}`, revealjs to
10406 `<aside class="notes">`, and the notes are simply suppressed in
10407 other formats (#925).
10408 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
10409 The old version caused a pause to be inserted before the first
10410 material on a slide. This has been fixed.
10411 + Removed data files for s5, slideous, slidy.
10412 Users of s5 and slideous will have to download the needed
10413 files, as has been documented for some time in the README.
10414 By default, slidy code will be sought on the web, as before.
10416 * HTML writer: Insert command to typeset mathjax only in slideous output
10419 * RST writer: Skip spaces after display math. Otherwise we get indentation
10420 problems, and part of the next paragraph may be rendered as part of the
10423 * OpenDocument writer: Fix formatting of strikeout code (#995),
10424 thanks to wilx. don't use `font-face-decls` variable.
10426 * Fixed test suite so it works with cabal sandboxes.
10430 * Removed `stringable` dependency.
10434 * Allow `--metadata` to be repeated for the same key to form a list.
10435 This also has the effect that `--bibliography` can be repeated,
10438 * Handle boolean values in `--metadata`. Note that anything not parseable
10439 as a YAML boolean or string is treated as a literal string.
10440 You can get a string value with "yes", or any of the strings interpretable
10441 as booleans, by quoting it:
10443 -M boolvalue=yes -M stringvalue='"yes"'
10445 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
10448 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
10449 in which docx files could not be read by some versions of Word
10450 and LibreOffice (#990).
10452 * Fixed a regression involving slide shows with bibliographies.
10453 The Div container around references messed up the procedure for carving
10454 a document into slides. So we now remove the surrounding Div in
10457 * More informative error message when a filter is not found in path.
10459 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
10460 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
10462 * Don't use unicode_collation in building OSX package:
10463 it adds something like 50MB of dependencies to the package.
10465 * Declare alex and happy as build-tools (#986).
10471 * Much more flexible metadata, including arbitrary fields and structured
10472 values. Metadata can be specified flexibly in pandoc markdown using
10473 YAML metadata blocks, which may occur anywhere in the document:
10476 title: Here is my title.
10478 This is the abstract.
10482 and *inline markup*
10484 tags: [cat, dog, animal]
10487 Metadata fields automatically populate template variables.
10489 * Added `opml` (OPML) as input and output format. The `_note` attribute,
10490 used in OmniOutliner and supported by multimarkdown, is supported.
10491 We treat the contents as markdown blocks under a section header.
10493 * Added `haddock` (Haddock markup) as input format (David Lazar).
10495 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
10496 (Thanks to Jamie F. Olson for the initial patch.)
10497 Nested vertical stacks are used for hierarchical structure.
10498 Results for more than one level of nesting may be odd.
10500 * Custom writers can now be written in lua.
10502 pandoc -t data/sample.lua
10504 will load the script sample.lua and use it as a custom writer.
10505 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
10506 Note that pandoc embeds a lua interpreter, so lua need not be
10507 installed separately.
10509 * New `--filter/-F` option to make it easier to run "filters"
10510 (Pandoc AST transformations that operate on JSON serializations).
10511 Filters are always passed the name of the output format, so their
10512 behavior can be tailored to it. The repository
10513 <https://github.com/jgm/pandocfilters> contains
10514 a python module for writing pandoc filters in python, with
10515 a number of examples.
10517 * Added `--metadata/-M` option.
10518 This is like `--variable/-V`, but actually adds to metadata, not
10521 * Added `--print-default-data-file` option, which allows printing
10522 of any of pandoc's data files. (For example,
10523 `pandoc --print-default-data-file reference.odt` will print
10526 * Added syntax for "pauses" in slide shows:
10534 * New markdown extensions:
10536 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
10537 rather than being treated as hard line breaks or spaces. This is useful
10538 for some East Asian languages, where spaces aren't used between words,
10539 but text is separated into lines for readability.
10540 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
10541 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
10542 only. (Default for `markdown_github`.) (#807)
10543 + `lists_without_preceding_blankline`: Allow lists to start without
10544 preceding blank space. (Default for `markdown_github`.) (#972)
10548 * `--toc-level` no longer implies `--toc`.
10549 Reason: EPUB users who don't want a visible TOC may still want
10550 to set the TOC level for in the book navigation.
10552 * `--help` now prints in and out formats in alphabetical order, and
10553 says something about PDF output (#720).
10555 * `--self-contained` now returns less verbose output (telling you
10556 which URLs it is fetching, but not giving the full header). In
10557 addition, there are better error messages when fetching a URL fails.
10559 * Citation support is no longer baked in to core pandoc. Users who
10560 need citations will need to install and use a separate filter
10561 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
10562 `csl`, and `citation-abbreviations` from the metadata, though it
10563 may still be specified on the command line as before.
10565 * A `Cite` element is now created in parsing markdown whether or not
10566 there is a matching reference.
10568 * The `pandoc-citeproc` script will put the bibliography at the
10569 end of the document, as before. However, it will be put inside a `Div`
10570 element with class "references", allowing users some control
10571 over the styling of references. A final header, if any, will
10572 be included in the `Div`.
10574 * The markdown writer will not print a bibliography if the
10575 `citations` extension is enabled. (If the citations are formatted
10576 as markdown citations, it is redundant to have a bibliography,
10577 since one will be generated automatically.)
10579 * Previously we used to store the directory of the first input file,
10580 even if it was local, and used this as a base directory for finding
10581 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
10582 users. So we now look for images relative to the current
10583 working directory, even if the first file argument is in another
10584 directory. Note that this change may break some existing workflows.
10585 If you have been assuming that relative links will be interpreted
10586 relative to the directory of the first file argument, you'll need
10587 to make that the current directory before running pandoc. (#942)
10589 * Better error reporting in some readers, due to changes in `readWith`:
10590 the line in which the error occurred is printed, with a caret pointing
10593 * All slide formats now support incremental slide view for definition lists.
10595 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
10596 Parse `:<math>...</math>` as display math. These notations are used with
10597 the MathJax MediaWiki extension.
10599 * All writers: template variables are set automatically from metadata
10600 fields. However, variables specified on the command line with
10601 `--variable` will completely shadow metadata fields.
10603 * If `--variable` is used to set many variables with the same name,
10606 * Man writer: The `title`, `section`, `header`, and `footer` can now
10607 all be set individually in metadata. The `description` variable has been
10608 removed. Quotes have been added so that spaces are allowed in the
10609 title. If you have a title that begins
10611 COMMAND(1) footer here | header here
10613 pandoc will still parse it into a title, section, header, and
10614 footer. But you can also specify these elements explicitly (#885).
10618 + Added support for YAML metadata blocks, which can come anywhere
10619 in the document (not just at the beginning). A document can contain
10620 multiple YAML metadata blocks.
10621 + HTML span and div tags are parsed as pandoc Span and Div elements.
10625 + Allow simple tables to be printed as grid tables,
10626 if other table options are disabled. This means you can do
10627 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
10628 and all tables will render as grid tables.
10629 + Support YAML title block (render fields in alphabetical order
10630 to make output predictable).
10634 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
10635 structured metadata. (Note: existing code that pattern-matches
10636 on `Meta` will have to be revised.) Metadata can now contain
10637 indefinitely many fields, with content that can be a string,
10638 a Boolean, a list of `Inline` elements, a list of `Block`
10639 elements, or a map or list of these.
10641 * A new generic block container (`Div`) has been added to `Block`,
10642 and a generic inline container (`Span`) has been added to `Inline`.
10643 These can take attributes. They will render in HTML, Textile,
10644 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
10645 extension) as HTML `<div>` and `<span>` elements; in other formats
10646 they will simply pass through their contents. But they can be
10647 targeted by scripts.
10649 * `Format` is now a newtype, not an alias for String.
10650 Equality comparisons are case-insensitive.
10652 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
10653 functions that are much faster than the SYB functions from
10654 `Text.Pandoc.Generic`. These functions are now used where possible
10655 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
10656 match the generic traversals `bottomUp` and `queryWith`.)
10658 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
10659 instances for the basic pandoc types. They use GHC generics and
10660 should be faster than the old JSON serialization using
10661 `Data.Aeson.Generic`.
10663 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
10664 This is a souped-up version of `readProcessWithErrorcode` that
10665 uses lazy bytestrings instead of strings and allows setting
10666 environment variables. (Used in `Text.Pandoc.PDF`.)
10668 * New module `Text.Pandoc.Readers.OPML`.
10670 * New module `Text.Pandoc.Writers.OPML`.
10672 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
10673 This is based on Haddock's own lexer/parser.
10675 * New module `Text.Pandoc.Writers.Custom`.
10677 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
10678 Either, for better error handling.
10680 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
10682 * Removed `stripTags` from `Text.Pandoc.XML`.
10684 * `Text.Pandoc.Templates`:
10686 + Simplified `Template` type to a newtype.
10688 + Changed type of `renderTemplate`: it now takes a JSON context
10689 and a compiled template.
10690 + Export `compileTemplate`.
10691 + Export `renderTemplate'` that takes a string instead of a compiled
10693 + Export `varListToJSON`.
10695 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
10696 The signature of `makePDF` has changed and now contains
10697 an additional argument for pdf engine options.
10701 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
10702 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
10703 `Text.Pandoc.JSON` should be used instead. (Compiling against
10704 pandoc-types instead of pandoc will also produce smaller executables.)
10705 * Removed the deprecated `jsonFilter` function.
10706 + Added `readJSON`, `writeJSON` to the API (#817).
10708 * `Text.Pandoc.Options`:
10710 + Added `Ext_lists_without_preceding_blankline`,
10711 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
10712 `Ext_yaml_metadataBlock` to `Extension`.
10713 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
10714 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
10715 first command-line argument is an absolute URL. (So, relative links
10716 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
10717 + All bibliography-related fields have been removed from
10718 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
10719 `readerReferences`, `readerCitationStyle`.
10720 + Removed `writerPdfArgs` from `WriterOptions`. These are now
10721 passed in as a parameter to `makePDF`.
10723 * The `Text.Pandoc.Biblio` module has been removed. Users of the
10724 pandoc library who want citation support will need to use
10725 `Text.CSL.Pandoc` from `pandoc-citeproc`.
10730 * In markdown, don't autolink a bare URI that is followed by `</a>`
10733 * `Text.Pandoc.Shared`
10735 + `openURL` now follows redirects (#701), properly handles `data:`
10736 URIs, and prints diagnostic output to stderr rather than stdout.
10737 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
10738 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
10739 + Fixed `readDefaultDataFile` so it works on Windows.
10740 + Better error messages for `readDefaultDataFile`. Instead of
10741 listing the last path tried, which can confuse people who are
10742 using `--self-contained`, so now we just list the data file name.
10743 + URL-escape pipe characters. Even though these are legal, `Network.URI`
10744 doesn't regard them as legal in URLs. So we escape them first (#535).
10746 * Mathjax in HTML slide shows: include explicit "Typeset" call.
10747 This seems to be needed for some formats (e.g. slideous) and won't
10748 hurt in others (#966).
10750 * `Text.Pandoc.PDF`
10752 + On Windows, create temdir in working directory, since the system
10753 temp directory path may contain tildes, which can cause
10754 problems in LaTeX (#777).
10755 + Put temporary output directory in `TEXINPUTS` (see #917).
10756 + `makePDF` tries to download images that are not found locally,
10757 if the first argument is a URL (#917).
10758 + If compiling with `pdflatex` yields an encoding error, offer
10759 the suggestion to use `--latex-engine=xelatex`.
10761 * Produce automatic header identifiers in parsing textile, RST,
10762 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
10764 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
10765 before treating as a filename. This fixes `--self-contained` when used
10766 with CSS files that include web fonts using the method described here:
10767 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
10768 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
10770 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
10771 percent-encoding, or a `+` character, as final punctuation.
10773 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
10774 EPS images properly sized on conversion to Word.
10776 * Slidy: Use slidy.js rather than slidy.js.gz.
10777 Reason: some browsers have trouble with the gzipped js file,
10778 at least on the local file system (#795).
10782 + Properly handle blank line at beginning of input (#882).
10783 + Fixed bug in unmatched reference links. The input
10784 `[*infile*] [*outfile*]` was getting improperly parsed:
10785 "infile" was emphasized, but "*outfile*" was literal (#883).
10786 + Allow internal `+` in citation identifiers (#856).
10787 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
10788 + Do not generate blank title, author, or date metadata elements.
10789 Leave these out entirely if they aren't present.
10790 + Allow backtick code blocks not to be preceded by blank line (#975).
10794 + Correctly handle entities.
10795 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
10796 in code blocks, rather than printing them verbatim. Parse attributes
10797 on `<pre>` tag for code blocks.
10799 * HTML reader: Handle non-simple tables (#893). Column widths are read from
10800 `col` tags if present, otherwise divided equally.
10804 + Support alltt environment (#892).
10805 + Support `\textasciitilde`, `\textasciicircum` (#810).
10806 + Treat `\textsl` as emphasized text reader (#850).
10807 + Skip positional options after `\begin{figure}`.
10808 + Support `\v{}` for hacek (#926).
10809 + Don't add spurious ", " to citation suffixes.
10810 This is added when needed in pandoc-citeproc.
10811 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
10812 + Improved support for accented characters (thanks to Scott Morrison).
10813 + Parse label after section command and set id (#951).
10817 + Don't insert paragraphs where docutils doesn't.
10818 `rst2html` doesn't add `<p>` tags to list items (even when they are
10819 separated by blank lines) unless there are multiple paragraphs in the
10820 list. This commit changes the RST reader to conform more closely to
10821 what docutils does (#880).
10822 + Improved metadata. Treat initial field list as metadata when
10823 standalone specified. Previously ALL fields "title", "author",
10824 "date" in field lists were treated as metadata, even if not at
10825 the beginning. Use `subtitle` metadata field for subtitle.
10826 + Fixed 'authors' metadata parsing in reST. Semicolons separate
10831 + Allow space before table rows.
10832 + Fixed regression for `<ref>URL</ref>`.
10833 `<` is no longer allowed in URLs, according to the uri parser
10834 in `Text.Pandoc.Parsing`. Added a test case.
10835 + Correctly handle indented preformatted text without preceding
10836 or following blank line.
10837 + Fixed `|` links inside table cells. Improved attribute parsing.
10838 + Skip attributes on table rows. Previously we just crashed if
10839 rows had attributes, now we ignore them.
10840 + Ignore attributes on headers.
10841 + Allow `Image:` for images (#971).
10842 + Parse an image with caption in a paragraph by itself as a figure.
10846 + Don't use ligatures in escaping inline code.
10847 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
10848 wherein notes were numbered incorrectly in tables (#827).
10849 + Always create labels for sections. Previously the labels were only
10850 created when there were links to the section in the document (#871).
10851 + Stop escaping `|` in LaTeX math.
10852 This caused problems with array environments (#891).
10853 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
10854 `\` will cause major problems if unescaped.
10855 + Write id for code block to label attribute in LaTeX when listings
10856 is used (thanks to Florian Eitel).
10857 + Scale LaTeX tables so they don't exceed columnwidth.
10858 + Avoid problem with footnotes in unnumbered headers (#940).
10860 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
10861 to the slide if it is one of the header classes. It is recommended
10862 that your bibliography slide have this attribute:
10864 # References {.allowframebreaks}
10866 This causes multiple slides to be created if necessary, depending
10867 on the length of the bibliography.
10869 * ConTeXt writer: Properly handle tables without captions. The old output
10870 only worked in MkII. This should work in MkIV as well (#837).
10872 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
10876 + Fixed `--no-highlight` (Alexander Kondratskiy).
10877 + Don't convert to lowercase in email obfuscation (#839).
10878 + Ensure proper escaping in `<title>` and `<meta>` fields.
10882 + Support `--atx-headers` (Max Rydahl Andersen).
10883 + Don't print empty identifier blocks `([[]])` on headers (Max
10888 + Fixing wrong numbered-list indentation in open document format
10889 (Alexander Kondratskiy) (#369).
10890 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
10891 + Minor changes for ODF 1.2 conformance (#939). We leave the
10892 nonconforming `contextual-spacing` attribute, which is provided by
10893 LibreOffice itself and seems well supported.
10897 + Fixed rendering of display math in lists.
10898 In 1.11 and 1.11.1, display math in lists rendered as a new list
10899 item. Now it always appears centered, just as outside of lists,
10900 and in proper display math style, no matter how far indented the
10901 containing list item is (#784).
10902 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
10903 Previously we used `w:cr` (#873).
10904 + Use Compact style for Plain block elements, to
10905 differentiate between tight and loose lists (#775).
10906 + Ignore most components of `reference.docx`.
10907 We take the `word/styles.xml`, `docProps/app.xml`,
10908 `word/theme/theme1.xml`, and `word/fontTable.xml` from
10909 `reference.docx`, ignoring everything else. This should help
10910 with the corruption problems caused when different versions of
10911 Word resave the reference.docx and reorganize things.
10912 + Made `--no-highlight` work properly.
10916 + Don't add `dc:creator` tags if present in EPUB metadata.
10917 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
10918 + Don't put blank title page in reading sequence.
10919 Set `linear="no"` if no title block. Addresses #797.
10920 + Download webtex images and include as data URLs.
10921 This allows you to use `--webtex` in creating EPUBs.
10922 Math with `--webtex` is automatically made self-contained.
10923 + In `data/epub.css`, removed highlighting styles (which
10924 are no longer needed, since styles are added by the HTML
10925 writer according to `--highlighting-style`). Simplified
10927 + If resource not found, skip it, as in Docx writer (#916).
10931 + Properly handle characters above the 0000-FFFF range.
10932 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
10933 + Fixed regression with RTF table of contents.
10934 + Only autolink absolute URIs. This fixes a regression, #830.
10938 + Only autolink absolute URIs. This fixes a regression, #830.
10939 + Don't wrap attributes in fenced code blocks.
10940 + Write full metadata in MMD style title blocks.
10941 + Put multiple authors on separate lines in pandoc titleblock.
10942 Also, don't wrap long author entries, as new lines get treated
10945 * `Text.Pandoc.Templates`:
10947 + Fixed bug retrieving default template for markdown variants.
10948 + Templates can now contain "record lookups" in variables;
10949 for example, `author.institution` will retrieve the `institution`
10950 field of the `author` variable.
10951 + More consistent behavior of `$for$`. When `foo` is not a list,
10952 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
10953 So if `foo` resolves to "", no output should be produced.
10954 See pandoc-templates#39.
10956 * Citation processing improvements (now part of pandoc-citeproc):
10958 + Fixed `endWithPunct` The new version correctly sees a sentence
10959 ending in '.)' as ending with punctuation. This fixes a bug which
10960 led such sentences to receive an extra period at the end: '.).'.
10961 Thanks to Steve Petersen for reporting.
10962 + Don't interfere with Notes that aren't citation notes.
10963 This fixes a bug in which notes not generated from citations were
10964 being altered (e.g. first letter capitalized) (#898).
10965 + Only capitalize footnote citations when they have a prefix.
10966 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
10967 inserted before it before passing to citeproc-hs, so that bare numbers
10968 are treated as page numbers by default. A suffix not beginning with
10969 punctuation has a space added at the beginning (rather than a comma and
10970 space, as was done before for not-author-in-text citations).
10971 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
10972 properly, with '23' treated as a locator of type 'page'.
10973 + Many improvements to citation rendering, due to fixes in citeproc-hs
10974 (thanks to Andrea Rossato).
10975 + Warnings are issued for undefined citations, which are rendered
10977 + Fixed hanging behavior when locale files cannot be found.
10981 * DocBook: Use DocBook 4.5 doctype.
10983 * Org: '#+TITLE:' is inserted before the title.
10984 Previously the writer did this.
10986 * LaTeX: Changes to make mathfont work with xelatex.
10987 We need the mathspec library, not just fontspec, for this.
10988 We also need to set options for setmathfont (#734).
10990 * LaTeX: Use `tex-ansi` mapping for `monofont`.
10991 This ensures that straight quotes appear as straight, rather than
10992 being treated as curly. See #889.
10994 * Made `\includegraphics` more flexible in LaTeX template.
10995 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
10997 * LaTeX/Beamer: Added `classoption` variable.
10998 This is intended for class options like `oneside`; it may
10999 be repeated with different options. (Thanks to Oliver Matthews.)
11001 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
11003 * LaTeX: Added `biblio-style` variable (#920).
11005 * DZSlides: title attribute on title section.
11007 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
11009 [under-the-hood improvements]
11011 * Markdown reader:Improved strong/emph parsing, using the strategy of
11012 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
11013 no backtracking, and no keeping track of nesting levels. It will give
11014 different results in some edge cases, but these should not affect normal
11017 * Added `Text.Pandoc.Compat.Monoid`.
11018 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
11019 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
11021 * Added `Text.Pandoc.Compat.TagSoupEntity`.
11022 This allows pandoc to compile with `tagsoup` 0.13.x.
11023 Thanks to Dirk Ullrich for the patch.
11025 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
11026 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
11027 handle simple math in bibliography fields.)
11029 * Added `Text.Pandoc.Writers.Shared` for shared functions used
11030 only in writers. `metaToJSON` is used in writers to create a
11031 JSON object for use in the templates from the pandoc metadata
11032 and variables. `getField`, `setField`, and `defField` are
11033 for working with JSON template contexts.
11035 * Added `Text.Pandoc.Asciify` utility module.
11036 This exports functions to create ASCII-only versions of identifiers.
11038 * `Text.Pandoc.Parsing`
11040 + Generalized state type on `readWith` (API change).
11041 + Specialize readWith to `String` input. (API change).
11042 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
11043 with `stateMeta` and `stateMeta'`.
11045 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
11046 bytestrings seemed to cause problems using pandoc on 64-bit Windows
11049 * Factored out `registerHeader` from markdown reader, added to
11050 `Text.Pandoc.Parsing`.
11052 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
11053 Reason: < 0.5 does not provide a monoid instance for Attribute,
11054 which is now needed by the HTML writer (#803).
11056 * Added `http-conduit` flag, which allows fetching https resources.
11057 It also brings in a large number of dependencies (`http-conduit`
11058 and its dependencies), which is why for now it is an optional flag
11061 * Added CONTRIBUTING.md.
11063 * Improved INSTALL instructions.
11065 * `make-windows-installer.bat`: Removed explicit paths for executables.
11067 * `aeson` is now used instead of `json` for JSON.
11069 * Set default stack size to 16M. This is needed for some large
11070 conversions, esp. if pandoc is compiled with 64-bit ghc.
11072 * Various small documentation improvements.
11073 Thanks to achalddave and drothlis for patches.
11075 * Removed comment that chokes recent versions of CPP (#933).
11077 * Removed support for GHC version < 7.2, since pandoc-types now
11078 requires at least GHC 7.2 for GHC generics.
11085 + Fixed regression in which parentheses were lost in link URLs.
11086 Added tests. Closes #786.
11087 + Better handling of unmatched double quotes in `--smart` mode.
11088 These occur frequently in fiction, since it is customary not to
11089 close quotes in dialogue if the speaker does not change between
11090 paragraphs. The unmatched quotes now get turned into literal
11091 left double quotes. (No `Quoted` inline is generated, however.)
11092 Closes #99 (again).
11094 * HTML writer: Fixed numbering mismatch between TOC and sections.
11095 `--number-offset` now affects TOC numbering as well
11096 as section numbering, as it should have all along. Closes #789.
11098 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
11099 as markdown citations, even if `--bibliography` was specified, unless
11100 `citation` extension is disabled. Now, formatted citations are always
11101 printed if `--bibliography` was specified. If you want to reformat
11102 markdown keeping pandoc markdown citations intact, don't use
11103 `--bibliography`. Note that citations parsed from LaTeX documents will
11104 be rendered as pandoc markdown citations when `--bibliography` is not
11107 * ODT writer: Fixed regression leading to corrupt ODTs.
11108 This was due to a change in the `Show` instance for
11109 `Text.Pandoc.Pretty.Doc`. Closes #780.
11111 * Fixed spacing bugs involving code block attributes in
11112 RST reader and Markdown writer. Closes #763.
11114 * Windows package: Various improvements due to Fyodor Sheremetyev.
11116 + Automatically set installation path (Program Files or Local App Data).
11117 + Set system PATH environment variable when installing for all users.
11118 + Pandoc can installed for all users using the following command.
11119 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
11121 * Bumped QuickCheck version bound.
11125 * Added `--number-offset` option. (See README for description.)
11127 * Added `--default-image-extension` option. (See README for description.)
11129 * `--number-sections` behavior change: headers with class `unnumbered`
11130 will not be numbered.
11132 * `--version` now reports the default data directory.
11134 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
11136 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
11138 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
11139 a field for `Attr` rather than just `String`. (API change.)
11141 * Added `markdown_github` as input format. This was an accidental
11144 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
11147 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
11151 + Fixed captions with longtable. Thanks to Joost Kremers.
11152 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
11156 + Load microtype after fonts. Microtype needs to know
11157 what fonts are being used. Thanks to dfc for the patch.
11158 + Set `secnumdepth` to 5 if `--number-sections` specified.
11159 This yields behavior equivalent to the other writers, numbering
11160 level 4 and 5 headers too. Closes #753.
11164 + Handle `<colgroup>` tag.
11165 + Preserve all header attributes.
11169 + Parse `\hrule` as `HorizontalRule`. Closes #746.
11170 + Parse starred variants of `\section` etc. as headers with
11171 attribute `unnumbered`.
11172 + Read optional attributes in `lstlisting` and `Verbatim` environments.
11173 We convert these to pandoc standard names, e.g. `numberLines`
11174 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
11175 + Handle language attribute for lstlistings.
11176 + Better support for Verbatim and minted environments. Closes #763.
11180 + `-` in an attribute context = `.unnumbered`. The point of this
11181 is to provide a way to specify unnumbered headers in non-English
11183 + Fixed bug parsing key/value attributes. Parsing failed if you
11184 had an unquoted attribute immediately before the final '}'.
11185 + Make backslash escape work in attributes.
11186 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
11187 pandoc will parse a MMD title block if it sees one, even if
11188 `pandoc_title_blocks` is enabled.
11189 + Refactoring: `litChar` now includes entities, so we don't need
11190 to use `fromEntities` e.g. on titles.
11191 + Allow spaces around borders in pipe tables. Closes #772.
11192 + Allow all punctuation in angle-bracket autolinks. Previously
11193 things like `----` were disallowed, because the uri parser
11194 treated them as trailing punctuation. Closes #768.
11195 + Make `implicit_header_references` work properly when
11196 headers are given explicit identifiers.
11197 + Check for tables before line blocks. Otherwise some pipe
11198 tables get treated as line blocks.
11199 + Allow `&` in emails (for entities).
11200 + Properly handle entities in titles and links. A markdown link
11201 `<http://göogle.com>` should be a link to `http://göogle.com`.
11206 + Handle attributes on headers.
11210 + Add `fig:` as title for images with captions.
11211 This is needed for them to be rendered as figures. Closes #766.
11212 + Never emit an empty paragraph. See #761.
11213 + Handle `\caption` for images in figures. Closes #766.
11214 + Parse `\section*`, etc. as unnumbered sections.
11218 + Support header attributes. The attributes go on
11219 the enclosing `section` or `div` tag if `--section-divs` is specified.
11220 + Fixed a regression (only now noticed) in html+lhs output.
11221 Previously the bird tracks were being omitted.
11225 + Omit lists with no items to avoid LaTeX errors.
11226 + Support line numbering with `--listings`.
11227 If `numberLines` class is present, we add `numbers=left`;
11228 if `startFrom` is present, we add `firstnumber=`. (#763)
11232 + Removed `\placecontent`. This produced a duplicate toc,
11233 in conjunction with `\placelist`.
11234 + Use `\title`, `\subject` etc. for headers with
11235 `unnumbered` class.
11239 + Support header attributes.
11243 + Use grid tables when needed, and if enabled. Closes #740.
11244 + Render citations as pandoc-markdown citations.
11245 Previously citations were rendered as citeproc-formatted citations
11246 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
11247 unless the `citations` extension is disabled.
11248 If you still want formatted citations in your markdown output,
11249 use `pandoc -t markdown-citations`.
11253 + Support `:number-lines:` in code blocks.
11257 + Better treatment of display math. Display math inside a
11258 paragraph is now put in a separate paragraph, so it will render
11259 properly (centered and without extra blank lines around it).
11260 Partially addresses #742.
11261 + Content types and document rels xml files are now created from
11262 scratch, rather than being taken over from `reference.docx`.
11263 This fixes problems that arise when you edit the `reference.docx`
11265 + We also now encode mime types for each individual image rather
11266 than using defaults. This should allow us to handle a wider
11267 range of image types (including PDF). Closes #414.
11268 + Changed style names in `reference docx`.
11269 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
11270 The old names got changed by Word when the `reference.docx` was
11271 edited. Closes #414.
11275 + Fix section numbering. Previously the numbering restarted from 1
11276 in each chapter (with `--number-sections`), though the numbers in
11277 the table of contents were correct.
11278 + Headers with "unnumbered" attribute are not numbered. (Nor do they
11279 cause an increment in running numbering.) Section numbers now work
11280 properly, even when there is material before the first numbered section.
11281 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
11282 but `linear` is set to `no` unless the `--toc` option is specified.
11283 Include `<guide>` element in OPF. This should allow the TOC to
11284 be usable in Kindles when converted with kindlegen. Closes #773.
11286 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
11287 This dramatically reduces the speed penalty that comes from enabling the
11288 `autolink_bare_uris` extension. The penalty is still substantial (in one
11289 test, from 0.33s to 0.44s), but nowhere near what it used to be.
11290 The RST reader is also much faster now, as it autodetects URIs.
11292 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
11293 with class "unnumbered". Unnumbered sections get `[]` for their
11296 * `Text.Pandoc.Pretty`:
11298 + Fixed `chomp` so it works inside `Prefixed` elements.
11299 + Changed `Show` instance so it is better for debugging.
11301 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
11303 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
11305 * Windows installer improvements:
11307 + The installer is now signed with a certificate (thanks to
11308 Fyodor Sheremetyev).
11309 + WiX is used instead of InnoSetup. The installer is now a
11311 + The version number is now auto-detected, and need not be
11312 updated separately.
11314 * OSX installer improvements:
11316 + The package and pandoc executable are now signed with a
11317 certificate (thanks to Fyodor Sheremetyev).
11318 + RTF version of license is used.
11319 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
11322 * Converted COPYING to markdown.
11324 * pandoc.cabal: Require latest versions of highlighting-kate,
11325 texmath, citeproc-hs, zip-archive.
11329 * Markdown reader: various optimizations, leading to a
11330 significant performance boost.
11332 * RST reader: Allow anonymous form of inline links:
11333 `` `hello <url>`__ `` Closes #724.
11335 * Mediawiki reader: Don't require newlines after tables.
11336 Thanks to jrunningen for the patch. Closes #733.
11338 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
11339 when output is LaTeX, and applied when it is another format.
11340 Partially addresses #730.
11342 * Markdown and RST readers: Added parser to `block` that skips blank
11343 lines. This fixes a subtle regression involving grid tables with
11344 empty cells. Also added test for grid table with empty cells.
11347 * RST writer: Use `.. code:: language` for code blocks with language.
11350 * DocBook writer: Fixed output for hard line breaks, adding a newline
11351 between `<literallayout>` tags.
11353 * Markdown writer: Use an autolink when link text matches url.
11354 Previously we also checked for a null title, but this
11355 test fails for links produced by citeproc-hs in bibliographies.
11356 So, if the link has a title, it will be lost on conversion
11357 to an autolink, but that seems okay.
11359 * Markdown writer: Set title, author, date variables as before.
11360 These are no longer used in the default template, since we use
11361 titleblock, but we set them anyway for those who use custom templates.
11363 * LaTeX writer: Avoid extra space at start/end of table cell.
11364 Thanks to Nick Bart for the suggestion of using @{}.
11366 * `Text.Pandoc.Parsing`:
11368 + More efficient version of `anyLine`.
11369 + Type of `macro` has changed; the parser now returns `Blocks`
11370 instead of `Block`.
11372 * Relaxed old-time version bound, allowing 1.0.*.
11374 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
11375 should create a symlink as described in the README.
11379 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
11380 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
11381 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
11383 * Markdown reader: Fixed bug with headerless grid tables.
11384 The 1.10 code assumed that each table header cell contains exactly one
11385 block. That failed for headerless tables (0) and also for tables with
11386 multiple blocks in a header cell. The code is fixed and tests provided.
11387 Thanks to Andrew Lee for pointing out the bug.
11389 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
11391 + Tilde code fences can again take a bare language string
11392 (`~~~ haskell`), not just curly-bracketed attributes
11393 (`~~~ {.haskell}`).
11394 + Backtick code blocks can take the curly-bracketed attributes.
11395 + Backtick code blocks don't *require* a language.
11396 + Consolidated code for the two kinds of fenced code blocks.
11398 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
11400 * Markdown writer: Use proportional font for email autolinks with
11401 obfuscation. Closes #714.
11403 * Corrected name of `blank_before_blockquote` in README. Closes #718.
11405 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
11406 The bug prevented an autolink at the end of a string (e.g.
11407 at the end of a line block line) from counting as a link. Closes #711.
11409 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
11410 This should work on Windows, unlike the TH solution with
11413 * Eliminated use of TH in test suite.
11415 * Added `Text.Pandoc.Data` (non-exported) to hold the association
11416 list of embedded data files, if the `embed_data_files` flag is selected.
11417 This isolates the code that needs special treatment with file-embed or
11420 * Changes to `make-windows-installer.bat`.
11422 + Exit batch file if any of the cabal-dev installs fail.
11423 + There's no longer any need to reinstall `highlighting-kate`.
11424 + Don't start with a `cabal update`; leave that to the user.
11425 + Force reinstall of pandoc.
11427 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
11432 * Fixed bug with escaped % in LaTeX reader. Closes #710.
11436 * Added further missing fb2 tests to cabal file.
11440 * Added fb2 tests to cabal file's extra-source-files.
11444 * Bump version bounds on test-framework packages.
11450 * New input formats: `mediawiki` (MediaWiki markup).
11452 * New output formats: `epub3` (EPUB v3 with MathML),
11453 `fb2` (FictionBook2 ebooks).
11455 * New `--toc-depth` option, specifying how many levels of
11456 headers to include in a table of contents.
11458 * New `--epub-chapter-level` option, specifying the header
11459 level at which to divide EPUBs into separate files.
11460 Note that this normally affects only performance, not the
11461 visual presentation of the EPUB in a reader.
11463 * Removed the `--strict` option. Instead of using `--strict`,
11464 one can now use the format name `markdown_strict` for either input
11465 or output. This gives more fine-grained control that `--strict`
11466 did, allowing one to convert from pandoc's markdown to strict
11467 markdown or vice versa.
11469 * It is now possible to enable or disable specific syntax
11470 extensions by appending them (with `+` or `-`) to the writer
11471 or reader name. For example,
11473 pandoc -f markdown-footnotes+hard_line_breaks
11475 disables footnotes and enables treating newlines as hard
11476 line breaks. The literate Haskell extensions are now implemented
11477 this way as well, using either `+lhs` or `+literate_haskell`.
11478 For a list of extension names, see the README under
11479 "Pandoc's Markdown."
11481 * The following aliases have been introduced for specific
11482 combinations of markdown extensions: `markdown_phpextra`,
11483 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
11484 work just like regular reader and writer names, and can be modified
11485 with extension modifiers as described above. (Note that conversion
11486 from one markdown dialect to another does not work perfectly,
11487 because there are differences in markdown parsers besides
11488 just the extensions, and because pandoc's internal document model is
11489 not rich enough to capture all of the extensions.)
11491 * New `--html-q-tags` option. The previous default was to use `<q>`
11492 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
11493 Moreover, they are not a robust way of typesetting quotes, since
11494 some user agents don't support them, and some CSS resets (e.g.
11495 bootstrap) prevent pandoc's quotes CSS from working properly.
11496 We now just insert literal quote characters by default in both
11497 `html` and `html5` output, but this option is provided for
11498 those who still want `<q>` tags.
11500 * The markdown reader now prints warnings (to stderr) about
11501 duplicate link and note references. Closes #375.
11503 * Markdown syntax extensions:
11505 + Added pipe tables. Thanks to François Gannaz for the initial patch.
11506 These conform to PHP Markdown Extra's pipe table syntax. A subset
11507 of org-mode table syntax is also supported, which means that you can
11508 use org-mode's nice table editor to create tables.
11510 + Added support for RST-style line blocks. These are
11511 useful for verse and addresses.
11513 + Attributes can now be specified for headers, using the same
11514 syntax as in code blocks. (However, currently only the
11515 identifier has any effect in most writers.) For example,
11519 See [the header above](#foo).
11521 + Pandoc will now act as if link references have been defined
11522 for all headers without explicit identifiers.
11523 So, you can do this:
11527 Link to [My header].
11528 Another link to [it][My header].
11534 + Command macros now work everywhere, including non-math.
11535 Environment macros still not supported.
11536 + `\input` now works, as well as `\include`. TEXINPUTS is used.
11537 Pandoc looks recursively into included files for more included files.
11541 * The Markdown reader no longer puts the text of autolinks in a
11542 `Code` inline. This means that autolinks will no longer appear
11543 in a monospace font.
11545 * The character `/` can now appear in markdown citation keys.
11547 * HTML blocks in strict_markdown are no longer required to begin
11548 at the left margin. Technically this is required, according to
11549 the markdown syntax document, but `Markdown.pl` and other markdown
11550 processors are more liberal.
11552 * The `-V` option has been changed so that if there are duplicate
11553 variables, those specified later on the command line take precedence.
11555 * Tight lists now work in LaTeX and ConTeXt output.
11557 * The LaTeX writer no longer relien on the `enumerate` package.
11558 Instead, it uses standard LaTeX commands to change the list numbering
11561 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
11562 tables to be split over page boundaries.
11564 * The RST writer now uses a line block to render paragraphs containing
11565 linebreaks (which previously weren't supported at all).
11567 * The markdown writer now applies the `--id-prefix` to footnote IDs.
11570 * The plain writer no longer uses backslash-escaped line breaks
11571 (which are not very "plain").
11573 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
11574 Read bytestring and use `Text`'s decodeUtf8 instead of using
11575 `System.IO.hGetContents`. This way you get a message saying
11576 "invalid UTF-8 stream" instead of "invalid byte sequence."
11577 You are also told which byte caused the problem.
11579 * Docx, ODT, and EPUB writers now download images specified by a URL
11580 instead of skipping them or raising an error.
11584 + The default CSS now left-aligns headers by default, instead of
11585 centering. This is more consistent with the rest of the writers.
11586 + A proper multi-level table of contents is now used in `toc.ncx`.
11587 There is no longer a subsidiary table of contents at the beginning
11589 + Code highlighting now works by default.
11590 + Section divs are used by default for better semantic markup.
11591 + The title is used instead of "Title Page" in the table of contents.
11592 Otherwise we have a hard-coded English string, which looks
11593 strange in ebooks written in other languages. Closes #572.
11597 + Put mathjax in span with class "math". Closes #562.
11598 + Put citations in a span with class "citation." In HTML5, also include
11599 a `data-cite` attribute with a space-separated list of citation
11602 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
11603 This treats both `\r\n` and `\n` as `\n` on input, no matter
11604 what platform we're running on.
11606 * Citation processing is now done in the Markdown and LaTeX
11607 readers, not in `pandoc.hs`. This makes it easier for library users
11612 * HTML: Added css to template to preserve spaces in `<code>` tags.
11613 Thanks to Dirk Laurie.
11615 * Beamer: Remove English-centric strings in section pages.
11616 Section pages used to have "Section" and a number as well as the
11617 section title. Now they just have the title. Similarly for part
11618 and subsection. Closes #566.
11620 * LaTeX, ConTeXt: Added papersize variable.
11622 * LaTeX, Beamer templates: Use longtable instead of ctable.
11624 * LaTeX, Beamer templates: Don't require 'float' package for tables.
11625 We don't actually seem to use the '[H]' option.
11627 * LaTeX: Use `upquote` package if it is available. This fixes
11628 straight quotes in verbatim environments.
11630 * Markdown, plain: Fixed titleblock so it is just a single string.
11631 Previously separate title, author, and date variables were used,
11632 but this didn't allow different kinds of title blocks.
11636 + Rationalized templates. Previously there were three different
11637 templates involved in epub production. There is now just one
11638 template, `default.epub` or `default.epub3`. It can now be
11639 overridden using `--template`, just like other templates.
11640 The titlepage is now folded into the default template.
11641 A `titlepage` variable selects it.
11642 + UTF-8, lang tag, meta tags, title element.
11644 * Added scale-to-width feature to beamer template
11648 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
11649 Previously header identifiers were autogenerated by the writers.
11650 Now they are added in the readers (either automatically or explicitly).
11652 * `Text.Pandoc.Builder`:
11654 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
11655 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
11656 custom Monoid instances for `Many Inline` and `Many Block. This
11657 allows `Many` to be made an instance of `Foldable` and `Traversable`.
11658 + The old `Listable` class has been removed.
11659 + The module now exports `isNull`, `toList`, `fromList`.
11660 + The old `Read` and `Show` instances have been removed; derived
11661 instances are now used.
11662 + Added `headerWith`.
11664 * The readers now take a `ReaderOptions` rather than a `ParserState`
11665 as a parameter. Indeed, not all parsers use the `ParserState` type;
11666 some have a custom state. The motivation for this change was to separate
11667 user-specifiable options from the accounting functions of parser state.
11669 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
11670 formerly in `Text.Pandoc.Shared`, and its associated
11671 data types. It also includes a new type `ReaderOptions`, which
11672 contains many options formerly in `ParserState`, and its associated
11675 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
11676 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
11677 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
11678 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
11679 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
11680 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
11681 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
11682 + `ParserState.stateIndentedCodeClasses` ->
11683 `ReaderOptions.readerIndentedCodeClasses`.
11684 + Added `ReaderOptions.readerCitationStyle`.
11686 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
11687 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
11688 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
11689 been renamed `writerEpubMetadata` for consistency.
11691 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
11692 longer stylesheet, fonts, reference files as separate parameters.
11694 * Removed `writerLiterateHaskell` from `WriterOptions`, and
11695 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
11696 by an extension (`Ext_literate_haskell`).
11698 * Removed deprecated `writerXeTeX`.
11700 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
11701 Strict is now handled through extensions.
11703 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
11704 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
11705 and `multimarkdownExtensions`, as well as the `Extensions` type.
11707 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
11710 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
11711 (thanks to Sergey Astanin).
11715 + Added `getReader`, `getWriter` to `Text.Pandoc`.
11716 + `writers` is now an association list `(String, Writer)`.
11717 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
11718 an `IOByteStringWriter`. ALL writers are now in the 'writers'
11719 list, including the binary writers and FB2 writer. This allows
11720 code in `pandoc.hs` to be simplified.
11721 + Changed type of `readers`, so all readers are in IO.
11722 Users who want pure readers can still get them form the reader
11723 modules; this just affects the function `getReader` that looks up
11724 a reader based on the format name. The point of this change is to
11725 make it possible to print warnings from the parser.
11727 * `Text.Pandoc.Parsing`:
11729 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
11730 No other module directly imports Parsec. This will make it easier
11731 to change the parsing backend in the future, if we want to.
11732 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
11733 + Export the type synonym `Parser`.
11734 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
11735 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
11736 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
11737 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
11738 + `ParserState` is no longer an instance of `Show`.
11739 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
11740 + Generalized type of `withQuoteContext`.
11741 + Added `guardEnabled`, `guardDisabled`, `getOption`.
11742 + Removed `failIfStrict`.
11743 + `lookupKeySrc` and `fromKey` are no longer exported.
11745 * `Data.Default` instances are now provided for `ReaderOptions`,
11746 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
11747 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
11748 of `defaultWriterOptions` (which is still defined). Closes #546.
11750 * `Text.Pandoc.Shared`:
11752 + Added `safeRead`.
11753 + Renamed `removedLeadingTrailingSpace` to `trim`,
11754 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
11755 + Count `\r` as space in `trim` functions.
11756 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
11758 + Removed `failUnlessLHS`.
11759 + Export `compactify'`, formerly in Markdown reader.
11760 + Export `isTightList`.
11761 + Do not export `findDataFile`.
11762 + `readDataFile` now returns a strict ByteString.
11763 + Export `readDataFileUTF8` which returns a String, like the
11764 old `readDataFile`.
11765 + Export `fetchItem` and `openURL`.
11767 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
11768 Removed `readImageSize`.
11770 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
11771 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
11774 * `Text.Pandoc.UTF8` is now an exposed module.
11776 * `Text.Pandoc.Biblio`:
11778 + csl parameter now a `String` rather than a `FilePath`.
11779 + Changed type of `processBiblio`. It is no longer in the IO monad.
11780 It now takes a `Maybe Style` argument rather than parameters for CSL
11781 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
11782 the style file and add abbreviations.)
11784 * Markdown reader now exports `readMarkdownWithWarnings`.
11786 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
11791 * Make `--ascii` work properly with `--self-contained`. Closes #568.
11795 + Fixed link parser to avoid exponential slowdowns. Closes #620.
11796 Previously the parser would hang on input like this:
11798 [[[[[[[[[[[[[[[[[[hi
11800 We fixed this by making the link parser parser characters
11801 between balanced brackets (skipping brackets in inline code spans),
11802 then parsing the result as an inline list. One change is that
11804 [hi *there]* bud](/url)
11806 is now no longer parsed as a link. But in this respect pandoc behaved
11807 differently from most other implementations anyway, so that seems okay.
11809 + Look for raw html/latex blocks before tables.
11810 Otherwise the following gets parsed as a table:
11821 + Added support for `:target:` on `.. image::` blocks
11823 + Field list fixes:
11825 - Fixed field lists items with body beginning after a new line
11827 - Allow any char but ':' in names of field lists in RST reader
11829 - Don't allow line breaks in field names.
11830 - Require whitespace after field list field names.
11831 - Don't create empty definition list for metadata field lists.
11832 Previously a field list consisting only of metadata fields (author,
11833 title, date) would be parsed as an empty DefinitionList, which is
11834 not legal in LaTeX and not needed in any format.
11836 + Don't recognize inline-markup starts inside words.
11837 For example, `2*2 = 4*1` should not contain an emphasized
11838 section. Added test case for "Literal symbols". Closes #569.
11839 + Allow dashes as separator in simple tables. Closes #555.
11840 + Added support for `container`, `compound`, `epigraph`,
11841 `rubric`, `highlights`, `pull-quote`.
11842 + Added support for `.. code::`.
11843 + Made directive labels case-insensitive.
11844 + Removed requirement that directives begin at left margin.
11845 This was (correctly) not in earlier releases; docutils doesn't
11846 make the requirement.
11847 + Added support for `replace::` and `unicode::` substitutions.
11848 + Ignore unknown interpreted roles.
11849 + Renamed image parser to `subst`, since it now handles all
11850 substitution references.
11854 + Allow newlines before pipes in table. Closes #654.
11855 + Fixed bug with list items containing line breaks.
11856 Now pandoc correctly handles hard line breaks inside list items.
11857 Previously they broke list parsing.
11858 + Implemented comment blocks.
11859 + Fixed bug affected words ending in hyphen.
11860 + Properly handle links with surrounding brackets.
11861 Square brackets need to be used when the link isn't surrounded by
11862 spaces or punctuation, or when the URL ending may be ambiguous.
11864 + Removed nullBlock. Better to know about parsing problems than
11865 to skip stuff when we get stuck.
11866 + Allow ID attributes on headers.
11867 + Textile reader: Avoid parsing dashes as strikeout.
11868 Previously the input
11875 would be parsed with strikeouts rather than dashes. This fixes
11876 the problem by requiring that a strikeout delimiting - not be
11877 followed by a -. Closes #631.
11878 + Expanded list of `stringBreakers`.
11879 This fixes a bug on input like "(_hello_)" which should
11880 be a parenthesized emphasized "hello".
11881 The new list is taken from the PHP source of textile 2.4.
11882 + Fixed autolinks. Previously the textile reader and writer
11883 incorrectly implented RST-style autolinks for URLs and email
11884 addresses. This has been fixed. Now an autolink is done this way:
11885 `"$":http://myurl.com`.
11886 + Fixed footnotes bug in textile. This affected notes occurring
11887 before punctuation, e.g. `foo[1].`. Closes #518.
11891 + Better handling of citation commands.
11892 + Better handling of `\noindent`.
11893 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
11895 + Made `rawLaTeXInline` try to parse block commands as well. This
11896 is usually what we want, given how `rawLaTeXInline` is used in
11897 the markdown and textile readers. If a block-level LaTeX command
11898 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
11899 we can treat it as raw inline LaTeX.
11900 + Handle \slash command. Closes #605.
11901 + Basic `\enquote` support.
11902 + Fixed parsing of paragraphs beginning with a group. Closes #606.
11903 + Use curly quotes for bare straight quotes.
11904 + Support obeylines environment. Closes #604.
11905 + Guard against "begin", "end" in inlineCommand and
11907 + Better error messages for environments. Now it should tell you that
11908 it was looking for \end{env}, instead of giving "unknown parse error."
11912 + Added HTML 5 tags to list of block-level tags.
11913 + HTML reader: Fixed bug in `htmlBalanced`, which
11914 caused hangs in parsing certain markdown input using
11916 + Parse `<q>` as `Quoted DoubleQuote`.
11917 + Handle nested `<q>` tags properly.
11918 + Modified `htmlTag` for fewer false positives.
11919 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
11920 This makes it more useful in the wikimedia and markdown parsers.
11922 * DocBook reader: Support title in "figure" element. Closes #650.
11924 * MediaWiki writer:
11926 + Remove newline after `<br/>` in translation of `LineBreak`
11927 There's no particular need for a newline (other than making the
11928 generated MediaWiki source look nice to a human), and in fact
11929 sometimes it is incorrect: in particular, inside an enumeration, list
11930 items cannot have embedded newline characters. (Brent Yorgey)
11931 + Use `<code>` not `<tt>` for Code.
11933 * Man writer: Escape `-` as `\-`.
11934 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
11935 signs. That is preferable for use with command-line options. See
11936 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
11937 to Andrea Bolognani for bringing the issue to our attention.
11941 + Improved line block output. Use nonbreaking spaces for
11942 initial indent (otherwise lost in HTML and LaTeX).
11943 Allow multiple paragraphs in a single line block.
11944 Allow soft breaks w continuations in line blocks.
11945 + Properly handle images with no alt text. Closes #678.
11946 + Fixed bug with links with duplicate text. We now (a) use anonymous
11947 links for links with inline URLs, and (b) use an inline link instead
11948 of a reference link if the reference link would require a label that
11949 has already been used for a different link. Closes #511.
11950 + Fixed hyperlinked images. Closes #611. Use `:target:`
11951 field when you have a simple linked image.
11952 + Don't add `:align: center` to figures.
11954 * Texinfo writer: Fixed internal cross-references.
11955 Now we insert anchors after each header, and use `@ref` instead of `@uref`
11956 for links. Commas are now escaped as `@comma{}` only when needed;
11957 previously all commas were escaped. (This change is needed, in part,
11958 because `@ref` commands must be followed by a real comma or period.) Also
11959 insert a blank line in from of `@verbatim` environments.
11963 + Made --id-prefix work in DocBook as well as HTML.
11965 + Don't include empty captions in figures. Closes #581.
11969 + Use `\hspace*` for nonbreaking space after line break,
11970 since `~` spaces after a line break are just ignored.
11972 + Don't escape `_` in URLs or hyperref identifiers.
11973 + Properly escape strings inside \url{}. Closes #576.
11974 + Use `[fragile]` only for slides containing code rendered
11975 using listings. Closes #649.
11976 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
11977 highlighting-kate's macros, which redefine `|` as a short verbatim
11978 delimiter. Thanks to Björn Peemöller for raising this issue.
11979 + Use minipage rather than parbox for block containers in tables.
11980 This allows verbatim code to be included in grid tables.
11982 + Prevent paragraphs containing only linebreaks or spaces.
11986 + Included `highlighting-css` for code spans, too.
11987 Previously it was only included if used in a code block. Closes #653.
11988 + Improved line breaks with `<dd>` tags. We now put a newline between
11989 `</dd>` and `<dd>` when there are multiple definitions.
11990 + Changed mathjax cdn url so it doesn't use https. (This caused
11991 problems when used with `--self-contained`.) See #609.
11995 + `--number-sections` now works properly.
11996 + Don't strip meta and link elements in epub metadata.
11997 Patch from aberrancy. Closes #589.
11998 + Fixed a couple validation bugs.
11999 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
12000 of chapters in some readers, which apparently sort ch2 after ch10.
12003 * ODT writer: properly set title property (Arlo O'Keeffe).
12007 + Fixed bug with nested lists. Previously a list like
12014 would come out with a bullet instead of "2."
12015 Thanks to Russell Allen for reporting the bug.
12016 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
12017 This seems to fix a problem viewing pandoc-generated
12018 docx files in LibreOffice.
12019 + Use integer ids for bookmarks. Closes #626.
12020 + Added nsid to abstractNum elements. This helps when merging
12021 word documents with numbered or bulleted lists. Closes #627.
12022 + Use separate footnotes.xml for notes.
12023 This seems to help LibreOffice convert the file, even though
12024 it was valid docx before. Closes #637.
12025 + Use rIdNN identifiers for r:embed in images.
12026 + Avoid reading image files again when we've already processed them.
12027 + Fixed typo in `referenc.docx` that prevented image captions from
12028 working. Thanks to Huashan Chen.
12030 * `Text.Pandoc.Parsing`:
12032 + Fixed bug in `withRaw`, which didn't correctly handle the case
12033 where nothing is parsed.
12034 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
12035 though it still doesn't implement quoted strings in email addresses.
12036 + Revised URI parser. It now allows many more schemes, allows
12037 uppercase URIs, and better handles trailing punctuation and
12038 trailing slashes in bare URIs. Added many tests.
12039 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
12040 etc. parse properly. Formerly we had some English-centric heuristics,
12041 but they are no longer needed. Closes #698.
12043 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
12044 This fixes bug with Chinese commas in markdown and reST tables, and
12045 a bug that caused combining characters to be dropped.
12047 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
12049 * `Text.Pandoc.Biblio`:
12051 + Run `mvPunc` and `deNote` on metadata too.
12052 This fixed a bug with notes on titles using footnote styles.
12053 + Fixed bug in fetching CSL files from CSL data directory.
12055 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
12056 is provided. It should be the URL up to the path.
12058 * Fixed/simplified diff output for tests.
12059 Biblio: Make sure mvPunc and deNote run on metadata too.
12060 This fixed a bug with notes on titles using footnote styles.
12062 [under the hood improvements]
12064 * We no longer depend on `utf8-string`. Instead we use functions
12065 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
12067 * Use `safeRead` instead of using `reads` directly (various modules).
12069 * "Implicit figures" (images alone in a paragraph) are now handled
12070 differently. The markdown reader gives their titles the prefix `fig:`; the
12071 writers look for this before treating the image as a figure. Though this
12072 is a bit of a hack, it has two advantages: (i) implicit figures can be
12073 limited to the markdown reader, and (ii) they can be deactivated by turning
12074 off the `implicit_figures` extension.
12076 * `catch` from `Control.Exception` is now used instead of the
12077 old Preface `catch`.
12079 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
12080 and `oneOfStrings` (which is now non-backtracking).
12082 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
12083 Now citeproc-hs is fixed upstream, so this is no longer needed.
12086 * Textile reader: Improved speed of `hyphenedWords`.
12087 This speeds up the textile reader by about a factor of 4.
12089 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
12090 better performance, and automatic normalization.
12092 * Major rewrite of markdown reader:
12094 + Use `Text.Pandoc.Builder` instead of lists. This also
12095 means that everything is normalized automatically.
12096 + Move to a one-pass parsing strategy, returning values in the reader
12097 monad, which are then run (at the end of parsing) against the final
12100 * In HTML writer, we now use `toHtml` instead of pre-escaping.
12101 We work around the problem that blaze-html unnecessarily escapes `'`
12102 by pre-escaping just the `'` characters, instead of the whole string.
12103 If blaze-html later stops escaping `'` characters, we can simplify
12104 `strToHtml` to `toHtml`. Closes #629.
12106 * Moved code for embedding images in RTFs from `pandoc.hs` to the
12107 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
12109 * Moved citation processing from `pandoc.hs` into the readers.
12110 This makes things more convenient for library users.
12112 * The man pages are now built by an executable `make-pandoc-man-pages`,
12113 which has its own stanza in the cabal file so that dependencies can be
12114 handled by Cabal. Special treatment in `Setup.hs` ensures that this
12115 executable never gets installed; it is only used to create the man pages.
12117 * The cabal file has been modified so that the pandoc library is used
12118 in building the pandoc executable. (This required moving `pandoc.hs`
12119 from `src` to `.`.) This cuts compile time in half.
12121 * `-O2` is no longer used in building pandoc. The performance improvement
12122 it yields is so slight that it is not worth it. (Measured with
12123 benchmarks on ghc 7.4.)
12125 * The `executable` and `library` flags have been removed.
12127 * `-threaded` has been removed from ghc-options.
12129 * Version bounds of dependencies have been raised, and the
12130 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
12133 * We now require base >= 4.2.
12135 * Integrated the benchmark program into cabal. One can now do:
12137 cabal configure --enable-benchmarks && cabal build
12138 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
12140 The benchmark now uses README + testsuite, so benchmark results
12141 from older versions aren't comparable.
12143 * Integrated test suite with cabal.
12144 To run tests, configure with `--enable-tests`, then `cabal test`.
12145 You can specify particular tests using `--test-options='-t markdown'`.
12146 No output is shown unless tests fail. The Haskell test modules
12147 have been moved from `src/` to `tests/`.
12149 * Moved all data files and templates to the `data/` subdirectory.
12151 * Added an `embed_data_files` cabal flag. This causes all
12152 data files to be embedded in the binary, so that the binary
12153 is self-sufficient and can be relocated anywhere, copied on
12154 a USB key, etc. The Windows installer now uses this.
12155 (Since we no longer have the option to build the executable
12156 without the library, this is the only way to get a relocatable
12157 binary on Windows.)
12159 * Removed pcre3.dll from windows package.
12160 It isn't needed unless highlighting-kate is compilled with the
12161 `pcre-light` flag. By default, regex-prce-builtin is used.
12166 * Don't encode/decode file paths if base >= 4.4.
12167 Prior to base 4.4, filepaths and command line arguments were treated
12168 as unencoded lists of bytes, not unicode strings, so we had to work
12169 around that by encoding and decoding them. This commit adds CPP
12170 checks for the base version that intelligibly enable encoding/decoding
12171 when needed. Fixes a bug with multilingual filenames when pandoc was
12172 compiled with ghc 7.4 (#540).
12174 * Don't generate an empty H1 after hrule slide breaks.
12175 We now use a slide-level header with contents `[Str "\0"]` to mark
12176 an hrule break. This avoids creation of an empty H1 in these
12177 contexts. Closes #484.
12179 * Docbook reader: Added support for "bold" emphasis. Thanks to Mauro Bieg.
12181 * In make_osx_package.sh, ensure citeproc-hs is built with the
12182 embed_data_files flag.
12184 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
12186 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
12187 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
12189 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
12192 * Added webm to mime types. Closes #543.
12194 * Added some missing exports and tests to the cabal file
12195 (Alexander V Vershilov).
12197 * Compile with `-rtsopts` and `-threaded` by default.
12201 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
12203 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
12204 variables. Make TOC links black.
12206 * LaTeX template improvements.
12208 + Don't print date unless one is given explicitly in the document.
12209 + Simplified templates.
12210 + Use fontenc [T1] by default, and lmodern.
12211 + Use microtype if available.
12215 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
12216 Motivation: `@item1 [50]` should be as close as possible to
12218 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
12219 beginning with a citation to be empty. Closes #531.
12221 * Fixed documentation on mixed lists. Closes #533.
12225 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
12226 footnotes and captions. We now handle note citations by inserting
12227 footnotes during initial citation processing, and doing a separate
12228 pass later to remove notes inside notes.
12230 * Added 'zenburn' highlight style from highlighting-kate.
12232 * Added Slideous writer. Slideous is an HTML + javascript slide show
12233 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
12237 + Ensure we don't have extra blank lines at ends of cells.
12238 This can cause LaTeX errors, as they are interpreted as new paragraphs.
12239 + More consistent interblock spacing.
12240 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
12241 code in LaTeX. Closes #527.
12242 + Ensure that a Verbatim at the end of a footnote is followed by
12243 a newline. (Fixes a regression in the previous version.)
12244 + In default template, use black for internal links and TOC.
12245 Added commented-out code to use footnotes for links, as would
12246 be suitable in print output.
12248 * Beamer writer: When `--incremental` is used, lists inside
12249 a block quote should appear all at once. (This makes Beamer
12250 output consistent with the HTML slide show formats.)
12254 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
12255 to avoid gobbling spaces after the `%` sign.
12256 + Ensure space after `\stopformula`.
12260 + Use `:` form instead of `~` in definition lists, for better
12261 compatibility with other markdown implementations.
12262 + Don't wrap the term, because it breaks definition lists.
12263 + Use a nonzero space to prevent false recognition
12264 of list marker in ordered lists. Closes #516.
12266 * Org writer: Add space before language name. Closes #523.
12268 * Docx writer: Simplified bullet characters so they work properly
12269 with Word 2007. Closes #520.
12271 * LaTeX reader: Support `\centerline`.
12273 * RST reader: handle figures. Closes #522.
12275 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
12280 * Fixed bug in `fromEntities`. The previous version would turn
12281 `hi & low you know;` into `hi &`.
12285 + Don't skip nonbreaking spaces.
12286 Previously a paragraph containing just ` ` would be rendered
12287 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
12288 + Support `<col>` and `<caption>` in tables. Closes #486.
12292 + Don't recognize references inside delimited code blocks.
12293 + Allow list items to begin with lists.
12295 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
12299 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
12300 + Control sequences can't be followed by a letter.
12301 This fixes a bug where `\begingroup` was parsed as `\begin`
12302 followed by `group`.
12303 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
12304 + Make `\label` and `\ref` sensitive to `--parse-raw`.
12305 If `--parse-raw` is selected, these will be parsed as raw latex
12306 inlines, rather than bracketed text.
12307 + Don't crash on unknown block commands (like `\vspace{10pt}`)
12308 inside `\author`; just skip them. Closes #505.
12312 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
12313 + Added support for LaTeX blocks and inlines (Paul Rivier).
12314 + Better conformance to RedCloth inline parsing (Paul Rivier).
12315 + Parse '+text+' as emphasized (should be underlined, but this
12316 is better than leaving literal plus characters in the output.
12318 * Docx writer: Fixed multi-paragraph list items. Previously they each
12319 got a list marker. Closes #457.
12323 + Added `--no-tex-ligatures` option to avoid replacing
12324 quotation marks and dashes with TeX ligatures.
12325 + Use `fixltx2e` package to provide '\textsubscript'.
12326 + Improve spacing around LaTeX block environments:
12327 quote, verbatim, itemize, description, enumerate.
12329 + Use blue instead of pink for URL links in latex/pdf output.
12331 * ConTeXt writer: Fixed escaping of `%`.
12332 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
12333 Inside URLs, `%` needs to be escaped as `\%`
12334 Thanks to jmarca and adityam for the fix. Closes #492.
12336 * Texinfo writer: Escape special characters in node titles.
12337 This fixes a problem pointed out by Joost Kremers. Pandoc used
12338 to escape an '@' in a chapter title, but not in the corresponding
12339 node title, leading to invalid texinfo.
12341 * Fixed document encoding in texinfo template.
12342 Resolves Debian Bug #667816.
12346 + Don't force delimited code blocks to be flush left.
12347 Fixes bug with delimited code blocks inside lists etc.
12348 + Escape `<` and `$`.
12350 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
12351 Previously we used `\href{\#ident}{text}`, which didn't work on
12352 all systems. Thanks to Dirk Laurie.
12354 * RST writer: Don't wrap link references. Closes #487.
12356 * Updated to use latest versions of blaze-html, mtl.
12363 + Made `lstlisting` work as a proper verbatim environment.
12364 + Fixed bug parsing LaTeX tables with one column.
12368 + Use `{}` around `ctable` caption, so that formatting can be used.
12369 + Don't require eurosym package unless document has a €.
12371 * LaTeX template: Added variables for `geometry`, `romanfont`,
12372 `sansfont`, `mathfont`, `mainfont` so users can more easily
12377 + Run latex engine at least two times, to ensure
12378 that PDFs will have hyperlinked bookmarks.
12379 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
12381 * Texinfo writer: retain directories in image paths. (Peter Wang)
12383 * RST writer: Better handling of inline formatting, in accord
12384 with docutils' "inline markup recognition rules" (though we don't
12385 implement the unicode rules fully). Now `hi*there*hi` gets
12386 rendered properly as `hi\ *there*\ hi`, and unnecessary
12387 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
12391 + Parse `\ ` as null, not escaped space.
12392 + Allow `` :math:`...` `` even when not followed by blank
12393 or `\`. This does not implement the complex rule docutils follows,
12394 but it should be good enough for most purposes.
12395 + Add support for the rST default-role directive. (Greg Maslov)
12397 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
12400 * Markdown reader: Properly handle citations nested in other inline
12403 * Markdown writer: don't replace empty alt in image with "image".
12405 * DZSlides: Updated template.html and styles in default template.
12406 Removed bizarre CSS for `q` in dzslides template.
12408 * Avoid repeated `id` attribute in section and header in HTML slides.
12410 * README improvements: new instructions on internal links,
12411 removed misleading note on reST math.
12415 + Fixed Windows installer so that dzslides works.
12416 + Removed stripansi.sh.
12417 + Added .travis.yml for Travis continuous integration support..
12418 + Fixed upper bound for zlib (Sergei Trofimovich).
12419 + Fixed upper bound for test-framework.
12420 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
12424 * Added `beamer+lhs` as output format.
12426 * Don't escape `<` in `<style>` tags with `--self-contained`.
12427 This fixes a bug which prevented highlighting from working
12428 when using `--self-contained`.
12430 * PDF: run latex engine three times if `--toc` specified.
12431 This fixes page numbers in the table of contents.
12433 * Docx writer: Added TableNormal style to tables.
12435 * LaTeX math environment fixes. `aligned` is now used instead of
12436 the nonexistent `aligned*`. `multline` instead of the nonexistent
12439 * LaTeX writer: Use `\textasciitilde` for literal `~`.
12441 * HTML writer: Don't escape contents of EQ tags with --gladtex.
12442 This fixes a regression from 1.8.
12444 * Use `<q>` tags for Quoted items for HTML5 output.
12445 The quote style can be changed by modifying the template
12446 or including a css file. A default quote style is included.
12448 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
12449 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
12451 * Updated LaTeX template for better language support.
12452 Use `polyglossia` instead of `babel` with xetex.
12453 Set `lang` as documentclass option.
12454 `\setmainlanguage` will use the last of a comma-separated
12455 list of languages. Thanks to François Gannaz.
12457 * Fixed default LaTeX template so `\euro` and `€` work. The
12458 `eurosym` package is needed if you are using pdflatex.
12460 * Fixed escaping of period in man writer (thanks to Michael Thompson).
12462 * Fixed list label positions in beamer.
12464 * Set `mainlang` variable in context writer.
12465 This parallels behavior of latex writer. `mainlang` is the last
12466 of a comma-separated list of languages in lang.
12468 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
12470 * Changed `-V` so that you can specify a key without a value.
12471 Such keys get the value `true`.
12473 * Fixed permissions on installed man pages - thanks Magnus Therning.
12475 * Windows installer: require XP or higher. The installer is
12476 now compiled on a Windows 7 machine, which fixes a problem
12477 using citation functions on Windows 7.
12479 * OSX package: Check for 64-bit Intel CPU before installing.
12483 * Better handling of raw latex environments in markdown. Now
12489 turns into a raw latex block as expected.
12491 * Improvements to LaTeX reader:
12493 + Skip options after block commands.
12494 + Correctly handle `{\\}` in braced.
12495 + Added a needed 'try'.
12496 + Citations: add `, ` to suffix if it doesn't start with space or
12497 punctuation. Otherwise we get no space between the year and the
12498 suffix in author-date styles.
12500 * Added two needed data files for S5. This fixes a problem with
12501 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
12502 which was no longer being used.
12504 * Fixed some minor problems in `reference.docx`:
12505 name on "Date" style, `xCs` instead of `xIs`.
12507 * Fixed a problem creating docx files using a reference docx
12508 modified using Word. The problem seems to be that Word
12509 modifies `_rels/.rels`, changing the Type of the Relationship to
12510 `docProps/core.xml`. Pandoc now changes this back to the correct
12511 value if it has been altered, fixing the problem.
12513 * Fixed html5 template so it works properly with highlighting.
12519 + Fixed regression in 1.9; properly handle escaped $ in latex math.
12520 + Put LaTeX verse environments in blockquotes.
12524 + Limit nesting of strong/emph. This avoids exponential lookahead
12525 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
12526 + Improved attributes syntax (inn code blocks/spans):
12527 (1) Attributes can contain line breaks. (2) Values in key-value
12528 attributes can be surrounded by either double or single quotes, or
12529 left unquoted if they contain no spaces.
12531 * Don't wrap headers in markdown or RST writers.
12533 * Added `stateMaxNestingLevel` to `ParserState`.
12534 We set this to 6, so you can still have `Emph` inside `Emph`,
12535 just not indefinitely.
12537 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
12539 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
12542 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
12546 * Changed cabal file so that build-depends for the test program
12547 are not required unless the tests flag is used.
12549 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
12550 form ligatures (dashes) in code spans.
12554 * Raised version bound on test-framework to avoid problems
12555 compiling tests on GHC 7.4.1.
12557 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
12558 so citations don't just disappear unless you process with
12559 citeproc. Ignore `\bibliographystyle`, `\nocite`.
12561 * Simplified tex2pdf; it will always run latex twice to
12562 resolve table of contents and hyperrefs.
12566 * Require Cabal >= 1.10.
12567 * Tweaked cabal file to meet Cabal 1.10 requirements.
12571 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
12578 * Added a Microsoft Word `docx` writer. The writer includes support
12579 for highlighted code and for math (which is converted from TeX to OMML,
12580 Office's native math markup language, using texmath's new OMML module).
12581 A new option `--reference-docx` allows the user to customize the
12584 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
12586 * Better support for slide shows:
12588 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
12589 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
12591 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
12592 slide presentations.
12594 + New, flexible rules for dividing documents into sections and slides
12595 (see the "Structuring the slide show" in the User's Guide). These
12596 are backward-compatible with the old rules, but they allow slide
12597 shows to be organized into sections and subsections containing
12600 + A new `--slide-level` option allows users to override defaults
12601 and select a slide level below the first header level with content.
12603 * A new `--self-contained` option produces HTML output that does not
12604 depend on an internet connection or the presence of any external
12605 files. Linked images, CSS, and javascript is downloaded (or fetched
12606 locally) and encoded in `data:` URIs. This is useful for making portable
12607 `HTML slide shows. The --offline` option has been deprecated and is now
12608 `treated as a synonym or --self-contained`.
12610 * Support for PDF output:
12612 + Removed the old `markdown2pdf`.
12613 + `pandoc` can now create PDFs (assuming you have latex and a set of
12614 appropriate packages installed): just specify an output file with the
12616 + A new option `--latex-engine` allows you to specify `pdflatex`,
12617 `xelatex`, or `lualatex` as the processor.
12619 * Highlighting changes:
12621 + Syntax highlighting is now a standard feature; the `highlighting`
12622 flag is no longer needed when compiling.
12623 + A new `--no-highlight` option allows highlighting to be disabled.
12624 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
12625 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
12626 + A new `--highlight-style` option selects between various highlighting
12629 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
12631 * LaTeX `\include` and `\usepackage` commands are now processed,
12632 provided the files are in the working directory.
12634 * EPUB improvements:
12636 + Internal and external links now work in EPUB.
12637 + Raw HTML is allowed.
12638 + New `--epub-embed-font` option.
12639 + Customizable templates for EPUB pages offer more control over
12640 formatting: `epub-page.html`, `epub-coverimage.html`,
12641 `epub-titlepage.html`.
12643 * `--mathml` now works with DocBook.
12645 * Added support for math in RST reader and writer. Inline math uses the
12646 `` :math:`...` `` construct. Display math uses
12650 or if the math is multiline,
12656 These constructions are now supported now by `rst2latex.py`.
12658 * GitHub syntax for fenced code blocks is supported in pandoc's
12659 markdown. You can now write
12671 * Easier scripting: a new `toJsonFilter` function makes it easier to
12672 write Haskell scripts to manipulate the Pandoc AST.
12676 * Fixed parsing of consecutive lists in markdown.
12677 Pandoc previously behaved like Markdown.pl for consecutive
12678 lists of different styles. Thus, the following would be parsed
12679 as a single ordered list, rather than an ordered list followed
12680 by an unordered list:
12688 This change makes pandoc behave more sensibly, parsing this as
12689 two lists. Any change in list type (ordered/unordered) or in
12690 list number style will trigger a new list. Thus, the following
12691 will also be parsed as two lists:
12699 Since we regard this as a bug in Markdown.pl, and not something
12700 anyone would ever rely on, we do not preserve the old behavior
12701 even when `--strict` is selected.
12703 * Dashes work differently with `--smart`: `---` is always em-dash,
12704 and `--` is always en-dash. Pandoc no longer tries to guess when
12705 `-` should be en-dash. *Note:* This may change how existing documents
12706 look when processed with pandoc. A new option, `--old-dashes`,
12707 is provided for legacy documents.
12709 * The markdown writer now uses setext headers for levels 1-2.
12710 The old behavior (ATX headers for all levels) can be restored
12711 using the new `--atx-headers` option.
12713 * Links are now allowed in markdown image captions. They are also
12714 allowed in links, but will appear there as regular text. So,
12716 [link with [link](/url)](/url)
12720 <p><a href="/url">link with link</a></p>
12722 * Improved handling of citations using `citeproc-hs-0.3.4`.
12723 Added `--citation-abbreviations` option.
12725 * Citation keys can no longer end with a punctuation character.
12726 This means that `@item1.` will be parsed as a citation with key
12727 'item1', followed by a period, instead of a citation with key
12728 'item1.', as was the case previously.
12730 * In HTML output, citations are now put in a span with class `citation`.
12732 * The markdown reader now recognizes DocBook block and inline tags.
12733 It was always possible to include raw DocBook tags in a markdown
12734 document, but now pandoc will be able to distinguish block from
12735 inline tags and behave accordingly. Thus, for example,
12741 will not be wrapped in `<para>` tags.
12743 * The LaTeX parser has been completely rewritten; it is now much more
12744 accurate, robust, and extensible. However, there are two important
12745 changes in how it treats unknown LaTeX. (1) Previously, unknown
12746 environments became BlockQuote elements; now, they are treated
12747 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
12748 same as `xyz`. (2) Previously, arguments of unknown commands
12749 were passed through with their braces; now the braces are stripped
12752 * `--smart` is no longer selected automatically with `man` output.
12754 * The deprecated `--xetex` option has been removed.
12756 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
12757 instead. `html5` and `html5+lhs` are now separate output formats.
12759 * Single quotes are no longer escaped in HTML output. They do not
12760 need to be escaped outside of attributes.
12762 * Pandoc will no longer transform leading newlines in code
12763 blocks to `<br/>` tags.
12765 * The ODT writer now sizes images appropriately, using the image
12766 size and DPI information embedded in the image.
12768 * `--standalone` is once again implicitly for a non-text output format
12769 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
12770 and get a standalone ODT file.
12772 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
12775 * The HTML writer now uses `<del>` for strikeout.
12777 * In HTML output with `--section-divs`, the classes `section` and
12778 `level[1,2,..6]` are put on the `div` tags so they can be styled.
12779 In HTML 5 output with `--section-divs`, the classes
12780 `level[1,2,...6]` are put on `section` tags.
12782 * EPUB writer changes:
12784 + The `lang` variable now sets the language
12785 in the metadata (if it is not set, we default to the locale).
12786 + EPUB: UTF-8 is used rather than decimal entities.
12788 * Added `titleslide` class to title slide in S5 template.
12790 * In HTML, EPUB, and docx metadata, the date is normalized into
12791 YYYY-MM-DD format if possible. (This is required for validation.)
12793 * Attributes in highlighted code blocks are now preserved in HTML.
12794 The container element will have the classes, id, and key-value attributes
12795 you specified in the delimited code block. Previously these were stripped
12798 * The reference backlink in the HTML writer no longer has a special
12799 `footnoteBacklink` class.
12801 * The HTML template has been split into `html` and `html5` templates.
12803 * Author and date are treated more consistently in HTML templates.
12804 Authors are now `<h2>`, date `<h3>`.
12806 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
12808 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
12812 * Better support for combining characters and East Asian wide characters
12813 in markdown and reST.
12815 * Better handling of single quotes with `--smart`.
12816 Previously `D'oh l'*aide*` would be parsed with left and right single
12817 quotes instead of apostrophes. This kind of error is now fixed.
12819 * Highlighting: Use `reads` instead of `read` for better error handling.
12820 Fixes crash on `startNum="abc"`.
12822 * Added blank comment after directives in rst template.
12824 * Unescape entities in citation `refId`. The `refId`s coming
12825 from citeproc contain XML numeric entities, and these don't match with the
12826 citation keys parsed by pandoc. Solution is to unescape them.
12828 * HTML reader: Fixed bug parsing tables with both thead and tbody.
12832 + Better handling of escapes in link URLs and titles.
12833 + Fixed backslash escapes in reference links.
12834 + Fixed bug in table/hrule parsing, by checking that the top
12835 line of a table is not followed by a blank line. This bug caused
12836 slowdowns on some files with hrules and tables, as pandoc tried to
12837 interpret the hrules as the tops of multiline tables.
12838 + Fixed bug in code block attribute parser. Previously the ID attribute
12839 got lost if it didn't come first. Now attributes can come in any order.
12841 * RST reader: allow footnotes followed by newline without space characters.
12845 + Ignore empty groups {}, { }.
12846 + LaTeX reader: Handle \@.
12847 + LaTeX reader: Don't crash on commands like `\itemsep`.
12848 + LaTeX reader: Better handling of letter environments.
12850 * RST writer: Fixed bug involving empty table cells. isSimple was being
12851 calculated in a way that assumed there were no non-empty cells.
12855 + Made `--toc` work even without `--number-sections`.
12856 + Escape # in link URLs.
12857 + Use buffering for footnotes containing code blocks.
12858 + Changed 'descr' to 'description', fixed alignment.
12862 + Escape euro character.
12863 + Don't escape ~ inside href{...}.
12864 + Escape # in href URLs.
12865 + Improved detection of book classes. We now check the
12866 `documentclass` variable, and if that is not set, we look through
12867 the template itself. Also, we have added the KOMA classes scrreprt
12868 and scrbook. You can now make a book using
12869 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
12870 + LHS files now set the "listings" variable, so that the definition
12871 of the `code` environment will be included in the template.
12872 + Links are colored blue by default (this can be changed by
12873 modifying `hyperref` settings in the template).
12874 + Added `lang` variable to LaTeX template.
12878 + Fixed bug in HTML template with html5 and mathml.
12879 + Don't use self-closing img, br, hr tags for HTML5.
12880 + Use `<section>` for footnotes if HTML5.
12881 + Update HTML templates to use Content-Style-Type meta tag.
12882 + Use separate variables for meta-date, meta-author.
12883 This makes footnotes work in author and date fields.
12884 + Use 'vertical-align:middle' in WebTeX math for better alignment.
12886 * S5/slidy writer: Make footnotes appear on separate slide at end.
12888 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
12889 META-INF/manifest.xml for ODT files will have everything it needs, so
12890 that ODT files modified by LibreOffice can be used as `--reference-odt`.
12892 * `Text.Pandoc.Templates`: Return empty string for json template.
12894 * `Text.Pandoc.Biblio`:
12896 + Expand citations recursively inside nested inlines.
12897 + Treat `\160` as space when parsing locator and suffix.
12898 This fixes a bug with "p. 33" when `--smart` is used. Previously
12899 the whole "p. 33" would be included in the suffix, with no locator.
12900 + Put whole author-in-text citation in a Cite. Previously just the
12901 date and other info went in the Cite.
12902 + Don't add comma+space to prefix if it ends in punctuation.
12904 * Updated chicago-author-date.csl. The old version did not work
12905 properly for edited volumes with no author.
12909 + Add date to EPUB titlepage and metadata.
12910 + Added TOC identifier in EPUB page template.
12911 + Don't generate superfluous file `cover-image.jpg`.
12913 [under the hood improvements]
12915 * Modified `make_osx_package.sh` to use cabal-dev.
12916 Items are no longer installed as root.
12917 Man pages are zipped and given proper permissions.
12919 * Modified windows installer generator to use cabal-dev.
12921 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
12922 Setup.hs we now invoke 'runghc' in a way that points it to the correct
12923 package databases, instead of always falling back to the default user
12926 * Updated to work with GHC 7.4.1.
12928 * Removed dependency on old-time.
12930 * Removed dependency on dlist.
12932 * New slidy directory for "self-contained."
12934 * TeXMath writer: Use unicode thin spaces for thin spaces.
12936 * Markdown citations: don't strip off initial space in locator.
12940 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
12941 from the native `Inline` type in pandoc-types. Now we use `Str`
12942 elements with unicode.
12944 * Improvements to `Text.Pandoc.Builder`:
12946 + `Inlines` and `Blocks` are now newtypes (not synonyms for
12948 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
12949 and a new `Listable` class, which allows these to be manipulated
12950 to some extent like lists. Monoid append includes automatic
12952 + `+++` has been replaced by `<>` (mappend).
12954 * Use blaze-html instead of xhtml for HTML generation.
12955 This changes the type of `writeHtml`.
12957 * `Text.Pandoc.Shared`:
12959 + Added `warn` and `err`.
12960 + Removed `unescapeURI`, modified `escapeURI`.
12961 (See under [behavior changes], above.)
12963 * Changes in URI escaping: Previously the readers escaped URIs by
12964 converting unicode characters to octets and then percent encoding.
12965 Now unicode characters are left as they are, and `escapeURI` only
12966 percent-encodes space characters. This gives more readable
12967 URIs, and works well with modern user agents. URIs are no longer unescaped
12968 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
12970 * New module `Text.Pandoc.SelfContained`.
12972 * New module `Text.Pandoc.Docx`.
12974 * New module `Text.Pandoc.PDF`.
12976 * Added `writerBeamer` to `WriterOptions`.
12978 * Added `normalizeDate` to `Text.Pandoc.Shared`.
12980 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
12981 This is like `splitWithIndices`, but it is sensitive to distinctions
12982 between wide, combining, and regular characters.
12984 * `Text.Pandoc.Pretty`:
12986 + Added `chomp` combinator.
12987 + Added `beforeNonBreak` combinator. This allows you to include
12988 something conditionally on it being before a nonblank.
12989 Used for RST inline math.
12990 + Added `charWidth` function. All characters marked W or F in the unicode
12991 spec EastAsianWidth.txt get width 2.
12992 + Added `realLength`, based on `charWidth`. `realLength` is now
12993 used in calculating offsets.
12995 * New module `Text.Pandoc.Slides`, for common functions for breaking
12996 a document into slides.
12998 * Removed `Text.Pandoc.S5`, which is no longer needed.
13000 * Removed `Text.Pandoc.CharacterReferences`. Moved
13001 `characterReference` to `Text.Pandoc.Parsing`.
13002 `decodeCharacterReferences` is replaced by `fromEntities`
13003 in `Text.Pandoc.XML`.
13005 * Added `Text.Pandoc.ImageSize`. This is intened for use
13006 in `docx` and `odt` writers, so the size and dpi of images
13009 * Removed `writerAscii` in `WriterOptions`.
13011 * Added `writerHighlight` to `WriterOptions`.
13013 * Added `DZSlides` to `HTMLSlideVariant`.
13015 * `writeEPUB` has a new argument for font files to embed.
13017 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
13018 of whether we're parsing the position immediately after a regular
13019 (non-space, non-symbol) string, which is useful for distinguishing
13020 apostrophes from single quote starts.
13022 * `Text.Pandoc.Parsing`:
13024 + `escaped` now returns a `Char`.
13025 + Removed `charsInBalanced'`, added a character parser as
13026 a parameter of `charsInBalanced`. This is needed for
13027 proper handling of escapes, etc.
13030 * Added `toEntities` to `Text.Pandoc.XML`.
13032 * `Text.Pandoc.Readers.LaTeX`:
13034 + Export `handleIncludes`.
13035 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
13037 * Added `ToJsonFilter` class and `toJsonFilter` function to
13038 `Text.Pandoc`, deprecating the old `jsonFilter` function.
13040 * `Text.Pandoc.Highlighting`:
13042 + Removed `highlightHtml`, `defaultHighlightingCss`.
13043 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
13044 key functions from highlighting-kate.
13045 + Changed types of highlighting function. `highlight` returns a
13046 `Maybe`, not an `Either`.
13050 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
13052 * Relaxed cabal constraints for pandoc-types.
13054 * Adjusted Arbitrary instance to help avoid timeouts in tests.
13056 * Added `Tests.Writers.Markdown` to cabal file.
13060 * Added script to produce OS X package.
13062 * Made `templates` directory a git submodule. This should make it
13063 easier for people to revise their custom templates when the default
13066 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
13067 **Note:** If you have existing templates in `~/.pandoc/templates`, you
13068 must rename them to conform to the new scheme!
13070 * Fixed smart quotes bug, now handling `'...hi'` properly.
13074 + Partial support for labeled footnotes.
13075 + Improved accuracy of `simpleReferenceName` parser.
13079 + Substitute correct unicode characters for
13080 characters in the 128..159 range, which are often found even in
13081 HTML that purports to be UTF-8.
13083 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
13084 to the title, after a colon and linebreak). Closes #280.
13086 * Leaner `reference.odt`.
13088 * Added unexported module `Text.Pandoc.MIME` for use in
13091 * ODT writer: Construct `manifest.xml` based on archive contents.
13092 This fixes a bug in ODTs containing images. Recent versions of
13093 LibreOffice would reject these as corrupt, because `manifest.xml`
13094 did not contain a reference to the image files.
13098 + Make verbatim environments flush to avoid spurious
13099 blank lines. Closes #277.
13100 + Use `\texttt` and escapes insntead of `\verb!...!`, which
13101 is too fragile (doesn't work in command arguments).
13102 + Use `\enquote{}` for quotes if the template includes
13103 the `csquotes` package. This provides better support for
13104 local quoting styles. (Thanks to Andreas Wagner for the idea.)
13106 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
13107 margin, preventing spurious blank lines.
13111 + Use non-minimized version of `slidy.css` with `--offline`
13112 option, so users can more easily edit it.
13113 + Also fixed a bug in the CSS that prevented proper centering
13114 of title (now reported and fixed upstream).
13118 + Replaced `s5/default/slides.js.{comment,packed}` with
13119 new compressed `s5/default/slides.min.js`.
13120 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
13121 when `--offline` is specified. Using inline CSS didn't
13122 work with Chrome or Safari. This fixes offline
13123 S5 on those browsers.
13125 * HTML writer: Removed English title on footnote backlinks.
13126 This is incongrous in non-English documents.
13130 + Use CALS tables. (Some older docbook software does not work
13131 well with XHTML tables.) Closes #77.
13132 + Use `programlisting` tags (instead of `screen`) for code blocks.
13136 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
13137 of `-interaction=batchmode`, which essentially just ignored errors,
13138 leading to bad results. Better to know when something is wrong.
13139 + Fixed issues with non-UTF-8 output of `pdflatex`.
13140 + Better error reporting.
13142 * `--mathjax` now takes an optional URL argument. If it is not
13143 provided, pandoc links directly to the (secure) mathjax CDN,
13144 as now recommended (thanks to dsanson).
13146 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
13147 since the LaTeX writer now produces a file that can be processed by
13148 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
13150 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
13151 to be used to create the PDF.
13153 * If a template specified with `--template` is not found, look for it
13154 in `datadir`. Also, if no extension is provided, supply one based
13155 on the writer. So now you can put your `special.latex` template in
13156 `~/.pandoc/templates`, and use it from any directory via
13157 `pandoc -t latex --template special`.
13159 * Default template improvements:
13161 + HTML: Display author and date after title.
13162 + HTML: Made table of contents more customizable. The container
13163 for the TOC is now in the template, so users can insert a header
13164 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
13165 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
13166 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
13167 hard-coding. If you want to put your slidy files in the slidy
13168 subdirectory, for example, you can do
13169 `pandoc -t slidy -V slidy-url=slidy -s`.
13170 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
13171 & writer). Closes #279.
13172 + LaTeX: Use different `hyperref` options for `xetex`, fixing
13173 problems with unicode bookmarks (thanks to CircleCode).
13174 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
13175 with `inputenc`. This covers fewer characters but is more
13176 robust with other packages, and `ucs` is unmaintained. Users
13177 who need better unicode support should use xelatex or lualatex.
13181 * Added `--epub-cover-image` option.
13183 * Documented `--biblatex` and `--natbib` options.
13185 * Allow `--section-divs` with slidy output. Resolves Issue #296.
13187 * Disallow notes within notes in reST and markdown.
13188 These previously caused infinite looping and stack overflows.
13195 Note references are allowed in reST notes, so this isn't a full
13196 implementation of reST. That can come later. For now we need to
13197 prevent the stack overflows. Partially resolves Issue #297.
13199 * EPUB writer: Allow non-plain math methods.
13201 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
13202 `(@item1; @item2)` because the final paren was being parsed as part of
13205 * Changed URI parser so it doesn't include trailing punctuation.
13206 So, in RST, `http://google.com.` should be parsed as a link followed by a
13207 period. The parser is smart enough to recognize balanced parentheses, as
13208 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
13210 * Markdown+lhs reader: Require space after inverse bird tracks, so that
13211 HTML tags can be used freely at the left margin of a markdown+lhs document.
13212 Thanks to Conal Elliot for the suggestion.
13216 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
13217 + Fixed bug in footnote order (reported by CircleCode).
13220 + Fixed bug in in field lists with multi-line items at the
13222 + Added parentheses to RST `specialChars`, so
13223 `(http://google.com)` will be parsed as a link in parens.
13224 Resolves Issue #291.
13225 + Allow `|` followed by newline in RST line block.
13229 + Gobble option & space after linebreak `\\[10pt]`.
13232 + Make it possible to have colons after links. (qerub)
13233 + Make it possible to have colons after links. (Christoffer Sawicki)
13236 + Skip spaces after `<b>`, `<emph>`, etc.
13237 + Handle tbody, thead in simple tables. Closes #274.
13238 + Implicit `Para`s instead of `Plains` in some contexts.
13240 * OpenDocument writer: Use special `First paragraph` style for
13241 first paragraph after most non-paragraph blocks. This allows users to
13242 specify e.g. that only paragraphs after the first paragraph of a block are
13243 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
13245 * LaTeX writer: use `deVerb` on table and picture captions.
13246 Otherwise LaTeX complains about `\verb` inside command argument.
13247 Thanks to bbanier for reporting the bug.
13249 * Markdown writer: Insert HTML comment btw list and indented code block.
13250 This prevents the code block from being interpreted as part of the list.
13252 * EPUB writer: Add a meta element specify the cover.
13253 Some EPUB e-readers, such as the Nook, require a meta element inside the
13254 OPF metadata block to ensure the cover image is properly displayed.
13257 * HTML writer: Use embed tag for images with non-image extensions.
13258 (e.g. PDFs). Closes #264.
13260 * LaTeX writer: Improved tables.
13262 + More space between lines, top-align cells.
13263 + Use ctable package, which allows footnotes and
13264 provides additional options.
13265 + Made cell alignments work in multiline tables.
13266 + Closes #271, #272.
13268 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
13269 Also do this when copying image files into EPUBs and ODTs.
13272 * Changed to github issue tracker.
13274 * Added failing emph/strong markdown test case due to Perry Wagle.
13276 * Slidy improvements:
13277 + Updated to use Slidy2.
13278 + Fixed bug, unclosed div tag.
13279 + Added `duration` variable in template.
13280 Setting this activates the timer.
13281 + Use 'titlepage' instead of 'cover' for title div.
13285 * `markdown2pdf`: Removed some debugging lines accidentally included
13286 in the 1.8.1 release. With those lines, the temp directory is created
13287 in the working directory, and it is not deleted. This fix restores
13288 the original behavior.
13292 * Added `--ascii` option. Currently supported only in HTML writer,
13293 which it causes to use numerical entities instead of UTF-8.
13295 * EPUB writer: `--toc` now works to provide a table of contents
13296 at the beginning of each chapter.
13298 * LaTeX writer: Change figure defaults to `htbp`.
13299 This prevents "too many unprocessed floats." Resolves
13302 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
13305 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
13306 Tanimoto. Resolves Issue #286.
13308 * HTML writer: Put line breaks in section divs.
13310 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
13314 * Fixed Source-repository stanza in cabal file.
13320 + Stringify alt text instead of converting to HTML.
13321 + Break lines after block elements, not inside tags.
13322 HTML output now closely resembles that of tidy. Resolves Issue #134.
13324 * Markdown reader: Fixed bug in footnote block parser (pointed out
13325 by Jesse Rosenthal). The problem arose when the blank line
13326 at the end of a footnote block contained indenting spaces.
13328 * Shared: Improved 'normalize' function so it normalizes Spaces too.
13329 In normal form, Space elements only occur to separate two non-Space
13330 elements. So, we never have [Space], or [, ..., Space].
13334 + Improved Arbitrary instance.
13335 + Added timeout for test instances.
13339 + Added section on four-space rule for lists. Resolves Issue #283.
13340 + Clarified optional arguments on math options.
13342 * markdown2pdf: Fixed bug with output file extensions.
13343 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
13344 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
13348 * Revised Interact.hs so that it works with the CPP macros
13349 in the UTF8 module.
13351 * Revised Setup.hs so that we don't call MakeManPage.hs unless
13352 the man pages are out of date.
13358 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
13359 You can now write, for example,
13361 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
13363 and, when you process your document using `pandoc`, specifying
13364 a citation style using `--csl` and a bibliography using `--bibliography`,
13365 the citation will be replaced by an appropriately formatted
13366 citation, and a list of works cited will be added to the end
13369 This means that you can switch effortlessly between different citation
13370 and bibliography styles, including footnote, numerical, and author-date
13371 formats. The bibliography can be in any of the following formats: MODS,
13372 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
13373 See the README for further details.
13375 Citations are supported in the markdown reader, using a special
13376 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
13377 (Thanks to Nathan Gass for the natbib and biblatex support.)
13379 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
13380 the `textile` reader, an almost complete implementation of the textile
13381 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
13382 Resolves Issue #51.
13384 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
13386 * New `json` reader and writer, for reading and writing a JSON
13387 representation of the native Pandoc AST. These are much faster
13388 than the `native` reader and writer, and should be used for
13389 serializing Pandoc to text. To convert between the JSON representation
13390 and native Pandoc, use `encodeJSON` and `decodeJSON` from
13391 `Text.JSON.Generic`.
13393 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
13394 to write scripts that transform a JSON-encoded pandoc document.
13397 -- removelinks.hs - removes links from document
13399 main = interact $ jsonFilter $ bottomUp removeLink
13400 where removeLink (Link xs _) = Emph xs
13403 To use this to remove links while translating markdown to LaTeX:
13405 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
13407 * Attributes are now allowed in inline `Code` elements, for example:
13409 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
13411 The attribute syntax is the same as for delimited code blocks.
13412 `Code` inline has an extra argument place for attributes, just like
13413 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
13414 is compiled with highlighting support. Resolves Issue #119.
13416 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
13417 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
13418 scripts to transform Pandoc documents. Scripts can now change
13419 how each element is rendered in each output format.
13421 * You can now define LaTeX macros in markdown documents, and pandoc
13422 will apply them to TeX math. For example,
13424 \newcommand{\plus}[2]{#1 + #2}
13427 yields `3+4`. Since the macros are applied in the reader, they
13428 will work in every output format, not just LaTeX.
13430 * LaTeX macros can also be used in LaTeX documents (both in math
13431 and in non-math contexts).
13433 * A new `--mathjax` option has been added for displaying
13434 math in HTML using MathJax. Resolves issue #259.
13436 * Footnotes are now supported in the RST reader. (Note, however,
13437 that unlike docutils, pandoc ignores the numeral or symbol used in
13438 the note; footnotes are put in an auto-numbered ordered list.)
13439 Resolves Issue #258.
13441 * A new `--normalize` option causes pandoc to normalize the AST
13442 before writing the document. This means that, for example,
13443 `*hi**there*` will be rendered as `<em>hithere</em>`
13444 instead of `<em>hi</em><em>there</em>`. This is not the default,
13445 because there is a significant performance penalty.
13447 * A new `--chapters` command-line option causes headers
13448 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
13449 Resolves Issue #265.
13451 * In DocBook output, `<chapter>` is now used for top-level
13452 headers if the template contains `<book>`. Resolves Issue #265.
13454 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
13455 the LaTeX writer to use the listings package for code blocks.
13456 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
13457 Millon for the markdown2pdf patch.)
13459 * `markdown2pdf` now supports `--data-dir`.
13461 * URLs in autolinks now have class "url" so they can be styled.
13463 * Improved prettyprinting in most formats. Lines will be wrapped
13464 more evenly and duplicate blank lines avoided.
13466 * New `--columns` command-line option sets the column width for
13467 line wrapping and relative width calculations for tables.
13469 * Made `--smart` work in HTML, RST, and Textile readers, as well
13472 * Added `--html5` option for HTML5 output.
13474 * Added support for listings package in LaTeX reader
13475 (Puneeth Chaganti).
13477 * Added support for simple tables in the LaTeX reader.
13479 * Added support for simple tables in the HTML reader.
13481 * Significant performance improvements in many readers and writers.
13483 [API and program changes]
13485 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
13486 auxiliary package, `pandoc-types`. This will make it possible for other
13487 programs to supply output in Pandoc format, without depending on the whole
13490 * Added `Attr` field to `Code`.
13492 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
13493 `RawBlock` and `RawInline`.
13495 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
13496 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
13497 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
13499 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
13501 * `Text.Pandoc` now exports association lists `readers` and `writers`.
13503 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
13504 `readNative` can now read full pandoc documents, block lists, blocks,
13505 inline lists, or inlines. It will interpret `Str "hi"`
13506 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
13507 This should make testing easier.
13509 * Removed deprecated `-C/--custom-header` option.
13510 Use `--template` instead.
13512 * `--biblio-file` has been replaced by `--bibliography`.
13513 `--biblio-format` has been removed; pandoc now guesses the format
13514 from the file extension (see README).
13516 * pandoc will treat an argument as a URI only if it has an
13517 `http(s)` scheme. Previously pandoc would treat some
13518 Windows pathnames beginning with `C:/` as URIs.
13520 * The `--sanitize-html` option and the `stateSanitize` field in
13521 `ParserState` have been removed. Sanitization is better done in the
13522 resulting HTML using `xss-sanitize`, which is based on pandoc's
13523 sanitization, but improved.
13525 * pandoc now adds a newline to the end of its output in fragment
13526 mode (= not `--standalone`).
13528 * Added support for `lang` in `html` tag in the HTML template,
13529 so you can do `pandoc -s -V lang=es`, for example.
13531 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
13532 a boolean argument that selects between "inline" and
13535 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
13536 Images are embedded in RTF output when possible (png, jpeg).
13537 Resolves Issue #275.
13539 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
13540 `pretty` package. Changed all writers that used
13541 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
13543 * Rewrote `writeNative` using the new prettyprinting module. It is
13544 now much faster. The output has been made more consistent and compressed.
13545 `writeNative` is also now sensitive to writerStandalone`, and will simply
13546 `print a block list if writerStandalone` is False.
13548 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
13549 blocks and concatenate them, so a separate module is no longer needed.
13551 * `Text.Pandoc.Shared`:
13553 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
13555 + Added `normalize`.
13556 + Removed unneeded prettyprinting functions:
13557 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
13558 `BlockWrapper`, `wrappedBlocksToDoc`.
13559 + Made `splitBy` take a test instead of an element.
13560 + Added `findDataFile`, refactored `readDataFile`.
13561 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
13562 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
13564 * `Text.Pandoc.Readers.HTML`:
13566 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
13567 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
13568 `htmlBlockElement`, `htmlComment`
13569 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
13572 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
13573 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
13576 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
13578 * Ellipses are no longer allowed to contain spaces.
13579 Previously we allowed '. . .', ' . . . ', etc. This caused
13580 too many complications, and removed author's flexibility in
13581 combining ellipses with spaces and periods.
13583 * Allow linebreaks in URLs (treat as spaces). Also, a string of
13584 consecutive spaces or tabs is now parsed as a single space. If you have
13585 multiple spaces in your URL, use `%20%20`.
13587 * `Text.Pandoc.Parsing`:
13589 + Removed `refsMatch`.
13590 + Hid `Key` constructor.
13591 + Removed custom `Ord` and `Eq` instances for `Key`.
13592 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
13593 + Generalized type on `readWith`.
13595 * Small change in calculation of relative widths of table columns.
13596 If the size of the header > the specified column width, use
13597 the header size as 100% for purposes of calculating
13598 relative widths of columns.
13600 * Markdown writer now uses some pandoc-specific features when `--strict`
13601 is not specified: `\` newline is used for a hard linebreak instead of
13602 two spaces then a newline. And delimited code blocks are used when
13603 there are attributes.
13605 * HTML writer: improved gladTeX output by setting ENV appropriately
13606 for display or inline math (Jonathan Daugherty).
13608 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
13612 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
13613 + `\index{}` commands are skipped.
13615 * Added `fontsize` variable to default LaTeX template.
13616 This makes it easy to set the font size using `markdown2pdf`:
13617 `markdown2pdf -V fontsize=12pt input.txt`.
13619 * Fixed problem with strikeout in LaTeX headers when using
13620 hyperref, by adding a command to the default LaTeX template
13621 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
13624 * The `COLUMNS` environment variable no longer has any effect.
13626 [under-the-hood improvements]
13628 * Pandoc now compiles with GHC 7. (This alone leads to a
13629 significant performance improvement, 15-20%.)
13631 * Completely rewrote HTML reader using tagsoup as a lexer. The
13632 new reader is faster and more accurate. Unlike the
13633 old reader, it does not get bogged down on some input
13634 (Issues #277, 255). And it handles namespaces in tags
13637 * Replaced `escapeStringAsXML` with a faster version.
13639 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
13640 for a significant performance boost.
13642 * Improved performance of all readers by rewriting parsers.
13644 * Simplified Text.Pandoc.CharacterReferences by using
13645 entity lookup functions from TagSoup.
13647 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
13648 from `System.IO` if base >= 4.2. This gives support for
13649 windows line endings on windows.
13651 * Remove duplications in documentation by generating the
13652 pandoc man page from README, using `MakeManPage.hs`.
13654 * README now includes a full description of markdown syntax,
13655 including non-pandoc-specific parts. A new `pandoc_markdown`
13656 man page is extracted from this, so you can look up markdown
13657 syntax by doing `man pandoc_markdown`.
13659 * Completely revised test framework (with help from Nathan Gass).
13660 The new test framework is built when the `tests` Cabal flag is set. It
13661 includes the old integration tests, but also some new unit and quickcheck
13662 tests. Test output has been much improved, and you can now specify a glob
13663 pattern after `cabal test` to indicate which tests should be run;
13664 for example `cabal test citations` will run all the citation tests.
13666 * Added a shell script, `stripansi.sh`, for filtering ANSI control
13667 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
13669 * Added `Interact.hs` to make it easier to use ghci while developing.
13670 `Interact.hs` loads `ghci` from the `src` directory, specifying
13671 all the options needed to load pandoc modules (including
13672 specific package dependencies, which it gets by parsing
13673 dist/setup-config).
13675 * Added `Benchmark.hs`, testing all readers + writers using criterion.
13677 * Added `stats.sh`, to make it easier to collect and archive
13678 benchmark and lines-of-code stats.
13680 * Added upper bounds to all cabal dependencies.
13682 * Include man pages in extra-source-files. This allows users to
13683 install pandoc from the tarball without needing to build the man
13688 * Filenames are encoded as UTF8. Resolves Issue #252.
13690 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
13691 were just parsed literally, leading to problems in some output formats.
13692 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
13693 Resolves Issue #270.
13695 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
13696 Spaces at end of line were not being stripped properly,
13697 resulting in unintended LineBreaks.
13701 + Allow HTML comments as inline elements in markdown.
13702 So, `aaa <!-- comment --> bbb` can be a single paragraph.
13703 + Fixed superscripts with links: `^[link](/foo)^` gets
13704 recognized as a superscripted link, not an inline note followed by
13706 + Fixed regression, making markdown reference keys case-insensitive again.
13707 Resolves Issue #272.
13708 + Properly handle abbreviations (like `Mr.`) at the end of a line.
13709 + Better handling of intraword underscores, avoiding exponential
13710 slowdowns in some cases. Resolves Issue #182.
13711 + Fixed bug in alignments in tables with blank rows in the header.
13715 + Field lists now allow spaces in field names, and
13716 block content in field values. (Thanks to Lachlan Musicman
13717 for pointing out the bug.)
13718 + Definition list items are now always `Para` instead of
13719 `Plain`, matching behavior of `rst2xml.py`.
13720 + In image blocks, the description is parsed properly and
13721 used for the alt attribute, not also the title.
13722 + Skip blank lines at beginning of file. Resolves
13727 + Improved parsing of preamble.
13728 Previously you'd get unexpected behavior on a document that
13729 contained `\begin{document}` in, say, a verbatim block.
13730 + Allow spaces between `\begin` or `\end` and `{`.
13731 + Support `\L` and `\l`.
13732 + Skip comments inside paragraphs.
13736 + Escape strings in `\href{..}`.
13737 + In nonsimple tables, put cells in `\parbox`.
13739 * OpenDocument writer: don't print raw TeX.
13743 + Fixed bug in `Image`. URI was getting unescaped twice!
13744 + Avoid printing extra blank lines at the end if there are
13745 no notes or references.
13747 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
13748 This avoids unwanted interpretation as an optional argument.
13750 * ConTeXt writer: Fixed problem with inline code. Previously
13751 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
13752 If it contains neither, use `\type{}`; otherwise use `\mono{}`
13753 with an escaped version of the string.
13755 * `:` now allowed in HTML tags. Resolves Issue #274.
13759 [ John MacFarlane ]
13761 * New EPUB and HTML Slidy writers. (Issue #122)
13763 - EPUB is a standard ebook format, used in Apple's iBooks for
13764 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
13765 reader, and many other devices.
13766 - Slidy, like S5, is a system for producing HTML+javascript slide
13769 * All input is assumed to be UTF-8, no matter what the locale and ghc
13770 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
13771 Also, a BOM, if present, is stripped from the input.
13773 * Markdown now supports grid tables, whose cells can contain
13774 arbitrary block elements. (Issue #43)
13776 * Sequentially numbered example lists in markdown with `@` marker.
13778 * Markdown table captions can begin with a bare colon and no longer need
13779 to include the English word "table." Also, a caption can now occur
13780 either before or after the table. (Issue #227)
13782 * New command-line options:
13784 - `--epub-stylesheet` allows you to specify a CSS file that will
13785 be used to style your ebook.
13786 - `--epub-metadata` allows you to specify metadata for the ebook.
13787 - `--offline` causes the generated HTML slideshow to include all
13788 needed scripts and stylesheets.
13789 - `--webtex` causes TeX math to be converted to images using the
13790 Google Charts API (unless a different URL is specified).
13791 - `--section-divs` causes div tags to be added around each section
13792 in an HTML document. (Issue #230, 239)
13794 * Default behavior of S5 writer in standalone mode has changed:
13795 previously, it would include all needed scripts and stylesheets
13796 in the generated HTML; now, only links are included unless
13797 the `--offline` option is used.
13799 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
13800 pandoc would enclose sections in div tags with identifiers on the
13801 div tags, so that the sections can be manipulated in javascript.
13802 This caused undesirable interactions with raw HTML div tags. So,
13803 starting with 1.6, the default is to put the identifiers directly
13804 on the header tags, and not to include the divs. The `--section-divs`
13805 option selects the 1.2-1.5 behavior.
13809 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
13810 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
13811 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
13812 `writerIncludeAfter`.
13813 - Added `headerShift` to `Text.Pandoc.Shared`.
13814 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
13815 to a new module, `Text.Pandoc.Parsing`.
13816 - Added `stateHasChapters` to `ParserState`.
13817 - Added `HTMLSlideVariant`.
13818 - Made `KeyTable` a map instead of an association list.
13819 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
13821 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
13823 - Reference keys now have a type of their own (`Key`), with its
13824 own `Ord` instance for case-insensitive comparison.
13825 - Added `Text.Pandoc.Writers.EPUB`.
13826 - Added `Text.Pandoc.UUID`.
13827 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
13828 Removed `saveOpenDocumentAsODT`, added `writeODT`.
13829 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
13830 Removed `prettyPandoc`.
13831 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
13832 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
13833 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
13834 To write S5, you now use `writeHtml` with `writerSlideVariant`
13835 set to `S5Slides` or `SlidySlides`.
13837 * Template changes. If you use custom templates, please update them,
13838 particularly if you use syntax highlighting with pandoc. The old HTML
13839 templates hardcoded highlighting CSS that will no longer work with
13840 the most recent version of highlighting-kate.
13842 - HTML template: avoid empty meta tag if no date.
13843 - HTML template: Use default highlighting CSS from highlighting-kate
13844 instead of hard-coding the CSS into the template.
13845 - HTML template: insert-before text goes before the title, and
13846 immediately after the <body> tag, as documented. (Issue #241)
13847 - Added slidy and s5 templates.
13848 - Added amssymb to preamble of latex template. (github Issue 1)
13850 * Removed excess newlines at the end of output. Note: because output
13851 will not contain an extra newline, you may need to make adjustments
13852 if you are inserting pandoc's output into a template.
13854 * In S5 and slidy, horizontal rules now cause a new slide, so you
13855 are no longer limited to one slide per section.
13857 * Improved handling of code in man writer. Inline code is now monospace,
13858 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
13860 * HTML reader parses `<tt>` as Code. (Issue #247)
13862 * html+lhs output now contains bird tracks, even when compiled without
13863 highlighting support. (Issue #242)
13865 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
13866 since they have a special meaning in XML.
13868 * Code improvements in ODT writer. Remote images are now replaced with
13869 their alt text rather than a broken link.
13871 * LaTeX reader improvements:
13873 - Made latex `\section`, `\chapter` parsers more forgiving of
13875 - Parse `\chapter{}` in latex.
13876 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
13877 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
13878 for use in markdown reader.
13879 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
13880 in markdown document.
13882 * LaTeX writer: images are automatically shrunk if they would extend
13883 beyond the page margin.
13885 * Plain, markdown, RST writers now use unicode for smart punctuation.
13887 * Man writer converts math to unicode when possible, as in other writers.
13889 * `markdown2pdf` can now recognize citeproc options.
13891 * Command-line arguments are converted to UTF-8. (Issue #234)
13893 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
13894 This allows it to handle a wider range of formulas. Also, if a formula
13895 cannot be converted, it is left in raw TeX; formulas are no longer
13896 partially converted.
13898 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
13901 * Cabal file changes:
13903 - Removed parsec < 3 restriction.
13904 - Added 'threaded' flag for architectures where GHC lacks a threaded
13906 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
13907 - Require highlighting-kate 0.2.7.
13909 * Use explicit imports from `Data.Generics`. Otherwise we have a
13910 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
13912 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
13916 [ John MacFarlane ]
13918 * Fixed uniqueIdent in Shared so that header identifiers work as
13919 advertized in the README and are are valid XHTML names.
13923 [ John MacFarlane ]
13925 * Fixed treatment of unicode characters in URIs.
13926 + Shared now exports escapeURI and unescapeURI. These handle
13927 UTF8 encoding and decoding as well as URI escaping/unescaping.
13928 + Shared: uri and emailAddress now return a pair of the original
13929 parsed text and the escaped URI (in the latter case, with
13930 the mailto: prefix).
13931 + HTML reader: unsanitaryURI has been modified to allow unicode
13932 high characters in a URI.
13933 + Readers: All link and image URIs are now escaped using
13935 + Markdown and RST writers: unescapeURI is used so that URIs
13936 in these formats are human-readable.
13938 * Setup.hs: Don't assume that the build directory is "dist".
13939 Instead, get it from localBuildInfo.
13941 * OpenDocument writer: Use a Map for stTextStyleAttr.
13942 This avoids duplicates (and invalid xml). Resolves Issue #222.
13946 [ John MacFarlane ]
13948 * HTML writer: Fixed error in math writer (with MathML option)
13949 that caused an infinite loop for unparsable MathML.
13953 [ John MacFarlane ]
13955 * Added --mathml option. When this is selected, pandoc will convert
13956 TeX math into MathML.
13957 + Added data/MathMLinHTML.js, which is included when no URL is
13958 provided for --mathml. This allows MathML to be displayed (in
13959 better browsers) as text/html.
13960 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
13961 necessary; it was replaced by two lines in pandoc.hs.
13962 + Replaced LaTeXMathML.js.comment and LaTeXMathML.js.packed with a
13963 single combined file, LaTeXMathML.js.
13965 * Added --data-dir option.
13966 This specifies a user data directory. If not specified, will default
13967 to ~/.pandoc on unix or Application Data\pandoc on Windows.
13968 Files placed in the user data directory will override system default
13971 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
13972 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
13973 Nothing, no user directory is searched for an override.
13975 * Added 'plain' output format. This is similar to markdown, but
13976 removes links, pictures, inline formatting, and most anything that
13977 looks even vaguely markupish. The function writePlain is exported by
13978 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
13980 * Allow multi-line titles and authors in meta block.
13981 Titles may span multiple lines, provided continuation lines
13982 begin with a space character. Separate authors may be put on
13983 multiple lines, provided each line after the first begins with
13984 a space character. Each author must fit on one line. Multiple
13985 authors on a single line may still be separated by a semicolon.
13986 Based on a patch by Justin Bogner.
13988 * When given an absolute URI as parameter, pandoc will try to fetch
13989 the content via HTTP. So you can do:
13990 'pandoc -r html -w markdown http://www.fsf.org'
13991 Adds dependency on HTTP.
13993 * Made HTML reader much more forgiving.
13994 + Incorporated idea (from HXT) that an element can be closed
13995 by an open tag for another element.
13996 + Javascript is partially parsed to make sure that a <script>
13997 section is not closed by a </script> in a comment or string.
13998 + More lenient non-quoted attribute values.
13999 Now we accept anything but a space character, quote, or <>.
14000 This helps in parsing e.g. www.google.com!
14001 + Bare & signs are now parsed as a string. This is a common
14003 + Skip a bare < in malformed HTML.
14005 * Removed html2markdown and hsmarkdown.
14006 + html2markdown is no longer needed, since you can now pass URI
14007 arguments to pandoc and directly convert web pages. (Note,
14008 however, that pandoc assumes the pages are UTF8. html2markdown
14009 made an attempt to guess the encoding and convert them.)
14010 + hsmarkdown is pointless -- a large executable that could be
14011 replaced by 'pandoc --strict'.
14013 * In most writers, an image in a paragraph by itself is now rendered
14014 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
14015 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
14018 * Depend on extensible-exceptions. This allows pandoc to be compiled
14021 * Added --base-header-level option. For example, --base-header-level=2
14022 will change level 1 headers to level 2, level 2 to level 3, etc.
14023 Closes Debian #563416.
14025 * Incomplete support for RST tables (simple and grid).
14026 Thanks to Eric Kow. Colspans and rowspans not yet supported.
14028 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
14030 * MediaWiki writer: format links with relative URLs as wikilinks.
14031 The new rule: If the link target is an absolute URL, an external
14032 link is created. Otherwise, a wikilink is created.
14034 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
14035 identifier. Note: This may break links to sections that involve
14038 * Markdown(+lhs) reader: handle "inverse bird tracks."
14039 Inverse bird tracks (<) are used for haskell example code that is not
14040 part of the literate Haskell program. Resolves Issue #211.
14043 + Recognize '\ ' (interword space).
14044 + Recognize nonbreaking space '~'.
14045 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
14046 section headers. Don't treat \section as inline LaTeX.
14047 Resolves Issue #202.
14048 + LaTeX reader: allow any special character to be escaped.
14049 Resolves Issue #221.
14050 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
14051 headers. Resolves Issue #207.
14053 * Use template variables for include-before/after.
14054 + These options now imply -s; previously they worked also in fragment
14056 + Users can now adjust position of include-before and include-after
14057 text in the templates.
14058 + Default position of include-before moved back (as it was before 1.4)
14059 before table of contents.
14060 + Resolves Issue #217.
14062 * Don't print an empty table header: (all writers).
14063 Resolves Issue #210.
14065 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
14067 * HTML writer: Don't include TOC div if table of contents is empty.
14069 * Markdown writer: Fixed citations.
14070 Previously the markdown writer printed raw citation codes, e.g.
14071 [geach1970], rather than the expanded citations provided by
14072 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
14073 This means that the document produced can be processed as a markdown
14074 document without citeproc. Thanks to dsanson for reporting, and
14075 Andrea Rossato for the patch.
14077 * Improved and simplified title block in context template.
14078 Previously it caused an error if there was no title.
14079 This method should also be easier for users to customize.
14082 + Treat p., pp., sec., ch., as abbreviations in smart mode.
14083 + Disallow blank lines in inline code span.
14084 + Allow footnotes to be indented < 4 spaces.
14085 This fixes a regression. A test case has been added.
14086 + Escape spaces in URLs as %20. Previously they were incorrectly
14087 escaped as +, which is appropriate only for the query part of
14088 a URL. Resolves Issue #220.
14089 + Require two spaces after capital letter + period for list item.
14090 Otherwise "E. coli" starts a list. This might change the semantics
14091 of some existing documents, since previously the two-space
14092 requirement was only enforced when the second word started
14093 with a capital letter. But it is consistent with the existing
14094 documentation and follows the principle of least surprise.
14095 Resolves Issue #212.
14097 * LaTeX template: redefine labelwidth when using enumerate package.
14098 Otherwise the list labels (numbers) often extend past the left
14099 margin, which looks bad.
14101 * Mediawiki writer: Don't print a "== Notes ==" header before
14102 references. This is too English-centric. Writers can provide their
14103 own header at the end of the document.
14105 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
14106 level 2, etc. This seems to be correct; it's only by convention
14107 that wikipedia articles have level 2 headers at most.
14108 Patch due to Eric Kow.
14110 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
14111 data files don't need to have been installed. This removes the need to
14115 + Handle spaces before <html>. Resolves Issue #216.
14116 + Be forgiving in parsing a bare list within a list.
14117 The following is not valid xhtml, but the intent is clear:
14120 <ol><li>sub</li></ol>
14123 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
14125 * Updated INSTALL instructions. cabal method is now promoted.
14127 * Updated markdown2pdf man page. It no longer says all pandoc options
14130 * README/man pages: Removed advice to pipe through tidy before HTML
14131 reader. This is obsolete, now that we have a forgiving HTML parser.
14133 * LaTeX writer: set numbersections template variable, so
14134 the section numbering options work again.
14136 * Removed obsolete Makefile.
14138 * Website: renamed index.txt.in -> index.txt.
14140 * New batch file to make-windows-installer.
14141 + Removed old Makefile.windows
14142 + Added make-windows-installer.bat
14143 + Modified default installer name in pandoc-setup.iss
14145 * Removed freebsd and macports directories.
14146 They are no longer up to date.
14149 + Made man page building sensitive to build verbosity.
14150 + Improved detection of highlighting support in test hook.
14151 + Install wrapper scripts into cabal bin directory.
14152 + Also simplified installManpages.
14153 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
14155 * Changed default of writerXeTeX to False.
14157 * HTML writer: don't include empty UL if --toc but no sections.
14158 Resolves Issue #199.
14162 + If book, report, or memoir documentclass, use \chapter{}
14163 for first-level headers. Otherwise use \section{}.
14164 + Removed stLink, link template variable. Reason: we now always
14165 include hyperref in the template.
14169 + Only show \author if there are some.
14170 + Always include hyperref package. It is used not just for links but
14171 for toc, section heading bookmarks, footnotes, etc. Also added
14172 unicode=true on hyperref options.
14174 * markdown2pdf: always do at least two runs. hyperref bookmarks
14177 * cabal file: Removed unneeded dependency on template-haskell.
14179 * Windows installer - fixed bug in data file locations.
14180 Resolves Issue #197.
14182 * Deprecated --custom-header in documentation.
14183 Removed old "Custom Headers" section in README.
14187 [ John MacFarlane ]
14189 * Pandoc will now compile with either GHC 6.10 or 6.12.
14190 + Don't use System.IO.UTF8 when compiling with 6.12
14191 + Use -fno-warn-unused-do-bind option when compiling with 6.12
14193 * Replaced old headers with templates. Now users have much more
14194 control over the way documents appear in --standalone mode,
14195 and writer code is simplified. Resolves Issues #59, 147.
14196 Every effort has been made to retain backwards compatibility.
14197 So, the --custom-header option should still work as before.
14199 + Added Text.Pandoc.Templates. This provides functions for
14200 retrieving default templates and for rendering templates.
14201 + System templates (in the pandoc data directory) can be
14202 overridden by user templates in $HOME/.pandoc/templates.
14203 + Removed Text.Pandoc.DefaultHeaders.
14204 + Removed data/headers directory.
14205 + Added templates directory.
14206 + Added writerTemplate and writerVariables fields to WriterOptions.
14207 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
14208 + Changed --print-default-header to --print-default-template.
14209 + Added --template option.
14210 + Added -V/--variable option to set custom template variables.
14212 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
14214 + Removed need for TH in ODT module. Instead get reference.odt from
14215 data file at run time.
14216 + Removed TH dependency from S5 module. S5 module now exports
14217 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
14219 + Refactored LaTeXMathML not to use TH.
14221 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
14222 Meta [Inline] [String] String. Authors and date in Meta are now lists
14223 of Inline elements rather than raw strings. This means that they can
14224 be formatted and can include footnotes. NOTE: This may be a breaking
14225 change for those using pandoc as a library.
14227 * Added readDataFile to Text.Pandoc.Shared. This retrieves
14228 a data file from the user pandoc data directory (~/.pandoc
14229 on unix), or, if not found there, from the system data
14230 directory ($CABALDIR/shared/pandoc-VERSION/). All data
14231 files, including templates, LaTeXMathML.js, s5 styles,
14232 and reference.odt, can be overridden by the user.
14234 * s5 files moved from data/ui/default to s5/default.
14236 * Use unicode instead of entities in HTML and XML output. Resolves
14239 * Prettier HTML footnote references: put anchor inside sup,
14240 instead of other way. Resolves Issue #191. Thanks to
14243 * Added --xetex option to pandoc and markdown2pdf.
14244 If --xetex is specified, pandoc produces latex suitable for
14245 processing by xelatex, and markdown2pdf uses xelatex to create
14246 the PDF. Resolves Issue #185.
14248 * RTF writer: multiple authors now occupy multiple paragraphs rather
14249 than using a line break.
14251 * Man writer: now the "--after-body" will come after the "AUTHORS"
14252 section, whereas before it would come before it. This is a
14253 slight break from backwards compatibility.
14255 * Added --reference-odt option, so users may customize the styles
14256 used in pandoc-generated ODT files. Users may also place a
14257 default reference.odt in the ~\.pandoc directory.
14260 + Indented and line-broke styles.xml so it can be modified more easily.
14261 + Omitted some unnecessary style declarations.
14262 + Don't wrap text in OpenDocument writer. The tags are too long, making
14263 wrapping ugly and pointless.
14265 * LaTeX reader: use \\ to separate multiple authors.
14267 * Markdown reader: use ; as separator between authors.
14268 This allows you to use ',' within author names: e.g. "John Jones, Jr."
14270 * S5 writer: use linebreak to separate authors in title page.
14272 * RST reader: Allow :: before lhs code block. The RST spec requires the
14273 :: before verbatim blocks. This :: should not be treated as literal
14274 colons. Resolves Issue #189.
14276 * Documented pandoc 1.3's new definition list syntax in README.
14277 (An oversight in the last release.)
14280 + interpret ! in a log as an error line.
14281 + --toc now works properly.
14283 * Changes in RunTests.hs:
14284 + Use the Diff library rather than a local copy of Diff.hs.
14285 (This vastly increases performance.) This change means that 'cabal
14286 test' presupposes that the Diff library is installed.
14287 + Removed tests/Diff.hs from cabal file.
14288 + Changed RunTests to use local environment. We need at least HOME, so
14289 pandoc can find its data directory.
14291 * Updated windows installer to install data files in the app directory.
14293 * Windows installer now installs portable wrappers hsmarkdown and
14298 [ John MacFarlane ]
14300 * Added --id-prefix option (Issue #41). This adds a prefix to all
14301 automatically generated HTML identifiers, which helps prevent
14302 duplicate identifiers when you're generating a fragment (say a blog
14305 * Added --indented-code-classes option. This specifies classes
14306 to use for indented code blocks. (Patch due to buttock; Issue #87.)
14308 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
14311 * Improved syntax for markdown definition lists (Issue #24).
14312 Definition lists are now more compatible with PHP Markdown Extra.
14313 + You can have multiple definitions for a term (but still not
14315 + Multi-block definitions no longer need a column before each block
14316 (indeed, this will now cause multiple definitions).
14317 + The marker no longer needs to be flush with the left margin,
14318 but can be indented at or two spaces. Also, ~ as well as :
14319 can be used as the marker (this suggestion due to David
14321 + There can now be a blank line between the term and the
14324 * Better looking simple tables. Resolves Issue #180.
14325 + Markdown reader: simple tables are now given column widths of 0.
14326 + Column width of 0 is interpreted as meaning: use default column width.
14327 + Writers now include explicit column width information only
14328 for multiline tables. (Exception: RTF writer, which requires
14329 column widths. In this case, columns are given equal widths,
14330 adding up to the text width.)
14331 + Simple tables should now look better in most output formats.
14333 * Allow markdown tables without headers (Issue #50).
14334 The new syntax is described in README. Also allow optional line of
14335 dashes at bottom of simple tables.
14337 * Compensate for width of final table column (Issue #144).
14339 * Treat a backslash followed by a newline as a hard line break
14340 in markdown. Resolves Issue #154. This is a nice alternative
14341 to markdown's "invisible" way of indicating hardline breaks
14342 using lines that end with two spaces.
14344 * Improved performance of markdown reader by ~10% by eliminating the
14345 need for a separate parsing pass for notes. Raw notes are now stored
14346 on the first pass (which parses references), then parsed when the
14347 note is inserted into the AST. The stateNotes field in ParserState
14348 is now a list of [(String, String)] pairs instead of [(String,
14351 * In markdown reader, treat 4 or more * or _ in a row as literal
14352 text. (Trying to parse long strings of * or _ as strong or emph
14353 leads to exponential performance problems.)
14355 * Markdown reader: Use + rather than %20 for spaces in URLs.
14357 * Fixed htmlComment parser, adding a needed 'try'.
14359 * Don't print raw HTML in man output.
14361 * Allow . _ and ~ in header identifiers.
14363 * Specially mark code blocks that were "literate" in the input.
14364 They can then be treated differently in the writers. This allows
14365 authors to distinguish bits of the literate program they are writing
14366 from source code examples, even if the examples are marked as
14367 Haskell for highlighting. (Issue #174.)
14369 * Modified html+lhs output to use "haskell" highlighter instead
14370 of "literateHaskell". The highlighting module now adds bird tracks
14371 after highlighting (for HTML output), if the code block has the
14372 "literate" class. This gives better results, because kate's
14373 haskell highlighter is much better than the literateHaskell
14376 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
14379 * Support for "..code-block" directive in RST reader. Not core
14380 RST, but used in Sphinx for code blocks annotated with syntax
14381 information. Thanks to Luke Plant for the patch.
14383 * Added "head" to list of block-level HTML tags. Resolves
14386 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
14388 * Set utf-8 encoding in texinfo headers.
14390 * Docbook writer: add ids to sections. Use link for internal links.
14393 * Blank lines after lists in MediaWiki writer.
14395 * Properly handle commented-out list items in markdown.
14396 Resolves Issue #142. Example:
14404 * Changed heuristic in compactify. compactify has to decide whether a
14405 Para that ends a list is a Para intentionally, or just because of
14406 the blank lines at the end of every list. In the latter case the
14407 Para is turned to a Plain. The old heuristic was: change final Para
14408 to Plain iff the other items all end in Plain. This produces bad
14409 results when, for example, an item contains just a Plain and an HTML
14410 comment, as it does in the list above. The new heuristic: change
14411 final Para to Plain iff the other items don't contain a Para.
14413 * Added % as an rst underline character. Resolves Issue #173.
14415 * Fix inline math parser so that \$ is allowed in math.
14416 Resolves Issue #169.
14418 * Translate \int (integral) into unicode when using unicode math
14419 method. Resolves Issue #177.
14421 * markdown2pdf.hs improvements:
14422 + Use System.IO.UTF8.
14423 + Print error messages on last attempt.
14424 + Do not create a backup when overwriting a PDF (Issue #166).
14425 + Accept --longopt=val options.
14426 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
14427 it is properly cleaned.
14429 * Added haddock comments warning that readers assume \n line endings.
14431 * Updated COPYRIGHT file.
14433 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
14434 markdown2pdf. Otherwise strip tries to strip shell scripts when you
14435 install using 'make'.
14437 * Changed Makefile so it doesn't build Haskell wrappers.
14439 * Fixed Makefile so it doesn't try to build man pages in build-doc.
14441 * Install pcre3.dll in Windows install script; this allows us to
14442 package a version of pandoc with highlighting support.
14446 [ John MacFarlane ]
14448 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
14449 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
14450 side effect: strings of 0 spaces were interpreted as indentation.
14451 So, with --preserve-tabs, unindented paragraphs were treated as
14452 code. Resolves Issue #138.
14454 * HTML writer: wrap sections in divs. Resolves Issue #70.
14456 + hierarchicalize has been rationalized; it builds a hierarchical
14457 representation of the document from the headers, and simultaneously
14458 gives each section a unique identifier based on the heading title.
14459 + Identifiers are now attached to the divs rather than
14460 to the headers themselves.
14461 + Table of content backlinks go to the beginning of the table, rather
14462 than to the section reference that was clicked.
14463 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
14464 from the HTML writer, since it is now consumed only by
14466 + In --strict mode, pandoc just prints bare headings, as before
14467 (unless --toc has been specified).
14468 + In s5 output, it does not wrap sections in divs, as that seems to
14469 confuse the s5 javascript.
14471 * Man writer: break lines at end of each sentence. groff expects this
14472 and treats '.' and '?' differently when followed by line ending as
14473 opposed to ordinary space. Also, don't escape periods. Instead, use
14474 zero-width character \& to avoid unwanted interpretation of periods
14475 at start of line. Resolves Issue #148.
14477 * Markdown writer: Added '#' and '>' to list of characters to be
14478 escaped in markdown output. Removed '<', as it is not an officially
14479 escapable character. This partially resolves Issue #96.
14481 * Make --smart the default for man output format. Otherwise we have
14482 trouble dividing lists of endlines into sentences.
14484 * DocBook writer: Use language attribute to indicate source language
14489 + Allow # to continue list, even if the list was started with an
14490 explicit marker. For example:
14495 Resolves Issue #140.
14496 + Allow continuation lines in line blocks. Also added test cases for
14497 line blocks for RST reader. Resolves Issue #149.
14498 + Allow explicit links with spaces in URL: `link <to this>`_
14500 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
14501 (which is not in LaTeX) and recognize all the amsmath environments
14502 that are alternatives to eqnarray, namely equation, equation*,
14503 gather, gather*, gathered, multline, multline*, align, align*,
14504 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
14505 Thanks to shreevatsa.public for the patch.
14509 + Allow -, _, :, . in markdown attribute names. These are legal in
14510 XML attribute names.
14511 + Use non-breaking spaces in abbreviations.
14512 + Markdown reader: improved efficiency of abbreviation parsing.
14513 Instead of a separate abbrev parser, we just check for
14514 abbreviations each time we parse a string. This gives a huge
14515 performance boost with -S. Resolves Issue #141.
14517 * Improved efficiency of shared parsers: hexNum, htmlComment,
14518 whitespace, indentSpaces.
14520 * Export HTMLMathMethod in Text.Pandoc.
14522 * Export languagesByExtension in Text.Pandoc.Highlighting.
14524 * Added new Haskell version of markdown2pdf, due to
14525 Paulo Tanimoto. This should be more portable than the old
14528 * Made 'pandoc -v' more explicit about compiler options.
14529 Resolves Issue #139.
14531 * pandoc.hs: Made --strict compatible with --standalone, --toc.
14533 * Use Paths_pandoc to get version number, instead of hard-coding it
14534 into Text/Pandoc.hs.
14538 [ John MacFarlane ]
14540 * Added support for literate Haskell. lhs support is triggered by
14541 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
14542 Haskell LaTeX. '.lhs' files are treated by default as literate
14545 + Added stateLiterateHaskell to parser state.
14546 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
14547 + Added parser for |inline lhs| to LaTeX reader.
14548 + Added writerLiterateHaskell to WriterOptions.
14549 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
14550 + Added definition of code environment to LaTeX header.
14551 + Added tests (run only if highlighting support compiled in).
14552 + Documented lhs features in man page and README.
14554 * In Text.Pandoc.Definition, added processWith, processWithM,
14555 and queryWith, and deprecated processPandoc and queryPandoc
14556 for these more general functions.
14558 * Fixed bug in mediawiki writer: improper closing tags in tables.
14559 Thanks to Benct Philip Jonsson for reporting the bug.
14561 * Added --email-obfuscation option.
14563 + Added writer option for email obfuscation.
14564 + Implemented email obfuscation options in HTML writer.
14565 + Added option to option parser.
14566 + Documented in README and pandoc man page.
14567 + Resolves Issue #97.
14569 * LaTeX writer: fixed bug with empty table cells.
14570 Resolves Issue #107. Thanks to rodja.trappe for the patch.
14572 * Fixed bug with header spacing in Markdown and RST writers.
14573 A null header (Meta [] [] []) should not cause a blank line
14574 at the beginning of output. But a blank line is needed between
14575 a non-null header and the main text.
14577 * Markdown reader: Relax spacing rules for $$ in display math. Now
14578 space and newlines are allowed after the opening $$ and before the
14579 closing $$. However, the display math cannot contain an entirely
14580 blank line. Resolves Issue #105.
14582 * Markdown reader: Gobble space after Plain blocks containing only
14583 raw html inline. Otherwise following header blocks are not parsed
14584 correctly, since the parser sees blank space before them. Resolves
14587 * Markdown reader: Allow " as well as '' to end a latex double-quote.
14589 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
14590 Resolves Issue #109.
14592 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
14594 + Added hang' function to Text.Pandoc.Shared; this will be used instead
14595 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
14596 is upgraded, we can go back to hang.
14597 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
14598 + Use hang' (and some different techniques) in RST and markdown writers.
14599 Some output is now a bit different.
14601 * Brought citeproc support up to date for citeproc-hs-0.2.
14602 (Patch by Andrea Rossato.)
14604 * Moved all haskell source to src subdirectory. Renamed Main.hs to
14607 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
14608 For now, keeping the old shell script too.
14610 * Added TemplateHaskell to Extensions for executable, removed
14611 -threaded for library. Thanks to duncan.coutts for the bug report.
14612 Resolves Issue #121.
14614 * Moved some Extra-Source-Files to Data-Files.
14616 * Moved tabFilter to Shared.
14618 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
14621 * Minor code cleanup based on hlint suggestions.
14625 [ John MacFarlane ]
14629 + Changed date on copyright message in Main.hs.
14630 + Have the '-v' option print syntax highlighting languages
14631 separated by commas, and wrapped in lines, instead of in five
14634 * Added --jsmath option. Resolves Issue #68.
14636 + Added --jsmath option to Main.hs
14637 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
14638 + Handle math appropriately in HTML writer when JsMath selected.
14639 + Documented the option in README and man page.
14641 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
14642 for tight and loose lists. Final Para is changed to Plain if all
14643 other list items *end* with a Plain block. Addresses Issue #99.
14647 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
14648 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
14649 Added rawVerbatimBlock parser. Resolves Issue #94.
14653 + Allow URLs with spaces in them in links and references, but escape
14655 + Allow blank space at the end of horizontal rules.
14657 * RST reader: Modified 'unknownDirective' parser to handle comment
14658 blocks correctly, and added tests for comment blocks. Resolves Issue
14659 #86. Closes Debian Bug #500662.
14663 + Include classes on tr elements in HTML output:
14664 "header", "odd", "even". This allows tables to be styled with
14665 lines in alternating colors. Resolves Issue #91.
14666 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
14667 This prevents parts of the document that are not math from being
14668 interpreted as math by LaTeXMathML.js.
14670 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
14671 which were formerly ignored. Resolves Issue #95.
14673 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
14674 between a footnote and immediately following nonspace characters in
14675 LaTeX and ConTeXt output. (This gets interpreted as a space, which
14676 is not desired in cases like `text^[note]---`.) Resolves Issue #93.
14678 * Windows installer: Don't require admin privileges to run
14679 installer. Modified pandoc-setup.iss, and changed modpath.iss to
14680 modify HKCU path if user lacks admin privileges. Also fixed case
14681 where oldpath is empty (previously this led to the new path
14682 beginning with a semicolon).
14684 * Updated INSTALL instructions for Arch packages and OS X install using
14687 * Removed the (now unneeded) debian directory.
14688 Removed empty Codec and System directories.
14690 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
14692 * Modified Setup.hs so that the "test" target returns an error status
14693 when tests fail, and "build" returns a success status if
14694 the build succeeds. Resolves Issue #100.
14696 * Added BUGS to files in tarball.
14701 [ John MacFarlane ]
14703 * Removed spurious reference to pdf output format from pandoc(1) man page.
14709 * Added new OpenDocument writer.
14711 * Added support for SmallCaps inline element.
14713 * Added support for integrating pandoc with citeproc-hs.
14715 + Added Cite element to definition and writers.
14716 + Added Text.Pandoc.Biblio module
14717 + Note: This support is included only if the 'citeproc'
14718 Cabal configuration flag is set.
14720 * Made Pandoc data structure an instance of Typeable.
14721 Added new processPandoc and queryPandoc functions, to query
14722 or transform matching elements in a Pandoc structure.
14726 * Added new Texinfo writer.
14728 [ John MacFarlane ]
14730 * Changes to Texinfo writer:
14732 + No space between paragraph and following @verbatim (provides more
14733 pleasing appearance in text formats)
14734 + Blank line consistently after list environments.
14736 + Use @code instead of @verb for inline code (this solves the character
14737 escaping problem for texi2dvi and texi2pdf).
14738 + Added news of Texinfo writer to README.
14739 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
14740 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
14741 default output extension.
14742 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
14744 * Added tests for OpenDocument writer.
14746 * Added ODT writer (using zip-archive library to package output of
14747 OpenDocument writer). Added odt-styles directory with default ODT styles.
14749 * Added new mediawiki writer and tests.
14751 * Markdown reader: Added support for delimited code blocks, with optional
14752 syntax highlighting using highlighting-kate (if the 'highlighting'
14753 configuration option is selected).
14755 + Currently highlighting is supported only in the HTML writer.
14756 + Delimited code blocks can have attributes; using the language name as
14757 class triggers highlighting.
14758 + New Attributes parameter in CodeBlock structure.
14759 + --version now indicates whether syntax highlighting support is compiled
14760 in, and prints a list of supported languages
14762 * Removed debian directory. Pandoc is no longer a native debian package.
14764 * Changes to build process: pandoc can now be built from the repository
14765 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
14768 + Include shell scripts themselves in repo, rather than generating from wrappers.
14769 Removed wrappers directory and wrappers Makefile target.
14770 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
14771 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
14772 from templates in the templates/ directory. Instead, they use template
14773 haskell to read data at compile time from the relevant files in data/.
14774 Template haskell functions go in a new module, Text.Pandoc.TH.
14775 + man pages are now generated in Setup.hs hook, not by Makefile
14776 + Makefile 'tarball' target now calls Cabal's 'sdist'
14777 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
14778 + Added "Build-Type" field to pandoc.cabal to avoid warning.
14779 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
14780 so 'sdist' and 'clean' will work properly.
14781 + Setup.hs now generates man pages in a postbuild hook.
14782 + Added dependency-checking to Setup.hs, so it only rebuilds things
14783 that need rebuilding.
14784 + Added 'library' and 'executable' configuration flags.
14785 Cabal can now be told to build just the library or just the executable.
14786 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
14787 For example: CABALOPTS=-fhighlighting make
14789 * Rewrote test suite so it doesn't depend on perl or unix tools.
14791 + Replaced old runtests.pl with a Haskell script RunTests.hs.
14792 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
14793 + Added test hook to Setup.hs, so tests may be run from cabal.
14794 + Changed Makefile's 'test' target to run tests via cabal.
14795 + Removed old generate.sh.
14796 + Since we no longer have 'sed' to filter out raw HTML sections
14797 from the docbook writer test, or raw LaTeX sections from the
14798 context writer test, we now just include these sections.
14799 They can be taken out if it is necessary to process the files.
14800 + Updated latex and context writer tests to remove extra spaces
14802 + Added a markdown table reader test.
14803 + Added markdown-reader-more.txt to test suite, for additional test cases
14804 for raw ConTeXt environments and more.
14806 * Compatibility fixes for CPP, Cabal, and haddock:
14808 + Use CPP in "Extensions" field in pandoc.cabal.
14809 + Removed use of backslash string continuations in source files.
14811 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
14814 * Require parsec < 3.
14815 The compatibility module in parsec 3.0.0 gives far worse performance than
14816 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
14817 version of parsec, and then we'll go to parsec 3.0.0.
14819 * Removed Text.Regex dependencies by rewriting using plain Haskell
14820 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
14822 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
14826 + Added 'configure' as dependency of 'uninstall-all'.
14827 (It uses the Cabal build program.)
14828 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
14829 Note that Cabal will automatically choose the ghc-pkg appropriate
14830 for the compiler selected, so normally specifying GHC by itself
14833 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
14834 its IO and conversion functions.
14836 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
14837 everything is -Wall clean.
14839 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
14840 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
14841 (These are caused by the Lift instance for ByteString.)
14843 * Changed the comment used to replace unsafe HTML if sanitize-html option
14846 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
14848 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
14850 * Escape '\160' as " ", not " " in XML.
14851 "nbsp" isn't a predefined XML entity.
14853 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
14854 Added some try's in ordered list parsers.
14856 * Man writer: don't escape " as \".
14858 * Allow newline before URL in markdown link references. Resolves Issue #81.
14859 Added tests for this issue in new "markdown-reader-more" tests.
14860 Changed RunTests.hs to run these tests.
14862 * Support for display math. Resolves Issue #47.
14864 + Added a DisplayMath/InlineMath selector to Math inlines.
14865 + Markdown parser yields DisplayMath for $$...$$.
14866 + LaTeX parser yields DisplayMath when appropriate. Removed
14867 mathBlock parsers, since the same effect is achieved by the math
14868 inline parsers, now that they handle display math.
14869 + Writers handle DisplayMath as appropriate for the format.
14870 + Modified tests accordingly; added new tests for display math.
14872 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
14873 to LaTeX in its display of math, and supports many non-math LaTeX environments.
14875 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
14876 + Modified HTML writer to print raw TeX when LaTeXMathML is
14877 being used instead of suppressing it.
14878 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
14879 + Replaced ASCIIMathML with LaTeXMathML in source files.
14880 + Modified README and pandoc man page source.
14881 + Added --latexmathml option (kept --asciimathml as a synonym
14882 for backwards compatibility)
14884 * Markdown reader: Parse setext headers before atx headers.
14888 parsed by Markdown.pl as an H1 header with contents "# hi".
14890 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
14891 The marker on the first list item determines the type of the whole
14892 list. Thus, a list like
14896 gets parsed as a single ordered list. (Previous versions of pandoc
14897 treated this as an ordered list with an unordered sublist.)
14899 * Markdown smart typography:
14901 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
14902 + Use nonbreaking spaces after known abbreviations in markdown parser.
14903 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
14904 not produce a sentence-separating space. Resolves Issue #75.
14906 * Markdown writer: Print unicode \160 literally, rather than as .
14908 * Treat '\ ' in (extended) markdown as nonbreaking space.
14909 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
14911 * The '--sanitize-html' option now examines URIs in markdown links
14912 and images, and in HTML href and src attributes. If the URI scheme
14913 is not on a whitelist of safe schemes, it is rejected. The main point
14914 is to prevent cross-site scripting attacks using 'javascript:' URIs.
14915 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
14916 and http://ha.ckers.org/xss.html. Resolves Issue #62.
14920 + Override Text.XHtml's stringToHtml function,
14921 so that characters below 0xff are not converted to numerical entity
14922 references. Also convert '\160' to " ". This should aid readability
14923 and editability of the HTML source. It does presuppose that the HTML
14924 will be served as UTF-8.
14925 + In code blocks, change leading newlines to <br /> tags.
14926 (Some browsers ignore them.) Resolves Issue #71.
14927 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
14928 + Use style attributes rather than css classes for strikethrough
14929 and ordered list styles. This works better when fragments, rather than
14930 standalone documents, are generated.
14932 * HTML reader: Count anything that isn't a known block (HTML) tag as an
14933 inline tag (rather than the other way around). Added "html", "head", and
14934 "body" to list of block tags. Resolves Issue #66, allowing
14935 <lj> to count as an inline tag.
14937 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
14938 boldface, and other inline elements. Resolves Issue #64.
14940 * LaTeX reader: improvements in raw LaTeX parsing.
14942 + "loose punctuation" (like {}) parsed as Space
14943 + Para elements must contain more than Str "" and Space elements
14944 + Added parser for "\ignore" command used in literate haskell.
14945 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
14946 mode, these parsers simply strip off the command part and allow
14947 the arguments to be parsed normally. So, for example,
14948 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
14949 Str "{\\emph{hi}}".
14950 + Parse lhs "code" environments as verbatim.
14951 Refactored parsers for verbatim environments.
14952 + Removed specialEnvironment parser.
14953 + parse '{}', if present, after \textless, \textgreater,
14954 \textbar, \textbackslash, \ldots.
14955 + Parse unescaped special characters verbatim rather than
14956 changing them to spaces. This way arguments of unknown
14957 commands will appear in braces.
14959 * Parse raw ConTeXt environments as TeX in markdown reader.
14960 Resolves Issue #73.
14962 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
14964 * Made some structural changes to parsing of raw LaTeX environments.
14965 Previously there was a special block parser for LaTeX environments.
14966 It returned a Para element containing the raw TeX inline. This has
14967 been removed, and the raw LaTeX environment parser is now used in the
14968 rawLaTeXInline parser. The effect is exactly the same, except that we
14969 can now handle consecutive LaTeX and ConTeXt environments not separated
14970 by spaces. This new flexibility is required by the example in
14973 \placeformula \startformula
14977 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
14978 returns a string) rather than rawLaTeXEnvironment (which returns a block
14979 element). This is more likely to be useful in other applications.
14981 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
14982 \textsubscript conflicts with a definition in the memoir class.
14983 Resolves Issue #65.
14985 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
14987 * Added amsmath package to default LaTeX header. Resolves Issue #48.
14989 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
14990 list introduction lines.
14992 * Changed Float to Double in definition of Table element.
14993 (Double is more efficient in GHC.)
14995 * Fixed bug in Markdown parser: regular $s triggering math mode.
14996 For example: "shoes ($20) and socks ($5)."
14997 The fix consists in two new restrictions:
14999 + the $ that ends a math span may not be directly followed by a digit.
15000 + no blank lines may be included within a math span.
15002 Thanks to Joseph Reagle for noticing the bug.
15004 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
15005 Removed 'joinWithSep' from Text.Pandoc.Shared.
15007 * Updated README and man pages. Acknowledge contributors in README.
15008 Added paragraph to README about producing S5 with separate CSS/javascript.
15010 * Updated INSTALL to reflect new build system (including configuration
15011 options) and document new dependencies. Added note to INSTALL that
15012 Cabal >= 1.2 is required for build. Resolves Issue #74.
15014 * Fixed some haddock documentation errors.
15016 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
15018pandoc (0.46) unstable; urgency=low
15020 [ John MacFarlane ]
15022 * Made -H, -A, and -B options cumulative: if they are specified
15023 multiple times, multiple files will be included.
15025 * Added optional HTML sanitization using a whitelist.
15026 When this option is specified (--sanitize-html on the command line),
15027 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
15028 attributes will be removed. This option should be especially useful
15029 for those who want to use pandoc libraries in web applications, where
15030 users will provide the input.
15032 + Main.hs: Added --sanitize-html option.
15034 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
15036 + Text.Pandoc.Readers.HTML:
15037 - Added whitelists of sanitaryTags and sanitaryAttributes.
15038 - Added parsers to check these lists (and state) to see if a given
15039 tag or attribute should be counted unsafe.
15040 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
15042 - Modified htmlAttribute to remove unsafe attributes.
15043 - Modified htmlScript and htmlStyle to remove these elements if
15046 + Modified README and man pages to document new option.
15048 * Improved handling of email addresses in markdown and reStructuredText.
15049 Consolidated uri and email address parsers. (Resolves Issue #37.)
15051 + New emailAddress and uri parsers in Text.Pandoc.Shared.
15052 - uri parser uses parseURI from Network.URI.
15053 - emailAddress parser properly handles email addresses with periods
15056 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
15057 and Text.Pandoc.Readers.Markdown.
15061 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
15062 nested in an Emph. (A '*' is only recognized as the end of the
15063 emphasis if it's not the beginning of a strong emphasis.)
15065 + Moved blockQuote parser before list parsers for performance.
15067 + Modified 'source' parser to allow backslash-escapes in URLs.
15068 So, for example, [my](/url\(1\)) yields a link to /url(1).
15069 Resolves Issue #34.
15071 + Disallowed links within links. (Resolves Issue #35.)
15072 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
15073 instead of hard-coding the inline parser takes an inline parser
15075 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
15076 - Removed unneeded inlineString function.
15077 - Added inlineNonLink parser, which is now used in the definition of
15079 - Added inlineParsers list and redefined inline and inlineNonLink parsers
15081 - Added failIfLink parser.
15083 + Better handling of parentheses in URLs and quotation marks in titles.
15084 - 'source' parser first tries to parse URL with balanced parentheses;
15085 if that doesn't work, it tries to parse everything beginning with
15086 '(' and ending with ')'.
15087 - source parser now uses an auxiliary function source'.
15088 - linkTitle parser simplified and improved, under assumption that it
15089 will be called in context of source'.
15091 + Make 'block' conditional on strictness state, instead of using
15092 failIfStrict in block parsers. Use a different ordering of parsers
15093 in strict mode (raw HTML block before paragraph) for performance.
15094 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
15095 Simplified htmlBlock, since we know it's only called in strict
15098 + Improved handling of raw HTML. (Resolves Issue #36.)
15099 - Tags that can be either block or inline (e.g. <ins>) should
15100 be treated as block when appropriate and as inline when
15101 appropriate. Thus, for example,
15103 should be treated as a paragraph with inline <ins> tags, while
15107 should be treated as a paragraph within <ins> tags.
15108 - Moved htmlBlock after para in list of block parsers. This ensures
15109 that tags that can be either block or inline get parsed as inline
15111 - Modified rawHtmlInline' so that block elements aren't treated as
15113 - Modified para parser so that paragraphs containing only HTML tags and
15114 blank space are not allowed. Treat these as raw HTML blocks instead.
15116 + Fixed bug wherein HTML preceding a code block could cause it to
15117 be parsed as a paragraph. The problem is that the HTML parser
15118 used to eat all blank space after an HTML block, including the
15119 indentation of the code block. (Resolves Issue #39.)
15120 - In Text.Pandoc.Readers.HTML, removed parsing of following space
15122 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
15123 indentation is eaten *only* on the first line after the HTML
15124 block. This means that in
15128 the foo won't be treated as a code block, but in
15134 it will. This seems the right approach for least surprise.
15138 + Fixed bug in parsing explicit links (resolves Issue #44).
15139 The problem was that we were looking for inlines until a '<' character
15140 signaled the start of the URL; so, if you hit a reference-style link,
15141 it would keep looking til the end of the document. Fix: change
15142 inline => (notFollowedBy (char '`') >> inline). Note that this won't
15143 allow code inlines in links, but these aren't allowed in resT anyway.
15145 + Cleaned up parsing of reference names in key blocks and links.
15146 Allow nonquoted reference links to contain isolated '.', '-', '_', so
15147 so that strings like 'a_b_' count as links.
15149 + Removed unnecessary check for following link in str.
15150 This is unnecessary now that link is above str in the definition of
15155 + Modified rawHtmlBlock so it parses </html> and </body> tags.
15156 This allows these tags to be handled correctly in Markdown.
15157 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
15158 since these are handled in parseHtml. (Resolves Issue #38.)
15160 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
15162 + Don't interpret contents of style tags as markdown.
15163 (Resolves Issue #40.)
15164 - Added htmlStyle, analogous to htmlScript.
15165 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
15166 - Moved "script" from the list of tags that can be either block or
15167 inline to the list of block tags.
15169 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
15170 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
15171 inline tags would be included in raw HTML blocks.
15173 + Modified anyHtmlBlockTag to test for (not inline) rather than
15174 directly for block. This allows us to handle e.g. docbook in
15175 the markdown reader.
15177 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
15178 Updated LaTeX reader test to use --parse-raw.
15182 + Modified rules for automatic HTML header identifiers to
15183 ensure that identifiers begin with an alphabetic character.
15184 The new rules are described in README. (Resolves Issue #33.)
15186 + Changed handling of titles in HTML writer so you don't get
15187 "titleprefix - " followed by nothing.
15189 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
15190 spacing. Each block element is wrapped with either Pad or Reg.
15191 Pad'ed elements are guaranteed to have a blank line in between.
15195 + Refactored RST writer to use a record instead of a tuple for state,
15196 and to include options in state so it doesn't need to be passed as
15199 + Use an interpreted text role to render math in restructuredText.
15200 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
15205 * Debian packaging changes:
15207 + Remove the empty 'include' directory in -dev package, which lintian
15209 + Bump Standarts-Version to 3.7.3.
15210 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
15213 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
15215pandoc (0.45) unstable; urgency=low
15217 [ John MacFarlane ]
15219 * Simplified parsing of reference keys and notes in markdown and RST
15220 readers: The Reference data structure from Text.Pandoc.Shared is no
15221 longer needed, since referenceKey and noteBlock parses return strings
15222 (as many blank lines as were occupied by the key or note) and update
15223 state themselves. getPosition and setPosition are now used to ensure
15224 that error messages will give the correct line number. This yields
15225 cleaner (and slightly faster) code, with more accurate parsing error
15228 * Added new Math inline element:
15230 + Markdown and LaTeX readers now convert TeX math into Math elements,
15232 + This allows math to be treated differently from raw TeX in output.
15233 TeX elements are no longer printed in output formats other than
15234 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
15236 * New default handling of math in writers:
15238 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
15239 parses raw TeX math and outputs a string of Pandoc inlines that
15240 tries to render it as far as possible using unicode characters,
15241 lapsing into literal TeX when needed.
15242 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
15243 and Docbook, if no other method for displaying math in HTML is
15244 specified. Enclosing $'s are no longer printed by default.
15245 + By default, math is put inside `<span class="math">`. This way it can be
15246 distinguished from the surrounding text, e.g. put in a different
15249 * New --gladtex and --mimetex options for display of math in HTML:
15251 + If --gladtex is specified, math is output between `<eq>` tags, so
15252 it can be processed by gladTeX.
15253 + If --mimetex is specified, math is put in `<img>` tags with a link
15254 to the mimetex CGI script (or any other script that takes TeX math
15255 as input and outputs an image). The URL of the script may be
15256 specified, but defaults to /cgi-bin/mimetex.cgi.
15257 + HTMLMathMethod structure in WriterOptions keeps track of how to
15258 display math in HTML output.
15259 + Updated README with a description of the four options for displaying
15264 + Fixed bug: parser for minimized attributes should not swallow
15266 + Simplified HTML attribute parsing.
15267 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
15268 longer needed. `<pre>` suffices. All HTML tags in the code block
15269 (e.g. for syntax highlighting) are skipped, because they are not
15270 portable to other output formats. A `<code>...</code>` block not
15271 surrounded by `<pre>` now counts as inline HTML, not a code block.
15272 + Remove just one leading and one trailing newline from contents of
15273 `<pre>...</pre>` in codeBlock parser.
15277 + Removed support for box-style block quotes.
15278 + Require space before title in links and references.
15279 This fixes a bug in parsing URLs like http://silly/url(withparen).
15280 + Improved and simplified setextHeader parser.
15281 + Fixed logic in smart quote parsing, adding some needed 'try'
15283 + Fixed smart quote parsing so that unicode characters 8216 and 8217
15284 are recognized as single quotes, and 8220 and 8221 as double quotes.
15288 + Fixed bug in parsing of code blocks. Previously a full tab indent
15289 was required, but RST allows code to be indented any amount.
15290 Resolves Issue #27.
15291 + Allow field lists to be indented.
15292 + Parse the contents of field lists instead of treating as a raw string.
15293 + Represent field lists as definition lists instead of blockquotes.
15294 + Fixed bug in which metadata would be overridden if the document
15295 contained multiple field lists.
15296 + Parse fields associated with '.. image::' blocks, and use 'alt'
15297 field, if given, for image alt and title attributes.
15301 + Modified specialChar so that '"' characters are parsed.
15302 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
15306 + Changes in handling of math (see above).
15307 + Don't produce HTML for table of contents if there are
15308 no headers. (This would be an empty list, which is invalid XHTML.)
15312 + Don't print title attribute if title is empty. (This differs from
15313 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
15314 Gruber has indicated that he prefers this behavior.) Adjusted test
15316 + Fixed incorrect line wrapping in paragraphs including hard line
15317 breaks. Resolves Issue #25.
15318 + Fixed bug in markdown writer: If an ordered list item began with
15319 a marker greater than 3 characters in width, and the item took more
15320 than one line, it would appear on the line after the list marker,
15327 Now it works as follows:
15334 + Fixed bug in RST writer's handling of ordered lists. Previously,
15335 list items with multiple lines would not always line up with
15336 single-line list items. Now, list items are nested the length of
15337 the list marker + 1. This looks better and ensures that list items
15338 all line up. (Note that list markers are padded to the length of
15339 the longest list marker in the series.)
15340 + Use 3-space indent for unordered lists.
15341 + If label for a link reference contains a colon, surround it by `
15342 signs so it won't be interpreted as the end of the link label.
15346 + Cleaner output for footnotes. Footnotes now always begin on a new
15347 line, and the final } is on a line by itself only when it needs to
15348 be (i.e. only when the note ends with a Verbatim environment).
15349 + Added writer options to state, so state doesn't need to be passed as
15351 + Text wrapping now provided, using wrapTeXIfNeeded.
15353 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
15354 (thanks to Idris Samawi Hamid for suggestions).
15356 + PrettyPrint module now used for output.
15357 + Writer options are now in state, so they don't have to be passed as
15359 + Text wrapping now provided, using wrapTeXIfNeeded.
15360 + Better treatment of footnotes: footnotes are always on lines by
15361 themselves, and the final } is on a line by itself only when
15362 it needs to be (after \stoptyping).
15363 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
15364 depending on whether --number-sections option is selected.
15365 + Extra blank line inserted after \stopitemize
15366 + Use new, "official" definition of blockquote environment. Also, use
15367 blank line after \startblockquote to balance blank line at the end.
15368 + Both itemized and enumerated lists are now generated using
15369 \start-stopitemize, with appropriate options. Removed definitions
15370 of ltxenum and ltxitem, which are no longer needed. Provided
15371 defaults for itemized lists in the preamble. State keeps track of
15372 ordered list level, so that when default numbering is specified,
15373 the appropriate scheme can be used.
15374 + Changed \useurl to \useURL.
15375 + Changed link color from red to blue.
15376 + Use \subsubsubsubsection etc., since these are supported
15377 (up to at least sub x 5).
15379 * Text.Pandoc.Shared:
15381 + Save and restore position in parseFromString, so that accurate
15382 error messages can be given.
15383 + Improved efficiency of romanNumeral parser.
15384 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
15385 that footnotes occur on lines by themselves (to make them
15386 easier to see and move) and do not screw up line wrapping.
15388 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
15389 if present. Windows Notepad and other applications insert a
15390 BOM at the beginning of a UTF8 file.
15392 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
15393 addition to "\r\n" and '\n').
15395 * Added a writer option for wrapped text and a command-line option
15396 '--no-wrap', which disables text wrapping and minimizes whitespace
15397 in HTML. (Resolves Issue #26.)
15399 + Added support for '--no-wrap' to Main.hs.
15400 + Added wrapIfNeeded function to Text.Pandoc.Shared.
15401 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
15403 + Added render and renderFragment helpers to HTML writer.
15405 * Modified html2markdown to run tidy only if the HTML cannot be
15406 parsed. Previously html2markdown piped all input through tidy
15407 before passing it to pandoc. This caused problems on certain pages
15408 (e.g. http://daringfireball.com/markdown) which have well-formed
15409 XHTML that causes tidy to choke. The solution is to pipe through
15410 tidy only if pandoc cannot parse the input by itself. This means
15411 that a temp file is now always used, even when input comes from a
15412 local file or standard input.
15414 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
15415 Text.Pandoc library.
15419 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
15420 6.8, pretty and containers must be added to Build-Depends, and it
15421 is desirable to use the -O2 compiler option.) Cabal configurations
15422 allows one to select options depending on the compiler version.
15423 For GHC 6.6, the splitBase option can be disabled.
15424 + pandoc.cabal.ghc66 is provided for users with older versions of
15425 Cabal, which do not support configurations.
15426 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
15427 '--enable-(executable|library)-profiling' is specified. Updated
15428 PROFILING instructions accordingly.
15432 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
15433 is copied to pandoc.cabal, and the old pandoc.cabal is copied
15434 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
15435 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
15436 will work properly with either GHC 6.6 or 6.8.
15437 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
15438 This is where current versions of Cabal put it.
15439 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
15440 + Removed dependency of templates on ./templates, which is circular
15441 now that templates is a subdirectory of the top-level.
15443 * MacPorts Portfile:
15445 + Modified to install the pandoc library in addition to programs.
15446 + Installation must be done manually rather than using Makefile's
15448 + Note that the library must be registered in the activate phase,
15449 after the library files have been copied out of the destroot.
15450 Cabal generates a 'register.sh' script that will do this.
15452 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
15453 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
15456 * debian/rules: Converted to UTF-8.
15458 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
15460 * Updated ASCIIMathML.js to latest version.
15462 * Directory structure:
15464 + Moved everything from src into the top-level directory.
15465 + Changed references to source directory in Makefile and
15467 + Moved ASCIIMathML.js, headers, and ui into templates directory.
15468 + Modified fillTemplates.pl to reflect new paths.
15472 * Makefile: Fixed the issue of having two copies of the library
15473 documentation under some usage scenarios.
15475 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
15476 and GHC_PKG configurable through the environment, to support
15477 unusual ghc installations. For example:
15478 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
15480 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
15482pandoc (0.44) unstable; urgency=low
15484 [ John MacFarlane ]
15486 * Fixed bug in HTML writer: when --toc was used, anchors were put around
15487 headers, which is invalid XHTML (block content within inline element).
15488 Now the anchors are put inside the header tags. Resolves Issue #23.
15490 * Added xmlns attribute to html element in html writer tests.
15491 This attribute is added by more recent versions of the
15492 xhtml library (>= 3000), and is required for valid XHTML.
15496 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
15497 command instead of 'runhaskell', which, on some platforms (such as s390,
15498 alpha, m68k), throws the following error:
15500 runhaskell Setup.hs configure --prefix=/usr
15501 ghc-6.6.1: not built for interactive use
15503 This causes a serious FTBFS bug. Closes: #440668.
15505 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
15507pandoc (0.43) unstable; urgency=low
15509 [ John MacFarlane ]
15511 * The focus of this release is performance. The markdown parser
15512 is about five times faster than in 0.42, based on benchmarks
15513 with the TextMate manual.
15515 * Main.hs: Replaced CRFilter and tabFilter with single function
15516 tabFilter, which operates on the whole string rather than breaking
15517 it into lines, and handles dos-style line-endings as well as tabs.
15519 * Added separate LaTeX reader and native reader tests; removed
15522 * Text.Pandoc.Shared:
15524 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
15525 + General code cleanup (to elimante warnings when compiling with -Wall.)
15526 + Added 'wrapped' function, which helps wrap text into paragraphs,
15527 using the prettyprinting library.
15528 + Rewrote charsInBalanced and charsInBalanced'.
15529 - Documented restriction: open and close must be distinct characters.
15530 - Rearranged options for greater efficiency.
15531 - Bug fix: Changed inner call to charsInBalanced inside
15532 charsInBalanced' to charsInBalanced'.
15533 + anyLine now requires that the line end with a newline (not eof).
15534 This is a harmless assumption, since we always add newlines to the
15535 end of a block before parsing with anyLine, and it yields a 10% speed
15537 + Removed unnecessary 'try' in anyLine.
15538 + Removed unneeded 'try' from romanNumeral parser.
15539 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
15540 + Removed unneeded 'try' in parseFromString.
15541 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
15543 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
15544 'try' is not automatically applied to the 'end' parser. Added
15545 'try' in calls to 'enclosed' where needed. Slight speed increase.
15549 + Replaced individual wrapping routines in RST, Man, and Markdown
15550 writers with 'wrapped' from Text.Pandoc.Shared.
15551 + Rewrote LaTeX writer to use the prettyprinting library,
15552 so we get word wrapping, etc.
15553 + Modified latex writer tests for new latex writer using prettyprinter.
15554 + Fixed bug in LaTeX writer: autolinks would not cause
15555 '\usepackage{url}' to be put in the document header. Also, changes
15556 to state in enumerated list items would be overwritten.
15557 + In Markdown writer, escape paragraphs that begin with ordered list
15558 markers, so they don't get interpreted as ordered lists.
15560 * Text.Pandoc.Reades.LaTeX:
15562 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
15563 numeral after "enum" in "setcounter" would consist entirely of
15564 "i"s. 'enumiv' is legitimate.
15565 + LaTeX command and environment names can't contain numbers.
15566 + Rearranged order of parsers in inline for slight speed improvement.
15567 + Added '`' to special characters and 'unescapedChar'.
15569 * Text.Pandoc.Readers.RST:
15571 + Removed unneeded try's in RST reader; also minor code cleanup.
15573 + Rearranged parsers in inline (doubled speed).
15575 * Text.Pandoc.Readers.Markdown:
15577 + Skip notes parsing if running in strict mode. (This yields a nice
15578 speed improvement in strict mode.)
15579 + Simplify autolink parsing code, using Network.URI to test for
15580 URIs. Added dependency on network library to debian/control and
15582 + More perspicuous definition of nonindentSpaces.
15583 + Removed unneeded 'try' in 'rawLine'.
15584 + Combined linebreak and whitespace into a new whitespace parser, to
15585 avoid unnecessary reparsing of space characters.
15586 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
15587 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
15588 + Use lookAhead in parsers for setext headers and definition lists
15589 to see if the next line begins appropriately; if not, don't waste
15590 any more time parsing.
15591 + Don't require blank lines after code block. (It's sufficient to
15592 end code block with a nonindented line.)
15593 + Changed definition of 'emph': italics with '_' must not
15594 be followed by an alphanumeric character. This is to help
15595 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
15596 `[LC<em>TYPE]:my</em>type`.
15597 + Improved Markdown.pl-compatibility in referenceLink: the two parts
15598 of a reference-style link may be separated by one space, but not
15599 more... [a] [link], [not] [a link].
15600 + Fixed markdown inline code parsing so it better accords with
15601 Markdown.pl: the marker for the end of the code section is a clump
15602 of the same number of `'s with which the section began, followed
15603 by a non-` character. So, for example,
15604 ` h ``` i ` -> `<code>h ``` i</code>`.
15605 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
15606 rules are slightly different.
15607 + Rewrote 'para' for greater efficiency.
15608 + Rewrote link parsers for greater efficiency.
15609 + Removed redundant 'referenceLink' in definition of inline (it's
15610 already in 'link').
15611 + Refactored escapeChar so it doesn't need 'try'.
15612 + Refactored hrule for performance in Markdown reader.
15613 + More intelligent rearranging of 'inline' so that most frequently
15614 used parsers are tried first.
15615 + Removed tabchar parser, as whitespace handles tabs anyway.
15617 * Text.Pandoc.CharacterReferences:
15620 + Removed unnecessary 'try's for a speed improvement.
15621 + Removed unnecessary '&' and ';' from the entity table.
15625 + Makefile: Get VERSION from cabal file, not Main.hs.
15626 + Modified MacPorts Portfile:
15627 - Depend on haddock
15628 - Build and install libraries and library documentation in
15629 addition to pandoc executable
15630 - Added template item for md5 sum in Portfile.in.
15631 - Incorporated changes from MacPorts repository (r28278).
15632 + FreeBSD port: Don't try to generate distinfo in Makefile.
15633 It can be made using 'make makesum' in FreeBSD.
15634 + Make both freebsd and macports targets depend on tarball.
15636 * Website and documentation:
15638 + Updated INSTALL instructions.
15639 + Added pandocwiki demo to website.
15640 + Removed local references to Portfile, since pandoc is now in the
15641 MacPorts repository.
15643 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
15645pandoc (0.42) unstable; urgency=low
15647 [ John MacFarlane ]
15649 * Main.hs: Use utf8 conversion on the extra files loaded with
15650 the -H, -C, -B, and -A options. This fixes problems with unicode
15651 characters in these files.
15653 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
15654 Text.Pandoc.Readers.HTML and without it we get a linking error when
15659 + Added new rule for enhanced markdown ordered lists: if the list
15660 marker is a capital letter followed by a period (including a
15661 single-letter capital roman numeral), then it must be followed by
15662 at least two spaces. The point of this is to avoid accidentally
15663 treating people's initials as list markers: a paragraph might begin,
15664 "B. Russell was an English philosopher," and this shouldn't be
15665 treated as a list. Documented change in README.
15666 + Blocks that start with "p. " and a digit are no longer treated
15667 as ordered lists (it's a page number).
15668 + Added a needed 'try' to listItem.
15669 + Removed check for a following setext header in endline.
15670 A full test is too inefficient (doubles benchmark time), and the
15671 substitute we had before is not 100% accurate.
15672 + Don't use Code elements for autolinks if --strict specified.
15674 * LaTeX writer: When a footnote ends with a Verbatim environment, the
15675 close } of the footnote cannot occur on the same line or an error occurs.
15676 Fixed this by adding a newline before the closing } of every footnote.
15679 + Removed incorrect "{}" around style information in HTML tables.
15680 Column widths now work properly in HTML.
15681 + If --strict option is specified (and --toc is not), don't include
15682 identifiers in headers, for better Markdown compatibility.
15686 + Separated $(web_dest) and website targets.
15687 + In website, index.txt is now constructed from template index.txt.in.
15688 + Added freebsd target to Markefile. This creates the freebsd Makefile
15689 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
15690 from the repository.
15691 + Added macport target to Makefile. Portfile is built from template
15693 + Removed OSX package targets. (Too many difficulties involving
15694 dependencies on dynamic libraries.)
15695 + More complete INSTALL instructions for all architectures.
15698 + Added a programming demo, pandocwiki.
15702 * Do not forget to close pandoc's ITP. Closes: #391666
15704 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
15706pandoc (0.41) unstable; urgency=low
15708 [ John MacFarlane ]
15710 * Fixed bugs in HTML reader:
15711 + Skip material at end *only if* `</html>` is present (previously,
15712 only part of the document would be parsed if an error was
15713 found; now a proper error message is given).
15714 + Added new constant eitherBlockOrInline with elements that may
15715 count either as block-level or as inline. Modified isInline and
15716 isBlock to take this into account.
15717 + Modified rawHtmlBlock to accept any tag (even an inline tag):
15718 this is innocuous, because rawHtmlBlock is tried only if a regular
15719 inline element can't be parsed.
15720 + Added a necessary 'try' in definition of 'para'.
15722 * Fixed bug in markdown ordered list parsing. The problem was that
15723 anyOrderedListStart did not check for a space following the
15724 ordered list marker. So in 'A.B. 2007' the parser would be
15725 expecting a list item, but would not find one, causing an error.
15726 Fixed a similar bug in the RST reader. Resolves Issue #22.
15728 * Refactored RST and Markdown readers using parseFromString.
15730 * LaTeX reader will now skip anything after \end{document}.
15732 * Fixed blockquote output in markdown writer: previously, block
15733 quotes in indented contexts would be indented only in the first
15736 * Added note to INSTALL about variations in versions of the xhtml
15737 library that can lead to failed tests (thanks to Leif LeBaron).
15739 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
15741pandoc (0.4) unstable; urgency=low
15743 [ John MacFarlane ]
15745 * Added two new output formats: groff man pages and ConTeXt. By
15746 default, output files with extensions ".ctx" and ".context" are
15747 assumed to be ConTeXt, and output files with single-digit extensions
15748 are assumed to be man pages.
15750 * Enhanced ordered lists (documented in README, under Lists):
15751 + The OrderedList block element now stores information about
15752 list number style, list number delimiter, and starting number.
15753 + The readers parse this information when possible.
15754 + The writers use this information to style ordered lists.
15755 + The enhancement can be disabled using the --strict option.
15757 * Added support for tables (with a new Table block element). Two kinds
15758 of tables are supported: a simple table with one-line rows, and a
15759 more complex variety with multiline rows. All output formats are
15760 supported, but only markdown tables are parsed at the moment. The
15761 syntax is documented in README.
15763 * Added support for definition lists (with a new DefinitionList block
15764 element). All output and input formats are supported. The syntax is
15765 documented in README.
15767 * Added support for superscripts and subscripts (with new Superscript
15768 and Subscript inline elements). All input and output
15769 formats. The syntax is documented in README.
15771 * Added support for strikeout (with a new Strikeout inline element).
15772 All input and output formats are supported. Thanks to Bradley Kuhn,
15773 who contributed a patch. The syntax is documented in README. Resolves
15776 * Added a --toc|--table-of-contents option. This causes an automatically
15777 generated table of contents (or an instruction that creates one) to
15778 be inserted at the beginning of the document. Not supported in S5,
15779 DocBook, or man page writers.
15781 * Modified the -m|--asciimathml option:
15783 + If an optional URL argument is provided, a link is inserted
15784 instead of the contents of the ASCIIMathML.js script.
15785 + Nothing is inserted unless the document actually contains
15788 * Removed Blank block element as unnecessary.
15790 * Removed Key and Note blocks from the Pandoc data structure. All
15791 links are now stored as explicit links, and note contents are
15792 stored with the (inline) notes.
15794 + All link Targets are now explicit (URL, title) pairs; there
15795 is no longer a 'Ref' target.
15796 + Markdown and RST parsers now need to extract data from key and
15797 note blocks and insert them into the relevant inline elements.
15798 Other parsers have been simplified, since there is no longer any need
15799 to construct separate key and note blocks.
15800 + Markdown, RST, and HTML writers need to construct lists of
15801 notes; Markdown and RST writers need to construct lists of link
15802 references (when the --reference-links option is specified); and
15803 the RST writer needs to construct a list of image substitution
15804 references. All writers have been rewritten to use the State monad
15805 when state is required.
15806 + Several functions (generateReference, keyTable,
15807 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
15808 used by them) have been removed from Text.Pandoc.Shared, since
15809 they are no longer needed. New functions and data structures
15810 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
15811 added. The functions inTags, selfClosingTag, inTagsSimple, and
15812 inTagsIndented have been moved to the DocBook writer, since that
15813 is now the only module that uses them. NoteTable is now exported
15814 in Text.Pandoc.Shared.
15815 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
15816 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
15817 + Added writerNotes and writerReferenceLinks to WriterOptions.
15819 * Added Text.Pandoc module that exports basic readers, writers,
15820 definitions, and utility functions. This should export everything
15821 needed for most uses of Pandoc libraries. The haddock documentation
15822 includes a short example program.
15824 * Text.Pandoc.ASCIIMathML is no longer an exported module.
15826 * Added Text.Pandoc.Blocks module to help in printing markdown
15827 and RST tables. This module provides functions for working with
15828 fixed-width blocks of text--e.g., placing them side by side, as
15831 * Refactored to avoid reliance on Haskell's Text.Regex library, which
15832 (a) is slow, and (b) does not properly handle unicode. This fixed
15833 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
15835 + Replaced 'gsub' with a general list function 'substitute'
15836 that does not rely on Text.Regex.
15837 + Rewrote extractTagType in HTML reader so that it doesn't use
15839 + In Markdown reader, replaced email regex test with a custom email
15840 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
15841 with a custom function isSelfClosingTag.
15842 + Modified Docbook writer so that it doesn't rely on Text.Regex for
15843 detecting 'mailto' links.
15844 + Removed escapePreservingRegex and reamped entity-handling
15845 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
15846 avoid reliance on Text.Regex (see below on character reference
15849 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
15851 * Changed handling of XML entities. Entities are now parsed (and unicode
15852 characters returned) in the Markdown and HTML readers, rather than being
15853 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
15854 instead of entities for characters above 128. This makes the HTML and
15855 DocBook output much more readable and more easily editable.
15857 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
15858 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
15859 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
15860 Moved both functions to Text.Pandoc.Writers.Docbook.
15861 + Added characterReference parser to Text.Pandoc.CharacterReferences.
15862 This parses a string and return a unicode character.
15863 + Rewrote decodeCharacterReferences to use the new parser instead of
15865 + Added new charRef parser for Markdown and HTML, which replaces the
15866 old 'entity' parser. Added '&' as a special character in Markdown reader.
15867 + Modified HTML and Markdown readers to call decodeEntities on all raw
15868 strings (e.g. authors, dates, link titles), to ensure that no
15869 unprocessed entities are included in the native representation of
15870 the document. (In the HTML reader, most of this work is done by a
15871 change in extractAttributeName.)
15872 + In XML and Markdown output, escape unicode nonbreaking space as ' ',
15873 since a unicode non-breaking space is impossible to distinguish visually
15874 from a regular space. (Resolves Issue #3.)
15875 + Removed encodeEntitiesNumerical.
15876 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
15877 slight performance boost over the old association list.
15878 + Removed unneeded decodeEntities from 'str' parser in HTML and
15881 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
15882 fromUTF8, for clarity.
15884 * Replaced old haskell98 module names replaced by hierarchical module
15885 names, e.g. List by Data.List. Removed haskell98 from dependencies
15886 in pandoc.cabal, and added mtl (needed for state monad). Substituted
15889 * Refactored and cleaned up character escaping in writers, using
15890 backslashEscapes and escapeStringUsing functions.
15892 * Instead of adding "\n\n" to the end of an input string in Main.hs,
15893 this is now done in the readers. This makes the libraries behave
15894 the way you'd expect from the pandoc program. Resolves Issue #10.
15896 * URLs and email addresses in autolinks are now typeset as Code.
15898 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
15899 doesn't display the whole output unless there's a line ending.
15901 * Major code cleanup in all modules, for greater consistency, concision,
15906 + Fixed several bugs (extractTagType, attribute parsing).
15907 + Remove Null blocks in lists of blocks when possible.
15908 + Allow HTML comments as raw HTML inline.
15912 + Ordered list items may no longer begin with uppercase letters, or
15913 letters greater than 'n'. (This prevents first initials and page
15914 reference, e.g. 'p. 400', from being parsed as beginning lists.)
15915 Also, numbers beginning list items may no longer end with ')',
15916 which is now allowed only after letters. Note: These changes
15917 may cause documents to be parsed differently. Users should take
15919 + Changed autoLink parsing to conform better to Markdown.pl's
15920 behavior. `<google.com>` is not treated as a link, but
15921 `<http://google.com>`, `<ftp://google.com>`, and
15922 `<mailto:google@google.com>` are.
15923 + Cleaned up handling of embedded quotes in link titles. Now these are
15924 stored as a '"' character, not as '"'.
15925 + Use lookAhead parser for the 'first pass' (looking for reference keys),
15926 instead of parsing normally, then using setInput to reset input. This
15927 yields a slight performance boost.
15928 + Fixed several bugs in smart quote recognition.
15929 + Fixed bug in indentSpaces (which didn't properly handle
15930 cases with mixed spaces and tabs).
15931 + Consolidated 'text', 'special', and 'inline' into 'inline'.
15932 + Fixed bug which allowed URL and title to be separated by multiple blank
15933 lines in links and reference keys. They can be on separate lines but
15934 can't have blank lines between them.
15935 + Correctly handle bracketed text inside inline footnotes and links,using
15936 new function inlinesInBalanced. Resolves Issue #14.
15937 + Fixed bug in footnotes: links in footnotes were not being
15938 processed. Solution: three-stage parse. First, get all the
15939 reference keys and add information to state. Next, get all the
15940 notes and add information to state. (Reference keys may be needed
15941 at this stage.) Finally, parse everything else.
15942 + Replaced named constants like 'emphStart' with literals.
15943 + Removed an extra occurrence of escapedChar in definition of inline.
15947 + Allow the URI in a RST hyperlink target to start on the line
15948 after the reference key.
15949 + Added 'try' in front of 'string', where needed, or used a different
15950 parser. This fixes a bug where ````` would not be correctly parsed as
15952 + Fixed slow performance in parsing inline literals in RST reader. The
15953 problem was that ``#`` was seen by 'inline' as a potential link or image.
15954 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
15956 + Use lookAhead instead of getInput/setInput in RST reader. Removed
15957 unneeded getState call, since lookAhead automatically saves and
15958 restores the parser state.
15959 + Allow hyperlink target URIs to be split over multiple lines, and
15960 to start on the line after the reference. Resolves Issue #7.
15961 + Fixed handling of autolinks.
15965 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
15967 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
15968 caret is \^{}, not \^ as before.
15969 + Added parsing for \url.
15970 + Parse \texttt{} as code, provided there's nothing fancy inside.
15974 + Modified HTML writer to use the Text.XHtml library. This results
15975 in cleaner, faster code, and it makes it easier to use Pandoc in
15976 other projects, like wikis, which use Text.XHtml. Two functions are
15977 now provided, writeHtml and writeHtmlString: the former outputs an
15978 Html structure, the latter a rendered string. The S5 writer is also
15979 changed, in parallel ways (writeS5, writeS5String).
15980 + The Html header is now written programmatically, so it has been
15981 removed from the 'headers' directory. The S5 header is still
15982 needed, but the doctype and some of the meta declarations have
15983 been removed, since they are written programmatically. This change
15984 introduces a new dependency on the xhtml package.
15985 + Fixed two bugs in email obfuscation involving improper escaping
15986 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
15988 + Fixed another bug in email obfuscation: If the text to be obfuscated
15989 contains an entity, this needs to be decoded before obfuscation.
15990 Thanks to thsutton for the patch. Resolves Issue #15.
15991 + Changed the way the backlink is displayed in HTML footnotes.
15992 Instead of appearing on a line by itself, it now generally
15993 appears on the last line of the note. (Exception: when the
15994 note does not end with a Plain or Para block.) This saves space
15996 + Added automatic unique identifiers to headers:
15997 - The identifier is derived from the header via a scheme
15998 documented in README.
15999 - WriterState now includes a list of header identifiers and a table
16000 of contents in addition to notes.
16001 - The function uniqueIdentifiers creates a list of unique identifiers
16002 from a list of inline lists (e.g. headers).
16003 - This list is part of WriterState and gets consumed by blockToHtml
16004 each time a header is encountered.
16005 + Include CSS for .strikethrough class in header only if strikethrough
16006 text appears in the document.
16007 + If the 'strict' option is specified, elements that do not appear in
16008 standard markdown (like definition lists) are passed through as
16010 + Simplified treatment of autolinks, using pattern matching instead of
16015 + Links in markdown output are now printed as inline links by default,
16016 rather than reference links. A --reference-links option has been added
16017 that forces links to be printed as reference links. Resolves Issue #4.
16018 + Use autolinks when possible. Instead of `[site.com](site.com)`,
16023 + Rewrote to use the State monad. The preamble now includes only those
16024 packages that are actually required, given the document's content.
16025 Thus, for example, if strikeout is not used, ulem is not required.
16026 Modified LaTeXHeader accordingly.
16027 + Modified LaTeX writer to insert '\,' between consecutive quotes.
16028 + Removed unused function tableRowColumnWidths.
16029 + Simplified code for escaping special characters.
16030 + Leave extra blank line after \maketitle.
16031 + Include empty '\author{}' when no author specified to avoid LaTeX
16033 + Include fancyvrb code in header only if needed -- that is, only
16034 if there is actually code in a footnote.
16035 + Use \url{} for autolinks.
16036 + Include [mathletters] option in ucs package, so that basic unicode
16037 Greek letters will work correctly.
16039 * RST writer: Force blank line before lists, so that sublists will
16040 be handled correctly.
16042 * Docbook writer: Fixed a bug: email links with text, like
16043 [foo](me@bar.baz), were being incorrectly treated as autolinks.
16045 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
16046 Text.Pandoc.Shared.
16048 * Text.Pandoc.Shared:
16050 + Added defaultWriterOptions.
16051 + Added writerTableOfContents to WriterOptions.
16052 + Added writerIgnoreNotes option to WriterOptions. This is needed
16053 for processing header blocks for a table of contents, since notes on
16054 headers should not appear in the TOC.
16055 + Added prettyprinting for native Table format.
16056 + Removed some unneeded imports.
16057 + Moved escape and nullBlock parsers from
16058 Text.ParserCombinators.Pandoc, since the latter is for
16059 general-purpose parsers that don't depend on Text.Pandoc.Definition.
16060 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
16061 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
16062 writer, because HTML writer now uses these in constructing a table
16064 + Added clauses for new inline elements (Strikeout, Superscript,
16065 Subscript) to refsMatch.
16066 + Removed backslashEscape; added new functions escapeStringUsing and
16068 + Moved failIfStrict from markdown reader, since it is now used also
16069 by the HTML reader.
16070 + Added a 'try' to the definition of indentSpaces.
16071 + In definition of 'reference', added check to make sure it's not a note
16073 + Added functions: camelCaseToHyphenated, toRomanNumeral,
16074 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
16075 charsInBalanced', withHorizDisplacement, romanNumeral
16076 + Fixed a bug in the anyLine parser. Previously it would parse an empty
16077 string "", but it should fail on an empty string, or we get an error
16078 when it is used inside "many" combinators.
16079 + Removed followedBy' parser, replacing it with the lookAhead parser from
16081 + Added some needed 'try's before multicharacter parsers, especially in
16083 + Removed the 'try' from the 'end' parser in 'enclosed', so that
16084 'enclosed' behaves like 'option', 'manyTill', etc.
16085 + Added lineClump parser, which parses a raw line block up to and
16086 including any following blank lines.
16087 + Renamed parseFromStr to parseFromString.
16088 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
16089 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
16091 + Removed unneeded 'try' in blanklines.
16092 + Removed endsWith function and rewrote calling functions to use
16093 isSuffixOf instead.
16094 + Added >>~ combinator.
16095 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
16098 * Refactored runtests.pl; added separate tests for tables.
16102 + Added -asxhtml flag to tidy in html2markdown. This will
16103 perhaps help the parser, which expects closing tags.
16104 + Modified markdown2pdf to run pdflatex a second time if --toc or
16105 --table-of-contents was specified; otherwise the table of
16106 contents won't appear.
16107 + Modified markdown2pdf to print a helpful message if the 'ulem'
16108 LaTeX package is required and not found.
16110 * Changes to build process:
16112 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
16114 + Removed cabalize and Pandoc.cabal.in. The repository now contains
16115 pandoc.cabal itself.
16116 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
16117 likes the cabal file to have the same name as the tarball.
16118 + Expanded and revised the package description in pandoc.cabal.
16119 Revised the package synopsis.
16120 + The tarball built by 'make tarball' now contains files built from
16121 templates (including man pages and shell scripts), so pandoc can
16122 be built directly using Cabal tools, without preprocessing.
16123 + Executable binaries are now stripped before installing.
16124 + Man pages are now generated from markdown sources, using pandoc's
16126 + Use HTML version of README (instead of RTF) in Mac OS X installer.
16127 + Instead of testing for the existence of a pandoc symlink in build-exec,
16132 + Updated README and man pages with information on new features.
16133 + Updated INSTALL instructions with some useful clarifications and
16135 + Updated web content.
16137 * Added FreeBSD port.
16143 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
16144 libghc6-xhtml-dev. Removed libghc6-html-dev.
16145 + Suggest texlive-latex-recommended | tetex-extra instead of
16146 tetex-bin. This brings in fancyvrb and unicode support.
16148 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
16150pandoc (0.3) unstable; urgency=low
16152 [ John MacFarlane ]
16154 * Changes in pandoc options:
16156 + Allow options to follow or precede arguments.
16157 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
16158 + Added '--strict' option.
16159 + Added '-o/--output' option.
16160 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
16161 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
16162 error conditions. This is helpful for writing wrappers.
16163 + Added copyright message to '-v' output, modeled after FSF messages.
16164 + Reformatted usage message so that it doesn't wrap illegibly.
16165 + Removed extra blanks after '-h' and '-D' output.
16167 * Added docbook writer.
16169 * Added implicit setting of default input and output format based
16170 on input and output filename extensions. These defaults are
16171 overridden if explicit input and output formats are specified using
16172 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
16175 * Allow ordered list items to begin with (single) letters, as well
16176 as numbers. The list item marker may now be terminated either by
16177 '.' or by ')'. This extension to standard markdown is documented
16180 * Revised footnote syntax. (See README for full details.) The
16181 '[^1]' format now standard in markdown extensions is supported,
16182 as are inline footnotes with this syntax: `^[My note.]`.
16183 The earlier footnote syntax `^(1)` is no longer supported.
16185 * Improved HTML representation of footnotes. All footnotes
16186 are now auto-numbered and appear in an ordered list at the
16187 end of the HTML document. Since the default appearance is now
16188 acceptable, the old footnote styles have been removed from the
16193 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
16194 These readers ran 'runParser' on processed chunks of text to handle
16195 embedded block lists in lists and quotation blocks. But then
16196 any changes made to the parser state in these chunks was lost,
16197 as the state is local to the parser. So, for example, footnotes
16198 didn't work in quotes or list items. The fix: instead of calling
16199 runParser on some raw text, use setInput to make it the input, then
16200 parse it, then use setInput to restore the input to what it was
16201 before. This is shorter and more elegant, and it fixes the problem.
16202 + Fixed bug in notFollowedBy' combinator (adding 'try' before
16203 'parser'). Adjusted code that uses this combinator accordingly.
16204 + Fixed bug in RTF writer that caused improper indentation on
16205 footnotes occurring in indented blocks like lists.
16206 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
16207 and date are parsed correctly. Everything else in the preamble
16209 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
16210 line to count as escaped whitespace.
16211 + Modified LaTeX reader to produce inline links rather than reference
16212 links. Otherwise, links in footnotes aren't handled properly.
16213 + Fixed handling of titles in links in Markdown reader, so that
16214 embedded quotation marks are now handled properly.
16215 + Fixed Markdown reader's handling of embedded brackets in links.
16216 + Fixed Markdown reader so that it only parses bracketed material
16217 as a reference link if there is actually a corresponding key.
16218 + Revised inline code parsing in Markdown reader to conform to
16219 markdown standard. Now any number of `s can begin inline code,
16220 which will end with the same number of `s. For example, to
16221 have two backticks as code, write ``` `` ```. Modified Markdown
16222 writer accordingly.
16223 + Fixed bug in text-wrapping routine in Markdown and RST writers.
16224 Now LineBreaks no longer cause wrapping problems.
16225 + Supported hexadecimal numerical entity references as well as
16227 + Fixed bug in Markdown reader's handling of underscores and other
16228 inline formatting markers inside reference labels: for example,
16229 in '[A_B]: /url/a_b', the material between underscores was being
16230 parsed as emphasized inlines.
16231 + Changed Markdown reader's handling of backslash escapes so that
16232 only non-alphanumeric characters can be escaped. Strict mode
16233 follows Markdown.pl in only allowing a select group of punctuation
16234 characters to be escaped.
16235 + Modified HTML reader to skip a newline following a `<br>` tag.
16236 Otherwise the newline will be treated as a space at the beginning
16239 * Made handling of code blocks more consistent. Previously, some
16240 readers allowed trailing newlines, while others stripped them.
16241 Now, all readers strip trailing newlines in code blocks. Writers
16242 insert a newline at the end of code blocks as needed.
16244 * Modified readers to make spacing at the end of output more consistent.
16246 * Minor improvements to LaTeX reader:
16248 + '\thanks' now treated like a footnote.
16249 + Simplified parsing of LaTeX command arguments and options.
16250 commandArgs now returns a list of arguments OR options (in
16251 whatever order they appear). The brackets are included, and
16252 a new stripFirstAndLast function is provided to strip them off
16253 when needed. This fixes a problem in dealing with \newcommand
16254 and \newenvironment.
16256 * Revised RTF writer:
16258 + Default font is now Helvetica.
16259 + An '\f0' is added to each '\pard', so that font resizing works
16262 * Moved handling of "smart typography" from the writers to the Markdown
16263 and LaTeX readers. This allows great simplification of the writers
16264 and more accurate smart quotes, dashes, and ellipses. DocBook can
16265 now use `<quote>`. The '--smart' option now toggles an option in
16266 the parser state rather than a writer option. Several new kinds
16267 of inline elements have been added: Quoted, Ellipses, Apostrophe,
16270 * Changes in HTML writer:
16272 + Include title block in header even when title is null.
16273 + Made javascript obfuscation of emails even more obfuscatory,
16274 by combining it with entity obfuscation.
16276 * Changed default ASCIIMathML text color to black.
16280 + Added --strip-trailing-cr option to diff in runtests.pl, for
16281 compatibility with Windows.
16282 + Added regression tests with footnotes in quote blocks and lists.
16284 * Makefile changes:
16286 + osx-pkg target creates a Mac OS X package (directory). New osx
16287 directory contains files needed for construction of the package.
16288 + osx-dmg target creates a compressed disk image containing the package.
16289 + win-pkg target creates Windows binary package.
16290 + tarball target creates distribution source tarball.
16291 + website target generates pandoc's website automatically, including
16292 demos. New 'web' directory contains files needed for construction
16293 of the website (which will be created as the 'pandoc' subdirectory
16295 + Makefile checks to see if we're running Windows/Cygwin; if so,
16296 a '.exe' extension is added to each executable in EXECS.
16298 * Removed all wrappers except markdown2pdf and html2markdown.
16300 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
16301 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
16302 option and disables other options.
16304 * Added code to html2markdown that tries to determine the character
16305 encoding of an HTML file, by parsing the "Content-type" meta tag.
16307 + If the encoding can't be determined, then if the content is local,
16308 the local encoding is used; if it comes from a URL, UTF-8 is used
16310 + If input is from STDIN, don't try to determine character encoding.
16311 + Encoding can be specified explicitly using '-e' option.
16313 * Improved warning messages in wrappers:
16315 + Print warning if iconv not available
16316 + More user-friendly error messages in markdown2pdf, when
16321 + Renamed 'Text/Pandoc/HtmlEntities' module to
16322 'Text/Pandoc/Entities'. Also changed function names so as
16323 not to be HTML-specific.
16324 + Refactored SGML string escaping functions from HTML and Docbook
16325 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
16326 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
16328 + Removed splitBySpace and replaced it with a general, polymorphic
16330 + Refactored LaTeX reader for clarity (added isArg function).
16331 + Converted some CR's to LF's in src/ui/default/print.css.
16332 + Added license text to top of source files.
16333 + Added module data for haddock to source files.
16334 + Reformatted code for consistency.
16336 * Rewrote documentation and man pages. Split README into INSTALL
16339 * Split LICENSE into COPYING and COPYRIGHT.
16341 * Removed TODO, since we now maintain ToDo on the wiki.
16343 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
16348 * Revamped build process to conform to debian standards and created
16349 a proper debian package. Closes: #391666.
16351 * Modified build process to support GHC 6.6.
16353 + The package can still be compiled using GHC 6.4.2, though because
16354 of dependencies the "make deb" target works only with GHC 6.6+.
16355 + The script 'cabalize' is used to create an appropriate
16356 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
16359 * Refactored template processing (fillTemplates.pl).
16361 * Modified wrapper scripts to make them more robust and portable.
16362 To avoid code duplication and ensure consistency, wrappers are
16363 generated via a templating system from templates in src/wrappers.
16365 + Wrappers now accept multiple filenames, when appropriate.
16366 + Spaces and tabs allowed in filenames.
16367 + getopts shell builtin is used for portable option parsing.
16368 + Improved html2markdown's web grabber code, making it more robust,
16369 configurable and verbose. Added '-e', '-g' options.
16371 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
16373pandoc (0.2) unstable; urgency=low
16375 * Fixed unicode/utf-8 translation
16377 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
16379pandoc (0.1) unstable; urgency=low
16381 * Initial creation of debian package
16383 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list