git.iko.soy/typeable/pandoc
on issue5354 help sign in
typeable/pandoc/changelog
16628 lines 713 kB history raw
1pandoc (2.7)
3 * Use XDG data directory for user data directory (#3582). Instead of
4 `$HOME/.pandoc`, the default user data directory is now
5 `$XDG_DATA_HOME/pandoc`, where `XDG_DATA_HOME` defaults to
6 `$HOME/.local/share` but can be overridden by setting the
7 environment variable. If this directory is missing, then
8 `$HOME/.pandoc` is searched instead, for backwards compatibility.
9 However, we recommend moving local pandoc data files from
10 `$HOME/.pandoc` to `$HOME/.local/share/pandoc`. On Windows the
11 default user data directory remains the same.
13 * Slide show formats behavior change: content under headers
14 less than slide level is no longer ignored, but included in
15 the title slide (for HTML slide shows) or in a slide after
16 the title slide (for beamer). This change makes possible
17 2D reveal.js slideshows with content in the top slide on
18 each stack (#4317, #5237).
20 * Add command line option `--ipynb-output=all|none|best` (#5339).
21 Output cells in ipynb notebooks often contain several different
22 versions of an output, with different MIME types, e.g. an HTML
23 table and a plain-text fallback. Specifying `--ipynb-output=best`
24 (the default) ensures that the best version for the output format
25 is used. `all` includes all versions, and `none` suppresses them
26 all, leaving output cells empty.
28 * `asciidoctor` is now an output format separate from `asciidoc`,
29 to accommodate some minor implementation-specific differences
30 (currently just in the treatment of display math).
32 * Add `latexmk` as an option for `--pdf-engine` (#3195).
33 Note that you can use `--pdf-engine-opt=-outdir=bar` to specify
34 a persistent temp directory.
36 * Markdown reader:
38 + Improve tight/loose list handling (#5285). Previously the
39 algorithm allowed list items with a mix of Para and Plain, which
40 is never wanted.
41 + Add newline when parsing blocks in YAML (#5271). Otherwise last
42 block gets parsed as a Plain rather than a Para. This is a
43 regression in pandoc 2.x. This patch restores pandoc 1.19
44 behavior.
45 + Make `yamlToMeta` respect extensions (#5272, Mauro Bieg).
46 This adds a `ReaderOptions` parameter to `yamlToMeta` [API change].
47 + Fix bug parsing fenced code blocks (#5304). Previously parsing
48 would break if the code block contained a string of backticks of
49 sufficient length followed by something other than end of line.
51 * LaTeX reader: don't let `\egroup` match `{`. `braced` now actually
52 requires nested braces. Otherwise some legitimate command and
53 environment definitions can break.
55 * Docx reader (Jesse Rosenthal):
57 + Rename `getDocumentPath` as `getDocumentXmlPath`.
58 + Use field notation for setting `ReaderEnv`.
59 + Figure out `document.xml` path once at the beginning of parsing, and
60 add it to the environment, so we can avoid repeated lookups.
61 + Dynamically determine main document xml path (#5277).
62 The desktop Word program places the main document file in
63 `word/document.xml`, but the online word places it in
64 `word/document2.xml`. This file path is actually stated in the root
65 `_rels/.rels` file, in the `Relationship` element with an
66 `http://../officedocument` type.
67 + Fix paths in archive to prevent Windows failure (#5277).
68 Some paths in archives are absolute (have an opening slash) which, for
69 reasons unknown, produces a failure in the test suite on MS
70 Windows. This fixes that by removing the leading slash if it exists.
71 + Add comments to aid code readability.
72 + Trim space inside the last inline (#5273).
73 + Unwrap sdt elements in footnotes and comments (#5302).
75 * Muse reader (Alexander Krotov):
77 + Test that block level markup does not break `<verbatim>`.
78 + Add secondary note support.
80 * ipynb reader: handle images referring to attachments. Previously
81 we didn't strip off the attachment: prefix, so even though the
82 attachment was available in the mediabag, pandoc couldn't find it.
84 * JATS reader:
86 + Fix parsing of figures (#5321). This ensures that a figure
87 containing a single image is parsed as a pandoc "implicit
88 figure" (i.e., a Para with a single Image whose title attribute
89 begins with `fig:`). More complex figures will still be parsed
90 as divs.
91 + Support `fig-group` block element (#5317).
92 + Handle citations with multiple references (#5310). The `rid`
93 attribute can have a space-separated list of ids.
95 * AsciiDoc Writer: Add `writeAsciiDoctor` [API change, Tarik Graba].
96 Handle display math appropriately for Asciidoctor.
98 * JATS writer: wrap figure caption in `<p>` to fix validation (#5290,
99 Mauro Bieg).
101 * HTML writer:
103 + Implement WAI-ARIA roles for (end)notes, citations, and
104 bibliography (#4213). Note that doc-biblioref is only used when
105 link-citations produces links, since it belongs on links.
106 + Include content (including speaker notes) in title slides
107 (#4317, #5237).
109 * ipynb writer:
111 + Ensure final newline.
112 + Only include metadata under `jupyter` field.
113 + Don't create attachments for images with absolute URIs,
114 including data: URIs (#5303).
115 + Keep plain text fallbacks in output even if a richer format is
116 included (#5293). We don't know what output format will be needed.
117 See the `--ipynb-output` command line option for a way to control
118 what formats are included in the output.
120 * Markdown writer: use `markdown="1"` when appropriate for Divs:
121 when `native_divs` and `markdown_in_html_blocks` are disabled
122 but `raw_html` and `markdown_attribute` are enabled.
124 * LaTeX writer:
126 + Use right fold for `escapeString`. This is more elegant than
127 the explicit recursive code we were using.
128 + Avoid `{}` after control sequences when escaping.
129 `\ldots{}.` doesn't behave as well as `\ldots.` with the latex
130 ellipsis package. This patch causes pandoc to avoid emitting
131 the `{}` when it is not necessary. Now `\ldots` and other
132 control sequences used in escaping will be followed by either
133 a `{}`, a space, or nothing, depending on context.
134 + For beamer, include contents under headers superordinate to
135 slidelevel (#4317). Currently we keep the fancy title slide, and
136 add a new slide with the same title and whatever content was
137 under the header.
139 * Powerpoint writer (Jesse Rosenthal): support underlines.
140 Use span with single class "underline" as in docx writer.
142 * Muse writer: escape secondary notes (Alexander Krotov).
144 * FB2 writer: add section identifiers support (#5229, John KetzerX).
146 * Make `--fail-if-warnings` work for PDF output (#5343).
148 * Lua filters (Albert Krewinkel):
150 + Load module `pandoc` before calling `init.lua` (#5287). The file
151 `init.lua` in pandoc's data directory is run as part of pandoc's
152 Lua initialization process. Previously, the `pandoc` module was
153 loaded in `init.lua`, and the structure for marshaling was
154 set up after. This allowed simple patching of element
155 marshaling, but made using `init.lua` more difficult. Now, all
156 required modules are now loaded before calling `init.lua`. The
157 file can be used entirely for user customization. Patching
158 marshaling functions, while discouraged, is still possible via
159 the `debug` module.
160 + All Lua modules bundled with pandoc, i.e., `pandoc.List`,
161 `pandoc.mediabag`, `pandoc.utils`, and `text` are re-exported from the
162 `pandoc` module. They are assigned to the fields `List`, `mediabag`,
163 `utils`, and `text`, respectively.
165 * Text.Pandoc.Lua (Albert Krewinkel):
167 + Split `StackInstances` into smaller Marshaling modules.
168 + Get `CommonState` from Lua global. This allows more control over
169 the common state from within Lua scripts.
171 * LaTeX template:
173 + Support the `subject` metadata variable (#5289, Pascal Wagler).
174 + Add `\frontmatter`, `\mainmatter`, `\backmatter`
175 for book classes (#5306).
177 * epub3 template: Add titlepage class to section (#5269).
179 * HTML5 template: Add ARIA role `doc-toc` for table of contents (#4213).
181 * Make `--metadata-file` use selected extensions (#5279, #5272, Mauro Bieg).
183 * Text.Pandoc.Shared:
185 + Remove `withTempDir` [API change].
186 + Add new exported function `defaultUserDataDirs` [API change].
187 + Add `filterIpynbOutput` [API change].
188 + `compactify`: Avoid lists with a mix of Plain and Para elements
189 (#5285).
191 * Text.Pandoc.Translations: reorder alphabetically and remove `Author`
192 (#5334, Mauro Bieg).
194 * Text.Pandoc.Extensions:
196 + More carefully groom ipynb default extensions.
197 + Add `all_symbols_escapable` to `githubMarkdownExtensions`.
199 * Text.Pandoc.PDF:
201 + Use system temp directory when possible (#1192). Previously we
202 created temp dirs in the working directory, partly (a) because
203 there were problems using the system temp directory on Windows,
204 when their pathnames included tildes, and partly (b) because
205 programs like `epstopdf.pl` would not be allowed to write to
206 directories outside the working directory in restricted mode. We
207 now (a) use the system temp dir except when the path includes
208 tildes, and (b) set `TEXMFOUTPUT` when creating the PDF, so that
209 subsidiary programs can use the system temp directory. This
210 addresses problems that occurred when pandoc was used in a
211 synced directory (such as Dropbox).
212 + Change types of subsidiary functions to PandocIO, to allow
213 warnings to be threaded through (#5343).
215 * Text.Pandoc.MIME: add WebP (#5267, Mauro Bieg).
217 * Tests: avoid calling `findPandoc` multiple times.
219 * Old tests: remove need for temp files by using `pipeProcess`.
221 * Added simple ipynb reader/writer tests (#5274).
223 * Rearrange `--help` output in a more rational way, with common
224 options at the beginning and options grouped by function (#5336).
226 * trypandoc: Add JATS and other missing formats (Arfon Smith, #5291).
228 * Add missing copyright notices and remove license boilerplate (#4592,
229 Albert Krewinkel).
231 * Use latest basement/foundation on 32bit windows.
233 * Use latest skylighting (#5328). Custom syntax definitions no
234 longer try to load `language.dtd`.
236 * Require texmath 0.11.2.1
238 * Use latest pandoc-citeproc (0.16.1.1).
240 * MANUAL.txt:
242 + Clarify variable substitution indentation in templates (#5338,
243 Agustín Martín Barbero).
244 + Reorder custom-styles section (#5324, Mauro Bieg).
246pandoc (2.6)
248 * Support ipynb (Jupyter notebook) as input and output format.
250 + Add `ipynb` as input and output format (extension `.ipynb`).
251 + Added Text.Pandoc.Readers.Ipynb [API change].
252 + Added Text.Pandoc.Writers.Ipynb [API change].
253 + Add `PandocIpynbDecodingError` constructor to Text.Pandoc.Error.Error
254 [API change].
255 + Depend on ipynb library.
256 + Note: there is no template for ipynb.
258 * Add DokuWiki reader (#1792, Alexander Krotov). This adds
259 Text.Pandoc.Readers.DokuWiki [API change], and adds `dokuwiki`
260 as an input format.
262 * Implement task lists (#3051, Mauro Bieg). Added `task_lists`
263 extension. Task lists are supported from markdown and gfm input.
264 They should work, to some degree, in all output formats, though in
265 most formats you'll get a bullet list with a unicode character for
266 the box. In HTML, you get checkboxes and in LaTeX/PDF output, a
267 box is used as the list marker. API changes:
269 + Added constructor `Ext_task_lists` to `Extension`.
270 + Added `taskListItemFromAscii` and `taskListItemToAscii` to
271 Text.Pandoc.Shared.
273 * Allow some command line options to take URL in addition to FILE.
274 `--include-in-header`, `--include-before-body`, `--include-after-body`.
276 * HTML reader:
278 + Handle empty `start` attribute (see #5162).
279 + Treat `textarea` as a verbatim environment (#5241) and preserve
280 spacing.
282 * RST reader:
284 + Change treatment of `number-lines` directive (Brian Leung,
285 #5207). Directives of this type without numeric inputs should
286 not have a `startFrom` attribute; with a blank value, the
287 writers can produce extra whitespace.
288 + Removed superfluous `sourceCode` class on code blocks (#5047).
289 + Handle `sourcecode` directive as synonynm for `code` (#5204).
291 * Markdown reader:
293 + Remove `sourceCode` class for literate Haskell code blocks
294 (#5047). Reverse order of `literate` and `haskell` classes on
295 code blocks when parsing literate Haskell, so `haskell` is
296 first.
297 + Treat `<textarea>` as a verbatim environment (#5241).
299 * Org reader:
301 + Handle `minlevel` option differently (#5190, Brian Leung).
302 When `minlevel` exceeds the original minimum level observed in
303 the file to be included, every heading should be shifted
304 rightward.
305 + Allow for case of `:minlevel == 0` (#5190).
306 + Fix treatment of links to images (#5191, Albert Krewinkel).
307 Links with descriptions which are pointing to images are no
308 longer parsed as inline images, but as links.
309 + Add support for #+SELECT_TAGS (Brian Leung).
310 + Separate filtering logic from conversion function (Brian Leung).
312 * TWiki reader: Fix performance issue with underscores (#3921).
314 * MediaWiki reader: use `_` instead of `-` in auto-identifiers (#4731).
315 We may not still be exactly matching mediawiki's algorithm.
317 * LaTeX reader:
319 + Remove `sourceCode` class for literate Haskell code blocks
320 (#5047). Reverse order of `literate` and `haskell` classes on
321 code blocks when parsing literate Haskell, so `haskell` is
322 first.
323 + Support `\DeclareMathOperator` (#5149).
324 + Support `\inputminted` (#5103).
325 + Support `\endinput` (#5233).
326 + Allow includes with dots like `cc_by_4.0`. Previously the `.0`
327 was interpreted as a file extension, leading pandoc not to add
328 `.tex` (and thus not to find the file). The new behavior matches
329 tex more closely.
331 * Man reader:
333 + Use `mapLeft` from Shared instead of defining own.
335 * Docx reader (Jesse Rosenthal):
337 + Handle level overrides (#5134).
339 * Docx writer:
341 + Support custom properties (#3024, #5252, Agustín Martín Barbero).
342 Also supports additional core properties: `subject`, `lang`,
343 `category`, `description`.
344 + Make Level into a real type, instead of an alias for a tuple
345 (Jesse Rosenthal).
347 * ICML writer (Mauro Bieg):
349 + Support custom-styles (#5137, see #2106).
350 + Support unnumbered headers (#5140).
352 * Texinfo writer: Use header identifier for anchor if present (#4731).
353 Previously we were overwriting an existing identifier with a new one.
355 * Org writer: Preserve line-numbering for example and code blocks
356 (Brian Leung).
358 * Man/Ms writers: Don't escape `-` as `\-`. The `\-` gets rendered
359 in HTML and PDF as a unicode minus sign.
361 * Ms writer: Ensure we have a newline after .EN in disply math (#5251).
363 * RST writer: Don't wrap simple table header lines (#5128).
365 * Asciidoc writer: Shorter delimiters for tables, blockquotes
366 (#4364). This matches asciidoctor reference docs.
368 * Dokuwiki writer: Remove automatic `:` prefix before internal image
369 links (#5183, Damien Clochard). This prevented users from making
370 relative image links.
372 * Zimwiki writer: remove automatic colon prefix before internal
373 images (#5183, Damien Clochard).
375 * MediaWiki writer: fix caption, use 'thumb' instead of 'frame'
376 (#5105). Captions used to have the word 'caption' prepended; this
377 has been removed. Also, 'thumb' is used instead of 'frame' to
378 allow images to be resized.
380 * reveal.js writer:
382 + Ensure that we don't get > 2 levels of section nesting,
383 even with slide level > 2 (#5168).
384 + If slide level == N but there is no N-level header, make
385 sure the next header with level > N gets treated as a slide
386 and put in a section, rather than remaining loose (#5168).
388 * Markdown writer:
390 + Make `plain` RawBlocks pass through in `plain` output.
391 + Include needed whitespace after HTML figure (#5121).
392 We use HTML for a figure in markdown dialects that can't
393 represent it natively.
395 * Commonmark writer:
397 + Fix handling of SoftBreak with `hard_line_breaks` (#5195).
398 + Implement `--toc` (`writerTableOfContents`)
399 in commonmark/gfm writers (#5172).
401 * EPUB writer:
403 + Ensure that picture transforms are done on metadata too.
404 + Small fixes to `nav.xhtml`:
405 Add 'landmarks' id attribute to the landmarks nav.
406 Replace old default CSS removing numbers from ol.toc li
407 with new rules that match `nav#toc ol, nav#landmarks ol`.
408 We keep the `toc` class on `ol` for backwards compatibility.
410 * LaTeX writer:
412 + Make raw content marked `beamer` pass through in `beamer`
413 output (pandoc/lua-filters#40).
414 + Beamer: avoid duplicated `fragile` property in some cases
415 (#5208).
416 + Add `#` special characters for listings (#4939).
417 This character needs special handling in `\lstinline`.
419 * RTF writer: use `toTableOfContents` from Shared to replace
420 old duplicated code.
422 * Pptx writer:
424 + Support custom properties. Also supports additional core
425 properties: `subject`, `category`, `description` (#5252,
426 Agustín Martín Barbero).
427 + Use `toTableOfContents` from Shared to replace old duplicated code.
429 * ODT writer (Augustín Martín Barbero):
431 + Fix typo in custom properties (#2839).
432 + Improve standard properties, including the following core
433 properties: `generator` (Pandoc/VERSION), `description`, `subject`,
434 `keywords`, `initial-creator` (from authors), `creation-date`
435 (actual creation date) (#5252).
437 * Custom writers:
439 + Allow '-' in filenames for custom lua writers (#5187).
440 + sample.lua: add `SingleQuoted`, `DoubleQuoted` (#5104).
441 + sample.lua: Add a missing `>` (MichaWiedenmann).
443 * reveal.js template: Add `zoomKey` config (#4249).
445 * HTML5 template: Remove unnecessary type="text/css" on style and
446 link for HTML5 (#5146).
448 * LaTeX template (Andrew Dunning, except where noted):
450 + Prevent fontspec from scaling `mainfont` to match the default
451 font, Latin Modern. A main font set to 12pt could
452 previously appear between 11pt to 13pt depending on its design.
453 To return to the earlier rendering, use `-V
454 mainfontoptions="Scale=MatchLowercase"` (#5212, #5218).
455 + Display monospaced fonts without TeX ligatures when using
456 `--pdf-engine=lualatex`. It now matches the behaviour of other
457 engines (#5212, #5218).
458 + Remove the deprecated `romanfont` variable. The functionality of
459 `mainfont` is identical (#5218).
460 + Render `\subtitle` with the standard document classes.
461 Previously, `subtitle` only appeared when using the KOMA-Script
462 classes or Beamer (#5213, #5244).
463 + Use Babel instead of Polyglossia for LuaLaTeX. This avoids
464 several language selection problems, notably with retaining
465 French spacing conventions when switching to a verbatim
466 environment or another language; and in printing Greek text
467 without hyphenation (#5193).
468 + Use the [`xurl`](https://ctan.org/pkg/xurl) package if
469 available, improving the appearance of URLs by allowing them to
470 break at additional points (#5193).
471 + Use [`bookmark`](https://ctan.org/pkg/bookmark) if available
472 to correct heading levels in PDF bookmarks: see the [KOMA-Script
473 3.26 release notes](https://komascript.de/release3.26) (#5193).
474 + Require the [`xcolor`](https://ctan.org/pkg/xcolor) package to
475 avoid a possible error when using additional packages alongside
476 footnotes in tables (#5193, closes #4861).
477 + Remove obsolete `fixltx2e` package, which has no functionality
478 with TeX Live 2015 or later (#5193).
479 + Allow multiple `fontfamilies.options` (#5193, closes #5194).
480 + Restrict `institute` variable to Beamer (#5219).
481 + Use [`footnotehyper`](https://ctan.org/pkg/footnotehyper)
482 package if available to make footnotes in tables compatible
483 with `hyperref` (#5234).
484 + Number parts and chapters in book classes only if the
485 `numbersections` variable is set, for consistency with other
486 output formats. To return to the previous behaviour, use
487 `-V numbersections -V secnumdepth=0` (#5235).
488 + Reindent file (#5193).
489 + Use built-in parskip handling with KOMA-Script classes (#5143, Enno).
490 + Set default listings language for lua, assembler (#5227, John
491 MacFarlane). Otherwise we get an error when trying to compile code
492 with lua or assembler code. To change the default dialect
493 (currenty 5.3 for lua and x86masm for assembler), you can use
494 `--include-in-header` to inject something like
495 `\lstset{defaultdialect=[5.2]Lua}`.
497 * Text.Pandoc.Readers: Changed types of `readJSON`; it now runs
498 in an instance of PandocMonad, like the other readers and
499 writers. [API change]
501 * Text.Pandoc.Writers: Changed types of `writeJSON`; it now runs
502 in an instance of PandocMonad, like the other readers and
503 writers. [API change]
505 * Text.Pandoc.Error: Added `PandocUTF8DecodingError` constructor
506 for `PandocError`. [API change]
508 * Text.Pandoc.Writers.Shared - add `toTableOfContents`. [API change]
509 This is refactored out from the Markdown writer.
510 It can be used in other writers to create a table of contents.
512 * Improve error messages for UTF-8 decoding errors. Now we give
513 the filename and byte offset (#4765).
515 * Text.Pandoc.XML: Strip out illegal XML characters in
516 `escapeXMLString` (#5119).
518 * Text.Pandoc.Process: update `pipeProcess` (Albert Krewinkel).
519 The implementation of `pipeProcess` was rewritten to fix sporadic
520 failures caused by prematurely closed pipes.
522 * Use `safeRead` instead of `read` everywhere in the code
523 (John MacFarlane, Mauro Bieg, #5162, #5180).
525 * Text.Pandoc.SelfContained: Decompress `.svgz` when
526 converting to `data:` URI (#5163, Alexander Krotov).
528 * Text.Pandoc.Parsing: Remove unused `HasHeaderMap`
529 (#5175, Alexander Krotov). [API change]
531 * Normalize Windows paths to account for change in ghc 8.6 (#5127).
532 When pandoc is compiled with ghc 8.6, Windows paths are treated
533 differently, and paths beginning `\\server` no longer work.
534 This commit rewrites such patsh to `\\?\UNC\server` which works.
535 The change operates at the level of argument parsing, so it
536 only affects the command line program.
538 * Simplify/fix reading of `--metadata` values on command line
539 to avoid problems relating to hvr/HsYAML#7 (#5177).
541 * data/pandoc.lua: auto-fix nested constructor arguments (Albert
542 Krewinkel). Incorrect types to pandoc element constructors are
543 automatically converted to the correct types when possible. This was
544 already done for most constructors, but conversions are now also done
545 for nested types (like lists of lists).
547 * Removed custom Setup.hs, use build-type: simple. The only thing we
548 gained from the custom build was automatic installation of the man
549 page when using 'cabal install'. But custom builds cause problems,
550 e.g., with cross-compilation. Installation of the man page is
551 better handled by packagers. Note to packagers (e.g. Debian): it
552 may be necessary to add a step installing the man page with the
553 next release.
555 * Allow latest http-client, tasty, zip-archive, Glob.
557 * Require skylighting >= 0.7.5, adding support for sml, J,
558 typescript.
560 * Tests: Cleaned up `findPandoc` in `Tests.Helpers`, so it
561 works well with cabal v2.
563 * INSTALL.md:
565 + Use button for installer links (John MacFarlane, Mauro Bieg,
566 #5167).
567 + Fix links and bump required stack version (max).
568 + Improve installation notes on associated software (Andrew
569 Dunning). Includes explanation of how to install related tools
570 with package managers (since the method of installing
571 `rsvg-convert` is not obvious).
573 * doc/org.md: improve documentation of org features (Albert
574 Krewinkel).
576 * doc/lua-filters.md: use 3rd level headers for module fields.
578 * MANUAL:
580 + Clarify automatic identifiers (#5201). We remove
581 non-alphanumerics. This includes, e.g., emojis.
582 + Fix example for Div with id (Geoffrey Ely).
583 + Update list of LaTeX packages used.
584 + Make it clear that `hard_line_breaks` works in `gfm` (see #5195).
585 + Mention `raw_attribute` in documentation for `raw_html` and
586 `raw_tex` (#5240, thanks to @eiro).
587 + Clarify that `$sep$` must come right before `$endfor$` in templates
588 (#5243, Lev Givon).
589 + Document metadata support for docx, odt, pptx writers (Agustín
590 Martín Barbero).
591 + Reorganize template variables (#5249, Andrew Dunning).
592 Add additional headings to categorize variables, and
593 alphabetize when there is large number; add more examples.
594 + Document `date-meta` template variable (#5260, Tristan Stenner).
596 * trypandoc: Fix CSS and viewport.
598pandoc (2.5)
600 * Text.Pandoc.App: split into several unexported submodules (Albert
601 Krewinkel): Text.Pandoc.App.FormatHeuristics,
602 Text.Pandoc.App.Opt, Text.Pandoc.App.CommandLineOptions,
603 Text.Pandoc.App.OutputSettings. This is motivated partly by the
604 desire to reduce recompilations when something is modified,
605 since App previously depended on virtually every other module.
607 * Text.Pandoc.Extensions
609 + Semantically, `gfm_auto_identifiers` is now a modifier of
610 `auto_identifiers`; for identifiers to be set, `auto_identifiers` must
611 be turned on, and then the type of identifier produced depends on
612 `gfm_auto_identifiers` and `ascii_identifiers` are set. Accordingly,
613 `auto_identifiers` is now added to `githubMarkdownExtensions` (#5057).
614 + Remove `ascii_identifiers` from `githubMarkdownExtensions`.
615 GitHub doesn't seem to strip non-ascii characters any more.
617 * Text.Pandoc.Lua.Module.Utils (Albert Krewinkel)
619 + Test AST object equality via Haskell (#5092). Equality of Lua
620 objects representing pandoc AST elements is tested by unmarshalling
621 the objects and comparing the result in Haskell.
622 A new function `equals` which performs this test has been added to the
623 `pandoc.utils` module.
624 + Improve stringify. Meta value strings (MetaString)
625 and booleans (MetaBool) are now converted to the literal string and the
626 lowercase boolean name, respectively. Previously, all values of these
627 types were converted to the empty string.
629 * Text.Pandoc.Parsing: Remove Functor and Applicative constraints where Monad
630 already exists (Alexander Krotov).
632 * Text.Pandoc.Pretty: Don't render BreakingSpace at end of line
633 or beginning of line (#5050).
635 * Text.Pandoc.Readers.Markdown
637 + Fix parsing of citations, quotes, and underline emphasis
638 after symbols. Starting with pandoc 2.4, citations, quoted inlines,
639 and underline emphasis were no longer recognized after certain
640 symbols, like parentheses (#5099, #5053).
641 + In pandoc 2.4, a soft break after an abbreviation would be
642 relocated before it to allow for insertion of a nonbreaking
643 space after the abbreviation. This behavior is here reverted.
644 A soft break after an abbreviation will remain, and no nonbreaking
645 space will be added. Those who care about this issue should take care not
646 to end lines with an abbreviation, or to insert nonbreaking spaces
647 manually.
649 * Text.Pandoc.Readers.FB2: Do not throw error for unknown elements in
650 `<body>` (Alexander Krotov). Some libraries include custom elements
651 in their FB2 files.
653 * Text.Pandoc.Readers.HTML
655 + Allow `tfoot` before body rows (#5079).
656 + Parse `<small>` as a Span with class "small" (#5080).
657 + Allow thead containing a row with `td` rather than `th` (#5014).
659 * Text.Pandoc.Readers.LaTeX
661 + Cleaned up handling of dimension arguments. Allow decimal points,
662 preceding space.
663 + Don't allow arguments for verbatim, etc.
664 + Allow space before bracketed options.
665 + Allow optional arguments after `\\` in tables.
666 + Improve parsing of `\tiny`, `\scriptsize`, etc. Parse as raw,
667 but know that these font changing commands take no arguments.
669 * Text.Pandoc.Readers.Muse
671 + Trim whitespace before parsing grid table cells (Alexander Krotov).
672 + Add grid tables support (Alexander Krotov).
674 * Text.Pandoc.Shared
676 + For bibliography match Div with id `refs`, not class `references`.
677 This was a mismatch between pandoc's docx, epub, latex, and markdown
678 writers and the behavior of pandoc-citeproc, which actually looks for a
679 div with id `refs` rather than one with class `references`.
680 + Exactly match GitHub's identifier generating algorithm (#5057).
681 + Add parameter for `Extensions` to `uniqueIdent` and
682 `inlineListToIdentifier` (#5057). [API change]
683 This allows these functions to be sensitive to the settings of
684 `Ext_gfm_auto_identifiers` and `Ext_ascii_identifiers`, and allows us to
685 use `uniqueIdent` in the CommonMark reader, replacing custom code. It
686 also means that `gfm_auto_identifiers` can now be used in all formats.
688 * Text.Pandoc.Writers.AsciiDoc
690 + Use `.`+ as list markers to support nested ordered lists (#5087).
691 + Support list number styles (#5089).
692 + Render Spans using `[#id .class]#contents#` (#5080).
694 * Text.Pandoc.Writers.CommonMark
696 + Respect `--ascii` (#5043, quasicomputational).
697 + Make sure `--ascii` affects quotes, super/subscript.
699 * Text.Pandoc.Writers.Docx
701 + Fix bookmarks to headers with long titles (#5091).
702 Word has a 40 character limit for bookmark names. In addition, bookmarks
703 must begin with a letter. Since pandoc's auto-generated identifiers may
704 not respect these constraints, some internal links did not work. With
705 this change, pandoc uses a bookmark name based on the SHA1 hash of the
706 identifier when the identifier isn't a legal bookmark name.
707 + Add bookmarks to code blocks (Nikolay Yakimov).
708 + Add bookmarks to images (Nikolay Yakimov).
709 + Refactor common bookmark creation code into a function (Nikolay Yakimov).
711 * Text.Pandoc.Writers.EPUB: Handle calibre metadata (#5098).
712 Nodes of the form
714 <meta name="calibre:series" content="Classics on War and Politics"/>
716 are now included from an epub XML metadata file. You can also include
717 this information in your YAML metadata, like so:
719 calibre:
720 series: Classics on War and Policitics
722 In addition, ibooks-specific metadata can now be included via an XML
723 file. (Previously, it could only be included via YAML metadata, see
724 #2693.)
726 * Text.Pandoc.Writers.HTML: Use plain `"` instead of `&quot;` outside of
727 attributes.
729 * Text.Pandoc.Writers.ICML: Consolidate adjacent strings, inc. spaces.
730 This avoids splitting up the output unnecessarily into separate elements.
732 * Text.Pandoc.Writers.LaTeX: Don't emit `[<+->]` unless beamer output, even
733 if `writerIncremental` is True (#5072).
735 * Text.Pandoc.Writers.Muse (Alexander Krotov).
737 + Output tables as grid tables if they have multi-line cells.
738 + Indent simple tables only on the top level.
739 + Output tables with one column as grid tables.
740 + Add support for `--reference-location`.
741 + Internal improvements.
743 * Text.Pandoc.Writers.OpenDocument: Fix list indentation (Nils Carlson,
744 #5095). This was a regression in pandoc 2.4.
746 * Text.Pandoc.Writers.RTF: Fix warnings for skipped raw inlines.
748 * Text.Pandoc.Writers.Texinfo: Add blank line before `@menu` section (#5055).
750 * Text.Pandoc.XML: in `toHtml5Entities`, prefer shorter entities
751 when there are several choices for a particular character.
753 * data/abbreviations
755 + Add additional abbreviations (Andrew Dunning)
756 Many of these borrowed from the Chicago Manual of Style 10.42,
757 'Scholarly abbreviations'.
759 * Templates
761 + Asciidoc template: add :lang: to title header is lang is set in
762 metadata (#5088).
764 * pandoc.cabal: Add cabal flag `derive_json_via_th` (Albert Krewinkel)
765 Disabling the flag will cause derivation of ToJSON and FromJSON
766 instances via GHC Generics instead of Template Haskell. The flag is
767 enabled by default, as deriving via Generics can be slow (see #4083).
769 * trypandoc:
771 + Tweaked drop-down lists.
772 + Put link to site in footer.
773 + Preselect output format.
774 + Update on change of in or out format.
775 + Add man input format.
777 * MANUAL.txt:
779 + Fix outdated description of latex_macros extension.
780 + Clarified placement of bibliography.
781 + Added "A note on security."
782 + Fix note on curly brace syntx for locators.
783 + Document new explicit syntax for citeproc locators.
784 + Remove confusing cross-links for some extensions.
785 + Don't put pandoc in code ticks in heading.
786 + Document that `--ascii` works for gfm and commonmark too.
787 + Add `man` to `--from` options.
789 * doc/customizing-pandoc.md: various improvements (Mauro Bieg).
792pandoc (2.4)
794 [new features]
796 * New input format `man` (Yan Pashkovsky, John MacFarlane).
798 [behavior changes]
800 * `--ascii` is now implemented in the writers, not in Text.Pandoc.App,
801 via the new `writerPreferAscii` field in `WriterOptions`.
802 Now the `write*` functions for Docbook, HTML, ICML, JATS, LaTeX,
803 Ms, Markdown, and OPML are sensitive to `writerPreferAscii`.
804 Previously the to-ascii translation was done in Text.Pandoc.App,
805 and thus not available to those using the writer functions
806 directly.
808 * `--ascii` now works with Markdown output. HTML5 character reference
809 entities are used.
811 * `--ascii` now works with LaTeX output. 100% ASCII output can't be
812 guaranteed, but the writer will use commands like `\"{a}` and `\l`
813 whenever possible, to avoid emiting a non-ASCII character.
815 * For HTML5 output, `--ascii` now uses HTML5 character reference
816 entities rather than numerical entities.
818 * Improved detection of format based on extension (in Text.Pandoc.App).
819 We now ensure that if someone tries to convert a file for a
820 format that has a pandoc writer but not a reader, it won't just
821 default to markdown.
823 * Add viz. to abbreviations file (#5007, Nick Fleisher).
825 * AsciiDoc writer: always use single-line section headers,
826 instead of the old underline style (#5038). Previously the single-line
827 style would be used if `--atx-headers` was specified, but
828 now it is always used.
830 * RST writer: Use simple tables when possible (#4750).
832 * CommonMark (and gfm) writer: Add plain text fallbacks. (#4528,
833 quasicomputational). Previously, the writer would unconditionally
834 emit HTML output for subscripts, superscripts, strikeouts (if the
835 strikeout extension is disabled) and small caps, even with
836 `raw_html` disabled. Now there are plain-text (and, where
837 possible, fancy Unicode) fallbacks for all of these corresponding
838 (mostly) to the Markdown fallbacks, and the HTML output is only
839 used when `raw_html` is enabled.
841 * Powerpoint writer: support raw openxml (Jesse Rosenthal, #4976).
842 This allows raw openxml blocks and inlines to be used in the pptx
843 writer. Caveats: (1) It's up to the user to write
844 well-formed openxml. The chances for corruption, especially with
845 such a brittle format as pptx, is high. (2) Because of
846 the tricky way that blocks map onto shapes, if you are using
847 a raw block, it should be the only block on a slide
848 (otherwise other text might end up overlapping it). (3) The
849 pptx ooxml namespace abbreviations are different from the
850 docx ooxml namespaces. Again, it's up to the user to get it
851 right. Unzipped document and ooxml specification should be
852 consulted.
854 * With `--katex` in HTML formats, do not use the autorenderer (#4946).
855 We no longer surround formulas with `\(..\)` or `\[..\]`. Instead,
856 we tell katex to convert the contents of span elements with
857 class "math". Since math has already been identified, this
858 avoids wasted time parsing for LaTeX delimiters. Note, however,
859 that this may yield unexpected results if you have span elements
860 with class "math" that don't contain LaTeX math.
861 Also, use latest version of KaTeX by default (0.9.0).
863 * The man writer now produces ASCII-only output, using groff escapes,
864 for portability.
866 * ODT writer:
868 + Add title, author and date to metadata; any remaining
869 metadata fields are added as `meta:user-defined` tags.
870 + Implement table caption numbering (#4949, Nils Carlson).
871 Captioned tables are numbered and labeled with format "Table 1:
872 caption", where "Table" is replaced by a translation, depending
873 on the value of `lang` in metadata. Uncaptioned tables are not
874 enumerated.
875 + OpenDocument writer: Implement figure numbering in captions (#4944,
876 Nils Carlson). Figure captions are now numbered 1, 2, 3, ...
877 The format in the caption is "Figure 1: caption" and so on
878 (where "Figure" is replaced by a translation, depending on the
879 value of `lang` in the metadata). Captioned figures are numbered
880 consecutively and uncaptioned figures are not enumerated. This
881 is necessary in order for LibreOffice to generate an
882 Illustration Index (Table of Figures) for included figures.
884 * RST reader: Pass through fields in unknown directives as div attributes
885 (#4715). Support `class` and `name` attributes for all directives.
887 * Org reader: Add partial support for `#+EXCLUDE_TAGS` option. (#4284,
888 Brian Leung). Headers with the corresponding tags should not
889 appear in the output.
891 * Log warnings about missing title attributes now include a
892 suggestion about how to fix the problem (#4909).
894 * Lua filter changes (Albert Krewinkel):
896 + Report traceback when an error occurs. A proper Lua traceback is
897 added if either loading of a file or execution of a filter
898 function fails. This should be of help to authors of Lua filters
899 who need to debug their code.
901 + Allow access to pandoc state (#5015). Lua filters and custom
902 writers now have read-only access to most fields of pandoc's
903 internal state via the global variable `PANDOC_STATE`.
905 + Push ListAttributes via constructor (Albert Krewinkel).
906 This ensures that ListAttributes, as present in OrderedList elements,
907 have additional accessors (viz. `start`, `style`, and `delimiter`).
909 + Rename ReaderOptions fields, use snake_case. Snake case is used
910 in most variable names, using camelCase for these fields was an
911 oversight. A metatable is added to ensure that the old field
912 names remain functional.
914 + Iterate over AST element fields when using `pairs`. This makes
915 it possible to iterate over all ield names of an AST element by
916 using a generic `for` loop with pairs`:
918 for field_name, field_content in pairs(element) do
919 ...
920 end
922 Raw table fields of AST elements should be considered an
923 implementation detail and might change in the future. Accessing
924 element properties should always happen through the fields
925 listed in the Lua filter docs.
927 Note that the iterator currently excludes the `t`/`tag` field.
929 + Ensure that MetaList elements behave like Lists. Methods usable
930 on Lists can also be used on MetaList objects.
932 + Fix MetaList constructor (Albert Krewinkel). Passing a MetaList
933 object to the constructor `pandoc.MetaList` now returns the
934 passed list as a MetaList. This is consistent with the
935 constructor behavior when passed an (untagged) list.
937 * Custom writers: Custom writers have access to the global variable
938 `PANDOC_DOCUMENT`(Albert Krewinkel, #4957). The variable contains
939 a userdata wrapper around the full pandoc AST and exposes two
940 fields, `meta` and `blocks`. The field content is only
941 marshaled on-demand, performance of scripts not accessing the
942 fields remains unaffected.
944 [API changes]
946 * Text.Pandoc.Options: add `writerPreferAscii` to `WriterOptions`.
948 * Text.Pandoc.Shared:
950 + Export `splitSentences`. This was previously duplicated in the Man and
951 Ms writers.
952 + Add `ToString` typeclass (Alexander Krotov).
954 * New exported module Text.Pandoc.Filter (Albert Krewinkel).
956 * Text.Pandoc.Parsing
958 + Generalize `gridTableWith` to any `Char` Stream (Alexander Krotov).
959 + Generalize `readWithM` from `[Char]` to any `Char` Stream
960 that is a `ToString` instance (Alexander Krotov).
962 * New exposed module Text.Pandoc.Filter (Albert Krewinkel).
964 * Text.Pandoc.XML: add `toHtml5Entities`.
966 * New exported module Text.Pandoc.Readers.Man (Yan Pashkovsky, John
967 MacFarlane).
969 * Text.Pandoc.Writers.Shared
971 + Add exported functions `toSuperscript` and
972 `toSubscript` (quasicomputational, #4528).
973 + Remove exported functions `metaValueToInlines`,
974 `metaValueToString`. Add new exported functions
975 `lookupMetaBool`, `lookupMetaBlocks`, `lookupMetaInlines`,
976 `lookupMetaString`. Use these whenever possible for uniformity
977 in writers (Mauro Bieg, #4907). (Note that
978 removed function `metaValueToInlines` was in previous
979 released versions.)
980 + Add `metaValueToString`.
982 * Text.Pandoc.Lua
984 + Expose more useful internals (Albert Krewinkel):
986 - `runFilterFile` to run a Lua filter from file;
987 - data type `Global` and its constructors; and
988 - `setGlobals` to add globals to a Lua environment.
990 This module also contains `Pushable` and `Peekable` instances
991 required to get pandoc's data types to and from Lua. Low-level
992 Lua operation remain hidden in Text.Pandoc.Lua.
994 + Rename `runPandocLua` to `runLua` (Albert Krewinkel).
996 + Remove `runLuaFilter`, merging this into Text.Pandoc.Filter.Lua's
997 `apply` (Albert Krewinkel).
999 [bug fixes and under-the-hood improvements]
1001 * Text.Pandoc.Parsing
1003 + Make `uri` accept any stream with Char tokens (Alexander Krotov).
1004 + Rewrite `uri` without `withRaw` (Alexander Krotov).
1005 + Generalize `parseFromString` and `parseFromString'` to any
1006 streams with Char token (Alexander Krotov)
1007 + Rewrite `nonspaceChar` using `noneOf` (Alexander Krotov)
1009 * Text.Pandoc.Shared: Reimplement `mapLeft` using `Bifunctor.first`
1010 (Alexander Krotov).
1012 * Text.Pandoc.Pretty: Simplify `Text.Pandoc.Pretty.offset`
1013 (Alexander Krotov).
1015 * Text.Pandoc.App
1017 + Work around HXT limitation for --syntax-definition with windows
1018 drive (#4836).
1019 + Always preserve tabs for man format. We need it for tables.
1020 + Split command line parsing code into a separate unexported
1021 module, Text.Pandoc.App.CommandLineOptions (Albert Krewinkel).
1023 * Text.Pandoc.Readers.Roff: new unexported module for tokenizing
1024 roff documents.
1026 * New unexported module Text.Pandoc.RoffChar, provided character
1027 escape tables for roff formats.
1029 * Text.Pandoc.Readers.HTML: Fix `htmlTag` and `isInlineTag` to
1030 accept processing instructions (#3123, regression since 2.0).
1032 * Text.Pandoc.Readers.JATS: Use `foldl'` instead of `maximum` to
1033 account for empty lists (Alexander Krotov).
1035 * Text.Pandoc.Readers.RST: Don't allow single-dash separator in
1036 headerless table (#4382).
1038 * Text.Pandoc.Readers.Org: Parse empty argument array in inline src
1039 blocks (Brian Leung).
1041 * Text.Pandoc.Readers.Vimwiki:
1043 + Get rid of `F`, `runF` and `stateMeta'` in favor of `stateMeta`
1044 (Alexander Krotov).
1045 + Parse `Text` without converting to `[Char]` (Alexander Krotov).
1047 * Text.Pandoc.Readers.Creole: Parse `Text` without converting to
1048 `[Char]` (Alexander Krotov).
1050 * Text.Pandoc.Readers.LaTeX
1052 + Allow space at end of math after `\` (#5010).
1053 + Add support for `nolinkurl` command (#4992, Brian Leung).
1054 + Simplified type on `doMacros'`.
1055 + Tokenize before pulling tokens, rather than after (#4408). This
1056 has some performance penalty but is more reliable.
1057 + Make macroDef polymorphic and allow in inline context.
1058 Otherwise we can't parse something like `\lowercase{\def\x{Foo}}`.
1059 I have actually seen tex like this in the wild.
1060 + Improved parsing of `\def`, `\let`. We now correctly parse:
1061 ```
1062 \def\bar{hello}
1063 \let\fooi\bar
1064 \def\fooii{\bar}
1065 \fooi +\fooii
1067 \def\bar{goodbye}
1068 \fooi +\fooii
1069 ```
1070 + Improve parsing of `\def` argspec.
1071 + Skip `\PackageError` commands (see #4408).
1072 + Fix bugs omitting raw tex (#4527). The default is `-raw_tex`,
1073 so no raw tex should result unless we explicitly say `+raw_tex`.
1074 Previously some raw commands did make it through.
1075 + Moved `isArgTok` to Text.Pandoc.Readers.LaTeX.Parsing.
1076 + Moved `babelLangToBCP`, `polyglossiaLangToBCP` to new module,
1077 Text.Pandoc.Readers.LaTeX.Lang (unexported).
1078 + Simplified accent code using unicode-transforms.
1079 New dependency on unicode-transforms package for normalization.
1080 + Allow verbatim blocks ending with blank lines (#4624).
1081 + Support `breq` math environments: `dmath`, `dgroup`, `darray`.
1082 This collects some of the general-purpose code from the LaTeX reader,
1083 with the aim of making the module smaller.
1085 * Text.Pandoc.Readers.Markdown
1087 + Fix awkward soft break movements before abbreviations (#4635).
1088 + Add updateStrPos in a couple places where needed.
1090 * Text.Pandoc.Readers.Docx: Trigger bold/italic with bCs, iCs
1091 (#4947). These are variants for "complex scripts" like Arabic
1092 and are now treated just like b, i (bold, italic).
1094 * Text.Pandoc.Readers.Muse (Alexander Krotov)
1096 + Try to parse lists before trying to parse table.
1097 This ensures that tables inside lists are parsed correctly.
1098 + Forbid whitespace after opening and before closing markup
1099 elements.
1100 + Parse page breaks.
1101 + Simplify `museToPandocTable` to get rid of partial functions.
1102 + Allow footnotes to start with empty line.
1103 + Make sure that the whole text is parsed.
1104 + Allow empty headers. Previously empty headers caused parser to
1105 terminate without parsing the rest of the document.
1106 + Allow examples to be indented with tabs.
1107 + Remove indentation from examples indicated by `{{{` and `}}}`.
1108 + Fix parsing of empty cells.
1109 + Various changes to internals.
1110 + Rewrite some parsers in applicative style.
1111 + Avoid tagsoup dependency.
1112 + Allow table caption to contain `+`.
1114 * Text.Pandoc.Writers.LaTeX
1116 + Add newline if math ends in a comment (#4880). This prevents the
1117 closing delimiter from being swalled up in the comment.
1118 + With `--listings`, don't pass through org-babel attributes (#4889).
1119 + With `--biblatex`, use `\autocite` when possible (#4960).
1120 `\autocites{a1}{a2}{a3}` will not collapse the entries. So, if
1121 we don't have prefixes and suffixes, we use instead
1122 `\autocite{a1,a2,a3}`.
1123 + Fix description lists contining highlighted code (#4662).
1125 * Text.Pandoc.Writers.Man
1127 + Don't wrap `.SH` and `.SS` lines (#5019).
1128 + Avoid unnecessary `.RS`/`.RE` pair in definition lists with
1129 one paragraph definitions.
1130 + Moved common groff functions to Text.Pandoc.Writers.Groff.
1131 * Fix strong/code combination on man (should be `\f[CB]` not
1132 `\f[BC]`, see #4973).
1133 + Man writer: use `\f[R]` instead of `\f[]` to reset font
1134 (Alexander Krotov, #4973).
1135 + Move `splitSentences` to Text.Pandoc.Shared.
1137 * Text.Pandoc.Writers.Docx
1139 + Add framework for custom properties (#3034). So far, we don't
1140 actually write any custom properties, but we have the
1141 infrastructure to add this.
1143 + Handle tables in table cells (#4953). Although this is not
1144 documented in the spec, some versions of Word require a `w:p`
1145 element inside every table cell. Thus, we add one when the
1146 contents of a cell do not already include one (e.g. when a table
1147 cell contains a table).
1149 * Text.Pandoc.Writers.AsciiDoc: Prevent illegal nestings.
1150 Adjust header levels so that n+1 level headers are only
1151 found under n level headers, and the top level is 1.
1153 * Text.Pandoc.Writers.OpenDocument: Improve bullet/numbering
1154 alignment (#4385). This change eliminates the large gap we used
1155 to have between bullet and text, and also ensures that numbers
1156 in numbered lists will be right-aligned.
1158 * Text.Pandoc.Writers.ZimWiki
1160 + Number ordered list items sequentially, rather than always
1161 with 1 (#4962).
1162 + Remove extra indentation on lists (#4963).
1164 * Text.Pandoc.Writers.EPUB: Use metadata field `css` instead of
1165 `stylesheet` (Mauro Bieg, #4990).
1167 * Text.Pandoc.Writers.Markdown: Ensure blank between raw block and
1168 normal content (#4629). Otherwise a raw block can prevent a
1169 paragraph from being recognized as such.
1171 * Text.Pandoc.Writers.Ms
1173 + Removed old `escapeBar`. We don't need this now that we use
1174 `@` for math delim.
1175 + Moved common code to Text.Pandoc.Writers.Roff and to
1176 Text.Pandoc.RoffChar.
1177 + Move `splitSentences` to Text.Pandoc.Shared (to avoid duplication
1178 with the man writer).
1180 * Text.Pandoc.Writers.Muse (Alexander Krotov).
1182 + Add support for grid tables.
1183 + Fix Muse writer style.
1184 + Use `length` instead of `realLength` to calculate definition
1185 indentation. Muse parsers don't take character width into
1186 account when calculating indentation.
1187 + Do not insert newline before lists.
1188 + Use lightweight markup after `</em>` tag.
1190 * New unexported module Text.Pandoc.Writers.Roff, providing functions
1191 useful for all roff format writers (man, ms).
1193 * Text.Pandoc.Lua
1195 + Move globals handling to separate module Text.Pandoc.Lua.Global
1196 (Albert Krewinkel).
1198 + Lua filter internals: push Shared.Element as userdata (Albert
1199 Krewinkel). Hierarchical Elements were pushed to Lua as plain
1200 tables. This is simple, but has the disadvantage that marshaling
1201 is eager: all child elements will be marshaled as part of the
1202 object. Using a Lua userdata object instead allows lazy access
1203 to fields, causing content marshaling just (but also each time)
1204 when a field is accessed. Filters which do not traverse the full
1205 element contents tree become faster as a result.
1207 [default template changes]
1209 * LaTeX template:
1211 + Add variable `hyperrefoptions` (#4925, Mathias Walter).
1212 + Add variable `romanfont`, `romanfontoptions` (#4665, OvidiusCicero).
1214 * AsciiDoc template: use single-line style for title.
1216 * revealjs template: Fix typo in the socket.io javascript plugin (#5006,
1217 Yoan Blanc).
1219 * Text.Pandoc.Lua.Util: add missing docstring to `defineHowTo`
1220 (Albert Krewinkel).
1222 * data/pandoc.lua: add datatype ListAttributes (Albert Krewinkel)
1224 * data/sample.lua: replace custom pipe function with pandoc.utils.pipe
1225 (Albert Krewinkel).
1227 [documentation improvements]
1229 * INSTALL.md
1231 + Add chromeos install instructions (#4958) (Evan Pratten).
1232 + Add note about TinyTeX.
1234 * MANUAL.txt
1236 + Change `groff` -> `roff`.
1237 + Implement `--ascii` for Markdown writer.
1238 + Clarify LaTeX image dimensions output (Mauro Bieg).
1240 * doc/customizing-pandoc.md: added skeleton (Mauro Bieg, #3288).
1242 * doc/getting-started.md: Added title to test1.md to avoid warning.
1244 * doc/lua-filters.md: merge type references into main document,
1245 fix description of Code.text (Albert Krewinkel).
1247 [build infrastructure improvements]
1249 * Makefile
1251 + Makefile: added quick-cabal, full-cabal targets.
1252 + Make .msi download targets insensitive to order of appveyor builds.
1254 * Update benchmarks for ghc 8.6.1.
1256 * pandoc.cabal:
1258 + Enable more compiler warnings (Albert Krewinkel).
1259 + Make base lower bound 4.8.
1260 + Bump upper bound for QuickCheck.
1261 + Bump upper bound for binary.
1262 + Updated version bounds for containers and haddock-library (#4974).
1263 + Added docx/docPropos/custom.xml to cabal data-files.
1264 + Require skylighting 0.7.4 (#4920).
1265 + New dependency on unicode-transforms package for normalization.
1267 * Improved .travis.yml testing and test with GHC 8.6.1 (Albert Krewinkel).
1269 * Added `tools/changelog-helper.sh`.
1271 * Added test/grofftest.sh for testing the man reader on real man pages.
1273pandoc (2.3.1)
1275 * RST reader:
1277 + Parse RST inlines containing newlines (#4912, Francesco Occhipinti).
1278 This eliminates a regression introduced after pandoc 2.1.1, which
1279 caused inline constructions containing newlines not to be recognized.
1280 + Fix bug with internal link targets (#4919). They were gobbling up
1281 indented content underneath.
1283 * Markdown reader: distinguish autolinks in the AST. With this change,
1284 autolinks are parsed as Links with the `uri` class. (The same is true
1285 for bare links, if the `autolink_bare_uris` extension is enabled.)
1286 Email autolinks are parsed as Links with the `email` class. This
1287 allows the distinction to be represented in the AST.
1289 * Org reader:
1291 + Force inline code blocks to honor export options (Brian Leung).
1292 + Parse empty argument array in inline src blocks (Brian Leung).
1294 * Muse reader (Alexander Krotov):
1296 + Added additional tests.
1297 + Do not allow code markup to be followed by digit.
1298 + Remove heading level limit.
1299 + Simplify `<literal>` tag parsers
1300 + Parse Text instead of String. Benchmark shows 7% improvement.
1301 + Get rid of HTML parser dependency.
1302 + Various code improvements.
1304 * ConTeXt writer: change `\` to `/` in Windows image paths (#4918).
1305 We do this in the LaTeX writer, and it avoids problems.
1306 Note that `/` works as a LaTeX path separator on Windows.
1308 * LaTeX writer:
1310 + Add support for multiprenote and multipostnote arguments
1311 with `--biblatex` (Brian Leung, #4930). The multiprenotes occur before
1312 the first prefix of a multicite, and the multipostnotes follow the
1313 last suffix.
1314 + Fix a use of `last` that might take empty list. If you ran with
1315 `--biblatex` and have an empty document (metadata but no blocks),
1316 pandoc would previously raise an error because of the use of
1317 `last` on an empty list.
1319 * RTF writer: Fix build failure with ghc-8.6.1 caused by missing
1320 MonadFail instance (Jonas Scholl).
1322 * ODT Writer: Improve table header row style handling (Nils Carlson).
1323 This changes the way styles for cells in the header row
1324 and normal rows are handled in ODT tables.
1325 Previously a new (but identical) style was generated for
1326 every table, specifying the style of the cells within the table.
1327 After this change there are two style definitions for table cells,
1328 one for the cells in the header row, one for all other cells.
1329 This doesn't change the actual styles, but makes post-processing
1330 changes to the table styles much simpler as it is no longer
1331 necessary to introduce new styles for header rows and there are
1332 now only two styles where there was previously one per table.
1334 * HTML writer:
1336 + Don't add `uri` class to presumed autolinks. Formerly the `uri`
1337 class was added to autolinks by the HTML writer, but it had to
1338 guess what was an autolink and could not distinguish
1339 `[http://example.com](http://example.com)` from
1340 `<http://example.com>`. It also incorrectly recognized
1341 `[pandoc](pandoc)` as an autolink. Now the HTML writer
1342 simply passes through the `uri` attribute if it is present,
1343 but does not add anything.
1344 + Avoid adding extra section nestings for revealjs.
1345 Previously revealjs title slides at level (slidelevel - 1)
1346 were nested under an extra section element, even when
1347 the section contained no additional (vertical) content.
1348 That caused problems for some transition effects.
1349 + Omit unknown attributes in EPUB2 output. For example,
1350 `epub:type` attributes should not be passed through,
1351 or the epub produced will not validate.
1353 * JATS writer: remove 'role' attribute on 'bold' and 'sc' elements (#4937).
1354 The JATS spec does not allow these.
1356 * Textile writer: don't represent `uri` class explicitly
1357 for autolinks (#4913).
1359 * Lua filters (Albert Krewinkel):
1361 + Cleanup filter execution code.
1362 + Better error on test failure.
1364 * HTML, Muse reader tests: reduce time taken by round-trip test.
1366 * Added cabal.project.
1368 * MANUAL: `epub:type` is only useful for epub3 (Maura Bieg).
1370 * Use hslua v1.0.0 (Albert Krewinkel).
1372 * Fix `translations/ru` to use modern Russian orthography
1373 (Ivan Trubach).
1375 * Build Windows binary using ghc 8.6.1 and cabal new-build. This
1376 fixes issues with segfaults in the 32-bit Windows binaries (#4283).
1378pandoc (2.3)
1380 * Add `--metadata-file` option (Mauro Bieg, #1960), which allows
1381 users to specify metadata in a YAML file, regardless of the
1382 input format (#1960).
1384 * Text.Pandoc.Writers.Shared: export `isDisplayMath` (API change).
1386 * Text.Pandoc.Readers.Markdown: export `yamlToMeta` (API change,
1387 Mauro Bieg).
1389 * Text.Pandoc.Readers.LaTeX.Types:
1391 + New type `ArgSpec` (API change).
1392 + Second parameter of `Macro` constructor is now `[ArgSpec]` instead of
1393 `Int` (API change).
1395 * Markdown reader:
1397 + Use `tex` instead of `latex` for raw tex-ish content. We can't
1398 always tell if it's LaTeX, ConTeXt, or plain TeX. Better just to
1399 use `tex` always. Note that if `context` or `latex` specifically
1400 is desired, you can still force that in a markdown document by
1401 using the raw attribute. Note that this change may affect some
1402 filters, if they assume that raw tex parsed by the Markdown reader
1403 will be RawBlock (Format `latex`). In most cases it should be
1404 trivial to modify the filters to accept `tex` as well.
1405 + Refactor and reorganize YAML code (Mauro Bieg).
1406 + Make `example_lists` work for interrupted lists
1407 without `startnum` (#4908).
1409 * HTML reader:
1411 + Parse `<script type="math/tex` tags as math (#4877).
1412 These are used by MathJax in some configurations.
1413 + Extract spaces inside links instead of trimming them
1414 (Alexander Krotov, #4845).
1415 + Added round-trip tests (Alexander Krotov).
1416 + Make parsing sensitive to the `raw_tex` extension (#1126). This now
1417 allows raw LaTeX environments, `\ref`, and `\eqref` to be parsed
1418 (which is helpful for translation HTML documents using MathJaX).
1420 * Org reader (Albert Krewinkel):
1422 + Respect export option `p` for planning info. Inclusion of planning info
1423 (`*DEADLINE*`, `*SCHEDULED*`, and `*CLOSED*`) can be controlled via the
1424 `p` export option: setting the option to `t` will add all planning
1425 information in a *Plain* block below the respective headline.
1426 + Org reader internals: don't rely on RecordWildCards and ViewPatterns
1427 ghc extensions.
1428 + Strip planning info from output. Planning info is parsed, but not
1429 included in the output (as is the default with Emacs Org-mode, #4867).
1431 * LaTeX reader:
1433 + Split some general-purpose definitions into a separate, unexported
1434 module, Text.Pandoc.Readers.LaTeX.Parsing. This is to avoid
1435 out-of-memory errors compiling the LaTeX reader.
1436 + Handle parameter patterns for `\def` (#4768, #4771).
1437 For example: `\def\foo#1[#2]{#1 and #2}`.
1438 + Allow `%` characters in URLs. This affects `\href` and `\url` (#4832).
1439 + Fixed parsing of `\texorpdfstring`. We were returning the wrong
1440 argument as the content.
1441 + Support `blockcquote`, `foreignblockquote`, `foreigncblockquote`,
1442 `hyphenblockquote`, `hyphencblockquote`, `enquote*`, `foreignquote`,
1443 `hyphenquote` from `csquotes` (#4848). Note that `foreignquote`
1444 will be parsed as a regular Quoted inline (not using the quotes
1445 appropriate to the foreign language).
1446 + Support more text-mode accents (#4652). Add support for `\|`, `\b`, `\G`,
1447 `\h`, `\d`, `\f`, `\r`, `\t`, `\U`, `\i`, `\j`, `\newtie`,
1448 `\textcircled`. Also fall back to combining characters when composed
1449 characters are not available.
1450 + Resolve `\ref` for figure numbers.
1451 + Support `mintinline` (#4365, Marc Schreiber).
1452 + Fix siunitx unit commands so they are only recognized in
1453 siunitx contexts (#4842). For example, `\l` outside of an
1454 siunitx context should be l-slash, not l (for liter).
1455 + Fix double `unnumbered` class (#4838). The `unnumbered` class
1456 was being included twice for starred sections.
1458 * RST reader: Don't skip link definitions after comments (#4860).
1460 * Muse reader (Alexander Krotov):
1462 + Close the `</quote>` in indented tag test.
1463 There is already a separate test for unclosed `</quote>`.
1464 + Autonumber sections in the correct order. Parsing now stops
1465 at each section header to ensure the header is registered before
1466 parsing of the next section starts.
1467 + Move duplicate code into `headingStart` function.
1468 + Allow newline after opening `*` or `**`.
1469 + Don't allow digits after closing marker in lightweight markup
1470 This change makes reader more compatible with Emacs Muse.
1471 + Parse `<verse>` tag in one pass instead of using
1472 `parseFromString`. This change makes it possible to have
1473 verbatim `</verse>` tag inside verse.
1475 * ODT reader: deal gracefully with missing `<office:font-face-decls/>`
1476 (#4336). This allows pandoc to parse ODT document produced by KDE's
1477 Calligra.
1479 * Muse writer (Alexander Krotov):
1481 + Output headers without asterisks if not on the top level.
1482 + Never wrap definition list terms.
1483 + Set `envInsideBlock = True` when rendering notes.
1484 + Use `""` instead of `[]` for empty String.
1485 + Check for whitespace in the beginning and end of Str's.
1486 + Escape `-`, `;` and `>` in the beginning of strings.
1487 + Escape list markers in the beginning of notes.
1488 + Normalize inline list before testing if tags should be used.
1489 + Use tags instead of lightweight markup for empty strings.
1490 + Use lightweight markup when possible.
1491 + Escape empty strings. This guarantees that `conditionalEscapeString`
1492 never returns empty string.
1493 + Wrap conditionalEscapeString result into `Muse` type.
1494 This removes the need to pass `envInsideLinkDescription` to it.
1495 + Separate `shouldEscapeString` function.
1496 + Simplify inline list rendering.
1497 + Replace newlines in strings with spaces.
1499 * Docx writer:
1501 + Add MetaString case for abstract, subtitle (#4900, Mauro Bieg).
1502 + Properly handle display math in spans (#4826). This isn't a
1503 complete solution, since other nestings of display math may still
1504 cause problems, but it should work for what is by far the most
1505 common case.
1507 * HTML writer:
1509 + Always output `<dt>` element, even if it is empty (#4883,
1510 Alexander Krotov).
1511 + Don't prefix `epub:` attributes with `data-`.
1513 * Org writer: Don't escape literal `_`, `^` (#4882). Org doesn't
1514 recognize these escapes.
1516 * ODT writer: Fix percentage image scaling (#4881, Nils Carlson).
1517 Image scaling was broken when a width was set to a percentage.
1519 * EPUB writer: set `epub:type` on body element in each chapter,
1520 depending on the `epub:type` of the first section (#4823). This
1521 only affects epub3. See
1522 http://www.idpf.org/epub/profiles/edu/structure/#h.l0bzsloklt10
1524 * FB2 writer: put `coverpage` element between title and date rather than in
1525 `document-info` element (#4854).
1527 * Markdown writer: Escape `~` if strikeout extension enabled (#4840).
1529 * Haddock writer: Use proper format for latex math in haddock (#4571, Joe
1530 Hermaszewski). Inline math in `\(..\)`, display math in `\[..\]`,
1531 tex is now used. Previously we'd "fake it with unicode" and fall
1532 back to tex when that didn't work. But newer haddock versions
1533 support latex math.
1535 * TEI writer:
1537 + Ensure that title element is always present, even if empty (#4839).
1538 + Put author tags in the template, rather than adding them in
1539 the writer (#4839).
1541 * LaTeX writer/template: be sensitive to `filecolor` variable (#4822).
1542 `linkcolor` only affects internal links, and `urlcolor` only
1543 affects linked URLs. For external links, the option to use is
1544 `filecolor`.
1546 * ConTeXt writer: output raw `tex` blocks as well as `context` (#969).
1548 * RST writer:
1550 + Use `.. raw:: latex` for `tex` content.
1551 + Use `.. container` for generic Divs, instead of raw HTML.
1552 + Render Divs with admonition classes as admonitions (#4833).
1553 Also omit Div with class `admonition-title`. These are generated
1554 by the RST reader and should be omitted on round-trip.
1556 * Text.Pandoc.PDF: fix message printed when rsvg-convert is not available
1557 (#4855, Antonio Terceiro).
1559 * HTML5 template: add the `title-block-header` identifier to the
1560 `header` element, to make it easier to style precisely (#4767,
1561 J. B. Rainsberger).
1563 * OpenDocument template: Remove unnecessary indenting of TOC title (#4798,
1564 José de Mattos Neto).
1566 * latex template: Add support for $toc-title$ to LaTeX (and PDF)
1567 (#4853, Wandmalfarbe).
1569 * TEI template: improve `publicationStmt`. Add support for
1570 `publisher`, `address`, `pubPlace`, and `date` variables.
1572 * beamer template: Support "toc-title" (#4835, Cyril Roelandt).
1574 * Text.Pandoc.Extensions: Fix haddock on `Ext_footnotes` (Chris Martin).
1576 * Lua: cleanup Lua utils, remove unused functions (Albert Krewinkel).
1578 * MANUAL.txt:
1580 + Clarify that `--biblatex/--natbib` don't work directly for PDF
1581 (#4904).
1582 + Document `epub:type` attribute (Mauro Bieg, #4901)
1583 + Clarify when `--resource-path` has an effect.
1584 + More detail on customization in syntax highlighting section.
1585 + Document encoding issue with `--listings` (#4871, Damien Clochard).
1586 + Remove docs on removed `--katex-stylesheet` (Mauro Bieg, #4862).
1587 + Use https for context wiki links (#4910).
1589 * CONTRIBUTING.md:
1591 + Link to lua-filters repository (#4874).
1592 + Fix mistake in REPL instructions for stack. (#4849, Brian Leung).
1594 * lua-filters.md: add links to filters, and to lua-filters repository
1595 (#4874).
1597 * INSTALL.md:
1599 + Indicate that cabal >= 2.0 is needed.
1600 + Added chocolatey installation method (#4844, Miodrag Milić).
1602 * Travis: exclude round-trip tests, except for nightly test which can fail.
1604 * Use latest texmath, pandoc-citeproc.
1606 * Use a patched version of foundation until
1607 https://github.com/haskell-foundation/foundation/pull/503
1608 is fixed.
1610 * Clean up appveyor build and Windows package creation.
1611 We now use 64-bit stack and ghc 8.4.3, lts-12 for the 64-bit build. The
1612 WiX-based msi is now 64-bit for 64-bit builds (fixing #4795).
1614 * Remove obsolete RELEASE-CHECKLIST.md.
1616 * Added additional compiler warnings in Makefile and CI builds.
1618pandoc (2.2.3.2)
1620 * Markdown reader: Properly handle boolean values in YAML metadata (#4819).
1621 This fixes a regression in 2.2.3, which cause boolean values to
1622 be parsed as MetaInlines instead of MetaBool.
1624 We here record another undocumented (but desirable) change in 2.2.3:
1625 numerical metadata fields are now parsed as MetaInlines rather than
1626 MetaString.
1628pandoc (2.2.3.1)
1630 * Markdown reader: Fix parsing of embedded mappings in YAML metadata
1631 (#4817). This fixes a regression in 2.2.3 which caused embedded
1632 mappings (e.g. mappings in sequences) not to work in YAML metadata.
1634pandoc (2.2.3)
1636 * RST reader: improve parsing of inline interpreted text roles (#4811).
1638 + Use a Span with class "title-reference" for the default
1639 title-reference role.
1640 + Use `B.text` to split up contents into `Space`s, `SoftBreak`s,
1641 and `Str`s for `title-reference`.
1642 + Use Code with class "interpreted-text" instead of Span and Str for
1643 unknown roles. (The RST writer has also been modified to round-trip
1644 this properly.)
1645 + Disallow blank lines in interpreted text.
1646 + Backslash-escape now works in interpreted text.
1647 + Backticks followed by alphanumerics no longer end interpreted text.
1648 + Remove support for nested inlines (Francesco Occhipinti).
1649 RST does not allow nested emphasis, links, or other inline
1650 constructs. This fixes several bugs (#4581, #4561, #4792).
1652 * Org reader: fix parsers relying on `parseFromString` (#4784, Albert
1653 Krewinkel). Emphasis was not parsed when it followed directly after
1654 some block types (e.g., lists).
1656 * Markdown reader: Allow unquoted numbers and booleans as YAML mapping
1657 keys. Previously in 2.2.2 you could not do
1658 ```
1659 ---
1660 0: bar
1661 ...
1662 ```
1663 but only
1664 ```
1665 ---
1666 '0': bar
1667 ...
1668 ```
1669 With this change, both forms work.
1671 * DocBook reader: metadata handling improvements.
1672 Now we properly parse title and subtitle elements that are direct
1673 children of book and article (as well as children of bookinfo,
1674 articleinfo, or info). We also now use the `subtitle` metadata
1675 field for subtitles, rather than tacking the subtitle on to the
1676 title.
1678 * RST writer:
1680 + Allow images to be directly nested within links (#4810, Francesco
1681 Occhipinti).
1682 + Use `titleblock` instead of `title` variable for title block (#4803,
1683 Francesco Occhipinti). `titleblock` contains a properly formatted
1684 title and subtitle (using top-level headers). `title` and
1685 `subtitle` variables are still available and just contain the
1686 title and subtitle text. Note that this change will require an
1687 update to custom rst templates.
1688 + Render Code with class "interpreted-text" as interpreted text role.
1690 * MediaWiki writer: Avoid extra blank line in tables with empty cells
1691 (#4794). Note that the old output is semantically identical, but the
1692 new output looks better.
1694 * Lua Utils module: add function `blocks_to_inlines` (#4799, Albert
1695 Krewinkel). Exposes a function converting which flattenes a list of
1696 blocks into a list of inlines. An example use case would be the
1697 conversion of Note elements into other inlines.
1699 * RST template: use `titleblock` instead of `title`. Users of
1700 custom RST templates will want to update this.
1702 * LaTeX template: Moved some beamer code in default.latex template.
1703 This change allows beamer themes to change the template and font (as
1704 Metropolis does) (#4450).
1706 * Better error message on `-t pdf -o out.pdf` (#1155, Mauro Bieg).
1708 * Added test case for #4669 to repository.
1710 * INSTALL.md: Fix broken link for cabal-install (#4806, ChanHoHo).
1712 * MANUAL.txt:
1714 + Add beamer info for slide backgrounds (#4802, John Muccigrosso).
1715 + Clarify when `csquotes` is used in LaTeX writer (#4514).
1716 + Add `commonmark` to list of output formats where `raw_tex` has an
1717 effect (see #4527).
1720pandoc (2.2.2.1)
1722 * Fix regression finding templates in user data directory (#4777).
1723 Under version 2.2.1 and prior pandoc found latex templates in the
1724 templates directory under the data directory, but this broke in 2.2.2.
1726 * Fix for bug in parsing `\input` in `rawLaTeXBlock` and
1727 `rawLaTeXInline` (#4781). (This primarily affects the markdown
1728 reader, and other readers that accept raw tex.)
1729 Starting in 2.2.2, everything after an `\input` (or `\include`)
1730 in a markdown file would be parsed as raw LaTeX.
1732 * MANUAL:
1734 + Clarify `gfm` vs `markdown_github` (#4783, Mauro Bieg).
1735 * Use `keywords` instead of `tags` in YAML metadata example (#4779).
1736 Unlike `tags`, `keywords` is used in some of the writers
1737 and default templates.
1739 * Add missing `rollingLinks` option to revealjs template (#4778,
1740 Igor Khorlo).
1742pandoc (2.2.2)
1744 * Use HsYAML instead of yaml for translations and YAML metadata (#4747).
1745 yaml wraps a C library; HsYAML is pure Haskell. Advances #4535.
1747 Note: HsYAML implements YAML 1.2, in which the valid true
1748 values are `true`, `True`, `TRUE`. This means a change in
1749 the semantics of YAML metadata that could affect users:
1750 `y`, `yes`, and `on` no longer count as true values.
1752 * Fix regression: make `--pdf-engine` work with full paths (#4681, Mauro
1753 Bieg).
1755 * CommonMark reader: Handle `ascii_identifiers` extension (#4742,
1756 Anders Waldenborg). Non-ascii characters were not stripped from
1757 identifiers even if the `ascii_identifiers` extension was
1758 enabled (which is is by default for gfm).
1760 * TikiWiki reader: Improve list parsing (#4722, Mauro Bieg).
1761 Remove trailing Space from list items. Parse lists that have no space
1762 after marker.
1764 * LaTeX reader:
1766 + Treat `lilypond` as a verbatim environment (#4725).
1767 + Parse figure label into Image id (#4700, Mauro Bieg).
1768 + Beamer: Allow "noframenumbering" option (#4696, Raymond Ehlers).
1769 + Allow spaces around `\graphicspath` arguments (#4698).
1770 + Handle includes without surrounding blanklines (#4553).
1771 In addition, `\input` can now be used in an inline context,
1772 e.g. to provide part of a paragraph, as it can in LaTeX.
1773 + In `rawLaTeXBlock`, handle macros that resolve to a
1774 `\begin` or `\end` (#4667).
1775 + In `rawLaTeXBlock`, don't expand macros in macro definitions (#4653).
1776 Note that this only affected LaTeX in markdown.
1777 + Tighten up reading of beamer overlay specifications (#4669).
1778 Ideally we'd turn these on only when reading beamer, but currently
1779 beamer is not distinguished from latex as an input format.
1780 This commit also activates parsing of overlay specifications
1781 after commands in general (e.g. `\item`), since they can occur
1782 in many contexts in beamer.
1783 + Parse more siunitx unit commands (#4296, #4773).
1784 + Be more forgiving in key/value option parsing (#4761).
1786 * Markdown reader:
1788 + Allow empty code spans, e.g. `` ` ` ``.
1789 + Emojis are now wrapped in Spans with class `emoji` and
1790 attribute `data-emoji` (Anders Waldenborg, #4743).
1791 This allows the writer to handle them in a special way
1792 (e.g. using a special font, or just rendering the
1793 emoji name).
1795 * Muse reader (Alexander Krotov, except where indicated):
1797 + Get rid of non-exhaustive pattern match warning (Mauro Bieg).
1798 + Add support for floating images.
1799 + Add support for images with specified width.
1800 + Parse image URLs without "guard" and "takeExtension".
1801 + Split link and image parsing into separate functions.
1802 + Parse links starting with "URL:" explicitly instead of trying to strip
1803 "URL:" prefix after parsing.
1805 * Texinfo writer: Use `@sup` and `@sub` instead of custom macros (#4728,
1806 Alexander Krotov).
1808 * Markdown writer: Preserve `implicit_figures` with attributes, even if
1809 `implicit_attributes` is not set, by rendering in raw HTML (#4677).
1811 * Markdown and commonmark/github writers now respect the `emoji`
1812 extension. So, `-f markdown+emoji -t markdown+emoji` now leaves
1813 `:smile:` as `:smile:` rather than converting it to a smile
1814 character.
1816 * Docx writer: Be sensitive to `toc` in YAML metadata (#4645).
1818 * ODT/OpenDocument writer: Make internal links work (#4358).
1819 This adds proper bookmarks to the headers with non-null IDs.
1821 * EPUB writer: Properly escape pagetitle. Previously we weren't
1822 escaping `&` and other XML characters in the pagetitle, so a title
1823 containing a `&` would be invalid.
1825 * AsciiDoc Writer: Eescape square brackets at start of line (#4545,
1826 Mauro Bieg).
1828 * RST writer:
1830 + Don't treat 'example' as a syntax name (#4748).
1831 This fixes conversions from org with example blocks.
1832 + Support `--number-sections` via the `section-numbering`
1833 directive in standalone output.
1835 * reveal.js writer and template: reuse mathjax URL
1836 provided by the argument to `--mathjax` or the normal pandoc default,
1837 rather than a hard-coded one in the template (#4701).
1839 * LaTeX writer:
1841 + Properly handle footnotes in table captions (#4683).
1842 Refactored code from figure captions to use in both places.
1843 + In beamer output, fix single digit column percentage (#4690, Mauro
1844 Bieg).
1846 * FB2 writer (Alexander Krotov):
1848 + Convert Plain to Para in annotation (#2424).
1849 + Fix order of items in title-info (#2424).
1851 * Custom writer: fix error message on script failure (Albert Krewinkel).
1852 Error messages produced by Lua were not displayed by Pandoc.
1854 * Text.Pandoc.Emoji now exports `emojiToInline`, which returns a Span
1855 inline containing the emoji character and some attributes with metadata
1856 (class `emoji`, attribute `data-emoji` with emoji name). (API change,
1857 Anders Waldenborg, #4743).
1859 * Text.Pandoc.PDF:
1861 + Revert fix for #4484 (only compress images on last run, #4755).
1862 This will mean some increase in the time it takes to
1863 produce an image-heavy PDF with xelatex, but it will
1864 make tables of contents correct, which is more important.
1865 + Fix logic error in `runTeXProgram`. We were running the tex program
1866 one more time than requested. This should speed up PDF production.
1868 * Allow `--template` to take a URL as argument.
1870 * Text.Pandoc.Highlighting: Add missing re-export of `breezeDark`
1871 highlighting style (#4687, Adrian Sieber, API change).
1873 * Clarify macOS install in INSTALL.md (#4661). Make the binary package
1874 installer the recommended method, and note that on some older versions of
1875 macOS, homebrew installs from source and takes a lot of disk space
1876 (#4664, Ian).
1878 * MANUAL:
1880 + Clarify EPUB linked media (#4756, Mauro Bieg)
1881 + Update manual for "true" YAML values. Now that we're using HsYAML and
1882 YAML 1.2, the valid true values are `true`, `True`, `TRUE`. NOTE!
1883 `y`, `yes`, `on` no longer count as true values.
1884 + Document `-F` as alias for `--filter` (thanks to Gandalf Saxe).
1885 + Update manual on how math is rendered in LaTeX.
1886 + Add proxy description (#4131, Mauro Bieg).
1887 + Clarify that `--toc` requires `--standalone` (#4703).
1888 + Update citation styles link (#4699, wiefling).
1890 * In API docs, clarify how `Ext_east_asian_line_breaks` extension works
1891 (kaizshang91). Note that it will not take effect when readers/writers
1892 are called as libraries (#4674).
1894 * Improved translations/fr (#4766, lux-lth).
1896 * Removed inadvertently added `.orig` files from repository (#4648).
1898 * Remove `network-uri` flag and use 'Network.Socket'.
1899 This removes a compiler warning. There is no need for the old
1900 `network-uri` flag, since network 2.6 was released in 2014.
1902 * Add stack.lts10.yaml, stack.lts11.yaml. use lts-12 in stack.yaml.
1904 * Bump upper bounds for dependent packages.
1906 * Exclude foundation 0.0.21 for ghc 7.10. Otherwise cabal gets
1907 confused because of the way ghc 7.10 is excluded in foundation's
1908 cabal file. This can be removed when haskell-foundation/foundation#500
1909 is fixed.
1911 * Require cabal-version >= 2.0. This is needed for haddock-library.
1914pandoc (2.2.1)
1916 * Restored and undeprecated gladtex for HTML math (#4607).
1918 + Added `GladTeX` constructor to `Text.Pandoc.Options.HTMLMathMethod`
1919 [API change, reverts removal in v2.2]
1920 + Restored and undeprecated `--gladtex` option, removed in v2.2.
1922 * LaTeX reader: Handle `$` in `/text{..}` inside math (#4576).
1924 * Org reader: Fix image filename recognition (Albert Krewinkel).
1925 Use a function from the filepath library to check whether a string is a
1926 valid file name. The custom validity checker that was used before gave
1927 wrong results (e.g. for absolute file paths on Windows,
1928 kawabata/ox-pandoc#52).
1930 * FB2 reader: Replace some errors with warnings (Alexander Krotov).
1932 * HTML writer:
1934 + Strip links from headers when creating TOC (#4340).
1935 Otherwise the TOC entries will not link to the sections.
1936 + Fix regression with tex math environments in HTML + MathJax (#4639).
1938 * Muse writer (Alexander Krotov): Add support for left-align and
1939 right-align classes (#4542).
1941 * Docx writer: Support underline (#4633).
1943 * Text.Pandoc.Parsing: Lookahead for non-whitespace after
1944 `singleQuoteStart` and `doubleQuoteStart` (#4637).
1946 * `test-pandoc-utils.lua`: more robust testing on both windows
1947 and \*nix. Previously the pipe tests were only run if
1948 `\bin/false` and `/bin/sed` were present, which they aren't
1949 in default MacOS and Windows systems. Fixed by using `tr`
1950 and `false`, which should always be in the path on a \*nix
1951 system, and `find` and `echo` for Windows.
1953 * Text.Pandoc.Shared: add `uriPathToPath`.
1954 This adjusts the path from a file: URI in a way that is sensitive
1955 to Windows/Linux differences. Thus, on Windows,
1956 `/c:/foo` gets interpreted as `c:/foo`, but on Linux,
1957 `/c:/foo` gets interpreted as `/c:/foo`. See #4613.
1959 * Use `uriPathToPath` with file: URIs (#4613).
1961 * Revert piping HTML to pdf-engine (Mauro Bieg, #4413). Use a temp
1962 file as before.
1964 * Text.Pandoc.Class: Catch IO errors when writing media files
1965 and issue a warning, rather than an error (Francesco Occhipinti, #4559).
1967 * Don't lowercase custom writer filename (Alexander Krotov, #4610).
1969 * MANUAL (Mauro Bieg):
1971 + Clarify truthiness in template variables (#2281).
1972 + Clarify pipe table width calculation (#4520).
1974 * ConTeXt template: New Greek fallback typeface (Pablo Rodríguez, #4405).
1975 CMU Serif gives better typographic results than the previous
1976 Greek fallback DejaVu Serif.
1978 * Make HTML template polyglot (#4606, OvidiusCicero), by making
1979 `<link rel="stylesheet" href="$css$">` self-closing.
1981 * Use texmath 0.11, allowing better translation of non-ASCII
1982 characters in math (#4642).
1984pandoc (2.2)
1986 * New input format: `fb2` (FictionBook2) (Alexander Krotov).
1988 * Make `--ascii` work for all XML formats (ICML, OPML, JATS,...),
1989 and for `ms` and `man`.
1991 * Remove deprecated `--latexmathml`, `--gladtex`, `--mimetex`, `--jsmath`, `-m`,
1992 `--asciimathml` options.
1994 * New module Text.Pandoc.Readers.FB2, exporting readFB2 (Alexander
1995 Krotov, API change).
1997 * Markdown reader:
1999 + Allow empty key-value attributes, like `title=""` (#2944).
2000 + Handle table w/o following blank line in fenced div (#4560).
2001 + Remove "fallback" for `doubleQuote` parser. Previously the
2002 parser tried to be efficient -- if no end double quote was found,
2003 it would just return the contents. But this could backfire in a
2004 case `**this should "be bold**`, since the fallback would return
2005 the content `"be bold**` and the closing boldface delimiter
2006 would never be encountered.
2007 + Improve computation of the relative width of the last column in a
2008 multiline table, so we can round-trip tables without constantly
2009 shrinking the last column.
2011 * EPUB reader:
2013 + Fix images with space in file path (#4344).
2015 * LaTeX reader:
2017 + Properly resolve section numbers with `\ref` and chapters (#4529).
2018 + Parse sloppypar environment (#4517, Marc Schreiber).
2019 + Improve handling of raw LaTeX (for markdown etc.) (#4589, #4594).
2020 Previously there were some bugs in how macros were handled.
2021 + Support `\MakeUppercase`, `\MakeLowercase', `\uppercase`, `\lowercase`,
2022 and also `\MakeTextUppercase` and `\MakeTextLowercase` from textcase
2023 (#4959).
2025 * Textile reader:
2027 + Fixed tables with no body rows (#4513).
2028 Previously these raised an exception.
2030 * Mediawiki reader:
2032 + Improve table parsing (#4508). This fixes detection of table
2033 attributes and also handles `!` characters in cells.
2035 * DocBook reader:
2037 + Properly handle title in `section` element (#4526).
2038 Previously we just got `section_title` for `section` (though `sect1`,
2039 `sect2`, etc. were handled properly).
2040 + Read tex math as output by asciidoctor (#4569, Joe Hermaszewski).
2042 * Docx reader:
2044 + Combine adjacent CodeBlocks with the same attributes into
2045 a single CodeBlock. This prevents a multiline codeblock in
2046 Word from being read as different paragraphs.
2048 * RST reader:
2050 + Allow < 3 spaces indent under directives (#4579).
2051 + Fix anonymous redirects with backticks (#4598).
2053 * Muse reader (Alexander Krotov):
2055 + Add support for Text::Amuse multiline headings.
2056 + Add `<math>` tag support.
2057 + Add support for `<biblio>` and `<play>` tags.
2058 + Allow links to have empty descriptions.
2059 + Require block `<literal>` tags to be on separate lines.
2060 + Allow `-` in anchors.
2061 + Allow verse to be indented.
2062 + Allow nested footnotes.
2063 + Internal improvements.
2065 * Muse writer (Alexander Krotov):
2067 + Escape `>` only at the beginning of a line.
2068 + Escape `]` in image title.
2069 + Escape `]` brackets in URLs as `%5D`.
2070 + Only escape brackets when necessary.
2071 + Escape ordered list markers.
2072 + Do not escape list markers unless preceded by space.
2073 + Escape strings starting with space.
2074 + Escape semicolons and markers after line break.
2075 + Escape `;` to avoid accidental comments.
2076 + Don't break headers, line blocks and tables with line breaks.
2077 + Correctly output empty headings.
2078 + Escape horizontal rule only if at the beginning of the line.
2079 + Escape definition list terms starting with list markers.
2080 + Place header IDs before header.
2081 + Improve span writing.
2082 + Do not join Spans in normalization.
2083 + Don't align ordered list items.
2084 + Remove key-value pairs from attributes before normalization.
2085 + Enable `--wrap=preserve` for all tests by default.
2086 + Reduced `<verbatim>` tags in output.
2087 + Internal changes.
2089 * RST writer:
2091 + Use more consistent indentation (#4563). Previously we
2092 used an odd mix of 3- and 4-space indentation. Now we use 3-space
2093 indentation, except for ordered lists, where indentation must
2094 depend on the width of the list marker.
2095 + Flatten nested inlines (#4368, Francesco Occhipinti).
2096 Nested inlines are not valid RST syntax, so we flatten them following
2097 some readability criteria discussed in #4368.
2099 * EPUB writer:
2101 + Ensure that `pagetitle` is always set, even when structured titles
2102 are used. This prevents spurious warnings about empty title
2103 elements (#4486).
2105 * FB2 writer (Alexander Krotov):
2107 + Output links inline instead of producing notes. Previously all links
2108 were turned into footnotes with unclickable URLs inside.
2109 + Allow emphasis and notes in titles.
2110 + Don't intersperse paragraph with empty lines.
2111 + Convert metadata value `abstract` to book annotation.
2112 + Use `<empty-line />` for `HorizontalRule` rather than `LineBreak`.
2113 FB2 does not have a way to represent line breaks inside paragraphs;
2114 previously we used `<empty-line />` elements, but these are not allowed
2115 inside paragraphs.
2117 * Powerpoint writer (Jesse Rosenthal):
2119 + Handle Quoted Inlines (#4532).
2120 + Simplify code with `ParseXml`.
2121 + Allow fallback options when looking for placeholder type.
2122 + Check reference-doc for all layouts.
2123 + Simplify speaker notes logic.
2124 + Change notes state to a simpler per-slide value.
2125 + Remove `Maybe` from `SpeakerNotes` in `Slide`. `mempty`
2126 means no speaker notes.
2127 + Add tests for improved speaker notes.
2128 + Handle speaker notes earlier in the conversion process.
2129 + Keep notes with related blocks (#4477). Some blocks automatically
2130 split slides (imgs, tables, `column` divs). We assume that any
2131 speaker notes immediately following these are connected to these
2132 elements, and keep them with the related blocks, splitting after them.
2133 + Remove `docProps/thumbnail.jpeg` in data dir (Jesse Rosenthal, #4588).
2134 It contained a nonfree ICC color calibration profile and is not needed
2135 for production of a powerpoint document.
2137 * Markdown writer:
2139 + Include a blank line at the end of the row in a single-row multiline
2140 table, to prevent it from being interpreted as a simple table (#4578).
2142 * CommonMark writer:
2144 + Correctly ignore LaTeX raw blocks when `raw_tex` is not
2145 enabled (#4527, quasicomputational).
2147 * EPUB writer:
2149 + Add `epub:type="footnotes"` to notes section in EPUB3 (#4489).
2151 * LaTeX writer:
2153 + In beamer, don't use format specifier for default ordered lists
2154 (#4556). This gives better results for styles that put ordered list
2155 markers in boxes or circles.
2156 + Update `\lstinline` delimiters (#4369, Tim Parenti).
2158 * Ms writer:
2160 + Use `\f[R]` rather than `\f[]` to reset font (#4552).
2161 + Use `\f[BI]` and `\f[CB]` in headers, instead of `\f[I]` and `\f[C]`,
2162 since the header font is automatically bold (#4552).
2163 + Use `\f[CB]` rather than `\f[BC]` for monospace bold (#4552).
2164 + Create pdf anchor for a Div with an identifier (#4515).
2165 + Escape `/` character in anchor ids (#4515).
2166 + Improve escaping for anchor ids: we now use _uNNN_ instead of uNNN
2167 to avoid ambiguity.
2169 * Man writer:
2171 + Don't escape U+2019 as `'` (#4550).
2173 * Text.Pandoc.Options:
2175 + Removed `JsMath`, `LaTeXMathML`, and `GladTeX` constructors from
2176 `Text.Pandoc.Options.HTMLMathMethod` [API change].
2178 * Text.Pandoc.Class:
2180 + `writeMedia`: unescape URI-escaping in file path. This avoids
2181 writing things like `file%20one.png` to the file system.
2183 * Text.Pandoc.Parsing:
2185 + Fix `romanNumeral` parser (#4480). We previously accepted 'DDC'
2186 as 1100.
2187 + `uri`: don't treat `*` characters at end as part of URI (#4561).
2189 * Text.Pandoc.MIME:
2191 + Use the alias `application/eps` for EPS (#2067).
2192 This will ensure that we retain the eps extension after reading the
2193 image into a mediabag and writing it again.
2195 * Text.Pandoc.PDF:
2197 + Use `withTempDir` in `html2pdf`.
2198 + With `xelatex`, don't compress images til the last run (#4484).
2199 This saves time for image-heavy documents.
2200 + Don't try to convert EPS files (#2067). `pdflatex` converts them
2201 itself, and JuicyPixels can't do it.
2202 + For `pdflatex`, use a temp directory in the working directory.
2203 Otherwise we can have problems with the EPS conversion pdflatex
2204 tries to do, which can't operate on a file above the working
2205 directory without `--shell-escape`.
2207 * Changes to tests to accommodate changes in pandoc-types.
2208 In <https://github.com/jgm/pandoc-types/pull/36> we changed
2209 the table builder to pad cells. This commit changes tests
2210 (and two readers) to accord with this behavior.
2212 * Set default extensions for `beamer` same as `latex`.
2214 * LaTeX template:
2216 + Add `beameroption` variable (#4359, Étienne Bersac).
2217 + Use `pgfpages` package; this is needed for notes on second
2218 screen in beamer (Étienne Bersac).
2219 + Add `background-image` variable (#4601, John Muccigrosso).
2221 * reveal.js template: Add `background-image` variable (#4600,
2222 John Muccigrosso).
2224 * ms template: Fix date. Previously `.ND` was used, but this only
2225 works if you have a title page, which we don't. Thanks to @teoric.
2227 * Removed pragmas for unused extensions (#4506, Anabra).
2229 * Fix bash completion for `--print-default-data-file` (#4549).
2230 Previously this looked in the filesystem, even if pandoc
2231 was compiled with `embed_data_files` (and sometimes it looked
2232 in a nonexistent build directory). Now the bash completion
2233 script just includes a hard-coded list of data file names.
2235 * MANUAL:
2237 + Clarify template vs metadata variables (#4501, Mauro Bieg).
2238 + Fix raw content example (#4479, Mauro Bieg).
2239 + Specify that you use html for raw output in epub.
2240 + Add examples for raw docx blocks (#4472, Tristan Stenner).
2241 The documentation states that the target format name should match
2242 the output format, which isn't the case for `docx`/`openxml` and
2243 some others.
2244 + Don't say that `empty_paragraphs` affects markdown output (#4540).
2245 + Consolidate input/output format documentation (#4577, Mauro Bieg).
2247 * New README template. Take in/out formats from manual.
2249 * Fix example in lua-filters docs (#4459, HeirOfNorton).
2251 * Use the `-threaded` GHC flag when building benchmarks (#4587,
2252 Francesco Occhipinti).
2254 * Bump temporary upper bound to 1.4.
2256 * Use pandoc-citeproc 0.14.3.1.
2258 * Use texmath-0.10.1.2 (fixes escapes in math in ms, #4597).
2260 * Removed old lib directory. This was used for something long ago,
2261 but plays no role now.
2263 * Removed unneeded data file `LaTeXMathML.js`.
2265 * Create 64- and 32-bit versions of Windows binary packages.
2267pandoc (2.1.3)
2269 * Docx reader (Jesse Rosenthal):
2271 + Add tests for nested smart tags.
2272 + Parse nested smart tags.
2273 + Make unwrapSDT into a general `unwrap` function that can unwrap both
2274 nested SDT tags and smartTags. This makes the SmartTags constructor in
2275 the Docx type unnecessary, so we remove it (#4446).
2276 + Remove unused `docxWarnings` (Alexander Krotov).
2278 * RST reader: Allow unicode bullet characters (#4454).
2280 * Haddock reader: Better table handling, using haddock-library's
2281 new table support, if compiled against a version that
2282 includes it. Note that tables with col/rowspans will not
2283 translate well into Pandoc.
2285 * Muse reader (Alexander Krotov):
2287 + Require closing tag to have the same indentation as opening.
2288 + Do not reparse blocks inside unclosed block tag (#4425).
2289 + Parse `<class>` tag (supported by Emacs Muse).
2290 + Do not produce empty Str element for unindented verse lines.
2291 + Don't allow footnote references inside links.
2292 + Allow URL to be empty.
2293 + Require that comment semicolons are in the first column (#4551).
2294 + Various internal improvements.
2296 * LaTeX reader:
2298 + Add support to parse unit string of `\SI` command (closes #4296,
2299 Marc Schreiber).
2301 * Haddock writer: In the writer, we now render tables always as
2302 grid tables, since Haddock supports these.
2304 * DokuWiki writer: rewrite backSlashLineBreaks (#4445, Mauro Bieg).
2306 * Docx writer: Fixed formatting of `DefaultStyle` ordered lists in
2307 docx writer. We want decimal for the top level, not lower roman.
2309 * RST writer:
2311 + Strip whitespace at beginning and ending of inline containers
2312 (#4327, Francesco Occhipinti).
2313 + Filter out empty inline containers (#4434). There is nothing in
2314 RST that corresponds to e.g. `Emph []`, so we just ignore elements
2315 like this (Francesco Occhipinti).
2317 * Muse writer (Alexander Krotov):
2319 + Support spans with anchors.
2320 + Replace smallcaps with emphasis before normalization.
2321 + Output smallcaps as emphasis.
2322 + Expand Cite before list normalization.
2323 + Write empty inline lists as `<verbatim></verbatim>`.
2324 + Remove empty Str from the beginning of inline lists during normalization.
2325 + Escape "-" to avoid creating bullet lists.
2326 + Fix math expansion for more than one expression per paragraph.
2327 + Expand math before inline list normalization.
2329 * Dokuwiki writer: fix LineBreaks in Tables (#4313, Mauro Bieg).
2331 * Ms writer:
2333 + Asciify pdf anchors, since unicode anchors don't work (#4436).
2334 Internal links should be converted automatically, so this shouldn't
2335 affect users directly.
2336 + Don't escape hyphens as `\-`; that's for a minus sign (#4467).
2338 * Beamer writer: put hyperlink after `\begin{frame}` and not in the title
2339 (#4307). If it's in the title, then we get a titlebar on slides with
2340 the `plain` attribute, when the id is non-null. This fixes a regression
2341 in 2.0.
2343 * EPUB writer: Remove notes from TOC in nav.xhtml (#4453, Mauro Bieg).
2345 * JATS writer: Remove extraneous, significant whitespace (#4335,
2346 Nokome Bentley).
2348 * html2pdf: inject base tag with current working directory (#4413, Mauro
2349 Bieg). This helps ensure that linked resources are included.
2351 * Add Semigroup instances for everything for which we defined a
2352 Monoid instance previously (API change):
2354 + Text.Pandoc.Class.FileTree.
2355 + Text.Pandoc.Translations.Translations.
2356 + Text.Pandoc.Extensions.Extensions.
2357 + Text.Pandoc.Readers.Odt.StyleReader.Styles.
2358 + Text.Pandoc.Pretty.Doc.
2359 + Text.Pandoc.MediaBag.MediaBag.
2361 * Add custom Prelude to give clean code for Monoid and Semigroup
2362 that works with ghc 7.10-8.4. The custom Prelude (`prelude/Prelude`)
2363 is used for ghc versions < 8.4. `NoImplicitPrelude` is used
2364 in all source files, and Prelude is explicitly imported
2365 (this is necessary for ghci to work properly with the custom prelude).
2367 * Text.Pandoc.Writers.Shared (Francesco Occhipinti):
2369 + Export `stripLeadingTrailingSpace`.
2370 + Don't wrap lines in grid tables when `--wrap=none` (#4320).
2371 + `gridTable`: Don't wrap lines in tables when `--wrap=none`. Instead,
2372 expand cells, even if it results in cells that don't respect relative
2373 widths or surpass page column width. This change affects RST,
2374 Markdown, and Haddock writers.
2376 * Raise error if someone tries to print docx, odt, etc. template (#4441).
2378 * LaTeX template: Provide `bidi` package's option using
2379 `\PassOptionsToPackage` (#4357, Václav Haisman). This avoid a
2380 clash when `polyglossia` loads it first and then it is loaded again
2381 for XeLaTeX.
2383 * ConTeXt template: Added `pdfa` variable to generate PDF/A (#4294, Henri
2384 Menke). Instructions on how to install the ICC profiles on ConTeXt
2385 standalone can be found in the wiki:
2386 <http://wiki.contextgarden.net/PDFX#ICC_profiles>.
2387 If the ICC profiles are not available the log will contain error
2388 messages.
2390 * Use latest pandoc-types, skylighting
2392 * Use latest pandoc-citeproc in binary package.
2394 * Bump upper bound for time, criterion, haddock-library, exceptions,
2395 http-types, aeson, haddock-library.
2397 * Bump upper bound tasty-quickcheck 0.10 (#4429, Felix Yan).
2399 * pandoc.cabal: fix up other-extensions and language fields.
2400 Language is now consistently `Haskell2010`, and other-extensions
2401 is consistently `NoImplicitPrelude`. Everything else to be specified
2402 in the module header as needed.
2404 * Removed `old-locale` flag and Text.Pandoc.Compat.Time.
2405 This is no longer necessary since we no longer support ghc 7.8.
2407 * Make `weigh-pandoc` into a benchmark program.
2408 Remove `weigh-pandoc` flag. `weigh-pandoc` is now built (and run)
2409 automatically when you build (and run) benchmarks.
2411 * MANUAL: add instructions for background images reveal.js (#4325, John
2412 Muccigrosso).
2414 * appveyor: use VS 2013 environment instead of VS 2015 for Windows builds.
2417pandoc (2.1.2)
2419 * Markdown reader:
2421 + Fix parsing bug with nested fenced divs (#4281). Previously we allowed
2422 "nonindent spaces" before the opening and closing `:::`, but this
2423 interfered with list parsing, so now we require the fences to be flush with
2424 the margin of the containing block.
2426 * Commonmark reader:
2428 + `raw_html` is now on by default. It can be disabled explicitly
2429 using `-f commonmark-raw_html`.
2431 * Org reader (Albert Krewinkel):
2433 + Move citation tests to separate module.
2434 + Allow changing emphasis syntax (#4378). The characters allowed before
2435 and after emphasis can be configured via `#+pandoc-emphasis-pre` and
2436 `#+pandoc-emphasis-post`, respectively. This allows to change which
2437 strings are recognized as emphasized text on a per-document or even
2438 per-paragraph basis. Example:
2440 #+pandoc-emphasis-pre: "-\t ('\"{"
2441 #+pandoc-emphasis-post: "-\t\n .,:!?;'\")}["
2443 * LaTeX reader:
2445 + Fixed comments inside citations (#4374).
2446 + Fix regression in package options including underscore (#4424).
2447 + Make `--trace` work.
2448 + Fixed parsing of `tabular*` environment (#4279).
2450 * RST reader:
2452 + Fix regression in parsing of headers with trailing space (#4280).
2454 * Muse reader (Alexander Krotov):
2456 + Enable `<literal>` tags even if amuse extension is enabled.
2457 Amusewiki disables <literal> tags for security reasons.
2458 If user wants similar behavior in pandoc, RawBlocks and RawInlines
2459 can be removed or replaced with filters.
2460 + Remove space prefix from `<literal>` tag contents.
2461 + Do not consume whitespace while looking for closing end tag.
2462 + Convert alphabetical list markers to decimal in round-trip test.
2463 Alphabetical lists are an addition of Text::Amuse.
2464 They are not present in Emacs Muse and can be ambiguous
2465 when list starts with "i.", "c." etc.
2466 + Allow `<quote>` and other tags to be indented.
2467 + Allow single colon in definition list term.
2468 + Fix parsing of verse in lists.
2469 + Improved parsing efficiency. Avoid `parseFromString`.
2470 Lists are parsed in linear instead of exponential time now.
2471 + Replace ParserState with MuseState.
2472 + Prioritize lists with roman numerals over alphabetical lists.
2473 This is to make sure "i." starts a roman numbered list,
2474 instead of a list with letter "i" (followed by "j", "k", ...").
2475 + Fix directive parsing.
2476 + Parse definition lists with multiple descriptions.
2477 + Parse next list item before parsing more item contents.
2478 + Fixed a bug: headers did not terminate lists.
2479 + Move indentation parsing from `definitionListItem` to `definitionList`.
2480 + Paragraph indentation does not indicate nested quote.
2481 Muse allows indentation to indicate quotation or alignment,
2482 but only on the top level, not within a <quote> or list.
2483 + Require that block tags are on separate lines.
2484 Text::Amuse already explicitly requires it anyway.
2485 + Fix matching of closing inline tags.
2486 + Various internal changes.
2487 + Fix parsing of nested definition lists.
2488 + Require only one space for nested definition list indentation.
2489 + Do not remove trailing whitespace from `<code>`.
2490 + Fix parsing of trailing whitespace. Newline after whitespace now
2491 results in softbreak instead of space.
2493 * Docx reader (Jesse Rosenthal, except where noted):
2495 + Handle nested sdt tags (#4415).
2496 + Don't look up dependent run styles if `+styles` is enabled.
2497 + Move pandoc inline styling inside custom-style span.
2498 + Read custom styles (#1843). This will read all paragraph and
2499 character classes as divs and spans, respectively. Dependent styles
2500 will still be resolved, but will be wrapped with appropriate style
2501 tags. It is controlled by the `+styles` extension (`-f docx+styles`).
2502 This can be used in conjunction with the `custom-style` feature in the
2503 docx writer for a pandoc-docx editing workflow. Users can convert from
2504 an input docx, reading the custom-styles, and then use that same input
2505 docx file as a reference-doc for producing an output docx file. Styles
2506 will be maintained across the conversion, even if pandoc doesn't
2507 understand them.
2508 + Small change to Fields hyperlink parser. Previously, unquoted string
2509 required a space at the end of the line (and consumed it). Now we
2510 either take a space (and don't consume it), or end of input.
2511 + Pick table width from the longest row or header (Francesco Occhipinti,
2512 #4360).
2514 * Muse writer (Alexander Krotov):
2516 + Change verse markup: `> ` instead of `<verse>` tag.
2517 + Remove empty strings during inline normalization.
2518 + Don't indent nested definition lists.
2519 + Use unicode quotes for quoted text.
2520 + Write image width specified in percent in Text::Amuse mode.
2521 + Don't wrap displayMath into `<verse>`.
2522 + Escape nonbreaking space (`~~`).
2523 + Join code with different attributes during normalization.
2524 + Indent lists inside Div.
2525 + Support definitions with multiple descriptions.
2527 * Powerpoint writer (Jesse Rosenthal):
2529 + Use table styles This will use the default table style in the
2530 reference-doc file. As a result they will be easier when using
2531 in a template, and match the color scheme.
2532 + Remove empty slides. Because of the way that slides were split, these
2533 could be accidentally produced by comments after images. When animations
2534 are added, there will be a way to add an empty slide with either
2535 incremental lists or pauses.
2536 + Implement syntax highlighting. Note that background colors can't
2537 be implemented in PowerPoint, so highlighting styles that require
2538 these will be incomplete.
2539 + New test framework for pptx. We now compare the output of the
2540 Powerpoint writer with files that we know to (a) not be corrupt,
2541 and (b) to show the desired output behavior (details below).
2542 + Add `notesMaster` to `presentation.xml` if necessary.
2543 + Ignore links and (end)notes in speaker notes.
2544 + Output speaker notes.
2545 + Read speaker note templates conditionally. If there are speaker
2546 notes in the presentation, we read in the notesMasters templates
2547 from the reference pptx file.
2548 + Fix deletion track changes (#4303, Jesse Rosenthal).
2550 * Markdown writer: properly escape @ to avoid capture as citation
2551 (#4366).
2553 * LaTeX writer:
2555 + Put hypertarget inside figure environment (#4388).
2556 This works around a problem with the endfloat package and
2557 makes pandoc's output compatible with it.
2558 + Fix image height with percentage (#4389). This previously caused
2559 the image to be resized to a percentage of textwidth, rather than
2560 textheight.
2562 * ConTeXt writer (Henri Menke):
2564 + New section syntax and support `--section-divs` (#2609).
2565 `\section[my-header]{My Header}` ->
2566 `\section[title={My Header},reference={my-header}]`.
2567 The ConTeXt writer now supports the `--section-divs` option to
2568 write sections in the fenced style, with `\startsection` and
2569 `\stopsection`.
2570 + xtables: correct wrong usage of caption (Henri Menke).
2572 * Docx writer:
2574 + Fix image resizing with multiple images (#3930, Andrew Pritchard).
2575 + Use new golden framework (Jesse Rosenthal).
2576 + Make more deterministic to facilitate testing (Jesse Rosenthal).
2577 - `getUniqueId` now calls to the state to get an incremented digit,
2578 instead of calling to P.uniqueHash.
2579 - we always start the PRNG in mkNumbering/mkAbstractNum with the same
2580 seed (1848), so our randoms should be the same each time.
2581 + Fix ids in comment writing (Jesse Rosenthal). Comments from
2582 `--track-changes=all` were producing corrupt docx, because the
2583 writer was trying to get id from the `(ID,_,_)` field of
2584 the attributes, and ignoring the "id" entry in the key-value pairs. We
2585 now check both.
2587 * Ms writer: Added papersize variable.
2589 * TEI writer:
2591 + Use `height` instead of `depth` for images (#4331).
2592 + Ensure that id prefix is always used.
2593 + Don't emit `role` attribute; that was a leftover from the
2594 Docbook writer.
2595 + Use 'xml:id', not 'id' attribute (#4371).
2597 * AsciiDoc writer:
2599 + Do not output implicit heading IDs (#4363, Alexander
2600 Krotov). Convert to `asciidoc-auto_identifiers` for old behaviour.
2602 * RST writer:
2604 + Remove `blockToRST'` moving its logic into `fixBlocks`
2605 (Francesco Occhipinti).
2606 + Insert comment between lists and quotes (#4248, Francesco Occchipinti).
2608 * RST template: remove definition of 'math' role as raw.
2609 This used to be needed prior to v 0.8 of docutils, but
2610 now math support is built-in.
2612 * Slides: Use divs to set incremental/non-incremental (#4381,
2613 Jesse Rosenthal). The old method (list inside blockquote) still
2614 works, but we are encouraging the use of divs with class
2615 `incremental` or `nonincremental`.
2617 * Text.Pandoc.ImageSize:
2619 + Make image size detection for PDFs more robust (#4322).
2620 + Determine image size for PDFs (#4322).
2621 + EMF Image size support (#4375, Andrew Pritchard).
2623 * Text.Pandoc.Extensions:
2625 + Add `Ext_styles` (Jesse Rosenthal, API change). This will be used in
2626 the docx reader (defaulting to off) to read pargraph and character
2627 styles not understood by pandoc (as divs and spans, respectively).
2628 + Made `Ext_raw_html` default for `commonmark` format.
2630 * Text.Pandoc.Parsing:
2632 + Export `manyUntil` (Alexander Krotov, API change).
2633 + Export improved `sepBy1` (Alexander Krotov).
2634 + Export list marker parsers: `upperRoman`, `lowerRoman`,
2635 `decimal`, `lowerAlpha`, `upperAlpha` (Alexander Krotov, API change).
2637 * Tests/Lua: fix tests on windows (Albert Krewinkel).
2639 * Lua: register script name in global variable (#4393). The name of the Lua
2640 script which is executed is made available in the global Lua variable
2641 `PANDOC_SCRIPT_FILE`, both for Lua filters and custom writers.
2643 * Tests: Abstract powerpoint tests out to OOXML tests (Jesse Rosenthal).
2644 There is very little pptx-specific in these tests, so we abstract out
2645 the basic testing function so it can be used for docx as well. This
2646 should allow us to catch some errors in the docx writer that slipped
2647 by the roundtrip testing.
2649 * Lua filters: store constructors in registry (Albert Krewinkel). Lua
2650 functions used to construct AST element values are stored in the Lua
2651 registry for quicker access. Getting a value from the registry is much
2652 faster than getting a global value (partly to idiosyncrasies of hslua);
2653 this change results in a considerable performance boost.
2655 * Documentation:
2657 + `doc/org.md` Add draft of Org-mode documentation (Albert Krewinkel).
2658 + `doc/lua-filters.md`: document global vars set for filters
2659 (Albert Krewinkel).
2660 + INSTALL.md: mention Stack version. (#4343, Adam Brandizzi).
2661 + MANUAL: add documentation on custom styles (Jesse Rosenthal).
2662 + MANUAL.txt: Document incremental and nonincremental divs (Jesse
2663 Rosenthal). Blockquoted lists are still described, but fenced divs are
2664 presented in preference.
2665 + MANUAL.txt: document header and footer variables (newmana).
2666 + MANUAL.txt: self-contained implies standalone (#4304, Daniel Lublin).
2667 + CONTRIBUTING.md: label was renamed. (#4310, Alexander Brandizzi).
2669 * Require tagsoup 0.14.3 (#4282), fixing HTML tokenization bug.
2671 * Use latest texmath.
2673 * Use latest pandoc-citeproc.
2675 * Allow exceptions 0.9.
2677 * Require aeson-pretty 0.8.5 (#4394).
2679 * Bump blaze-markup, blaze-html lower bounds to 0.8, 0.9 (#4334).
2681 * Update tagsoup to 0.14.6 (Alexander Krotov, #4282).
2683 * Removed ghc-prof-options. As of cabal 1.24, sensible defaults are used.
2685 * Update default.nix to current nixpkgs-unstable for hslua-0.9.5 (#4348,
2686 jarlg).
2689pandoc (2.1.1)
2691 * Markdown reader:
2693 + Don't coalesce adjacent raw LaTeX blocks if they are separated by a
2694 blank line. See lierdakil/pandoc-crossref#160.
2695 + Improved `inlinesInBalancedBrackets` (#4272, jgm/pandoc-citeproc#315).
2696 The change both improves performance and fixes a regression whereby
2697 normal citations inside inline notes and figure captions were not
2698 parsed correctly.
2700 * RST reader:
2702 + Better handling for headers with an anchor (#4240). Instead of creating a
2703 Div containing the header, we put the id directly on the header.
2704 This way header promotion will work properly.
2705 + Add aligned environment when needed in math (#4254). `rst2latex.py`
2706 uses an `align*` environment for math in `.. math::` blocks, so this
2707 math may contain line breaks. If it does, we put the math in an
2708 `aligned` environment to simulate `rst2latex.py`'s behavior.
2710 * HTML reader:
2712 + Fix col width parsing for percentages < 10% (#4262, n3fariox).
2714 * LaTeX reader:
2716 + Advance source position at end of stream.
2717 + Pass through macro defs in `rawLaTeXBlock` even if the `latex_macros`
2718 extension is set (#4246). This reverts to earlier behavior and is
2719 probably safer on the whole, since some macros only modify things in
2720 included packages, which pandoc's macro expansion can't modify.
2721 + Fixed pos calculation in tokenizing escaped space.
2722 + Allow macro definitions inside macros (#4253). Previously we went into
2723 an infinite loop with
2724 ```
2725 \newcommand{\noop}[1]{#1}
2726 \noop{\newcommand{\foo}[1]{#1}}
2727 \foo{hi}
2728 ```
2729 + Fix inconsistent column widths (#4238). This fixes a bug whereby column
2730 widths for the body were different from widths for the header in some
2731 tables.
2733 * Docx reader (Jesse Rosenthal):
2735 + Parse hyperlinks in `instrText` tags (#3389, #4266). This was a form of
2736 hyperlink found in older versions of word. The changes introduced for
2737 this, though, create a framework for parsing further fields in MS Word
2738 (see the spec, ECMA-376-1:2016, §17.16.5, for more on these fields).
2739 We introduce a new module, `Text.Pandoc.Readers.Docx.Fields` which
2740 contains a simple parsec parser. At the moment, only simple hyperlink
2741 fields are accepted, but that can be extended in the future.
2743 * Muse reader (Alexander Krotov):
2745 + Parse `~~` as non-breaking space in Text::Amuse mode.
2746 + Refactor list parsing.
2748 * Powerpoint writer (Jesse Rosenthal):
2750 + Change reference to `notesSlide` to `endNotesSlide`.
2751 + Move image sizing into `picProps`.
2752 + Improve table placement.
2753 + Make our own `_rels/.rels` file.
2754 + Import reference-doc images properly.
2755 + Move `Presentation.hs` out of `PandocMonad`.
2756 + Refactor into separate modules. T.P.W.Powerpoint.Presentation
2757 defines the Presentation datatype and goes Pandoc->Presentation;
2758 T.P.W.Pandoc.Output goes Presentation->Archive.
2759 Text.Pandoc.Writers.Powerpoint a thin wrapper around the two modules.
2760 + Avoid overlapping blocks in column output.
2761 + Position images correctly in two-column layout.
2762 + Make content shape retrieval environment-aware.
2763 + Improve image handling. We now determine image and caption placement
2764 by getting the dimensions of the content box in a given layout.
2765 This allows for images to be correctly sized and positioned in a
2766 different template. Note that images without captions and headers are
2767 no longer full-screened. We can't do this dependably in different
2768 layouts, because we don't know where the header is (it could be to
2769 the side of the content, for example).
2770 + Read presentation size from reference file. Our presentation size is
2771 now dependent on the reference/template file we use.
2772 + Handle (sub)headers above slidelevel correctly. Above the slidelevel,
2773 subheaders will be printed in bold and given a bit of extra space
2774 before them. Note that at the moment, no distinction is made between
2775 levels of headers above the slide header, though that can be changed.
2776 + Check for required files. Since we now import from reference/dist
2777 file by glob, we need to make sure that we're getting the files we
2778 need to make a non-corrupt Powerpoint. This performs that check.
2779 + Improve templating using `--reference-doc`. Templating should work
2780 much more reliably now.
2781 + Include Notes slide in TOC.
2782 + Set notes slide header to slide-level.
2783 + Add table of contents. This is triggered by the `--toc` flag. Note
2784 that in a long slide deck this risks overrunning the text box. The user
2785 can address this by setting `--toc-depth=1`.
2786 + Set notes slide number correctly.
2787 + Clean up adding metadata slide. We want to count the slide numbers
2788 correctly if it's in there.
2789 + Add anchor links. For anchor-type links (`[foo](#bar)`) we produce
2790 an anchor link. In powerpoint these are links to slides, so we keep
2791 track of a map relating anchors to the slides they occur on.
2792 + Make the slide number available to the blocks. For anchors,
2793 block-processing functions need to know what slide number
2794 they're in. We make the `envCurSlideId` available to blocks.
2795 + Move `curSlideId` to environment.
2796 + Allow setting `toc-title` in metadata.
2797 + Link notes to endnotes slide.
2799 * Markdown writer:
2801 + Fix cell width calculation (#4265). Previously we could get
2802 ever-lengthening cell widths when a table was run repeatedly through
2803 `pandoc -f markdown -t markdown`.
2805 * LaTeX writer:
2807 + Escape `&` in lstinline (Robert Schütz).
2809 * ConTeXt writer:
2811 + Use xtables instead of Tables (#4223, Henri Menke).
2812 Default to xtables for context output. Natural Tables are used
2813 if the new `ntb` extension is set.
2815 * HTML writer:
2817 + Fixed footnote backlinks with `--id-prefix` (#4235).
2819 * `Text.Pandoc.Extensions`: Added `Ext_ntb` constructor (API change,
2820 Henri Menke).
2822 * `Text.Pandoc.ImageSize`: add derived `Eq` instance to `Dimension`
2823 (Jesse Rosenthal, API change).
2825 * Lua filters (Albert Krewinkel):
2827 + Make `PANDOC_READER_OPTIONS` available.
2828 The options which were used to read the document are made available to
2829 Lua filters via the `PANDOC_READER_OPTIONS` global.
2830 + Add lua module `pandoc.utils.run_json_filter`, which runs a JSON filter
2831 on a Pandoc document.
2832 + Refactor filter-handling code into `Text.Pandoc.Filter.JSON`,
2833 `Text.Pandoc.Filter.Lua`, and `Text.Pandoc.Filter.Path`.
2834 + Improve error messages. Provide more context about the task
2835 which caused an error.
2837 * data/pandoc.lua (Albert Krewinkel):
2839 + Accept singleton inline as a list. Every constructor which accepts a
2840 list of inlines now also accepts a single inline element for
2841 convenience.
2842 + Accept single block as singleton list. Every constructor which accepts
2843 a list of blocks now also accepts a single block element for
2844 convenience. Furthermore, strings are accepted as shorthand for
2845 `{pandoc.Str "text"}` in constructors.
2846 + Add attr, listAttributes accessors. Elements with
2847 attributes got an additional `attr` accessor. Attributes were
2848 accessible only via the `identifier`, `classes`, and `attributes`,
2849 which was in conflict with the documentation, which indirectly states
2850 that such elements have the an `attr` property.
2851 + Drop `_VERSION`. Having a `_VERSION` became superfluous, as this
2852 module is closely tied to the pandoc version, which is available via
2853 `PANDOC_VERSION`.
2854 + Fix access to Attr components. Accessing an Attr value (e.g.,
2855 ` Attr().classes`) was broken; the more common case of accessing it via
2856 an Inline or Block element was unaffected by this.
2858 * Move `metaValueToInlines` to from Docx writer to
2859 `Text.Pandoc.Writers.Shared`, so it can be used by other writers
2860 (Jesse Rosenthal).
2862 * MANUAL.txt:
2864 + Clarify otherlangs in LaTeX (#4072).
2865 + Clarify `latex_macros` extension.
2866 + Recommend use of `raw_attribute` extension in header includes (#4253).
2868 * Allow latest QuickCheck, tasty, criterion.
2870 * Remove custom prelude and ghc 7.8 support.
2872 * Reduce compiler noise (exact paths for compiled modules).
2874pandoc (2.1)
2876 * Allow filters and lua filters to be interspersed (#4196). Previously
2877 we ran all lua filters before JSON filters. Now we run filters in
2878 the order they are presented on the command line, whether lua or JSON.
2879 There are two incompatible API changes: The type of `applyFilters`
2880 has changed, and `applyLuaFilters` has been removed. `Filter` is
2881 also now exported.
2883 * Use latest skylighting and omit the `missingIncludes` check, fixing
2884 a major performance regression in earlier releases of the 2.x series
2885 (#4226). Behavior change: If you use a custom syntax definition that
2886 refers to a syntax you haven't loaded, pandoc will now complain when
2887 it is highlighting the text, rather than doing a check at the start.
2888 This change dramatically speeds up invocations of pandoc on short
2889 inputs.
2891 * Text.Pandoc.Class: make `FileTree` opaque (don't export
2892 `FileTree` constructor). This forces users to interact with it using
2893 `insertInFileTree` and `getFileInfo`, which normalize file names.
2895 * Markdown reader:
2897 + Rewrite `inlinesInBalancedBrackets`. The rewrite is much more
2898 direct, avoiding `parseFromString`. And it performs significantly
2899 better; unfortunately, parsing time still increases exponentially
2900 (see #1735).
2901 + Avoid parsing raw tex unless `\` + letter seen. This seems to
2902 help with the performance problem, #4216.
2904 * LaTeX reader: Simplified a check for raw tex command.
2906 * Muse reader (Alexander Krotov):
2908 + Enable round trip test (#4107).
2909 + Automatically translate `#cover` into `#cover-image`.
2910 Amusewiki uses #cover directive to specify cover image.
2912 * Docx reader (Jesse Rosenthal):
2914 + Allow for insertion/deletion of paragraphs (#3927).
2915 If the paragraph has a deleted or inserted paragraph break (depending
2916 on the track-changes setting) we hold onto it until the next
2917 paragraph. This takes care of accept and reject. For this we introduce
2918 a new state which holds the ils from the previous para if necessary.
2919 For `--track-changes=all`, we add an empty span with class
2920 `paragraph-insertion`/`paragraph-deletion` at the end of the paragraph
2921 prior to the break to be inserted or deleted.
2922 + Remove unused anchors (#3679). Docx produces a lot of anchors with
2923 nothing pointing to them---we now remove these to produce cleaner
2924 output. Note that this has to occur at the end of the process
2925 because it has to follow link/anchor rewriting.
2926 + Read multiple children of `w:sdtContents`.
2927 + Combine adjacent anchors. There isn't any reason to have numerous
2928 anchors in the same place, since we can't maintain docx's
2929 non-nesting overlapping. So we reduce to a single anchor.
2930 + Improved tests.
2932 * Muse writer (Alexander Krotov): don't escape URIs from AST
2934 * Docx writer:
2936 + Removed redundant subtitle in title (Sebastian Talmon).
2937 + `firstRow` table definition compatibility for Word 2016 (Sebastian
2938 Talmon). Word 2016 seems to use a default value of "1" for table
2939 headers, if there is no firstRow definition (although a default
2940 value of 0 is documented), so all tables get the first Row formatted
2941 as header. Setting the parameter to 0 if the table has no header
2942 row fixes this for Word 2016
2943 + Fix custom styles with spaces in the name (#3290).
2945 * Powerpoint writer (Jesse Rosenthal):
2947 + Ignore Notes div for parity with other slide outputs.
2948 + Set default slidelevel correctly. We had previously defaulted to
2949 slideLevel 2. Now we use the correct behavior of defaulting to the
2950 highest level header followed by content. We change an expected test
2951 result to match this behavior.
2952 + Split blocks correctly for linked images.
2953 + Combine adjacent runs.
2954 + Make inline code inherit code size. Previously (a) the code size
2955 wasn't set when we force size, and (b) the properties was set from
2956 the default, instead of inheriting.
2957 + Simplify `replaceNamedChildren` function.
2958 + Allow linked images. The following markdown:
2959 `[![Image Title](image.jpg)](http://www.example.com)`
2960 will now produce a linked image in the resulting PowerPoint file.
2961 + Fix error with empty table cell. We require an empty `<a:p>` tag,
2962 even if the cell contains no paragraphs---otherwise PowerPoint
2963 complains of corruption.
2964 + Implement two-column slides. This uses the columns/column div
2965 format described in the pandoc manual. At the moment, only two
2966 columns (half the screen each) are allowed. Custom widths are not
2967 supported.
2968 + Added more tests.
2970 * OpenDocument/ODT writers: improved rendering of formulas (#4170, oltolm).
2972 * Lua filters (Albert Krewinkel):
2974 + `data/pandoc.lua`: drop 'pandoc-api-version' from Pandoc objects
2975 + The current pandoc-types version is made available to Lua programs in
2976 the global `PANDOC_API_VERSION`. It contains the version as a list of
2977 numbers.
2978 + The pandoc version available as a global `PANDOC_VERSION` (a list
2979 of numbers).
2980 + `data/pandoc.lua`: make `Attr` an `AstElement`.
2981 + `data/pandoc.lua`: make all types subtypes of `AstElement`.
2982 `Pandoc`, `Meta`, and `Citation` were just plain functions and did
2983 not set a metatable on the returned value, which made it difficult
2984 to amend objects of these types with new behavior. They are now
2985 subtypes of AstElement, meaning that all their objects can gain
2986 new features when a method is added to the behavior object
2987 (e.g., `pandoc.Pandoc.behavior`).
2988 + `data/pandoc.lua`: split type and behavior tables. Clearly distinguish
2989 between a type and the behavioral properties of an instance of that
2990 type. The behavior of a type (and all its subtypes) can now be
2991 amended by adding methods to that types `behavior` object, without
2992 exposing the type objects internals. E.g.:
2993 ```lua
2994 pandoc.Inline.behavior.frob = function () print'42' end
2995 local str = pandoc.Str'hello'
2996 str.frob() -- outputs '42'
2997 ```
2998 + `data/pandoc.lua`: fix Element inheritance. Extending all elements
2999 of a given type (e.g., all inline elements) was difficult, as the
3000 table used to lookup unknown methods would be reset every time a
3001 new element of that type was created, preventing recursive property
3002 lookup. This is was changed in that all methods and attributes of
3003 supertypes are now available to their subtypes.
3004 + `data/pandoc.lua`: fix attribute names of Citation (#4222). The
3005 fields were named like the Haskell fields, not like the documented,
3006 shorter version. The names are changed to match the documentation
3007 and Citations are given a shared metatable to enable simple
3008 extensibility.
3009 + `data/pandoc.lua`: drop function `pandoc.global_filter`.
3010 + Bump `hslua` version to 0.9.5. This version fixes a bug that made it
3011 difficult to handle failures while getting lists or a Map from Lua.
3012 A bug in pandoc, which made it necessary to always pass a tag when
3013 using MetaList or MetaBlock, is fixed as a result. Using the pandoc
3014 module's constructor functions for these values is now optional
3015 (if still recommended).
3016 + Stop exporting `pushPandocModule` (API change). The introduction
3017 of `runPandocLua` renders direct use of this function obsolete.
3018 + Update generation of module docs for lua filters.
3019 + `Lua.Module.Utils`: make stringify work on `MetaValues` (John
3020 MacFarlane). I'm sure this was intended in the first place,
3021 but currently only `Meta` is supported.
3023 * Improve benchmarks.
3025 + Set the default extensions properly.
3026 + Improve benchmark argument parsing. You can now say
3027 `make bench BENCHARGS="markdown latex reader"` and both the
3028 markdown and latex readers will be benchmarked.
3030 * MANUAL.txt simplify and add more structure (Mauro Bieg).
3032 * Generate README.md from template and MANUAL.txt.
3033 `make README.md` will generate the README.md after changes
3034 to MANUAL.txt have been made.
3036 * Update copyright notices to include 2018 (Albert Krewinkel).
3038pandoc (2.0.6)
3040 * Added `jats` as an input format.
3042 + Add Text.Pandoc.Readers.JATS, exporting `readJATS` (API
3043 change) (Hamish Mackenzie).
3044 + Improved citation handling in JATS reader. JATS citations
3045 are now converted to pandoc citations, and JATS ref-lists
3046 are converted into a `references` field in metadata, suitable
3047 for use with pandoc-citeproc. Thus a JATS article with embedded
3048 bibliographic information can be processed with pandoc and
3049 pandoc-citeproc to produce a formatted bibliography.
3051 * Allow `--list-extensions` to take an optional FORMAT argument.
3052 This lists the extensions set by default for the selected FORMAT.
3053 The extensions are now alphabetized, and the `+` or `-`
3054 indicating the default setting comes before, rather than after,
3055 the extension.
3057 * Markdown reader:
3059 + Preserve original whitespace between blocks.
3060 + Recognize `\placeformula` as context.
3061 + Be pickier about table captions. A caption starts with a `:` which
3062 can't be followed by punctuation. Otherwise we can falsely interpret
3063 the start of a fenced div, or even a table header line like
3064 `:--:|:--:`, as a caption.
3065 + Always use four space rule for example lists. It would be awkward
3066 to indent example list contents to the first non-space character after
3067 the label, since example list labels are often long. Thanks to
3068 Bernhard Fisseni for the suggestion.
3069 + Improve raw tex parsing. Note that the Markdown reader is also
3070 affected by the `latex_macros` extension changes described below
3071 under the LaTeX reader.
3073 * LaTeX reader:
3075 + `latex_macros` extension changes (#4179). Don't pass through macro
3076 definitions themselves when `latex_macros` is set. The macros
3077 have already been applied. If `latex_macros` is enabled, then
3078 `rawLaTeXBlock` in Text.Pandoc.Readers.LaTeX will succeed in parsing
3079 a macro definition, and will update pandoc's internal macro map
3080 accordingly, but the empty string will be returned.
3081 + Export `tokenize`, `untokenize` (API change).
3082 + Use `applyMacros` in `rawLaTeXBlock`, `rawLaTeXInline`.
3083 + Refactored `inlineCommand`.
3084 + Fix bug in tokenizer. Material following `^^` was
3085 dropped if it wasn't a character escape. This only affected
3086 invalid LaTeX, so we didn't see it in the wild, but it appeared
3087 in a QuickCheck test failure.
3088 + Fix regression in LateX tokenization (#4159). This mainly affects the
3089 Markdown reader when parsing raw LaTeX with escaped spaces.
3090 + Add tests of LaTeX tokenizer.
3091 + Support `\foreignlanguage` from babel.
3092 + Be more tolerant of `&` character (#4208). This allows us to parse
3093 unknown tabular environments as raw LaTeX.
3095 * Muse reader (Alexander Krotov):
3097 + Parse anchors immediately after headings as IDs.
3098 + Require that note references does not start with 0.
3099 + Parse empty comments correctly.
3101 * Org reader (Albert Krewinkel):
3103 + Fix asterisks-related parsing error (#4180).
3104 + Support minlevel option for includes (#4154). The level of headers
3105 in included files can be shifted to a higher level by specifying a
3106 minimum header level via the `:minlevel` parameter. E.g.
3107 `#+include: "tour.org" :minlevel 1` will shift the headers in
3108 tour.org such that the topmost headers become level 1 headers.
3109 + Break-up org reader test file into multiple modules.
3111 * OPML reader:
3113 + Enable raw HTML and other extensions by default for notes
3114 (#4164). This fixes a regression in 2.0. Note that extensions can
3115 now be individually disabled, e.g. `-f opml-smart-raw_html`.
3117 * RST reader:
3119 + Allow empty list items (#4193).
3120 + More accurate parsing of references (#4156). Previously we erroneously
3121 included the enclosing backticks in a reference ID (#4156). This
3122 change also disables interpretation of syntax inside references, as
3123 in docutils. So, there is no emphasis in `` `my *link*`_ ``.
3125 * Docx reader:
3127 + Continue lists after interruption (#4025, Jesse Rosenthal).
3128 Docx expects that lists will continue where they left off after an
3129 interruption and introduces a new id if a list is starting again. So
3130 we keep track of the state of lists and use them to define a "start"
3131 attribute, if necessary.
3132 + Add tests for structured document tags unwrapping (Jesse Rosenthal).
3133 + Preprocess Document body to unwrap `w:sdt` elements (Jesse Rosenthal,
3134 #4190).
3136 * Plain writer:
3138 + Don't linkify table of contents.
3140 * RST writer:
3142 + Fix anchors for headers (#4188). We were missing an `_`.
3144 * PowerPoint writer (Jesse Rosenthal):
3146 + Treat lists inside BlockQuotes as lists. We don't yet produce
3147 incremental lists in PowerPoint, but we should at least treat lists
3148 inside BlockQuotes as lists, for compatibility with other slide formats.
3149 + Add ability to force size. This replaces the more specific
3150 `blockQuote runProp`, which only affected the size of blockquotes. We
3151 can use this for notes, etc.
3152 + Implement notes. This currently prints all notes on a final slide.
3153 Note that at the moment, there is a danger of text overflowing the
3154 note slide, since there is no logic for adding further slides.
3155 + Implement basic definition list functionality to PowerPoint writer.
3156 + Don't look for default template file for Powerpoint (#4181).
3157 + Add pptx to isTextFormat list. This is used to check standalone
3158 and not writing to the terminal.
3159 + Obey slide level option (Jesse Rosenthal).
3160 + Introduce tests.
3162 * Docx writer:
3164 + Ensure that `distArchive` is the one that comes with pandoc
3165 (#4182). Previously a `reference.docx` in `~/.pandoc` (or the user data
3166 dir) would be used instead, and this could cause problems because a
3167 user-modified docx sometimes lacks vital sections that we count
3168 on the `distArchive` to supply.
3170 * Org writer:
3172 + Do not wrap "-" to avoid accidental bullet lists (Alexander Krotov).
3173 + Don't allow fn refs to wrap to beginning of line (#4171, with help from
3174 Alexander Krotov). Otherwise they can be interpreted as footnote
3175 definitions.
3177 * Muse writer (Alexander Krotov):
3179 + Don't wrap note references to the next line (#4172).
3181 * HTML writer:
3183 + Use br elements in line blocks instead of relying on CSS
3184 (#4162). HTML-based templates have had the custom CSS for
3185 `div.line-block` removed. Those maintaining custom templates will want
3186 to remove this too. We still enclose line blocks in a div with class
3187 `line-block`.
3189 * LaTeX writer:
3191 + Use `\renewcommand` for `\textlatin` with babel (#4161).
3192 This avoids a clash with a deprecated `\textlatin` command defined
3193 in Babel.
3194 + Allow fragile=singleslide attribute in beamer slides (#4169).
3195 + Use `\endhead` after `\toprule` in headerless tables (#4207).
3197 * FB2 writer:
3199 + Add cover image specified by `cover-image` meta (Alexander Krotov,
3200 #4195).
3202 * JATS writer (Hamish Mackenzie):
3204 + Support writing `<fig>` and `<table-wrap>` elements
3205 with `<title>` and `<caption>` inside them by using Divs with class set
3206 to one of `fig`, `table-wrap` or `caption` (Hamish Mackenzie). The
3207 title is included as a Heading so the constraint on where Heading can
3208 occur is also relaxed.
3209 + Leave out empty alt attributes on links.
3210 + Deduplicate image mime type code.
3211 + Make `<p>` optional in `<td>` and `<th>` (#4178).
3212 + Self closing tags for empty xref (#4187).
3213 + Improve support for code language.
3215 * Custom writer:
3217 + Use init file to setup Lua interpreter (Albert Krewinkel).
3218 The same init file (`data/init`) that is used to setup the Lua
3219 interpreter for Lua filters is also used to setup the interpreter of
3220 custom writers.lua.
3221 + Define instances for newtype wrapper (Albert Krewinkel). The custom
3222 writer used its own `ToLuaStack` instance definitions, which made
3223 it difficult to share code with Lua filters, as this could result
3224 in conflicting instances. A `Stringify` wrapper is introduced to
3225 avoid this problem.
3226 + Added tests for custom writer.
3227 + Fixed definition lists and tables in `data/sample.lua`.
3229 * Fixed regression: when target is PDF, writer extensions were being
3230 ignored. So, for example, `pandoc -t latex-smart -o file.pdf`
3231 did not work properly.
3233 * Lua modules (Albert Krewinkel):
3235 + Add `pandoc.utils` module, to hold utility functions.
3236 + Create a Haskell module Text.Pandoc.Lua.Module.Pandoc to
3237 define the `pandoc` lua module.
3238 + Make a Haskell module for each Lua module. Move definitions for the
3239 `pandoc.mediabag` modules to a separate Haskell module.
3240 + Move `sha1` from the main `pandoc` module to `pandoc.utils`.
3241 + Add function `pandoc.utils.hierarchicalize` (convert list of
3242 Pandoc blocks into (hierarchical) list of Elements).
3243 + Add function `pandoc.utils.normalize_date` (parses a date and
3244 converts it (if possible) to "YYYY-MM-DD" format).
3245 + Add function `pandoc.utils.to_roman_numeral` (allows conversion
3246 of numbers below 4000 into roman numerals).
3247 + Add function `pandoc.utils.stringify` (converts any AST element
3248 to a string with formatting removed).
3249 + `data/init.lua`: load `pandoc.utils` by default
3250 + Turn pipe, read into full Haskell functions. The `pipe` and `read`
3251 utility functions are converted from hybrid lua/haskell functions
3252 into full Haskell functions. This avoids the need for intermediate
3253 `_pipe`/`_read` helper functions, which have dropped.
3254 + pandoc.lua: re-add missing MetaMap function. This was a bug
3255 introduced in version 2.0.4.
3257 * Text.Pandoc.Class: Add `insertInFileTree` [API change]. This gives
3258 a pure way to insert an ersatz file into a `FileTree`. In addition, we
3259 normalize paths both on insertion and on lookup.
3261 * Text.Pandoc.Shared: export `blocksToInlines'` (API change, Maura Bieg).
3263 * Text.Pandoc.MIME: Add opus to MIME type table as audio/ogg (#4198).
3265 * Text.Pandoc.Extensions: Alphabetical order constructors for
3266 `Extension`. This makes them appear in order in `--list-extensions`.
3268 * Allow lenient decoding of latex error logs, which are not always
3269 properly UTF8-encoded (#4200).
3271 * Update latex template to work with recent versions of beamer.
3272 The old template produced numbered sections with some recent
3273 versions of beamer. Thanks to Thomas Hodgson.
3275 * Updated reference.docx (#4175). Instead of just "Hello, world", the
3276 document now contains exemplars of most of the styles that have an
3277 effect on pandoc documents. This makes it easier to see the effect
3278 of style changes.
3280 * Removed `default.theme` data file (#4096). It is no longer needed now
3281 that we have `--print-highlight-style`.
3283 * Added `stack.lts9.yaml` for building with lts 9 and ghc 8.0.2.
3284 We still need this for the alpine static linux build, since
3285 we don't have ghc 8.2.2 for that yet.
3287 * Removed `stack.pkg.yaml`. We only really need `stack.yaml`; we
3288 can put flag settings for pandoc-citeproc there.
3290 * Makefile: Add 'trypandoc' and 'pandoc-templates' targets to
3291 make releases easier.
3293 * MANUAL.txt:
3295 + Add note on what formats have `+smart` by default.
3296 + Use native syntax for custom-style (#4174, Mauro Bieg).
3297 + Introduce dedicated Extensions section, since some extensions
3298 affect formats other than markdown (Mauro Bieg, #4204).
3299 + Clarify default html output for `--section-divs` (Richard Edwards).
3301 * filters.md: say that Text.Pandoc.JSON comes form pandoc-types.
3302 Closes jgm/pandoc-website#16.
3304 * epub.md: Delete removed `-S` option from command (#4151, Georger Araújo).
3306pandoc (2.0.5)
3308 * Fix a bug in 2.0.4, whereby pandoc could not read the theme files
3309 generated with `--print-highlight-style` (#4133). Improve JSON
3310 serialization of styles.
3312 * Fix CSS issues involving line numbers (#4128).
3313 Highlighted code blocks are now enclosed in a div with class `sourceCode`.
3314 Highlighting CSS no longer sets a generic color for pre and code; we only
3315 set these for class `sourceCode`.
3317 * `--pdf-engine-opt`: fix bug where option order was reversed (#4137).
3319 * Add PowerPoint (pptx) writer (Jesse Rosenthal).
3320 It works following the standard Pandoc conventions for making other
3321 sorts of slides. Caveats:
3323 + Syntax highlighting is not yet implemented. (This is difficult
3324 because there are no character classes in Powerpoint.)
3325 + Footnotes and Definition lists are not yet implemented. (Notes will
3326 usually take the form of a final slide.
3327 + Image placement and auto-resizing has a few glitches.
3328 + Reference powerpoint files don't work dependably from the command
3329 line. This will be implemented, but at the moment users are advised
3330 to change themes from within Powerpoint.
3332 * Create shared Text.Pandoc.Writers.OOXML module (Jesse Rosenthal).
3333 This is for functions used by both Powerpoint and Docx writers.
3335 * Add default pptx data for Powerpoint writer (Jesse Rosenthal).
3337 * Add `empty_paragraphs` extension.
3339 + Deprecate `--strip-empty-paragraphs` option. Instead we now
3340 use an `empty_paragraphs` extension that can be enabled on
3341 the reader or writer. By default, disabled.
3342 + Add `Ext_empty_paragraphs` constructor to `Extension`.
3343 + Revert "Docx reader: don't strip out empty paragraphs."
3344 This reverts commit d6c58eb836f033a48955796de4d9ffb3b30e297b.
3345 + Implement `empty_paragraphs` extension in docx reader and writer,
3346 opendocument writer, HTML reader and writer.
3347 + Add tests for `empty_paragraphs` extension.
3349 * Markdown reader:
3351 + Don't parse native div as table caption (#4119).
3352 + Improved computation of column widths in pipe tables.
3353 Pipe tables with lines longer than the text width (as set
3354 by `--columns`) are now scaled to text width, with the relative
3355 widths of columns determined by the ratios between the
3356 header lines. Previously we computed column widths using
3357 the ratio of header line lengths to column width, so that
3358 tables with narrow header lines were extremely thin, which
3359 was very rarely the desired result.
3361 * LaTeX reader: fix `\` before newline (#4134). This should be a space,
3362 as long as it's not followed by a blank line. This has been fixed at the
3363 tokenizer level.
3365 * Muse reader (Alexander Krotov):
3367 + Add test for `#disable-tables` directive in Emacs mode.
3368 + Don't allow emphasis to be preceded by letter.
3369 + Add underline support in Emacs Muse mode..
3370 + Support multiline directives in Amusewiki mode
3372 * Man writer: omit internal links (#4136). That is, just print the link
3373 text without the URL.
3375 * Markdown reader: accept processing instructions as raw HTML (#4125).
3377 * Lua filters (Albert Krewinkel):
3379 + Use script to initialize the interpreter. The file `init.lua` is
3380 used to initialize the Lua interpreter which is used in Lua filters.
3381 This gives users the option to require libraries which they want to
3382 use in all of their filters, and to extend default modules.
3383 + Fix package loading for Lua 5.1. The list of package searchers is
3384 named `package.loaders` in Lua 5.1 and LuaJIT, and `package.searchers`
3385 in Lua 5.2 and later.
3386 + Refactor lua module handling. The integration with Lua's package/module
3387 system is improved: A pandoc-specific package searcher is prepended to
3388 the searchers in `package.searchers`. The modules `pandoc` and
3389 `pandoc.mediabag` can now be loaded via `require`.
3390 + Bump lower bound of hslua. The release hslua 0.9.3 contains a new
3391 function which makes using Haskell functions as package loaders much
3392 easier.
3394 * reveal.js template: add title-slide identifier to title slide (#4120).
3395 This allows it to be styled more easily.
3397 * LaTeX template: Added support for `pagestyle` variable (#4135,
3398 Thomas Hodgson)
3400 * Add `-threaded` to ghc-options for executable (#4130, fixes a build
3401 error on linux).
3404pandoc (2.0.4)
3406 * Add `--print-highlight-style` option. This generates a JSON version
3407 of a highlighting style, which can be saved as a `.theme` file, modified,
3408 and used with `--highlight-style` (#4106, #4096).
3410 * Add `--strip-empty-paragraphs` option. This works for any input format.
3411 It is primarily intended for use with docx and odt documents where
3412 empty paragraphs have been used for inter-paragraph spaces.
3414 * Support `--webtex` for `gfm` output.
3416 * Recognize `.muse` file extension.
3418 * Support beamer `\alert` in LaTeX reader. Closes #4091.
3420 * Docx reader: don't strip out empty paragraphs (#2252).
3421 Users who have a conversion pipeline from docx may want to consider adding
3422 `--strip-empty-paragraphs` to the command line.
3424 * Org reader (Albert Krewinkel): Allow empty list items (#4090).
3426 * Muse reader (Alexander Krotov):
3428 + Parse markup in definition list terms.
3429 + Allow definition to end with EOF.
3430 + Make code blocks round trip.
3431 + Drop common space prefix from list items.
3432 + Add partial round trip test.
3433 + Don't interpret XML entities.
3434 + Remove `nested`.
3435 + Parse `~~` as non-breaking space in Emacs mode.
3436 + Correctly remove indentation from notes. Exactly one space is
3437 required and considered to be part of the marker.
3438 + Allow list items to be empty.
3439 + Add ordered list test.
3440 + Add more multiline definition tests.
3441 + Don't allow blockquotes within lists.
3442 + Fix reading of multiline definitions.
3443 + Add inline `<literal>` support.
3444 + Concatenate inlines of the same type
3446 * Docx writer: allow empty paragraphs (#2252).
3448 * CommonMark/gfm writer:
3450 + Use raw html for native divs/spans (#4113). This allows a pandoc
3451 markdown native div or span to be rendered in gfm using raw html tags.
3452 + Implement `raw_html` and `raw_tex` extensions. Note that `raw_html`
3453 is enabled by default for `gfm`, while `raw_tex` is disabled by default.
3455 * Muse writer (Alexander Krotov):
3457 + Test that inline math conversion result is normalized.
3458 Without normalization this test produced
3459 `<em>a</em><em>b</em><em>c</em>`.
3460 + Improve inline list normalization and move to writer.
3461 + Escape hash symbol.
3462 + Escape `----` to avoid accidental horizontal rules.
3463 + Escape only `</code>` inside code tag.
3464 + Additional `<verbatim>` is not needed as `<code>` is verbatim already.
3466 * LaTeX writer:
3468 + Allow specifying just width or height for image size.
3469 Previously both needed to be specified (unless the image was
3470 being resized to be smaller than its original size).
3471 If height but not width is specified, we now set width to
3472 textwidth. If width but not height is specified, we now set
3473 height to textheight. Since we have `keepaspectratio`, this
3474 yields the desired result.
3475 + Escape `~` and `_` in code with `--listings` (#4111).
3477 * HTML writer: export `tagWithAttributes`. This is a helper allowing
3478 other writers to create single HTML tags.
3480 * Let papersizes `a0`, `a1`, `a2`, ... be case-insensitive by
3481 converting the case as needed in LaTeX and ConTeXt writers.
3483 * Change `fixDisplayMath` from `Text.Pandoc.Writers.Shared`
3484 so that it no longer produces empty `Para`'s as an artifact.
3486 * `Text.Pandoc.Shared.blocksToInlines`: rewrote using builder.
3487 This gives us automatic normalization, so we don't get
3488 for example two consecutive Spaces.
3490 * Include default CSS for 'underline' class in HTML-based templates.
3492 * revealjs template: add `tex2jax` configuration for the
3493 math plugin. With the next release of reveal.js, this will
3494 fix the problem of `$`s outside of math contexts being
3495 interpreted as math delimiters (#4027).
3497 * `pandoc.lua` module for use in lua filters (Albert Krewinkel):
3499 + Add basic lua List module (#4099, #4081). The List module is
3500 automatically loaded, but not assigned to a global variable. It can be
3501 included in filters by calling `List = require 'List'`. Lists of blocks,
3502 lists of inlines, and lists of classes are now given `List` as a metatable,
3503 making working with them more convenient. E.g., it is now possible to
3504 concatenate lists of inlines using Lua's concatenation operator `..`
3505 (requires at least one of the operants to have `List` as a metatable):
3507 function Emph (emph)
3508 local s = {pandoc.Space(), pandoc.Str 'emphasized'}
3509 return pandoc.Span(emph.content .. s)
3510 end
3512 The `List` metatable is assigned to the tables which get passed to
3513 the constructors `MetaBlocks`, `MetaInline`, and `MetaList`. This
3514 enables the use of the resulting objects as lists.
3515 + `Lua/StackInstances`: push Pandoc and Meta via constructor.
3516 Pandoc and Meta elements are now pushed by calling the respective
3517 constructor functions of the pandoc Lua module. This makes serialization
3518 consistent with the way blocks and inlines are pushed to lua and allows
3519 to use List methods with the `blocks` value.
3520 + Add documentation for pandoc.List in `lua-filters.md`.
3522 * Use latest tagsoup. This fixes a bug in parsing HTML tags with
3523 `&` (but not a valid entity) following them (#4094, #4088).
3525 * Use skylighting 0.4.4.1, fixing the color of unmarked code text
3526 when `numberLines` is used (#4103).
3528 * Make `normalizeDate` more forgiving (Mauro Bieg, #4101), not
3529 requiring a leading 0 on single-digit days.
3531 * Fix `--help` output for `--highlight-style` to include `FILE` (Mauro
3532 Bieg, #4095).
3534 * Clearer deprecation warning for `--latexmathml, --asciimathml, -m`.
3535 Previously we only mentioned `--latexmathml`, even if `-m` was
3536 used.
3538 * Changelog: fix description of lua filters in 2.0 release
3539 (Albert Krewinkel). Lua filters were initially run *after* conventional
3540 (JSON) filters. However, this was changed later to make it easier to deal
3541 with files in the mediabag. The changelog is updated to describe that
3542 feature of the 2.0 release correctly.
3544 * Change Generic JSON instances to TemplateHaskell (Jasper Van der Jeugt,
3545 #4085). This reduces compile time and memory usage significantly.
3547 * `lua-filters.md`: Added tikz filter example.
3549 * Create alternative zip file for macOS binaries.
3551 * Create alternative zip file for Windows binaries.
3553 * Update INSTALL.md since we now provide zips for binaries.
3555 * Relax `http-types` dependency (Justus Sagemüller, #4084).
3557 * Add `epub.md`, `getting-started.md` to docs. These used to live in
3558 the website repo.
3560 * Add `packages` target to Makefile.
3562 * Bump bounds for binary, http-types, tasty-hunit
3564pandoc (2.0.3)
3566 * Lua filters: preload text module (Albert Krewinkel, #4077).
3567 The `text` module is preloaded in lua. The module contains some UTF-8
3568 aware string functions, implemented in Haskell. The module is loaded on
3569 request only, e.g.:
3571 text = require 'text'
3572 function Str (s)
3573 s.text = text.upper(s.text)
3574 return s
3575 end
3577 * Allow table-like access to attributes in lua filters (Albert Krewinkel,
3578 #4071). Attribute lists are represented as associative lists in Lua. Pure
3579 associative lists are awkward to work with. A metatable is attached to
3580 attribute lists, allowing to access and use the associative list as if
3581 the attributes were stored in as normal key-value pair in table.
3582 Note that this changes the way `pairs` works on attribute lists. Instead
3583 of producing integer keys and two-element tables, the resulting iterator
3584 function now returns the key and value of those pairs. Use `ipairs` to
3585 get the old behavior. Warning: the new iteration mechanism only works if
3586 pandoc has been compiled with Lua 5.2 or later (current default: 5.3).
3588 * Text.Pandoc.Parsing.uri: allow `&` and `=` as word characters (#4068).
3589 This fixes a bug where pandoc would stop parsing a URI with an
3590 empty attribute: for example, `&a=&b=` wolud stop at `a`.
3591 (The uri parser tries to guess which punctuation characters
3592 are part of the URI and which might be punctuation after it.)
3594 * Introduce `HasSyntaxExtensions` typeclass (Alexander Krotov, #4074).
3596 + Added new `HasSyntaxExtensions` typeclass for `ReaderOptions` and
3597 `WriterOptions`.
3598 + Reimplemented `isEnabled` function from `Options.hs` to accept both
3599 `ReaderOptions` and `WriterOptions`.
3600 + Replaced `enabled` from `CommonMark.hs` with new `isEnabled`.
3602 * Add `amuse` extension (Alexander Krotov) to enable Amuse wiki
3603 behavior for `muse`. New `Ext_amuse` constructor for
3604 `Extension`. Note: this is switched on by default; for
3605 Emacs behavior, use `muse-amuse`.
3607 * Muse reader (Alexander Krotov):
3609 + Count only one space as part of list item marker.
3610 + Produce SoftBreaks on newlines. Now wrapping can be preserved
3611 with `--wrap=preserve`.
3612 + Add Text::Amuse footnote extensions. Footnote end is indicated by
3613 indentation, so footnotes can be placed anywhere in the text,
3614 not just at the end of it.
3615 + Accept Emacs Muse definition lists when `-amuse`.
3616 Emacs Muse does not require indentation.
3618 * HTML reader:
3620 + Ensure we don't produce level 0 headers (#4076), even for chapter
3621 sections in epubs. This causes problems because writers aren't set
3622 up to expect these.
3623 + Allow spaces after `\(` and before `\)` with `tex_math_single_backslash`.
3624 Previously `\( \frac{1}{a} < \frac{1}{b} \)` was not parsed as math in
3625 `markdown` or `html` `+tex_math_single_backslash`.
3626 + Parse div with class `line-block` as LineBlock.
3627 + Don't fail with block-level content in figcaption (Mauro Bieg, #4183).
3629 * MANUAL: clarify that math extensions work with HTML.
3630 Clarify that `tex_math_dollars` and `tex_math_single_backslash`
3631 will work with HTML as well as Markdown.
3633 * Creole reader: Fix performance issue for longer lists (Sascha Wilde,
3634 #4067).
3636 * RST reader: better support for 'container' directive (#4066).
3637 Create a div, incorporate name attribute and classes.
3639 * LaTeX reader:
3641 + Support column specs like `*{2}{r}` (#4056). This is equivalent to
3642 `rr`. We now expand it like a macro.
3643 + Allow optional args for parbox (#4056).
3644 + Allow optional arguments on `\footnote` (#4062).
3646 * EPUB writer: Fixed path for cover image (#4069). It was previously
3647 `media/media/imagename`, and should have been `media/imagename`.
3649 * Markdown writer: fix bug with doubled footnotes in grid tables
3650 (#4061).
3652 * LaTeX template: include natbib/biblatex after polyglossia (#4073).
3653 Otherwise we seem to get an error; biblatex wants polyglossia
3654 language to be defined.
3656 * Added examples to lua filters documentation.
3659pandoc (2.0.2)
3661 * Deprecated ancient HTML math methods: `--latexmathml`, `--gladtex`,
3662 `--mimetex`, `--jsmath`.
3664 * Fixed URIs in `data/jats.csl`. They were being rendered twice,
3665 leading to invalid XML in default JATS output with pandoc-citeproc.
3667 * `lua-filters.md`: use real-world man page filter as example.
3669 * Add lua filter functions `walk_inline` and `walk_block`
3670 in the pandoc module, to apply filters inside particular
3671 inline and block elements.
3673 * Refactored some code from `Text.Pandoc.Lua.PandocModule`
3674 into new internal module `Text.Pandoc.Lua.Filter`.
3676 * Markdown reader:
3678 + Allow fenced code blocks to be indented 1-3 spaces (#4011).
3679 This brings our handling of them into alignment with CommonMark's.
3680 + Fix YAML metadata with "chomp" (`|-`). Previously if a
3681 YAML block under `|-` contained a blank line, pandoc would
3682 not parse it as metadata.
3684 * Removed `etc.` from abbreviations file. Often `etc.` ends a
3685 sentence, and we want the period to be treated as a
3686 sentence-ending period.
3688 * Fix regression with `--metadata` (#4054). Values specified with
3689 `--metadata` should replace a metadata value set in the document
3690 itself, rather than creating a list including a new value.
3692 * EPUB writer:
3694 + Fix EPUB OCF structure. #3720 had been improperly implemented.
3695 + Fix modified paths for raw HTML tags (src, poster, etc.)
3696 (#4050, #4055). This had not been updated for the new EPUB
3697 container layout, with a separate text/ subdirectory.
3698 + Fix image paths with empty `--epub-subdirectory`.
3700 * Miscellaneous code cleanup (Alexander Krotov).
3702 * Use pandoc-types 1.17.3, which adds `Walkable` instances
3703 for `[Block] Block` and `[Inline] Inline`.
3705 * Remove obsolete `stack.full.yaml` (#4052).
3707 * Change to using pandoc-citeproc 0.12.1 in binary packages.
3709 * Consolidate math output method documentation (#4049, Mauro Bieg).
3711 * `MANUAL.txt`: fix header level of "Extension: emoji" (Albert Krewinkel).
3713 * Use lua filter to generate man page from `MANUAL.txt`, replacing old
3714 Haskell filters. This is easier and faster.
3716 * Improved `INSTALL.md`.
3718 * Update commands to extract deb archive on Linux (#4043, Salim B).
3721pandoc (2.0.1.1)
3723 * Improved fix to #3989 (parsing of HTML tags containing
3724 `>` in an attribute or comment). The previous fix (in 2.0.1) only
3725 worked in certain cases.
3727 * FB2 writer (Alexander Krotov):
3729 + Add `unrecognised` genre to `<title-info>`
3730 (Alexander Krotov). XML schema requires at least one genre.
3731 + Remove `<annotation>` from `<body>`.
3733 * CommonMark writer: fix strikethrough for `gfm` (#4038).
3735 * Use texmath 0.10, which adds support for a wider range of
3736 symbols and fixes default column alignments in MathML
3737 and OMML.
3739 * Highlighting fixes, using skylighting 0.4.3.2:
3741 + Fix invalid CSS.
3742 + Support `lineAnchors` (or `line-anchors`) in HTML code blocks.
3743 + Ensure that code lines don't get duplicate identifiers (#4031).
3744 The line identifiers are built using the code block's identifier
3745 as a prefix. If the code block has null identifier, we use
3746 `cb1`, `cb2`, etc.
3748 * Added a few abbreviations to `data/abbreviations`,
3749 and sorted the list (#3984, Wandmalfarbe).
3751 * Improved support for columns in HTML writer (#4028).
3753 + Remove `width` attribute from the `div`.
3754 + Remove space between `<div class="column">` elements,
3755 since this prevents columns whose widths sum to 100%
3756 (the space takes up space).
3757 + Move as much as possible of the CSS to the template.
3758 + Ensure that all the HTML-based templates (including epub)
3759 contain the CSS for columns.
3760 + Columns default to 50% width unless they are given a width
3761 attribute. So if you want two equal-width columns, you
3762 can use a div with class `column` and no `width` attribute.
3764 * SelfContained: use `base64` for css links with media attribute (#4026).
3765 This fixes `--self-contained` with S5.
3767 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
3769 * Issue INFO, not WARNING, when a .sty file cannot be
3770 read in LaTeX reader. It is normally not an issue requiring
3771 a fix from the user if .sty files are not found.
3773 * INSTALL.md: MacOS instructions needed xar -f (adam234).
3775 * MANUAL.txt:
3777 + Clarify that --setext-headers doesn't affect gfm output (#4035).
3778 + Clarify what is needed to open and close a div in `fenced_divs`
3779 (#4039, Tristano Ajmone).
3780 + Removed reference to `default.beamer` in docs (#4024).
3781 Also added mention of other templates affecting PDF output
3782 with different settings.
3784pandoc (2.0.1)
3786 * Fixed regression in parsing of HTML comments in markdown and other
3787 non-HTML formats (`Text.Pandoc.Readers.HTML.htmlTag`) (#4019).
3788 The parser stopped at the first `>` character, even if it wasn't
3789 the end of the comment.
3791 * Creole reader (Sascha Wilde):
3793 + Fix some minor typos and formatting.
3794 + Add additional test on nowiki-block after para.
3795 + Fix lists with trailing white space.
3797 * LaTeX reader: handle `%` comment right after command.
3798 For example, `\emph%`.
3800 * Markdown reader: make sure fenced div closers work in lists.
3801 Previously the following failed:
3803 ::: {.class}
3804 1. one
3805 2. two
3806 :::
3808 and you needed a blank line before the closing `:::`.
3810 * Make `fenced_divs` affect the Markdown writer. If `fenced_divs` is
3811 enabled, Divs will be rendered as fenced divs.
3813 * LaTeX/Beamer writer: support "blocks" inside columns and other Divs
3814 (#4016).
3816 * HTML Writer: consistently use dashed class-names (Mauro Bieg, #3556).
3817 Note: this change may require some changes in CSS rules.
3818 `footnoteRef` has become `footnote-ref`, `titleslide` has
3819 become `title-slide`, and `footnoteBack` has become `footnote-back`.
3821 * JATS writer: Properly pass through author metadata (#4020).
3823 * FB2 writer (Alexander Krotov):
3825 + Write blocks outside of `<p>` in definitions.
3826 + Make bullet lists consistent with ordered lists, repeating
3827 the marker for the outer list rather than indenting sublists,
3828 since indentation does not work in readers.
3829 + Add new style FB2 tests.
3831 * `Text.Pandoc.ImageSize`: Add `Millimeter` constructor to `Dimension`
3832 (#4012) [API change]. Now sizes given in 'mm' are no longer converted
3833 to 'cm'.
3835 * Revise documentation of small caps syntax (Andrew Dunning, #4013).
3837 * Fix broken reference links in manual (Andrew Dunning, #4014)
3839 * Fixed example of slide columns structure in changelog (#4015).
3840 Also documented this feature in MANUAL.txt.
3843pandoc (2.0.0.1)
3845 * EPUB writer:
3847 + Fixed filepaths for nonstandard epub-subdirectory values.
3848 + Ensure that epub2 is recognized as a non-text format,
3849 so that a template is used.
3850 + Don't include "prefix" attribute for ibooks for epub2.
3851 It doesn't validate.
3852 + Fix stylesheet paths; previously we had an incorrect
3853 stylesheet path for the cover page and nav page.
3855 * LaTeX reader:
3857 + Insert space when needed in macro expansion (#4007).
3858 Sometimes we need to insert a space after a control sequence
3859 to prevent it merging with a following letter.
3860 + Allow unbraced arguments for macros (#4007).
3861 + Allow body of macro definition to be unbraced (#4007).
3863 * Linux package build: ensure that pandoc-citeproc is statically linked.
3865 * trypandoc: add native, ms.
3867pandoc (2.0)
3869 [new features]
3871 * New output format `ms` (groff ms). Complete support, including
3872 tables, math, syntax highlighting, and PDF bookmarks. The writer uses
3873 texmath's new eqn writer to convert math to eqn format, so a ms file
3874 produced with this writer should be processed with `groff -ms -e` if
3875 it contains math.
3877 * New output format `jats` (Journal Article Tag Suite). This is an XML
3878 format used in archiving and publishing articles. Note that a
3879 URI-encoded CSL stylesheet (`data/jats.csl`) is added automatically
3880 unless a stylesheet is specified using `--css`.
3882 * New output format `gfm` (GitHub-flavored CommonMark) (#3841).
3883 This uses bindings to GitHub's fork of cmark, so it should parse
3884 gfm exactly as GitHub does (excepting certain postprocessing
3885 steps, involving notifications, emojis, etc.). `markdown_github`
3886 has been deprecated in favor of `gfm`.
3888 * New output format `muse` (Emacs Muse) (Alexander Krotov, #3489).
3890 * New input format `gfm` (GitHub-flavored CommonMark) (#3841).
3891 This uses bindings to GitHub's fork of cmark. `markdown_github`
3892 has been deprecated in favor of `gfm`.
3894 * New input format `muse` (Emacs Muse) reader (Alexander Krotov, #3620).
3896 * New input format `tikiwiki` (TikiWiki markup) (rlpowell, #3800).
3898 * New input format `vimwiki` (Vimwiki markup) (Yuchen Pei, #3705).
3899 Note that there is a new data file, `data/vimwiki.css`, which can
3900 be used to display the HTML produced by this reader and
3901 pandoc's HTML writer in the style of vimwiki's own HTML
3902 export.
3904 * New input format `creole` (Creole 1.0) (#3994, Sascha Wilde).
3906 * New syntax for Divs, with `fenced_divs` extension enabled by
3907 default (#168). This gives an attractive, plain-text way to create
3908 containers for block-level content.
3910 * Added new syntax for including raw content in any output format,
3911 enabled by the `raw_attribute` extension (which is on by default
3912 for `markdown` and `multimarkdown`). The syntax is the same as
3913 for fenced code blocks or code inlines, only with `{=FORMAT}` for
3914 attributes, where `FORMAT` is the name of the output format
3915 (e.g., `ms`, `html`).
3917 * Implement multicolumn support for slide formats (#1710).
3918 The structure expected is:
3920 :::::::::::::: {.columns}
3921 ::: {.column width="40%"}
3922 contents...
3923 :::
3924 ::: {.column width="60%"}
3925 contents...
3926 :::
3927 ::::::::::::::
3929 Support has been added for beamer and all HTML slide formats.
3931 * Allows line comments in templates, beginning with `$--` (#3806).
3932 (Requires doctemplates 0.2.1.)
3934 * Add `--eol=crlf|lf|native` flag and writer option to control line endings
3935 (Stefan Dresselhaus, #3663, #2097).
3937 * Add `--log` option to save log messages in JSON format to a file (#3392).
3939 * Add `--request-header` option, to set request headers when pandoc
3940 makes HTTP requests to fetch external resources. For example:
3941 `--request-header User-Agent:blah`.
3943 * Added lua filters (Albert Krewinkel, #3514). The new `--lua-filter`
3944 option works like `--filter` but takes pathnames of special lua filters
3945 and uses the lua interpreter baked into pandoc, so that no external
3946 interpreter is needed. Note that lua filters are all applied before
3947 regular filters, regardless of their position on the command line.
3948 For documentation of lua filters, see `doc/lua-filters.md`.
3950 * Set `PANDOC_READER_OPTIONS` in environment where filters are run.
3951 This contains a JSON representation of `ReaderOptions`, so filters
3952 can access it.
3954 * Support creation of pdf via groff `ms` and pdfroff.
3955 `pandoc -t ms -o output.pdf input.txt`.
3957 * Support for PDF generation via HTML and `weasyprint` or `prince`
3958 (Mauro Bieg, #3909). `pandoc -t html5 -o output.pdf --pdf-engine=prince`.
3960 * Added `--epub-subdirectory` option (#3720). This specifies the
3961 subdirectory in the OCF container that holds the EPUB specific content.
3962 We now put all EPUB related content in an `EPUB/` subdirectory by default
3963 (later this will be configurable).
3965 ```
3966 mimetype
3967 META-INF/
3968 com.apple.ibooks.display-options.xml
3969 container.xml
3970 EPUB/ <<--configurable-->>
3971 fonts/ <<--static-->>
3972 font.otf
3973 media/ <<--static-->>
3974 cover.jpg
3975 fig1.jpg
3976 styles/ <<--static-->>
3977 stylesheet.css
3978 content.opf
3979 toc.ncx
3980 text/ <<--static-->>
3981 ch001.xhtml
3982 ```
3984 * Added `--resource-path=SEARCHPATH` command line option (#852).
3985 SEARCHPATH is separated by the usual character, depending on OS
3986 (: on unix, ; on windows). Default resource path is just working
3987 directory. However, the working directory must be explicitly
3988 specified if the `--resource-path` option is used.
3990 * Added `--abbreviations=FILE` option for custom abbreviations file
3991 (#256). Default abbreviations file (`data/abbreviations`) contains
3992 a list of strings that will be recognized by pandoc's
3993 Markdown parser as abbreviations. (A nonbreaking space will
3994 be inserted after the period, preventing a sentence space in
3995 formats like LaTeX.) Users can override the default by putting a file
3996 abbreviations in their user data directory (`~/.pandoc` on *nix).
3998 * Allow a theme file as argument to `--highlight-style`.
3999 Also include a sample, `default.theme`, in `data/`.
4001 * Allow `--syntax-definition` option for dynamic loading of syntax
4002 highlighting definitions (#3334).
4004 * Lists in `markdown` by default now use the CommonMark variable
4005 nesting rules (#3511). The indentation required for a block-level
4006 item to be included in a list item is no longer fixed, but is
4007 determined by the first line of the list item. To be included in
4008 the list item, a block must be indented to the level of the first
4009 non-space content after the list marker. Exception: if are 5 or more
4010 spaces after the list marker, then the content is interpreted as an
4011 indented code block, and continuation paragraphs must be indented
4012 two spaces beyond the end of the list marker. See the CommonMark
4013 spec for more details and examples.
4015 Documents that adhere to the four-space rule should, in most cases,
4016 be parsed the same way by the new rules. Here are some examples
4017 of texts that will be parsed differently:
4019 - a
4020 - b
4022 will be parsed as a list item with a sublist; under the four-space
4023 rule, it would be a list with two items.
4025 - a
4027 code
4029 Here we have an indented code block under the list item, even though it
4030 is only indented six spaces from the margin, because it is four spaces
4031 past the point where a continuation paragraph could begin. With the
4032 four-space rule, this would be a regular paragraph rather than a code
4033 block.
4035 - a
4037 code
4039 Here the code block will start with two spaces, whereas under
4040 the four-space rule, it would start with `code`. With the four-space
4041 rule, indented code under a list item always must be indented eight
4042 spaces from the margin, while the new rules require only that it
4043 be indented four spaces from the beginning of the first non-space
4044 text after the list marker (here, `a`).
4046 This change was motivated by a slew of bug reports from people
4047 who expected lists to work differently (#3125, #2367, #2575, #2210,
4048 #1990, #1137, #744, #172, #137, #128) and by the growing prevalance
4049 of CommonMark (now used by GitHub, for example). Those who
4050 prefer the old behavior can use `-f markdown+four_space_rule`.
4052 * Added `four_space_rule` extension. This triggers the old pandoc
4053 parsing rule for content nested under list items (the "four space
4054 rule").
4056 * Added `spaced_reference_links` extension (#2602). It allows whitespace
4057 between the two parts of a reference link: e.g.
4059 [a] [b]
4061 [b]: url
4063 This was previously enabled by default; it is now forbidden by default.
4065 * Add `space_in_atx_header` extension (#3512). This is enabled by default
4066 in pandoc and GitHub markdown but not the other flavors.
4067 This requires a space between the opening #'s and the header
4068 text in ATX headers (as CommonMark does but many other implementations
4069 do not). This is desirable to avoid falsely capturing things like
4071 #hashtag
4073 or
4075 #5
4077 * Add `sourcefile` and `outputfile` template variables (Roland Hieber,
4078 #3431).
4080 * Allow ibooks-specific metadata in epubs (#2693). You can now have
4081 the following fields in your YAML metadata, and it will be treated
4082 appropriately in the generated EPUB:
4084 ```
4085 ibooks:
4086 version: 1.3.4
4087 specified-fonts: false
4088 ipad-orientation-lock: portrait-only
4089 iphone-orientation-lock: landscape-only
4090 binding: true
4091 scroll-axis: vertical
4092 ```
4095 [behavior changes]
4097 * Reader functions no longer presuppose that CRs have been
4098 stripped from the input. (They strip CRs themselves, before
4099 parsing, to simplify the parsers.)
4101 * Added support for translations (localization) (#3559).
4102 Currently this only affects the LaTeX reader, for things
4103 like `\figurename`. Translation data files for 46 languages
4104 can be found in `data/translations`.
4106 * Make `--ascii` work with DocBook output too.
4108 * Rename `--latex-engine` to `--pdf-engine`,
4109 and `--latex-engine-opt` to `--pdf-engine-opt`.
4111 * Removed `--parse-raw` and `readerParseRaw`. These were confusing.
4112 Now we rely on the `+raw_tex` or `+raw_html` extension with latex or html
4113 input. Thus, instead of `--parse-raw -f latex` we use `-f latex+raw_tex`,
4114 and instead of `--parse-raw -f html` we use `-f html+raw_html`.
4116 * With `--filter` R filters are now recognized, even if they are
4117 not executable (#3940, #3941, Andrie de Vries).
4119 * Support SVG in PDF output, converting with `rsvg2pdf` (#1793).
4121 * Make epub an alias for epub3, not epub2.
4123 * Removed `--epub-stylesheet`; use `--css` instead (#3472, #847).
4124 Multiple stylesheets may be used. Stylesheets will be taken both from
4125 `--css` and from the `stylesheet` metadata field (which can contain
4126 either a file path or a list of them).
4128 * `--mathml` and MathML in HTMLMathMethod no longer take an argument.
4129 The argument was for a bridge JavaScript that used to be necessary
4130 in 2004. We have removed the script already.
4132 * `--katex` improvements. The latest version is used, and the
4133 autoload script is loaded by default.
4135 * Change MathJax CDN default since old one is shutting down (#3544).
4136 Note: The new URL requires a version number, which we'll have
4137 to update manually in subsequent pandoc releases in order to
4138 take advantage of mathjax improvements.
4140 * `--self-contained`: don't incorporate elements with `data-external="1"`
4141 (#2656). You can leave an external link as it is by adding the attribute
4142 data-external="1" to the element. Pandoc will then not try to
4143 incorporate its content when `--self-contained` is used. This is
4144 similar to a feature already supported by the EPUB writer.
4146 * Allow `--extract-media` to work with non-binary input formats
4147 (#1583, #2289). If `--extract-media` is supplied with a non-binary
4148 input format, pandoc will attempt to extract the contents of all
4149 linked images, whether in local files, data: uris, or external uris.
4150 They will be named based on the sha1 hash of the contents.
4152 * Make `papersize: a4` work regardless of the case of `a4`.
4153 It is converted to `a4` in LaTeX and `A4` in ConTeXt.
4155 * Make `east_asian_line_breaks` affect all readers/writers (#3703).
4157 * Underlined elements are now treated consistently by readers
4158 (#2270, hftf); they are always put in a Span with class `underline`.
4159 This allows the user to treat them differently from other emphasis,
4160 using a filter. Docx, Org, Textile, Txt2Tags, and HTML readers
4161 have been changed.
4163 * Improved behavior of `auto_identifiers` when there are explicit ids
4164 (#1745). Previously only autogenerated ids were added to the list
4165 of header identifiers in state, so explicit ids weren't taken
4166 into account when generating unique identifiers. Duplicated
4167 identifiers could result. This simple fix ensures that explicitly given
4168 identifiers are also taken into account.
4170 * Use `table-of-contents` for contents of toc, make `toc` a boolean
4171 (#2872). Changed markdown, rtf, and HTML-based templates accordingly.
4172 This allows you to set `toc: true` in the metadata; this
4173 previously produced strange results in some output formats.
4174 For backwards compatibility, `toc` is still set to the
4175 toc contents. But it is recommended that you update templates
4176 to use `table-of-contents` for the toc contents and `toc`
4177 for a boolean flag.
4179 * Change behavior with binary format output to stdout.
4180 Previously, for binary formats, output to stdout was disabled
4181 unless we could detect that the output was being piped (and not
4182 sent to the terminal). Unfortunately, such detection is not
4183 possible on Windows, leaving windows users no way to pipe binary
4184 output. So we have changed the behavior in the following way:
4186 + Output to stdout is allowed when it can be determined that
4187 the output is being piped (on non-Windows platforms).
4188 + If the `-o` option is not used, binary output is never sent
4189 to stdout by default; instead, an error is raised.
4190 + If `-o -` is used, binary output is sent to stdout, regardless
4191 of whether it is being piped. This works on Windows too.
4193 * Better error behavior: uses of `error` have been replaced by
4194 raising of `PandocError`, which can be trapped and handled by the
4195 calling program.
4197 * Removed `hard_line_breaks` extension from `markdown_github` (#3594).
4198 GitHub has two Markdown modes, one for long-form documents like READMEs
4199 and one for short things like issue comments. In issue comments, a line
4200 break is treated as a hard line break. In README, wikis, etc., it is
4201 treated as a space as in regular Markdown. Since pandoc is more likely to
4202 be used to convert long-form documents from GitHub Markdown,
4203 `-hard_line_breaks` is a better default.
4205 * Include `backtick_code_blocks` extension in `mardkown_mmd` (#3637).
4207 * Escape `MetaString` values (as added with `-M/--metadata` flag) (#3792).
4208 Previously they would be transmitted to the template without any
4209 escaping. Note that `--M title='*foo*'` yields a different result from
4211 ---
4212 title: *foo*
4213 ---
4215 In the latter case, we have emphasis; in the former case, just
4216 a string with literal asterisks (which will be escaped
4217 in formats, like Markdown, that require it).
4219 * Allow `em`, `cm`, `in` for image height/width in HTML, LaTeX (#3450).
4221 * HTML writer: Insert `data-` in front of unsupported attributes. Thus,
4222 a span with attribute `foo` gets written to HTML5 with `data-foo`, so
4223 it is valid HTML5. HTML4 is not affected. This will allow us to use
4224 custom attributes in pandoc without producing invalid HTML. (With help
4225 from Wandmalfarbe, #3817.)
4227 * Plain writer: improved super/subscript rendering. We now
4228 handle more non-digit characters for which there are
4229 sub/superscripted unicode characters. When unicode
4230 sub/superscripted characters are not available, we use
4231 `_(..)` or `^(..)` (#3518).
4233 * Docbook, JATS, TEI writers: print INFO message when omitting interior
4234 header (#3750). This only applies to section headers inside list items,
4235 e.g., which were otherwise silently omitted.
4237 * Change to `--reference-links` in Markdown writer (#3701). With
4238 `--reference-location` of `section` or `block`, pandoc will now repeat
4239 references that have been used in earlier sections. The Markdown
4240 reader has also been modified, so that *exactly* repeated references
4241 do not generate a warning, only references with the same label but
4242 different targets. The idea is that, with references after every block,
4243 one might want to repeat references sometimes.
4245 * ODT/OpenDocument writer:
4247 + Support `lang` attribute (#1667).
4248 + Added support for `--toc` (#2836). Thanks to @anayrat.
4250 * Docx writer:
4252 + `lang` meta, see #1667 (Mauro Bieg, #3515).
4253 + Change `FigureWithCaption` to `CaptionedFigure` (iandol, #3658).
4254 + Use `Table` rather than `Table Normal` for table style (#3275).
4255 `Table Normal` is the default table style and can't be modified.
4256 + Pass through comments (#2994). We assume that comments are defined as
4257 parsed by the docx reader:
4259 I want <span class="comment-start" id="0" author="Jesse Rosenthal"
4260 date="2016-05-09T16:13:00Z">I left a comment.</span>some text to
4261 have a comment <span class="comment-end" id="0"></span>on it.
4263 We assume also that the id attributes are unique and properly
4264 matched between comment-start and comment-end.
4265 + Bookmark improvements. Bookmark start/end now surrounds content rather
4266 than preceding it. Bookmarks generated for Div with id
4267 (jgm/pandoc-citeproc#205).
4268 + Add `keywords` metadata to docx document properties (Ian).
4270 * RST writer: support unknown interpreted text roles by
4271 parsing them as `Span` with `role` attributes (#3407). This
4272 way they can be manipulated in the AST.
4274 * HTML writer:
4276 + Line block: Use class instead of style attribute (#1623). We now
4277 issue `<div class="line-block">` and include a default definition
4278 for `line-block` in the default templates, instead of hard-coding a
4279 `style` on the div.
4280 + Add class `footnoteBack` to footnote back references (Timm Albers).
4281 This allows for easier CSS styling.
4282 + Render SmallCaps as span with smallcaps class (#1592), rather than
4283 using a style attribute directly. This gives the user more flexibility
4284 in styling small caps in CSS.
4285 + With reveal.js we use `data-src` instead of `src` for images for
4286 lazy loading.
4287 + Special-case `.stretch` class for images in reveal.js (#1291).
4288 Now in reveal.js, an image with class `stretch` in a paragraph
4289 by itself will stretch to fill the whole screen, with no
4290 caption or figure environment.
4292 * Added warnings for non-rendered blocks to writers.
4294 * Writers now raise an error on template failure.
4296 * When creating a PDF via LaTeX, warn if the font is missing some
4297 characters (#3742).
4299 * Remove initial check for PDF-creating program (#3819).
4300 Instead, just try running it and raise the exception if it
4301 isn't found at that point. This improves things for users of Cygwin
4302 on Windows, where the executable won't be found by `findExecutable`
4303 unless `.exe` is added. The same exception is raised as before, but
4304 at a later point.
4306 * Readers issue warning for duplicate header identifiers (#1745).
4307 Autogenerated header identifiers are given suffixes so as not to clash
4308 with previously used header identifiers. But they may still coincide with
4309 an explicit identifier that is given for a header later in the document,
4310 or with an identifier on a div, span, link, or image. We now issue
4311 a warning in this case, so users can supply an explicit identifier.
4313 * CommonMark reader now supports `emoji`, `hard_line_breaks`, `smart`,
4314 and `raw_html` extensions.
4316 * Markdown reader:
4318 + Don't allow backslash + newline to affect block structure (#3730).
4319 Note that as a result of this change, the following, which formerly
4320 produced a header with two lines separated by a line break, will
4321 now produce a header followed by a paragraph:
4323 # Hi\
4324 there
4326 This may affect some existing documents that relied on
4327 this undocumented and unintended behavior. This change makes pandoc
4328 more consistent with other Markdown implementations, and with itself
4329 (since the two-space version of a line break doesn't work inside ATX
4330 headers, and neither version works inside Setext headers).
4332 + A space between the opening # and the header is now required for
4333 pandoc and GitHub markdown (but not the other flavors). Disable
4334 the `space_in_atx_header` extension (#3512) to restore the
4335 original behavior.
4338 * Org reader (Albert Krewinkel, unless noted):
4340 + Support `table.el` tables (#3314).
4341 + Support macros (#3401).
4342 + Support the `#+INCLUDE:` file inclusion mechanism (#3510).
4343 Recognized include types are `example`, `export`, `src`, and
4344 normal org file inclusion. Advanced features like line numbers
4345 and level selection are not implemented yet.
4346 + Interpret more meta value as inlines. The values of the following
4347 meta variables are now interpreted using org-markup instead of
4348 treating them as pure strings: `keywords` (comma-separated list of
4349 inlines), `subtitle` (inline values), `nocite` (inline values, can
4350 be repeated).
4351 + Support `\n` export option (#3940). This turns all newlines in the
4352 text into hard linebreaks.
4354 * RST reader:
4356 + Improved admonition support (#223). We no longer add an
4357 `admonition` class, we just use the class for the type of admonition,
4358 `note` for example. We put the word corresponding to the label in
4359 a paragraph inside a `Div` at the beginning of the admonition with
4360 class `admonition-title`. This is about as close as we can get to
4361 RST's own output.
4362 + Initial support of `.. table` directive. This allows adding captions
4363 to tables.
4364 + Support `.. line-block` directive. This is deprecated but may still
4365 be in older documents.
4366 + Support scale and align attributes of images (#2662).
4367 + Implemented implicit internal header links (#3475).
4368 + Support RST-style citations (#853). The citations appear at the end
4369 of the document as a definition list in a special div with id
4370 `citations`. Citations link to the definitions.
4371 + Recurse into bodies of unknown directives (#3432).
4372 In most cases it's better to preserve the content than
4373 to emit it. This isn't guaranteed to have good results;
4374 it will fail spectacularly for unknown raw or verbatim directives.
4375 + Handle chained link definitions (#262). For example,
4377 .. _hello:
4378 .. _goodbye: example.com
4380 Here both `hello` and `goodbye` should link to `example.com`.
4381 + Support anchors (#262). E.g.
4383 `hello`
4385 .. _hello:
4387 paragraph
4389 This is supported by putting "paragraph" in a `Div` with id `hello`.
4390 + Support `:widths:` attribute for table directive.
4391 + Implement csv-table directive (#3533). Most attributes are supported,
4392 including `:file:` and `:url:`.
4393 + Support unknown interpreted text roles by parsing them as Span
4394 with "role" attributes (#3407). This way they can be manipulated in
4395 the AST.
4397 * HTML reader: parse a span with class `smallcaps` as `SmallCaps`.
4399 * LaTeX reader:
4401 + Implemented `\graphicspath` (#736).
4402 + Properly handle column prefixes/suffixes. For example, in
4403 `\begin{tabular}{>{$}l<{$}>{$}l<{$} >{$}l<{$}}`
4404 each cell will be interpreted as if it has a `$`
4405 before its content and a `$` after (math mode).
4406 + Handle komascript `\dedication` (#1845). It now adds a
4407 `dedication` field to metadata. It is up to the user to supply
4408 a template that uses this variable.
4409 + Support all `\textXX` commands, where XX = `rm`, `tt`, `up`, `md`,
4410 `sf`, `bf` (#3488). Spans with a class are used when there is
4411 nothing better.
4412 + Expand `\newenvironment` macros (#987).
4413 + Add support for LaTeX subfiles package (Marc Schreiber, #3530).
4414 + Better support for subfigure package (#3577).
4415 A figure with two subfigures turns into two pandoc
4416 figures; the subcaptions are used and the main caption
4417 ignored, unless there are no subcaptions.
4418 + Add support for \vdots (Marc Schreiber, #3607).
4419 + Add basic support for hyphenat package (Marc Schreiber, #3603).
4420 + Add basic `\textcolor` support (Marc Schreiber).
4421 + Add support for `tabularx` environment (Marc Schreiber, #3632).
4422 + Better handling of comments inside math environments (#3113).
4423 This solves a problem with commented out `\end{eqnarray}` inside
4424 an eqnarray (among other things).
4425 + Parse tikzpicture as raw verbatim environment if `raw_tex` extension
4426 is selected (#3692). Otherwise skip with a warning. This is better
4427 than trying to parse it as text!
4428 + Add `\colorbox` support (Marc Schreiber).
4429 + Set identifiers on Spans used for `\label`.
4430 + Have `\setmainlanguage` set `lang` in metadata.
4431 + Support etoolbox's `\ifstrequal`.
4432 + Support `plainbreak`, `fancybreak` et al from the memoir class
4433 (bucklereed, #3833).
4434 + Support `\let`. Also, fix regular macros so they're expanded at the
4435 point of use, and NOT also the point of definition. `\let` macros,
4436 by contrast, are expanded at the point of definition. Added an
4437 `ExpansionPoint` field to `Macro` to track this difference.
4438 + Support simple `\def` macros. Note that we still don't support
4439 macros with fancy parameter delimiters, like `\def\foo#1..#2{...}`.
4440 + Support \chaptername, \partname, \abstractname, etc. (#3559,
4441 obsoletes #3560).
4442 + Put content of `\ref`, `\label`, `\eqref` commands into `Span` with
4443 attributes, so they can be handled in filters (Marc Schreiber, #3639)
4444 + Add Support for `glossaries` and `acronym` package (Marc Schreiber,
4445 #3589). Acronyms are not resolved by the reader, but acronym and
4446 glossary information is put into attributes on Spans so that they
4447 can be processed in filters.
4448 + Use `Link` instead of `Span` for `\ref`. This makes more sense
4449 semantically and avoids unnecessary `Span [Link]` nestings when
4450 references are resolved.
4451 + Rudimentary support for `\hyperlink`.
4452 + Support `\textquoteleft|right`, `\textquotedblleft|right` (#3849).
4453 + Support `\lq`, `\rq`.
4454 + Implement `\newtoggle`, `\iftoggle`, `\toggletrue|false` from etoolbox
4455 (#3853).
4456 + Support `\RN` and `\Rn`, from biblatex (bucklereed, #3854).
4457 + Improved support for `\hyperlink`, `\hypertarget` (#2549).
4458 + Support `\k` ogonek accent.
4459 + Improve handling of accents. Handle ogonek, and fall back correctly
4460 with forms like `\"{}`.
4461 + Better support for ogonek accents.
4462 + Support for `\faCheck` and `\faClose` (Marc Schreiber, #3727).
4463 + Support for `xspace` (Marc Schreiber, #3797).
4464 + Support `\setmainlanguage` or `\setdefaultlanguage` (polyglossia)
4465 and `\figurename`.
4466 + Better handling of `\part` in LaTeX (#1905). Now we parse chapters as
4467 level 0 headers, and parts as level -1 headers. After parsing, we
4468 check for the lowest header level, and if it's less than 1 we bump
4469 everything up so that 1 is the lowest header level. So `\part` will
4470 always produce a header; no command-line options are needed.
4471 + Add block version of `\textcolor` (Marc Schreiber).
4472 + `\textcolor` works as inline and block command (Marc Schreiber).
4473 + `\textcolor` will be parse as span at the beginning of a paragraph
4474 (Marc Schreiber).
4475 + Read polyglossia/babel `\text(LANG){...}` (bucklereed)
4476 + Improved handling of include files in LaTeX reader (#3971).
4477 Previously `\include` wouldn't work if the included file
4478 contained, e.g., a begin without a matching end.
4479 + Support `\expandafter` (#3983).
4480 + Handle `\DeclareRobustCommand` (#3983). Currently it's just treated
4481 as a synonym for `\newcommand`.
4482 + Handle `\lettrine` (Mauro Bieg).
4484 * Math improvements due to updates in texmath:
4486 + Improved handling of accents and upper/lower delimiters.
4487 + Support for output in GNU eqn format (used with *roff).
4488 + Allow `\boldsymbol` + a token without braces, and similarly
4489 with other styling commands.
4490 + Improve parsing of `\mathop` to allow multi-character operator names.
4491 + Add thin space after math operators when "faking it with
4492 unicode."
4494 * `walk` is now used instead of `bottomUp` in the `ToJSONFilter`
4495 instance for `a -> [a]` (pandoc-types). Note that behavior
4496 will be slightly different, since `bottomUp`'s treatment of
4497 a function `[a] -> [a]` is to apply it to each sublist of a
4498 list, while walk applies it only to maximal sublists.
4499 Usually the latter behavior is what is wanted, and the
4500 former can be simulated when needed. But there may be
4501 existing filters that need to be rewritten in light of the
4502 new behavior. Performance should be improved.
4504 * There are some changes to syntax highlighting due to revisions
4505 in the `skylighting` library:
4507 + Support for `powershell` has been added, and many syntax
4508 definitions have been updated.
4509 + Background colors have been added to the `kate` style.
4510 + The way highlighted code blocks are formatted in HTML has
4511 been changed (David Baynard), in ways that may require
4512 changes in hard-coded CSS affecting highlighting.
4513 (If you haven't included hard-coded highlighting CSS in
4514 your template, you needn't change anything.)
4517 [API changes]
4519 * New module `Text.Pandoc.Class` (Jesse Rosenthal, John MacFarlane).
4520 This contains definitions of the `PandocMonad` typeclass, the
4521 `PandocIO` and `PandocPure` monads, and associated functions.
4523 * Changed types of all writers and readers.
4525 + We now use `Text` instead of `String` in the interface (#3731).
4526 (We have not yet changed the internals of most readers to work
4527 with `Text`, but making this change in the API now opens up a
4528 path to doing that.)
4529 + The result is now of form `m a` with constraint `PandocMonad m`.
4530 Readers and writers can be combined to form monadic values which
4531 can be run using either `runIO` or `runPure`. If `runIO` is used,
4532 then both readers and writers will be able to do IO when needed
4533 (for include files, for example); if `runPure` is used,
4534 then the functions are pure and will not touch IO.
4535 + Where previously you used
4536 `writeRST def (readMarkdown def "[foo](url)")`, now you
4537 would use
4538 `runPure $ readMarkdown def (pack "[foo](url)") >>= writeRST def`.
4540 * New module `Text.Pandoc.Readers` (Albert Krewinkel). This
4541 contains reader helper functions formerly defined in the
4542 top-level `Text.Pandoc` module.
4544 + Changed `StringReader` -> `TextReader`.
4545 + `getReader` now returns a pair of a reader and
4546 `Extensions`, instead of building the extensions into the
4547 reader (#3659). The calling code must explicitly set
4548 `readerExtensions` using the `Extensions` returned. The
4549 point of the change is to make it possible for the calling
4550 code to determine what extensions are being used.
4552 * New module `Text.Pandoc.Writers` (Albert Krewinkel).
4553 This contains writer helper functions formerly defined in the
4554 top-level `Text.Pandoc` module.
4556 + Changed `StringWriter` -> `TextWriter`.
4557 + `getWriter` now returns a pair of a reader and
4558 `Extensions`, instead of building the extensions into the
4559 reader (#3659). The calling code must explicitly set
4560 `readerExtensions` using the `Extensions` returned. The
4561 point of the change is to make it possible for the calling
4562 code to determine what extensions are being used.
4564 * New module `Text.Pandoc.Lua`, exporting `runLuaFilter` (Albert Krewinkel,
4565 #3514).
4567 * New module `Text.Pandoc.App`. This abstracts out the functionality
4568 of the command line program (`convertWithOpts`), so it can be reproduced
4569 e.g. in a desktop or web application. Instead of exiting, we throw errors
4570 (#3548), which are caught (leading to exit) in pandoc.hs, but allow other
4571 users of `Text.Pandoc.App` to recover. `pandoc.hs` is now a 2-liner.
4572 The module also exports some utility functions for parsing options
4573 and running filters.
4575 * New module `Text.Pandoc.Logging` (exported module) (#3392).
4576 This now contains the `Verbosity` definition previously in
4577 `Text.Pandoc.Options`, as well as a new `LogMessage` datatype that will
4578 eventually be used instead of raw strings for warnings. This will enable
4579 us, among other things, to provide machine-readable warnings if desired.
4580 Include ToJSON instance and showLogMessage. This gives us the possibility
4581 of both machine-readable and human-readable output for log messages.
4583 * New module `Text.Pandoc.BCP47`, with `getLang`, `Lang(..)`, `parseBCP47`.
4585 * New module `Text.Pandoc.Translations`, exporting `Term`,
4586 `Translations`, `readTranslations`.
4588 * New module `Text.Pandoc.Readers.LaTeX.Types', exporting `Macro`, `Tok`,
4589 `TokType`, `Line`, `Column`.
4591 * `Text.Pandoc.Error`: added many new constructors for `PandocError`.
4593 * Expose some previously private modules (#3260). These are often
4594 helpful to people writing their own reader or writer modules:
4596 + `Text.Pandoc.Writers.Shared`
4597 + `Text.Pandoc.Parsing`
4598 + `Text.Pandoc.Asciify`
4599 + `Text.Pandoc.Emoji`
4600 + `Text.Pandoc.ImageSize`
4601 + `Text.Pandoc.Highlighting`
4603 * New module `Text.Pandoc.Extensions` (Albert Krewinkel):
4604 Extension parsing and processing functions were defined in the top-level
4605 `Text.Pandoc` module. These functions are moved to the Extensions
4606 submodule as to enable reuse in other submodules.
4608 * Add `Ext_raw_attribute` constructor for `Extension`.
4610 * Add `Ext_fenced_divs` constructor for `Extension'.
4612 * Add `Ext_four_space_rule` constructor in `Extension`.
4614 * Add `Ext_gfm_auto_identifiers` constructor for `Extension`.
4616 * Add `Monoid` instance for `Extensions`.
4618 * Add `Text.Pandoc.Writers.Ms`, exporting `writeMs`.
4620 * Add `Text.Pandoc.Writers.JATS`, exporting `writeJATS`.
4622 * Add `Text.Pandoc.Writers.Muse`, exporting `writeMuse`.
4624 * Add `Text.Pandoc.Readers.Muse`, exporting `readMuse`.
4626 * Add `Text.Pandoc.Readers.TikiWiki`, exporting `readTikiWiki`.
4628 * Add `Text.Pandoc.Readers.Vimwiki`, exporting `readVimwiki`.
4630 * Add `Text.Pandoc.Readers.Creole`, exporting `readCreole`.
4632 * Export `setVerbosity` from `Text.Pandoc`.
4634 * `Text.Pandoc.Pretty`: Add `Eq` instance for `Doc`.
4636 * `Text.Pandoc.XML`: `toEntities`: changed type to `Text -> Text`.
4638 * `Text.Pandoc.UTF8`:
4640 + Export `fromText`, `fromTextLazy`, `toText`, `toTextLazy`.
4641 Define `toString`, `toStringLazy` in terms of them.
4642 + Add new functions parameterized on `Newline`: `writeFileWith`,
4643 `putStrWith`, `putStrLnWith`, `hPutStrWith`, `hPutStrLnWith`.
4645 * `Text.Pandoc.MediaBag`: removed `extractMediaBag`.
4647 * `Text.Pandoc.Highlighting`:
4649 + `highlighting` now returns an Either rather than Maybe.
4650 This allows us to display error information returned by the skylighting
4651 library. Display a warning if the highlighting library throws an error.
4652 + Add parameter for `SyntaxMap` to `highlight`.
4654 * `Text.Pandoc.Writers.Math`:
4656 + Export `defaultMathJaxURL`, `defaultKaTeXURL`. This will ensure that
4657 we only need to update these in one place.
4659 * `Text.Pandoc.SelfContained`:
4661 + Removed `WriterOptions` parameter from `makeSelfContained`.
4662 + Put `makeSelfContained` in PandocMonad instead of IO. This removes
4663 the need to pass MediaBag around and improves exceptions. It also
4664 opens up the possibility of using makeSelfContained purely.
4665 + Export `makeDataURI`.
4667 * `Text.Pandoc.ImageSize`:
4669 + Export `lengthToDim`, new function `scaleDimension`.
4670 + Export `inEm` from ImageSize (#3450).
4671 + Change `showFl` and `show` instance for `Dimension` so
4672 extra decimal places are omitted.
4673 + Added `Em` as a constructor of `Dimension`.
4674 + Add `WriterOptions` parameter to `imageSize` signature (Mauro Bieg).
4676 * `Text.Pandoc.Templates`:
4678 + Change type of `renderTemplate'`. Now it runs in `PandocMonad`
4679 and raises a proper `PandocTemplateError` if there are problems, rather
4680 than failing with uncatchable `error`.
4681 + Change signature of `getDefaultTemplate`. Now it runs in any instance
4682 of `PandocMonad`, and returns a `String` rather than an `Either` value.
4683 And it no longer takes a `datadir` parameter, since this can be
4684 retrieved from `CommonState`.
4686 * `Text.Pandoc.Options`:
4688 + Added `writerEpubSubdirectory` to `WriterOptions` (#3720).
4689 The EPUB writer now takes its EPUB subdirectory from this option.
4690 + In `WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine`
4691 and `writerLaTeXArgs` to `writerPdfArgs` (Mauro Bieg, #3909).
4692 + Add `writerSyntaxMap` to `WriterOptions`.
4693 + Removed `writerEpubStylesheet` from `WriterOptions`.
4694 + Remove `writerUserDataDir` from `WriterOptions`. It is now carried
4695 in `CommonState` in `PandocMonad` instances. (And thus it can be used
4696 by readers too.)
4697 + Changed `writerEpubMetadata` to a `Maybe String`.
4698 + Removed `readerApplyMacros` from `ReaderOptions`. Now we just check
4699 the `latex_macros` reader extension.
4700 + FromJSON/ToJSON instances for `ReaderOptions`.
4701 + In `HTMLMathMethod`, the `KaTeX` contsructor now takes only
4702 one string (for the KaTeX base URL), rather than two.
4703 + Removed `writerSourceURL` from `WriterOptions`. We now use
4704 `stSourceURL` in `CommonState`, which is set by `setInputFiles`.
4706 * `Text.Pandoc.Shared`:
4708 + `tabFilter` now takes a `Text`, not `String`.
4709 + `openURL`: Changed type from an Either. Now it will just raise
4710 an exception to be trapped later.
4711 + Remove `normalizeSpaces` (#1530).
4712 + Remove `warn`. (Use `report` from `Text.Pandoc.Class` instead.)
4713 + Export a new function `crFilter`.
4714 + Add `eastAsianLineBreakFilter` (previously in Markdown reader).
4715 + Provide custom `isURI` that rejects unknown schemes.
4716 (Albert Krewinkel, #2713). We also export the set of known
4717 `schemes`. The new function replaces the function of the same name
4718 from `Network.URI`, as the latter did not check whether a scheme is
4719 well-known. All official IANA schemes (as of 2017-05-22) are
4720 included in the set of known schemes. The four non-official schemes
4721 `doi`, `isbn`, `javascript`, and `pmid` are kept.
4722 + Remove `err`.
4723 + Remove `readDataFile`, `readDefaultDataFile`, `getReferenceDocx`,
4724 `getReferenceODT`. These now live in `Text.Pandoc.Class`,
4725 where they are defined in terms of `PandocMonad`
4726 primitives and have different signatures.
4727 + Remove `openURL`. Use `openURL` from `Text.Pandoc.Class` instead.
4728 + Add `underlineSpan`.
4730 * `Text.Pandoc.Readers.HTML`: export new `NamedTag` class.
4732 * `Text.Pandoc.Readers.Markdown`: remove `readDocxWithWarnings`.
4733 With the new API one can simply use `getLog` after running
4734 the reader.
4736 * `Text.Pandoc.Readers.LaTeX`: Changed types for `rawLaTeXInline`
4737 and `rawLaTeXBlock`. (Both now return a `String`, and they are
4738 polymorphic in state.)
4741 [bug fixes and under-the-hood improvements]
4743 * TEI writer: Added identifiers on `<div>` elements.
4745 * DokuWiki reader: Better handling for code block in list item (#3824).
4747 * Custom writer: Remove old preprocesesor conditionals (Albert Krewinkel).
4749 * ZimWiki writer: Removed internal formatting from note and table cells,
4750 because ZimWiki does not support it (Alex Ivkin, #3446).
4752 * MediaWiki writer:
4754 + Updated list of syntax highlighting languages (#3461).
4755 Now `r` gets you `<source>` rather than `<code>` (among others).
4756 + Add display attribute on `<math>` tags (#3452). This allows display
4757 math to be rendered properly.
4758 + Remove newline before `</ref>` (#2652).
4759 + Don't softbreak lines inside list items (#3531).
4761 * Org writer:
4763 + Reduce to two spaces after bullets (#3417, Albert Krewinkel).
4764 + Add unit tests (Alexander Krotov).
4765 + Stop using raw HTML to wrap divs (Albert Krewinkel, #3771).
4766 + Do not strip `#` from Org anchor links (Alexander Krotov).
4768 * CommonMark writer:
4770 + Avoid excess blank lines at end of output.
4771 + Prefer pipe tables to HTML tables even if it means losing relative
4772 column width information (#3734).
4773 + Support table, strikethrough extensions, when enabled (as with gfm).
4774 Note that we bypass the commonmark writer from cmark and construct our
4775 own pipe tables, with better results.
4776 + Properly support `--wrap=none`.
4777 + Use smallcaps class for `SmallCaps` (#1592).
4778 + Omit "fig:" prefix in image titles. This is used internally to
4779 indicate internal figures.
4781 * RST writer:
4783 + Properly handle table captions.
4784 + Don't wrap lines in in definition list terms. Wrapping is not allowed.
4785 + Implemented `+/-smart` and improved escaping with `+smart`.
4786 + Add empty comments when needed to avoid including a blockquote
4787 in the indented content of a preceding block (#3675).
4788 + Improve grid table output, fix bug with empty rows (#3516).
4789 Uses the new `gridTable` in Writers.Shared, which is here
4790 improved to better handle 0-width cells.
4791 + Remove space at beginning/end of RST code span (#3496). Otherwise
4792 we get invalid RST. There seems to be no way to escape the space.
4793 + Add header anchors when header has non-standard id (#3937).
4794 + Correctly handle inline code containing backticks, using a `:literal:`
4795 role (#3974).
4796 + Don't backslash-escape word-internal punctuation (#3978).
4798 * Markdown writer:
4800 + Don't include variables in metadata blocks. Previously variables set
4801 on the command line were included in e.g. YAML metadata, contrary to
4802 documentation and intentions.
4803 + Improved escaping with `+smart`.
4804 + Fixed grid tables embedded in grid tables (#2834).
4805 + Use span with class 'smallcaps' for SmallCaps, instead of a style
4806 attribute as before (#1592).
4807 + Escape initial `%` in a paragraph if the `pandoc_title_blocks`
4808 extension is enabled (#3454). Otherwise in a document starting with
4809 a literal `%` the first line is wrongly interpreted as a title.
4810 + Fixed false ordered lists in YAML metadata (#3492, #1685). Now we
4811 properly escape things that would otherwise start ordered lists,
4812 such as
4814 ---
4815 title: 1. inline
4816 ...
4817 + Better handling of tables with empty columns (#3337). We now
4818 calculate the number of columns based on the longest row (or the
4819 length of aligns or widths).
4820 + Escape unordered list markers at beginning of paragraph (#3497), to
4821 avoid false interpretation as a list.
4822 + Escape `|` appropriately.
4823 + Ensure space before list at top level (#3487).
4824 + Avoid spurious blanklines at end of document after tables and list,
4825 for example.
4826 + Fixed bugs in simple/multiline list output (#3384).
4827 Previously we got overlong lists with `--wrap=none`. This is fixed.
4828 Previously a multiline list could become a simple list (and would
4829 always become one with `--wrap=none`).
4830 + Don't emit a simple table if `simple_tables` disabled (#3529).
4831 + Case-insensitive reference links (David A Roberts, #3616).
4832 Ensure that we do not generate reference links whose labels differ only
4833 by case. Also allow implicit reference links when the link
4834 text and label are identical up to case.
4835 + Put space before reference link definitions (Mauro Bieg, #3630).
4836 + Better escaping for links (David A. Roberts, #3619). Previously the
4837 Markdown writer would sometimes create links where there were none
4838 in the source. This is now avoided by selectively escaping bracket
4839 characters when they occur in a place where a link might be created.
4840 + Added missing `\n` (David A. Roberts, #3647).
4841 + Fixed duplicated reference links with `--reference-links`
4842 and `--reference-location=section` (#3674). Also ensure that there
4843 are no empty link references `[]`.
4844 + Avoid inline surround-marking with empty content (#3715).
4845 E.g. we don't want `<strong></strong>` to become `****`.
4846 Similarly for emphasis, super/subscript, strikeout.
4847 + Don't allow soft break in header (#3736).
4848 + Make sure `plain`, `markdown_github`, etc. work for raw.
4849 Previously only `markdown` worked. Note: currently a raw block labeled
4850 `markdown_github` will be printed for any `markdown` format.
4851 + Ensure that `+` and `-` are escaped properly so they don't cause
4852 spurious lists (#3773). Previously they were only
4853 if succeeded by a space, not if they were at end of line.
4854 + Use pipe tables if `raw_html` disabled and `pipe_tables` enabled,
4855 even if the table has relative width information (#3734).
4856 + Markdown writer: don't crash on `Str ""`.
4857 + Make `Span` with null attribute transparent. That is, we don't use
4858 brackets or `<span>` tags to mark spans when there are no attributes;
4859 we simply output the contents.
4860 + Escape pipe characters when `pipe_tables` enabled (#3887).
4861 + Better escaping of `<` and `>`. If `all_symbols_escapable` is set,
4862 we backslash escape these. Otherwise we use entities as before.
4863 + When writing plain, don't use `&nbsp;` to separate list and indented
4864 code. There's no need for it in this context, since this isn't to be
4865 interpreted using Markdown rules.
4866 + Preserve classes in JS obfuscated links (Timm Albers, #2989).
4867 HTML links containing classes originally now preserve them when using
4868 JavaScript email obfuscation.
4869 + Render `SmallCaps` as a native span when `native_spans` are enabled.
4870 + Always write attributes with `bracketed_spans` (d-dorazio).
4872 * Man writer:
4874 + Fix handling of nested font commands (#3568). Previously pandoc emitted
4875 incorrect markup for bold + italic, for example, or bold + code.
4876 + Avoid error for definition lists with no definitions (#3832).
4878 * DocBook writer:
4880 + Fix internal links with `writerIdentifierPrefix opt`
4881 (#3397, Mauro Bieg).
4883 * Docx writer:
4885 + Don't include bookmarks on headers unless non-null id (#3476).
4886 + Support 9 levels of headers (#1642).
4887 + Allow 9 list levels (#3519).
4888 + Don't take `distArchive` from datadir (#3322). The docx writer takes
4889 components from the distribution's version of `reference.docx` when it
4890 can't find them in a user's custom `reference.docx`. Previously, we
4891 allowed a `reference.docx` in the data directory (e.g. `~/.pandoc`)
4892 to be used as the distribution's reference.docx. This led to a
4893 bizarre situation where pandoc would produce a good docx using
4894 `--template ~/.pandoc/ref.docx`, but if `ref.docx` were moved to
4895 `~/.pandoc/reference.docx`, it would then produce a corrupted docx.
4896 + Fixed handling of soft hyphen (0173) (#3691).
4897 + Better handling of keywords (#3719).
4898 + Cleaner code for handling dir and style attributes for `Div`.
4899 + Use `Set` for dynamic styles to avoid duplicates.
4900 + Removed redundant element from data/docx/word/numbering.xml.
4901 The elements we need are generated when the document is
4902 compiled; this didn't do anything.
4903 + Activate `evenAndOddHeaders` from reference docx (#3901,
4904 Augustín Martín Barbero).
4906 * ODT/OpenDocument writer:
4908 + Calculate aspect ratio for percentage-sized images (Mauro Bieg, #3239).
4909 + Use more widely available bullet characters (#1400). The old
4910 characters weren't available in some font sets. These seem to work
4911 well on Windows and Linux versions of LibreOffice.
4912 + Wider labels for lists (#2421). This avoids overly narrow labels for
4913 ordered lists with `()` delimiters. However, arguably it creates
4914 overly wide labels for bullets. Also, lists now start flush with
4915 the margin, rather than indented.
4916 + Fixed dropped elements in some ordered lists (#2434).
4918 * FB2 writer:
4920 + Don't render `RawBlock` as code.
4921 + Don't fail with an error on interior headers (e.g. in list) (#3750).
4922 Instead, omit them with an INFO message.
4923 + Add support for "lang" metadata (Alexander Krotov, #3625).
4924 + Format `LineBlock` as poem (Alexander Krotov). Previously writer
4925 produced one paragraph with `<empty-line/>` elements, which are not
4926 allowed inside `<p>` according to FB2 schema.
4927 + Replace `concatMap` with `cMap` (Alexander Krotov).
4928 + Write FB2 lists without nesting blocks inside `<p>` (Alexander
4929 Krotov, #4004)
4931 * HTML writer:
4933 + Make sure `html4`, `html5` formats work for raw blocks/inlines.
4934 + Render raw inline environments when `--mathjax` used (#3816).
4935 We previously did this only with raw blocks, on the assumption
4936 that math environments would always be raw blocks. This has changed
4937 since we now parse them as inline environments.
4938 + Ensure we don't get two style attributes for width and height.
4939 + Report when not rendering raw inline/block.
4940 + Issue warning if no title specified and template used (#3473).
4941 + Info message if `lang` is unspecified (#3486).
4942 + Removed unused parameter in `dimensionsToAttributeList`.
4943 + Avoid two class attributes when adding `uri` class (#3716).
4944 + Fix internal links with `writerIdentifierPrefix opt` (#3397, Mauro
4945 Bieg).
4946 + Use revealjs's math plugin for mathjax (#3743). This is a thin
4947 wrapper around mathjax that makes math look better on revealjs.
4948 + Slidy: use h1 for all slides, even if they were originally
4949 level 2 headers (#3566). Otherwise the built-in table of contents
4950 in Slidy breaks.
4952 * LaTeX writer:
4954 + Don't render LaTeX images with data: URIs (#3636). Note that
4955 `--extract-media` can be used when the input contains data: URIs.
4956 + Make highlighted code blocks work in footnotes (Timm Albers).
4957 + Don't use figure inside table cell (#3836).
4958 + Use proper code for list enumerators (#3891). This should fix problems
4959 with lists that don't use arabic numerals.
4960 + Always add hypertarget when there's a non-empty identifier (#2719).
4961 Previously the hypertargets were only added when there was actually
4962 a link to that identifier.
4963 + Use `%` after hypertarget before code block.
4964 + Add `\leavevmode` before hypertarget at start of paragraph (#2704,
4965 fixes formatting problems in beamer citations).
4966 + Don't use `lstinline` in \item[..] (#645). If you do, the contents
4967 of item disappear or are misplaced. Use `\texttt` instead.
4968 + Fix problem with escaping in `lstinline` (#1629). Previously the
4969 LaTeX writer created invalid LaTeX when `--listings` was specified and
4970 a code span occurred inside emphasis or another construction.
4971 + Fix error with line breaks after empty content (#2874). LaTeX
4972 requires something before a line break, so we insert a `~` if no
4973 printable content has yet been emitted.
4974 + Use BCP47 parser.
4975 + Fixed detection of otherlangs (#3770). We weren't recursing into
4976 inline contexts.
4977 + Handle language in inline code with `--listings` (#3422).
4978 + Write euro symbol directly in LaTeX (Andrew Dunning, #3801).
4979 The textcomp package allows pdfLaTeX to parse `€` directly, making the
4980 `\euro` command unneeded.
4981 + Fixed footnotes in table captions (#2378). Note that if the table has
4982 a first page header and a continuation page header, the notes will
4983 appear only on the first occurrence of the header.
4984 + In `writeBeamer` output, allow hyperlinks to frames (#3220).
4985 Previously you could link to a header above or below slide level but
4986 not *to* slide level. This commit changes that. Hypertargets are
4987 inserted inside frame titles; technically the reference is to just
4988 after the title, but in normal use (where slides are viewed full
4989 screen in a slide show), this does not matter.
4990 + Remove `\strut` at beginning of table cells (#3436). This fixes a
4991 problem with alignment of lists in table cells. The `\strut` at the
4992 end seems to be enough to avoid the too-close spacing that motivated
4993 addition of the strut in #1573.
4994 + Add partial siunitx Support (Marc Schreiber, #3588).
4996 * ConTeXt writer:
4998 + Refactored to use BCP47 module.
4999 + Remove unnecessary `$` (Alexander Krotov, #3482).
5000 + Use header identifiers for chapters (#3968).
5002 * EPUB writer:
5004 + `title_page.xhtml` is now put in `text/`.
5005 + Don't strip formatting in TOC (#1611).
5007 * Textile reader:
5009 + Fix bug for certain links in table cells (#3667).
5010 + Allow 'pre' code in list item (#3916).
5012 * HTML reader:
5014 + Added warnings for ignored material (#3392).
5015 + Better sanity checks to avoid parsing unintended things as
5016 raw HTML in the Markdown reader (#3257).
5017 + Revise treatment of `li` with `id` attribute (#3596). Previously we
5018 always added an empty div before the list item, but this created
5019 problems with spacing in tight lists. Now we do this: If the list
5020 item contents begin with a `Plain` block, we modify the `Plain`
5021 block by adding a `Span` around its contents. Otherwise, we add a
5022 `Div` around the contents of the list item (instead of adding an
5023 empty `Div` to the beginning, as before).
5024 + Add `details` tag to list of block tags (#3694).
5025 + Removed `button` from block tag list (#3717). It is already in the
5026 `eitherBlockOrInlineTag` list, and should be both places.
5027 + Use `Set`s instead of lists for block tag lookup.
5028 + Rewrote to use `Text` throughout. Effect on memory usage is modest
5029 (< 10%).
5030 + Use the lang value of `<html>` to set the lang meta value (bucklereed,
5031 #3765).
5032 + Ensure that paragraphs are closed properly when the parent block
5033 element closes, even without `</p>` (#3794).
5034 + Parse `<figure>` and `<figcaption>` (Mauro Bieg, #3813).
5035 + Parse `<main>` like `<div role=main>` (bucklereed, #3791).
5036 `<main>` closes `<p>` and behaves like a block element generally
5037 + Support column alignments (#1881). These can be set either
5038 with a `width` attribute or with `text-width` in a `style` attribute.
5039 + Modified state type to be an instance of `HasLogMessages`, so
5040 `registerHeader` can issue warnings.
5041 + `</td>` or `</th>` should close any open block tag (#3991).
5042 + `<td>` should close an open `<th>` or `<td>`.
5043 + `htmlTag` improvements (#3989). We previously failed on cases
5044 where an attribute contained a `>` character. This patch fixes the
5045 bug, which especially affects raw HTML in Markdown.
5047 * Txt2Tags reader:
5049 + Newline is not indentation (Alexander Krotov).
5051 * MediaWiki reader:
5053 + Allow extra hyphens after `|-` in tables (#2649).
5054 + Allow blank line after table start (#2649).
5055 + Fixed more table issues (#2649).
5056 + Ensure that list starts begin at left margin (#2606). Including when
5057 they're in tables or other list items.
5058 + Make smart double quotes depend on `smart` extension (#3585).
5059 + Don't do curly quotes inside `<tt>` contexts (#3585). Even if `+smart`.
5060 + Modified state type to be an instance of `HasLogMessages`, so
5061 `registerHeader` can issue warnings.
5063 * TWiki reader (Alexander Krotov):
5065 + Remove unnecessary `$` (#3597).
5066 + Simplify `linkText` (#3605).
5068 * EPUB reader:
5070 + Minor refactoring, avoiding explicit MediaBag handling.
5071 This all works behind the scenes in CommonState plumbing.
5073 * Docx reader:
5075 + Don't drop smartTag contents (#2242).
5076 + Handle local namespace declarations (#3365). Previously we didn't
5077 recognize math, for example, when the xmlns declaration occurred on
5078 the element and not the root.
5079 + More efficient trimSps (#1530). Replacing `trimLineBreaks`. This
5080 does the work of `normalizeSpaces` as well, so we avoid the need for
5081 that function here.
5082 + Avoid 0-level headers (Jesse Rosenthal, #3830). We used to parse
5083 paragraphs styled with "HeadingN" as "nth-level header." But if a
5084 document has a custom style named "Heading0", this will produce a
5085 0-level header, which shouldn't exist. We only parse this style
5086 if N>0. Otherwise we treat it as a normal style name, and
5087 follow its dependencies, if any.
5088 + Add tests for avoiding zero-level header (Jesse Rosenthal).
5090 * ODT reader:
5092 + Replaced `collectRights` with Rights from `Data.Either`.
5093 + Remove dead code (Albert Krewinkel).
5095 * Org reader (Albert Krewinkel, unless noted).
5097 + Don't allow tables inside list items (John MacFarlane, #3499).
5098 + Disallow tables on list marker lines (#3499).
5099 + Convert markup at beginning of footnotes (John MacFarlane, #3576).
5100 + Allow emphasized text to be followed by `[` (#3577).
5101 + Handle line numbering switch for src blocks.
5102 The line-numbering switch that can be given to source blocks (`-n` with
5103 an start number as an optional parameter) is parsed and translated to a
5104 class/key-value combination used by highlighting and other readers and
5105 writers.
5106 + Stop adding rundoc prefix to src params. Source block parameter names
5107 are no longer prefixed with `rundoc`. This was intended to simplify
5108 working with the rundoc project, a babel runner. However, the rundoc
5109 project is unmaintained, and adding those markers is not the reader's
5110 job anyway. The original language that is specified for a source
5111 element is now retained as the `data-org-language` attribute and only
5112 added if it differs from the translated language.
5113 + Allow multi-word arguments to src block params (#3477). The reader now
5114 correctly parses src block parameter list even if parameter arguments
5115 contain multiple words.
5116 + Avoid creating `nullMeta` by applying `setMeta` directly
5117 (Alexander Krotov).
5118 + Replace `sequence . map` with `mapM`.
5119 + Fix smart parsing behavior. Parsing of smart quotes and special
5120 characters can either be enabled via the `smart` language extension or
5121 the `'` and `-` export options. Smart parsing is active if either the
5122 extension or export option is enabled. Only smart parsing of special
5123 characters (like ellipses and en and em dashes) is enabled by default,
5124 while smart quotes are disabled. Previously, all smart parsing was
5125 disabled unless the language extension was enabled.
5126 + Subject full doc tree to headline transformations (Albert Krewinkel,
5127 #3695). Emacs parses org documents into a tree structure, which is
5128 then post-processed during exporting. The reader is changed to do the
5129 same, turning the document into a single tree of headlines starting
5130 at level 0.
5131 + Fix cite parsing behaviour (Herwig Stuetz). Until now, `org-ref`
5132 cite keys included special characters also at the end. This caused
5133 problems when citations occur right before colons or at the end of
5134 a sentence. With this change, all non alphanumeric characters at
5135 the end of a cite key are ignored. This also adds `,` to the list
5136 of special characters that are legal in cite keys to better mirror
5137 the behaviour of org-export.
5138 + Fix module names in haddock comments. Copy-pasting had lead to
5139 haddock module descriptions containing the wrong module names.
5140 + Recognize babel result blocks with attributes (#3706). Babel
5141 result blocks can have block attributes like captions and names.
5142 Result blocks with attributes were not recognized and were parsed
5143 as normal blocks without attributes.
5144 + Include tags in headlines. The Emacs default is to include tags in the
5145 headline when exporting. Instead of just empty spans, which contain the
5146 tag name as attribute, tags are rendered as small caps and wrapped in
5147 those spans. Non-breaking spaces serve as separators for multiple tags.
5148 + Respect export option for tags (#3713). Tags are appended to
5149 headlines by default, but will be omitted when the `tags` export option
5150 is set to nil.
5151 + Use `tag-name` attribute instead of `data-tag-name`.
5152 + Use `org-language` attribute rather than `data-org-language`.
5153 + Modified state type to be an instance of `HasLogMessages`, so
5154 `registerHeader` can issue warnings.
5155 + End footnotes after two blank lines. Footnotes can not only be
5156 terminated by the start of a new footnote or a header, but also by two
5157 consecutive blank lines.
5158 + Update emphasis border chars (#3933). The org reader was updated to
5159 match current org-mode behavior: the set of characters which are
5160 acceptable to occur as the first or last character in an org emphasis
5161 have been changed and now allows all non-whitespace chars at the
5162 inner border of emphasized text (see `org-emphasis-regexp-components`).
5164 * RST reader:
5166 + Fixed small bug in list parsing (#3432). Previously the parser didn't
5167 handle properly this case:
5169 * - a
5170 - b
5171 * - c
5172 - d
5173 + Handle multiline cells in simple tables (#1166).
5174 + Parse list table directive (Keiichiro Shikano, #3432).
5175 + Make use of `anyLineNewline` (Alexander Krotov, #3686).
5176 + Use `anyLineNewline` in `rawListItem` (Alexander Krotov, #3702).
5177 + Reorganize block parsers for ~20% faster parsing.
5178 + Fixed `..include::` directive (#3880).
5179 + Handle blank lines correctly in line blocks (Alexander Krotov, #3881).
5180 Previously pandoc would sometimes combine two line blocks separated
5181 by blanks, and ignore trailing blank lines within the line block.
5182 + Fix indirect hyperlink targets (#512).
5184 * Markdown reader:
5186 + Allow attributes in reference links to start on next line (#3674).
5187 + Parse YAML metadata in a context that sees footnotes defined in
5188 the body of the document (#1279).
5189 + When splitting pipe table cells, skip tex math (#3481).
5190 You might have a `|` character inside math. (Or for that matter
5191 something that the parser might mistake for raw HTML.)
5192 + Treat span with class `smallcaps` as SmallCaps.
5193 This allows users to specify small caps in Markdown this way:
5194 `[my text]{.smallcaps}` (#1592).
5195 + Fixed internal header links (#2397).
5196 This patch also adds `shortcut_reference_links` to the list
5197 of mmd extensions.
5198 + Treat certain environments as inline
5199 when they occur without space surrounding them (#3309, #2171).
5200 E.g. equation, math. This avoids incorrect vertical space
5201 around equations.
5202 + Optimized `nonindentSpaces`. Makes the benchmark go from 40 to 36 ms.
5203 + Allow latex macro definitions indented 1-3 spaces.
5204 Previously they only worked if nonindented.
5205 + Improved parsing of indented raw HTML blocks (#1841).
5206 Previously we inadvertently interpreted indented HTML as
5207 code blocks. This was a regression. We now seek to determine the
5208 indentation level of the contents of an HTML block, and (optionally)
5209 skip that much indentation. As a side effect, indentation may be
5210 stripped off of raw HTML blocks, if `markdown_in_html_blocks` is
5211 used. This is better than having things interpreted as indented
5212 code blocks.
5213 + Fixed smart quotes after emphasis (#2228). E.g. in `*foo*'s 'foo'`.
5214 + Warn for notes defined but not used (#1718).
5215 + Use `anyLineNewline` (Alexander Krotov).
5216 + Interpret YAML metadata as Inlines when possible (#3755). If
5217 the metadata field is all on one line, we try to interpret it as
5218 Inlines, and only try parsing as Blocks if that fails. If it
5219 extends over one line (including possibly the `|` or `>` character
5220 signaling an indented block), then we parse as Blocks. This was
5221 motivated by some German users finding that `date: '22. Juin 2017'`
5222 got parsed as an ordered list.
5223 + Fixed spurious parsing as citation as reference def (#3840).
5224 We now disallow reference keys starting with `@` if the
5225 `citations` extension is enabled.
5226 + Parse `-@roe` as suppress-author citation (pandoc-citeproc#237).
5227 Previously only `[-@roe]` (with brackets) was recognized as
5228 suppress-author, and `-@roe` was treated the same as `@roe`.
5229 + Fixed parsing of fenced code after list when there is no intervening
5230 blank line (#3733).
5231 + Allow raw latex commands starting with `\start` (#3558). Previously
5232 these weren't allowed because they were interpreted as starting
5233 ConTeXt environments, even without a corresponding `\stop`...
5234 + Added `inlines`, `inlines1`.
5235 + Require nonempty alt text for `implicit_figures` (#2844).
5236 A figure with an empty caption doesn't make sense.
5237 + Removed texmath macro material; now all this is handled
5238 in the LaTeX reader functions.
5239 + Fixed bug with indented code following raw LaTeX (#3947).
5241 * LaTeX reader:
5243 + Rewrote LaTeX reader with proper tokenization (#1390,
5244 #2118, #3236, #3779, #934, #982). This rewrite is primarily
5245 motivated by the need to get macros working properly. A side benefit
5246 is that the reader is significantly faster. We now tokenize the
5247 input text, then parse the token stream. Macros modify the token
5248 stream, so they should now be effective in any context, including
5249 math. Thus, we no longer need the clunky macro processing
5250 capacities of texmath.
5251 + Parse `\,` to `\8198` (six-per-em space) (Henri Werth).
5252 + Allow `\newcommand\foo{blah}` without braces.
5253 + Support `\lstinputlisting` (#2116).
5254 + Issue warnings when skipping unknown latex commands (#3392).
5255 + Include contents of `\parbox`.
5256 + Allow `\hspace` and `\vspace` to count as raw block or inline.
5257 Previously we would refuse to parse anything as raw inline if
5258 it was in the `blockCommands` list. Now we allow exceptions
5259 if they're listed under ignoreInlines in inlineCommands.
5260 This should make it easier e.g. to include an `\hspace`
5261 between two side-by-side raw LaTeX tables.
5262 + Don't drop contents of `\hypertarget`.
5263 + Handle spaces before `\cite` arguments.
5264 + Allow newpage, clearpage, pagebreak in inline contexts as well as
5265 block contexts (#3494).
5266 + Treat `{{xxx}}` the same as `{xxx}` (#2115).
5267 + Use `pMacroDefinition` in macro (for more direct parsing).
5268 Note that this means that `macro` will now parse one
5269 macro at a time, rather than parsing a whole group together.
5270 + Fixed failures on \ref{}, \label{} with `+raw_tex`. Now these
5271 commands are parsed as raw if `+raw_tex`; otherwise, their argument
5272 is parsed as a bracketed string.
5273 + Don't crash on empty `enumerate` environment (#3707).
5274 + Handle escaped `&` inside table cell (#3708).
5275 + Handle block structure inside table cells (#3709). `minipage` is no
5276 longer required.
5277 + Handle some width specifiers on table columns (#3709). Currently
5278 we only handle the form `0.9\linewidth`. Anything else would have
5279 to be converted to a percentage, using some kind arbitrary assumptions
5280 about line widths.
5281 + Make sure `\write18` is parsed as raw LaTeX. The change is in the
5282 LaTeX reader's treatment of raw commands, but it also affects the
5283 Markdown reader.
5284 + Fixed regression with starred environment names (#3803).
5285 + Handle optional args in raw `\titleformat` (#3804).
5286 + Improved heuristic for raw block/inline. An unknown command at the
5287 beginning of the line that could be either block or inline is
5288 treated as block if we have a sequence of block commands followed by
5289 a newline or a `\startXXX` command (which might start a raw ConTeXt
5290 environment).
5291 + Don't remove macro definitions from the output, even if
5292 `Ext_latex_macros` is set, so that macros will be applied.
5293 Since they're only applied to math in Markdown, removing the macros
5294 can have bad effects. Even for math macros, keeping them should be
5295 harmless.
5296 + Removed `macro`. It is no longer necessary, since the
5297 `rawLaTeXBlock` parser will parse macro definitions. This also avoids
5298 the need for a separate `latexMacro` parser in the Markdown reader.
5299 + Use `label` instead of `data-label` for label in caption (#3639).
5300 + Fixed space after \figurename etc.
5301 + Resolve references to section numbers.
5302 + Fix `\let\a=0` case, with single character token.
5303 + Allow `@` as a letter in control sequences. `@` is commonly used
5304 in macros using `\makeatletter`. Ideally we'd make the tokenizer
5305 sensitive to `\makeatletter` and `\makeatother`, but until then this
5306 seems a good change.
5307 + Track header numbers and correlate with labels.
5308 + Allow `]` inside group in option brackets (#3857).
5309 + lstinline with braces can be used (verb cannot be used with braces)
5310 (Marc Schreiber, #3535).
5311 + Fix keyval function: pandoc did not parse options in braces correctly
5312 (Marc Schreiber, #3642).
5313 + When parsing raw LaTeX commands, include trailing space (#1773).
5314 Otherwise things like `\noindent foo` break and turn into
5315 `\noindentfoo`. Affects `-f latex+raw_tex` and `-f markdown` (and other
5316 formats that allow `raw_tex`).
5317 + Don't treat "..." as Quoted (#3958). This caused quotes to be omitted in
5318 `\texttt` contexts.
5319 + Add tests for existing `\includegraphics` behaviour (Ben Firshman).
5320 + Allow space before `=` in bracketd options (Ben Firshman).
5321 + Be more forgiving in parsing command options. This was needed, for
5322 example, to make some minted options work.
5323 + Strip off quotes in `\include` filenames.
5325 * Added `Text.Pandoc.CSV`, simple (unexported) CSV parser.
5327 * `Text.Pandoc.PDF`:
5329 + Got `--resource-path` working with PDF output (#852).
5330 + Fetch images when generating PDF via context (#3380).
5331 To do this, we create the temp directory as a subdirectory
5332 of the working directory. Since context mk IV by default looks
5333 for images in the parent directory, this works.
5334 + Use `report` instead of `warn`, make it sensitive to verbosity settings.
5335 + Use `fillMediaBag` and `extractMedia` to extract media to temp dir.
5336 This reduces code duplication.
5337 + `html2pdf`: use stdin instead of intermediate HTML file
5338 + Removed useless `TEXINPUTS` stuff for `context2pdf`. mkiv context
5339 doesn't use `TEXINPUTS`.
5341 * `Text.Pandoc.Pretty`:
5343 + Simplified definition of `realLength`.
5344 + Don't error for blocks of size < 1. Instead, resize to 1 (see #1785).
5346 * `Text.Pandoc.MIME`:
5348 + Use `application/javascript` (not `application/x-javascript`).
5349 + Added `emf` to mimeTypes with type `application/x-msmetafile` (#1713).
5351 * `Text.Pandoc.ImageSize`:
5353 + Improve SVG image size code (Marc Schreiber, #3580).
5354 + Make `imageSize` recognize basic SVG dimensions (Mauro Bieg, #3462).
5356 * Use `Control.Monad.State.Strict` throughout. This gives 20-30% speedup
5357 and reduction of memory usage in most of the writers.
5359 * Use `foldrWithKey` instead of deprecated `foldWithKey`.
5361 * `Text.Pandoc.SelfContained`:
5363 + Fixed problem with embedded fonts (#3629).
5364 + Refactored getData from `getDataURI` in `SelfContained`.
5365 + Don't use data URIs for script or style (#3423). Instead, just use
5366 script or style tags with the content inside. The old method with
5367 data URIs prevents certain optimizations outside pandoc. Exception:
5368 data URIs are still used when a script contains `</script>` or a
5369 style contains `</`.
5370 + SelfContained: Handle URL inside material retrieved from a URL
5371 (#3629). This can happen e.g. with an @import of a google web font.
5372 (What is imported is some CSS which contains an url reference
5373 to the font itself.) Also, allow unescaped pipe (|) in URL.
5374 + Load resources from `data-src` (needed for lazy loading in
5375 reveal.js slide shows).
5376 + Handle `data-background-image` attribute on section (#3979).
5378 * `Text.Pandoc.Parsing`:
5380 + Added `indentWith` (Alexander Krotov, #3687).
5381 + Added `stateCitations` to `ParserState`.
5382 + Removed `stateChapters` from `ParserState`.
5383 + In `ParserState`, make `stateNotes'` a Map, add `stateNoteRefs`.
5384 + Added `gobbleSpaces` and `gobbleAtMostSpaces`.
5385 + Adjusted type of `insertIncludedFile` so it can be used with token
5386 parser.
5387 + Replace old texmath macro stuff from Parsing. Use Macro from
5388 Text.Pandoc.Readers.LaTeX.Types instead.
5389 + Export `insertIncludedFile`.
5390 + Added `HasLogMessages`, `logMessage`, `reportLogMessages` (#3447).
5391 + Replace partial with total function (Albert Krewinkel).
5392 + Introduce `HasIncludeFiles` type class (Albert Krewinkel). The
5393 `insertIncludeFile` function is generalized to work with all parser
5394 states which are instances of that class.
5395 + Add `insertIncludedFilesF` which returns F blocks (Albert Krewinkel).
5396 The `insertIncludeFiles` function was generalized and renamed
5397 to `insertIncludedFiles'`; the specialized versions are based on that.
5398 + `many1Till`: Check for the end condition before parsing (Herwig
5399 Stuetz). By not checking for the end condition before the first
5400 parse, the parser was applied too often, consuming too much of the
5401 input. This only affects `many1Till p end` where `p` matches on a
5402 prefix of `end`.
5403 + Provide `parseFromString` (#3690). This is a version of
5404 `parseFromString` specialied to ParserState, which resets
5405 `stateLastStrPos` at the end. This is almost always what we want.
5406 This fixes a bug where `_hi_` wasn't treated as emphasis in the
5407 following, because pandoc got confused about the position of the
5408 last word: `- [o] _hi_`.
5409 + Added `takeP`, `takeWhileP` for efficient parsing of `[Char]`.
5410 + Fix `blanklines` documentation (Alexander Krotov, #3843).
5411 + Give less misleading line information with `parseWithString`.
5412 Previously positions would be reported past the end of the chunk.
5413 We now reset the source position within the chunk and report
5414 positions "in chunk."
5415 + Add `anyLineNewline` (Alexander Krotov).
5416 + Provide shared F monad functions for Markdown and Org readers
5417 (Albert Krewinkel). The `F` monads used for delayed evaluation
5418 of certain values in the Markdown and Org readers are based on a
5419 shared data type capturing the common pattern of both `F` types.
5420 + Add `returnF` (Alexander Krotov).
5421 + Avoid parsing `Notes:**` as a bare URI (#3570). This avoids parsing
5422 bare URIs that start with a scheme + colon + `*`, `_`, or `]`.
5423 + Added `readerAbbreviations` to `ParserState`. Markdown reader
5424 now consults this to determine what is an abbreviation.
5425 + Combine grid table parsers (Albert Krewinkel, #3638). The grid table
5426 parsers for markdown and rst was combined into one single
5427 parser `gridTable`, slightly changing parsing behavior of both
5428 parsers: (1) The markdown parser now compactifies block content
5429 cell-wise: pure text blocks in cells are now treated as paragraphs
5430 only if the cell contains multiple paragraphs, and as plain blocks
5431 otherwise. Before, this was true only for single-column tables. (2)
5432 The rst parser now accepts newlines and multiple blocks in header
5433 cells.
5434 + Generalize tableWith, gridTableWith (Albert Krewinkel).
5435 The parsing functions `tableWith` and `gridTableWith` are generalized
5436 to work with more parsers. The parser state only has to be an
5437 instance of the `HasOptions` class instead of requiring a concrete
5438 type. Block parsers are required to return blocks wrapped into a
5439 monad, as this makes it possible to use parsers returning results
5440 wrapped in `Future`s.
5442 * `Text.Pandoc.Shared`:
5444 + Simplify `toRomanNumeral` using guards (Alexander Krotov, #3445)
5445 + `stringify`: handle Quoted better (#3958). Previously we were losing
5446 the quotation marks in Quoted elements.
5448 * `Text.Pandoc.Writers.Shared`:
5450 + Export `metaToJSON'`, `addVariablesToJSON` (#3439).
5451 This allows us to add the variables AFTER using the metadata
5452 to generate a YAML header (in the Markdown writer).
5453 + Added `unsmartify` (previously in RST writer).
5454 Undo literal double curly quotes. Previously we left these.
5455 + Generalize type of `metaToJSON` so it can take a Text. Previously a
5456 String was needed as argument; now any ToJSON instance will do.
5457 + Added `gridTable` (previously in Markdown writer).
5458 + `gridTable`: Refactored to use widths in chars.
5459 + `gridTable`: remove unnecessary extra space in cells.
5460 + Fixed `addVariablesToJSON`. It was previously not allowing multiple
5461 values to become lists.
5462 + Pipe tables: impose minimum cell size (see #3526).
5465 [default template changes]
5467 * HTML templates (including EPUB and HTML slide show templates):
5469 + Make default.html5 polyglot markup conformant (John Luke Bentley,
5470 #3473). Polyglot markup is HTML5 that is also valid XHTML. See
5471 <https://www.w3.org/TR/html-polyglot>. With this change, pandoc's
5472 html5 writer creates HTML that is both valid HTML5 and valid XHTML.
5473 + Regularized CSS in html/epub/html slide templates (#3485).
5474 All templates now include `code{white-space: pre-wrap}`
5475 and CSS for `q` if `--html-q-tags` is used. Previously some templates
5476 had `pre` and others `pre-wrap`; the `q` styles were only sometimes
5477 included.
5478 + CSS for `.smallcaps`, (Mauro Bieg, #1592)
5479 + `default.revealjs`: make `history` default to true.
5480 + `default.revealjs`: use lazy loading (#2283).
5481 + `default.revealjs`: add `mathjax` variable and some conditional code
5482 to use the MathJaX plugin.
5483 + `default.slidy` uses `https` instead of `http` (ickc, #3848).
5484 + `default.dzslides`: Load Google Font using HTTPS by default
5485 (Yoan Blanc).
5487 * DocBook5 template: Use `lang` and `subtitle` variables (Jens Getreu,
5488 #3855).
5490 * LaTeX/Beamer template:
5492 + Combine LaTeX/Beamer templates (Andrew Dunning, #3878).
5493 `default.beamer` has been removed; beamer now uses the
5494 `default.latex` template. Beamer-specific parts are conditional
5495 on the `beamer` variable set by the writer. Note that
5496 `pandoc -D beamer` will return this (combined) template.
5497 + Use `xcolor` for `colorlinks` option (Andrew Dunning, #3877).
5498 Beamer loads `xcolor` rather than `color`, and thus the
5499 `dvipsnames` option doesn't take effect. This also provides a wider
5500 range of colour selections with the `svgnames` option.
5501 + Use starred versions of `xcolor` names (Andrew Dunning).
5502 Prevents changes to documents defined using the `dvipsnames` list (e.g.
5503 `Blue` gives a different result with svgnames enabled).
5504 + Load `polyglossia` after header-includes (#3898). It needs to be
5505 loaded as late as possible.
5506 + Use `unicode-math` (Vaclav Haisman). Use `mathspec` with only
5507 XeLaTeX on request.
5508 + Don't load `fontspec` before `unicode-math` (over there).
5509 The `unicode-math` package loads `fontspec` so explicit loading of
5510 `fontspec` before `unicode-math` is not necessary.
5511 + Use `unicode-math` by default in default.latex template. mathspec will
5512 be used in xelatex if the `mathspec` variable is set; otherwise
5513 unicode-math will be used (Václav Haisman).
5514 + Use `dvipsnames` options when `colorlinks` specified (otherwise
5515 we get an error for `maroon`) (Thomas Hodgson).
5516 + Added beamer `titlegraphic` and `logo` variables (Thomas Hodgson).
5517 + Fix typo in fix for notes in tables (#2378, zeeMonkeez).
5518 + Fix `hyperref` options clash (Andrew Dunning, #3847) Avoids an options
5519 clash when loading a package (e.g. `tufte-latex`) that uses
5520 `hyperref` settings different from those in the template.
5521 + Add `natbiboptions` variable (#3768).
5522 + Fix links inside captions in LaTeX output with links-as-notes
5523 (Václav Haisman, #3651). Declare our redefined `\href` robust.
5524 + Load `parskip` before `hyperref` (Václav Haisman, #3654).
5525 + Allow setting Japanese fonts when using LuaLaTeX (Václav Haisman,
5526 #3873). by using the `luatexja-fontspec` and `luatexja-preset`
5527 packages. Use existing `CJKmainfont` and `CJKoptions` template
5528 variables. Add `luatexjafontspecoptions` for `luatexja-fontspec`
5529 and `luatexjapresetoptions` for `luatexja-preset`.
5530 + Added `aspectratio` variable to beamer template (Václav Haisman,
5531 #3723).
5532 + Modified template.latex to fix XeLaTex being used with tables
5533 (lwolfsonkin, #3661). Reordered `lang` variable handling to
5534 immediately before `bidi`.
5536 * ConTeXt template: Improved font handling: `simplefonts` is now
5537 obsolete in ConTeXt (Pablo Rodríguez).
5540 [documentation improvements]
5542 * MANUAL.txt:
5544 + Add URL for Prince HTML > PDF engine (Ian, #3919).
5545 + Document that content above slide-level will be omitted in
5546 slide shows. See #3460, #2265.
5547 + Explain `--webtex` SVG url (Mauro Bieg, #3471)
5548 + Small clarification in YAML metadata section.
5549 + Document that html4 is technically XHTML 1.0 transitional.
5550 + Remove refs to highlighting-kate (#3672).
5551 + Document ibooks specific epub metadata.
5552 + Clarify that mathml is used for ODT math.
5553 + Mention limitations of Literate Haskell Support (#3410,
5554 Joachim Breitner).
5555 + Add documentation of limitations of grid tables (Stephen
5556 McDowell, #3864).
5557 + Clarify that meta-json contains transformed values (Jakob Voß,
5558 #3491) Make clear that template variable `meta-json` does not
5559 contain plain text values or JSON output format but field values
5560 transformed to the selected output format.
5562 * COPYRIGHT:
5564 + Clarify that templates are dual-licensed.
5565 + Clarify that pandoc-types is BSD3 licensed.
5566 + List new files not written by jgm (Albert Krewinkel).
5567 + Update dates in copyright notices (Albert Krewinkel). This follows
5568 the suggestions given by the FSF for GPL licensed software.
5569 <https://www.gnu.org/prep/maintain/html_node/Copyright-Notices.html>
5571 * INSTALL.md:
5573 + Improved instructions for tests with patterns.
5574 + Put RPM-based distros on separate point (Mauro Bieg, #3449)
5576 * CONTRIBUTING.md:
5578 + Fixed typos (Wandmalfarbe, #3479).
5579 + Add "ask on pandoc-discuss" (Mauro Bieg).
5581 * Add lua filter documentation in `doc/lua-filters.md`. Note that the
5582 end of this document is autogenerated from `data/pandoc.lua`
5583 using `make doc/lua-filters.md`, which uses `tools/ldoc.ltp`
5584 (Albert Krewinkel).
5586 * Add `doc/filters.md`. This is the old scripting tutorial from
5587 the website.
5589 * Add `doc/using-the-pandoc-api.md` (#3289). This gives an introduction
5590 to using pandoc as a Haskell library.
5593 [build infrastructure improvements]
5595 * Removed `data/templates` submodule. Templates are now a subtree
5596 in `data/templates`. This removes the need to do `git submodule
5597 update`.
5599 * Renamed `tests` -> `test`.
5601 * Remove `https` flag. Always build with HTTPS support.
5603 * Use `file-embed` instead of `hsb2hs` to embed data files when
5604 `embed_data_files` flag is set. `file-embed` gives us better dependency
5605 tracking: if a data file changes, ghc/stack/cabal know to recompile
5606 the Data module. This also removes `hsb2hs` as a build dependency.
5608 * Add `custom-setup` stanza to pandoc, lowercase field names.
5610 * Add `static` Cabal flag.
5612 * Name change OSX -> MacOS. Add a -MacOS suffix to mac package rather
5613 than -OSX. Changed local names from osx to macos.
5615 * make_macos_package.sh - Use strip to reduce executable size.
5617 * Revised binary linux package. Now a completely static executable
5618 is created, using Docker and alpine. We create both a deb and a
5619 tarball. The old `deb` directory has been replaced with a `linux`
5620 directory. Running `make` in the `linux` directory should
5621 perform the build, putting the binary packages in `artifacts/`.
5623 * `linux/control.in`: add `Replaces:`, so existing pandoc-citeproc and
5624 pandoc-data packages will be uninstalled; this package provides
5625 both (#3822). Add latex packages as 'suggested', update
5626 description.
5628 * Remove cpphs build requirement -- it is no longer needed.
5630 * Replaced `{deb,macos,windows}/stack.yaml` with `stack.pkg.yaml`.
5632 * Name change OSX -> macOS (ickc, #3869).
5634 * Fix casing of Linux, UNIX, and Windows (ickc).
5636 * `.travis.yml`: create a source dist and do cabal build and test there.
5637 That way we catch errors due to files missing from the data
5638 section of pandoc.cabal.
5640 * Makefile:
5642 + Split `make haddock` from `make full`.
5643 + Add BRANCH variable for winpkg.
5644 + Add `lint` target.
5645 + Improve `make full`. Disable optimizations.
5646 Build everything, inc. trypandoc and benchmarks. Use parallel build.
5647 + Allow `make test` to take `TESTARGS`.
5649 * Added new command tests (`Tests.Command`), using small text files
5650 in `test/command/`. Any files added in this directory will be treated
5651 as shell tests (see smart.md for an example). This makes it very easy
5652 to add regression tests etc.
5654 * Test fixes so we can find data files. In old tests & command tests,
5655 we now set the environment variable `pandoc_datadir`. In lua tests,
5656 we set the datadir explicitly.
5658 * Refactored `compareOutput` in docx writer test.
5660 * Consolidated some common functions in `Tests.Helper`.
5662 * Small change to unbalanced bracket test to speed up test suite.
5664 * Speed up Native writer quickcheck tests.
5666 * Use tasty for tests rather than test-framework.
5668 * Add simple Emacs mode to help with Pandoc templates editing.
5669 (Václav Haisman, #3889). `tools/pandoc-template-mode.el`
5672pandoc (1.19.2)
5674 * Use skylighting library instead of highlighting-kate for syntax
5675 highlighting. Skylighting is faster and more accurate (#3363).
5676 Later we'll be able to add features like warning messages, dynamic
5677 loading of xml syntax definitions, and dynamic loading of themes.
5679 * Added a new highlight style, `breezeDark`.
5681 * Text.Pandoc.Highlighting: Update list of `listings` languages (#3374).
5682 This allows more languages to be used when using the `--listings`
5683 option.
5685 * OpenDocument writer:
5687 + Small refactoring. Removed separate 'parent' parameter in paraStyle.
5688 + Don't profilerate text styles unnecessarily (#3371).
5689 This change makes the writer create only as many temporary
5690 text styles as are absolutely necessary. It also consolidates
5691 adjacent nodes with the same style.
5693 * Org reader (Albert Krewinkel):
5695 + Allow short hand for single-line raw blocks (Albert Krewinkel,
5696 #3366). Single-line raw blocks can be given via `#+FORMAT: raw line`,
5697 where `FORMAT` must be one of `latex`, `beamer`, `html`, or `texinfo`.
5698 + Accept org-ref citations followed by commas (Albert Krewinkel).
5699 Bugfix for an issue which, whenever the citation was immediately
5700 followed by a comma, prevented correct parsing of org-ref citations.
5701 + Ensure emphasis markup can be nested. Nested emphasis markup (e.g.
5702 `/*strong and emphasized*/`) was interpreted incorrectly in that the
5703 inner markup was not recognized.
5704 + Remove pipe char irking the haddock coverage tool (Albert Krewinkel).
5706 * Docx reader: Empty header should be list of lists (Jesse Rosenthal).
5707 In the past, the docx reader wrote an empty header as an empty list. It
5708 should have the same width as a row (and be filled with empty cells).
5710 * MediaWiki reader:
5712 + Improved handling of display math (#3362). Sometimes display math is
5713 indented with more than one colon. Previously we handled these cases
5714 badly, generating definition lists and missing the math.
5715 + Fix quotation mark parsing (#3336, tgkokk). Change MediaWiki reader's
5716 behavior when the smart option is parsed to match other readers'
5717 behavior.
5719 * Markdown reader:
5721 + Fixed `-f markdown_github-hard_line_breaks+escaped_line_breaks`
5722 (#3341). Previously this did not properly enable escaped line breaks.
5723 + Disallow space between inline code and attributes (#3326, #3323,
5724 Mauro Bieg).
5726 * DocBook5 writer: make id attribute xml:id, fixes #3329 (#3330, Mauro Bieg).
5728 * Added some test cases for ODT reader (#3306, #3308, Hubert Plociniczak).
5730 * LaTeX writer: allow tables with empty cells to count as "plain."
5731 This addresses a problem of too-wide tables when empty cells
5732 are used. Thanks to Joost Kremers for reporting the issue.
5734 * Org writer: prefix footnote numbers with `fn:` (Albert Krewinkel).
5735 Unprefixed numbers where used by older org-mode versions, but are no
5736 longer supported.
5738 * HTML writer: don't process pars with empty RawInline, (#1040, #3327,
5739 Mauro Bieg).
5741 * Markdown writer: Fix display math with `--webtex` (#3298).
5743 * Fix sample.lua so it properly handles raw blocks/inlines (#3358,
5744 bumper314).
5746 * Templates:
5748 + default.latex: Moved geometry after hyperref (Václav Haisman).
5749 Otherwise PDF sizes can be wrong in some circumstances.
5750 + Copied a few changes from default.latex to default.beamer
5751 (Wandmalfarbe).
5752 + default.latex, default.beamer: Changed position of `\VerbatimNotes`
5753 and `fancyvrb`. This fixes hyperlinks on footnotes in documents
5754 that contain verbatim in notes (#3361). (Note: the beamer template
5755 was updated to match the LaTeX template, but at this point verbatim
5756 in notes seems not to work in beamer.)
5757 + default.latex: Allow passing `microtypeoptions` to microtype
5758 (Václav Haisman).
5759 + default.latex: Add hyphen option to url package.
5760 + default.docbook5: Fix namespace declarations (Mauro Bieg).
5762 * Moved `make_osx_package.sh` to `osx/` directory.
5764 * Travis continuous integration:
5766 + Fix false positives with dist build.
5767 + Speed improvements (Kolen Cheung, #3304, #3357).
5769 * MANUAL.txt:
5771 + Clarify that blank space is needed around footnotes (#3352).
5772 + Fixed typo (#3351, Alexey Rogechev).
5773 + Note that `--wrap=auto` does not work in HTML output.
5774 + Default `--columns` width is 72, not 80.
5775 + Fixed broken links (#3316, Kolen Cheung).
5776 + Document usage of `@*` in nocite section (#3333, John Muccigrosso).
5778 * INSTALL.md:
5780 + Indent code so it's properly formatted (#3335, Bheesham Persaud).
5781 + Added instructions for extracting binary from OSX, Windows packages.
5783 * CONTRIBUTING.md: Describe labels currently used in issue tracker
5784 (Albert Krewinkel). The labels have changed over time, the list of
5785 labels is updated to reflect the current set of labels used in the
5786 issue tracker.
5788 * Rearrange and extend badges in README (Albert Krewinkel, #3354)
5790 * Bumped version bounds for dependencies.
5793pandoc (1.19.1)
5795 * Set `PANDOC_VERSION` environment variable for filters (#2640).
5796 This allows filters to check the pandoc version that produced
5797 the JSON they are receiving.
5799 * Docx reader: Ensure one-row tables don't have header (#3285,
5800 Jesse Rosenthal). Tables in MS Word are set by default to have
5801 special first-row formatting, which pandoc uses to determine whether
5802 or not they have a header. This means that one-row tables will, by
5803 default, have only a header -- which we imagine is not what people
5804 want. This change ensures that a one-row table is not understood to
5805 be a header only. Note that this means that it is impossible to
5806 produce a header-only table from docx, even though it is legal
5807 pandoc. But we believe that in nearly all cases, it will be an
5808 accidental (and unwelcome) result
5810 * HTML reader:
5812 + Fixed some bad regressions in HTML table parser (#3280).
5813 This regression leads to the introduction of empty rows
5814 in some circumstances.
5815 + Understand `style=width:` as well as `width` in `col` (#3286).
5817 * RST reader:
5819 + Print warnings when keys, substitition, notes not found.
5820 Previously the parsers failed and we got raw text. Now we get a
5821 link with an empty URL, or empty inlines in the case of a note or
5822 substitution.
5824 + Fix hyperlink aliases (#3283).
5826 * Man writer: Ensure that periods are escaped at beginning of line
5827 (#3270).
5829 * LaTeX writer: Fix unnumbered headers when used with `--top-level`
5830 (#3272, Albert Krewinkel). Fix interaction of top-level divisions
5831 `part` or `chapter` with unnumbered headers when emitting LaTeX. Headers
5832 are ensured to be written using stared commands (like `\subsection*{}`).
5834 * LaTeX template: use comma not semicolon to separate keywords for
5835 `pdfkeywords`. Thanks to Wandmalfarbe.
5837 * Markdown writer: Fixed incorrect word wrapping (#3277). Previously pandoc
5838 would sometimes wrap lines too early due to this bug.
5840 * Text.Pandoc.Pretty: Added `afterBreak` [API change]. This makes it
5841 possible to insert escape codes for content that needs escaping at the
5842 beginning of a line.
5844 * Removed old MathMLInHTML.js from 2004, which should no longer
5845 be needed for MathML with modern browsers.
5847 * Fixed tests with dynamic linking (#2709).
5849 * Makefile: Use stack instead of cabal for targets. This is just
5850 a convenience for developers.
5852 * Fixed bash completion of filenames with space (#2749).
5854 * MANUAL: improved documentation on how to create a custom `reference.docx`.
5856 * Fix minor spelling typos in the manual (#3273, Anthony Geoghegan)
5858pandoc (1.19)
5860 * Changed resolution of filter paths.
5862 + We now first treat the argument of `--filter` as a full (absolute
5863 or relative) path, looking for a program there. If it's found, we
5864 run it.
5865 + If not, and if it is a simple program name or a relative path, we
5866 try resolving it relative to `$DATADIR/filters`.
5867 + If this fails, then we treat it as a program name and look in the
5868 user's PATH.
5869 + Removed a hardcoded '/' that may have caused problems with
5870 Windows paths.
5872 Previously if you did `--filter foo` and you had `foo` in your path and
5873 also an executable `foo` in your working directory, the one in the path
5874 would be used. Now the one in the working directory is used.
5876 In addition, when you do `--filter foo/bar.hs`, pandoc will now find a
5877 filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a
5878 `foo/bar.hs` relative to the working directory.
5880 * Allow `file://` URIs as arguments (#3196). Also improved default reader
5881 format detection. Previously with a URI ending in .md or .markdown,
5882 pandoc would assume HTML input. Now it treats these as markdown.
5884 * Allow to overwrite top-level division type heuristics (#3258,
5885 Albert Krewinkel). Pandoc uses heuristics to determine the most
5886 reasonable top-level division type when emitting LaTeX or
5887 Docbook markup. It is now possible to overwrite this implicitly set
5888 top-level division via the `top-level-division` command line parameter.
5890 * Text.Pandoc.Options \[API changes\]:
5892 + Removed `writerStandalone` field in `WriterOptions`, made
5893 `writerTemplate` a `Maybe` value. Previously setting
5894 `writerStandalone = True` did nothing unless a template was provided
5895 in writerTemplate. Now a fragment will be generated if
5896 `writerTemplate` is `Nothing`; otherwise, the specified template
5897 will be used and standalone output generated.
5898 + `Division` has been renamed `TopLevelDivision` (#3197). The
5899 `Section`, `Chapter`, and `Part` constructors were renamed to
5900 `TopLevelSection`, `TopLevelChapter`, and
5901 `TopLevelPart`, respectively. An additional `TopLevelDefault`
5902 constructor was added, which is now also the new default value of
5903 the `writerTopLevelDivision` field in `WriterOptions`.
5905 * Improved error if they give wrong arg to `--top-level-division`.
5907 * Use new module from texmath to lookup MS font codepoints in Docx reader.
5908 Removed unexported module Text.Pandoc.Readers.Docx.Fonts. Its code now
5909 lives in texmath (0.9).
5911 * DocBook reader: Fixed xref lookup (#3243). It previously only worked
5912 when the qnames lacked the docbook namespace URI.
5914 * HTML reader:
5916 + Improved table parsing (#3027). We now check explicitly for non-1
5917 rowspan or colspan attributes, and fail when we encounter them.
5918 Previously we checked that each row had the same number of cells,
5919 but that could be true even with rowspans/colspans. And there are
5920 cases where it isn't true in tables that we can handle fine -- e.g.
5921 when a tr element is empty. So now we just pad rows with empty cells
5922 when needed.
5923 + Treat `<math>` as MathML by default unless something else is
5924 explicitly specified in xmlns. Provided it parses as MathML,
5925 of course. Also fixed default which should be to inline math if no
5926 display attribute is used.
5927 + Only treat "a" element as link if it has href (#3226). Otherwise
5928 treat as span.
5930 * Docx reader (Jesse Rosenthal):
5932 + Add a placeholder value for CHART. We wrap `[CHART]` in a
5933 `<span class="chart">`. Note that it maps to inlines because, in
5934 docx, anything in a drawing tag can be part of a larger paragraph.
5935 + Be more specific in parsing images We not only want `w:drawing`,
5936 because that could also include charts. Now we specify
5937 `w:drawing/pic:pic`. This shouldn't change behavior at all, but it's
5938 a first step toward allowing other sorts of drawing data as well.
5939 + Abstract out function to avoid code repetition.
5940 + Update tests for img title and alt (#3204).
5941 + Handle Alt text and titles in images. We use the "description" field
5942 as alt text and the "title" field as title. These can be accessed
5943 through the "Format Picture" dialog in Word.
5944 + Docx reader utils: handle empty namespace in `elemName`. Previously,
5945 if given an empty namespace `(elemName ns "" "foo")` `elemName`
5946 would output a QName with a `Just ""` namespace. This is never what
5947 we want. Now we output a `Nothing`. If someone *does* want a
5948 `Just ""` in the namespace, they can enter the QName
5949 value explicitly.
5951 * ODT reader/writer:
5953 + Inline code when text has a special style (Hubert Plociniczak). When
5954 a piece of text has a text `Source_Text` then we assume that this is
5955 a piece of the document that represents a code that needs to
5956 be inlined. Adapted the writer to also reflect that change.
5957 Previously it was just writing a 'preformatted' text using a
5958 non-distinguishable font style. Code blocks are still not recognized
5959 by the ODT reader. That's a separate issue.
5960 + Infer table's caption from the paragraph (#3224,
5961 Hubert Plociniczak). ODT's reader always put empty captions for the
5962 parsed tables. This commit
5964 1. checks paragraphs that follow the table definition
5965 2. treats specially a paragraph with a style named 'Table'
5966 3. does some postprocessing of the paragraphs that combines tables
5967 followed immediately by captions
5969 The ODT writer used the `TableCaption` style for the caption
5970 paragraph. This commit follows the OpenOffice approach which allows
5971 for appending captions to table but uses a built-in style named
5972 `Table` instead of `TableCaption`. Users of a custom `reference.odt`
5973 should change the style's name from `TableCaption` to `Table`.
5975 * ODT reader: Infer tables' header props from rows (#3199,
5976 Hubert Plociniczak). ODT reader simply provided an empty header list
5977 which meant that the contents of the whole table, even if not empty, was
5978 simply ignored. While we still do not infer headers we at least have to
5979 provide default properties of columns.
5981 * Markdown reader:
5983 + Allow reference link labels starting with `@...` if `citations`
5984 extension disabled (#3209). Example: in
5986 \[link text\]\[@a\]
5988 `link text` isn't hyperlinked because `[@a]` is parsed as
5989 a citation. Previously this happened whether or not the `citations`
5990 extension was enabled. Now it happens only if the `citations`
5991 extension is enabled.
5992 + Allow alignments to be specified in Markdown grid tables. For
5993 example,
5995 +-------+---------------+--------------------+
5996 | Right | Left | Centered |
5997 +=========:+:=================+:=============:+
5998 | Bananas | $1.34 | built-in wrapper |
5999 +-------+---------------+--------------------+
6001 + Allow Small Caps elements to be created using bracketed spans (as
6002 they already can be using HTML-syntax spans) (#3191, Kolen Cheung).
6004 * LaTeX reader:
6006 + Don't treat `\vspace` and `\hspace` as block commands (#3256).
6007 Fixed an error which came up, for example, with `\vspace` inside
6008 a caption. (Captions expect inlines.)
6009 + Improved table handling. We can now parse all of the tables emitted
6010 by pandoc in our tests. The only thing we don't get yet are
6011 alignments and column widths in more complex tables. See #2669.
6012 + Limited support for minipage.
6013 + Allow for `[]`s inside LaTeX optional args. Fixes cases like:
6014 + Handle BVerbatim from fancyvrb (#3203).
6015 + Handle hungarumlaut (#3201).
6016 + Allow beamer-style `<...>` options in raw LaTeX (also in Markdown)
6017 (#3184). This allows use of things like `\only<2,3>{my content}` in
6018 Markdown that is going to be converted to beamer.
6020 * Use pre-wrap for code in dzslides template (Nicolas Porcel). Otherwise
6021 overly long code will appear on every slide.
6023 * Org reader (Albert Krewinkel):
6025 + Respect column width settings (#3246). Table column properties can
6026 optionally specify a column's width with which it is displayed in
6027 the buffer. Some exporters, notably the ODT exporter in org-mode
6028 v9.0, use these values to calculate relative column widths. The org
6029 reader now implements the same behavior. Note that the org-mode
6030 LaTeX and HTML exporters in Emacs don't support this feature yet,
6031 which should be kept in mind by users who use the column
6032 widths parameters.
6033 + Allow HTML attribs on non-figure images (#3222). Images which are
6034 the only element in a paragraph can still be given HTML attributes,
6035 even if the image does not have a caption and is hence not a figure.
6036 The following will add set the `width` attribute of the image to
6037 `50%`:
6039 +ATTR\_HTML: :width 50%
6040 =======================
6042 \[\[file:image.jpg\]\]
6044 + Support `ATTR_HTML` for special blocks (#3182). Special
6045 blocks (i.e. blocks with unrecognized names) can be prefixed with an
6046 `ATTR_HTML` block attribute. The attributes defined in that
6047 meta-directive are added to the `Div` which is used to represent the
6048 special block.
6049 + Support the `todo` export option. The `todo` export option allows to
6050 toggle the inclusion of TODO keywords in the output. Setting this to
6051 `nil` causes TODO keywords to be dropped from headlines. The default
6052 is to include the keywords.
6053 + Add support for todo-markers. Headlines can have optional
6054 todo-markers which can be controlled via the `#+TODO`, `#+SEQ_TODO`,
6055 or `#+TYP_TODO` meta directive. Multiple such directives can be
6056 given, each adding a new set of recognized todo-markers. If no
6057 custom todo-markers are defined, the default `TODO` and `DONE`
6058 markers are used. Todo-markers are conceptually separate from
6059 headline text and are hence excluded when autogenerating
6060 headline IDs. The markers are rendered as spans and labelled with
6061 two classes: One class is the markers name, the other signals the
6062 todo-state of the marker (either `todo` or `done`).
6064 * LaTeX writer:
6066 + Use `\autocites*` when "suppress-author" citation used.
6067 + Ensure that simple tables have simple cells (#2666). If cells
6068 contain more than a single Plain or Para, then we need to set
6069 nonzero widths and put contents into minipages.
6070 + Remove invalid inlines in sections (#3218, Hubert Plociniczak).
6072 * Markdown writer:
6074 + Fix calculation of column widths for aligned multiline tables
6075 (#1911, Björn Peemöller). This also fixes excessive CPU and memory
6076 usage for tables when `--columns` is set in such a way that cells
6077 must be very tiny. Now cells are guaranteed to be big enough so that
6078 single words don't need to line break, even if this pushes the line
6079 length above the column width.
6080 + Use bracketed form for native spans when `bracketed_spans`
6081 enabled (#3229).
6082 + Fixed inconsistent spacing issue (#3232). Previously a tight bullet
6083 sublist got rendered with a blank line after, while a tight ordered
6084 sublist did not. Now we don't get the blank line in either case.
6085 + Fix escaping of spaces in super/subscript (#3225). Previously two
6086 backslashes were inserted, which gave a literal backslash.
6087 + Adjust widths in Markdown grid tables so that they match
6088 on round-trip.
6090 * Docx writer:
6092 + Give full detail when there are errors converting tex math.
6093 + Handle title text in images (Jesse Rosenthal). We already handled
6094 alt text. This just puts the image "title" into the docx
6095 "title" attr.
6096 + Fixed XML markup for empty cells (#3238). Previously the Compact
6097 style wasn't being applied properly to empty cells.
6099 * HTML writer:
6101 + Updated `renderHtml` import from blaze-html.
6103 * Text.Pandoc.Pretty:
6105 + Fixed some bugs that caused blank lines in tables (#3251). The bugs
6106 caused spurious blank lines in grid tables when we had things like
6107 `blankline $$ blankline`.
6108 + Add exported function `minOffet` \[API change\] (Björn Peemöller).
6109 + Added error message for illegal call to `block` (Björn Peemöller).
6111 * Text.Pandoc.Shared:
6113 + Put `warn` in MonadIO.
6114 + `fetchItem`: Better handling of protocol-relative URL (#2635). If
6115 URL starts with `//` and there is no "base URL" (as there would be
6116 if a URL were used on the command line), then default to http:.
6118 * Export Text.Pandoc.getDefaultExtensions \[API change\] (#3178).
6120 * In --version, trap error in `getAppUserDataDirectory` (#3241). This
6121 fixes a crash with `pandoc --version` on unusual systems with no real
6122 user (e.g. SQL Server 2016).
6124 * Added weigh-pandoc for memory usage diagnostics (#3169).
6126 * Use correct mime types for woff and woff2 (#3228).
6128 * Remove make\_travis\_yml.hs (#3235, Kolen Cheung).
6130 * changelog: Moved an item that was misplaced in the 1.17.2 section to the
6131 1.18 section where it belongs.
6133 * CONTRIBUTING.md: minor change in wording and punctuation (#3252,
6134 Kolen Cheung).
6136 * Further revisions to manual for `--version` changes (#3244).
6139pandoc (1.18)
6141 * Added `--list-input-formats`, `--list-output-formats`,
6142 `--list-extensions`, `--list-highlight-languages`, and
6143 `--list-highlight-styles` (#3173). Removed list of highlighting
6144 languages from `--version` output. Removed list of input and output
6145 formats from default `--help` output.
6147 * Added `--reference-location=block|section|document` option
6148 (Jesse Rosenthal). This determines whether Markdown link references
6149 and footnotes are placed at the end of the document, the end of the
6150 section, or the end of the top-level block.
6152 * Added `--top-level-division=section|chapter|part` (Albert Krewinkel).
6153 This determines what a level-1 header corresponds to in LaTeX,
6154 ConTeXt, DocBook, and TEI output. The default is `section`.
6155 The `--chapters` option has been deprecated in favor of
6156 `--top-level-division=chapter`.
6158 * Added `LineBlock` constructor for `Block` (Albert Krewinkel). This
6159 is now used in parsing RST and Markdown line blocks, DocBook
6160 `linegroup`/`line` combinations, and Org-mode `VERSE` blocks.
6161 Previously `Para` blocks with hard linebreaks were used. `LineBlock`s
6162 are handled specially in the following output formats: AsciiDoc
6163 (as `[verse]` blocks), ConTeXt (`\startlines`/`\endlines`),
6164 HTML (`div` with a style), Markdown (line blocks if `line_blocks`
6165 is enabled), Org-mode (`VERSE` blocks), RST (line blocks). In
6166 other output formats, a paragraph with hard linebreaks is emitted.
6168 * Allow binary formats to be written to stdout (but not to tty) (#2677).
6169 Only works on posix, since we use the unix library to check whether
6170 output is to tty. On Windows, pandoc works as before and always requires
6171 an output file parameter for binary formats.
6173 * Changed JSON output format (Jesse Rosenthal). Previously we used
6174 generically generated JSON, but this was subject to change depending
6175 on the version of aeson pandoc was compiled with. To ensure stability,
6176 we switched to using manually written ToJSON and FromJSON
6177 instances, and encoding the API version. **Note:** pandoc filter
6178 libraries will need to be revised to handle the format change.
6179 Here is a summary of the essential changes:
6181 + The toplevel JSON format is now `{"pandoc-api-version" :
6182 [MAJ, MIN, REV], "meta" : META, "blocks": BLOCKS}`
6183 instead of `[{"unMeta": META}, [BLOCKS]]`.
6184 Decoding fails if the major and minor version numbers don't
6185 match.
6186 + Leaf nodes no longer have an empty array for their "c" value.
6187 Thus, for example, a `Space` is encoded as `{"t":"Space"}`
6188 rather than `{"t":"Space","c":[]}` as before.
6190 * Removed `tests/Tests/Arbitrary.hs` and added a `Text.Pandoc.Arbitrary`
6191 module to pandoc-types (Jesse Rosenthal). This makes it easier
6192 to use QuickCheck with pandoc types outside of pandoc itself.
6194 * Add `bracketed_spans` Markdown extension, enabled by default
6195 in pandoc `markdown`. This allows you to create a native span
6196 using this syntax: `[Here is my span]{#id .class key="val"}`.
6198 * Added `angle_brackets_escapable` Markdown extension (#2846).
6199 This is needed because github flavored Markdown has a slightly
6200 different set of escapable symbols than original Markdown;
6201 it includes angle brackets.
6203 * Export `Text.Pandoc.Error` in `Text.Pandoc` [API change].
6205 * Print highlighting-kate version in `--version`.
6207 * `Text.Pandoc.Options`:
6209 + `Extension` has new constructors `Ext_brackted_spans` and
6210 `Ext_angle_brackets_escapable` [API change].
6211 + Added `ReferenceLocation` type [API change] (Jesse Rosenthal).
6212 + Added `writerReferenceLocation` field to `WriterOptions` (Jesse
6213 Rosenthal).
6215 * `--filter`: we now check `$DATADIR/filters` for filters before
6216 looking in the path (#3127, Jesse Rosenthal, thanks to Jakob
6217 Voß for the idea). Filters placed in this directory need not
6218 be executable; if the extension is `.hs`, `.php`, `.pl`, `.js`,
6219 or `.rb`, pandoc will run the right interpreter.
6221 * For `--webtex`, replace deprecated Google Chart API by CodeCogs as
6222 default (Kolen Cheung).
6224 * Removed `raw_tex` extension from `markdown_mmd` defaults (Kolen Cheung).
6226 * Execute .js filters with node (Jakob Voß).
6228 * Textile reader:
6230 + Support `bc..` extended code blocks (#3037). Also, remove trailing
6231 newline in code blocks (consistently with Markdown reader).
6232 + Improve table parsing. We now handle cell and row attributes, mostly
6233 by skipping them. However, alignments are now handled properly.
6234 Since in pandoc alignment is per-column, not per-cell, we
6235 try to devine column alignments from cell alignments.
6236 Table captions are also now parsed, and textile indicators
6237 for thead and tfoot no longer cause parse failure. (However,
6238 a row designated as tfoot will just be a regular row in pandoc.)
6239 + Improve definition list parsing. We now allow multiple terms
6240 (which we concatenate with linebreaks). An exponential parsing
6241 bug (#3020) is also fixed.
6242 + Disallow empty URL in explicit link (#3036).
6244 * RST reader:
6246 + Use Div instead of BlockQuote for admonitions (#3031).
6247 The Div has class `admonition` and (if relevant) one of the
6248 following: `attention`, `caution`, `danger`, `error`, `hint`,
6249 `important`, `note`, `tip`, `warning`. **Note:** This will change
6250 the rendering of some RST documents! The word ("Warning", "Attention",
6251 etc.) is no longer added; that must be done with CSS or a filter.
6252 + A Div is now used for `sidebar` as well.
6253 + Skip whitespace before note (Jesse Rosenthal, #3163). RST requires a
6254 space before a footnote marker. We discard those spaces so that footnotes
6255 will be adjacent to the text that comes before it. This is in line with
6256 what rst2latex does.
6257 + Allow empty lines when parsing line blocks (Albert Krewinkel).
6259 * Markdown reader:
6261 + Allow empty lines when parsing line blocks (Albert Krewinkel).
6262 + Allow attributes on autolinks (#3183, Daniele D'Orazio).
6264 * LaTeX reader:
6266 + More robust parsing of unknown environments (#3026).
6267 We no longer fail on things like `^` inside options for tikz.
6268 + Be more forgiving of non-standard characters, e.g. `^` outside of math.
6269 Some custom environments give these a meaning, so we should try not to
6270 fall over when we encounter them.
6271 + Drop duplicate `*` in bibtexKeyChars (Albert Krewinkel)
6273 * MediaWiki reader:
6275 + Fix for unquoted attribute values in mediawiki tables (#3053).
6276 Previously an unquoted attribute value in a table row
6277 could cause parsing problems.
6278 + Improved treatment of verbatim constructions (#3055).
6279 Previously these yielded strings of alternating Code and Space
6280 elements; we now incorporate the spaces into the Code. Emphasis
6281 etc. is still possible inside these.
6282 + Properly interpret XML tags in pre environments (#3042). They are meant
6283 to be interpreted as literal text.
6285 * EPUB reader: don't add root path to data: URIs (#3150).
6286 Thanks to @lep for the bug report and patch.
6288 * Org reader (Albert Krewinkel):
6290 + Preserve indentation of verse lines (#3064). Leading spaces in verse
6291 lines are converted to non-breaking spaces, so indentation is preserved.
6292 + Ensure image sources are proper links. Image sources as those in plain
6293 images, image links, or figures, must be proper URIs or relative file
6294 paths to be recognized as images. This restriction is now enforced
6295 for all image sources. This also fixes the reader's usage of uncleaned
6296 image sources, leading to `file:` prefixes not being deleted from
6297 figure images. Thanks to @bsag for noticing this bug.
6298 + Trim verse lines properly (Albert Krewinkel).
6299 + Extract meta parsing code to module. Parsing of meta-data is well
6300 separable from other block parsing tasks. Moving into new module to
6301 get small files and clearly arranged code.
6302 + Read markup only for special meta keys. Most meta-keys should be read
6303 as normal string values, only a few are interpreted as marked-up text.
6304 + Allow multiple, comma-separated authors. Multiple authors can be
6305 specified in the `#+AUTHOR` meta line if they are given as a
6306 comma-separated list.
6307 + Give precedence to later meta lines. The last meta-line of any given
6308 type is the significant line. Previously the value of the first line
6309 was kept, even if more lines of the same type were encountered.
6310 + Read LaTeX_header as header-includes. LaTeX-specific header commands
6311 can be defined in `#+LaTeX_header` lines. They are parsed as
6312 format-specific inlines to ensure that they will only show up in LaTeX
6313 output.
6314 + Set documentclass meta from LaTeX_class.
6315 + Set classoption meta from LaTeX_class_options.
6316 + Read HTML_head as header-includes. HTML-specific head content can be
6317 defined in `#+HTML_head` lines. They are parsed as format-specific
6318 inlines to ensure that they will only show up in HTML output.
6319 + Respect `author` export option. The `author` option controls whether
6320 the author should be included in the final markup. Setting
6321 `#+OPTIONS: author:nil` will drop the author from the final meta-data
6322 output.
6323 + Respect `email` export option. The `email` option controls whether the
6324 email meta-field should be included in the final markup. Setting
6325 `#+OPTIONS: email:nil` will drop the email field from the final
6326 meta-data output.
6327 + Respect `creator` export option. The `creator` option controls whether
6328 the creator meta-field should be included in the final markup. Setting
6329 `#+OPTIONS: creator:nil` will drop the creator field from the final
6330 meta-data output. Org-mode recognizes the special value `comment` for
6331 this field, causing the creator to be included in a comment. This is
6332 difficult to translate to Pandoc internals and is hence interpreted the
6333 same as other truish values (i.e. the meta field is kept if it's
6334 present).
6335 + Respect unnumbered header property (#3095). Sections the `unnumbered`
6336 property should, as the name implies, be excluded from the automatic
6337 numbering of section provided by some output formats. The Pandoc
6338 convention for this is to add an "unnumbered" class to the header. The
6339 reader treats properties as key-value pairs per default, so a special
6340 case is added to translate the above property to a class instead.
6341 + Allow figure with empty caption (Albert Krewinkel, #3161).
6342 A `#+CAPTION` attribute before an image is enough to turn an image into
6343 a figure. This wasn't the case because the `parseFromString` function,
6344 which processes the caption value, would fail on empty values. Adding
6345 a newline character to the caption value fixes this.
6347 * Docx reader:
6349 + Use XML convenience functions (Jesse Rosenthal).
6350 The functions `isElem` and `elemName` (defined in Docx/Util.hs) make
6351 the code a lot cleaner than the original XML.Light functions, but they
6352 had been used inconsistently. This puts them in wherever applicable.
6353 + Handle anchor spans with content in headers. Previously, we would only
6354 be able to figure out internal links to a header in a docx if the
6355 anchor span was empty. We change that to read the inlines out of the
6356 first anchor span in a header.
6357 + Let headers use existing id. Previously we always generated an id for
6358 headers (since they wouldn't bring one from Docx). Now we let it use an
6359 existing one if possible. This should allow us to recurs through anchor
6360 spans.
6361 + Use all anchor spans for header ids. Previously we only used the first
6362 anchor span to affect header ids. This allows us to use all the anchor
6363 spans in a header, whether they're nested or not (#3088).
6364 + Test for nested anchor spans in header. This ensures that anchor spans
6365 in header with content (or with other anchor spans inside) will resolve
6366 to links to a header id properly.
6368 * ODT reader (Hubert Plociniczak)
6370 + Include list's starting value. Previously the starting value of
6371 the lists' items has been hardcoded to 1. In reality ODT's list
6372 style definition can provide a new starting value in one of its
6373 attributes.
6374 + Infer caption from the text following the image.
6375 Frame can contain other frames with the text boxes.
6376 + Add `fig:` to title for Image with a caption (as expected
6377 by pandoc's writers).
6378 + Basic support for images in ODT documents.
6379 + Don't duplicate text for anchors (#3143). When creating an anchor
6380 element we were adding its representation as well as the original
6381 content, leading to text duplication.
6383 * DocBook writer:
6385 + Include an anchor element when a div or span has an id (#3102).
6386 Note that DocBook does not have a class attribute, but at least this
6387 provides an anchor for internal links.
6389 * LaTeX writer:
6391 + Don't use * for unnumbered paragraph, subparagraph. The starred
6392 variants don't exist. This helps with part of #3058...it gets rid of
6393 the spurious `*`s. But we still have numbers on the 4th and 5th level
6394 headers.
6395 + Properly escape backticks in verbatim (#3121, Jesse Rosenthal).
6396 Otherwise they can cause unintended ligatures like `` ?` ``.
6397 + Handle NARRAOW NO-BREAK SPACE into LaTeX (Vaclav Zeman) as `\,`.
6398 + Don't include `[htbp]` placement for figures (#3103, Václav Haisman).
6399 This allows figure placement defaults to be changed by the user
6400 in the template.
6402 * HTML writer (slide show formats): In slide shows, don't change slide title
6403 to level 1 header (#2221).
6405 * TEI writer: remove heuristic to detect book template (Albert Krewinkel).
6406 TEI doesn't have `<book>` elements but only generic `<divN>` division
6407 elements. Checking the template for a trailing `</book>` is nonsensical.
6409 * MediaWiki writer: transform filename with underscores in images (#3052).
6410 `foo bar.jpg` becomes `foo_bar.jpg`. This was already done
6411 for internal links, but it also needs to happen for images.
6413 * ICML writer: replace partial function (!!) in table handling (#3175,
6414 Mauro Bieg).
6416 * Man writer: allow section numbers that are not a single digit (#3089).
6418 * AsciiDoc writer: avoid unnecessary use of "unconstrained" emphasis
6419 (#3068). In AsciiDoc, you must use a special form of emphasis
6420 (double `__`) for intraword emphasis. Pandoc was previously using
6421 this more than necessary.
6423 * EPUB writer: use stringify instead of plain writer for metadata
6424 (#3066). This means that underscores won't be used for emphasis,
6425 or CAPS for bold. The metadata fields will just have unadorned
6426 text.
6428 * Docx Writer:
6430 + Implement user-defined styles (Jesse Rosenthal). Divs and Spans
6431 with a `custom-style` key in the attributes will apply the corresponding
6432 key to the contained blocks or inlines.
6433 + Add ReaderT env to the docx writer (Jesse Rosenthal).
6434 + Clean up and streamline RTL behavior (Jesse Rosenthal, #3140).
6435 You can set `dir: rtl` in YAML metadata, or use `-M dir=rtl`
6436 on the command line. For finer-grained control, you can set
6437 the `dir` attribute in Div or Span elements.
6439 * Org writer (Albert Krewinkel):
6441 + Remove blank line after figure caption. Org-mode only treats an image
6442 as a figure if it is directly preceded by a caption.
6443 + Ensure blank line after figure. An Org-mode figure should be surrounded
6444 by blank lines. The figure would be recognized regardless, but images
6445 in the following line would unintentionally be treated as figures as
6446 well.
6447 + Ensure link targets are paths or URLs. Org-mode treats links as
6448 document internal searches unless the link target looks like a URL or
6449 file path, either relative or absolute. This change ensures that this
6450 is always the case.
6451 + Translate language identifiers. Pandoc and Org-mode use different
6452 programming language identifiers. An additional translation between
6453 those identifiers is added to avoid unexpected behavior. This fixes a
6454 problem where language specific source code would sometimes be output
6455 as example code.
6456 + Drop space before footnote markers (Albert Krewinkel, #3162).
6457 The writer no longer adds an extra space before footnote markers.
6459 * Markdown writer:
6461 + Don't emit HTML for tables unless `raw_html` extension is set (#3154).
6462 Emit `[TABLE]` if no suitable table formats are enabled and raw HTML
6463 is disabled.
6464 + Check for the `raw_html` extension before emitting a raw HTML block.
6465 + Abstract out note/ref function (Jesse Rosenthal).
6466 + Add ReaderT monad for environment variables (Jesse Rosenthal).
6468 * HTML, EPUB, slidy, revealjs templates: Use `<p>` instead of `<h1>` for
6469 subtitle, author, date (#3119). Note that, as a result of this change,
6470 authors may need to update CSS.
6472 * revealjs template: Added `notes-server` option
6473 (jgm/pandoc-templates#212, Yoan Blanc).
6475 * Beamer template:
6477 + Restore whitespace between paragraphs. This was
6478 a regression in the last release (jgm/pandoc-templates#207).
6479 + Added `themeoptions` variable (Carsten Gips).
6480 + Added `beamerarticle` variable. This causes the `beamerarticle`
6481 package to be loaded in beamer, to produce an article from beamer
6482 slides. (Carsten Gips)
6483 + Added support for `fontfamilies` structured variable
6484 (Artem Klevtsov).
6485 + Added hypersetup options (Jake Zimmerman).
6487 * LaTeX template:
6489 + Added dummy definition for `\institute`.
6490 This isn't a standard command, and we want to avoid a crash when
6491 `institute` is used with the default template.
6492 + Define default figure placement (Václav Haisman), since pandoc
6493 no longer includes `[htbp]` for figures. Users with custom templates
6494 will want to add this. See #3103.
6495 + Use footnote package to fix notes in tables (jgm/pandoc-templates#208,
6496 Václav Haisman).
6498 * Moved template compiling/rendering code to a separate library.
6499 `doctemplates`. This allows the pandoc templating system to be
6500 used independently.
6502 * Text.Pandoc.Error: Fix out of index error in `handleError`
6503 (Matthew Pickering). The fix is to not try to show the exact line when
6504 it would cause an out-of-bounds error as a result of included files.
6506 * Text.Pandoc.Shared: Add `linesToBlock` function (Albert Krewinkel).
6508 * Text.Pandoc.Parsing.emailAddress: tighten up parsing of email
6509 addresses. Technically `**@user` is a valid email address, but if we
6510 allow things like this, we get bad results in markdown flavors
6511 that autolink raw email addresses (see #2940). So we exclude a few
6512 valid email addresses in order to avoid these more common bad cases.
6514 * Text.Pandoc.PDF: Don't crash with nonexistent image (#3100). Instead,
6515 emit the alt text, emphasized. This accords with what the ODT writer
6516 currently does. The user will still get a warning about a nonexistent
6517 image.
6519 * Fix example in API documentation (#3176, Thomas Weißschuh).
6521 * Tell where to get tarball in INSTALL (#3062).
6523 * Rename README to MANUAL.txt and add GitHub-friendly README.md
6524 (Albert Krewinkel, Kolen Cheung).
6526 * Replace COPYING with Markdown version COPYING.md from GNU (Kolen Cheung).
6528 * MANUAL.txt:
6530 + Put note on structured vars in separate paragraph (#2148, Albert
6531 Krewinkel). Make it clearer that structured author variables require a
6532 custom template
6533 + Note that `--katex` works best with `html5` (#3077).
6534 + Fix the LaTeX and EPUB links in manual (Morton Fox).
6535 + Document `biblio-title` variable.
6537 * Improve spacing of footnotes in `--help` output (Waldir Pimenta).
6539 * Update KaTeX to v0.6.0 (Kolen Cheung).
6541 * Allow latest dependencies.
6543 * Use texmath 0.8.6.6 (#3040).
6545 * Allow http-client 0.4.30, which is the version in stackage lts.
6546 Previously we required 0.5.
6547 Remove CPP conditionals for earlier versions.
6549 * Remove support for GHC < 7.8 (Jesse Rosenthal).
6551 + Remove Compat.Monoid.
6552 + Remove an inline monad compatibility macro.
6553 + Remove Text.Pandoc.Compat.Except.
6554 + Remove directory compat.
6555 + Change constraint on mtl.
6556 + Remove unnecessary CPP condition in UTF8.
6557 + Bump base lower bound to 4.7.
6558 + Remove 7.6 build from .travis.yaml.
6559 + Bump supported ghc version in CONTRIBUTING.md.
6560 + Add note about GHC version support to INSTALL.
6561 + Remove GHC 7.6 from list of tested versions (Albert Krewinkel).
6562 + Remove TagSoup compat.
6563 + Add EOL note to time compat module. Because time 1.4 is a boot library
6564 for GHC 7.8, we will support the compatibility module as long as we
6565 support 7.8. But we should be clear about when we will no longer need
6566 it.
6567 + Remove blaze-html CPP conditional.
6568 + Remove unnecessary CPP in custom Prelude.
6570pandoc (1.17.2)
6572 * Added Zim Wiki writer, template and tests. `zimwiki` is now
6573 a valid output format. (Alex Ivkin)
6575 * Changed email-obfuscation default to no obfuscation (#2988).
6576 + `writerEmailObfuscation` in `defaultWriterOptions` is now
6577 `NoObfuscation`.
6578 + the default for the command-line `--email-obfuscation` option is
6579 now `none`.
6581 * Docbook writer: Declare xlink namespace in Docbook5 output (Ivo Clarysse).
6583 * Org writer:
6585 + Support arbitrary raw inlines (Albert Krewinkel).
6586 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
6587 parlance) to be included as `@@format:raw foreign format text@@`.
6588 + Improve Div handling (Albert Krewinkel). Div blocks handling is
6589 changed to make the output look more like idiomatic org mode:
6590 - Div-wrapped content is output as-is if the div's attribute is the
6591 null attribute.
6592 - Div containers with an id but neither classes nor key-value pairs
6593 are unwrapped and the id is added as an anchor.
6594 - Divs with classes associated with greater block elements are
6595 wrapped in a `#+BEGIN`...`#+END` block.
6596 - The old behavior for Divs with more complex attributes is kept.
6598 * HTML writer:
6600 + Better support for raw LaTeX environments (#2758).
6601 Previously we just passed all raw TeX through when MathJax was used for
6602 HTML math. This passed through too much. With this patch, only raw
6603 LaTeX environments that MathJax can handle get passed through.
6604 This patch also causes raw LaTeX environments to be treated
6605 as math, when possible, with MathML and WebTeX output.
6607 * Markdown writer: use raw HTML for simple, pipe tables with linebreaks
6608 (#2993). Markdown line breaks involve a newline, and simple and pipe
6609 tables can't contain one.
6611 * Make --webtex work with the Markdown writer (#1177).
6612 This is a convenient option for people using
6613 websites whose Markdown flavors don't provide for math.
6615 * Docx writer:
6617 + Set paragraph to FirstPara after display math (Jesse Rosenthal).
6618 We treat display math like block quotes, and apply FirstParagraph style
6619 to paragraphs that follow them. These can be styled as the user
6620 wishes. (But, when the user is using indentation, this allows for
6621 paragraphs to continue after display math without indentation.)
6622 + Use actual creation time as doc prop (Jesse Rosenthal).
6623 Previously, we had used the user-supplied date, if available, for Word's
6624 document creation metadata. This could lead to weird results, as in
6625 cases where the user post-dates a document (so the modification might be
6626 prior to the creation). Here we use the actual computer time to set the
6627 document creation.
6629 * LaTeX writer:
6631 + Don't URI-escape image source (#2825). Usually this is a local file,
6632 and replacing spaces with `%20` ruins things.
6633 + Allow 'standout' as a beamer frame option (#3007).
6634 `## Slide title {.standout}`.
6636 * RST reader: Fixed links with no explicit link text. The link
6637 `` `<foo>`_ `` should have `foo` as both its link text and its URL.
6638 See RST spec at <http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#embedded-uris-and-aliases>
6639 Closes Debian #828167 -- reported by Christian Heller.
6641 * Textile reader:
6643 + Fixed attributes (#2984). Attributes can't be followed by
6644 a space. So, `_(class)emph_` but `_(noclass) emph_`.
6645 + Fixed exponential parsing bug (#3020).
6646 + Fix overly aggressive interpretation as images (#2998).
6647 Spaces are not allowed in the image URL in textile.
6649 * LaTeX reader:
6651 + Fix `\cite` so it is a NormalCitation not AuthorInText.
6652 + Strip off double quotes around image source if present (#2825).
6653 Avoids interpreting these as part of the literal filename.
6655 * Org reader:
6657 + Add semicolon to list of special chars (Albert Krewinkel)
6658 Semicolons are used as special characters in citations syntax. This
6659 ensures the correct parsing of Pandoc-style citations: `[prefix; @key;
6660 suffix]`. Previously, parsing would have failed unless there was a space
6661 or other special character as the last <prefix> character.
6662 + Add support for "Berkeley-style" cites (Albert Krewinkel, #1978).
6663 A specification for an official Org-mode citation syntax was drafted by
6664 Richard Lawrence and enhanced with the help of others on the orgmode
6665 mailing list. Basic support for this citation style is added to the
6666 reader.
6667 + Support arbitrary raw inlines (Albert Krewinkel).
6668 Org mode allows arbitrary raw inlines ("export snippets" in Emacs
6669 parlance) to be included as `@@format:raw foreign format text@@`.
6670 + Remove partial functions (Albert Krewinkel, #2991).
6671 Partial functions like `head` lead to avoidable errors and should be
6672 avoided. They are replaced with total functions.
6673 + Support figure labels (Albert Krewinkel, #2496, #2999).
6674 Figure labels given as `#+LABEL: thelabel` are used as the ID of the
6675 respective image. This allows e.g. the LaTeX to add proper `\label`
6676 markup.
6677 + Improve tag and properties type safety (Albert Krewinkel).
6678 Specific newtype definitions are used to replace stringly typing of tags
6679 and properties. Type safety is increased while readability is improved.
6680 + Parse as headlines, convert to blocks (Albert Krewinkel).
6681 Emacs org-mode is based on outline-mode, which treats documents as trees
6682 with headlines are nodes. The reader is refactored to parse into a
6683 similar tree structure. This simplifies transformations acting on
6684 document (sub-)trees.
6685 * Refactor comment tree handling (Albert Krewinkel).
6686 Comment trees were handled after parsing, as pattern matching on lists
6687 is easier than matching on sequences. The new method of reading
6688 documents as trees allows for more elegant subtree removal.
6689 * Support archived trees export options (Albert Krewinkel).
6690 Handling of archived trees can be modified using the `arch` option.
6691 Archived trees are either dropped, exported completely, or collapsed to
6692 include just the header when the `arch` option is nil, non-nil, or
6693 `headline`, respectively.
6694 * Put export setting parser into module (Albert Krewinkel).
6695 Export option parsing is distinct enough from general block parsing to
6696 justify putting it into a separate module.
6697 * Support headline levels export setting (Albert Krewinkel).
6698 The depths of headlines can be modified using the `H` option. Deeper
6699 headlines will be converted to lists.
6700 * Replace ugly code with view pattern (Albert Krewinkel).
6701 Some less-than-smart code required a pragma switching of overlapping
6702 pattern warnings in order to compile seamlessly. Using view patterns
6703 makes the code easier to read and also doesn't require overlapping
6704 pattern checks to be disabled.
6705 * Fix parsing of verbatim inlines (Albert Krewinkel, #3016).
6706 Org rules for allowed characters before or after markup chars were not
6707 checked for verbatim text. This resultet in wrong parsing outcomes of
6708 if the verbatim text contained e.g. space enclosed markup characters as
6709 part of the text (`=is_substr = True=`). Forcing the parser to update
6710 the positions of allowed/forbidden markup border characters fixes this.
6712 * LaTeX template: fix for obscure hyperref/xelatex issue.
6713 Here's a minimal case:
6715 \documentclass[]{article}
6716 \usepackage{hyperref}
6717 \begin{document}
6718 \section{\%á}
6719 \end{document}
6721 Without this change, this fails on the second invocation of xelatex.
6722 This affects inputs this like `# %á` with pdf output via xelatex.
6724 * trypandoc: call results 'html' instead of 'result'.
6725 This is for better compatibility with babelmark2.
6727 * Document MultiMarkdown as input/output format (Albert Krewinkel, #2973).
6728 MultiMarkdown was only mentioned as a supported Markdown dialect but not
6729 as a possible input or output format. A brief mention is added
6730 everywhere the other supported markdown dialects are mentioned.
6732 * Document Org mode as a format containing raw HTML (Albert Krewinkel)
6733 Raw HTML is kept when the output format is Emacs Org mode.
6735 * Implement `RawInline` and `RawBlock` in sample lua custom writer (#2985).
6737 * Text.Pandoc.Shared:
6739 + Introduce blocksToInlines function (Jesse Rosenthal).
6740 This is a lossy function for converting `[Block] -> [Inline]`. Its main
6741 use, at the moment, is for docx comments, which can contain arbitrary
6742 blocks (except for footnotes), but which will be converted to spans.
6743 This is, at the moment, pretty useless for everything but the basic
6744 `Para` and `Plain` comments. It can be improved, but the docx reader
6745 should probably emit a warning if the comment contains more than this.
6746 + Add BlockQuote to blocksToInlines (Jesse Rosenthal).
6747 + Add further formats for `normalizeDate` (Jesse Rosenthal).
6748 We want to avoid illegal dates -- in particular years with greater than
6749 four digits. We attempt to parse series of digits first as `%Y%m%d`, then
6750 `%Y%m`, and finally `%Y`.
6751 + `normalizeDate` should reject illegal years (Jesse Rosenthal).
6752 We only allow years between 1601 and 9999, inclusive. The ISO 8601
6753 actually says that years are supposed to start with 1583, but MS Word
6754 only allows 1601-9999. This should stop corrupted word files if the date
6755 is out of that range, or is parsed incorrectly.
6756 + Improve year sanity check in normalizeDate (Jesse Rosenthal).
6757 Previously we parsed a list of dates, took the first one, and then
6758 tested its year range. That meant that if the first one failed, we
6759 returned nothing, regardless of what the others did. Now we test for
6760 sanity before running `msum` over the list of Maybe values. Anything
6761 failing the test will be Nothing, so will not be a candidate.
6763 * Docx reader:
6765 + Add simple comment functionality. (Jesse Rosenthal).
6766 This adds simple track-changes comment parsing to the docx reader. It is
6767 turned on with `--track-changes=all`. All comments are converted to
6768 inlines, which can list some information. In the future a warning will be
6769 added for comments with formatting that seems like it will be excessively
6770 denatured. Note that comments can extend across blocks. For that reason
6771 there are two spans: `comment-start` and `comment-end`. `comment-start`
6772 will contain the comment. `comment-end` will always be empty. The two
6773 will be associated by a numeric id.
6774 + Enable warnings in top-level reader (Jesse Rosenthal).
6775 Previously we had only allowed for warnings in the parser. Now we allow
6776 for them in the `Docx.hs` as well. The warnings are simply concatenated.
6777 + Add warning for advanced comment formatting. (Jesse Rosenthal).
6778 We can't guarantee we'll convert every comment correctly, though we'll
6779 do the best we can. This warns if the comment includes something other
6780 than Para or Plain.
6781 + Add tests for warnings. (Jesse Rosenthal).
6782 + Add tests for comments (Jesse Rosenthal).
6783 We test for comments, using all track-changes options. Note that we
6784 should only output comments if `--track-changes=all`. We also test for
6785 emitting warnings if there is complicated formatting.
6787 * README: update to include track-changes comments. (Jesse Rosenthal)
6789 * Improved Windows installer - don't ignore properties set on command-line.
6790 See #2708. Needs testing to see if this resolves the issue.
6791 Thanks to @nkalvi.
6793 * Process markdown extensions on command line in L->R order (#2995).
6794 Previously they were processed, very unintuitively, in R->L
6795 order, so that `markdown-tex_math_dollars+tex_math_dollars`
6796 had `tex_math_dollars` disabled.
6798 * Added `secnumdepth` variable to LaTeX template (#2920).
6800 * Include table of contents in README.html in Windows package.
6802 * Writers: treat SoftBreak as space for stripping (Jesse Rosenthal)
6803 In Writers.Shared, we strip leading and trailing spaces for display
6804 math. Since SoftBreak's are treated as spaces, we should strip those
6805 too.
6807 * beamer, latex templates: pass biblatexoptions directly in package load.
6808 This allows runtime optinos to be used. Fixes jgm/pandoc-citeproc#201
6810 * CPP workaround for deprecation of `parseUrl` in http-client.
6812 * Removed some redundant class constraints.
6814 * make_oxs_package.sh - use OSX env variable.
6816 * Replaced INSTALL with INSTALL.md, incorporating INSTALL and the
6817 old installing page from website.
6819 * Added `winpkg` target to Makefile. This downloads the windows package
6820 from appveyor and signs it using the key.
6822 * Document Org mode as a format containing raw TeX (Albert Krewinkel).
6823 Raw TeX is kept verbatim when the output format is Emacs Org mode.
6825 * Support math with haddock-library >= 1.4.
6827 * Removed `-rtsopts` from library stanza. It has no effect, and Hackage
6828 wouldn't accept the package.
6830 * Update library dependency versions.
6832pandoc (1.17.1)
6834 * New output format: `docbook5` (Ivo Clarysse).
6836 * `Text.Pandoc.Options`: Add `writerDocBook5` to `WriterOptions`
6837 (API change).
6839 * Org writer:
6841 + Add :PROPERTIES: drawer support (Albert Krewinkel, #1962).
6842 This allows header attributes to be added to org documents in the form
6843 of `:PROPERTIES:` drawers. All available attributes are stored as
6844 key/value pairs. This reflects the way the org reader handles
6845 `:PROPERTIES:` blocks.
6846 + Add drawer capability (Carlos Sosa). For the implementation of the
6847 Drawer element in the Org Writer, we make use of a generic Block
6848 container with attributes. The presence of a `drawer` class defines
6849 that the `Div` constructor is a drawer. The first class defines the
6850 drawer name to use. The key-value list in the attributes defines
6851 the keys to add inside the Drawer. Lastly, the list of Block elements
6852 contains miscellaneous blocks elements to add inside of the Drawer.
6853 + Use `CUSTOM_ID` in properties (Albert Krewinkel). The `ID` property is
6854 reserved for internal use by Org-mode and should not be used.
6855 The `CUSTOM_ID` property is to be used instead, it is converted to the
6856 `ID` property for certain export format.
6858 * LaTeX writer:
6860 + Ignore `--incremental` unless output format is beamer (#2843).
6861 + Fix polyglossia to babel env mapping (Mauro Bieg, #2728).
6862 Allow for optional argument in square brackets.
6863 + Recognize `la-x-classic` as Classical Latin (Andrew Dunning).
6864 This allows one to access the hyphenation patterns in CTAN's
6865 hyph-utf8.
6866 + Add missing languages from hyph-utf8 (Andrew Dunning).
6867 + Improve use of `\strut` with `\minipage` inside tables
6868 (Jose Luis Duran). This improves spacing in multiline
6869 tables.
6870 + Use `{}` around options containing special chars (#2892).
6871 + Avoid lazy `foldl`.
6872 + Don't escape underscore in labels (#2921). Previously they were
6873 escaped as `ux5f`.
6874 + brazilian -> brazil for polyglossia (#2953).
6876 * HTML writer: Ensure mathjax link is added when math appears in footnote
6877 (#2881). Previously if a document only had math in a footnote, the
6878 MathJax link would not be added.
6880 * EPUB writer: set `navpage` variable on nav page.
6881 This allows templates to treat it differently.
6883 * DocBook writer:
6885 + Use docbook5 if `writerDocbook5` is set (Ivo Clarysse).
6886 + Properly handle `ulink`/`link` (Ivo Clarysse).
6888 * EPUB reader:
6890 + Unescape URIs in spine (#2924).
6891 + EPUB reader: normalise link id (Mauro Bieg).
6893 * Docx Reader:
6895 + Parse `moveTo` and `moveFrom` (Jesse Rosenthal).
6896 `moveTo` and `moveFrom` are track-changes tags that are used when a
6897 block of text is moved in the document. We now recognize these tags and
6898 treat them the same as `insert` and `delete`, respectively. So,
6899 `--track-changes=accept` will show the moved version, while
6900 `--track-changes=reject` will show the original version.
6901 + Tests for track-changes moving (Jesse Rosenthal).
6903 * ODT, EPUB, Docx readers: throw `PandocError` on unzip failure
6904 (Jesse Rosenthal) Previously, `readDocx`, `readEPUB`, and `readOdt`
6905 would error out if zip-archive failed. We change the archive extraction
6906 step from `toArchive` to `toArchiveOrFail`, which returns an Either value.
6908 * Markdown, HTML readers: be more forgiving about unescaped `&` in
6909 HTML (#2410). We are now more forgiving about parsing invalid HTML with
6910 unescaped `&` as raw HTML. (Previously any unescaped `&`
6911 would cause pandoc not to recognize the string as raw HTML.)
6913 * Markdown reader:
6915 + Added bracket syntax for native spans (#168).
6916 + Fix pandoc title blocks with lines ending in 2 spaces (#2799).
6917 + Added `-s` to markdown-reader-more test.
6919 * HTML reader: fixed bug in `pClose`. This caused exponential parsing
6920 behavior in documnets with unclosed tags in `dl`, `dd`, `dt`.
6922 * MediaWiki reader: Allow spaces before `!` in MediaWiki table header
6923 (roblabla).
6925 * RST reader: Support `:class:` option for code block in RST reader
6926 (Sidharth Kapur).
6928 * Org reader (all Albert Krewinkel, except where noted otherwise):
6930 + Stop padding short table rows.
6931 Emacs Org-mode doesn't add any padding to table rows. The first
6932 row (header or first body row) is used to determine the column count,
6933 no other magic is performed.
6934 + Refactor rows-to-table conversion. This refactors
6935 the codes conversing a list table lines to an org table ADT.
6936 The old code was simplified and is now slightly less ugly.
6937 + Fix handling of empty table cells, rows (Albert Krewinkel, #2616).
6938 This fixes Org mode parsing of some corner cases regarding empty cells
6939 and rows. Empty cells weren't parsed correctly, e.g. `|||` should be
6940 two empty cells, but would be parsed as a single cell containing a pipe
6941 character. Empty rows where parsed as alignment rows and dropped from
6942 the output.
6943 + Fix spacing after LaTeX-style symbols.
6944 The org-reader was dropping space after unescaped LaTeX-style symbol
6945 commands: `\ForAll \Auml` resulted in `∀Ä` but should give `∀ Ä`
6946 instead. This seems to be because the LaTeX-reader treats the
6947 command-terminating space as part of the command. Dropping the trailing
6948 space from the symbol-command fixes this issue.
6949 + Print empty table rows. Empty table rows should not
6950 be dropped from the output, so row-height is always set to be at least 1.
6951 + Move parser state into separate module.
6952 The org reader code has become large and confusing. Extracting smaller
6953 parts into submodules should help to clean things up.
6954 + Add support for sub/superscript export options.
6955 Org-mode allows to specify export settings via `#+OPTIONS` lines.
6956 Disabling simple sub- and superscripts is one of these export options,
6957 this options is now supported.
6958 + Support special strings export option Parsing of special strings
6959 (like `...` as ellipsis or `--` as en dash) can be toggled using the `-`
6960 option.
6961 + Support emphasized text export option. Parsing of emphasized text can
6962 be toggled using the `*` option. This influences parsing of text marked
6963 as emphasized, strong, strikeout, and underline. Parsing of inline math,
6964 code, and verbatim text is not affected by this option.
6965 + Support smart quotes export option. Reading of smart quotes can be
6966 toggled using the `'` option.
6967 + Parse but ignore export options. All known export options are parsed
6968 but ignored.
6969 + Refactor block attribute handling. A parser state attribute was used
6970 to keep track of block attributes defined in meta-lines. Global state
6971 is undesirable, so block attributes are no longer saved as part of the
6972 parser state. Old functions and the respective part of the parser state
6973 are removed.
6974 + Use custom `anyLine`. Additional state changes need to be made after
6975 a newline is parsed, otherwise markup may not be recognized correctly.
6976 This fixes a bug where markup after certain block-types would not be
6977 recognized.
6978 + Add support for `ATTR_HTML` attributes (#1906).
6979 Arbitrary key-value pairs can be added to some block types using a
6980 `#+ATTR_HTML` line before the block. Emacs Org-mode only includes these
6981 when exporting to HTML, but since we cannot make this distinction here,
6982 the attributes are always added. The functionality is now supported
6983 for figures.
6984 + Add `:PROPERTIES:` drawer support (#1877).
6985 Headers can have optional `:PROPERTIES:` drawers associated with them.
6986 These drawers contain key/value pairs like the header's `id`. The
6987 reader adds all listed pairs to the header's attributes; `id` and
6988 `class` attributes are handled specially to match the way `Attr` are
6989 defined. This also changes behavior of how drawers of unknown type
6990 are handled. Instead of including all unknown drawers, those are not
6991 read/exported, thereby matching current Emacs behavior.
6992 + Use `CUSTOM_ID` in properties. See above on Org writer changes.
6993 + Respect drawer export setting. The `d` export option can be used
6994 to control which drawers are exported and which are discarded.
6995 Basic support for this option is added here.
6996 + Ignore leading space in org code blocks (Emanuel Evans, #2862).
6997 Also fix up tab handling for leading whitespace in code blocks.
6998 + Support new syntax for export blocks. Org-mode version 9
6999 uses a new syntax for export blocks. Instead of `#+BEGIN_<FORMAT>`,
7000 where `<FORMAT>` is the format of the block's content, the new
7001 format uses `#+BEGIN_export <FORMAT>` instead. Both types are
7002 supported.
7003 + Refactor `BEGIN...END` block parsing.
7004 + Fix handling of whitespace in blocks, allowing content to be indented
7005 less then the block header.
7006 + Support org-ref style citations. The *org-ref* package is an
7007 org-mode extension commonly used to manage citations in org
7008 documents. Basic support for the `cite:citeKey` and
7009 `[[cite:citeKey][prefix text::suffix text]]` syntax is added.
7010 + Split code into separate modules, making for cleaner code and
7011 better decoupling.
7013 * Added `docbook5` template.
7015 * `--mathjax` improvements:
7017 + Use new CommonHTML output for MathJax (updated default MathJax URL,
7018 #2858).
7019 + Change default mathjax setup to use `TeX-AMS_CHTML` configuration.
7020 This is designed for cases where the input is always TeX and maximal
7021 conformity with TeX is desired. It seems to be smaller and load faster
7022 than what we used before. See #2858.
7023 + Load the full MathJax config to maximize loading speed (KolenCheung).
7025 * Bumped upper version bounds to allow use of latest packages
7026 and compilation with ghc 8.
7028 * Require texmath 0.8.6.2. Closes several texmath-related bugs (#2775,
7029 #2310, #2310, #2824). This fixes behavior of roots, e.g.
7030 `\sqrt[3]{x}`, and issues with sub/superscript positioning
7031 and matrix column alignment in docx.
7033 * README:
7035 + Clarified documentation of `implicit_header_references` (#2904).
7036 + Improved documentation of `--columns` option.
7038 * Added appveyor setup, with artifacts (Jan Schulz).
7040 * stack.yaml versions: Use proper flags used for texmath, pandoc-citeproc.
7042 * LaTeX template: support for custom font families (vladipus).
7043 Needed for correct polyglossia operation with Cyrillic fonts and perhaps
7044 can find some other usages. Example usage in YAML metadata:
7046 fontfamilies:
7047 - name: \cyrillicfont
7048 font: Liberation Serif
7049 - name: \cyrillicfonttt
7050 options: Scale=MatchLowercase
7051 font: Liberation
7053 * Create unsigned msi as build artifact in appveyor build.
7055 * On travis, test with ghc 8.0.1; drop testing for ghc 7.4.1.
7057pandoc (1.17.0.3)
7059 * LaTeX writer: Fixed position of label in figures (#2813).
7060 Previously the label wasn't in the right place, and `\ref`
7061 wouldn't work properly.
7062 * Added .tei test files to pandoc.cabal so they'll be included
7063 in tarball (#2811).
7064 * Updated copyright dates.
7066pandoc (1.17.0.2)
7068 * Fixed serious regression in `htmlInBalanced`, which caused
7069 newlines to be omitted in some raw HTML blocks in Markdown
7070 (#2804).
7072pandoc (1.17.0.1)
7074 * File scope is no longer used when there are no input files (i.e.,
7075 when input comes from stdin). Previously file scope was triggered
7076 when the `json` reader was specified and input came from `stdin`,
7077 and this caused no output to be produced. (Fix due to Jesse Rosenthal;
7078 thanks to Fedor Sheremetyev for calling the bug to our attention.)
7079 * Improved documentation of templates (#2797).
7081pandoc (1.17)
7083 * Added `--file-scope` option (Jesse Rosenthal).
7084 By default pandoc operates on multiple files by first concatenating
7085 them (around extra line breaks) and then processing the joined file. So
7086 it only parses a multi-file document at the document scope. This has the
7087 benefit that footnotes and links can be in different files, but for
7088 some purposes it is useful to parse the individual files first
7089 and then combine their outputs (e.g. when the files use footnotes
7090 or links with the same labels). The `--file-scope` option causes
7091 pandoc to parse the files first, and then combine the parsed output,
7092 instead of combining before parsing. `--file-scope` is selected
7093 automatically for binary input files (which cannot be concatenated)
7094 and for pandoc json.
7096 * Add TEI Writer (Chris Forster) and `tei` output format.
7098 * Added a general `ByteStringReader` with warnings, used by the docx
7099 reader (API change, Jesse Rosenthal).
7101 * Add `readDocxWithWarnings` (API change, Jesse Rosenthal).
7103 * Changed type of `Shared.uniqueIdent`'s argument from `[String]`
7104 to `Set String.` This avoids performance problems in documents with
7105 many identically named headers (API change, #2671).
7107 * Removed `tex_math_single_backslash` from `markdown_github` options
7108 (#2707).
7110 * Make language extensions as well as full language names
7111 trigger syntax highlighting. For example, `py` will now work as
7112 well as `python` (jgm/highlighting-kate#83).
7114 * Added `institute` variable to latex, beamer templates (Fraser
7115 Tweedale, Josef Svenningsson).
7117 * Docx reader (Jesse Rosenthal):
7119 + Handle alternate content. Some word functions (especially graphics)
7120 give various choices for content so there can be backwards compatibility.
7121 + Don't turn numbered headers into lists.
7122 + Docx Reader: Add state to the parser, for warnings
7123 + Update feature checklist in source code.
7124 + Get rid of `Modifiable` typeclass.
7125 + Add tests for adjacent hyperlinks.
7126 + Add a "Link" modifier to `Reducible`. We want to make sure that
7127 links have their spaces removed, and are appropriately smushed
7128 together (#2689).
7130 * HTML reader:
7132 + Fixed behavior of base tag (#2777).
7133 If the base path does not end with slash, the last component
7134 will be replaced. E.g. base = `http://example.com/foo`
7135 combines with `bar.html` to give `http://example.com/bar.html`.
7136 If the href begins with a slash, the whole path of the base
7137 is replaced. E.g. base = `http://example.com/foo/` combines
7138 with `/bar.html` to give `http://example.com/bar.html`.
7139 + Rewrote `htmlInBalanced`. This version avoids an exponential
7140 performance problem with `<script>` tags, and it should be faster
7141 in general (#2730).
7142 + Properly handle an empty cell in a simple table (#2718).
7143 + Handle multiple `<meta>` tags with same name. Put them in a list
7144 in the metadata so they are all preserved, rather than (as before)
7145 throwing out all but one..
7147 * Markdown reader:
7149 + Improved pipe table parsing (#2765).
7150 + Allow `+` separators in pipe table cells. We already allowed
7151 them in the header, but not in the body rows, for some reason.
7152 This gives compatibility with org-mode tables.
7153 + Don't cross line boundary parsing pipe table row.
7154 Previously an Emph element could be parsed across the newline
7155 at the end of the pipe table row.
7156 + Use `htmlInBalanced` for `rawVerbatimBlock`, for better
7157 performance (#2730).
7158 + Fixed bug with smart quotes around tex math.
7160 * LaTeX reader:
7162 + Handle interior `$` characters in math (#2743). For example,
7163 `$$\hbox{$i$}$$`.
7164 + `inlineCommand` now gobbles an empty `{}` after any command (#2687).
7165 This gives better results when people write e.g. `\TeX{}` in Markdown.
7166 + Properly handle LaTeX "math" environment as inline math (#2171).
7168 * Textile reader: Support `>`, `<`, `=`, `<>` text alignment attributes.
7169 Closes #2674.
7171 * Org reader (Albert Krewinkel):
7173 + Prefix even empty figure names with "fig:" (#2643). The
7174 convention used by pandoc for figures is to mark them by prefixing
7175 the name with `fig:`. The org reader failed to do this if a figure
7176 had no name.
7177 + Refactor link-target processing (#2684).
7179 * ConTeXt writer: Fix whitespace at line beginning in line blocks (#2744).
7180 Thanks to @c-foster.
7182 * HTML writer: Don't include alignment attribute for default table columns.
7183 Previously these were given "left" alignment. Better to leave off
7184 alignment attributes altogether (#2694).
7186 * Markdown writer: Use hyphens for YAML metadata block bottom line, for
7187 better compatibility with other Markdown flavors (Henrik Tramberend).
7189 * LaTeX writer:
7191 + Use image identifier to create a label and hypertarget for
7192 figures (Mauro Bieg).
7193 + Avoid double toprule in headerless table with caption (#2742).
7194 + Clean up options parser (Jesse Rosenthal).
7195 + Treat `memoir` template with `article` option as article, instead
7196 of treating all `memoir` templates as books.
7197 + Allow more flexible table alignment (Henrik Tramberend, #2665).
7198 New default is not to include `[c]` option (which is the default
7199 anyway if no positioning is specified). Now LaTeX emplates can
7200 control the overall table alignment in a document by setting the
7201 longtable length variables `LTleft` and `LTright`. For example,
7202 `\setlength\LTleft\parindent\setlength\LTright\fill`
7203 will create left-aligned tables that respect paragraph indentation.
7205 * Docx writer: Handle image alt text (#2754, Mauro Bieg).
7207 * Org writer - pass through RawInline with format "org".
7209 * DokuWiki writer: use `$$` for display math.
7211 * Custom writer: Pass attributes parameter to CaptionedImage (#2697).
7213 * Make protocol-relative URIs work again (#2737).
7215 * make_osx_package.sh: Use env variable for developer id certs.
7217 * Raise `tagsoup` lower bound to 0.13.7 to fix entity-related
7218 problems (#2734).
7220 * Allow `zip-archive` 0.3.
7222 * Allow `aeson` 0.11.
7224pandoc (1.16.0.2)
7226 * Depend on deepseq rather than deepseq-generics (fpco/stackage#1096).
7228 * Fixed regression in latex smart quote parsing (#2645).
7229 In cases where a match was not found for a quote, everything
7230 from the open quote to the end of the paragraph was being dropped.
7232pandoc (1.16.0.1)
7234 * Fixed regression with `--latex-engine` (#2618). In 1.16 `--latex-engine`
7235 raises an error if a full path is given.
7237 * Org reader: Fix function dropping subtrees tagged `:noexport`
7238 (Albert Krewinkel, #2628):
7240 * Markdown reader: renormalize table column widths if they exceed 100%
7241 (#2626).
7243 * Textile reader: don't allow block HTML tags in inline contexts.
7244 The reader previously did allow this, following redcloth,
7245 which happily parses
7247 Html blocks can be <div>inlined</div> as well.
7249 as
7251 <p>Html blocks can be <div>inlined</div> as well.</p>
7253 This is invalid HTML. The above sample now produces;
7255 <p>Html blocks can be</p>
7256 <div>
7257 <p>inlined</p>
7258 </div>
7259 <p>as well.</p>
7261 * Improved default template lookup for custom lua scripts (#2625).
7262 Previously, if you tried to do `pandoc -s -t /path/to/lua/script.lua`,
7263 pandoc would look for the template in
7264 `~/.pandoc/templates/default./path/to/lua/script.lua`.
7265 With this change it will look in the more reasonable
7266 `~/.pandoc/templates/default.script.lua`. This makes it possible to
7267 store default templates for custom writers.
7269 * RST, Markdown writers: Fixed rendering of grid tables with blank rows
7270 (#2615).
7272 * LaTeX writer: restore old treatment of Span (#2624). A Span is
7273 now rendered with surrounding `{}`, as it was before 1.16.
7275 * Entity handling fixes: improved handling of entities like
7276 `&lang;` that require a trailing semicolon. Allow uppercase
7277 `x` in numerical hexadecimal character references, working
7278 around a tagsoup bug.
7280 * `stack.yaml` - use lts-4.0, but with older aeson to avoid excessive
7281 memory use on compile. With aeson 0.10 we were getting an out of
7282 memory error on a 2GB Ubuntu 64-bit VM.
7284 * Improved deb package creation script. Made `DPKGVER` work.
7285 Renamed `COMMIT` to `TREE`. You should now be able to do
7286 `TREE=1.16.0.1 DPKGVER=2 make deb`.
7289pandoc (1.16)
7291 * Added `Attr` field to `Link` and `Image` (Mauro Bieg, #261, API change).
7293 + Added syntax for link and image attributes to pandoc's Markdown.
7294 + Updated readers and writers to use link and image attributes
7295 when appropriate.
7296 + Support image attributes in Docx, Textile, RST readers.
7298 * Renamed link attribute extensions. The old `link_attributes` is
7299 now `mmd_link_attributes`, and `link_attributes` now enables the
7300 new pandoc-style link and image attributes (API change).
7301 Note: this change could break some existing workflows.
7303 * Implemented `SoftBreak` and new `--wrap` option (#1701, API change).
7304 Added threefold wrapping option.
7306 + Command line option: deprecated `--no-wrap`, added
7307 `--wrap=[auto|none|preserve]`
7308 + Added `WrapOption`, exported from `Text.Pandoc.Options`
7309 + Changed type of `writerWrapText` in `WriterOptions` from
7310 `Bool` to `WrapOption`.
7311 + Modified `Text.Pandoc.Shared` functions to allow `SoftBreak`.
7312 + Supported `SoftBreak` in readers and writers.
7314 * Text.Pandoc.Options: Added `writerDpi` to `WriterOptions` (API
7315 change, Mauro Bieg).
7317 * Added `--dpi` command-line option (Mauro Bieg).
7319 * Rationalized behavior of `--no-tex-ligatures` and `--smart` (#2541).
7320 This change makes `--no-tex-ligatures` affect the LaTeX reader
7321 as well as the LaTeX and ConTeXt writers. If it is used,
7322 the LaTeX reader will parse characters `` ` ``, `'`, and `-`
7323 literally, rather than parsing ligatures for quotation marks
7324 and dashes. And the LaTeX writer will print unicode quotation
7325 mark and dash characters literally, rather than converting
7326 them to the standard ASCII ligatures. Note that `--smart` has
7327 no effect on the LaTeX reader. `--smart` is still the default
7328 for all input formats when LaTeX or ConTeXt is the output format,
7329 *unless* `--no-tex-ligatures` is used.
7331 Some examples to illustrate the logic:
7333 ```
7334 % echo "'hi'" | pandoc -t latex
7335 `hi'
7336 % echo "'hi'" | pandoc -t latex --no-tex-ligatures
7337 'hi'
7338 % echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
7339 ‘hi’
7340 % echo "'hi'" | pandoc -f latex --no-tex-ligatures
7341 <p>'hi'</p>
7342 % echo "'hi'" | pandoc -f latex
7343 <p>’hi’</p>
7344 ```
7346 * Removed deprecated options `--offline` and `--html5`.
7348 * Fixed language code for Czech (`cs` not `cz`) (#2597).
7350 * Implemented `east_asian_line_breaks` extension (#2586).
7351 In `Text.Pandoc.Options`, added `Ext_east_asian_line_breaks` constructor
7352 to `Extension` (API change). This extension is like
7353 `ignore_line_breaks`, but smarter -- it only ignores line breaks
7354 between two East Asian wide characters. This makes it better suited
7355 for writing with a mix of East Asian and non-East Asian scripts.
7357 * Added support for PDF creation via `wkhtmltopdf`.
7358 To use this: `pandoc -t html5 -o result.pdf` (and add `--mathjax`
7359 if you have math.) Margins can be set using the variables
7360 `margin-top`, `margin-bottom`, `margin-left`, `margin-right`.
7361 Other styling can be done through CSS.
7363 * Fixed cite key parsing regression (jgm/pandoc-citeproc#201).
7364 We were capturing final colons as in `[@foo: bar]`; the citation id
7365 was being parsed as `@foo:`.
7367 * ICML writer:
7369 + Fixed image syntax for local files (#2589).
7370 + Changed type of `writeICML` (Mauro Bieg).
7371 API change: It is now `WriterOptions -> Pandoc -> IO String`.
7372 Also handle new image attributes.
7373 + Intersperse line breaks instead of appending them to
7374 every `ParagraphStyleRange` (Mauro Bieg, #2501).
7375 + Add `Cite` style to citations (Mauro Bieg).
7376 + Added figure handling (#2590, Mauro Bieg).
7377 + Better handling of math. Instead of just printing the raw tex,
7378 we now try to fake it with unicode characters.
7380 * HTML writer: Include `example` class for example lists (#2524).
7382 * ODT/OpenDocument writer: improved image attributes (Mauro Bieg).
7384 + Support for percentage widths/heights
7385 + Use `Attr` instead of title to get dimensions from ODT walker
7386 to `writeOpenDocument`.
7388 * AsciiDoc writer:
7390 + Support anchors in spans and divs with id elements
7391 (jgm/pandoc-citeproc#143).
7392 + Fixed code blocks (#1861).
7394 * Haddock writer: omit formatting inside links, which isn't supported
7395 by Haddock (#2515).
7397 * MediaWiki writer: Fixed spacing issues in table cells.
7399 + Start cell on new line unless it's a single Para or Plain
7400 (#2606).
7401 + For single Para or Plain, insert a space after the `|` to
7402 avoid problems when the text begins with a character like
7403 `-` (#2604).
7405 * Beamer writer: mark frame as fragile when it contains verbatim (#1613).
7407 * LaTeX writer:
7409 + Add support for GAP highlighting using listings (Raniere Silva).
7410 + Consider `header-includes` content as well as templates
7411 when determining whether to use csquotes (Andreas Lööw).
7412 + Create defaults for geometry using `margin-left` etc.
7413 If `geometry` has no value, but `margin-left`, `margin-right`,
7414 `margin-top`, and/or `-margin-bottom` are given, a default value
7415 for `geometry` is created from these. Note that these variables
7416 already affect PDF production via HTML5 with `wkhtmltopdf`.
7418 * ConTeXt writer: set default layout based on `margin-left`, etc.
7419 This sets up `\setuplayout` based on the variables `margin-left`,
7420 `margin-right`, `margin-bottom`, and `margin-top`, if no layout
7421 is given.
7423 * Docx writer: better handling of PDF images. Previously we tried
7424 to get the image size from the image even if an explicit size was
7425 specified. Since we still can't get image size for PDFs, this made
7426 it impossible to use PDF images in docx. Now we don't try to get
7427 the image size when a size is already explicitly specified.
7429 * Markdown writer: use raw HTML for link/image attributes when
7430 the `link_attributes` extension is unset and `raw_html` is set (#2554).
7432 * MediaWiki reader: interpret markup inside `<tt>`, `<code>` (#2607).
7434 * LaTeX reader:
7436 + Improved smart quote parsing (#2555). This fixes redering of
7437 unmatched quotes.
7438 + Use curly quotes for unmatched ` (#2555).
7439 + Allow blank space between braced arguments of commands (#2592).
7441 * Markdown reader:
7443 + Improved pipe table relative widths. Previously pipe table
7444 columns got relative widths (based on the header underscore lines)
7445 when the source of one of the rows was greater in width than the
7446 column width. This gave bad results in some cases where much of
7447 the width of the row was due to nonprinting material (e.g. link
7448 URLs). Now pandoc only looks at printable width (the width of a
7449 plain string version of the source), which should give better results.
7450 Thanks to John Muccigrosso for bringing up the issue.
7451 + Fixed parsing bug with macros. Previously macro definitions in
7452 indented code blocks were being parsed as macro definitions, not code.
7454 * Textile reader: skip over attribute in image source (#2515).
7455 We don't have a place yet for styles or sizes on images, but
7456 we can skip the attributes rather than incorrectly taking them
7457 to be part of the filename.
7459 * Docx reader: Handle dummy list items (Jesse Rosenthal).
7460 These come up when people create a list item and then delete the
7461 bullet. It doesn't refer to any real list item, and we used to ignore
7462 it.
7464 * CommonMark reader/writer rewritten to use latest `cmark`.
7466 * Fixed Emoji character definitions (#2523). There were many bugs in the
7467 definitions.
7469 * `Text.Pandoc.CSS`:
7471 + Added `pickStylesToKVs` function to extract multiple properties at
7472 once (API change, Mauro Bieg).
7473 + Parse CSS that doesn't contain the optional semicolon (Mauro Bieg).
7475 * `trypandoc`: sort drop-down lists.
7477 * Beamer template:
7479 + Made `\euro` conditional on presence of character.
7480 for xelatex and lualatex, as it is for pdflatex (Andrew Dunning).
7481 + Moved `header-includes` before setting of title (Thomas Hodgson),
7482 to match the LaTeX template (jgm/pandoc-templates#168).
7483 + Added `section-titles` variable (defaults to true)
7484 to enable/suppress section title pages in beamer
7485 slide shows (Thomas Hodgson).
7486 + Moved beamer themes after fonts, so that themes can
7487 change fonts. (Previously the fonts set were being
7488 clobbered by lmodern.sty.) (Thomas Hodgson).
7490 * Beamer/LaTeX template changes (Thomas Hodgson):
7491 + Added `thanks` variable
7492 + Use `parskip.sty` when `indent` isn't set (fall back to using
7493 `setlength` as before if `parskip.sty` isn't available).
7494 + Use `biblio-style` with biblatex.
7495 + Added `biblatexoptions` variable.
7497 * LaTeX template changes:
7499 + Added `paper` after `$papersize$` variable in latex template.
7500 Thus you can say `papersize: a4` and the latex will contain
7501 `a4paper`. This change may break some existing workflows; if
7502 you currently specify `a4paper`, you'll get `a4paperpaper` which
7503 is meaningless. However, the change seems worth it, as it will
7504 make the `papersize` variable work uniformly across ConTeXt, LaTeX,
7505 and html->pdf via wkhtmltopdf.
7506 + Only pass options to color package if `colorlinks` is set
7507 (Andrew Dunning).
7508 + Make definition of `\euro` conditional in xelatex/lualatex,
7509 as it is already for pdflatex (Andrew Dunning).
7510 + Removed setting of `subject` in PDF metadata.
7511 This used to be set to the subtitle, but really the subtitle
7512 need not give the subject. Also, `subtitle` can contain formatting,
7513 so we'd need, at least, a plain text version for this.
7514 + Moved `header-includes` before setting of `\title`, `\author`,
7515 etc. This allows these macros to be redefined.
7516 + Use `\subtitle` command for `subtitle`, instead of tacking it
7517 on to the title as before. We give a no-op fallback definition if it
7518 is not defined. This change should produce much better results
7519 in classes that support `\subtitle`. With the default article
7520 class, which does not define `\subtitle`, subtitles will no
7521 longer be printed unless the user defines `\subtitle` and
7522 redefines `\maketitle`.
7523 + Moved redefinitions of `\paragraph` and `\subparagraph` to
7524 before header-includes.
7526 * Context template:
7528 + Use `simplefonts` for font loading (Paolo Rodríguez). This is
7529 needed for things to work on ConTeXt stable from TeXLive 2015.
7530 + Revert use of `\setuphead` in title block (Andrew Dunning,
7531 Rik Kabel).
7533 * Update LaTeX/ConTeXt link colour usage (Andrew Dunning).
7535 * Fixed man template so disabling hyphenation actually works.
7536 The command needs to come after .TH.
7538 * Added 'navigation' variable to beamer template (#2543).
7539 Valid values are `empty` (the default), `horizontal`, `vertical`,
7540 and `frame`. Note that this changes the default behavior from
7541 `horizontal` to `empty`. Closes #2543.
7543 * Added `toc` to HTML slide format templates (Andrew Dunning),
7544 so that `--toc` creates a contents slide.
7546 * Added `stack.full.yaml` to build `pandoc-citeproc` as well.
7548 * Allow pipe tables with no body rows (#2556).
7549 Previously this raised a runtime error.
7551 * Shared: Improved `fetchItem` so that `C:/Blah/Blah.jpg` isn't treated
7552 as URL. The Haskell URI parsing routines will accept "C:" as a
7553 scheme, so we rule that out manually. This helps with
7554 `--self-contained` and absolute Windows paths.
7556 * Define a `meta-json` variable for all writers (#2019). This contains
7557 a JSON version of all the metadata, in the format selected for the
7558 writer. So, for example, to get just the YAML metadata, you can run
7559 pandoc with the following custom template: `$meta-json$`. The intent
7560 is to make it easier for static site generators and other tools to get
7561 at the metadata.
7563 * Document limitations of --self-contained (#2553).
7565 * Improved Citations section of README (#2551). Added information
7566 about `link-citations` and a link to the pandoc-citeproc man page.
7568 * `ImageSize`: use `safeRead` instead of `readMaybe`, which isn't
7569 in base < 4.6.
7571 * Allow .adoc file extension for AsciiDoc (Andrew Dunning).
7573 * Improved implicit pandoc-citeproc inclusion.
7574 The filter pandoc-citeproc is automatically used when
7575 `--bibliography` is specified on the command line, unless
7576 `--natbib` or `--biblatex` is used. However, previously this
7577 only worked if `--bibliography` was spelled out in full, and not
7578 if `--biblio` was used.
7580 * reveal.js: Interpret pauses correctly for all headers (#2530).
7581 Previously, when using headers below the slide level, pauses are left
7582 uninterpreted into pauses. In my opinion, unexpected behavior but
7583 intentional looking at the code.
7585 * Remove redundant `center` variable for reveal.js (Andrew Dunning).
7587 * Parsing: Add `extractIdClass`, modified type of `KeyTable` (Mauro
7588 Bieg, API change).
7590 * ImageSize: Added functions for converting between image dimensions
7591 (Mauro Bieg).
7593 * Use lts-3.18 in stack.yaml. This avoids Windows build
7594 issues with the HTTP library.
7596 * Bump version bounds for dependencies.
7598pandoc (1.15.2.1)
7600 * Added two missing test files, and `stack.yaml`, to
7601 `extra-source-files` so they're included in the source tarball.
7603 * reveal.js template: Fixed parallaxBackground options.
7604 `parallaxBackgroundHorizontal` and `parallaxBackgroundVertical`
7605 need integer values, not strings. (Vaughn Iverson)
7607pandoc (1.15.2)
7609 * `pandoc my.md -t context -o my.pdf` will now create a PDF using
7610 ConTeXt rather than LaTeX (#2463).
7612 * Fixed omitted `url(...)` in CSS data-uri with `--self-contained` (#2489).
7614 * Added `emoji` Markdown extension, enabled by default in `markdown_github`
7615 (#2523). Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options`
7616 (API change).
7618 * `Text.Pandoc.Readers.HTML.parseTags`: Fixed over-eager raw HTML inline
7619 parsing (#2469). Tightened up the inline HTML parser so it disallows
7620 TagWarnings.
7622 * Derive `Generic` instances for the types in `Text.Pandoc.Options`.
7624 * Org reader:
7626 + Fix paragraph/list interaction (Albert Krewinkel, #2464).
7627 Paragraphs can be followed by lists, even if there is no blank line
7628 between the two blocks. However, this should only be true if the
7629 paragraph is not within a list, were the preceding block should be
7630 parsed as a plain instead of paragraph (to allow for compact lists).
7631 Thanks to @rgaiacs for bringing this up.
7632 + Allow toggling header args (Albert Krewinkel, #2269).
7633 Org-mode allows to skip the argument of a code block header argument if
7634 it's toggling a value. Argument-less headers are now recognized,
7635 avoiding weird parsing errors.
7636 + Fix markup parsing in headers (Albert Krewinkel, #2504).
7637 Markup as the very first item in a header wasn't recognized. This was
7638 caused by an incorrect parser state: positions at which inline markup
7639 can start need to be marked explicitly by changing the parser state.
7640 This wasn't done for headers. The proper function to update the state
7641 is now called at the beginning of the header parser, fixing this issue.
7642 + Fix emphasis rules for smart parsing (Albert Krewinkel, #2513).
7643 Smart quotes, ellipses, and dashes should behave like normal quotes,
7644 single dashes, and dots with respect to text markup parsing.
7645 + Require whitespace around definition list markers (#2518).
7646 This rule was not checked before, resulting in bugs with footnotes
7647 and some link types.
7649 * Markdown reader:
7651 + Pipe tables with long lines now get relative cell widths (#2471).
7652 If a pipe table contains a line longer than the column width (as set by
7653 `--columns` or 80 by default), relative widths are computed based on the
7654 widths of the separator lines relative to the column width. This should
7655 solve persistent problems with long pipe tables in LaTeX/PDF output, and
7656 give more flexibility for determining relative column widths in other
7657 formats, too. For narrower pipe tables, column widths of 0 are used,
7658 telling pandoc not to specify widths explicitly in output formats that
7659 permit this.
7660 + Improved parser for `mmd_title_block`. We now allow blank metadata
7661 fields. These were explicitly disallowed before.
7662 + Citation keys can now contain `://`, so URLs and DOIs can be used
7663 as citation keys (jgm/pandoc-citeproc#166).
7665 * Beamer template: fix incompatibility of section slides with natbib.
7666 Natbib (and presumably biblatex) bibliography commands create
7667 their own section. Since these are in frame environments,
7668 we have an incompatibility with the `\AtBeginSection` macro
7669 which creates a special frame when a new section occurs.
7670 (We can't have a frame inside another frame.) This change disables
7671 `\AtBeginSection` inside bibliography slides. Thinks to Yihui Xie for
7672 bringing the problem to my attention. This supersedes #145. See
7673 discussion there.
7675 * Textile reader: don't do smart punctuation unless explicitly asked
7676 (#2480). Note that although smart punctuation is part of the textile
7677 spec, it's not always wanted when converting from textile
7678 to, say, Markdown. So it seems better to make this an option.
7680 * LaTeX reader: Handle `comment` environment (Arata Mizuki).
7681 The `comment` environment is handled in a similar way to the
7682 `verbatim` environment, except that its content is discarded.
7684 * Docx reader: Follow relationships correctly in foot/endnotes (#2258,
7685 Jesse Rosenthal). This fixes a problem with links in notes.
7687 * LaTeX and ConTeXt writers: support `lang` attribute on divs and spans
7688 (Mauro Bieg). For LaTeX, also collect `lang` and `dir` attributes on
7689 spans and divs to set the `lang`, `otherlangs` and `dir` variables if
7690 they aren’t set already. See #895.
7692 * LaTeX writer:
7694 + Use proper command for `\textarabic` (Mauro Bieg).
7695 + Added `de-CH-1901`, fixed `el-polyton` in `toPloyglossia` (Nick Bart).
7696 + Use `\hypertarget` and `\hyperlink` for links. This works correctly
7697 to link to Div or Span elements. We now don't bother defining `\label`
7698 for Div or Span elements. Closes jgm/pandoc-citeproc#174.
7699 + Avoid footnotes in list of figures (#1506).
7700 + Properly handle footnotes in captions (#1506).
7701 + Add `\protect` to `\hyperlink` (#2490). Thanks to Hadrien Mary.
7702 + Set `colorlinks` if `linkcolor`, `urlcolor`, `citecolor`, or
7703 `toccolor` is set (#2508).
7705 * Textile writer: support start number in ordered lists (#2465).
7707 * OpenDocument writer: Allow customization of opendocument
7708 automatic styles. Automatic styles can now be inserted in the
7709 template, which now provides the enclosing `<office:automatic-styles>`
7710 tags (#2520).
7712 * Docx writer: insert space between footnote reference and note (#2527).
7713 This matches Word's default behavior.
7715 * EPUB writer: don't download linked media when `data-external` attribute
7716 set (#2473). By default pandoc downloads all linked media and includes it
7717 in the EPUB container. This can be disabled by setting `data-external` on
7718 the tags linking to media that should not be downloaded. Example:
7720 <audio controls="1">
7721 <source src="http://example.com/music/toccata.mp3"
7722 data-external="1" type="audio/mpeg">
7723 </source>
7724 </audio>
7726 * HTML writer: use width on whole table if col widths sum to < 100%.
7727 Otherwise some browsers display the table with the columns
7728 separated far apart.
7730 * AsciiDoc template: Fix `author` and `date`; add `keywords`,
7731 `abstract` (Andrew Dunning).
7733 * HTML-based templates (Andrew Dunning):
7735 + Use en dash instead of hyphen between title prefix and title.
7736 + Add `keywords` to metadata.
7737 + Add `lang`, `dir`, `quotes` where missing.
7738 + Always make author and date display conditional.
7739 + Updated dzslides template from source.
7741 * Man template: make "generated by" comment conditional.
7743 * LaTeX, Beamer templates:
7745 + Add `babel-otherlangs` for language divs/spans; `babel-newcommands`,
7746 filled by commands that make babel understand the polyglossia-style
7747 language directives (Mauro Bieg, #137).
7748 + Improved formatting of conditionals; `$for$` is always provided to allow
7749 multiple options (Andrew Dunning, #141).
7750 + Use `Ligatures=TeX` rather than `Mapping=tex-text` with `fontspec`
7751 to improve support for LuaTeX (Andrew Dunning, #135).
7752 + Revise `hyperref` usage (Andrew Dunning, #139, #141):
7753 - use same options for all LaTeX engines;
7754 - add `subtitle` and `keywords` to PDF metadata;
7755 - do not override `hyperref` link coloring without user input, effectively making
7756 the `hidelinks` option the default (removed as a separate variable);
7757 - link colors can be enabled (using a slightly darker version of the old
7758 defaults) using a new `colorlinks` variable, automatically used by
7759 the LaTeX writer when custom colors are specified;
7760 - `pdfborder={0 0 0}` is automatically set by `hyperref` with
7761 `colorlinks`, and is only applied if `colorlinks` is disabled.
7763 * ConTeXt template (Andrew Dunning):
7765 + New variables for controlling styles: `linkstyle`, `linkcolor`,
7766 `linkcontrastcolor`, `layout`, `pagenumbering`, `whitespace`, `indenting`,
7767 `interlinespace`, `headertext`, `footertext`, `mainfont`, `sansfont`,
7768 `monofont`, `mathfont`, `fontsize`.
7769 + Default template no longer supports MkII.
7770 + Improve writing of title block (suppressing numbering of first page).
7771 + Add `title` `subtitle`, `author`, `date`, `keywords` to PDF metadata.
7772 + Support `subtitle`, `abstract`.
7773 + Support list of figures (`lof`), list of tables (`lot`).
7774 + Disable link styling by default.
7775 + Define styles for all section types.
7776 + Enable microtype.
7777 + Improved formatting of conditionals.
7779 * Beamer template: added code to prevent slide breaks inside paragraphs
7780 (#2422, thanks to Nick Bart). This will matter, in practice, only when
7781 `allowframebreaks` is used. It is especially helpful for bibliography
7782 slides.
7784 * OpenDocument template: Add `<office:automatic-styles>` tag around
7785 automatic styles. The writer now longer provides this (see #2520).
7787 * Restored Text.Pandoc.Compat.Monoid.
7789 * Do not export (<>) from custom Prelude. The Prelude now matches
7790 base 4.8 Prelude's API.
7792 * Don't use custom prelude with ghc 7.10. Use the custom prelude
7793 only for earlier versions. This change makes `stack ghci` and
7794 `cabal repl` work (#2503), at least with ghc 7.10.
7796 * Changed § to % in operators from Odt.Arrows.Utils (#2457).
7797 This prevents problems building haddocks with "C" locale.
7799 * Change default for old-locale flag to False.
7801 * Use stack in deb, osx, and Windows package generators.
7803 * Added Vagrantfile for building deb in vm.
7804 This should help in automating binary package creation. 'make package'
7805 will make the package. 'make package COMMIT=blah' will make the package
7806 from commit blah.
7808 * README:
7810 + Consistent capitalization for pandoc and Markdown.
7811 + Fixed `auto_identifiers` examples (Benoit Schweblin).
7812 + Improved documentation of template variables (Andrew Dunning).
7814pandoc (1.15.1.1)
7816 * `Text.Pandoc.Data`: store paths in dataFiles using posix separators.
7817 This way we have uniform separators, whether on Windows or Linux.
7818 This should solve a problem where on some Windows versions
7819 the data files weren't being found (#2459).
7821pandoc (1.15.1)
7823 * `pandocVersion` is now defined in `Text.Pandoc.Shared`
7824 and reexported from `Text.Pandoc` (Alex Vong). This allows
7825 writers to access it. (Alex Vong) (API change)
7827 * For `markdown_mmd`, add: `implicit_figures`, `superscripts`,
7828 `subscripts` (#2401).
7830 * Added `odt` as input format (Martin Linnemann). Added new module
7831 `Text.Pandoc.Reader.ODT` (API change). Fully implemented features:
7832 Paragraphs, Headers, Basic styling, Unordered lists, Ordered lists,
7833 External Links, Internal Links, Footnotes, Endnotes, Blockquotes.
7834 Partly implemented features: Citations, Tables.
7836 * Markdown Reader:
7838 + Add basic tests for each header style (Ophir Lifshitz).
7839 + Add implicit header ref tests for headers with spaces (Ophir Lifshitz).
7840 + Skip spaces in headers (Ophir Lifshitz).
7841 + Handle 'id' and 'class' in parsing key/value attributes (#2396).
7842 `# Header {id="myid" class="foo bar"}`
7843 is now equivalent to `# Header {#myid .foo .bar}`.
7844 + Use '=' instead of '#' for atx-style headers in markdown+lhs.
7845 (Kristof Bastiaensen)
7846 + Pipe tables: allow indented columns. Previously the left-hand column
7847 could not start with 4 or more spaces indent. This was inconvenient
7848 for right-aligned left columns. Note that the first (header column)
7849 must still have 3 or fewer spaces indentation, or the table will be
7850 treated as an indented code block.
7851 + Fix regression: allow HTML comments containing `--`.
7852 Technically this isn't allowed in an HTML comment, but
7853 we've always allowed it, and so do most other implementations.
7854 It is handy if e.g. you want to put command line arguments
7855 in HTML comments.
7857 * LaTeX reader:
7859 + Don't eat excess whitespace after macros with only optional
7860 arguments (#2446).
7861 + Support longtable (#2411).
7862 + Implement `\Cite` (#2335).
7863 + Support abstract environment. The abstract populates an
7864 `abstract` metadata field.
7865 + Properly handle booktabs lines. Lines aren't part of the
7866 pandoc table model, so we just ignore them (#2307).
7868 * HTML reader:
7870 + Handle type attribute on ol, e.g. `<ol type="i">` (#2313).
7871 + Updated for new automatic header attributes.
7872 + Add auto identifiers if not present on headers. This makes
7873 TOC linking work properly.
7874 + Detect `font-variant` with `pickStyleAttrProps` (Ophir Lifshitz).
7875 + Test `<ol>` type, class, and inline list-style(-type) CSS
7876 (Ophir Lifshitz).
7877 + Better handling of "section" elements (#2438). Previously
7878 `<section>` tags were just parsed as raw HTML blocks. With
7879 this change, section elements are parsed as Div elements with
7880 the class "section".
7882 * MediaWiki reader: handle unquoted table attributes (#2355).
7884 * DocBook reader:
7886 + Added proper support for DocBook `xref` elements (Frerich Raabe).
7887 Added `dbContent` field to reader state, so we can lookup
7888 cross refs.
7889 + Handle `informalexample` (#2319).
7891 * Docx Reader:
7893 + Create special punctuation test (Ophir Lifshitz).
7894 + Parse soft, no-break hyphen elements (Ophir Lifshitz).
7895 + Updated headers test (Ophir Lifshitz). Replaced `styles.xml`
7896 in `headers.docx` with pandoc's current `styles.xml`, which
7897 contains styles for Heading 1 through 6. Added Heading 4
7898 through 7 to the test document. Note that Heading 7 is not
7899 parsed as a Heading because there is no Heading 7 style.
7901 * RST reader: better handling of indirect roles.
7902 Previously the parser failed on this kind of case
7904 .. role:: indirect(code)
7906 .. role:: py(indirect)
7907 :language: python
7909 :py:`hi`
7911 Now it correctly recognizes `:py:` as a code role.
7913 * Org reader:
7915 + Add auto identifiers if not present on headers
7916 (#2354, Juliusz Gonera).
7917 + Allow verse blocks to contain empty lines (#2402,
7918 Albert Krewinkel).
7920 * EPUB reader: stop mangling external URLs (#2284).
7922 * RST writer:
7924 + Don't insert `\ ` when complex expression in matched pairs.
7925 E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
7926 + Ensure that `\ ` is inserted when needed before Cite and Span
7927 elements that begin with a "complex" element (jgm/pandoc-citeproc#157).
7928 + Normalize headers only in "standalone" mode (#2394).
7930 * Haddock writer: escape `*` and `^` (G. Bataille).
7932 * Markdown writer:
7934 + In TOC, add links to headers (#829).
7935 + Use unicode super/subscripts for digits in plain output
7936 (when the `superscripts` and `subscripts` extensions are
7937 not enabled).
7939 * Docx writer:
7941 + Moved invalid character stripping to `formattedString`.
7942 This avoids an inefficient generic traversal (#2356).
7943 + Use user data directory for `reference.docx` archive.
7944 This allows the test suite to work without installing pandoc first.
7945 It also brings the docx writer in line with the odt writer.
7946 + Tests: docx writer tests now use `../data` for data directory.
7947 This allows tests to be run without installing first.
7948 + Tests: Use real jpg (not empty) for docx tests to avoid warning.
7950 * LaTeX writer:
7952 + Fixed detection of 'chapters' from template.
7953 If a documentclass isn't specified in metadata, but the
7954 template has a hardwired bookish documentclass, act as if
7955 `--chapters` was used. This was the default in earlier
7956 versions, but it has been broken for a little while.
7957 + Correctly recognize book documentclass in metadata (#2395).
7958 + Set language-related variables automatically, depending
7959 on the value of the `lang` field, which is now always
7960 assumed to be in BCP47 format (Mauro Bieg, #1614, #2437).
7961 + Add `\protect` to `\hyperdef` in inline context. This way we
7962 don't get an error when this is used as a moveable argument (#2136).
7963 + Support all frame attributes in Beamer.
7964 + Percent-encode more special characters in URLs (#1640, #2377).
7965 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
7967 * HTML writer:
7969 + Update KaTeX JS and CSS versions (Emily Eisenberg).
7970 + For dzslides, add `role="note"` for speaker notes (#1693).
7971 + Percent-encode more special characters in URLs (#1640, #2377).
7972 The special characters are '<','>','|','"','{','}','[',']','^', '`'.
7973 + Render Div with class `section` as `<section>` in HTML5.
7975 * EPUB writer:
7977 + In TOC, replace literal `<br/>` with space (#2105).
7978 + With `--webtex`, include image file rather than `data:` URI (#2363).
7980 * Native writer: format Div properly, with blocks separated.
7982 * Support bidirectional text output with XeLaTeX, ConTeXt and HTML
7983 (#2191, Mauro Bieg).
7985 * Reference Docx:
7987 + Add missing Header 6 style (steel blue) (Ophir Lifshitz).
7988 + Correct `outlineLvl` for Header styles (Ophir Lifshitz).
7990 * Templates
7992 + Beamer: Add `innertheme`, `outertheme` variables
7993 (Guilhem Bonnefille, #121). Add space after colon in figure caption.
7994 Integrate recent font and language updates from LaTeX template;
7995 allow use of `mainfont` variable for changing the slide text
7996 in XeTeX and LuaTeX (Andrew Dunning, #131).
7997 + LaTeX: Add `mainfontoptions`, `sansfontoptions`,
7998 `monofontoptions`, `mathfontoptions`, `fontfamilyoptions`
7999 (Andrew Dunning, #122). Support handling of bidirectional
8000 text (Mauro Bieg, #120). Improve reliability of superscripts/subscripts
8001 under XeTeX and prevent letters and numbers from appearing on a
8002 different baseline by removing use of the `realscripts` package
8003 (via `xltxtra`). To restore use of OpenType characters for these
8004 features under XeTeX or LuaTeX, add `\usepackage{realscripts}` to
8005 `header-includes` (Andrew Dunning, #130). Remove redundant
8006 reference to `xunicode` (Andrew Dunning, #130). Add `fontenc`,
8007 `indent`, `subparagraph` variables (Andrew Dunning).
8008 Allow use of `hidelinks` variable for `hyperref` package (Hugo Roy,
8009 #113). Prevent package clash with `tufte-latex` and other classes that
8010 include `hyperref` or `color` (Xavier Olive, #115).
8011 + ConTeXt: Support handling of bidirectional text (Mauro Bieg, #120).
8012 + LaTeX and ConTeXt: Use more specific language variables.
8013 Instead of directly using `lang`, we now use `babel-lang` and
8014 `polyglossia-lang` and `context-lang`. These variables are set by
8015 the writers to the necessary values, based on the `lang` variable
8016 (which now always takes a value in BCP47 format). (Mauro Bieg, #114,
8017 #129).
8018 + HTML: Support handling of bidirectional text (Mauro Bieg, #120).
8019 Move HTML5 shiv after CSS and fix URL (Andrew Dunning).
8020 Add dir attribute in html5 (Andrew Dunning).
8021 + reveal.js: Add `controls`, `progress` variables (Grégoire Pineau, #127).
8022 Add `width`, `height` variables (Andrew Dunning). Update template
8023 from 3.1 source (Andrew Dunning). All configuration options are now
8024 available as variables, but are only be included if set (reveal.js
8025 uses defaults otherwise).
8026 + man: Added comment stating that the page is autogenerated by pandoc,
8027 giving version. Added `adjusting` and `hyphenate` variables
8028 (Alex Vong, #123).
8030 * epub.css: added selectors for nested emphasis (Pablo Rodriguez).
8032 * MediaBag: ensure that `/` is always used as path separator.
8034 * `sample.lua`: define `CaptionedImage`, add newline at end (#2393).
8036 * Added `--bash-completion` option. This generates a bash completion
8037 script. To use: `eval "$(pandoc --bash-completion)"`.
8039 * Text.Pandoc.Error: Define Typeable and Exception instances
8040 for PandocError (#2386).
8042 * Text.Pandoc.Parsing: `toKey`: strip off outer brackets.
8043 This makes keys with extra space at the beginning and end
8044 work: e.g.
8046 [foo]: bar
8048 [ foo ]
8050 will now be a link to bar (it wasn't before).
8052 * Text.Pandoc: disable `auto_identifiers` for epub.
8053 The epub writer inserts its own auto identifiers;
8054 this is more complex due to splitting into "chapter" files.
8056 * Renamed Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time.
8057 It now reexports Data.Time.
8059 * Use custom Prelude to avoid compiler warnings.
8061 + The (non-exported) prelude is in prelude/Prelude.hs.
8062 + It exports Monoid and Applicative, like base 4.8 prelude,
8063 but works with older base versions.
8064 + It exports (<>) for mappend.
8065 + It hides 'catch' on older base versions.
8067 * Added a `stack.ymal` and stack install instructions to INSTALL.
8069 * Clarified what is "out of scope" in README and CONTRIBUTING.md.
8071 * Added note to CONTRIBUTING.md about ghc versions and travis.
8073 * Clarify docs on block quotes. The space after `>` is optional (#2346).
8075 * Removed obsolete reference to default.csl (#2372).
8077 * List all styles in manual for `--reference-docx` (Chris Black)
8079 * Don't capitalize header links in man page.
8081 * Added section on repl to CONTRIBUTING.md.
8083 * README: Added space after backslash in image example (#2329).
8085 * Document details of citation locator terms (Nick Bart).
8087 * Fixed some internal links in README (#2309).
8089 * Improve CSL documentation, variables documentations,
8090 links, and cross-references in README. (Andrew Dunning)
8092 * Fix build failure with `--flags=-https` (Sergei Trofimovich).
8094 * Use `newManager` instead of `withManager` in recent `http-client`.
8095 This avoids a deprecation warning.
8097 * Allow building with latest versions of http-types,
8098 HUnit, criterion, syb, aeson.
8100 * Updated benchmark program for new criterion API.
8102 * Setup.hs: rewrite so as not to use process, directory, filepath.
8103 Using anything outside base is dangerous, since older
8104 versions of ghc may link against two different versions.
8106 * Added appveyor (Windows continuous integration) builds.
8108 * New `.travis.yml`. Autgenerated using `make_travis_yml.hs`.
8109 This script has been modified in a few ways, e.g. to add `GHCOPTS`.
8110 `make .travis.yml` regenerates it based on the tested-with
8111 field of the cabal file.
8113pandoc (1.15.0.6)
8115 * `--self-contained`: Fixed overaggressive CSS minimization (#2301, 2286).
8116 Previously `--self-contained` wiped out all spaces in CSS,
8117 including semantically significant spaces. This was a regression
8118 from 1.14.x.
8120 * Markdown reader: don't allow bare URI links or autolinks in link
8121 label (#2300). Added test cases.
8123 * `Text.Pandoc.Parsing`, `uri`: Improved bare autolink detection (#2299).
8124 Previously we disallowed `-` at the end of an autolink,
8125 and disallowed the combination `=-`. This commit liberalizes the
8126 rules for allowing punctuation in a bare URI, and adds test cases.
8127 One potential drawback is that you can no longer put a bare
8128 URI in em dashes like this:
8129 `this uri---http://example.com---is an example.`
8130 But in this respect we now match github's treatment of bare URIs.
8132 * HTML writer: support speaker notes in dzslides.
8133 With this change `<div class="notes">` and also `<div class="notes"
8134 role="note">` will be output if `-t dzslides` is used. So we can
8135 have speaker notes in dzslides too. Thanks to maybegeek.
8137 * Updated dzslides template.
8139 * Improved documentation of options to print system default files (#2298).
8140 `--print-default-data-file` and `--print-default-template`.
8142 * DokuWiki writer: use `$..$` for Math instead of `<math>..</math>`
8143 (Tiziano Müller). MathJax seems currently to be the only maintained
8144 math rendering extension for DokuWiki.
8146 * `Text.Pandoc.Shared`: Changed `hierarchicalize` so it treats references
8147 div as top-level header (#2294). This fixes a bug with `--section-divs`,
8148 where the final references section added by pandoc-citeproc, enclosed in
8149 its own div, got nested in the div for the section previous to it.
8151 * Allow vector 0.11.
8153 * Require cmark > 0.4.
8155pandoc (1.15.0.5)
8157 * HTML writer: Fixed email javascript obfuscation with `mailto:`
8158 URLs (#2280). This fixes a potential security issue. Because
8159 single quotes weren't being escaped in the link portion, a
8160 specially crafted email address could allow javascript code injection.
8162 * Markdown/HTML readers: Avoid parsing partial URLs like
8163 `<www.pandoc.org/blah#foo>` as HTML tags (#2277).
8165 * RST reader: allow inline formatting in definition list field
8166 names (Lars-Dominik Braun).
8168 * PDF: Make sure `--latex-engine-opt` goes before the filename
8169 on the command line. LaTeX needs the argument to come after
8170 the options (#1779).
8172 * CommonMark writer: fixed tags used for super/subscript.
8174 * ConTeXt template: activate hanging indent for definition lists
8175 (Mauro Bieg).
8177 * Make cabal require `hsb2hs` >= 0.3.1 if `embed_data_files` specified.
8178 This is done by adding `hookedPrograms` in `Setup.hs`, which allows us
8179 to include `hsb2hs` in Build-Tools in cabal.
8181 * Improved Windows installer (thanks to nkalvi).
8183 + When per-machine installation is chosen, the system path
8184 is updated instead of the user's.
8185 + An appropriate default is used for per-machine installation
8186 directory.
8187 + Admin privileges are no longer required for a per-user install
8189 * Travis: unpack sdist for build to catch packaging bugs.
8191 * Improved documentation on where user templates go (#2272).
8193pandoc (1.15.0.4)
8195 * Added pandoc.1 man page to the repository. It is no longer
8196 built as part of the cabal build process. (This proved too
8197 fragile.) pandoc.1 can be regenerated (`make man/pandoc.1`)
8198 when `README` is changed.
8200 * Copying of the man page now respects `--destdir` (#2262).
8202 * Improved error messages for filters. User is now informed if
8203 the filter requires an interpreter that isn't found in the path,
8204 or if the filter returns an error status.
8206pandoc (1.15.0.3)
8208 * Ensure target directory is created when installing man page.
8210pandoc (1.15.0.2)
8212 * Added files needed for building man page to Extra-Source-Files.
8214pandoc (1.15.0.1)
8216 * Man page is now built and installed as part of the cabal build
8217 process. Removed Makefile target for man page.
8219pandoc (1.15)
8221 * Man page changes:
8223 + Removed `--man1`, `--man5` options (breaking change).
8224 + Removed `Text.Pandoc.ManPages` module (breaking API change).
8225 + Makefile target for `man/man1/pandoc.1`. This uses pandoc to
8226 create the man page from README using a custom template and filters.
8227 + Added `man/` directory with template and filters needed to build
8228 man page.
8229 + We no longer have two man pages: `pandoc.1` and `pandoc_markdown.5`.
8230 Now there is just pandoc.1, which has all the content from README.
8231 This change was needed because of the extensive cross-references
8232 between parts of the README.
8233 + Removed old `data/pandoc.1.template` and
8234 `data/pandoc_markdown.5.template`.
8236 * OpenDocument writer: Do not add a carriage return after a hard
8237 line break (Michael Chladek).
8239 * ConTeXt writer:
8241 + use `\goto` for internal links.
8242 + Added a `%` at end for `\reference` to avoid spurious space.
8244 * Ignore sandbox on 'make quick'
8246pandoc (1.14.1)
8248 * Added `--man1` and `--man5` options to pandoc, allowing pandoc
8249 to generate its own man pages. Man pages are no longer automatically
8250 generated in the build process (the process for this was too complex
8251 and prone to failure, #2190). The `make-pandoc-man-pages` executable
8252 has been removed. The `man/` directory has been removed, and man page
8253 templates have been moved to `data/`. NOTE TO PACKAGERS: You will no
8254 longer find pandoc's man pages in `man/`, but you can generate them using
8255 `pandoc --man1 > pandoc.1` and `pandoc --man5 > pandoc_markdown.5`.
8257 * Added new unexported module: `Text.Pandoc.ManPages`.
8259 * `README` now acts like a data file (even though it isn't in
8260 `data/`). So, for example, `pandoc --print-default-data-file README`
8261 will produce the README.) This change was required for the `--man1`
8262 and `--man5` options, since the man pages are produced from the
8263 README, but it may be useful for other purposes as well.
8265 * Allow `reference.docx` and `reference.odt` to be used with
8266 `--print-default-data-file` and to shadow defaults if placed in
8267 the user data directory. Note that as of 1.14, we no longer
8268 include these files as data files; instead, we include their
8269 components. This change causes pandoc to behave as if it has
8270 these data files; they are constructed on demand when needed
8271 using `getDefaultReferenceDocx` and `getDefaultReferenceODT`.
8273 * Fixed regression in CSS parsing with `--self-contained` (#2224).
8274 Pandoc 1.14.0.x used css-text to parse the CSS, but its parser
8275 silently drops big sections of CSS. This commit replaces the
8276 use of css-text with a small but principled CSS preprocessor,
8277 which removes whitespace and comments and replaces `url()` with
8278 base 64 data when possible.
8280 * Use `https://` instead of `//` for MathJax and KaTeX CDN URLs (#1920).
8281 This will allow math to work when pages are being viewed locally.
8283 * `Text.Pandoc.Options`: Export `plainExtensions`.
8284 These are the extensions used in `plain` output.
8286 * LaTeX reader: Don't parse `_` and `^` as sub/superscript outside of
8287 math mode; treat them as regular inline text. Normally these will
8288 cause an error in LaTeX, but there are contexts (e.g. `alltt`
8289 environments) where they are allowed.
8291 * HTML reader: allow `<body>` to close `<head>`.
8293 * DocBook reader: support `mediaobject`s and `figures` (#2184, Mauro Bieg).
8295 * RST reader: Fix reference names with special characters
8296 (Lars-Dominik Braun).
8298 * Textile writer: escape `+` and `-` as entities (#2225).
8300 * DokuWiki writer: Use proper `<code>` tags for code blocks (#2213).
8302 * Plain writer: don't use symbols for super/subscript (#2237).
8303 Simplified code by using `plainExtensions`.
8305 * InDesign writer: Properly escape URLs containing more than one
8306 colon character (gohai).
8308 * Docx writer: Make sure we use dist version of `reference.docx`
8309 (and not the user's version) for certain settings. Taking some
8310 settings values from a user-supplied reference.docx can lead to
8311 corruption. This fixes a regression from the last release (#2249).
8313 * `Text.Pandoc.Shared`: exports `getDefaultReferenceDocx` and
8314 `getDefaultReferenceODT` (API change). These functions have been
8315 removed from the Docx and ODT writers.
8317 * LaTeX template (Xavier Olive):
8318 + Added `CJKmainfont` and `CJKoptions` variables.
8319 + Allow dvipsnames (e.g. `MidnightBlue`) for colors (Xavier Olive).
8321 * Epub templates: use `author.role`, not `author.type`.
8323 * Bump cmark version to >= 0.3.4.
8325 * Improved Windows installer (#2205, thanks to nkalvi).
8326 Users can now select a per-user or systemwide install, and can set
8327 the installation path. At the end of installation, the install location
8328 is given. The install location is also now given in the list of
8329 installed programs in Control Panel. Cleaner WiX syntax is used for
8330 setting the path.
8332 * Added `download_stats` target to Makefile.
8334pandoc (1.14.0.4)
8336 * Added missing commonmark template.
8338 * Improved try pandoc (moved button, show raw command).
8340pandoc (1.14.0.3)
8342 * Allow compilation with syb 0.5.*.
8344 * Custom writer: fixed some compiler warnings for ghc < 7.10.
8346pandoc (1.14.0.2)
8348 * Allow building with hslua 0.4.
8350pandoc (1.14.0.1)
8352 * Fixed problem with building of `reference.docx` and `reference.odt`
8353 when the `embed_data_files` flag is used. Instead of having a phase
8354 of the build where `reference.docx` and `reference.odt` are created
8355 from their constituent data files, we now construct these archives
8356 from their constituents when a `docx` or `odt` is built. The
8357 constituent files have been moved from `extra-source-files` to
8358 `data-files`, and `reference.docx` and `reference.odt` have been
8359 removed. Users can create their own `reference.docx` or
8360 `reference.odt` by using pandoc to create a simple `docx` or `odt`.
8361 `make-reference-files.hs` has been removed, simplifying the build
8362 process (#2187)
8364 * Don't include generated man pages in extra-source-files (#2189).
8366 * Bumped upper bound for aeson.
8368 * ConTeXt writer: create internal link anchors for Div elements with
8369 identifiers. (This is needed for linked citations to work.)
8371pandoc (1.14)
8373 [new features]
8375 * Added `commonmark` as input and output format.
8377 * Added `--verbose` flag for debugging output in PDF production (#1840,
8378 #1653).
8380 * Allow wildcards in `--epub-embed-font` arguments (#1939).
8382 * Added `--latex-engine-opt` option (#969, #1779, Sumit Sahrawat).
8384 * Added `shortcut_reference_links` extension (Konstantin Zudov, #1977).
8385 This is enabled by default for those markdown flavors that
8386 support reading shortcut reference links, namely: `markdown`,
8387 `markdown_strict`, `markdown_github`, `markdown_php`.
8388 If the extension is enabled, the reader parses shortcut reference
8389 links like `[foo]`, and the writer creates such links unless doing
8390 so would cause problems. Users of markdown flavors that support
8391 shortcut reference links should not notice a difference in reading
8392 markdown, but the markdown pandoc produces may differ.
8393 If shortcut links are not desired, the extension can be disabled
8394 in the normal way.
8396 [behavior changes]
8398 * `--toc` is now supported for `docx` output (#458, Nikolay Yakimov).
8399 A "dirty" TOC is created at the beginning of document.
8400 It can be regenerated after the document has been opened.
8402 * An implicit `--filter pandoc-citeproc` is now triggered only when the
8403 `--bibliography` option is used, and not when the `bibliography`
8404 field in metadata is specified (#1849).
8406 * Markdown reader:
8408 + Reference links with `implicit_header_references` are no longer
8409 case-sensitive (#1606).
8410 + Definition lists no longer require indentation for first line (#2087).
8411 Previously the body of the definition (after the `:` or `~` marker)
8412 needed to be in column 4. This commit relaxes that requirement,
8413 to better match the behavior of PHP Markdown Extra. So, now
8414 this is a valid definition list:
8416 foo
8417 : bar
8418 + Resolve a potentially ambiguity with table captions:
8420 foo
8422 : bar
8424 -----
8425 table
8426 -----
8428 Is "bar" a definition, or the caption for the table? We'll count
8429 it as a caption for the table.
8430 + Disallow headerless pipe tables (#1996), to conform to GFM and PHP
8431 Markdown Extra. Note: If you have been using headerless pipe tables,
8432 this change may cause existing tables to break.
8433 + Allow pipe tables with header but no body (#2017).
8434 + Allow a digit as first character of a citation key (Matthias Troffaes).
8435 See https://github.com/jgm/pandoc-citeproc/issues/97
8437 * LaTeX reader:
8439 + Don't limit includes to `.tex` extension (#1882).
8440 If the extension is not `.tex`, it must be given explicitly in
8441 the `\input` or `\include`.
8443 * Docx reader:
8445 + Allow numbering in the style file. This allows inherited styles
8446 with numbering (lists) (Jesse Rosenthal).
8448 * Org reader:
8450 + Support smart punctuation (Craig Bosma).
8451 + Drop trees with a :noexport: tag (Albert Krewinkel). Trees having a
8452 `:noexport:` tag set are not exported. This mirrors org-mode.
8453 + Put header tags into empty spans (Albert Krewinkel, #2160).
8454 Org mode allows headers to be tagged: `* Headline :TAG1:TAG2`.
8455 Instead of being interpreted as part of the headline, the tags are now
8456 put into the attributes of empty spans. Spans without textual content
8457 won't be visible by default, but they are detectable by filters. They
8458 can also be styled using CSS when written as HTML.
8459 + Generalize code block result parsing (Albert Krewinkel).
8460 Previously, only code blocks were recognized as result blocks;
8461 now, any kind of block can be the result.
8463 * Append newline to the LineBreak in Dokuwiki, HTML, EPUB,
8464 LaTeX, MediaWiki, OpenDocument, Texinfo writers (#1924, Tim Lin).
8466 * HTML writer:
8468 + Add "inline" or "display" class to math spans (#1914).
8469 This allows inline and display math to be styled differently.
8470 + Include raw latex blocks if `--mathjax` specified (#1938).
8471 + Require highlighting-kate >= 0.5.14 (#1903).
8472 This ensures that all code blocks will be wrapped in a `div`
8473 with class `sourceCode`. Also, the default highlighting CSS
8474 now adds `div.sourceCode { x-overflow: auto; }`, which means
8475 that code blocks (even with line numbers) will acquire a scroll
8476 bar on screens too small to display them (e.g. mobile phones).
8477 See also jgm/highlighting-kate#65.
8479 * LaTeX writer:
8481 + Use a declaration for tight lists (Jose Luis Duran, Joseph
8482 Harriott). Previously, pandoc hard-coded some commands to make
8483 tight lists in LaTeX. Now we use a custom command instead,
8484 allowing the styling to be changed in a macro in the header.
8485 (Note: existing templates may need to be modified to include
8486 the definition of this macro. See the current template.)
8487 + Beamer output: if the header introducing a slide has the
8488 class `fragile`, add the `[fragile]` option to the slide (#2119).
8490 * MediaWiki writer:
8492 + Use `File:` instead of the deprecated `Image:` for images and
8493 other media files (Greg Rundlett).
8495 * DocBook writer:
8497 + Render a `Div (id,_,_) [Para _]` element as a `para` element
8498 with an `id` attribute. This makes links to citations work in
8499 DocBook with pandoc-citeproc.
8501 * RST writer:
8503 + Normalize headings to sequential levels (Nikolay Yakimov).
8504 This is pretty much required by docutils.
8505 + Treat headings in block quotes, etc as rubrics (Nikolay Yakimov).
8506 + Better handling of raw latex inline (#1961). We use
8507 `` :raw-latex:`...` `` and add a definition for this role to
8508 the template.
8510 * EPUB writer:
8512 + Remove `linear=no` from cover `itemref` (#1609).
8513 + Don't use `sup` element for epub footnotes (#1995).
8514 Instead, just use an a element with class `footnoteRef`.
8515 This allows more styling options, and provides better results
8516 in some readers (e.g. iBooks, where anything inside the a
8517 tag breaks popup footnotes).
8518 + Take TOC title from `toc-title` metadata field.
8520 * Docx writer:
8522 + Implemented `FirstParagraph` style (Jesse Rosenthal).
8523 Following the ODT writer, we add the `FirstParagraph` style to the
8524 first text paragraph following an image, blockquote, table, heading,
8525 or beginning of document. This allows it to be styled differently.
8526 The default is for it to be the same as `Normal`.
8527 + Added `BodyText` style (Jesse Rosenthal).
8528 We apply a `BodyText` style to all unstyled paragraphs. This is,
8529 essentially, the same as `Normal`, except that since not everything
8530 inherits from `BodyText` (the metadata won't, for example, or
8531 the headers or footnote numbers), we can change the text in the body
8532 without having to make exceptions for everything. If we do want to
8533 change *everything*, we can still do it through `Normal`.
8534 + Altered `Blockquote` style slightly (Jesse Rosenthal).
8535 Since `BlockQuote` derives from `BodyText`, we just want to specify
8536 by default that it won't indent, regardless of what `BodyText` does.
8537 Note that this will not produce any visible difference in the default
8538 configuration.
8539 + Take TOC title from `toc-title` metadata field (Nikolay Yakimov).
8540 + Added a style to figure images (Nikolay Yakimov).
8541 Figures with empty captions use style `Figure`.
8542 Figures with nonempty captions use style `Figure with Caption`, which
8543 is based on `Figure`, and additionally has `keepNext` set.
8545 * ODT writer:
8547 + Added figure captions (Nikolay Yakimov). The following styles are
8548 used for figures:
8549 `Figure` -- for figure with empty caption),
8550 `FigureWithCaption` (based on `Figure`) -- for figure with caption,
8551 `FigureCaption` (based on `Caption`) -- for figure captions.
8552 Also, `TableCaption` (based on `Caption`) is used for table captions.
8554 [API changes]
8556 * New `Text.Pandoc.Error` module with `PandocError` type
8557 (Matthew Pickering).
8559 * All readers now return `Either PandocError Pandoc` instead of `Pandoc`
8560 (Matthew Pickering). This allows better handling of errors.
8562 * Added `Text.Pandoc.Writers.CommonMark`, exporting `writeCommonMark`.
8564 * Added `Text.Pandoc.Readers.CommonMark`, exporting `readCommonMark`.
8566 * Derive `Data` and `Typeable` instances for `MediaBag`, `Extension`,
8567 `ReaderOptions`, `EPUBVersion`, `CiteMethod`, `ObfuscationMethod`,
8568 `HTMLSlideVariant`, `TrackChanges`, `WriterOptions` (Shabbaz
8569 Youssefi).
8571 * New `Ext_shortcut_reference_links` constructor for `Extension`
8572 (Konstantin Zudov).
8574 [bug fixes]
8576 * Markdown reader:
8578 + Allow smart `'` after inline math (#1909, Nikolay Yakimov).
8579 + Check for tex macros after indented code (#1973).
8580 + Rewrote `charsInBalancedBrackets` for efficiency.
8581 + Make sure a closing `</div>` doesn't get included in a
8582 definition list item (#2127).
8583 + Don't parse bracketed text as citation if it might be a link,
8584 image, or footnote (Nikolay Yakimov).
8585 + Require space after key in mmd title block (#2026, Nikolay
8586 Yakimov). Require space after key-value delimiter colon in mmd title
8587 block.
8588 + Require nonempty value in mmd title block (Nikolay Yakimov).
8589 + Disable all metadata block extensions when parsing
8590 metadata field values (#2026, Nikolay Yakimov). Otherwise we
8591 could get a mmd title block inside YAML metadata, for example.
8593 * HTML reader:
8595 + Improve self-closing tag detection in `htmlInBalanced` (#2146).
8596 + Handle tables with `<th>` in body rows (#1859, Mauro Bieg).
8597 + Fixed `htmlTag` (#1820). If the tag parses as a comment, we check
8598 to see if the input starts with `<!--`. If not, it's bogus comment
8599 mode and we fail `htmlTag`.
8600 + Handle `base` tag; if it has an `href` value, this is added to
8601 all relative URLs in links and images.
8603 * DocBook reader:
8605 + Look inside "info" elements for section titles (#1931).
8607 * Docx reader:
8609 + Parse images in deprecated vml format (Jesse Rosenthal).
8610 + Allow sub/superscript verbatims (Jesse Rosenthal).
8611 Verbatim usually shuts off all other run styles, but we don't want it
8612 to shut off sub/superscript.
8614 * LaTeX reader:
8616 + Handle `tabular*` environment (#1850).
8617 Note that the table width is not actually parsed or taken into
8618 account, but pandoc no longer chokes on it.
8619 + Ignore options in `\lstinline` rather than raising error (#1997).
8620 + Add some test cases for simple tables (Mathias Schenner).
8621 + Handle valign argument in tables (Mathias Schenner) (currently
8622 we just ignore this).
8623 + Allow non-empty colsep in tables (Mathias Schenner).
8624 The `tabular` environment allows non-empty column separators
8625 with the "@{...}" syntax. Previously, pandoc would fail to
8626 parse tables if a non-empty colsep was present. With this
8627 commit, these separators are still ignored, but the table gets
8628 parsed. A test case is included.
8629 + Recognize `\newpage` as a block command.
8630 + Allow block content in \title{} (#2001).
8631 + Check for block-level newcommand aliases in blockCommand (Nikolay
8632 Yakimov).
8633 + Guard against paragraph starting with inline macro (Nikolay Yakimov).
8634 + Properly gobble spaces after `\\` (#2007).
8636 * Textile reader:
8638 + Handle newlines in table cells, and empty cells (#1919).
8640 * Org reader:
8642 + Allow image links with non-image targets (Hans-Peter Deifel).
8643 This matches behavior of Org-Mode for links like
8644 `[[http://example.com][https://www.haskell.org/static/img/logo.png]]`.
8646 * Docbook writer:
8648 + Don't print empty id attributes (thanks to Steve Horne).
8650 * HTML writer:
8652 + Fixed list-style-type for numbered example lists.
8653 Should be "decimal," not "example" (#1902).
8654 + Do not omit missing `alt` attribute on `img` tag (#1131,
8655 Konstantin Zudov).
8656 + Allow multiple colgroups in table (#2122).
8657 + In revealjs, ensure that lists in speaker notes don't add "fragment"
8658 classes, which can cause additional keypresses to be needed to
8659 advance a slide (#1394).
8661 * LaTeX writer:
8663 + Don't escape `$` in URL (#1913).
8664 + Don't use listings in headers (Matthew Pickering, #1963).
8665 + Recognize book documentclass if set in metadata (#1971).
8666 This sets `--chapters` implicitly if the documentclass in metadata
8667 is a book documentclass. Previously this was done only if a book
8668 documentclass was set in a variable.
8669 + Add a `\label` in `\hyperdef` for Div, Span (or links don't work).
8670 + Make `mainlang` work when `lang` is in metadata (#2174).
8672 * Texinfo writer:
8674 + Fix wrapping by using breakable spaces (Tim Lin).
8676 * RST writer:
8678 + Fixed toc depth in RST writer. Previously the depth was being
8679 rendered as a floating point number with a decimal point.
8681 * Markdown writer:
8683 + Improved escaping (#2086). `<` should not be escaped as `\<`, for
8684 compatibility with original Markdown. We now escape `<` and `>`
8685 with entities. Also, we now backslash-escape square brackets.
8686 + Avoid introducing spurious list items through wrapping (#1946).
8687 + Don't emit span tags if plain or raw HTML disabled.
8689 * MediaWiki writer:
8691 + Convert spaces to underscores in wikilink URL (#1982), like MediaWiki.
8693 * AsciiDoc writer:
8695 + Insert some needed blank lines (#1860).
8696 + Avoid wrapping after list marker (#1858).
8698 * EPUB writer:
8700 + Properly handle internal links to IDs in spans, divs (#1884).
8701 + Use plain writer for metadata dc: fields (#2121).
8702 This gives better results when we have, e.g. multiple paragraphs.
8703 Note that tags aren't allowed in these fields.
8704 + Properly handle image links without an extension (#1855).
8705 + Improved chapter splitting and internal link rewriting (#1887,
8706 #2162, #2163). This will ensure that internal links work and
8707 that the references section produced by pandoc-citeproc is
8708 in its own chapter.
8709 + Fixed handling of svg images (#2183).
8711 * ICML writer:
8713 + Better handling of raw blocks and inlines (#1951).
8714 Previously these were always escaped and printed verbatim.
8715 Now they are ignored unless the format is `icml`, in which
8716 case they are passed through unescaped.
8717 + Fixed image URIs in ICML output (gohai).
8719 * Custom writer:
8721 + Raise error if loadstring returns an error status.
8722 + Raise `PandocLuaException` instead of using 'error'.
8723 Eventually we'll change the return type so that no exception
8724 is involved, but at least this can be trapped.
8725 + Use UTF-8 aware bytestring conversion.
8726 + Set foreign encoding to UTF-8 (Nikolay Yakimov, #2101, #1634).
8727 Also factored out ByteString, since it's only used as an intermediate
8728 representation.
8730 * Docx writer:
8732 + Copy hyphenation settings from reference.docx (Nikolay Yakimov).
8733 + Filter out illegal XML characters (#1992, Matthew Pickering).
8734 + Added `noProof` to docx syntax highlighting `SourceCode` style.
8735 + Added footnotes id -1 and 0 (Jesse Rosenthal).
8736 Word uses, by default, footnotes with id -1 and 0 for separators. If a
8737 user modifies `reference.docx`, they will end up with a `settings.xml`
8738 file that references these footnotes, but no such footnotes in the
8739 document. This will produce a corruption error. Here we add these to the
8740 document and `settings.xml` file, so future modifications won't break
8741 the file.
8742 + Handle lists correctly inside table cells (Jesse Rosenthal).
8743 Previously we didn't transform lists inside table cells.
8744 + Set firstRow information in tables (Nikolay Yakimov).
8745 + Don't replace `SourceCode` style in `reference.docx` if it is defined
8746 there (Nikolay Yakimov, #1872). If `--no-highlight` specified, remove
8747 any `SourceCode` and `*Tok` styles in `reference.docx`.
8748 + Attempt to match international style names (#1607, Nikolay Yakimov).
8749 + Set these styles as custom (Nikolay Yakimov): `Author`, `Abstract`,
8750 `Compact`, `Image Caption`, `Table Caption`, `Definition Term`,
8751 `Definition`, `First Paragraph`.
8752 + Rename these styles to correspond with Word `Normal.dotm` (Nikolay
8753 Yakimov): `Block Quote -> Block Text`, `Link -> Hyperlink`,
8754 `Footnote Ref -> Footnote Reference`.
8755 + Added `Caption` style (Nikolay Yakimov).
8756 + Changed these styles' inheritance (Nikolay Yakimov):
8757 `Image Caption <- Caption`, `Table Caption <- Caption`.
8758 + Remove `SourceCode` style from `reference.docx` (#1872).
8759 This is added automatically by the docx writer.
8760 + Added toc heading style to `reference.docx` (Nikolay Yakimov).
8762 * `Text.Pandoc.PDF`
8764 + Don't suggest "Try xelatex" if xelatex already in use (Mauro Bieg,
8765 #1832).
8766 + More comprehensible errors on image conversion (#2067).
8767 EPS can't be supported without shelling out to something like
8768 ImageMagick, but at least we can avoid mysterious error messages.
8770 * `Text.Pandoc.Shared`:
8772 + Make safeRead safe (#1801, Matthew Pickering).
8773 + Added `mapLeft`, `hush` (Matthew Pickering).
8775 * `Text.Pandoc.Pretty`:
8777 + Remove partial function (Matthew Pickering).
8779 * `Text.Pandoc.SelfContained`:
8781 + Add `;charset=utf-8` to script mime type if missing (#1842).
8782 + Improved building of data URIs (#1940). Now base64 is used except
8783 for `text/*` mime types.
8784 + `cssURLs` no longer tries to fetch fragment URLs (#2121).
8785 + Properly handle data URIs in css urls (#2129).
8786 Use a proper CSS parser (adds dependency on `text-css`).
8788 * `Text.Pandoc.UTF8`:
8790 + Better handling of bare CRs in input files (#2132).
8791 Previously we just stripped them out; now we convert
8792 other line ending styles to LF line endings.
8794 * `Text.Pandoc.ImageSize`:
8796 + Fixed some exif header parsing bugs (#1834).
8797 + Make imageSize return an Either, not a Maybe (#1834).
8798 Use `runGetOrFail` (with `binary >= 0.7`) to return `Left` on
8799 parse failure (rather than `error`).
8800 + Improved warnings when image size can't be determined.
8801 + Removed error landmines (Matthew Pickering).
8803 * Added woff2 to MIME types (Alfred Wechselberger).
8805 * pandoc: When a binary input format is used, warn that file
8806 arguments past the first one are being ignored (Matthew Pickering).
8808 [template changes]
8810 * LaTeX template:
8812 + Degrade gracefully if `\paragraph` not defined.
8813 + Include `grffile` together with `graphicx` (#2074).
8814 This properly handles filenames containing spaces and dots.
8815 + Redefine `\paragraph`, `\subparagraph`... to behave more
8816 like section headers (#1658).
8817 + Import hyperref before polyglossia to avoid an error with xelatex,
8818 "please load package hyperref before bidi package" (Nick Bart).
8819 + Added `toccolor` variable to control link color in toc (Kaixhin).
8821 * LaTeX, Beamer templates:
8823 + Provide `\tightlist`, which is now used by the LaTeX writer.
8824 + Use polyglossia in beamer (#85).
8825 + Use `bibliography` instead of `biblio-files`
8826 (#1661). Also use `\addbibresource` instead of `\bibliography` for
8827 biblatex.
8828 + Added `setotherlanguages` in polyglossia. This uses an `otherlang`
8829 variable that is derived from a comma-separated list in `lang`;
8830 the last language is `mainlang` and the others are `otherlang`.
8832 * EPUB templates:
8834 + Use `div`, not `p`, for "rights" on title page.
8835 + Added header-includes, include-before, include-after (#1987).
8837 * OpenDocument template:
8839 + Use `text:p` instead of `text:h` for title.
8840 Using `text:h` causes problems with numbering. Closes #2059.
8841 Thanks to @nkalvi for diagnosing this.
8843 * reveal.js template:
8845 + Link to non-minified css, js. The minified versions no longer
8846 ship with the library.
8847 + Correctly include style CSS (#1949).
8848 + New configurable options options: `center`, `maxScale`, `slideNuber`
8849 (Dmitry Smirnov, pandoc-templates#89).
8850 + Moved custom CSS after theme. This allows custom CSS to modify
8851 themes, instead of being replaced by them.
8852 + Allow `center` to be set to false.
8854 [under the hood improvements]
8856 * Removed pre-built `reference.docx` and `reference.odt` (Nikolay
8857 Yakimov). Instead the repository now includes the component text files,
8858 and the zipped binaries are built from these using a helper
8859 program, `make-reference-files`. This should make maintenance of
8860 these components easier going forward.
8862 * `Text.Pandoc.Parsing`:
8864 + Added new `<+?>` combinator (Nikolay Yakimov).
8865 + Added `stateHeaderKeys` to `ParserState`.
8867 * `make_deb.sh` fixes:
8869 + Detect architecture.
8870 + Add Installed-Size to debian package control file (#1900).
8871 + Use `fakeroot` to get permissions right.
8872 + Use `mkdir` and `cp` instead of `install`.
8873 + Set permissions of directories to 755.
8874 + Install in `/usr` rather than `/usr/local`.
8875 + Compress man pages.
8876 + Combine copyright files for `pandoc`, `pandoc-citeproc`.
8878 * Added `Text.Pandoc.Compat.Locale` and `old-locale` flag
8879 to assist with transition to `time` 1.5.
8881 * Updated CONTRIBUTING.md with information about issue tags (Matthew
8882 Pickering).
8884 * Updated travis installs to the new sudo-less syntax (Tim Lin).
8886 * Updated dependency version bounds.
8888 * EPUB tests: don't use `joinPath`, which varies across platforms.
8889 Instead, use a forward-slash to join paths, regardless of the
8890 platform. This matches the way `MediaBag` now works.
8892 * Clarify JSON input and output in usage message (Caleb McDaniel).
8894 * Improved INSTALL instructions.
8896 * Always build man pages. Removed make-pandoc-man-pages flag.
8898 * Makefile: removed man target, now that we generate man pages by default.
8900 * README:
8902 + Fixed typos (J. Lewis Muir).
8903 + Added documentation on backtick_code_blocks (#2135, Nikolay Yakimov).
8904 + Added note on in-field markup in biblio databases (Nick Bart).
8905 + Fixed misleading example of raw HTML block.
8906 + Various minor formatting and consistency fixes for the program
8907 options (Andreas Lööw).
8908 + Made definition lists for options all "loose" for consistency.
8909 + Added YAML biblio format to table, and note on `pandoc-citeproc`'s
8910 `--bib2json` and `--bib2yaml` options (Nick Bart).
8911 + Removed obsolete reference to `mods2yaml` (Nick Bart).
8912 + Added section on syntax highlighting.
8913 + Documented `toccolor` variable.
8915pandoc (1.13.2.1)
8917 * Updated to build with ghc 7.10.1.
8919 * Bumped package upper bounds for filepath, blaze-html,
8920 blaze-markup.
8922pandoc (1.13.2)
8924 * TWiki Reader: add new twiki reader (API change, Alexander Sulfrian).
8926 * Markdown reader:
8928 + Better handling of paragraph in div (#1591).
8929 Previously text that ended a div would be parsed as Plain
8930 unless there was a blank line before the closing div tag.
8931 + Don't treat a citation as a reference link label (#1763).
8932 + Fix autolinks with following punctuation (#1811).
8933 The price of this is that autolinked bare URIs can no longer
8934 contain `>` characters, but this is not a big issue.
8935 + Fix `Ext_lists_without_preceding_blankline` bug (#1636, Artyom).
8936 + Allow `startnum` to work without `fancy_lists`. Formerly
8937 `pandoc -f markdown-fancy_lists+startnum` did not work properly.
8939 * RST reader (all Daniel Bergey):
8941 + Parse quoted literal blocks (#65). RST quoted literal blocks are
8942 the same as indented literal blocks (which pandoc already supports)
8943 except that the quote character is preserved in each line.
8944 + Parse RST class directives. The class directive accepts one or more
8945 class names, and creates a Div value with those classes. If the
8946 directive has an indented body, the body is parsed as the children of
8947 the Div. If not, the first block following the directive is made a
8948 child of the Div. This differs from the behavior of rst2xml, which
8949 does not create a Div element. Instead, the specified classes are
8950 applied to each child of the directive. However, most Pandoc Block
8951 constructors to not take an Attr argument, so we can't duplicate this
8952 behavior.
8953 + Warn about skipped directives.
8954 + Literal role now produces Code. Code role should have "code" class.
8955 + Improved support for custom roles
8957 - Added `sourceCode` to classes for `:code:` role, and anything
8958 inheriting from it.
8959 - Add the name of the custom role to classes if the Inline
8960 constructor supports Attr.
8961 - If the custom role directive does not specify a parent role,
8962 inherit from the `:span:` role.
8964 This differs somewhat from the `rst2xml.py` behavior. If a custom
8965 role inherits from another custom role, Pandoc will attach both
8966 roles' names as classes. `rst2xml.py` will only use the class of
8967 the directly invoked role (though in the case of inheriting from a
8968 `:code:` role with a `:language:` defined, it will also provide the
8969 inherited language as a class).
8970 + Warn about ignored fields in role directives.
8972 * LaTeX reader:
8974 + Parse label after caption into a span instead of
8975 inserting an additional paragraph of bracketed text (#1747).
8976 + Parse math environments as inline when possible (#1821).
8977 + Better handling of `\noindent` and `\greektext` (#1783).
8978 + Handle `\texorpdfstring` more gracefully.
8979 + Handle `\cref` and `\sep` (Wikiwide).
8980 + Support `\smartcite` and `\Smartcite` from biblatex.
8982 * HTML reader:
8984 + Retain display type of MathML output (#1719, Matthew Pickering).
8985 + Recognise `<br>` tags inside `<pre>` blocks (#1620, Matthew Pickering).
8986 + Make `embed` tag either block or inline (#1756).
8988 * DocBook reader:
8990 + Handle `keycombo`, `keycap` (#1815).
8991 + Get string content in inner tags for literal elements (#1816).
8992 + Handle `menuchoice` elements better, with a `>` between (#1817).
8993 + Include `id` on section headers (#1818).
8994 + Document/test "type" as implemented (Brian O'Sullivan).
8995 + Add support for calloutlist and callout (Brian O'Sullivan).
8996 We treat a calloutlist as a bulleted list. This works well in practice.
8997 + Add support for `classname` (Bryan O'Sullivan).
8999 * Docx reader:
9001 + Fix window path for image lookup (Jesse Rosenthal).
9002 Don't use os-sensitive "combine", since we always want the paths in our
9003 zip-archive to use forward-slashes.
9004 + Single-item headers in ordered lists are headers (Jesse Rosenthal).
9005 When users number their headers, Word understands that as a single item
9006 enumerated list. We make the assumption that such a list is, in fact,
9007 a header.
9008 + Rewrite rewriteLink to work with new headers (Jesse Rosenthal).
9009 There could be new top-level headers after making lists, so we have to
9010 rewrite links after that.
9011 + Use polyglot header list (Jesse Rosenthal).
9012 We're just keeping a list of header formats that different languages
9013 use as their default styles. At the moment, we have English, German,
9014 Danish, and French. We can continue to add to this.
9015 This is simpler than parsing the styles file, and perhaps less
9016 error-prone, since there seems to be some variations, even within a
9017 language, of how a style file will define headers.
9018 + Remove header class properly in other langs (Jesse Rosenthal).
9019 When we encounter one of the polyglot header styles, we want to remove
9020 that from the par styles after we convert to a header. To do that, we
9021 have to keep track of the style name, and remove it appropriately.
9022 + Account for external link URLs with anchors. Previously, if a URL
9023 had an anchor, the reader would incorrectly identify it as an
9024 internal link and return only the anchor as URL. (Caleb McDaniel)
9025 + Fix for Issue #1692 (i18n styles) (Nikolay Yakimov).
9027 * Org reader:
9029 + Added state changing blanklines (Jesse Rosenthal).
9030 This allows us to emphasize at the beginning of a new paragraph (or, in
9031 general, after blank lines).
9032 + Fixed bug with bulleted lists:
9034 - a
9035 - b
9036 * c
9038 was being parsed as a list, even though an unindented `*`
9039 should make a heading. See
9040 <http://orgmode.org/manual/Plain-lists.html#fn-1>.
9041 + Org reader: absolute, relative paths in link (#1741, Albert
9042 Krewinkel). The org reader was too restrictive when parsing links;
9043 some relative links and links to files given as absolute paths
9044 were not recognized correctly.
9045 + Org reader: allow empty links (jgm/gitit#471, Albert Krewinkel).
9046 This is important for use in gitit, which uses empty links
9047 for wikilinks.
9048 + Respect indent when parsing Org bullet lists (#1650, Timothy
9049 Humphries). Fixes issue with top-level bullet list parsing.
9050 + Fix indent issue for definition lists (Timothy Humphries,
9051 see #1650, #1698, #1680).
9052 + Parse multi-inline terms correctly in definition list (#1649,
9053 Matthew Pickering).
9054 + Fix rules for emphasis recognition (Albert Krewinkel).
9055 Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
9056 strings. This is wrong, as `,` and `'` are forbidden border chars and
9057 may not occur on the inner border of emphasized text.
9058 + Drop COMMENT document trees (Albert Krewinkel).
9059 Document trees under a header starting with the word `COMMENT` are
9060 comment trees and should not be exported. Those trees are dropped
9061 silently (#1678).
9062 + Properly handle links to `file:target` (Albert Krewinkel).
9063 Org links like `[[file:target][title]]` were not handled correctly,
9064 parsing the link target verbatim. The org reader is changed such that
9065 the leading `file:` is dropped from the link target (see #756, #1812).
9066 + Parse LaTeX-style MathML entities (#1657, Albert Krewinkel).
9067 Org supports special symbols which can be included using LaTeX syntax,
9068 but are actually MathML entities. Examples for this are
9069 `\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
9070 or `\copy` (the copyright sign ©)
9072 * EPUB reader:
9074 + URI handling improvements. Now we outsource most of the work to
9075 `fetchItem'`. Also, do not include queries in file extensions (#1671).
9077 * LaTeX writer:
9079 + Use `\texorpdfstring` for section captions when needed (Vaclav Zeman).
9080 + Handle consecutive linebreaks (#1733).
9081 + Protect graphics in headers (Jesse Rosenthal).
9082 Graphics in `\section`/`\subsection` etc titles need to be `\protect`ed.
9083 + Put `~` before header in list item text (Jesse Rosenthal).
9084 Because of the built-in line skip, LaTeX can't handle a section header
9085 as the first element in a list item.
9086 + Avoid using reserved characters as `\lstinline` delimiters (#1595).
9087 + Better handling of display math in simple tables (#1754).
9088 We convert display math to inline math in simple tables,
9089 since LaTeX can't deal with display math in simple tables.
9090 + Escape spaces in code (#1694, Bjorn Buckwalter).
9092 * MediaWiki writer:
9094 + Fixed links with URL = text. Previously these were rendered as bare
9095 words, even if the URL was not an absolute URL (#1825).
9097 * ICML writer:
9099 + Don't force all citations into footnotes.
9101 * RTF writer:
9103 + Add blankline at end of output (#1732, Matthew Pickering).
9105 * RST writer:
9107 + Ensure blank line after figure.
9108 + Avoid exces whitespace after last list item (#1777).
9109 + Wrap line blocks with spaces before continuations (#1656).
9110 + Fixed double-rendering of footnotes in RST tables (#1769).
9112 * DokuWiki writer:
9114 + Better handling of block quotes. This change ensures that
9115 multiple paragraph blockquotes are rendered using native `>`
9116 rather than as HTML (#1738).
9117 + Fix external images (#1739). Preface relative links with ":",
9118 absolute URIs without. (Timothy Humphries)
9120 * HTML writer:
9122 + Use protocol-relative URL for mathjax.
9123 + Put newline btw img and caption paragraph.
9124 + MathML now outputted with tex annotation (#1635, Matthew Pickering).
9125 + Add support for KaTeX HTML math (#1626, Matthew Pickering).
9126 This adds `KaTeX` to `HTMLMathMethod` (API change).
9127 + Don't double render when `email-obfuscation=none` (#1625, Matthew
9128 Pickering).
9129 + Make header attributes work outside top level (#1711).
9130 Previously they only appeared on top level header elements.
9131 Now they work e.g. in blockquotes.
9133 * ODT writer:
9135 + Correctly handle images without extensions (#1729).
9136 + Strip querystring in ODT write (#1682, Todd Sifleet).
9138 * FB2 writer:
9140 + Add newline to output.
9142 * EPUB writer:
9144 + Don't add `sourceURL` to absolute URIs (#1669).
9145 + Don't use unsupported `opf:title-type` for epub2.
9146 + Include "landmarks" section in nav document for epub3 (#1757).
9147 + Removed playOrder from navpoint elements in ncx file (#1760).
9148 These aren't required, and they make manual modification of epubs
9149 difficult.
9150 + Extract title even from structured title.
9151 + Don't include nav node in spine unless `--toc` was requested.
9152 Previously we included it in the spine with `linear="no"`, leading
9153 to odd results in some readers (#1593).
9154 + Fixed absolute URI detection (#1672).
9155 + Correctly resolve relative URIs (#1671).
9156 + Use regular page template for `nav.xhtml`, including doctype (#1759).
9158 * Docx writer:
9160 + Put docx table captions above tables (#1641, Nikolay Yakimov).
9161 + Get the page width from the reference docx file, and use
9162 it to scale images that are too large to fit (Grégory Bataille).
9163 + Partial fix for #1607 (Nikolay Yakimov). International heading styles
9164 are inferred based on `<w:name val="heading #">` fallback, if there
9165 are no en-US "Heading#" styles
9166 + Look in user data dir for archive `reference.docx`.
9167 + Renumber header and footer relationships to avoid collisions (Jesse
9168 Rosenthal). We previously took the old relationship names of the
9169 headers and footer in secptr. That led to collisions. We now make
9170 a map of availabl names in the relationships file, and then rename
9171 in secptr.
9173 * ConTeXt writer:
9175 + Add function toLabel (Mark Szepieniec).
9176 This function can be used to sanitize reference labels so that
9177 they do not contain any of the illegal characters \#[]",{}%()|= .
9178 Currently only Links have their labels sanitized, because they
9179 are the only Elements that use passed labels.
9181 * `Text.Pandoc.Shared`:
9183 + Moved import of `toChunks` outside of CPP conditional (#1590).
9184 + Fix `inDirectory` to reset to the original directory in case
9185 an exception occurs (Freiric Barral).
9187 * Templates:
9189 + LaTeX template: load polyglossia before bibtex (jgm/pandoc-templates#70).
9190 Thanks to bluebirch.
9191 + LaTeX template: Added `\VerbatimFootnotes` if there is verbatim in notes
9192 (#1616).
9193 + LaTeX template: Add shorthands=off to babel options (#1648).
9194 + EPUB, EPUB3 templates: Added `id="cover"` to body of cover page.
9195 This aids styling, making it possible for example to set 0 margins
9196 on the title page (#1758).
9197 + EPUB, EPUB3 templates: Handle structured metadata on titlepage.
9198 Previously we just expected 'title', 'subtitle', 'author', 'date'.
9199 Now we still support those, but also support the format recommended
9200 for epub metadata in the pandoc README:
9202 ---
9203 title:
9204 - type: main
9205 text: My Book
9206 - type: subtitle
9207 text: An investigation of metadata
9208 creator:
9209 - role: author
9210 text: John Smith
9211 - role: editor
9212 text: Sarah Jones
9213 identifier:
9214 - scheme: DOI
9215 text: doi:10.234234.234/33
9216 publisher: My Press
9217 rights: (c) 2007 John Smith, CC BY-NC
9218 ...
9220 * `Text.Pandoc.Templates.getDefaultTemplate`:
9221 don't fail when called with "fb2" (#1660).
9223 * `Text.Pandoc.Parsing`:
9225 + Fixed `inlineMath` so it handles `\text{..}` containing `$`.
9226 For example: `$x = \text{the $n$th root of $y$}` (#1677).
9227 + Change `parseFromString` to fail if not all input is consumed.
9228 (Matthew Pickering)
9229 + Moved `addWarning` from Markdown reader to `Parsing`, so it can be
9230 used by more readers (API change, Daniel Bergey).
9232 * `Text.Pandoc.Pretty`:
9234 + Improve performance of `realLength` (Matthew Pickering).
9235 + Make CR + BLANKLINE = BLANKLINE. This fixes an extra blank line we
9236 were getting at the end of markdown fragments (as well as rst, org,
9237 etc.) (#1705).
9239 * `Text.Pandoc.MIME`:
9241 + Add mime type for WebVTT (Jason Ronallo).
9242 + Changed mime type for `otf` to `application/vnd.ms-opentype` (#1761).
9243 This is needed for epub3 validation.
9245 * `Text.Pandoc.MediaBag`:
9247 + Fix Windows specific path problems (#1597).
9249 * `Text.Pandoc.Shared`:
9251 + Make `collapseFilePath` OS-agnostic (Matthew Pickering).
9253 * Link the test suite using `-threaded`.
9254 This allows the test suite to be run using `+RTS -N`.
9256 * Added `network` dependency under `network-uri` flag in test section.
9258 * Give better error messages when someone tries to convert from
9259 pdf, doc, odt (#1683).
9261 * Added `track` to list of tags treated by `--self-contained` (#1664).
9263pandoc (1.13.1)
9265 * Fixed `--self-contained` with Windows paths (#1558).
9266 Previously `C:\foo.js` was being wrongly interpreted as a URI.
9268 * HTML reader: improved handling of tags that can be block or inline.
9269 Previously a section like this would be enclosed in a paragraph,
9270 with RawInline for the video tags (since video is a tag that can
9271 be either block or inline):
9273 <video controls="controls">
9274 <source src="../videos/test.mp4" type="video/mp4" />
9275 <source src="../videos/test.webm" type="video/webm" />
9276 <p>
9277 The videos can not be played back on your system.<br/>
9278 Try viewing on Youtube (requires Internet connection):
9279 <a href="http://youtu.be/etE5urBps_w">Relative Velocity on
9280 Youtube</a>.
9281 </p>
9282 </video>
9284 This change will cause the video and source tags to be parsed
9285 as RawBlock instead, giving better output.
9286 The general change is this: when we're parsing a "plain" sequence
9287 of inlines, we don't parse anything that COULD be a block-level tag.
9289 * Docx reader:
9291 + Be sensitive to user styles. Note that "Hyperlink" is
9292 "blacklisted," as we don't want the default underline styling to be
9293 inherited by all links by default (Jesse Rosenthal).
9294 + Read single paragraph in table cell as `Plain` (Jesse Rosenthal).
9295 This makes to docx reader's native output fit with the way the markdown
9296 reader understands its markdown output.
9298 * Textile writer: Extended the range of cases where native textile
9299 tables will be used (as opposed to raw HTML): we now handle any
9300 alignment type, but only for simple tables with no captions.
9302 * Txt2Tags reader:
9304 + Header is now parsed only if standalone flag is set (Matthew Pickering).
9305 + The header is now parsed as meta information. The first line is the
9306 `title`, the second is the `author` and third line is the `date`
9307 (Matthew Pickering).
9308 + Corrected formatting of `%%mtime` macro (Matthew Pickering).
9309 + Fixed crash when reading from stdin.
9311 * EPUB writer: Don't use page-progression-direction in EPUB2, which
9312 doesn't support it. Also, if page-progression-direction not specified
9313 in metadata, don't include the attribute even in EPUB3; not including it
9314 is the same as including it with the value "default", as we did before.
9315 (#1550)
9317 * Org writer: Accept example lines with indentation at the beginning
9318 (Calvin Beck).
9320 * DokuWiki writer:
9322 + Refactor to use Reader monad (Matthew Pickering).
9323 + Avoid using raw HTML in table cells; instead, use `\\`
9324 instead of newlines (Jesse Rosenthal).
9325 + Properly handle HTML table cell alignments, and use spacing
9326 to make the tables look prettier (#1566).
9328 * Docx writer:
9330 + Bibliography entries get `Bibliography` style (#1559).
9331 + Implement change tracking (Jesse Rosenthal).
9333 * LaTeX writer:
9335 + Fixed a bug that caused a table caption to repeat across all pages
9336 (Jose Luis Duran).
9337 + Improved vertical spacing in tables and made it customizable using
9338 standard lengths set by booktab. See
9339 <https://groups.google.com/forum/#!msg/pandoc-discuss/qMu6_5lYy0o/ZAU7lzAIKw0J>
9340 (Jose Luis Duran).
9341 + Added `\strut` to fix spacing in multiline tables (Jose Luis Duran).
9342 + Use `\tabularnewline` instead of `\\` in table cells (Jose Luis Duran).
9343 + Made horizontal rules more flexible (Jose Luis Duran).
9345 * Text.Pandoc.MIME:
9347 + Added `MimeType` (type synonym for `String`) and `getMimeTypeDef`.
9348 Code cleanups (Artyom Kazak).
9350 * Templates:
9352 + LaTeX template: disable microtype protrusion for typewriter font (#1549,
9353 thanks lemzwerg).
9355 * Improved OSX build procedure.
9357 * Added `network-uri` flag, to deal with split of `network-uri` from
9358 `network`.
9360 * Fix build dependencies for the `trypandoc` flag, so that they are
9361 ignored if `trypandoc` flag is set to False (Gabor Pali).
9363 * Updated README to remove outdated claim that `--self-contained`
9364 looks in the user data directory for missing files.
9366pandoc (1.13.0.1)
9368 * Docx writer:
9370 + Fixed regression which bungled list numbering (#1544), causing
9371 all lists to appear as basic ordered lists.
9372 + Include row width in table rows (Christoffer Ackelman, Viktor Kronvall).
9373 Added a property to all table rows where the sum of column widths
9374 is specified in pct (fraction of 5000). This helps persuade Word
9375 to lay out the table with the widths we specify.
9377 * Fixed a bug in Windows 8 which caused pandoc not to find the
9378 `pandoc-citeproc` filter (#1542).
9380 * Docx reader: miscellaneous under-the-hood improvements (Jesse Rosenthal).
9381 Most significantly, the reader now uses Builder, leading to some
9382 performance improvements.
9384 * HTML reader: Parse appropriately styled span as SmallCaps.
9386 * Markdown writer: don't escape `$`, `^`, `~` when `tex_math_dollars`,
9387 `superscript`, and `subscript` extensions, respectively, are
9388 deactivated (#1127).
9390 * Added `trypandoc` flag to build CGI executable used in the online
9391 demo.
9393 * Makefile: Added 'quick', 'osxpkg' targets.
9395 * Updated README in templates to indicate templates license.
9396 The templates are dual-licensed, BSD3 and GPL2+.
9398pandoc (1.13)
9400 [new features]
9402 * Added `docx` as an input format (Jesse Rosenthal). The docx
9403 reader includes conversion of native Word equations to pandoc
9404 LaTeX `Math` elements. Metadata is taken from paragraphs at the
9405 beginning of the document with styles `Author`, `Title`, `Subtitle`,
9406 `Date`, and `Abstract`.
9408 * Added `epub` as an input format (Matthew Pickering). The epub
9409 reader includes conversion of MathML to pandoc LaTeX `Math`
9410 elements.
9412 * Added `t2t` (Txt2Tags) as an input format (Matthew Pickering).
9413 Txt2tags is a lightweight markup format described at
9414 <http://txt2tags.org/>.
9416 * Added `dokuwiki` as an output format (Clare Macrae).
9418 * Added `haddock` as an output format.
9420 * Added `--extract-media` option to extract media contained in a zip
9421 container (docx or epub) while adjusting image paths to point to the
9422 extracted images.
9424 * Added a new markdown extension, `compact_definition_lists`, that
9425 restores the syntax for definition lists of pandoc 1.12.x, allowing
9426 tight definition lists with no blank space between items, and
9427 disallowing lazy wrapping. (See below under behavior changes.)
9429 * Added an extension `epub_html_exts` for parsing HTML in EPUBs.
9431 * Added extensions `native_spans` and `native_divs` to activate
9432 parsing of material in HTML span or div tags as Pandoc Span
9433 inlines or Div blocks.
9435 * `--trace` now works with the Markdown, HTML, Haddock, EPUB,
9436 Textile, and MediaWiki readers. This is an option intended
9437 for debugging parsing problems; ordinary users should not need
9438 to use it.
9440 [behavior changes]
9442 * Changed behavior of the `markdown_attribute` extension, to bring
9443 it in line with PHP markdown extra and multimarkdown. Setting
9444 `markdown="1"` on an outer tag affects all contained tags,
9445 recursively, until it is reversed with `markdown="0"` (#1378).
9447 * Revised markdown definition list syntax (#1429). Both the reader
9448 and writer are affected. This change brings pandoc's definition list
9449 syntax into alignment with that used in PHP markdown extra and
9450 multimarkdown (with the exception that pandoc is more flexible about
9451 the definition markers, allowing tildes as well as colons). Lazily
9452 wrapped definitions are now allowed. Blank space is required
9453 between list items. The space before a definition is used to determine
9454 whether it is a paragraph or a "plain" element. **WARNING: This change
9455 may break existing documents!** Either check your documents for
9456 definition lists without blank space between items, or use
9457 `markdown+compact_definition_lists` for the old behavior.
9459 * `.numberLines` now works in fenced code blocks even if no language
9460 is given (#1287, jgm/highlighting-kate#40).
9462 * Improvements to `--filter`:
9464 + Don't search PATH for a filter with an explicit path.
9465 This fixed a bug wherein `--filter ./caps.py` would run `caps.py` from
9466 the system path, even if there was a `caps.py` in the working directory.
9467 + Respect shebang if filter is executable (#1389).
9468 + Don't print misleading error message.
9469 Previously pandoc would say that a filter was not found,
9470 even in a case where the filter had a syntax error.
9472 * HTML reader:
9474 + Parse `div` and `span` elements even without `--parse-raw`,
9475 provided `native_divs` and `native_spans` extensions are set.
9476 Motivation: these now generate native pandoc Div and Span
9477 elements, not raw HTML.
9478 + Parse EPUB-specific elements if the `epub_html_exts`
9479 extension is enabled. These include `switch`, `footnote`,
9480 `rearnote`, `noteref`.
9482 * Org reader:
9484 + Support for inline LaTeX. Inline LaTeX is now accepted and parsed by the
9485 org-mode reader. Both math symbols (like `\tau`) and LaTeX commands (like
9486 `\cite{Coffee}`), can be used without any further escaping (Albert
9487 Krewinkel).
9489 * Textile reader and writer:
9491 + The `raw_tex` extension is no longer set by default. You can
9492 enable it with `textile+raw_tex`.
9494 * DocBook reader:
9496 + Support `equation`, `informalequation`, `inlineequation` elements with
9497 `mml:math` content. This is converted into LaTeX and put into a Pandoc
9498 Math inline.
9500 * Revised `plain` output, largely following the style of Project
9501 Gutenberg:
9503 + Emphasis is rendered with `_underscores_`, strong emphasis
9504 with ALL CAPS.
9505 + Headings are rendered differently, with space to set them off,
9506 not with setext style underlines. Level 1 headers are ALL CAPS.
9507 + Math is rendered using unicode when possible, but without the
9508 distracting emphasis markers around variables.
9509 + Footnotes use a regular `[n]` style.
9511 * Markdown writer:
9513 + Horizontal rules are now a line across the whole page.
9514 + Prettier pipe tables. Columns are now aligned (#1323).
9515 + Respect the `raw_html` extension. `pandoc -t markdown-raw_html`
9516 no longer emits any raw HTML, including span and div tags
9517 generated by Span and Div elements.
9518 + Use span with style for `SmallCaps` (#1360).
9520 * HTML writer:
9522 + Autolinks now have class `uri`, and email autolinks have class
9523 `email`, so they can be styled.
9525 * Docx writer:
9527 + Document formatting is carried over from `reference.docx`.
9528 This includes margins, page size, page orientation, header,
9529 and footer, including images in headers and footers.
9530 + Include abstract (if present) with `Abstract` style (#1451).
9531 + Include subtitle (if present) with `Subtitle` style, rather
9532 than tacking it on to the title (#1451).
9534 * Org writer:
9536 + Write empty span elements with an id attribute as org anchors.
9537 For example `Span ("uid",[],[]) []` becomes `<<uid>>`.
9539 * LaTeX writer:
9541 + Put table captions above tables, to match the conventional
9542 standard. (Previously they appeared below tables.)
9543 + Use `\(..\)` instead of `$..$` for inline math (#1464).
9544 + Use `\nolinkurl` in email autolinks. This allows them to be styled
9545 using `\urlstyle{tt}`. Thanks to Ulrike Fischer for the solution.
9546 + Use `\textquotesingle` for `'` in inline code. Otherwise we get
9547 curly quotes in the PDF output (#1364).
9548 + Use `\footnote<.>{..}` for notes in beamer, so that footnotes
9549 do not appear before the overlays in which their markers appear
9550 (#1525).
9551 + Don't produce a `\label{..}` for a Div or Span element. Do produce
9552 a `\hyperdef{..}` (#1519).
9554 * EPUB writer:
9556 + If the metadata includes `page-progression-direction` (which can be
9557 `ltr` or `rtl`, the `page-progression-direction` attribute will
9558 be set in the EPUB spine (#1455).
9560 * Custom lua writers:
9562 + Custom writers now work with `--template`.
9563 + Removed HTML header scaffolding from `sample.lua`.
9564 + Made citation information available in lua writers.
9566 * `--normalize` and `Text.Pandoc.Shared.normalize` now consolidate
9567 adjacent `RawBlock`s when possible.
9569 [API changes]
9571 * Added `Text.Pandoc.Readers.Docx`, exporting `readDocx` (Jesse Rosenthal).
9573 * Added `Text.Pandoc.Readers.EPUB`, exporting `readEPUB` (Matthew
9574 Pickering).
9576 * Added `Text.Pandoc.Readers.Txt2Tags`, exporting `readTxt2Tags` (Matthew
9577 Pickering).
9579 * Added `Text.Pandoc.Writers.DokuWiki`, exporting `writeDokuWiki`
9580 (Clare Macrae).
9582 * Added `Text.Pandoc.Writers.Haddock`, exporting `writeHaddock`.
9584 * Added `Text.Pandoc.MediaBag`, exporting `MediaBag`, `lookupMedia`,
9585 `insertMedia`, `mediaDirectory`, `extractMediaBag`. The docx and epub
9586 readers return a pair of a `Pandoc` document and a `MediaBag` with
9587 the media resources they contain. This can be extracted using
9588 `--extract-media`. Writers that incorporate media (PDF, Docx,
9589 ODT, EPUB, RTF, or HTML formats with `--self-contained`) will look
9590 for resources in the `MediaBag` generated by the reader, in addition to
9591 the file system or web.
9593 * `Text.Pandoc.Readers.TexMath`: Removed deprecated `readTeXMath`.
9594 Renamed `readTeXMath'` to `texMathToInlines`.
9596 * `Text.Pandoc`: Added `Reader` data type (Matthew Pickering).
9597 `readers` now associates names of readers with `Reader`
9598 structures. This allows inclusion of readers, like the docx
9599 reader, that take binary rather than textual input.
9601 * `Text.Pandoc.Shared`:
9603 + Added `capitalize` (Artyom Kazak), and replaced uses of
9604 `map toUpper` (which give bad results for many languages).
9605 + Added `collapseFilePath`, which removes intermediate `.` and
9606 `..` from a path (Matthew Pickering).
9607 + Added `fetchItem'`, which works like `fetchItem` but searches
9608 a `MediaBag` before looking on the net or file system.
9609 + Added `withTempDir`.
9610 + Added `removeFormatting`.
9611 + Added `extractSpaces` (from HTML reader) and generalized its type
9612 so that it can be used by the docx reader (Matthew Pickering).
9613 + Added `ordNub`.
9614 + Added `normalizeInlines`, `normalizeBlocks`.
9615 + `normalize` is now `Pandoc -> Pandoc` instead of
9616 `Data a :: a -> a`. Some users may need to change their uses of
9617 `normalize` to the newly exported `normalizeInlines` or
9618 `normalizeBlocks`.
9620 * `Text.Pandoc.Options`:
9622 + Added `writerMediaBag` to `WriterOptions`.
9623 + Removed deprecated and no longer used `readerStrict` in
9624 `ReaderOptions`. This is handled by `readerExtensions` now.
9625 + Added `Ext_compact_definition_lists`.
9626 + Added `Ext_epub_html_exts`.
9627 + Added `Ext_native_divs` and `Ext_native_spans`.
9628 This allows users to turn off the default pandoc behavior of
9629 parsing contents of div and span tags in markdown and HTML
9630 as native pandoc Div blocks and Span inlines.
9632 * `Text.Pandoc.Parsing`:
9634 + Generalized `readWith` to `readWithM` (Matthew Pickering).
9635 + Export `runParserT` and `Stream` (Matthew Pickering).
9636 + Added `HasQuoteContext` type class (Matthew Pickering).
9637 + Generalized types of `mathInline`, `smartPunctuation`, `quoted`,
9638 `singleQuoted`, `doubleQuoted`, `failIfInQuoteContext`,
9639 `applyMacros` (Matthew Pickering).
9640 + Added custom `token` (Matthew Pickering).
9641 + Added `stateInHtmlBlock` to `ParserState`. This is used to keep
9642 track of the ending tag we're waiting for when we're parsing inside
9643 HTML block tags.
9644 + Added `stateMarkdownAttribute` to `ParserState`. This is used
9645 to keep track of whether the markdown attribute has been set in
9646 an enclosing tag.
9647 + Generalized type of `registerHeader`, using new type classes
9648 `HasReaderOptions`, `HasIdentifierList`, `HasHeaderMap` (Matthew
9649 Pickering). These allow certain common functions to be reused
9650 even in parsers that use custom state (instead of `ParserState`),
9651 such as the MediaWiki reader.
9652 + Moved `inlineMath`, `displayMath` from Markdown reader to Parsing,
9653 and generalized their types (Matthew Pickering).
9655 * `Text.Pandoc.Pretty`:
9657 + Added `nestle`.
9658 + Added `blanklines`, which guarantees a certain number of blank lines
9659 (and no more).
9661 [bug fixes]
9663 * Markdown reader:
9665 + Fixed parsing of indented code in list items. Indented code
9666 at the beginning of a list item must be indented eight spaces
9667 from the margin (or edge of the container), or four spaces
9668 from the list marker, whichever is greater.
9669 + Fixed small bug in HTML parsing with `markdown_attribute`, which
9670 caused incorrect tag nesting for input like
9671 `<aside markdown="1">*hi*</aside>`.
9672 + Fixed regression with intraword underscores (#1121).
9673 + Improved parsing of inline links containing quote characters (#1534).
9674 + Slight rewrite of `enclosure`/`emphOrStrong` code.
9675 + Revamped raw HTML block parsing in markdown (#1330).
9676 We no longer include trailing spaces and newlines in the
9677 raw blocks. We look for closing tags for elements (but without
9678 backtracking). Each block-level tag is its own `RawBlock`;
9679 we no longer try to consolidate them (though `--normalize` will do so).
9680 + Combine consecutive latex environments. This helps when you have
9681 two minipages which can't have blank lines between them (#690, #1196).
9682 + Support smallcaps through span.
9683 `<span style="font-variant:small-caps;">foo</span>` will be
9684 parsed as a `SmallCaps` inline, and will work in all output
9685 formats that support small caps (#1360).
9686 + Prevent spurious line breaks after list items (#1137). When the
9687 `hard_line_breaks` option was specified, pandoc would formerly
9688 produce a spurious line break after a tight list item.
9689 + Fixed table parsing bug (#1333).
9690 + Handle `c++` and `objective-c` as language identifiers in
9691 github-style fenced blocks (#1318).
9692 + Inline math must have nonspace before final `$` (#1313).
9694 * LaTeX reader:
9696 + Handle comments at the end of tables. This resolves the issue
9697 illustrated in <http://stackoverflow.com/questions/24009489>.
9698 + Correctly handle table rows with too few cells. LaTeX seems to
9699 treat them as if they have empty cells at the end (#241).
9700 + Handle leading/trailing spaces in `\emph` better.
9701 `\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
9702 so that we don't get things like `* hi *` in markdown output.
9703 Also applies to `\textbf` and some other constructions (#1146).
9704 + Don't assume preamble doesn't contain environments (#1338).
9705 + Allow (and discard) optional argument for `\caption` (James Aspnes).
9707 * HTML reader:
9709 + Fixed major parsing problem with HTML tables. Table cells were
9710 being combined into one cell (#1341).
9711 + Fixed performance issue with malformed HTML tables.
9712 We let a `</table>` tag close an open `<tr>` or `<td>` (#1167).
9713 + Allow space between `<col>` and `</col>`.
9714 + Added `audio` and `source` in `eitherBlockOrInline`.
9715 + Moved `video`, `svg`, `progress`, `script`, `noscript`, `svg` from
9716 `blockTags` to `eitherBlockOrInline`.
9717 + `map` and `object` were mistakenly in both lists; they have been removed
9718 from `blockTags`.
9719 + Ignore `DOCTYPE` and `xml` declarations.
9721 * MediaWiki reader:
9723 + Don't parse backslash escapes inside `<source>` (#1445).
9724 + Tightened up template parsing.
9725 The opening `{{` must be followed by an alphanumeric or `:`.
9726 This prevents the exponential slowdown in #1033.
9727 + Support "Bild" for images.
9729 * DocBook reader:
9731 + Better handle elements inside code environments. Pandoc's document
9732 model does not allow structure inside code blocks, but at least this way
9733 we preserve the text (#1449).
9734 + Support `<?asciidoc-br?>` (#1236).
9736 * Textile reader:
9738 + Fixed list parsing. Lists can now start without an intervening
9739 blank line (#1513).
9740 + HTML block-level tags that do not start a line are parsed as
9741 inline HTML and do not interrupt paragraphs (as in RedCloth).
9743 * Org reader:
9745 + Make tildes create inline code (#1345). Also relabeled `code` and
9746 `verbatim` parsers to accord with the org-mode manual.
9747 + Respect `:exports` header argument in code blocks (Craig Bosma).
9748 + Fixed tight lists with sublists (#1437).
9750 * EPUB writer:
9752 + Avoid excess whitespace in `nav.xhtml`. This should improve
9753 TOC view in iBooks (#1392).
9754 + Fixed regression on cover image.
9755 In 1.12.4 and 1.12.4.2, the cover image would not appear properly,
9756 because the metadata id was not correct. Now we derive the id from the
9757 actual cover image filename, which we preserve rather than using
9758 "cover-image."
9759 + Keep newlines between block elements. This allows
9760 easier diff-ability (#1424).
9761 + Use `stringify` instead of custom `plainify`.
9762 + Use `renderTags'` for all tag rendering. This properly handles tags
9763 that should be self-closing. Previously `<hr/>` would appear in EPUB
9764 output as `<hr></hr>` (#1420).
9765 + Better handle HTML media tags.
9766 + Handle multiple dates with OPF `event` attributes. Note: in EPUB3 we
9767 can have only one dc:date, so only the first one is used.
9769 * LaTeX writer:
9771 + Correctly handle figures in notes. Notes can't contain figures in
9772 LaTeX, so we fake it to avoid an error (#1053).
9773 + Fixed strikeout + highlighted code (#1294).
9774 Previously strikeout highlighted code caused an error.
9776 * ConTeXt writer:
9778 + Improved detection of autolinks with URLs containing escapes.
9780 * RTF writer:
9782 + Improved image embedding: `fetchItem'` is now used to get the
9783 images, and calculated image sizes are indicated in the RTF.
9784 + Avoid extra paragraph tags in metadata (#1421).
9786 * HTML writer:
9788 + Deactivate "incremental" inside slide speaker notes (#1394).
9789 + Don't include empty items in the table of contents for
9790 slide shows. (These would result from creating a slide
9791 using a horizontal rule.)
9793 * MediaWiki writer:
9795 + Minor renaming of `st` prefixed names.
9797 * AsciiDoc writer:
9799 + Double up emphasis and strong emphasis markers in intraword
9800 contexts, as required by asciidoc (#1441).
9802 * Markdown writer:
9804 + Avoid wrapping that might start a list, blockquote, or header (#1013).
9805 + Use Span instead of (hackish) `SmallCaps` in `plainify`.
9806 + Don't use braced attributes for fenced code (#1416).
9807 If `Ext_fenced_code_attributes` is not set, the first class
9808 attribute will be printed after the opening fence as a bare word.
9809 + Separate adjacent lists of the same kind with an HTML comment (#1458).
9811 * PDF writer:
9813 + Fixed treatment of data uris for images (#1062).
9815 * Docx writer:
9817 + Use Compact style for empty table cells (#1353).
9818 Otherwise we get overly tall lines when there are empty
9819 table cells and the other cells are compact.
9820 + Create overrides per-image for `media/` in reference docx.
9821 This should be somewhat more robust and cover more types of images.
9822 + Improved `entryFromArchive` to avoid an unneeded parse.
9823 + Section numbering carries over from reference.docx (#1305).
9824 + Simplified `abstractNumId` numbering. Instead of sequential numbering,
9825 we assign numbers based on the list marker styles.
9827 * `Text.Pandoc.Options`:
9829 + Removed `Ext_fenced_code_attributes` from `markdown_github`
9830 extensions.
9832 * `Text.Pandoc.ImageSize`:
9834 + Use default instead of failing if image size not found
9835 in exif header (#1358).
9836 + ignore unknown exif header tag rather than crashing.
9837 Some images seem to have tag type of 256, which was causing
9838 a runtime error.
9840 * `Text.Pandoc.Shared`:
9842 + `fetchItem`: unescape URI encoding before reading local file (#1427).
9843 + `fetchItem`: strip a fragment like `?#iefix` from the extension before
9844 doing mime lookup, to improve mime type guessing.
9845 + Improved logic of `fetchItem`: absolute URIs are fetched from the net;
9846 other things are treated as relative URIs if `sourceURL` is `Just _`,
9847 otherwise as file paths on the local file system.
9848 + `fetchItem` now properly handles links without a protocol (#1477).
9849 + `fetchItem` now escapes characters not allowed in URIs before trying
9850 to parse the URIs.
9851 + Fixed runtime error with `compactify'DL` on certain lists (#1452).
9853 * `pandoc.hs`: Don't strip path off of `writerSourceURL`: the path is
9854 needed to resolve relative URLs when we fetch resources (#750).
9856 * `Text.Pandoc.Parsing`
9858 + Simplified `dash` and `ellipsis` (#1419).
9859 + Removed `(>>~)` in favor of the equivalent `(<*)` (Matthew Pickering).
9860 + Generalized functions to use `ParsecT` (Matthew Pickering).
9861 + Added `isbn` and `pmid` to list of recognized schemes (Matthew
9862 Pickering).
9864 [template changes]
9866 * Added haddock template.
9867 * EPUB3: Added `type` attribute to `link` tags. They are supposed to
9868 be "advisory" in HTML5, but kindlegen seems to require them.
9869 * EPUB3: Put title page in section with `epub:type="titlepage"`.
9870 * LaTeX: Made `\subtitle` work properly (#1327).
9871 * LaTeX/Beamer: remove conditional around date (#1321).
9872 * LaTeX: Added `lot` and `lof` variables, which can be set to
9873 get `\listoftables` and `\listoffigures` (#1407). Note that
9874 these variables can be set at the command line with `-Vlot -Vlof`
9875 or in YAML metadata.
9877 [under the hood improvements]
9879 * Rewrote normalize for efficiency (#1385).
9881 * Rewrote Haddock reader to use `haddock-library` (#1346).
9883 + This brings pandoc's rendering of haddock markup in line
9884 with the new haddock.
9885 + Fixed line breaks in `@` code blocks.
9886 + alex and happy are no longer build-depends.
9888 * Added `Text.Pandoc.Compat.Directory` to allow building against
9889 different versions of the `directory` library.
9891 + Added `Text.Pandoc.Compat.Except` to allow building against
9892 different versions of `mtl`.
9894 * Code cleanup in some writers, using Reader monad to avoid
9895 passing options parameter around (Matej Kollar).
9897 * Improved readability in `pandoc.hs`.
9899 * Miscellaneous code cleanups (Artyom Kazak).
9901 * Avoid `import Prelude hiding (catch)` (#1309, thanks to Michael
9902 Thompson).
9904 * Changed `http-conduit` flag to `https`. Depend on `http-client`
9905 and `http-client-tls` instead of `http-conduit`. (Note: pandoc still
9906 depends on `conduit` via `yaml`.)
9908 * Require `highlighting-kate >= 0.5.8.5` (#1271, #1317, Debian #753299).
9909 This change to highlighting-kate means that PHP fragments no longer need
9910 to start with `<?php`. It also fixes a serious bug causing failures with
9911 ocaml and fsharp.
9913 * Require latest `texmath`. This fixes `\tilde{E}` and allows
9914 `\left` to be used with `]`, `)` etc. (#1319), among many other
9915 improvements.
9917 * Require latest `zip-archive`. This has fixes for unicode path names.
9919 * Added tests for plain writer.
9921 * `Text.Pandoc.Templates`:
9923 + Fail informatively on template syntax errors.
9924 With the move from parsec to attoparsec, we lost good error
9925 reporting. In fact, since we weren't testing for end of input,
9926 malformed templates would fail silently. Here we revert back to
9927 Parsec for better error messages.
9928 + Use `ordNub` (#1022).
9930 * Benchmarks:
9932 + Made benchmarks compile again (Artyom Kazak).
9933 + Fixed so that the failure of one benchmark does not prevent others
9934 from running (Artyom Kazak).
9935 + Use `nfIO` instead of the `getLength` trick to force full evaluation.
9936 + Changed benchmark to use only the test suite, so that benchmarks
9937 run more quickly.
9939 * Windows build script:
9941 + Add `-windows` to file name.
9942 + Use one install command for pandoc, pandoc-citeproc.
9943 + Force install of pandoc-citeproc.
9945 * `make_osx_package`: Call zip file `pandoc-VERSION-osx.zip`.
9946 The zip should not be named `SOMETHING.pkg.zip`, or OSX finder
9947 will extract it into a folder named `SOMETHING.pkg`, which it
9948 will interpret as a defective package (#1308).
9950 * `README`:
9952 + Made headers for all extensions so they have IDs and can be
9953 linked to (Beni Cherniavsky-Paskin).
9954 + Fixed typos (Phillip Alday).
9955 + Fixed documentation of attributes (#1315).
9956 + Clarified documentation on small caps (#1360).
9957 + Better documentation for `fenced_code_attributes` extension
9958 (Caleb McDaniel).
9959 + Documented fact that you can put YAML metadata in a separate file
9960 (#1412).
9963pandoc (1.12.4.2)
9965 * Require highlighting-kate >= 0.5.8. Fixes a performance regression.
9967 * Shared: `addMetaValue` now behaves slightly differently:
9968 if both the new and old values are lists, it concatenates their
9969 contents to form a new list.
9971 * LaTeX reader:
9973 + Set `bibliography` in metadata from `\bibliography` or
9974 `\addbibresource` command.
9975 + Don't error on `%foo` with no trailing newline.
9977 * Org reader:
9979 + Support code block headers (`#+BEGIN_SRC ...`) (Albert Krewinkel).
9980 + Fix parsing of blank lines within blocks (Albert Krewinkel).
9981 + Support pandoc citation extension (Albert Krewinkel). This can
9982 be turned off by specifying `org-citations` as the input format.
9984 * Markdown reader:
9986 + `citeKey` moved to `Text.Pandoc.Parsing` so it can be used by
9987 other readers (Albert Krewinkel).
9989 * `Text.Pandoc.Parsing`:
9991 + Added `citeKey` (see above).
9992 + Added `HasLastStrPosition` type class and `updateLastStrPos`
9993 and `notAfterString` functions.
9995 * Updated copyright notices (Albert Krewinkel).
9997 * Added default.icml to data files so it installs with the package.
9999 * OSX package:
10001 + The binary is now built with options to ensure that it can be
10002 used with OSX 10.6+.
10003 + Moved OSX package materials to osx directory.
10004 + Added OSX package uninstall script, included in the zip container
10005 (thanks to Daniel T. Staal).
10007pandoc (1.12.4)
10009 * Made it possible to run filters that aren't executable (#1096).
10010 Pandoc first tries to find the executable (searching the path
10011 if path isn't given). If it fails, but the file exists and has
10012 a `.py`, `.pl`, `.rb`, `.hs`, or `.php` extension, pandoc runs the filter
10013 using the appropriate interpreter. This should make it easier to
10014 use filters on Windows, and make it more convenient for everyone.
10016 * Added Emacs org-mode reader (Albert Krewinkel).
10018 * Added InDesign ICML Writer (Mauro Bieg).
10020 * MediaWiki reader:
10022 + Accept image links in more languages (Jaime Marquínez Ferrándiz).
10023 + Fixed bug in certain nested lists (#1213). If a level 2 list was
10024 followed by a level 1 list, the first item of the level 1 list
10025 would be lost.
10026 + Handle table rows containing just an HTML comment (#1230).
10028 * LaTeX reader:
10030 + Give better location information on errors, pointing to line
10031 numbers within included files (#1274).
10032 + LaTeX reader: Better handling of `table` environment (#1204).
10033 Positioning options no longer rendered verbatim.
10034 + Better handling of figure and table with caption (#1204).
10035 + Handle `@{}` and `p{length}` in tabular. The length is not actually
10036 recorded, but at least we get a table (#1180).
10037 + Properly handle `\nocite`. It now adds a `nocite` metadata
10038 field. Citations there will appear in the bibliography but not
10039 in the text (unless you explicitly put a `$nocite$` variable
10040 in your template).
10042 * Markdown reader:
10044 + Ensure that whole numbers in YAML metadata are rendered without
10045 decimal points. (This became necessary with changes to aeson
10046 and yaml libraries. aeson >= 0.7 and yaml >= 0.8.8.2 are now required.)
10047 + Fixed regression on line breaks in strict mode (#1203).
10048 + Small efficiency improvements.
10049 + Improved parsing of nested `div`s. Formerly a closing `div` tag
10050 would be missed if it came right after other block-level tags.
10051 + Avoid backtracking when closing `</div>` not found.
10052 + Fixed bug in reference link parsing in `markdown_mmd`.
10053 + Fixed a bug in list parsing (#1154). When reading a raw list
10054 item, we now strip off up to 4 spaces.
10055 + Fixed parsing of empty reference link definitions (#1186).
10056 + Made one-column pipe tables work (#1218).
10058 * Textile reader:
10060 + Better support for attributes. Instead of being ignored, attributes
10061 are now parsed and included in Span inlines. The output will be a bit
10062 different from stock textile: e.g. for `*(foo)hi*`, we'll get
10063 `<em><span class="foo">hi</span></em>` instead of
10064 `<em class="foo">hi</em>`. But at least the data is not lost.
10065 + Improved treatment of HTML spans (%) (#1115).
10066 + Improved link parsing. In particular we now pick up on attributes.
10067 Since pandoc links can't have attributes, we enclose the whole link in
10068 a span if there are attributes (#1008).
10069 + Implemented correct parsing rules for inline markup (#1175, Matthew
10070 Pickering).
10071 + Use Builder (Matthew Pickering).
10072 + Fixed list parsing bug (#1500).
10073 + Don't allow inline formatting to extend over newlines.
10074 This matches the behavior of RedCarpet, avoids some ugly bugs,
10075 and improves performance.
10077 * DocBook reader:
10079 + Better treatment of `formalpara`. We now emit the title (if present)
10080 as a separate paragraph with boldface text (#1215).
10081 + Set metadata `author` not `authors`.
10082 + Added recognition of `authorgroup` and `releaseinfo` elements (#1214,
10083 Matthew Pickering).
10084 + Converted current meta information parsing in DocBook to a more
10085 extensible version which is aware of the more recent meta
10086 representation (Matthew Pickering).
10088 * HTML reader:
10090 + Require tagsoup 0.13.1, to fix a bug with parsing of script tags
10091 (#1248).
10092 + Treat processing instructions & declarations as block. Previously
10093 these were treated as inline, and included in paragraph tags in HTML
10094 or DocBook output, which is generally not what is wanted (#1233).
10095 + Updated `closes` with rules from HTML5 spec.
10096 + Use Builder (Matthew Pickering, #1162).
10098 * RST reader:
10100 + Remove duplicate `http` in PEP links (Albert Krewinkel).
10101 + Make rst figures true figures (#1168, CasperVector)
10102 + Enhanced Pandoc's support for rST roles (Merijn Verstaaten).
10103 rST parser now supports: all built-in rST roles, new role definition,
10104 role inheritance, though with some limitations.
10105 + Use `author` rather than `authors` in metadata.
10106 + Better handling of directives. We now correctly handle field
10107 lists that are indented more than three spaces. We treat an
10108 `aafig` directive as a code block with attributes, so it can be
10109 processed in a filter (#1212).
10111 * LaTeX writer:
10113 + Mark span contents with label if span has an ID (Albert Krewinkel).
10114 + Made `--toc-depth` work well with books in latex/pdf output (#1210).
10115 + Handle line breaks in simple table cells (#1217).
10116 + Workaround for level 4-5 headers in quotes. These previously produced
10117 invalid LaTeX: `\paragraph` or `\subparagraph` in a `quote` environment.
10118 This adds an `mbox{}` in these contexts to work around the problem.
10119 See <http://tex.stackexchange.com/a/169833/22451> (#1221).
10120 + Use `\/` to avoid en-dash ligature instead of `-{}-` (Vaclav Zeman).
10121 This is to fix LuaLaTeX output. The `-{}-` sequence does not avoid the
10122 ligature with LuaLaTeX but `\/` does.
10123 + Fixed string escaping in `hyperref` and `hyperdef` (#1130).
10125 * ConTeXt writer: Improved autolinks (#1270).
10127 * DocBook writer:
10129 + Improve handling of hard line breaks in Docbook writer
10130 (Neil Mayhew). Use a `<literallayout>` for the entire paragraph, not
10131 just for the newline character.
10132 + Don't let line breaks inside footnotes influence the enclosing
10133 paragraph (Neil Mayhew).
10134 + Distinguish tight and loose lists in DocBook output, using
10135 `spacing="compact"` (Neil Mayhew, #1250).
10137 * Docx writer: When needed files are not present in the user's
10138 `reference.docx`, fall back on the versions in the `reference.docx`
10139 in pandoc's data files. This fixes a bug that occurs when a
10140 `reference.docx` saved by LibreOffice is used. (#1185)
10142 * EPUB writer:
10144 + Include extension in epub ids. This fixes a problem with duplicate
10145 extensions for fonts and images with the same base name but different
10146 extensions (#1254).
10147 + Handle files linked in raw `img` tags (#1170).
10148 + Handle media in `audio` source tags (#1170).
10149 Note that we now use a `media` directory rather than `images`.
10150 + Incorporate files linked in `video` tags (#1170). `src` and `poster`
10151 will both be incorporated into `content.opf` and the epub container.
10153 * HTML writer:
10155 + Add colgroup around col tags (#877). Also affects EPUB writer.
10156 + Fixed bug with unnumbered section headings. Unnumbered section
10157 headings (with class `unnumbered`) were getting numbers.
10158 + Improved detection of image links. Previously image links with
10159 queries were not recognized, causing `<embed>` to be used instead
10160 of `<img>`.
10162 * Man writer: Ensure that terms in definition lists aren't line wrapped
10163 (#1195).
10165 * Markdown writer:
10167 + Use proper escapes to avoid unwanted lists (#980). Previously we used
10168 0-width spaces, an ugly hack.
10169 + Use longer backtick fences if needed (#1206). If the content contains a
10170 backtick fence and there are attributes, make sure longer fences are
10171 used to delimit the code. Note: This works well in pandoc, but github
10172 markdown is more limited, and will interpret the first string of three
10173 or more backticks as ending the code block.
10175 * RST writer: Avoid stack overflow with certain tables (#1197).
10177 * RTF writer: Fixed table cells containing paragraphs.
10179 * Custom writer:
10181 + Correctly handle UTF-8 in custom lua scripts (#1189).
10182 + Fix bugs with lua scripts with mixed-case filenames and
10183 paths containing `+` or `-` (#1267). Note that `getWriter`
10184 in `Text.Pandoc` no longer returns a custom writer on input
10185 `foo.lua`.
10187 * AsciiDoc writer: Handle multiblock and empty table cells
10188 (#1245, #1246). Added tests.
10190 * `Text.Pandoc.Options`: Added `readerTrace` to `ReaderOptions`
10192 * `Text.Pandoc.Shared`:
10194 + Added `compactify'DL` (formerly in markdown reader) (Albert Krewinkel).
10195 + Fixed bug in `toRomanNumeral`: numbers ending with '9' would
10196 be rendered as Roman numerals ending with 'IXIV' (#1249). Thanks to
10197 Jesse Rosenthal.
10198 + `openURL`: set proxy with value of http_proxy env variable (#1211).
10199 Note: proxies with non-root paths are not supported, due to
10200 limitations in `http-conduit`.
10202 * `Text.Pandoc.PDF`:
10204 + Ensure that temp directories deleted on Windows (#1192). The PDF is
10205 now read as a strict bytestring, ensuring that process ownership will
10206 be terminated, so the temp directory can be deleted.
10207 + Use `/` as path separators in a few places, even on Windows.
10208 This seems to be necessary for texlive (#1151, thanks to Tim Lin).
10209 + Use `;` for `TEXINPUTS` separator on Windows (#1151).
10210 + Changes to error reporting, to handle non-UTF8 error output.
10212 * `Text.Pandoc.Templates`:
10214 + Removed unneeded datatype context (Merijn Verstraaten).
10216 + YAML objects resolve to "true" in conditionals (#1133).
10217 Note: If `address` is a YAML object and you just have `$address$`
10218 in your template, the word `true` will appear, which may be
10219 unexpected. (Previously nothing would appear.)
10221 * `Text.Pandoc.SelfContained`:
10223 + `mkSelfContained` now takes just two arguments, `WriterOptions` and
10224 the string.
10225 * It no longer looks in data files. This only made sense when we
10226 had copies of slidy and S5 code there.
10227 * `fetchItem'` is used instead of the nearly duplicate `getItem`.
10228 + Handle `poster` attribute in `video` tags (#1188).
10230 * `Text.Pandoc.Parsing`:
10232 + Made `F` an instance of Applicative (#1138).
10233 + Added `stateCaption`.
10234 + Added `HasMacros`, simplified other typeclasses.
10235 Removed `updateHeaderMap`, `setHeaderMap`, `getHeaderMap`,
10236 `updateIdentifierList`, `setIdentifierList`, `getIdentifierList`.
10237 + Changed the smart punctuation parser to return `Inlines`
10238 rather than `Inline` (Matthew Pickering).
10239 + Changed `HasReaderOptions`, `HasHeaderMap`, `HasIdentifierList`
10240 from typeclasses of monads to typeclasses of states. This simplifies
10241 the instance definitions and provides more flexibility. Generalized
10242 type of `getOption` and added a default definition. Removed
10243 `askReaderOption`. Added `extractReaderOption`. Added
10244 `extractHeaderMap` and `updateHeaderMap` in `HasHeaderMap`.
10245 Gave default definitions for `getHeaderMap`, `putHeaderMap`,
10246 `modifyHeaderMap`. Added `extractIdentifierList` and
10247 `updateIdentifierList` in `HasIdentifierList`. Gave defaults
10248 for `getIdentifierList`, `putIdentifierList`, and
10249 `modifyIdentifierList`. The ultimate goal here is to allow different
10250 parsers to use their own, tailored parser states (instead of
10251 `ParserState`) while still using shared functions.
10253 * Template changes:
10255 + LaTeX template: Use `fontenc` package only with `pdflatex` (#1164).
10256 + LaTeX template: Add `linestretch` and `fontfamily` variables.
10257 + LaTeX template: Conditionalize author and date commands.
10258 + Beamer template: Consistent styles for figure and table captions
10259 (aaronwolen).
10260 + LaTeX and beamer template: Adjust widths correctly for oversized
10261 images. Use `\setkeys{Gin}{}` to set appropriate defaults for
10262 `\includegraphics` (Yihui Xie, Garrick Aden-Buie). Load
10263 `upquote` only after `fontenc` (Yihui Xie).
10264 + Beamer template: Added caption package (#1200).
10265 + Beamer template: changes for better unicode handling (KarolS).
10266 + DocBook template: use `authorgroup` if there are authors.
10267 + revealjs template: Move `include-after` to end (certainlyakey).
10268 + revealjs template: Fixed PDF print function (#1220, kevinkenan).
10270 * Bumped version bounds of dependencies.
10272 * Added a `--trace` command line option, for debugging backtracking
10273 bugs. So far this only works with the markdown reader.
10275 * MathMLinHTML: Fixed deprecation warning (#362, gwern, Albert Krewinkel).
10277 * Updated travis script to test with multiple GHC versions.
10279 * Force failure of a Travis build if GHC produces warnings (Albert
10280 Krewinkel).
10282 * Add `.editorconfig` (Albert Krewinkel).
10283 See <http://editorconfig.org/> for details.
10285 * Give more useful error message if '-t pdf' is specified (#1155).
10287 * Added `Cite`, `SmallCaps` to `Arbitrary` instance (#1269).
10289 * Allow `html4` as a synonym of `html` as a reader (it already works
10290 as a writer).
10292 * README:
10294 + Added an explanation of how to use YAML metadata to
10295 force items to appear in the bibliography without citations in
10296 the text (like LaTeX `\nocite`).
10297 + Added note to `--bibtex/--natbib`: not for use in making PDF
10298 (#1194, thanks to nahoj).
10299 + Added explanatory notes about `--natbib` and `--biblatex`.
10300 + Added specification of legal syntax for citation keys.
10301 + Fixed variable defaults documentation (Albert Krewinkel).
10303 * Removed copyright statements for files that have been removed
10304 (Albert Krewinkel).
10306 * Moved some doc files from `data-files` to `extra-source-files` (#1123).
10307 They aren't needed at runtime. We keep README and COPYRIGHT in data
10308 to ensure that they'll be available on all systems on which pandoc
10309 is installed.
10311 * Use cabal sandboxes in Windows build script.
10313pandoc (1.12.3.3)
10315 * To changes to source; recompiled tarball with latest alex and
10316 happy, so they will work with GHC 7.8.
10318pandoc (1.12.3.2)
10320 * Bumped version bounds for blaze-html, blaze-markup.
10322 * ImageSize: Avoid use of lookAhead, which is not in binary >= 0.6
10323 (#1124).
10325 * Fixed mediawiki ordered list parsing (#1122).
10327 * HTML reader: Fixed bug reading inline math with `$$` (#225).
10329 * Added support for LaTeX style literate Haskell code blocks in rST
10330 (Merijn Verstraaten).
10332pandoc (1.12.3.1)
10334 * Relaxed version constraint on binary, allowing the use of binary 0.5.
10336pandoc (1.12.3)
10338 * The `--bibliography` option now sets the `biblio-files` variable.
10339 So, if you're using `--natbib` or `--biblatex`, you can just use
10340 `--bibliography=foo.bib` instead of `-V bibliofiles=foo`.
10342 * Don't run pandoc-citeproc filter if `--bibliography` is
10343 used together with `--natbib` or `--biblatex` (Florian Eitel).
10345 * Template changes:
10347 + Updated beamer template to include booktabs.
10348 + Added `abstract` variable to LaTeX template.
10349 + Put `header-includes` after `title` in LaTeX template (#908).
10350 + Allow use of `\includegraphics[size]` in beamer.
10351 This just required porting a macro definition from the default
10352 LaTeX template to the default beamer template.
10354 * `reference.docx`: Include `FootnoteText` style.
10355 Otherwise Word ignores the style, even when specified in the `pPr`.
10356 (#901)
10358 * `reference.odt`: Tidied `styles.xml`.
10360 * Relaxed version bounds for dependencies.
10362 * Added `withSocketsDo` around http conduit code in `openURL`,
10363 so it works on Windows (#1080).
10365 * Added `Cite` function to `sample.lua`.
10367 * Markdown reader:
10369 + Fixed regression in title blocks (#1089).
10370 If author field was empty, date was being ignored.
10371 + Allow backslash-newline hard line breaks in grid and
10372 multiline table cells.
10373 + Citation keys may now start with underscores, and may contain
10374 underscores adjacent to internal punctuation.
10376 * LaTeX reader:
10378 + Add support for `Verb` macro (jrnold) (#1090).
10379 + Support babel-style quoting: `` "`..."' ``.
10381 * Properly handle script blocks in strict mode. (That is,
10382 `markdown-markdown_in_html_blocks`.) Previously a spurious
10383 `<p>` tag was being added (#1093).
10385 * Docbook reader: Avoid failure if `tbody` contains no `tr` or `row`
10386 elements.
10388 * LaTeX writer:
10390 + Factored out function for table cell creation.
10391 + Better treatment of footnotes in tables.
10392 Notes now appear in the regular sequence, rather than in the
10393 table cell. (This was a regression in 1.10.)
10395 * HTML reader: Parse name/content pairs from meta tags as metadata.
10396 Closes #1106.
10398 * Moved `fixDisplayMath` from Docx writer to `Writer.Shared`.
10400 * OpenDocument writer: Fixed `RawInline`, `RawBlock` so they don't escape.
10402 * ODT writer: Use mathml for proper rendering of formulas.
10403 Note: LibreOffice's support for this seems a bit buggy. But
10404 it should be better than what we had before.
10406 * RST writer: Ensure no blank line after def in definition list (#992).
10408 * Markdown writer: Don't use tilde code blocks with braced attributes in
10409 `markdown_github` output. A consequence of this change is that the
10410 backtick form will be preferred in general if both are enabled. That
10411 is good, as it is much more widespread than the tilde form. (#1084)
10413 * Docx writer: Fixed problem with some modified reference docx files.
10414 Include `word/_rels/settings.xml.rels` if it exists, as well as other
10415 `rels` files besides the ones pandoc generates explicitly.
10417 * HTML writer:
10419 + With `--toc`, headers no longer link to themselves (#1081).
10420 + Omit footnotes from TOC entries. Otherwise we get doubled
10421 footnotes when headers have notes!
10423 * EPUB writer:
10425 + Avoid duplicate notes when headings contain notes.
10426 This arose because the headings are copied into the metadata
10427 "title" field, and the note gets rendered twice. We strip the
10428 note now before putting the heading in "title".
10429 + Strip out footnotes from toc entries.
10430 + Fixed bug with `--epub-stylesheet`. Now the contents of
10431 `writerEpubStylesheet` (set by `--epub-stylesheet`)
10432 should again work, and take precedence over a stylesheet specified
10433 in the metadata.
10435 * `Text.Pandoc.MIME`: Added `wmf`, `emf`.
10437 * `Text.Pandoc.Shared`: `fetchItem` now handles image URLs beginning
10438 with `//`.
10440 * `Text.Pandoc.ImageSize`: Parse EXIF format JPEGs. Previously
10441 we could only get size information for JFIF format, which led
10442 to squished images in Word documents. Closes #976.
10444 * Removed old `MarkdownTest_1.0.3` directory (#1104).
10446pandoc (1.12.2.1)
10448 * Markdown reader: Fixed regression in list parser, involving
10449 continuation lines containing raw HTML (or even verbatim raw HTML).
10451pandoc (1.12.2)
10453 * Metadata may now be included in YAML blocks in a markdown document.
10454 For example,
10456 ---
10457 title:
10458 - type: main
10459 text: My Book
10460 - type: subtitle
10461 text: An investigation of metadata
10462 creator:
10463 - role: author
10464 text: John Smith
10465 - role: editor
10466 text: Sarah Jones
10467 identifier:
10468 - scheme: DOI
10469 text: doi:10.234234.234/33
10470 publisher: My Press
10471 rights: (c) 2007 John Smith, CC BY-NC
10472 cover-image: img/mypic.jpg
10473 ...
10475 Metadata may still be provided using `--epub-metadata`; it will
10476 be merged with the metadata in YAML blocks.
10478 * EPUB writer:
10480 + `meta` tags are now used instead of `opf` attributes for EPUB3.
10481 + Insert "svg" property as needed in opf (EPUB 3).
10482 + Simplify `imageTypeOf` using `getMimeType`.
10483 + Add properties attribute to `cover-image` item for EPUB 3.
10484 + Don't include node for `cover.xhtml` if no cover!
10485 + Ensure that same identifier is used throughout (#1044).
10486 If an identifier is given in metadata, we use that; otherwise
10487 we generate a random uuid.
10488 + Add cover reference to guide element (EPUB 2) (Shaun Attfield).
10489 Fixes an issue with Calibre putting the cover at the end of the book
10490 if the spine has `linear="no"`. Apparently this is best practice
10491 for other converters as well:
10492 <http://www.idpf.org/epub/20/spec/OPF_2.0.1_draft.htm#Section2.6>.
10493 + Allow `stylesheet` in metadata. The value is a path to the stylesheet.
10494 + Allow partial dates: `YYYY`, `YYYY-MM`.
10496 * Markdown writer: Fix rendering of tight sublists (#1050).
10497 Previously a spurious blank line was included after a tight sublist.
10499 * ODT writer: Add `draw:name` attribute to `draw:frame` elements (#1069).
10500 This is reported to be necessary to avoid an error from recent
10501 versions of Libre Office when files contain more than one image
10502 Thanks to wmanley for reporting and diagnosing the problem.
10504 * ConTeXt writer: Don't hardcode figure/table placement and numbering.
10505 Instead, let this be set in the template, using `\setupfloat`.
10506 Thanks to on4aa and Aditya Mahajan for the suggestion (#1067).
10508 * Implemented CSL flipflopping spans in DOCX, LaTeX, and HTML writers.
10510 * Fixed bug with markdown intraword emphasis. Closes #1066.
10512 * Docbook writer: Hierarchicalize block content in metadata.
10513 Previously headers just disappeared from block-level metadata
10514 when it was used in templates. Now we apply the 'hierarchicalize'
10515 transformation. Note that a block headed by a level-2 header will
10516 turn into a `<sect1>` element.
10518 * OpenDocument writer: Skip raw HTML (#1035).
10519 Previously it was erroneously included as verbatim text.
10521 * HTML/EPUB writer, footnotes: Put `<sup>` tag inside `<a>` tags.
10522 This allows better control of formatting, since the `<a>`
10523 tags have a distinguishing class (#1049).
10525 * Docx writer:
10527 + Use mime type info returned by fetchItem.
10528 + Fixed core metadata (#1046).
10529 Don't create empty date nodes if no date given.
10530 Don't create multiple `dc:creator` nodes; instead separate by
10531 semicolons.
10532 + Fix URL for core-properties in `_rels/.rels` (#1046).
10534 * Plain writer: don't print `<span>` tags.
10536 * LaTeX writer:
10538 + Fix definition lists with internal links in terms (#1032).
10539 This fix puts braces around a term that contains an internal
10540 link, to avoid problems with square brackets.
10541 + Properly escape pdftitle, pdfauthor (#1059).
10542 + Use booktabs package for tables (thanks to Jose Luis Duran).
10544 * Updated beamer template. Now references should work properly
10545 (in a slide) when `--biblatex` or `--natbib` is used.
10547 * LaTeX reader:
10549 + Parse contents of curly quotes or matched `"` as quotes.
10550 + Support `\textnormal` as span with class `nodecor`.
10551 This is needed for pandoc-citeproc.
10552 + Improved citation parsing. This fixes a run-time error that occurred
10553 with `\citet{}` (empty list of keys). It also ensures that empty keys
10554 don't get produced.
10556 * MediaWiki reader: Add automatic header identifiers.
10558 * HTML reader:
10560 + Use pandoc `Div` and `Span` for raw `<div>`, `<span>` when
10561 `--parse-raw`.
10562 + Recognize `svg` tags as block level content (thanks to MinRK).
10563 + Parse LaTeX math if appropriate options are set.
10565 * Markdown reader:
10567 + Yaml block must start immediately after `---`. If there's a blank
10568 line after `---`, we interpreted it as a horizontal rule.
10569 + Correctly handle empty bullet list items.
10570 + Stop parsing "list lines" when we hit a block tag.
10571 This fixes exponential slowdown in certain input, e.g.
10572 a series of lists followed by `</div>`.
10574 * Slides: Preserve `<div class="references">` in references slide.
10576 * `Text.Pandoc.Writer.Shared`:
10578 + Fixed bug in `tagWithAttrs`. A space was omitted before key-value
10579 attributes, leading to invalid HTML.
10580 + `normalizeDate`: Allow dates with year only (thanks to Shaun Attfield).
10581 + Fixed bug in `openURL` with `data:` URIs. Previously the base-64
10582 encoded bytestring was returned. We now decode it so it's a proper
10583 image!
10585 * DocBook reader: Handle numerical attributes starting with decimal.
10586 Also use `safeRead` instead of `read`.
10588 * `Text.Pandoc.Readers.TexMath`: Export `readTeXMath'`, which attends
10589 to display/inline. Deprecate `readTeXMath`, and use `readTeXMath'`
10590 in all the writers. Require `texmath >= 0.6.5.2`.
10592 * `Text.Pandoc.MIME`:
10594 + Add entry for `jfif`.
10595 + In looking up extensions, drop the encoding info.
10596 E.g. for 'image/jpg;base64' we should lookup 'image/jpg'.
10598 * Templates: Changed how array variables are resolved. Previously if
10599 `foo` is an array (which might be because multiple values were set on
10600 the command line), `$foo$` would resolve to the concatenation of the
10601 elements of foo. This is rarely useful behavior. It has been changed
10602 so that the first value is rendered. Of course, you can still iterate
10603 over the values using `$for(foo)$`. This has the result that you can
10604 override earlier settings using `-V` by putting new values later on the
10605 command line, which is useful for many purposes.
10607 * `Text.Pandoc`: Don't default to `pandocExtensions` for all writers.
10609 * Allow "epub2" as synonym for "epub", "html4" for "html".
10611 * Don't look for slidy files in data files with `--self-contained`.
10613 * Allow `https:` command line arguments to be downloaded.
10615 * Fixed `make_osx_package.sh` so data files embedded in `pandoc-citeproc`.
10617pandoc (1.12.1)
10619 * `Text.Pandoc.Definition`: Changed default JSON serialization format.
10620 Instead of `{"Str": "foo"}`, for example, we now have `{"t": "Str",
10621 "c": "foo"}`. This new format is easier to work with outside of Haskell.
10622 Incidentally, "t" stands for "tag", "c" for "contents".
10624 * MediaWiki reader: Trim contents of `<math>` tags, to avoid problems
10625 when converting to markdown (#1027).
10627 * LaTeX reader:
10629 + Ensure that preamble doesn't contribute to the text of
10630 the document.
10631 + Fixed character escaping in \url{}. Previously `\~` wasn't handled
10632 properly, among others.
10633 + Parse `{groups}` as `Span`. This is needed for accurate conversion of
10634 bibtex titles, since we need to know what was protected from
10635 titlecase conversions.
10637 * LaTeX writer:
10639 + Specially escape non-ascii characters in labels.
10640 Otherwise we can get compile errors and other bugs when
10641 compiled with pdflatex (#1007). Thanks to begemotv2718 for the fix.
10642 + Add link anchors for code blocks with identifiers (#1025).
10644 * Throughout the code, use `isURI` instead of `isAbsoluteURI`.
10645 It allows fragments identifiers.
10647 * Slide formats:
10649 + A Div element with class "notes" is treated as speaker
10650 notes. Currently beamer goes to `\note{}`, revealjs to
10651 `<aside class="notes">`, and the notes are simply suppressed in
10652 other formats (#925).
10653 + Fixed `. . .` (pause) on HTML slide formats. Closes #1029.
10654 The old version caused a pause to be inserted before the first
10655 material on a slide. This has been fixed.
10656 + Removed data files for s5, slideous, slidy.
10657 Users of s5 and slideous will have to download the needed
10658 files, as has been documented for some time in the README.
10659 By default, slidy code will be sought on the web, as before.
10661 * HTML writer: Insert command to typeset mathjax only in slideous output
10662 (#966, #1012).
10664 * RST writer: Skip spaces after display math. Otherwise we get indentation
10665 problems, and part of the next paragraph may be rendered as part of the
10666 math.
10668 * OpenDocument writer: Fix formatting of strikeout code (#995),
10669 thanks to wilx. don't use `font-face-decls` variable.
10671 * Fixed test suite so it works with cabal sandboxes.
10673pandoc (1.12.0.2)
10675 * Removed `stringable` dependency.
10677pandoc (1.12.0.1)
10679 * Allow `--metadata` to be repeated for the same key to form a list.
10680 This also has the effect that `--bibliography` can be repeated,
10681 as before.
10683 * Handle boolean values in `--metadata`. Note that anything not parseable
10684 as a YAML boolean or string is treated as a literal string.
10685 You can get a string value with "yes", or any of the strings interpretable
10686 as booleans, by quoting it:
10688 -M boolvalue=yes -M stringvalue='"yes"'
10690 * LaTeX writer: Don't print references if `--natbib` or `--biblatex`
10691 option used.
10693 * DOCX writer: Add `settings.xml` to the zip container. Fixes a bug
10694 in which docx files could not be read by some versions of Word
10695 and LibreOffice (#990).
10697 * Fixed a regression involving slide shows with bibliographies.
10698 The Div container around references messed up the procedure for carving
10699 a document into slides. So we now remove the surrounding Div in
10700 `prepSlides`.
10702 * More informative error message when a filter is not found in path.
10704 * Depend on pandoc-types 1.12.1. This provide `ToJSONFilter`
10705 instances for `Data a => a -> [a]` and `Data a => a -> IO [a]`.
10707 * Don't use unicode_collation in building OSX package:
10708 it adds something like 50MB of dependencies to the package.
10710 * Declare alex and happy as build-tools (#986).
10712pandoc (1.12)
10714 [new features]
10716 * Much more flexible metadata, including arbitrary fields and structured
10717 values. Metadata can be specified flexibly in pandoc markdown using
10718 YAML metadata blocks, which may occur anywhere in the document:
10720 ---
10721 title: Here is my title.
10722 abstract: |
10723 This is the abstract.
10725 1. It can contain
10726 2. block content
10727 and *inline markup*
10729 tags: [cat, dog, animal]
10730 ...
10732 Metadata fields automatically populate template variables.
10734 * Added `opml` (OPML) as input and output format. The `_note` attribute,
10735 used in OmniOutliner and supported by multimarkdown, is supported.
10736 We treat the contents as markdown blocks under a section header.
10738 * Added `haddock` (Haddock markup) as input format (David Lazar).
10740 * Added `revealjs` output format, for reveal.js HTML 5 slide shows.
10741 (Thanks to Jamie F. Olson for the initial patch.)
10742 Nested vertical stacks are used for hierarchical structure.
10743 Results for more than one level of nesting may be odd.
10745 * Custom writers can now be written in lua.
10747 pandoc -t data/sample.lua
10749 will load the script sample.lua and use it as a custom writer.
10750 (For a sample, do `pandoc --print-default-data-file sample.lua`.)
10751 Note that pandoc embeds a lua interpreter, so lua need not be
10752 installed separately.
10754 * New `--filter/-F` option to make it easier to run "filters"
10755 (Pandoc AST transformations that operate on JSON serializations).
10756 Filters are always passed the name of the output format, so their
10757 behavior can be tailored to it. The repository
10758 <https://github.com/jgm/pandocfilters> contains
10759 a python module for writing pandoc filters in python, with
10760 a number of examples.
10762 * Added `--metadata/-M` option.
10763 This is like `--variable/-V`, but actually adds to metadata, not
10764 just variables.
10766 * Added `--print-default-data-file` option, which allows printing
10767 of any of pandoc's data files. (For example,
10768 `pandoc --print-default-data-file reference.odt` will print
10769 `reference.odt`.)
10771 * Added syntax for "pauses" in slide shows:
10773 This gives
10775 . . .
10777 me pause.
10779 * New markdown extensions:
10781 + `ignore_line_breaks`: causes intra-paragraph line breaks to be ignored,
10782 rather than being treated as hard line breaks or spaces. This is useful
10783 for some East Asian languages, where spaces aren't used between words,
10784 but text is separated into lines for readability.
10785 + `yaml_metadata_block`: Parse YAML metadata blocks. (Default.)
10786 + `ascii_identifiers`: This will force `auto_identifiers` to use ASCII
10787 only. (Default for `markdown_github`.) (#807)
10788 + `lists_without_preceding_blankline`: Allow lists to start without
10789 preceding blank space. (Default for `markdown_github`.) (#972)
10791 [behavior changes]
10793 * `--toc-level` no longer implies `--toc`.
10794 Reason: EPUB users who don't want a visible TOC may still want
10795 to set the TOC level for in the book navigation.
10797 * `--help` now prints in and out formats in alphabetical order, and
10798 says something about PDF output (#720).
10800 * `--self-contained` now returns less verbose output (telling you
10801 which URLs it is fetching, but not giving the full header). In
10802 addition, there are better error messages when fetching a URL fails.
10804 * Citation support is no longer baked in to core pandoc. Users who
10805 need citations will need to install and use a separate filter
10806 (`--filter pandoc-citeproc`). This filter will take `bibliography`,
10807 `csl`, and `citation-abbreviations` from the metadata, though it
10808 may still be specified on the command line as before.
10810 * A `Cite` element is now created in parsing markdown whether or not
10811 there is a matching reference.
10813 * The `pandoc-citeproc` script will put the bibliography at the
10814 end of the document, as before. However, it will be put inside a `Div`
10815 element with class "references", allowing users some control
10816 over the styling of references. A final header, if any, will
10817 be included in the `Div`.
10819 * The markdown writer will not print a bibliography if the
10820 `citations` extension is enabled. (If the citations are formatted
10821 as markdown citations, it is redundant to have a bibliography,
10822 since one will be generated automatically.)
10824 * Previously we used to store the directory of the first input file,
10825 even if it was local, and used this as a base directory for finding
10826 images in ODT, EPUB, Docx, and PDF. This has been confusing to many
10827 users. So we now look for images relative to the current
10828 working directory, even if the first file argument is in another
10829 directory. Note that this change may break some existing workflows.
10830 If you have been assuming that relative links will be interpreted
10831 relative to the directory of the first file argument, you'll need
10832 to make that the current directory before running pandoc. (#942)
10834 * Better error reporting in some readers, due to changes in `readWith`:
10835 the line in which the error occurred is printed, with a caret pointing
10836 to the column.
10838 * All slide formats now support incremental slide view for definition lists.
10840 * Parse `\(..\)` and `\[..\]` as math in MediaWiki reader.
10841 Parse `:<math>...</math>` as display math. These notations are used with
10842 the MathJax MediaWiki extension.
10844 * All writers: template variables are set automatically from metadata
10845 fields. However, variables specified on the command line with
10846 `--variable` will completely shadow metadata fields.
10848 * If `--variable` is used to set many variables with the same name,
10849 a list is created.
10851 * Man writer: The `title`, `section`, `header`, and `footer` can now
10852 all be set individually in metadata. The `description` variable has been
10853 removed. Quotes have been added so that spaces are allowed in the
10854 title. If you have a title that begins
10856 COMMAND(1) footer here | header here
10858 pandoc will still parse it into a title, section, header, and
10859 footer. But you can also specify these elements explicitly (#885).
10861 * Markdown reader
10863 + Added support for YAML metadata blocks, which can come anywhere
10864 in the document (not just at the beginning). A document can contain
10865 multiple YAML metadata blocks.
10866 + HTML span and div tags are parsed as pandoc Span and Div elements.
10868 * Markdown writer
10870 + Allow simple tables to be printed as grid tables,
10871 if other table options are disabled. This means you can do
10872 `pandoc -t markdown-pipe_tables-simple_tables-multiline_tables`
10873 and all tables will render as grid tables.
10874 + Support YAML title block (render fields in alphabetical order
10875 to make output predictable).
10877 [API changes]
10879 * `Meta` in `Text.Pandoc.Definition` has been changed to allow
10880 structured metadata. (Note: existing code that pattern-matches
10881 on `Meta` will have to be revised.) Metadata can now contain
10882 indefinitely many fields, with content that can be a string,
10883 a Boolean, a list of `Inline` elements, a list of `Block`
10884 elements, or a map or list of these.
10886 * A new generic block container (`Div`) has been added to `Block`,
10887 and a generic inline container (`Span`) has been added to `Inline`.
10888 These can take attributes. They will render in HTML, Textile,
10889 MediaWiki, Org, RST and and Markdown (with `markdown_in_html`
10890 extension) as HTML `<div>` and `<span>` elements; in other formats
10891 they will simply pass through their contents. But they can be
10892 targeted by scripts.
10894 * `Format` is now a newtype, not an alias for String.
10895 Equality comparisons are case-insensitive.
10897 * Added `Text.Pandoc.Walk`, which exports hand-written tree-walking
10898 functions that are much faster than the SYB functions from
10899 `Text.Pandoc.Generic`. These functions are now used where possible
10900 in pandoc's code. (`Tests.Walk` verifies that `walk` and `query`
10901 match the generic traversals `bottomUp` and `queryWith`.)
10903 * Added `Text.Pandoc.JSON`, which provides `ToJSON` and `FromJSON`
10904 instances for the basic pandoc types. They use GHC generics and
10905 should be faster than the old JSON serialization using
10906 `Data.Aeson.Generic`.
10908 * Added `Text.Pandoc.Process`, exporting `pipeProcess`.
10909 This is a souped-up version of `readProcessWithErrorcode` that
10910 uses lazy bytestrings instead of strings and allows setting
10911 environment variables. (Used in `Text.Pandoc.PDF`.)
10913 * New module `Text.Pandoc.Readers.OPML`.
10915 * New module `Text.Pandoc.Writers.OPML`.
10917 * New module `Text.Pandoc.Readers.Haddock` (David Lazar).
10918 This is based on Haddock's own lexer/parser.
10920 * New module `Text.Pandoc.Writers.Custom`.
10922 * In `Text.Pandoc.Shared`, `openURL` and `fetchItem` now return an
10923 Either, for better error handling.
10925 * Made `stringify` polymorphic in `Text.Pandoc.Shared`.
10927 * Removed `stripTags` from `Text.Pandoc.XML`.
10929 * `Text.Pandoc.Templates`:
10931 + Simplified `Template` type to a newtype.
10932 + Removed `Empty`.
10933 + Changed type of `renderTemplate`: it now takes a JSON context
10934 and a compiled template.
10935 + Export `compileTemplate`.
10936 + Export `renderTemplate'` that takes a string instead of a compiled
10937 template.
10938 + Export `varListToJSON`.
10940 * `Text.Pandoc.PDF` exports `makePDF` instead of `tex2pdf`.
10941 The signature of `makePDF` has changed and now contains
10942 an additional argument for pdf engine options.
10944 * `Text.Pandoc`:
10946 + Made `toJsonFilter` an alias for `toJSONFilter` from `Text.Pandoc.JSON`.
10947 + Removed `ToJsonFilter` typeclass. `ToJSONFilter` from
10948 `Text.Pandoc.JSON` should be used instead. (Compiling against
10949 pandoc-types instead of pandoc will also produce smaller executables.)
10950 * Removed the deprecated `jsonFilter` function.
10951 + Added `readJSON`, `writeJSON` to the API (#817).
10953 * `Text.Pandoc.Options`:
10955 + Added `Ext_lists_without_preceding_blankline`,
10956 `Ext_ascii_identifiers`, `Ext_ignore_line_breaks`,
10957 `Ext_yaml_metadataBlock` to `Extension`.
10958 + Changed `writerSourceDirectory` to `writerSourceURL` and changed the
10959 type to a `Maybe`. `writerSourceURL` is set to 'Just url' when the
10960 first command-line argument is an absolute URL. (So, relative links
10961 will be resolved in relation to the first page.) Otherwise, 'Nothing'.
10962 + All bibliography-related fields have been removed from
10963 `ReaderOptions` and `WriterOptions`: `writerBiblioFiles`,
10964 `readerReferences`, `readerCitationStyle`.
10965 + Removed `writerPdfArgs` from `WriterOptions`. These are now
10966 passed in as a parameter to `makePDF`.
10968 * The `Text.Pandoc.Biblio` module has been removed. Users of the
10969 pandoc library who want citation support will need to use
10970 `Text.CSL.Pandoc` from `pandoc-citeproc`.
10973 [bug fixes]
10975 * In markdown, don't autolink a bare URI that is followed by `</a>`
10976 (#937).
10978 * `Text.Pandoc.Shared`
10980 + `openURL` now follows redirects (#701), properly handles `data:`
10981 URIs, and prints diagnostic output to stderr rather than stdout.
10982 + `readDefaultDataFile`: normalize the paths. This fixes bugs in
10983 `--self-contained` on pandoc compiled with `embed_data_files` (#833).
10984 + Fixed `readDefaultDataFile` so it works on Windows.
10985 + Better error messages for `readDefaultDataFile`. Instead of
10986 listing the last path tried, which can confuse people who are
10987 using `--self-contained`, so now we just list the data file name.
10988 + URL-escape pipe characters. Even though these are legal, `Network.URI`
10989 doesn't regard them as legal in URLs. So we escape them first (#535).
10991 * Mathjax in HTML slide shows: include explicit "Typeset" call.
10992 This seems to be needed for some formats (e.g. slideous) and won't
10993 hurt in others (#966).
10995 * `Text.Pandoc.PDF`
10997 + On Windows, create temdir in working directory, since the system
10998 temp directory path may contain tildes, which can cause
10999 problems in LaTeX (#777).
11000 + Put temporary output directory in `TEXINPUTS` (see #917).
11001 + `makePDF` tries to download images that are not found locally,
11002 if the first argument is a URL (#917).
11003 + If compiling with `pdflatex` yields an encoding error, offer
11004 the suggestion to use `--latex-engine=xelatex`.
11006 * Produce automatic header identifiers in parsing textile, RST,
11007 and LaTeX, unless `auto_identifiers` extension is disabled (#967).
11009 * `Text.Pandoc.SelfContained`: Strip off fragment, query of relative URL
11010 before treating as a filename. This fixes `--self-contained` when used
11011 with CSS files that include web fonts using the method described here:
11012 <http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/>
11013 (#739). Handle `src` in `embed`, `audio`, `source`, `input` tags.
11015 * `Text.Pandoc.Parsing`: `uri` parser no longer treats punctuation before
11016 percent-encoding, or a `+` character, as final punctuation.
11018 * `Text.Pandoc.ImageSize`: Handle EPS (#903). This change will make
11019 EPS images properly sized on conversion to Word.
11021 * Slidy: Use slidy.js rather than slidy.js.gz.
11022 Reason: some browsers have trouble with the gzipped js file,
11023 at least on the local file system (#795).
11025 * Markdown reader
11027 + Properly handle blank line at beginning of input (#882).
11028 + Fixed bug in unmatched reference links. The input
11029 `[*infile*] [*outfile*]` was getting improperly parsed:
11030 "infile" was emphasized, but "*outfile*" was literal (#883).
11031 + Allow internal `+` in citation identifiers (#856).
11032 + Allow `.` or `)` after `#` in ATX headers if no `fancy_lists`.
11033 + Do not generate blank title, author, or date metadata elements.
11034 Leave these out entirely if they aren't present.
11035 + Allow backtick code blocks not to be preceded by blank line (#975).
11037 * Textile reader:
11039 + Correctly handle entities.
11040 + Improved handling of `<pre>` blocks (#927). Remove internal HTML tags
11041 in code blocks, rather than printing them verbatim. Parse attributes
11042 on `<pre>` tag for code blocks.
11044 * HTML reader: Handle non-simple tables (#893). Column widths are read from
11045 `col` tags if present, otherwise divided equally.
11047 * LaTeX reader
11049 + Support alltt environment (#892).
11050 + Support `\textasciitilde`, `\textasciicircum` (#810).
11051 + Treat `\textsl` as emphasized text reader (#850).
11052 + Skip positional options after `\begin{figure}`.
11053 + Support `\v{}` for hacek (#926).
11054 + Don't add spurious ", " to citation suffixes.
11055 This is added when needed in pandoc-citeproc.
11056 + Allow spaces in alignment spec in tables, e.g. `{ l r c }`.
11057 + Improved support for accented characters (thanks to Scott Morrison).
11058 + Parse label after section command and set id (#951).
11060 * RST reader:
11062 + Don't insert paragraphs where docutils doesn't.
11063 `rst2html` doesn't add `<p>` tags to list items (even when they are
11064 separated by blank lines) unless there are multiple paragraphs in the
11065 list. This commit changes the RST reader to conform more closely to
11066 what docutils does (#880).
11067 + Improved metadata. Treat initial field list as metadata when
11068 standalone specified. Previously ALL fields "title", "author",
11069 "date" in field lists were treated as metadata, even if not at
11070 the beginning. Use `subtitle` metadata field for subtitle.
11071 + Fixed 'authors' metadata parsing in reST. Semicolons separate
11072 different authors.
11074 * MediaWiki reader
11076 + Allow space before table rows.
11077 + Fixed regression for `<ref>URL</ref>`.
11078 `<` is no longer allowed in URLs, according to the uri parser
11079 in `Text.Pandoc.Parsing`. Added a test case.
11080 + Correctly handle indented preformatted text without preceding
11081 or following blank line.
11082 + Fixed `|` links inside table cells. Improved attribute parsing.
11083 + Skip attributes on table rows. Previously we just crashed if
11084 rows had attributes, now we ignore them.
11085 + Ignore attributes on headers.
11086 + Allow `Image:` for images (#971).
11087 + Parse an image with caption in a paragraph by itself as a figure.
11089 * LaTeX writer
11091 + Don't use ligatures in escaping inline code.
11092 + Fixed footnote numbers in LaTeX/PDF tables. This fixes a bug
11093 wherein notes were numbered incorrectly in tables (#827).
11094 + Always create labels for sections. Previously the labels were only
11095 created when there were links to the section in the document (#871).
11096 + Stop escaping `|` in LaTeX math.
11097 This caused problems with array environments (#891).
11098 + Change `\` to `/` in paths. `/` works even on Windows in LaTeX.
11099 `\` will cause major problems if unescaped.
11100 + Write id for code block to label attribute in LaTeX when listings
11101 is used (thanks to Florian Eitel).
11102 + Scale LaTeX tables so they don't exceed columnwidth.
11103 + Avoid problem with footnotes in unnumbered headers (#940).
11105 * Beamer writer: when creating beamer slides, add `allowframebreaks` option
11106 to the slide if it is one of the header classes. It is recommended
11107 that your bibliography slide have this attribute:
11109 # References {.allowframebreaks}
11111 This causes multiple slides to be created if necessary, depending
11112 on the length of the bibliography.
11114 * ConTeXt writer: Properly handle tables without captions. The old output
11115 only worked in MkII. This should work in MkIV as well (#837).
11117 * MediaWiki writer: Use native mediawiki tables instead of HTML (#720).
11119 * HTML writer:
11121 + Fixed `--no-highlight` (Alexander Kondratskiy).
11122 + Don't convert to lowercase in email obfuscation (#839).
11123 + Ensure proper escaping in `<title>` and `<meta>` fields.
11125 * AsciiDoc writer:
11127 + Support `--atx-headers` (Max Rydahl Andersen).
11128 + Don't print empty identifier blocks `([[]])` on headers (Max
11129 Rydahl Andersen).
11131 * ODT writer:
11133 + Fixing wrong numbered-list indentation in open document format
11134 (Alexander Kondratskiy) (#369).
11135 + `reference.odt`: Added pandoc as "generator" in `meta.xml`.
11136 + Minor changes for ODF 1.2 conformance (#939). We leave the
11137 nonconforming `contextual-spacing` attribute, which is provided by
11138 LibreOffice itself and seems well supported.
11140 * Docx writer:
11142 + Fixed rendering of display math in lists.
11143 In 1.11 and 1.11.1, display math in lists rendered as a new list
11144 item. Now it always appears centered, just as outside of lists,
11145 and in proper display math style, no matter how far indented the
11146 containing list item is (#784).
11147 + Use `w:br` with `w:type` `textWrapping` for linebreaks.
11148 Previously we used `w:cr` (#873).
11149 + Use Compact style for Plain block elements, to
11150 differentiate between tight and loose lists (#775).
11151 + Ignore most components of `reference.docx`.
11152 We take the `word/styles.xml`, `docProps/app.xml`,
11153 `word/theme/theme1.xml`, and `word/fontTable.xml` from
11154 `reference.docx`, ignoring everything else. This should help
11155 with the corruption problems caused when different versions of
11156 Word resave the reference.docx and reorganize things.
11157 + Made `--no-highlight` work properly.
11159 * EPUB writer
11161 + Don't add `dc:creator` tags if present in EPUB metadata.
11162 + Add `id="toc-title"` to `h1` in `nav.xhtml` (#799).
11163 + Don't put blank title page in reading sequence.
11164 Set `linear="no"` if no title block. Addresses #797.
11165 + Download webtex images and include as data URLs.
11166 This allows you to use `--webtex` in creating EPUBs.
11167 Math with `--webtex` is automatically made self-contained.
11168 + In `data/epub.css`, removed highlighting styles (which
11169 are no longer needed, since styles are added by the HTML
11170 writer according to `--highlighting-style`). Simplified
11171 margin fields.
11172 + If resource not found, skip it, as in Docx writer (#916).
11174 * RTF writer:
11176 + Properly handle characters above the 0000-FFFF range.
11177 Uses surrogate pairs. Thanks to Hiromi Ishii for the patch.
11178 + Fixed regression with RTF table of contents.
11179 + Only autolink absolute URIs. This fixes a regression, #830.
11181 * Markdown writer:
11183 + Only autolink absolute URIs. This fixes a regression, #830.
11184 + Don't wrap attributes in fenced code blocks.
11185 + Write full metadata in MMD style title blocks.
11186 + Put multiple authors on separate lines in pandoc titleblock.
11187 Also, don't wrap long author entries, as new lines get treated
11188 as new authors.
11190 * `Text.Pandoc.Templates`:
11192 + Fixed bug retrieving default template for markdown variants.
11193 + Templates can now contain "record lookups" in variables;
11194 for example, `author.institution` will retrieve the `institution`
11195 field of the `author` variable.
11196 + More consistent behavior of `$for$`. When `foo` is not a list,
11197 `$for(foo)$...$endfor$` should behave like $if(foo)$...$endif$.
11198 So if `foo` resolves to "", no output should be produced.
11199 See pandoc-templates#39.
11201 * Citation processing improvements (now part of pandoc-citeproc):
11203 + Fixed `endWithPunct` The new version correctly sees a sentence
11204 ending in '.)' as ending with punctuation. This fixes a bug which
11205 led such sentences to receive an extra period at the end: '.).'.
11206 Thanks to Steve Petersen for reporting.
11207 + Don't interfere with Notes that aren't citation notes.
11208 This fixes a bug in which notes not generated from citations were
11209 being altered (e.g. first letter capitalized) (#898).
11210 + Only capitalize footnote citations when they have a prefix.
11211 + Changes in suffix parsing. A suffix beginning with a digit gets 'p'
11212 inserted before it before passing to citeproc-hs, so that bare numbers
11213 are treated as page numbers by default. A suffix not beginning with
11214 punctuation has a space added at the beginning (rather than a comma and
11215 space, as was done before for not-author-in-text citations).
11216 The result is that `\citep[23]{item1}` in LaTeX will be interpreted
11217 properly, with '23' treated as a locator of type 'page'.
11218 + Many improvements to citation rendering, due to fixes in citeproc-hs
11219 (thanks to Andrea Rossato).
11220 + Warnings are issued for undefined citations, which are rendered
11221 as `???`.
11222 + Fixed hanging behavior when locale files cannot be found.
11224 [template changes]
11226 * DocBook: Use DocBook 4.5 doctype.
11228 * Org: '#+TITLE:' is inserted before the title.
11229 Previously the writer did this.
11231 * LaTeX: Changes to make mathfont work with xelatex.
11232 We need the mathspec library, not just fontspec, for this.
11233 We also need to set options for setmathfont (#734).
11235 * LaTeX: Use `tex-ansi` mapping for `monofont`.
11236 This ensures that straight quotes appear as straight, rather than
11237 being treated as curly. See #889.
11239 * Made `\includegraphics` more flexible in LaTeX template.
11240 Now it can be used with options, if needed. Thanks to Bernhard Weichel.
11242 * LaTeX/Beamer: Added `classoption` variable.
11243 This is intended for class options like `oneside`; it may
11244 be repeated with different options. (Thanks to Oliver Matthews.)
11246 * Beamer: Added `fonttheme` variable. (Thanks to Luis Osa.)
11248 * LaTeX: Added `biblio-style` variable (#920).
11250 * DZSlides: title attribute on title section.
11252 * HTML5: add meta tag to allow scaling by user (Erik Evenson)
11254 [under-the-hood improvements]
11256 * Markdown reader:Improved strong/emph parsing, using the strategy of
11257 <https://github.com/jgm/Markdown>. The new parsing algorithm requires
11258 no backtracking, and no keeping track of nesting levels. It will give
11259 different results in some edge cases, but these should not affect normal
11260 uses.
11262 * Added `Text.Pandoc.Compat.Monoid`.
11263 This allows pandoc to compile with `base` < 4.5, where `Data.Monoid`
11264 doesn't export `<>`. Thanks to Dirk Ullirch for the patch.
11266 * Added `Text.Pandoc.Compat.TagSoupEntity`.
11267 This allows pandoc to compile with `tagsoup` 0.13.x.
11268 Thanks to Dirk Ullrich for the patch.
11270 * Most of `Text.Pandoc.Readers.TeXMath` has been moved to the
11271 `texmath` module (0.6.4). (This allows `pandoc-citeproc` to
11272 handle simple math in bibliography fields.)
11274 * Added `Text.Pandoc.Writers.Shared` for shared functions used
11275 only in writers. `metaToJSON` is used in writers to create a
11276 JSON object for use in the templates from the pandoc metadata
11277 and variables. `getField`, `setField`, and `defField` are
11278 for working with JSON template contexts.
11280 * Added `Text.Pandoc.Asciify` utility module.
11281 This exports functions to create ASCII-only versions of identifiers.
11283 * `Text.Pandoc.Parsing`
11285 + Generalized state type on `readWith` (API change).
11286 + Specialize readWith to `String` input. (API change).
11287 + In `ParserState`, replace `stateTitle`, `stateAuthors`, `stateDate`
11288 with `stateMeta` and `stateMeta'`.
11290 * `Text.Pandoc.UTF8`: use strict bytestrings in reading. The use of lazy
11291 bytestrings seemed to cause problems using pandoc on 64-bit Windows
11292 7/8 (#874).
11294 * Factored out `registerHeader` from markdown reader, added to
11295 `Text.Pandoc.Parsing`.
11297 * Removed `blaze_html_0_5` flag, require `blaze-html` >= 0.5.
11298 Reason: < 0.5 does not provide a monoid instance for Attribute,
11299 which is now needed by the HTML writer (#803).
11301 * Added `http-conduit` flag, which allows fetching https resources.
11302 It also brings in a large number of dependencies (`http-conduit`
11303 and its dependencies), which is why for now it is an optional flag
11304 (#820).
11306 * Added CONTRIBUTING.md.
11308 * Improved INSTALL instructions.
11310 * `make-windows-installer.bat`: Removed explicit paths for executables.
11312 * `aeson` is now used instead of `json` for JSON.
11314 * Set default stack size to 16M. This is needed for some large
11315 conversions, esp. if pandoc is compiled with 64-bit ghc.
11317 * Various small documentation improvements.
11318 Thanks to achalddave and drothlis for patches.
11320 * Removed comment that chokes recent versions of CPP (#933).
11322 * Removed support for GHC version < 7.2, since pandoc-types now
11323 requires at least GHC 7.2 for GHC generics.
11326pandoc (1.11.1)
11328 * Markdown reader:
11330 + Fixed regression in which parentheses were lost in link URLs.
11331 Added tests. Closes #786.
11332 + Better handling of unmatched double quotes in `--smart` mode.
11333 These occur frequently in fiction, since it is customary not to
11334 close quotes in dialogue if the speaker does not change between
11335 paragraphs. The unmatched quotes now get turned into literal
11336 left double quotes. (No `Quoted` inline is generated, however.)
11337 Closes #99 (again).
11339 * HTML writer: Fixed numbering mismatch between TOC and sections.
11340 `--number-offset` now affects TOC numbering as well
11341 as section numbering, as it should have all along. Closes #789.
11343 * Markdown writer: Reverted 1.11 change that caused citations to be rendered
11344 as markdown citations, even if `--bibliography` was specified, unless
11345 `citation` extension is disabled. Now, formatted citations are always
11346 printed if `--bibliography` was specified. If you want to reformat
11347 markdown keeping pandoc markdown citations intact, don't use
11348 `--bibliography`. Note that citations parsed from LaTeX documents will
11349 be rendered as pandoc markdown citations when `--bibliography` is not
11350 specified.
11352 * ODT writer: Fixed regression leading to corrupt ODTs.
11353 This was due to a change in the `Show` instance for
11354 `Text.Pandoc.Pretty.Doc`. Closes #780.
11356 * Fixed spacing bugs involving code block attributes in
11357 RST reader and Markdown writer. Closes #763.
11359 * Windows package: Various improvements due to Fyodor Sheremetyev.
11361 + Automatically set installation path (Program Files or Local App Data).
11362 + Set system PATH environment variable when installing for all users.
11363 + Pandoc can installed for all users using the following command.
11364 `msiexec /i pandoc-1.11.msi ALLUSERS=1`.
11366 * Bumped QuickCheck version bound.
11368pandoc (1.11)
11370 * Added `--number-offset` option. (See README for description.)
11372 * Added `--default-image-extension` option. (See README for description.)
11374 * `--number-sections` behavior change: headers with class `unnumbered`
11375 will not be numbered.
11377 * `--version` now reports the default data directory.
11379 * `Text.Pandoc.Parsing` is no longer exposed. (API change.)
11381 * `Text.Pandoc.Highlighting` is no longer exposed. (API change.)
11383 * `Text.Pandoc.Shared`: Changed type of `Element`. `Sec` now includes
11384 a field for `Attr` rather than just `String`. (API change.)
11386 * Added `markdown_github` as input format. This was an accidental
11387 omission in 1.10.
11389 * Added `readerDefaultImageExtension` field to `ReaderOptions`. (API
11390 change.)
11392 * Added `writerNumberOffset` field in `WriterOptions`. (API change.)
11394 * Beamer template:
11396 + Fixed captions with longtable. Thanks to Joost Kremers.
11397 + Provide `\Oldincludegraphics` as in LaTeX template (Benjamin Bannier).
11399 * LaTeX template:
11401 + Load microtype after fonts. Microtype needs to know
11402 what fonts are being used. Thanks to dfc for the patch.
11403 + Set `secnumdepth` to 5 if `--number-sections` specified.
11404 This yields behavior equivalent to the other writers, numbering
11405 level 4 and 5 headers too. Closes #753.
11407 * HTML reader:
11409 + Handle `<colgroup>` tag.
11410 + Preserve all header attributes.
11412 * LaTeX reader:
11414 + Parse `\hrule` as `HorizontalRule`. Closes #746.
11415 + Parse starred variants of `\section` etc. as headers with
11416 attribute `unnumbered`.
11417 + Read optional attributes in `lstlisting` and `Verbatim` environments.
11418 We convert these to pandoc standard names, e.g. `numberLines`
11419 for `numbers=left`, `startFrom=100` from `firstnumber=100`.
11420 + Handle language attribute for lstlistings.
11421 + Better support for Verbatim and minted environments. Closes #763.
11423 * Markdown reader:
11425 + `-` in an attribute context = `.unnumbered`. The point of this
11426 is to provide a way to specify unnumbered headers in non-English
11427 documents.
11428 + Fixed bug parsing key/value attributes. Parsing failed if you
11429 had an unquoted attribute immediately before the final '}'.
11430 + Make backslash escape work in attributes.
11431 + Fix title block parsing. Now if `mmd_title_blocks` is specified,
11432 pandoc will parse a MMD title block if it sees one, even if
11433 `pandoc_title_blocks` is enabled.
11434 + Refactoring: `litChar` now includes entities, so we don't need
11435 to use `fromEntities` e.g. on titles.
11436 + Allow spaces around borders in pipe tables. Closes #772.
11437 + Allow all punctuation in angle-bracket autolinks. Previously
11438 things like `----` were disallowed, because the uri parser
11439 treated them as trailing punctuation. Closes #768.
11440 + Make `implicit_header_references` work properly when
11441 headers are given explicit identifiers.
11442 + Check for tables before line blocks. Otherwise some pipe
11443 tables get treated as line blocks.
11444 + Allow `&` in emails (for entities).
11445 + Properly handle entities in titles and links. A markdown link
11446 `<http://g&ouml;ogle.com>` should be a link to `http://göogle.com`.
11447 Closes #723.
11449 * Textile reader:
11451 + Handle attributes on headers.
11453 * LaTeX reader:
11455 + Add `fig:` as title for images with captions.
11456 This is needed for them to be rendered as figures. Closes #766.
11457 + Never emit an empty paragraph. See #761.
11458 + Handle `\caption` for images in figures. Closes #766.
11459 + Parse `\section*`, etc. as unnumbered sections.
11461 * HTML writer:
11463 + Support header attributes. The attributes go on
11464 the enclosing `section` or `div` tag if `--section-divs` is specified.
11465 + Fixed a regression (only now noticed) in html+lhs output.
11466 Previously the bird tracks were being omitted.
11468 * LaTeX writer:
11470 + Omit lists with no items to avoid LaTeX errors.
11471 + Support line numbering with `--listings`.
11472 If `numberLines` class is present, we add `numbers=left`;
11473 if `startFrom` is present, we add `firstnumber=`. (#763)
11475 * ConTeXt writer:
11477 + Removed `\placecontent`. This produced a duplicate toc,
11478 in conjunction with `\placelist`.
11479 + Use `\title`, `\subject` etc. for headers with
11480 `unnumbered` class.
11482 * Textile writer:
11484 + Support header attributes.
11486 * Markdown writer:
11488 + Use grid tables when needed, and if enabled. Closes #740.
11489 + Render citations as pandoc-markdown citations.
11490 Previously citations were rendered as citeproc-formatted citations
11491 by default. Now we render them as pandoc citations, e.g. `[@item1]`,
11492 unless the `citations` extension is disabled.
11493 If you still want formatted citations in your markdown output,
11494 use `pandoc -t markdown-citations`.
11496 * RST writer:
11498 + Support `:number-lines:` in code blocks.
11500 * Docx writer:
11502 + Better treatment of display math. Display math inside a
11503 paragraph is now put in a separate paragraph, so it will render
11504 properly (centered and without extra blank lines around it).
11505 Partially addresses #742.
11506 + Content types and document rels xml files are now created from
11507 scratch, rather than being taken over from `reference.docx`.
11508 This fixes problems that arise when you edit the `reference.docx`
11509 with Word.
11510 + We also now encode mime types for each individual image rather
11511 than using defaults. This should allow us to handle a wider
11512 range of image types (including PDF). Closes #414.
11513 + Changed style names in `reference docx`.
11514 `FootnoteReference` -> `FootnoteRef`, `Hyperlink` -> `Link`.
11515 The old names got changed by Word when the `reference.docx` was
11516 edited. Closes #414.
11518 * EPUB writer:
11520 + Fix section numbering. Previously the numbering restarted from 1
11521 in each chapter (with `--number-sections`), though the numbers in
11522 the table of contents were correct.
11523 + Headers with "unnumbered" attribute are not numbered. (Nor do they
11524 cause an increment in running numbering.) Section numbers now work
11525 properly, even when there is material before the first numbered section.
11526 + Include HTML TOC, even in epub2. The TOC is included in `<spine>`,
11527 but `linear` is set to `no` unless the `--toc` option is specified.
11528 Include `<guide>` element in OPF. This should allow the TOC to
11529 be usable in Kindles when converted with kindlegen. Closes #773.
11531 * `Text.Pandoc.Parsing`: Optimized `oneOfStringsCI`.
11532 This dramatically reduces the speed penalty that comes from enabling the
11533 `autolink_bare_uris` extension. The penalty is still substantial (in one
11534 test, from 0.33s to 0.44s), but nowhere near what it used to be.
11535 The RST reader is also much faster now, as it autodetects URIs.
11537 * `Text.Pandoc.Shared`: `hierarchicalize` will not number section
11538 with class "unnumbered". Unnumbered sections get `[]` for their
11539 section number.
11541 * `Text.Pandoc.Pretty`:
11543 + Fixed `chomp` so it works inside `Prefixed` elements.
11544 + Changed `Show` instance so it is better for debugging.
11546 * `Text.Pandoc.ImageSize`: Added `Pdf` to `ImageType`.
11548 * `Text.Pandoc.UTF8`: Strip off BOM if present. Closes #743.
11550 * Windows installer improvements:
11552 + The installer is now signed with a certificate (thanks to
11553 Fyodor Sheremetyev).
11554 + WiX is used instead of InnoSetup. The installer is now a
11555 standard msi file.
11556 + The version number is now auto-detected, and need not be
11557 updated separately.
11559 * OSX installer improvements:
11561 + The package and pandoc executable are now signed with a
11562 certificate (thanks to Fyodor Sheremetyev).
11563 + RTF version of license is used.
11564 + Use full path for sysctl in `InstallationCheck` script (jonahbull).
11565 Closes #580.
11567 * Converted COPYING to markdown.
11569 * pandoc.cabal: Require latest versions of highlighting-kate,
11570 texmath, citeproc-hs, zip-archive.
11572pandoc (1.10.1)
11574 * Markdown reader: various optimizations, leading to a
11575 significant performance boost.
11577 * RST reader: Allow anonymous form of inline links:
11578 `` `hello <url>`__ `` Closes #724.
11580 * Mediawiki reader: Don't require newlines after tables.
11581 Thanks to jrunningen for the patch. Closes #733.
11583 * Fixed LaTeX macro parsing. Now LaTeX macro definitions are preserved
11584 when output is LaTeX, and applied when it is another format.
11585 Partially addresses #730.
11587 * Markdown and RST readers: Added parser to `block` that skips blank
11588 lines. This fixes a subtle regression involving grid tables with
11589 empty cells. Also added test for grid table with empty cells.
11590 Closes #732.
11592 * RST writer: Use `.. code:: language` for code blocks with language.
11593 Closes #721.
11595 * DocBook writer: Fixed output for hard line breaks, adding a newline
11596 between `<literallayout>` tags.
11598 * Markdown writer: Use an autolink when link text matches url.
11599 Previously we also checked for a null title, but this
11600 test fails for links produced by citeproc-hs in bibliographies.
11601 So, if the link has a title, it will be lost on conversion
11602 to an autolink, but that seems okay.
11604 * Markdown writer: Set title, author, date variables as before.
11605 These are no longer used in the default template, since we use
11606 titleblock, but we set them anyway for those who use custom templates.
11608 * LaTeX writer: Avoid extra space at start/end of table cell.
11609 Thanks to Nick Bart for the suggestion of using @{}.
11611 * `Text.Pandoc.Parsing`:
11613 + More efficient version of `anyLine`.
11614 + Type of `macro` has changed; the parser now returns `Blocks`
11615 instead of `Block`.
11617 * Relaxed old-time version bound, allowing 1.0.*.
11619 * Removed obsolete `hsmarkdown` script. Those who need `hsmarkdown`
11620 should create a symlink as described in the README.
11622pandoc (1.10.0.5)
11624 * Markdown reader: Try `lhsCodeBlock` before `rawTeXBlock`. Otherwise
11625 `\begin{code}...\end{code}` isn't handled properly in markdown+lhs.
11626 Thanks to Daniel Miot for noticing the bug and suggesting the fix.
11628 * Markdown reader: Fixed bug with headerless grid tables.
11629 The 1.10 code assumed that each table header cell contains exactly one
11630 block. That failed for headerless tables (0) and also for tables with
11631 multiple blocks in a header cell. The code is fixed and tests provided.
11632 Thanks to Andrew Lee for pointing out the bug.
11634 * Markdown reader: Fixed regressions in fenced code blocks. Closes #722.
11636 + Tilde code fences can again take a bare language string
11637 (`~~~ haskell`), not just curly-bracketed attributes
11638 (`~~~ {.haskell}`).
11639 + Backtick code blocks can take the curly-bracketed attributes.
11640 + Backtick code blocks don't *require* a language.
11641 + Consolidated code for the two kinds of fenced code blocks.
11643 * LaTeX template: Use `\urlstyle{same}` to avoid monospace URLs.
11645 * Markdown writer: Use proportional font for email autolinks with
11646 obfuscation. Closes #714.
11648 * Corrected name of `blank_before_blockquote` in README. Closes #718.
11650 * `Text.Pandoc.Shared`: Fixed bug in `uri` parser.
11651 The bug prevented an autolink at the end of a string (e.g.
11652 at the end of a line block line) from counting as a link. Closes #711.
11654 * Use the `hsb2hs` preprocessor instead of TH for embed_data_files.
11655 This should work on Windows, unlike the TH solution with
11656 file-embed.
11658 * Eliminated use of TH in test suite.
11660 * Added `Text.Pandoc.Data` (non-exported) to hold the association
11661 list of embedded data files, if the `embed_data_files` flag is selected.
11662 This isolates the code that needs special treatment with file-embed or
11663 `hsb2hs`.
11665 * Changes to `make-windows-installer.bat`.
11667 + Exit batch file if any of the cabal-dev installs fail.
11668 + There's no longer any need to reinstall `highlighting-kate`.
11669 + Don't start with a `cabal update`; leave that to the user.
11670 + Force reinstall of pandoc.
11672 * Fixed EPUB writer so it builds with blaze-html 0.4.x. Thanks to
11673 Jens Petersen.
11675pandoc (1.10.0.4)
11677 * Fixed bug with escaped % in LaTeX reader. Closes #710.
11679pandoc (1.10.0.3)
11681 * Added further missing fb2 tests to cabal file.
11683pandoc (1.10.0.2)
11685 * Added fb2 tests to cabal file's extra-source-files.
11687pandoc (1.10.0.1)
11689 * Bump version bounds on test-framework packages.
11691pandoc (1.10)
11693 [new features]
11695 * New input formats: `mediawiki` (MediaWiki markup).
11697 * New output formats: `epub3` (EPUB v3 with MathML),
11698 `fb2` (FictionBook2 ebooks).
11700 * New `--toc-depth` option, specifying how many levels of
11701 headers to include in a table of contents.
11703 * New `--epub-chapter-level` option, specifying the header
11704 level at which to divide EPUBs into separate files.
11705 Note that this normally affects only performance, not the
11706 visual presentation of the EPUB in a reader.
11708 * Removed the `--strict` option. Instead of using `--strict`,
11709 one can now use the format name `markdown_strict` for either input
11710 or output. This gives more fine-grained control that `--strict`
11711 did, allowing one to convert from pandoc's markdown to strict
11712 markdown or vice versa.
11714 * It is now possible to enable or disable specific syntax
11715 extensions by appending them (with `+` or `-`) to the writer
11716 or reader name. For example,
11718 pandoc -f markdown-footnotes+hard_line_breaks
11720 disables footnotes and enables treating newlines as hard
11721 line breaks. The literate Haskell extensions are now implemented
11722 this way as well, using either `+lhs` or `+literate_haskell`.
11723 For a list of extension names, see the README under
11724 "Pandoc's Markdown."
11726 * The following aliases have been introduced for specific
11727 combinations of markdown extensions: `markdown_phpextra`,
11728 `markdown_github`, `markdown_mmd`, `markdown_strict`. These aliases
11729 work just like regular reader and writer names, and can be modified
11730 with extension modifiers as described above. (Note that conversion
11731 from one markdown dialect to another does not work perfectly,
11732 because there are differences in markdown parsers besides
11733 just the extensions, and because pandoc's internal document model is
11734 not rich enough to capture all of the extensions.)
11736 * New `--html-q-tags` option. The previous default was to use `<q>`
11737 tags for smart quotes in HTML5. But `<q>` tags are also valid HTML4.
11738 Moreover, they are not a robust way of typesetting quotes, since
11739 some user agents don't support them, and some CSS resets (e.g.
11740 bootstrap) prevent pandoc's quotes CSS from working properly.
11741 We now just insert literal quote characters by default in both
11742 `html` and `html5` output, but this option is provided for
11743 those who still want `<q>` tags.
11745 * The markdown reader now prints warnings (to stderr) about
11746 duplicate link and note references. Closes #375.
11748 * Markdown syntax extensions:
11750 + Added pipe tables. Thanks to François Gannaz for the initial patch.
11751 These conform to PHP Markdown Extra's pipe table syntax. A subset
11752 of org-mode table syntax is also supported, which means that you can
11753 use org-mode's nice table editor to create tables.
11755 + Added support for RST-style line blocks. These are
11756 useful for verse and addresses.
11758 + Attributes can now be specified for headers, using the same
11759 syntax as in code blocks. (However, currently only the
11760 identifier has any effect in most writers.) For example,
11762 # My header {#foo}
11764 See [the header above](#foo).
11766 + Pandoc will now act as if link references have been defined
11767 for all headers without explicit identifiers.
11768 So, you can do this:
11770 # My header
11772 Link to [My header].
11773 Another link to [it][My header].
11775 Closes #691.
11777 * LaTeX reader:
11779 + Command macros now work everywhere, including non-math.
11780 Environment macros still not supported.
11781 + `\input` now works, as well as `\include`. TEXINPUTS is used.
11782 Pandoc looks recursively into included files for more included files.
11784 [behavior changes]
11786 * The Markdown reader no longer puts the text of autolinks in a
11787 `Code` inline. This means that autolinks will no longer appear
11788 in a monospace font.
11790 * The character `/` can now appear in markdown citation keys.
11792 * HTML blocks in strict_markdown are no longer required to begin
11793 at the left margin. Technically this is required, according to
11794 the markdown syntax document, but `Markdown.pl` and other markdown
11795 processors are more liberal.
11797 * The `-V` option has been changed so that if there are duplicate
11798 variables, those specified later on the command line take precedence.
11800 * Tight lists now work in LaTeX and ConTeXt output.
11802 * The LaTeX writer no longer relien on the `enumerate` package.
11803 Instead, it uses standard LaTeX commands to change the list numbering
11804 style.
11806 * The LaTeX writer now uses `longtable` instead of `ctable`. This allows
11807 tables to be split over page boundaries.
11809 * The RST writer now uses a line block to render paragraphs containing
11810 linebreaks (which previously weren't supported at all).
11812 * The markdown writer now applies the `--id-prefix` to footnote IDs.
11813 Closes #614.
11815 * The plain writer no longer uses backslash-escaped line breaks
11816 (which are not very "plain").
11818 * `Text.Pandoc.UTF8`: Better error message for invalid UTF8.
11819 Read bytestring and use `Text`'s decodeUtf8 instead of using
11820 `System.IO.hGetContents`. This way you get a message saying
11821 "invalid UTF-8 stream" instead of "invalid byte sequence."
11822 You are also told which byte caused the problem.
11824 * Docx, ODT, and EPUB writers now download images specified by a URL
11825 instead of skipping them or raising an error.
11827 * EPUB writer:
11829 + The default CSS now left-aligns headers by default, instead of
11830 centering. This is more consistent with the rest of the writers.
11831 + A proper multi-level table of contents is now used in `toc.ncx`.
11832 There is no longer a subsidiary table of contents at the beginning
11833 of each chapter.
11834 + Code highlighting now works by default.
11835 + Section divs are used by default for better semantic markup.
11836 + The title is used instead of "Title Page" in the table of contents.
11837 Otherwise we have a hard-coded English string, which looks
11838 strange in ebooks written in other languages. Closes #572.
11840 * HTML writer:
11842 + Put mathjax in span with class "math". Closes #562.
11843 + Put citations in a span with class "citation." In HTML5, also include
11844 a `data-cite` attribute with a space-separated list of citation
11845 keys.
11847 * `Text.Pandoc.UTF8`: use universalNewlineMode in reading.
11848 This treats both `\r\n` and `\n` as `\n` on input, no matter
11849 what platform we're running on.
11851 * Citation processing is now done in the Markdown and LaTeX
11852 readers, not in `pandoc.hs`. This makes it easier for library users
11853 to use citations.
11855 [template changes]
11857 * HTML: Added css to template to preserve spaces in `<code>` tags.
11858 Thanks to Dirk Laurie.
11860 * Beamer: Remove English-centric strings in section pages.
11861 Section pages used to have "Section" and a number as well as the
11862 section title. Now they just have the title. Similarly for part
11863 and subsection. Closes #566.
11865 * LaTeX, ConTeXt: Added papersize variable.
11867 * LaTeX, Beamer templates: Use longtable instead of ctable.
11869 * LaTeX, Beamer templates: Don't require 'float' package for tables.
11870 We don't actually seem to use the '[H]' option.
11872 * LaTeX: Use `upquote` package if it is available. This fixes
11873 straight quotes in verbatim environments.
11875 * Markdown, plain: Fixed titleblock so it is just a single string.
11876 Previously separate title, author, and date variables were used,
11877 but this didn't allow different kinds of title blocks.
11879 * EPUB:
11881 + Rationalized templates. Previously there were three different
11882 templates involved in epub production. There is now just one
11883 template, `default.epub` or `default.epub3`. It can now be
11884 overridden using `--template`, just like other templates.
11885 The titlepage is now folded into the default template.
11886 A `titlepage` variable selects it.
11887 + UTF-8, lang tag, meta tags, title element.
11889 * Added scale-to-width feature to beamer template
11891 [API changes]
11893 * `Text.Pandoc.Definition`: Added `Attr` field to `Header`.
11894 Previously header identifiers were autogenerated by the writers.
11895 Now they are added in the readers (either automatically or explicitly).
11897 * `Text.Pandoc.Builder`:
11899 + `Inlines` and `Blocks` are now synonyms for `Many Inline` and
11900 `Many Block`. `Many` is a newtype wrapper around `Seq`, with
11901 custom Monoid instances for `Many Inline` and `Many Block. This
11902 allows `Many` to be made an instance of `Foldable` and `Traversable`.
11903 + The old `Listable` class has been removed.
11904 + The module now exports `isNull`, `toList`, `fromList`.
11905 + The old `Read` and `Show` instances have been removed; derived
11906 instances are now used.
11907 + Added `headerWith`.
11909 * The readers now take a `ReaderOptions` rather than a `ParserState`
11910 as a parameter. Indeed, not all parsers use the `ParserState` type;
11911 some have a custom state. The motivation for this change was to separate
11912 user-specifiable options from the accounting functions of parser state.
11914 * New module `Text.Pandoc.Options`. This includes the `WriterOptions`
11915 formerly in `Text.Pandoc.Shared`, and its associated
11916 data types. It also includes a new type `ReaderOptions`, which
11917 contains many options formerly in `ParserState`, and its associated
11918 data types:
11920 + `ParserState.stateParseRaw` -> `ReaderOptions.readerParseRaw`.
11921 + `ParserState.stateColumns` -> `ReaderOptions.readerColumns`.
11922 + `ParserState.stateTabStop` -> `ReaderOptions.readerTabStop`.
11923 + `ParserState.stateOldDashes` -> `ReaderOptions.readerOldDashes`.
11924 + `ParserState.stateLiterateHaskell` -> `ReaderOptions.readerLiterateHaskell`.
11925 + `ParserState.stateCitations` -> `ReaderOptions.readerReferences`.
11926 + `ParserState.stateApplyMacros` -> `ReaderOptions.readerApplyMacros`.
11927 + `ParserState.stateIndentedCodeClasses` ->
11928 `ReaderOptions.readerIndentedCodeClasses`.
11929 + Added `ReaderOptions.readerCitationStyle`.
11931 * `WriterOptions` now includes `writerEpubVersion`, `writerEpubChapterLevel`,
11932 `writerEpubStylesheet`, `writerEpubFonts`, `writerReferenceODT`,
11933 `writerReferenceDocx`, and `writerTOCDepth`. `writerEPUBMetadata` has
11934 been renamed `writerEpubMetadata` for consistency.
11936 * Changed signatures of `writeODT`, `writeDocx`, `writeEPUB`, since they no
11937 longer stylesheet, fonts, reference files as separate parameters.
11939 * Removed `writerLiterateHaskell` from `WriterOptions`, and
11940 `readerLiterateHaskell` from `ReaderOptions`. LHS is now handled
11941 by an extension (`Ext_literate_haskell`).
11943 * Removed deprecated `writerXeTeX`.
11945 * Removed `writerStrict` from `WriterOptions`. Added `writerExtensions`.
11946 Strict is now handled through extensions.
11948 * `Text.Pandoc.Options` exports `pandocExtensions`, `strictExtensions`,
11949 `phpMarkdownExtraExtensions`, `githubMarkdownExtensions`,
11950 and `multimarkdownExtensions`, as well as the `Extensions` type.
11952 * New `Text.Pandoc.Readers.MediaWiki` module, exporting
11953 `readMediaWiki`.
11955 * New `Text.Pandoc.Writers.FB2` module, exporting `writeFB2`
11956 (thanks to Sergey Astanin).
11958 * `Text.Pandoc`:
11960 + Added `getReader`, `getWriter` to `Text.Pandoc`.
11961 + `writers` is now an association list `(String, Writer)`.
11962 A `Writer` can be a `PureStringWriter`, an `IOStringWriter`, or
11963 an `IOByteStringWriter`. ALL writers are now in the 'writers'
11964 list, including the binary writers and FB2 writer. This allows
11965 code in `pandoc.hs` to be simplified.
11966 + Changed type of `readers`, so all readers are in IO.
11967 Users who want pure readers can still get them form the reader
11968 modules; this just affects the function `getReader` that looks up
11969 a reader based on the format name. The point of this change is to
11970 make it possible to print warnings from the parser.
11972 * `Text.Pandoc.Parsing`:
11974 + `Text.Parsec` now exports all Parsec functions used in pandoc code.
11975 No other module directly imports Parsec. This will make it easier
11976 to change the parsing backend in the future, if we want to.
11977 + `Text.Parsec` is used instead of `Text.ParserCombinators.Parsec`.
11978 + Export the type synonym `Parser`.
11979 + Export `widthsFromIndices`, `NoteTable'`, `KeyTable'`, `Key'`, `toKey'`,
11980 `withQuoteContext`, `singleQuoteStart`, `singleQuoteEnd`,
11981 `doubleQuoteStart`, `doubleQuoteEnd`, `ellipses`, `apostrophe`,
11982 `dash`, `nested`, `F(..)`, `askF`, `asksF`, `runF`, `lineBlockLines`.
11983 + `ParserState` is no longer an instance of `Show`.
11984 + Added `stateSubstitutions` and `stateWarnings` to `ParserState`.
11985 + Generalized type of `withQuoteContext`.
11986 + Added `guardEnabled`, `guardDisabled`, `getOption`.
11987 + Removed `failIfStrict`.
11988 + `lookupKeySrc` and `fromKey` are no longer exported.
11990 * `Data.Default` instances are now provided for `ReaderOptions`,
11991 `WriterOptions`, and `ParserState`. `Text.Pandoc` re-exports `def`.
11992 Now you can use `def` (which is re-exported by `Text.Pandoc`) instead
11993 of `defaultWriterOptions` (which is still defined). Closes #546.
11995 * `Text.Pandoc.Shared`:
11997 + Added `safeRead`.
11998 + Renamed `removedLeadingTrailingSpace` to `trim`,
11999 `removeLeadingSpace` to `triml`, and `removeTrailingSpace` to `trimr`.
12000 + Count `\r` as space in `trim` functions.
12001 + Moved `renderTags'` from HTML reader and `Text.Pandoc.SelfContained`
12002 to `Shared`.
12003 + Removed `failUnlessLHS`.
12004 + Export `compactify'`, formerly in Markdown reader.
12005 + Export `isTightList`.
12006 + Do not export `findDataFile`.
12007 + `readDataFile` now returns a strict ByteString.
12008 + Export `readDataFileUTF8` which returns a String, like the
12009 old `readDataFile`.
12010 + Export `fetchItem` and `openURL`.
12012 * `Text.Pandoc.ImageSize`: Use strict, not lazy bytestrings.
12013 Removed `readImageSize`.
12015 * `Text.Pandoc.UTF8`: Export `encodePath`, `decodePath`,
12016 `decodeArg`, `toString`, `fromString`, `toStringLazy`,
12017 `fromStringLazy`.
12019 * `Text.Pandoc.UTF8` is now an exposed module.
12021 * `Text.Pandoc.Biblio`:
12023 + csl parameter now a `String` rather than a `FilePath`.
12024 + Changed type of `processBiblio`. It is no longer in the IO monad.
12025 It now takes a `Maybe Style` argument rather than parameters for CSL
12026 and abbrev filenames. (`pandoc.hs` now calls the functions to parse
12027 the style file and add abbreviations.)
12029 * Markdown reader now exports `readMarkdownWithWarnings`.
12031 * `Text.Pandoc.RTF` now exports `writeRTFWithEmbeddedImages` instead of
12032 `rtfEmbedImage`.
12034 [bug fixes]
12036 * Make `--ascii` work properly with `--self-contained`. Closes #568.
12038 * Markdown reader:
12040 + Fixed link parser to avoid exponential slowdowns. Closes #620.
12041 Previously the parser would hang on input like this:
12043 [[[[[[[[[[[[[[[[[[hi
12045 We fixed this by making the link parser parser characters
12046 between balanced brackets (skipping brackets in inline code spans),
12047 then parsing the result as an inline list. One change is that
12049 [hi *there]* bud](/url)
12051 is now no longer parsed as a link. But in this respect pandoc behaved
12052 differently from most other implementations anyway, so that seems okay.
12054 + Look for raw html/latex blocks before tables.
12055 Otherwise the following gets parsed as a table:
12057 \begin{code}
12058 --------------
12059 -- My comment.
12060 \end{code}
12062 Closes #578.
12064 * RST reader:
12066 + Added support for `:target:` on `.. image::` blocks
12067 and substitutions.
12068 + Field list fixes:
12070 - Fixed field lists items with body beginning after a new line
12071 (Denis Laxalde).
12072 - Allow any char but ':' in names of field lists in RST reader
12073 (Denis Laxalde).
12074 - Don't allow line breaks in field names.
12075 - Require whitespace after field list field names.
12076 - Don't create empty definition list for metadata field lists.
12077 Previously a field list consisting only of metadata fields (author,
12078 title, date) would be parsed as an empty DefinitionList, which is
12079 not legal in LaTeX and not needed in any format.
12081 + Don't recognize inline-markup starts inside words.
12082 For example, `2*2 = 4*1` should not contain an emphasized
12083 section. Added test case for "Literal symbols". Closes #569.
12084 + Allow dashes as separator in simple tables. Closes #555.
12085 + Added support for `container`, `compound`, `epigraph`,
12086 `rubric`, `highlights`, `pull-quote`.
12087 + Added support for `.. code::`.
12088 + Made directive labels case-insensitive.
12089 + Removed requirement that directives begin at left margin.
12090 This was (correctly) not in earlier releases; docutils doesn't
12091 make the requirement.
12092 + Added support for `replace::` and `unicode::` substitutions.
12093 + Ignore unknown interpreted roles.
12094 + Renamed image parser to `subst`, since it now handles all
12095 substitution references.
12097 * Textile reader:
12099 + Allow newlines before pipes in table. Closes #654.
12100 + Fixed bug with list items containing line breaks.
12101 Now pandoc correctly handles hard line breaks inside list items.
12102 Previously they broke list parsing.
12103 + Implemented comment blocks.
12104 + Fixed bug affected words ending in hyphen.
12105 + Properly handle links with surrounding brackets.
12106 Square brackets need to be used when the link isn't surrounded by
12107 spaces or punctuation, or when the URL ending may be ambiguous.
12108 Closes #564.
12109 + Removed nullBlock. Better to know about parsing problems than
12110 to skip stuff when we get stuck.
12111 + Allow ID attributes on headers.
12112 + Textile reader: Avoid parsing dashes as strikeout.
12113 Previously the input
12115 text--
12116 text--
12117 text--
12118 text--
12120 would be parsed with strikeouts rather than dashes. This fixes
12121 the problem by requiring that a strikeout delimiting - not be
12122 followed by a -. Closes #631.
12123 + Expanded list of `stringBreakers`.
12124 This fixes a bug on input like "(_hello_)" which should
12125 be a parenthesized emphasized "hello".
12126 The new list is taken from the PHP source of textile 2.4.
12127 + Fixed autolinks. Previously the textile reader and writer
12128 incorrectly implented RST-style autolinks for URLs and email
12129 addresses. This has been fixed. Now an autolink is done this way:
12130 `"$":http://myurl.com`.
12131 + Fixed footnotes bug in textile. This affected notes occurring
12132 before punctuation, e.g. `foo[1].`. Closes #518.
12134 * LaTeX reader:
12136 + Better handling of citation commands.
12137 + Better handling of `\noindent`.
12138 + Added a 'try' in rawLaTeXBlock, so we can handle `\begin` without `{`.
12139 Closes #622.
12140 + Made `rawLaTeXInline` try to parse block commands as well. This
12141 is usually what we want, given how `rawLaTeXInline` is used in
12142 the markdown and textile readers. If a block-level LaTeX command
12143 is used in the middle of a paragraph (e.g. `\subtitle` inside a title),
12144 we can treat it as raw inline LaTeX.
12145 + Handle \slash command. Closes #605.
12146 + Basic `\enquote` support.
12147 + Fixed parsing of paragraphs beginning with a group. Closes #606.
12148 + Use curly quotes for bare straight quotes.
12149 + Support obeylines environment. Closes #604.
12150 + Guard against "begin", "end" in inlineCommand and
12151 blockCommand.
12152 + Better error messages for environments. Now it should tell you that
12153 it was looking for \end{env}, instead of giving "unknown parse error."
12155 * HTML reader:
12157 + Added HTML 5 tags to list of block-level tags.
12158 + HTML reader: Fixed bug in `htmlBalanced`, which
12159 caused hangs in parsing certain markdown input using
12160 strict mode.
12161 + Parse `<q>` as `Quoted DoubleQuote`.
12162 + Handle nested `<q>` tags properly.
12163 + Modified `htmlTag` for fewer false positives.
12164 A tag must start with `<` followed by `!`,`?`, `/`, or a letter.
12165 This makes it more useful in the wikimedia and markdown parsers.
12167 * DocBook reader: Support title in "figure" element. Closes #650.
12169 * MediaWiki writer:
12171 + Remove newline after `<br/>` in translation of `LineBreak`
12172 There's no particular need for a newline (other than making the
12173 generated MediaWiki source look nice to a human), and in fact
12174 sometimes it is incorrect: in particular, inside an enumeration, list
12175 items cannot have embedded newline characters. (Brent Yorgey)
12176 + Use `<code>` not `<tt>` for Code.
12178 * Man writer: Escape `-` as `\-`.
12179 Unescaped `-`'s become hyphens, while `\-`'s are left as ascii minus
12180 signs. That is preferable for use with command-line options. See
12181 <http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html>. Thanks
12182 to Andrea Bolognani for bringing the issue to our attention.
12184 * RST writer:
12186 + Improved line block output. Use nonbreaking spaces for
12187 initial indent (otherwise lost in HTML and LaTeX).
12188 Allow multiple paragraphs in a single line block.
12189 Allow soft breaks w continuations in line blocks.
12190 + Properly handle images with no alt text. Closes #678.
12191 + Fixed bug with links with duplicate text. We now (a) use anonymous
12192 links for links with inline URLs, and (b) use an inline link instead
12193 of a reference link if the reference link would require a label that
12194 has already been used for a different link. Closes #511.
12195 + Fixed hyperlinked images. Closes #611. Use `:target:`
12196 field when you have a simple linked image.
12197 + Don't add `:align: center` to figures.
12199 * Texinfo writer: Fixed internal cross-references.
12200 Now we insert anchors after each header, and use `@ref` instead of `@uref`
12201 for links. Commas are now escaped as `@comma{}` only when needed;
12202 previously all commas were escaped. (This change is needed, in part,
12203 because `@ref` commands must be followed by a real comma or period.) Also
12204 insert a blank line in from of `@verbatim` environments.
12206 * DocBook writer:
12208 + Made --id-prefix work in DocBook as well as HTML.
12209 Closes #607.
12210 + Don't include empty captions in figures. Closes #581.
12212 * LaTeX writer:
12214 + Use `\hspace*` for nonbreaking space after line break,
12215 since `~` spaces after a line break are just ignored.
12216 Closes #687.
12217 + Don't escape `_` in URLs or hyperref identifiers.
12218 + Properly escape strings inside \url{}. Closes #576.
12219 + Use `[fragile]` only for slides containing code rendered
12220 using listings. Closes #649.
12221 + Escape `|` as `\vert` in LaTeX math. This avoids a clash with
12222 highlighting-kate's macros, which redefine `|` as a short verbatim
12223 delimiter. Thanks to Björn Peemöller for raising this issue.
12224 + Use minipage rather than parbox for block containers in tables.
12225 This allows verbatim code to be included in grid tables.
12226 Closes #663.
12227 + Prevent paragraphs containing only linebreaks or spaces.
12229 * HTML writer:
12231 + Included `highlighting-css` for code spans, too.
12232 Previously it was only included if used in a code block. Closes #653.
12233 + Improved line breaks with `<dd>` tags. We now put a newline between
12234 `</dd>` and `<dd>` when there are multiple definitions.
12235 + Changed mathjax cdn url so it doesn't use https. (This caused
12236 problems when used with `--self-contained`.) See #609.
12238 * EPUB writer:
12240 + `--number-sections` now works properly.
12241 + Don't strip meta and link elements in epub metadata.
12242 Patch from aberrancy. Closes #589.
12243 + Fixed a couple validation bugs.
12244 + Use ch001, ch002, etc. for chapter filenames. This improves sorting
12245 of chapters in some readers, which apparently sort ch2 after ch10.
12246 Closes #610.
12248 * ODT writer: properly set title property (Arlo O'Keeffe).
12250 * Docx writer:
12252 + Fixed bug with nested lists. Previously a list like
12254 1. one
12255 - a
12256 - b
12257 2. two
12259 would come out with a bullet instead of "2."
12260 Thanks to Russell Allen for reporting the bug.
12261 + Use `w:cr` in `w:r` instead of `w:br` for linebreaks.
12262 This seems to fix a problem viewing pandoc-generated
12263 docx files in LibreOffice.
12264 + Use integer ids for bookmarks. Closes #626.
12265 + Added nsid to abstractNum elements. This helps when merging
12266 word documents with numbered or bulleted lists. Closes #627.
12267 + Use separate footnotes.xml for notes.
12268 This seems to help LibreOffice convert the file, even though
12269 it was valid docx before. Closes #637.
12270 + Use rIdNN identifiers for r:embed in images.
12271 + Avoid reading image files again when we've already processed them.
12272 + Fixed typo in `referenc.docx` that prevented image captions from
12273 working. Thanks to Huashan Chen.
12275 * `Text.Pandoc.Parsing`:
12277 + Fixed bug in `withRaw`, which didn't correctly handle the case
12278 where nothing is parsed.
12279 + Made `emailAddress` parser more correct. Now it is based on RFC 822,
12280 though it still doesn't implement quoted strings in email addresses.
12281 + Revised URI parser. It now allows many more schemes, allows
12282 uppercase URIs, and better handles trailing punctuation and
12283 trailing slashes in bare URIs. Added many tests.
12284 + Simplified and improved singleQuoteStart. This makes `'s'`, `'l'`,
12285 etc. parse properly. Formerly we had some English-centric heuristics,
12286 but they are no longer needed. Closes #698.
12288 * `Text.Pandoc.Pretty`: Added wide punctuation range to `charWidth`.
12289 This fixes bug with Chinese commas in markdown and reST tables, and
12290 a bug that caused combining characters to be dropped.
12292 * `Text.Pandoc.MIME`: Added MIME types for .wof and .eot. Closes #640.
12294 * `Text.Pandoc.Biblio`:
12296 + Run `mvPunc` and `deNote` on metadata too.
12297 This fixed a bug with notes on titles using footnote styles.
12298 + Fixed bug in fetching CSL files from CSL data directory.
12300 * `pandoc.hs`: Give correct value to `writerSourceDirectory` when a URL
12301 is provided. It should be the URL up to the path.
12303 * Fixed/simplified diff output for tests.
12304 Biblio: Make sure mvPunc and deNote run on metadata too.
12305 This fixed a bug with notes on titles using footnote styles.
12307 [under the hood improvements]
12309 * We no longer depend on `utf8-string`. Instead we use functions
12310 defined in `Text.Pandoc.UTF8` that use `Data.Text`'s conversions.
12312 * Use `safeRead` instead of using `reads` directly (various modules).
12314 * "Implicit figures" (images alone in a paragraph) are now handled
12315 differently. The markdown reader gives their titles the prefix `fig:`; the
12316 writers look for this before treating the image as a figure. Though this
12317 is a bit of a hack, it has two advantages: (i) implicit figures can be
12318 limited to the markdown reader, and (ii) they can be deactivated by turning
12319 off the `implicit_figures` extension.
12321 * `catch` from `Control.Exception` is now used instead of the
12322 old Preface `catch`.
12324 * `Text.Pandoc.Shared`: Improved algorithm for `normalizeSpaces`
12325 and `oneOfStrings` (which is now non-backtracking).
12327 * `Text.Pandoc.Biblio`: Remove workaround for `toCapital`.
12328 Now citeproc-hs is fixed upstream, so this is no longer needed.
12329 Closes #531.
12331 * Textile reader: Improved speed of `hyphenedWords`.
12332 This speeds up the textile reader by about a factor of 4.
12334 * Use `Text.Pandoc.Builder` in RST reader, for more flexibility,
12335 better performance, and automatic normalization.
12337 * Major rewrite of markdown reader:
12339 + Use `Text.Pandoc.Builder` instead of lists. This also
12340 means that everything is normalized automatically.
12341 + Move to a one-pass parsing strategy, returning values in the reader
12342 monad, which are then run (at the end of parsing) against the final
12343 parser state.
12345 * In HTML writer, we now use `toHtml` instead of pre-escaping.
12346 We work around the problem that blaze-html unnecessarily escapes `'`
12347 by pre-escaping just the `'` characters, instead of the whole string.
12348 If blaze-html later stops escaping `'` characters, we can simplify
12349 `strToHtml` to `toHtml`. Closes #629.
12351 * Moved code for embedding images in RTFs from `pandoc.hs` to the
12352 RTF writer (which now exports `writeRTFWithEmbeddedImages`).
12354 * Moved citation processing from `pandoc.hs` into the readers.
12355 This makes things more convenient for library users.
12357 * The man pages are now built by an executable `make-pandoc-man-pages`,
12358 which has its own stanza in the cabal file so that dependencies can be
12359 handled by Cabal. Special treatment in `Setup.hs` ensures that this
12360 executable never gets installed; it is only used to create the man pages.
12362 * The cabal file has been modified so that the pandoc library is used
12363 in building the pandoc executable. (This required moving `pandoc.hs`
12364 from `src` to `.`.) This cuts compile time in half.
12366 * `-O2` is no longer used in building pandoc. The performance improvement
12367 it yields is so slight that it is not worth it. (Measured with
12368 benchmarks on ghc 7.4.)
12370 * The `executable` and `library` flags have been removed.
12372 * `-threaded` has been removed from ghc-options.
12374 * Version bounds of dependencies have been raised, and the
12375 `blaze_html_0_5` flag now defaults to True. Pandoc now compiles on
12376 GHC 7.6.
12378 * We now require base >= 4.2.
12380 * Integrated the benchmark program into cabal. One can now do:
12382 cabal configure --enable-benchmarks && cabal build
12383 cabal bench --benchmark-option='markdown' --benchmark-option='-s 20'
12385 The benchmark now uses README + testsuite, so benchmark results
12386 from older versions aren't comparable.
12388 * Integrated test suite with cabal.
12389 To run tests, configure with `--enable-tests`, then `cabal test`.
12390 You can specify particular tests using `--test-options='-t markdown'`.
12391 No output is shown unless tests fail. The Haskell test modules
12392 have been moved from `src/` to `tests/`.
12394 * Moved all data files and templates to the `data/` subdirectory.
12396 * Added an `embed_data_files` cabal flag. This causes all
12397 data files to be embedded in the binary, so that the binary
12398 is self-sufficient and can be relocated anywhere, copied on
12399 a USB key, etc. The Windows installer now uses this.
12400 (Since we no longer have the option to build the executable
12401 without the library, this is the only way to get a relocatable
12402 binary on Windows.)
12404 * Removed pcre3.dll from windows package.
12405 It isn't needed unless highlighting-kate is compilled with the
12406 `pcre-light` flag. By default, regex-prce-builtin is used.
12409pandoc (1.9.4.2)
12411 * Don't encode/decode file paths if base >= 4.4.
12412 Prior to base 4.4, filepaths and command line arguments were treated
12413 as unencoded lists of bytes, not unicode strings, so we had to work
12414 around that by encoding and decoding them. This commit adds CPP
12415 checks for the base version that intelligibly enable encoding/decoding
12416 when needed. Fixes a bug with multilingual filenames when pandoc was
12417 compiled with ghc 7.4 (#540).
12419 * Don't generate an empty H1 after hrule slide breaks.
12420 We now use a slide-level header with contents `[Str "\0"]` to mark
12421 an hrule break. This avoids creation of an empty H1 in these
12422 contexts. Closes #484.
12424 * Docbook reader: Added support for "bold" emphasis. Thanks to Mauro Bieg.
12426 * In make_osx_package.sh, ensure citeproc-hs is built with the
12427 embed_data_files flag.
12429 * MediaWiki writer: Avoid extra blank lines after sublists (Gavin Beatty).
12431 * ConTeXt writer: Don't escape `&`, `^`, `<`, `>`, `_`,
12432 simplified escapes for `}` and `{` to `\{` and `\}` (Aditya Mahajan).
12434 * Fixed handling of absolute URLs in CSS imports with `--self-contained`.
12435 Closes #535.
12437 * Added webm to mime types. Closes #543.
12439 * Added some missing exports and tests to the cabal file
12440 (Alexander V Vershilov).
12442 * Compile with `-rtsopts` and `-threaded` by default.
12444pandoc (1.9.4.1)
12446 * Markdown reader: Added `cf.` and `cp.` to list of likely abbreviations.
12448 * LaTeX template: Added `linkcolor`, `urlcolor` and `links-as-notes`
12449 variables. Make TOC links black.
12451 * LaTeX template improvements.
12453 + Don't print date unless one is given explicitly in the document.
12454 + Simplified templates.
12455 + Use fontenc [T1] by default, and lmodern.
12456 + Use microtype if available.
12458 * Biblio:
12460 + Add comma to beginning of bare suffix, e.g. `@item1 [50]`.
12461 Motivation: `@item1 [50]` should be as close as possible to
12462 `[@item1, 50]`.
12463 + Added workaround for a bug in citeproc-hs 0.3.4 that causes footnotes
12464 beginning with a citation to be empty. Closes #531.
12466 * Fixed documentation on mixed lists. Closes #533.
12468pandoc (1.9.4)
12470 * Simplified `Text.Pandoc.Biblio` and fixed bugs with citations inside
12471 footnotes and captions. We now handle note citations by inserting
12472 footnotes during initial citation processing, and doing a separate
12473 pass later to remove notes inside notes.
12475 * Added 'zenburn' highlight style from highlighting-kate.
12477 * Added Slideous writer. Slideous is an HTML + javascript slide show
12478 format, similar to Slidy, but works with IE 7. (Jonas Smedegaard)
12480 * LaTeX writer:
12482 + Ensure we don't have extra blank lines at ends of cells.
12483 This can cause LaTeX errors, as they are interpreted as new paragraphs.
12484 + More consistent interblock spacing.
12485 + Require highlighting-kate >= 0.5.1, for proper highlighted inline
12486 code in LaTeX. Closes #527.
12487 + Ensure that a Verbatim at the end of a footnote is followed by
12488 a newline. (Fixes a regression in the previous version.)
12489 + In default template, use black for internal links and TOC.
12490 Added commented-out code to use footnotes for links, as would
12491 be suitable in print output.
12493 * Beamer writer: When `--incremental` is used, lists inside
12494 a block quote should appear all at once. (This makes Beamer
12495 output consistent with the HTML slide show formats.)
12497 * ConTeXt writer:
12499 + Escape `%` as `\letterpercent{}` not `\letterpercent `,
12500 to avoid gobbling spaces after the `%` sign.
12501 + Ensure space after `\stopformula`.
12503 * Markdown writer:
12505 + Use `:` form instead of `~` in definition lists, for better
12506 compatibility with other markdown implementations.
12507 + Don't wrap the term, because it breaks definition lists.
12508 + Use a nonzero space to prevent false recognition
12509 of list marker in ordered lists. Closes #516.
12511 * Org writer: Add space before language name. Closes #523.
12513 * Docx writer: Simplified bullet characters so they work properly
12514 with Word 2007. Closes #520.
12516 * LaTeX reader: Support `\centerline`.
12518 * RST reader: handle figures. Closes #522.
12520 * Textile reader: fix for `<notextile>` and `==`. Closes #517.
12521 (Paul Rivier)
12523pandoc (1.9.3)
12525 * Fixed bug in `fromEntities`. The previous version would turn
12526 `hi & low you know;` into `hi &`.
12528 * HTML reader:
12530 + Don't skip nonbreaking spaces.
12531 Previously a paragraph containing just `&nbsp;` would be rendered
12532 as an empty paragraph. Thanks to Paul Vorbach for pointing out the bug.
12533 + Support `<col>` and `<caption>` in tables. Closes #486.
12535 * Markdown reader:
12537 + Don't recognize references inside delimited code blocks.
12538 + Allow list items to begin with lists.
12540 * Added basic docbook reader (John MacFarlane and Mauro Bieg).
12542 * LaTeX reader:
12544 + Handle `\bgroup`, `\egroup`, `\begingroup`, `\endgroup`.
12545 + Control sequences can't be followed by a letter.
12546 This fixes a bug where `\begingroup` was parsed as `\begin`
12547 followed by `group`.
12548 + Parse 'dimension' arguments to unknown commands. e.g. `\parindent0pt`
12549 + Make `\label` and `\ref` sensitive to `--parse-raw`.
12550 If `--parse-raw` is selected, these will be parsed as raw latex
12551 inlines, rather than bracketed text.
12552 + Don't crash on unknown block commands (like `\vspace{10pt}`)
12553 inside `\author`; just skip them. Closes #505.
12555 * Textile reader:
12557 + Implemented literal escapes with `==` and `<notextile>`. Closes #473.
12558 + Added support for LaTeX blocks and inlines (Paul Rivier).
12559 + Better conformance to RedCloth inline parsing (Paul Rivier).
12560 + Parse '+text+' as emphasized (should be underlined, but this
12561 is better than leaving literal plus characters in the output.
12563 * Docx writer: Fixed multi-paragraph list items. Previously they each
12564 got a list marker. Closes #457.
12566 * LaTeX writer:
12568 + Added `--no-tex-ligatures` option to avoid replacing
12569 quotation marks and dashes with TeX ligatures.
12570 + Use `fixltx2e` package to provide '\textsubscript'.
12571 + Improve spacing around LaTeX block environments:
12572 quote, verbatim, itemize, description, enumerate.
12573 Closes #502.
12574 + Use blue instead of pink for URL links in latex/pdf output.
12576 * ConTeXt writer: Fixed escaping of `%`.
12577 In text, `%` needs to be escaped as `\letterpercent`, not `\%`
12578 Inside URLs, `%` needs to be escaped as `\%`
12579 Thanks to jmarca and adityam for the fix. Closes #492.
12581 * Texinfo writer: Escape special characters in node titles.
12582 This fixes a problem pointed out by Joost Kremers. Pandoc used
12583 to escape an '@' in a chapter title, but not in the corresponding
12584 node title, leading to invalid texinfo.
12586 * Fixed document encoding in texinfo template.
12587 Resolves Debian Bug #667816.
12589 * Markdown writer:
12591 + Don't force delimited code blocks to be flush left.
12592 Fixes bug with delimited code blocks inside lists etc.
12593 + Escape `<` and `$`.
12595 * LaTeX writer: Use `\hyperref[ident]{text}` for internal links.
12596 Previously we used `\href{\#ident}{text}`, which didn't work on
12597 all systems. Thanks to Dirk Laurie.
12599 * RST writer: Don't wrap link references. Closes #487.
12601 * Updated to use latest versions of blaze-html, mtl.
12604pandoc (1.9.2)
12606 * LaTeX reader:
12608 + Made `lstlisting` work as a proper verbatim environment.
12609 + Fixed bug parsing LaTeX tables with one column.
12611 * LaTeX writer:
12613 + Use `{}` around `ctable` caption, so that formatting can be used.
12614 + Don't require eurosym package unless document has a €.
12616 * LaTeX template: Added variables for `geometry`, `romanfont`,
12617 `sansfont`, `mathfont`, `mainfont` so users can more easily
12618 customize fonts.
12620 * PDF writer:
12622 + Run latex engine at least two times, to ensure
12623 that PDFs will have hyperlinked bookmarks.
12624 + Added PDF metadata (title,author) in LaTeX standalone + PDF output.
12626 * Texinfo writer: retain directories in image paths. (Peter Wang)
12628 * RST writer: Better handling of inline formatting, in accord
12629 with docutils' "inline markup recognition rules" (though we don't
12630 implement the unicode rules fully). Now `hi*there*hi` gets
12631 rendered properly as `hi\ *there*\ hi`, and unnecessary
12632 `\ ` are avoided around `:math:`, `:sub:`, `:sup:`.
12634 * RST reader:
12636 + Parse `\ ` as null, not escaped space.
12637 + Allow `` :math:`...` `` even when not followed by blank
12638 or `\`. This does not implement the complex rule docutils follows,
12639 but it should be good enough for most purposes.
12640 + Add support for the rST default-role directive. (Greg Maslov)
12642 * Text.Pandoc.Parsing: Added `stateRstDefaultRole` field to `ParserState`.
12643 (Greg Maslov)
12645 * Markdown reader: Properly handle citations nested in other inline
12646 elements.
12648 * Markdown writer: don't replace empty alt in image with "image".
12650 * DZSlides: Updated template.html and styles in default template.
12651 Removed bizarre CSS for `q` in dzslides template.
12653 * Avoid repeated `id` attribute in section and header in HTML slides.
12655 * README improvements: new instructions on internal links,
12656 removed misleading note on reST math.
12658 * Build system:
12660 + Fixed Windows installer so that dzslides works.
12661 + Removed stripansi.sh.
12662 + Added .travis.yml for Travis continuous integration support..
12663 + Fixed upper bound for zlib (Sergei Trofimovich).
12664 + Fixed upper bound for test-framework.
12665 + Updated haddocks for haddock-2.10 (Sergei Trofimovich).
12667pandoc (1.9.1.2)
12669 * Added `beamer+lhs` as output format.
12671 * Don't escape `<` in `<style>` tags with `--self-contained`.
12672 This fixes a bug which prevented highlighting from working
12673 when using `--self-contained`.
12675 * PDF: run latex engine three times if `--toc` specified.
12676 This fixes page numbers in the table of contents.
12678 * Docx writer: Added TableNormal style to tables.
12680 * LaTeX math environment fixes. `aligned` is now used instead of
12681 the nonexistent `aligned*`. `multline` instead of the nonexistent
12682 `multiline`.
12684 * LaTeX writer: Use `\textasciitilde` for literal `~`.
12686 * HTML writer: Don't escape contents of EQ tags with --gladtex.
12687 This fixes a regression from 1.8.
12689 * Use `<q>` tags for Quoted items for HTML5 output.
12690 The quote style can be changed by modifying the template
12691 or including a css file. A default quote style is included.
12693 * LaTeX reader: Fixed accents (\~{a}, `\c{c}`).
12694 Correctly handle \^{}. Support "minted" as a LaTeX verbatim block.
12696 * Updated LaTeX template for better language support.
12697 Use `polyglossia` instead of `babel` with xetex.
12698 Set `lang` as documentclass option.
12699 `\setmainlanguage` will use the last of a comma-separated
12700 list of languages. Thanks to François Gannaz.
12702 * Fixed default LaTeX template so `\euro` and `€` work. The
12703 `eurosym` package is needed if you are using pdflatex.
12705 * Fixed escaping of period in man writer (thanks to Michael Thompson).
12707 * Fixed list label positions in beamer.
12709 * Set `mainlang` variable in context writer.
12710 This parallels behavior of latex writer. `mainlang` is the last
12711 of a comma-separated list of languages in lang.
12713 * EPUB language metadat: convert e.g. `en_US` from locale to `en-US`.
12715 * Changed `-V` so that you can specify a key without a value.
12716 Such keys get the value `true`.
12718 * Fixed permissions on installed man pages - thanks Magnus Therning.
12720 * Windows installer: require XP or higher. The installer is
12721 now compiled on a Windows 7 machine, which fixes a problem
12722 using citation functions on Windows 7.
12724 * OSX package: Check for 64-bit Intel CPU before installing.
12726pandoc (1.9.1.1)
12728 * Better handling of raw latex environments in markdown. Now
12730 \begin{equation}
12731 a_1
12732 \end{equation}
12734 turns into a raw latex block as expected.
12736 * Improvements to LaTeX reader:
12738 + Skip options after block commands.
12739 + Correctly handle `{\\}` in braced.
12740 + Added a needed 'try'.
12741 + Citations: add `, ` to suffix if it doesn't start with space or
12742 punctuation. Otherwise we get no space between the year and the
12743 suffix in author-date styles.
12745 * Added two needed data files for S5. This fixes a problem with
12746 `pandoc -t s5 --self-contained`. Also removed `slides.min.js`,
12747 which was no longer being used.
12749 * Fixed some minor problems in `reference.docx`:
12750 name on "Date" style, `xCs` instead of `xIs`.
12752 * Fixed a problem creating docx files using a reference docx
12753 modified using Word. The problem seems to be that Word
12754 modifies `_rels/.rels`, changing the Type of the Relationship to
12755 `docProps/core.xml`. Pandoc now changes this back to the correct
12756 value if it has been altered, fixing the problem.
12758 * Fixed html5 template so it works properly with highlighting.
12760pandoc (1.9.1)
12762 * LaTeX reader:
12764 + Fixed regression in 1.9; properly handle escaped $ in latex math.
12765 + Put LaTeX verse environments in blockquotes.
12767 * Markdown reader:
12769 + Limit nesting of strong/emph. This avoids exponential lookahead
12770 in parasitic cases, like `a**a*a**a*a**a*a**a*a**a*a**a*a**a*a**`.
12771 + Improved attributes syntax (inn code blocks/spans):
12772 (1) Attributes can contain line breaks. (2) Values in key-value
12773 attributes can be surrounded by either double or single quotes, or
12774 left unquoted if they contain no spaces.
12776 * Don't wrap headers in markdown or RST writers.
12778 * Added `stateMaxNestingLevel` to `ParserState`.
12779 We set this to 6, so you can still have `Emph` inside `Emph`,
12780 just not indefinitely.
12782 * More efficient implementation of `nowrap` in `Text.Pandoc.Pretty`.
12784 * `Text.Pandoc.PDF`: Only run latex twice if `\tableofcontents`
12785 is present.
12787 * Require highlighting-kate >= 0.5.0.2, texmath >= 0.6.0.2.
12789pandoc (1.9.0.5)
12791 * Changed cabal file so that build-depends for the test program
12792 are not required unless the tests flag is used.
12794 * LaTeX writer: insert `{}` between adjacent hyphens so they don't
12795 form ligatures (dashes) in code spans.
12797pandoc (1.9.0.4)
12799 * Raised version bound on test-framework to avoid problems
12800 compiling tests on GHC 7.4.1.
12802 * LaTeX reader: Use raw LaTeX as fallback inline text for Cites,
12803 so citations don't just disappear unless you process with
12804 citeproc. Ignore `\bibliographystyle`, `\nocite`.
12806 * Simplified tex2pdf; it will always run latex twice to
12807 resolve table of contents and hyperrefs.
12809pandoc (1.9.0.3)
12811 * Require Cabal >= 1.10.
12812 * Tweaked cabal file to meet Cabal 1.10 requirements.
12814pandoc (1.9.0.2)
12816 * Allow build with json 0.4 or 0.5. Otherwise we can't build with
12817 ghc 6.12.
12819pandoc (1.9)
12821 [new features]
12823 * Added a Microsoft Word `docx` writer. The writer includes support
12824 for highlighted code and for math (which is converted from TeX to OMML,
12825 Office's native math markup language, using texmath's new OMML module).
12826 A new option `--reference-docx` allows the user to customize the
12827 styles.
12829 * Added an `asciidoc` writer (<http://www.methods.co.nz/asciidoc/>).
12831 * Better support for slide shows:
12833 + Added a `dzslides` writer. DZSlides is a lightweight HTML5/javascript
12834 slide show format due to Paul Rouget (<http://paulrouget.com/dzslides/>).
12836 + Added a LaTeX `beamer` writer. Beamer is a LaTeX package for creating
12837 slide presentations.
12839 + New, flexible rules for dividing documents into sections and slides
12840 (see the "Structuring the slide show" in the User's Guide). These
12841 are backward-compatible with the old rules, but they allow slide
12842 shows to be organized into sections and subsections containing
12843 multiple slides.
12845 + A new `--slide-level` option allows users to override defaults
12846 and select a slide level below the first header level with content.
12848 * A new `--self-contained` option produces HTML output that does not
12849 depend on an internet connection or the presence of any external
12850 files. Linked images, CSS, and javascript is downloaded (or fetched
12851 locally) and encoded in `data:` URIs. This is useful for making portable
12852 `HTML slide shows. The --offline` option has been deprecated and is now
12853 `treated as a synonym or --self-contained`.
12855 * Support for PDF output:
12857 + Removed the old `markdown2pdf`.
12858 + `pandoc` can now create PDFs (assuming you have latex and a set of
12859 appropriate packages installed): just specify an output file with the
12860 `.pdf` extension.
12861 + A new option `--latex-engine` allows you to specify `pdflatex`,
12862 `xelatex`, or `lualatex` as the processor.
12864 * Highlighting changes:
12866 + Syntax highlighting is now a standard feature; the `highlighting`
12867 flag is no longer needed when compiling.
12868 + A new `--no-highlight` option allows highlighting to be disabled.
12869 + Highlighting now works in `docx`, `latex`, and `epub`, as well as
12870 `html`, `html5`, `dzslides`, `s5`, and `slidy`.
12871 + A new `--highlight-style` option selects between various highlighting
12872 color themes.
12874 * Internal links to sections now work in ConTeXt and LaTeX as well as HTML.
12876 * LaTeX `\include` and `\usepackage` commands are now processed,
12877 provided the files are in the working directory.
12879 * EPUB improvements:
12881 + Internal and external links now work in EPUB.
12882 + Raw HTML is allowed.
12883 + New `--epub-embed-font` option.
12884 + Customizable templates for EPUB pages offer more control over
12885 formatting: `epub-page.html`, `epub-coverimage.html`,
12886 `epub-titlepage.html`.
12888 * `--mathml` now works with DocBook.
12890 * Added support for math in RST reader and writer. Inline math uses the
12891 `` :math:`...` `` construct. Display math uses
12893 .. math:: ...
12895 or if the math is multiline,
12897 .. math::
12899 ...
12901 These constructions are now supported now by `rst2latex.py`.
12903 * GitHub syntax for fenced code blocks is supported in pandoc's
12904 markdown. You can now write
12906 ```ruby
12907 x = 2
12908 ```
12910 instead of
12912 ~~~ {.ruby}
12913 x = 2
12914 ~~~~
12916 * Easier scripting: a new `toJsonFilter` function makes it easier to
12917 write Haskell scripts to manipulate the Pandoc AST.
12919 [behavior changes]
12921 * Fixed parsing of consecutive lists in markdown.
12922 Pandoc previously behaved like Markdown.pl for consecutive
12923 lists of different styles. Thus, the following would be parsed
12924 as a single ordered list, rather than an ordered list followed
12925 by an unordered list:
12927 1. one
12928 2. two
12930 - one
12931 - two
12933 This change makes pandoc behave more sensibly, parsing this as
12934 two lists. Any change in list type (ordered/unordered) or in
12935 list number style will trigger a new list. Thus, the following
12936 will also be parsed as two lists:
12938 1. one
12939 2. two
12941 a. one
12942 b. two
12944 Since we regard this as a bug in Markdown.pl, and not something
12945 anyone would ever rely on, we do not preserve the old behavior
12946 even when `--strict` is selected.
12948 * Dashes work differently with `--smart`: `---` is always em-dash,
12949 and `--` is always en-dash. Pandoc no longer tries to guess when
12950 `-` should be en-dash. *Note:* This may change how existing documents
12951 look when processed with pandoc. A new option, `--old-dashes`,
12952 is provided for legacy documents.
12954 * The markdown writer now uses setext headers for levels 1-2.
12955 The old behavior (ATX headers for all levels) can be restored
12956 using the new `--atx-headers` option.
12958 * Links are now allowed in markdown image captions. They are also
12959 allowed in links, but will appear there as regular text. So,
12961 [link with [link](/url)](/url)
12963 will turn into
12965 <p><a href="/url">link with link</a></p>
12967 * Improved handling of citations using `citeproc-hs-0.3.4`.
12968 Added `--citation-abbreviations` option.
12970 * Citation keys can no longer end with a punctuation character.
12971 This means that `@item1.` will be parsed as a citation with key
12972 'item1', followed by a period, instead of a citation with key
12973 'item1.', as was the case previously.
12975 * In HTML output, citations are now put in a span with class `citation`.
12977 * The markdown reader now recognizes DocBook block and inline tags.
12978 It was always possible to include raw DocBook tags in a markdown
12979 document, but now pandoc will be able to distinguish block from
12980 inline tags and behave accordingly. Thus, for example,
12982 <sidebar>
12983 hello
12984 </sidebar>
12986 will not be wrapped in `<para>` tags.
12988 * The LaTeX parser has been completely rewritten; it is now much more
12989 accurate, robust, and extensible. However, there are two important
12990 changes in how it treats unknown LaTeX. (1) Previously, unknown
12991 environments became BlockQuote elements; now, they are treated
12992 as "transparent", so `\begin{unknown}xyz\end{unknown}` is the
12993 same as `xyz`. (2) Previously, arguments of unknown commands
12994 were passed through with their braces; now the braces are stripped
12995 off.
12997 * `--smart` is no longer selected automatically with `man` output.
12999 * The deprecated `--xetex` option has been removed.
13001 * The `--html5`/`-5` option has been deprecated. Use `-t html5`
13002 instead. `html5` and `html5+lhs` are now separate output formats.
13004 * Single quotes are no longer escaped in HTML output. They do not
13005 need to be escaped outside of attributes.
13007 * Pandoc will no longer transform leading newlines in code
13008 blocks to `<br/>` tags.
13010 * The ODT writer now sizes images appropriately, using the image
13011 size and DPI information embedded in the image.
13013 * `--standalone` is once again implicitly for a non-text output format
13014 (ODT, EPUB). You can again do `pandoc test.txt -o test.odt`
13015 and get a standalone ODT file.
13017 * The Docbook writer now uses `<sect1>`, `<sect2>`, etc. instead of
13018 `<section>`.
13020 * The HTML writer now uses `<del>` for strikeout.
13022 * In HTML output with `--section-divs`, the classes `section` and
13023 `level[1,2,..6]` are put on the `div` tags so they can be styled.
13024 In HTML 5 output with `--section-divs`, the classes
13025 `level[1,2,...6]` are put on `section` tags.
13027 * EPUB writer changes:
13029 + The `lang` variable now sets the language
13030 in the metadata (if it is not set, we default to the locale).
13031 + EPUB: UTF-8 is used rather than decimal entities.
13033 * Added `titleslide` class to title slide in S5 template.
13035 * In HTML, EPUB, and docx metadata, the date is normalized into
13036 YYYY-MM-DD format if possible. (This is required for validation.)
13038 * Attributes in highlighted code blocks are now preserved in HTML.
13039 The container element will have the classes, id, and key-value attributes
13040 you specified in the delimited code block. Previously these were stripped
13041 off.
13043 * The reference backlink in the HTML writer no longer has a special
13044 `footnoteBacklink` class.
13046 * The HTML template has been split into `html` and `html5` templates.
13048 * Author and date are treated more consistently in HTML templates.
13049 Authors are now `<h2>`, date `<h3>`.
13051 * URLs are hyphenated in the ConTeXt writer (B. Scott Michel).
13053 * In `Text.Pandoc.Builder`, `+++` has been replaced by `<>`.
13055 [bug fixes]
13057 * Better support for combining characters and East Asian wide characters
13058 in markdown and reST.
13060 * Better handling of single quotes with `--smart`.
13061 Previously `D'oh l'*aide*` would be parsed with left and right single
13062 quotes instead of apostrophes. This kind of error is now fixed.
13064 * Highlighting: Use `reads` instead of `read` for better error handling.
13065 Fixes crash on `startNum="abc"`.
13067 * Added blank comment after directives in rst template.
13069 * Unescape entities in citation `refId`. The `refId`s coming
13070 from citeproc contain XML numeric entities, and these don't match with the
13071 citation keys parsed by pandoc. Solution is to unescape them.
13073 * HTML reader: Fixed bug parsing tables with both thead and tbody.
13075 * Markdown reader:
13077 + Better handling of escapes in link URLs and titles.
13078 + Fixed backslash escapes in reference links.
13079 + Fixed bug in table/hrule parsing, by checking that the top
13080 line of a table is not followed by a blank line. This bug caused
13081 slowdowns on some files with hrules and tables, as pandoc tried to
13082 interpret the hrules as the tops of multiline tables.
13083 + Fixed bug in code block attribute parser. Previously the ID attribute
13084 got lost if it didn't come first. Now attributes can come in any order.
13086 * RST reader: allow footnotes followed by newline without space characters.
13088 * LaTeX reader:
13090 + Ignore empty groups {}, { }.
13091 + LaTeX reader: Handle \@.
13092 + LaTeX reader: Don't crash on commands like `\itemsep`.
13093 + LaTeX reader: Better handling of letter environments.
13095 * RST writer: Fixed bug involving empty table cells. isSimple was being
13096 calculated in a way that assumed there were no non-empty cells.
13098 * ConTeXt writer:
13100 + Made `--toc` work even without `--number-sections`.
13101 + Escape # in link URLs.
13102 + Use buffering for footnotes containing code blocks.
13103 + Changed 'descr' to 'description', fixed alignment.
13105 * LaTeX writer:
13107 + Escape euro character.
13108 + Don't escape ~ inside href{...}.
13109 + Escape # in href URLs.
13110 + Improved detection of book classes. We now check the
13111 `documentclass` variable, and if that is not set, we look through
13112 the template itself. Also, we have added the KOMA classes scrreprt
13113 and scrbook. You can now make a book using
13114 `pandoc -V documentclass:book mybook.txt -o mybook.pdf`
13115 + LHS files now set the "listings" variable, so that the definition
13116 of the `code` environment will be included in the template.
13117 + Links are colored blue by default (this can be changed by
13118 modifying `hyperref` settings in the template).
13119 + Added `lang` variable to LaTeX template.
13121 * HTML writer:
13123 + Fixed bug in HTML template with html5 and mathml.
13124 + Don't use self-closing img, br, hr tags for HTML5.
13125 + Use `<section>` for footnotes if HTML5.
13126 + Update HTML templates to use Content-Style-Type meta tag.
13127 + Use separate variables for meta-date, meta-author.
13128 This makes footnotes work in author and date fields.
13129 + Use 'vertical-align:middle' in WebTeX math for better alignment.
13131 * S5/slidy writer: Make footnotes appear on separate slide at end.
13133 * MIME: Added 'layout-cache' to getMimeType. This ensures that the
13134 META-INF/manifest.xml for ODT files will have everything it needs, so
13135 that ODT files modified by LibreOffice can be used as `--reference-odt`.
13137 * `Text.Pandoc.Templates`: Return empty string for json template.
13139 * `Text.Pandoc.Biblio`:
13141 + Expand citations recursively inside nested inlines.
13142 + Treat `\160` as space when parsing locator and suffix.
13143 This fixes a bug with "p. 33" when `--smart` is used. Previously
13144 the whole "p. 33" would be included in the suffix, with no locator.
13145 + Put whole author-in-text citation in a Cite. Previously just the
13146 date and other info went in the Cite.
13147 + Don't add comma+space to prefix if it ends in punctuation.
13149 * Updated chicago-author-date.csl. The old version did not work
13150 properly for edited volumes with no author.
13152 * EPUB writer:
13154 + Add date to EPUB titlepage and metadata.
13155 + Added TOC identifier in EPUB page template.
13156 + Don't generate superfluous file `cover-image.jpg`.
13158 [under the hood improvements]
13160 * Modified `make_osx_package.sh` to use cabal-dev.
13161 Items are no longer installed as root.
13162 Man pages are zipped and given proper permissions.
13164 * Modified windows installer generator to use cabal-dev.
13166 * Setup: Making man pages now works with cabal-dev (at least on OSX). In
13167 Setup.hs we now invoke 'runghc' in a way that points it to the correct
13168 package databases, instead of always falling back to the default user
13169 package db.
13171 * Updated to work with GHC 7.4.1.
13173 * Removed dependency on old-time.
13175 * Removed dependency on dlist.
13177 * New slidy directory for "self-contained."
13179 * TeXMath writer: Use unicode thin spaces for thin spaces.
13181 * Markdown citations: don't strip off initial space in locator.
13183 [API changes]
13185 * Removed `Apostrophe`, `EmDash`, `EnDash`, and `Ellipses`
13186 from the native `Inline` type in pandoc-types. Now we use `Str`
13187 elements with unicode.
13189 * Improvements to `Text.Pandoc.Builder`:
13191 + `Inlines` and `Blocks` are now newtypes (not synonyms for
13192 sequences).
13193 + Instances are defined for `IsString`, `Show`, `Read`, `Monoid`,
13194 and a new `Listable` class, which allows these to be manipulated
13195 to some extent like lists. Monoid append includes automatic
13196 normalization.
13197 + `+++` has been replaced by `<>` (mappend).
13199 * Use blaze-html instead of xhtml for HTML generation.
13200 This changes the type of `writeHtml`.
13202 * `Text.Pandoc.Shared`:
13204 + Added `warn` and `err`.
13205 + Removed `unescapeURI`, modified `escapeURI`.
13206 (See under [behavior changes], above.)
13208 * Changes in URI escaping: Previously the readers escaped URIs by
13209 converting unicode characters to octets and then percent encoding.
13210 Now unicode characters are left as they are, and `escapeURI` only
13211 percent-encodes space characters. This gives more readable
13212 URIs, and works well with modern user agents. URIs are no longer unescaped
13213 at all on conversion to `markdown`, `asciidoc`, `rst`, `org`.
13215 * New module `Text.Pandoc.SelfContained`.
13217 * New module `Text.Pandoc.Docx`.
13219 * New module `Text.Pandoc.PDF`.
13221 * Added `writerBeamer` to `WriterOptions`.
13223 * Added `normalizeDate` to `Text.Pandoc.Shared`.
13225 * Added `splitStringWithIndices` in `Text.Pandoc.Shared`.
13226 This is like `splitWithIndices`, but it is sensitive to distinctions
13227 between wide, combining, and regular characters.
13229 * `Text.Pandoc.Pretty`:
13231 + Added `chomp` combinator.
13232 + Added `beforeNonBreak` combinator. This allows you to include
13233 something conditionally on it being before a nonblank.
13234 Used for RST inline math.
13235 + Added `charWidth` function. All characters marked W or F in the unicode
13236 spec EastAsianWidth.txt get width 2.
13237 + Added `realLength`, based on `charWidth`. `realLength` is now
13238 used in calculating offsets.
13240 * New module `Text.Pandoc.Slides`, for common functions for breaking
13241 a document into slides.
13243 * Removed `Text.Pandoc.S5`, which is no longer needed.
13245 * Removed `Text.Pandoc.CharacterReferences`. Moved
13246 `characterReference` to `Text.Pandoc.Parsing`.
13247 `decodeCharacterReferences` is replaced by `fromEntities`
13248 in `Text.Pandoc.XML`.
13250 * Added `Text.Pandoc.ImageSize`. This is intened for use
13251 in `docx` and `odt` writers, so the size and dpi of images
13252 can be calculated.
13254 * Removed `writerAscii` in `WriterOptions`.
13256 * Added `writerHighlight` to `WriterOptions`.
13258 * Added `DZSlides` to `HTMLSlideVariant`.
13260 * `writeEPUB` has a new argument for font files to embed.
13262 * Added `stateLastStrPos` to `ParserState`. This lets us keep track
13263 of whether we're parsing the position immediately after a regular
13264 (non-space, non-symbol) string, which is useful for distinguishing
13265 apostrophes from single quote starts.
13267 * `Text.Pandoc.Parsing`:
13269 + `escaped` now returns a `Char`.
13270 + Removed `charsInBalanced'`, added a character parser as
13271 a parameter of `charsInBalanced`. This is needed for
13272 proper handling of escapes, etc.
13273 + Added `withRaw`.
13275 * Added `toEntities` to `Text.Pandoc.XML`.
13277 * `Text.Pandoc.Readers.LaTeX`:
13279 + Export `handleIncludes`.
13280 + Export `rawLaTeXBlock` instead of `rawLaTeXEnvironment'`.
13282 * Added `ToJsonFilter` class and `toJsonFilter` function to
13283 `Text.Pandoc`, deprecating the old `jsonFilter` function.
13285 * `Text.Pandoc.Highlighting`:
13287 + Removed `highlightHtml`, `defaultHighlightingCss`.
13288 + Export `formatLaTeXInline`, `formatLaTeXBlock`, and `highlight`, plus
13289 key functions from highlighting-kate.
13290 + Changed types of highlighting function. `highlight` returns a
13291 `Maybe`, not an `Either`.
13293pandoc (1.8.2.1)
13295 * Relaxed cabal consntraints for test-framework (S. Trofimovich).
13297 * Relaxed cabal constraints for pandoc-types.
13299 * Adjusted Arbitrary instance to help avoid timeouts in tests.
13301 * Added `Tests.Writers.Markdown` to cabal file.
13303pandoc (1.8.2)
13305 * Added script to produce OS X package.
13307 * Made `templates` directory a git submodule. This should make it
13308 easier for people to revise their custom templates when the default
13309 templates change.
13311 * Changed template naming scheme: `FORMAT.template` -> `default.FORMAT`.
13312 **Note:** If you have existing templates in `~/.pandoc/templates`, you
13313 must rename them to conform to the new scheme!
13315 * Fixed smart quotes bug, now handling `'...hi'` properly.
13317 * RST reader:
13319 + Partial support for labeled footnotes.
13320 + Improved accuracy of `simpleReferenceName` parser.
13322 * HTML reader:
13324 + Substitute correct unicode characters for
13325 characters in the 128..159 range, which are often found even in
13326 HTML that purports to be UTF-8.
13328 * LaTeX reader: Handle `\subtitle` command (a subtitle is added
13329 to the title, after a colon and linebreak). Closes #280.
13331 * Leaner `reference.odt`.
13333 * Added unexported module `Text.Pandoc.MIME` for use in
13334 the ODT writer.
13336 * ODT writer: Construct `manifest.xml` based on archive contents.
13337 This fixes a bug in ODTs containing images. Recent versions of
13338 LibreOffice would reject these as corrupt, because `manifest.xml`
13339 did not contain a reference to the image files.
13341 * LaTeX writer:
13343 + Make verbatim environments flush to avoid spurious
13344 blank lines. Closes #277.
13345 + Use `\texttt` and escapes insntead of `\verb!...!`, which
13346 is too fragile (doesn't work in command arguments).
13347 + Use `\enquote{}` for quotes if the template includes
13348 the `csquotes` package. This provides better support for
13349 local quoting styles. (Thanks to Andreas Wagner for the idea.)
13351 * ConTeXt writer: Make `\starttyping`/`\stoptyping` flush with
13352 margin, preventing spurious blank lines.
13354 * Slidy writer:
13356 + Use non-minimized version of `slidy.css` with `--offline`
13357 option, so users can more easily edit it.
13358 + Also fixed a bug in the CSS that prevented proper centering
13359 of title (now reported and fixed upstream).
13361 * S5 writer:
13363 + Replaced `s5/default/slides.js.{comment,packed}` with
13364 new compressed `s5/default/slides.min.js`.
13365 + Use `data:` protocol to embed S5 CSS in `<link>` tags,
13366 when `--offline` is specified. Using inline CSS didn't
13367 work with Chrome or Safari. This fixes offline
13368 S5 on those browsers.
13370 * HTML writer: Removed English title on footnote backlinks.
13371 This is incongrous in non-English documents.
13373 * Docbook writer:
13375 + Use CALS tables. (Some older docbook software does not work
13376 well with XHTML tables.) Closes #77.
13377 + Use `programlisting` tags (instead of `screen`) for code blocks.
13379 * `markdown2pdf`:
13381 + Calls latex with `-halt-on-error -interaction nonstopmode` instead
13382 of `-interaction=batchmode`, which essentially just ignored errors,
13383 leading to bad results. Better to know when something is wrong.
13384 + Fixed issues with non-UTF-8 output of `pdflatex`.
13385 + Better error reporting.
13387 * `--mathjax` now takes an optional URL argument. If it is not
13388 provided, pandoc links directly to the (secure) mathjax CDN,
13389 as now recommended (thanks to dsanson).
13391 * Deprecated `--xetex` option in `pandoc`. It is no longer needed,
13392 since the LaTeX writer now produces a file that can be processed by
13393 `latex`, `pdflatex`, `lualatex`, or `xelatex`.
13395 * Introduced `--luatex` option to `markdown2pdf`. This causes `lualatex`
13396 to be used to create the PDF.
13398 * If a template specified with `--template` is not found, look for it
13399 in `datadir`. Also, if no extension is provided, supply one based
13400 on the writer. So now you can put your `special.latex` template in
13401 `~/.pandoc/templates`, and use it from any directory via
13402 `pandoc -t latex --template special`.
13404 * Default template improvements:
13406 + HTML: Display author and date after title.
13407 + HTML: Made table of contents more customizable. The container
13408 for the TOC is now in the template, so users can insert a header
13409 or other styling. (Thanks to Bruce D'Arcus for the suggestion.)
13410 + HTML, Slidy, S5: Enclose scripts in CDATA tags.
13411 + Slidy, S5: Added `s5-url` and `slidy-url` variables, instead of
13412 hard-coding. If you want to put your slidy files in the slidy
13413 subdirectory, for example, you can do
13414 `pandoc -t slidy -V slidy-url=slidy -s`.
13415 + LaTeX: Use `\and` to separate authors in LaTeX documents (reader
13416 & writer). Closes #279.
13417 + LaTeX: Use different `hyperref` options for `xetex`, fixing
13418 problems with unicode bookmarks (thanks to CircleCode).
13419 + LaTeX: Removed `ucs` package, use `utf8` rather than `utf8x`
13420 with `inputenc`. This covers fewer characters but is more
13421 robust with other packages, and `ucs` is unmaintained. Users
13422 who need better unicode support should use xelatex or lualatex.
13424pandoc (1.8.1.2)
13426 * Added `--epub-cover-image` option.
13428 * Documented `--biblatex` and `--natbib` options.
13430 * Allow `--section-divs` with slidy output. Resolves Issue #296.
13432 * Disallow notes within notes in reST and markdown.
13433 These previously caused infinite looping and stack overflows.
13434 For example:
13436 [^1]
13438 [^1]: See [^1]
13440 Note references are allowed in reST notes, so this isn't a full
13441 implementation of reST. That can come later. For now we need to
13442 prevent the stack overflows. Partially resolves Issue #297.
13444 * EPUB writer: Allow non-plain math methods.
13446 * Forbid ()s in citation item keys. Resolves Issue #304: problems with
13447 `(@item1; @item2)` because the final paren was being parsed as part of
13448 the item key.
13450 * Changed URI parser so it doesn't include trailing punctuation.
13451 So, in RST, `http://google.com.` should be parsed as a link followed by a
13452 period. The parser is smart enough to recognize balanced parentheses, as
13453 often occur in wikipedia links: `http://foo.bar/baz_(bam)`.
13455 * Markdown+lhs reader: Require space after inverse bird tracks, so that
13456 HTML tags can be used freely at the left margin of a markdown+lhs document.
13457 Thanks to Conal Elliot for the suggestion.
13459 * Markdown reader:
13461 + Improved emph/strong parsing; fixes bug found by Perry Wagle.
13462 + Fixed bug in footnote order (reported by CircleCode).
13464 * RST reader:
13465 + Fixed bug in in field lists with multi-line items at the
13466 end of the list.
13467 + Added parentheses to RST `specialChars`, so
13468 `(http://google.com)` will be parsed as a link in parens.
13469 Resolves Issue #291.
13470 + Allow `|` followed by newline in RST line block.
13472 * LaTeX reader:
13473 + Support `\dots`.
13474 + Gobble option & space after linebreak `\\[10pt]`.
13476 * Textile reader:
13477 + Make it possible to have colons after links. (qerub)
13478 + Make it possible to have colons after links. (Christoffer Sawicki)
13480 * HTML reader:
13481 + Skip spaces after `<b>`, `<emph>`, etc.
13482 + Handle tbody, thead in simple tables. Closes #274.
13483 + Implicit `Para`s instead of `Plains` in some contexts.
13485 * OpenDocument writer: Use special `First paragraph` style for
13486 first paragraph after most non-paragraph blocks. This allows users to
13487 specify e.g. that only paragraphs after the first paragraph of a block are
13488 to be indented. Thanks to Andrea Rossato for the patch. Closes #20.
13490 * LaTeX writer: use `deVerb` on table and picture captions.
13491 Otherwise LaTeX complains about `\verb` inside command argument.
13492 Thanks to bbanier for reporting the bug.
13494 * Markdown writer: Insert HTML comment btw list and indented code block.
13495 This prevents the code block from being interpreted as part of the list.
13497 * EPUB writer: Add a meta element specify the cover.
13498 Some EPUB e-readers, such as the Nook, require a meta element inside the
13499 OPF metadata block to ensure the cover image is properly displayed.
13500 (Kelsey Hightower)
13502 * HTML writer: Use embed tag for images with non-image extensions.
13503 (e.g. PDFs). Closes #264.
13505 * LaTeX writer: Improved tables.
13507 + More space between lines, top-align cells.
13508 + Use ctable package, which allows footnotes and
13509 provides additional options.
13510 + Made cell alignments work in multiline tables.
13511 + Closes #271, #272.
13513 * Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
13514 Also do this when copying image files into EPUBs and ODTs.
13515 Closes #263.
13517 * Changed to github issue tracker.
13519 * Added failing emph/strong markdown test case due to Perry Wagle.
13521 * Slidy improvements:
13522 + Updated to use Slidy2.
13523 + Fixed bug, unclosed div tag.
13524 + Added `duration` variable in template.
13525 Setting this activates the timer.
13526 + Use 'titlepage' instead of 'cover' for title div.
13528pandoc (1.8.1.1)
13530 * `markdown2pdf`: Removed some debugging lines accidentally included
13531 in the 1.8.1 release. With those lines, the temp directory is created
13532 in the working directory, and it is not deleted. This fix restores
13533 the original behavior.
13535pandoc (1.8.1)
13537 * Added `--ascii` option. Currently supported only in HTML writer,
13538 which it causes to use numerical entities instead of UTF-8.
13540 * EPUB writer: `--toc` now works to provide a table of contents
13541 at the beginning of each chapter.
13543 * LaTeX writer: Change figure defaults to `htbp`.
13544 This prevents "too many unprocessed floats." Resolves
13545 Issue #285.
13547 * `Text.Pandoc.UTF8`: Encode filenames even when using recent
13548 base.
13550 * `markdown2pdf`: Fixed filename encoding issues. With help from Paulo
13551 Tanimoto. Resolves Issue #286.
13553 * HTML writer: Put line breaks in section divs.
13555 * `Text.Pandoc.Shared`: Make `writerSectionDivs` default to False.
13557pandoc (1.8.0.3)
13559 * Fixed Source-repository stanza in cabal file.
13561pandoc (1.8.0.2)
13563 * HTML writer:
13565 + Stringify alt text instead of converting to HTML.
13566 + Break lines after block elements, not inside tags.
13567 HTML output now closely resembles that of tidy. Resolves Issue #134.
13569 * Markdown reader: Fixed bug in footnote block parser (pointed out
13570 by Jesse Rosenthal). The problem arose when the blank line
13571 at the end of a footnote block contained indenting spaces.
13573 * Shared: Improved 'normalize' function so it normalizes Spaces too.
13574 In normal form, Space elements only occur to separate two non-Space
13575 elements. So, we never have [Space], or [, ..., Space].
13577 * Tests:
13579 + Improved Arbitrary instance.
13580 + Added timeout for test instances.
13582 * README:
13584 + Added section on four-space rule for lists. Resolves Issue #283.
13585 + Clarified optional arguments on math options.
13587 * markdown2pdf: Fixed bug with output file extensions.
13588 Previously `markdown2pdf test.txt -o test.en.pdf` would produce
13589 `test.pdf`, not `test.en.pdf`. Thanks to Paolo Tanimoto for the fix.
13591pandoc (1.8.0.1)
13593 * Revised Interact.hs so that it works with the CPP macros
13594 in the UTF8 module.
13596 * Revised Setup.hs so that we don't call MakeManPage.hs unless
13597 the man pages are out of date.
13599pandoc (1.8)
13601 [new features]
13603 * Support for citations using Andrea Rossato's `citeproc-hs` 0.3.
13604 You can now write, for example,
13606 Water is wet [see @doe99, pp. 33-35; also @smith04, ch. 1].
13608 and, when you process your document using `pandoc`, specifying
13609 a citation style using `--csl` and a bibliography using `--bibliography`,
13610 the citation will be replaced by an appropriately formatted
13611 citation, and a list of works cited will be added to the end
13612 of the document.
13614 This means that you can switch effortlessly between different citation
13615 and bibliography styles, including footnote, numerical, and author-date
13616 formats. The bibliography can be in any of the following formats: MODS,
13617 BibTeX, BibLaTeX, RIS, EndNote, EndNote XML, ISI, MEDLINE, Copac, or JSON.
13618 See the README for further details.
13620 Citations are supported in the markdown reader, using a special
13621 syntax, and in the LaTeX reader, using natbib or biblatex syntax.
13622 (Thanks to Nathan Gass for the natbib and biblatex support.)
13624 * New `textile` reader and writer. Thanks to Paul Rivier for contributing
13625 the `textile` reader, an almost complete implementation of the textile
13626 syntax used by the ruby [RedCloth library](http://redcloth.org/textile).
13627 Resolves Issue #51.
13629 * New `org` writer, for Emacs Org-mode, contributed by Puneeth Chaganti.
13631 * New `json` reader and writer, for reading and writing a JSON
13632 representation of the native Pandoc AST. These are much faster
13633 than the `native` reader and writer, and should be used for
13634 serializing Pandoc to text. To convert between the JSON representation
13635 and native Pandoc, use `encodeJSON` and `decodeJSON` from
13636 `Text.JSON.Generic`.
13638 * A new `jsonFilter` function in `Text.Pandoc` makes it easy
13639 to write scripts that transform a JSON-encoded pandoc document.
13640 For example:
13642 -- removelinks.hs - removes links from document
13643 import Text.Pandoc
13644 main = interact $ jsonFilter $ bottomUp removeLink
13645 where removeLink (Link xs _) = Emph xs
13646 removeLink x = x
13648 To use this to remove links while translating markdown to LaTeX:
13650 pandoc -t json | runghc removelinks.hs | pandoc -f json -t latex
13652 * Attributes are now allowed in inline `Code` elements, for example:
13654 In this code, `ulist ! [theclass "special"] << elts`{.haskell} is...
13656 The attribute syntax is the same as for delimited code blocks.
13657 `Code` inline has an extra argument place for attributes, just like
13658 `CodeBlock`. Inline code will be highlighted in HTML output, if pandoc
13659 is compiled with highlighting support. Resolves Issue #119.
13661 * New `RawBlock` and `RawInline` elements (replacing `RawHtml`,
13662 `HtmlInline`, and `TeX`) provide lots of flexibility in writing
13663 scripts to transform Pandoc documents. Scripts can now change
13664 how each element is rendered in each output format.
13666 * You can now define LaTeX macros in markdown documents, and pandoc
13667 will apply them to TeX math. For example,
13669 \newcommand{\plus}[2]{#1 + #2}
13670 $\plus{3}{4}$
13672 yields `3+4`. Since the macros are applied in the reader, they
13673 will work in every output format, not just LaTeX.
13675 * LaTeX macros can also be used in LaTeX documents (both in math
13676 and in non-math contexts).
13678 * A new `--mathjax` option has been added for displaying
13679 math in HTML using MathJax. Resolves issue #259.
13681 * Footnotes are now supported in the RST reader. (Note, however,
13682 that unlike docutils, pandoc ignores the numeral or symbol used in
13683 the note; footnotes are put in an auto-numbered ordered list.)
13684 Resolves Issue #258.
13686 * A new `--normalize` option causes pandoc to normalize the AST
13687 before writing the document. This means that, for example,
13688 `*hi**there*` will be rendered as `<em>hithere</em>`
13689 instead of `<em>hi</em><em>there</em>`. This is not the default,
13690 because there is a significant performance penalty.
13692 * A new `--chapters` command-line option causes headers
13693 in DocBook, LaTeX, and ConTeXt to start with "chapter" (level one).
13694 Resolves Issue #265.
13696 * In DocBook output, `<chapter>` is now used for top-level
13697 headers if the template contains `<book>`. Resolves Issue #265.
13699 * A new `--listings` option in `pandoc` and `markdown2pdf` causes
13700 the LaTeX writer to use the listings package for code blocks.
13701 (Thanks to Josef Svennigsson for the pandoc patch, and Etienne
13702 Millon for the markdown2pdf patch.)
13704 * `markdown2pdf` now supports `--data-dir`.
13706 * URLs in autolinks now have class "url" so they can be styled.
13708 * Improved prettyprinting in most formats. Lines will be wrapped
13709 more evenly and duplicate blank lines avoided.
13711 * New `--columns` command-line option sets the column width for
13712 line wrapping and relative width calculations for tables.
13714 * Made `--smart` work in HTML, RST, and Textile readers, as well
13715 as markdown.
13717 * Added `--html5` option for HTML5 output.
13719 * Added support for listings package in LaTeX reader
13720 (Puneeth Chaganti).
13722 * Added support for simple tables in the LaTeX reader.
13724 * Added support for simple tables in the HTML reader.
13726 * Significant performance improvements in many readers and writers.
13728 [API and program changes]
13730 * Moved `Text.Pandoc.Definition` from the `pandoc` package to a new
13731 auxiliary package, `pandoc-types`. This will make it possible for other
13732 programs to supply output in Pandoc format, without depending on the whole
13733 pandoc package.
13735 * Added `Attr` field to `Code`.
13737 * Removed `RawHtml`, `HtmlInline`, and `TeX` elements; added generic
13738 `RawBlock` and `RawInline`.
13740 * Moved generic functions to `Text.Pandoc.Generic`. Deprecated
13741 `processWith`, replacing it with two functions, `bottomUp` and `topDown`.
13742 Removed previously deprecated functions `processPandoc` and `queryPandoc`.
13744 * Added `Text.Pandoc.Builder`, for building `Pandoc` structures.
13746 * `Text.Pandoc` now exports association lists `readers` and `writers`.
13748 * Added `Text.Pandoc.Readers.Native`, which exports `readNative`.
13749 `readNative` can now read full pandoc documents, block lists, blocks,
13750 inline lists, or inlines. It will interpret `Str "hi"`
13751 as if it were `Pandoc (Meta [] [] []) [Plain [Str "hi"]]`.
13752 This should make testing easier.
13754 * Removed deprecated `-C/--custom-header` option.
13755 Use `--template` instead.
13757 * `--biblio-file` has been replaced by `--bibliography`.
13758 `--biblio-format` has been removed; pandoc now guesses the format
13759 from the file extension (see README).
13761 * pandoc will treat an argument as a URI only if it has an
13762 `http(s)` scheme. Previously pandoc would treat some
13763 Windows pathnames beginning with `C:/` as URIs.
13765 * The `--sanitize-html` option and the `stateSanitize` field in
13766 `ParserState` have been removed. Sanitization is better done in the
13767 resulting HTML using `xss-sanitize`, which is based on pandoc's
13768 sanitization, but improved.
13770 * pandoc now adds a newline to the end of its output in fragment
13771 mode (= not `--standalone`).
13773 * Added support for `lang` in `html` tag in the HTML template,
13774 so you can do `pandoc -s -V lang=es`, for example.
13776 * `highlightHtml` in `Text.Pandoc.Highlighting` now takes
13777 a boolean argument that selects between "inline" and
13778 "block" HTML.
13780 * `Text.Pandoc.Writers.RTF` now exports `rtfEmbedImage`.
13781 Images are embedded in RTF output when possible (png, jpeg).
13782 Resolves Issue #275.
13784 * Added `Text.Pandoc.Pretty`. This is better suited for pandoc than the
13785 `pretty` package. Changed all writers that used
13786 `Text.PrettyPrint.HughesPJ` to use `Text.Pandoc.Pretty` instead.
13788 * Rewrote `writeNative` using the new prettyprinting module. It is
13789 now much faster. The output has been made more consistent and compressed.
13790 `writeNative` is also now sensitive to writerStandalone`, and will simply
13791 `print a block list if writerStandalone` is False.
13793 * Removed `Text.Pandoc.Blocks`. `Text.Pandoc.Pretty` allows you to define
13794 blocks and concatenate them, so a separate module is no longer needed.
13796 * `Text.Pandoc.Shared`:
13798 + Added `writerColumns`, `writerChapters`, and `writerHtml5` to
13799 `WriterOptions`.
13800 + Added `normalize`.
13801 + Removed unneeded prettyprinting functions:
13802 `wrapped`, `wrapIfNeeded`, `wrappedTeX`, `wrapTeXIfNeeded`, `hang'`,
13803 `BlockWrapper`, `wrappedBlocksToDoc`.
13804 + Made `splitBy` take a test instead of an element.
13805 + Added `findDataFile`, refactored `readDataFile`.
13806 + Added `stringify`. Rewrote `inlineListToIdentifier` using `stringify`.
13807 + Fixed `inlineListToIdentifier` to treat '\160' as ' '.
13809 * `Text.Pandoc.Readers.HTML`:
13811 + Removed `rawHtmlBlock`, `anyHtmlBlockTag`, `anyHtmlInlineTag`,
13812 `anyHtmlTag`, `anyHtmlEndTag`, `htmlEndTag`, `extractTagType`,
13813 `htmlBlockElement`, `htmlComment`
13814 + Added `htmlTag`, `htmlInBalanced`, `isInlineTag`, `isBlockTag`,
13815 `isTextTag`
13817 * Moved `smartPunctuation` from `Text.Pandoc.Readers.Markdown`
13818 to `Text.Pandoc.Readers.Parsing`, and parameterized it with
13819 an inline parser.
13821 * Added `nonspaceChar` to `Text.Pandoc.Parsing`.
13823 * Ellipses are no longer allowed to contain spaces.
13824 Previously we allowed '. . .', ' . . . ', etc. This caused
13825 too many complications, and removed author's flexibility in
13826 combining ellipses with spaces and periods.
13828 * Allow linebreaks in URLs (treat as spaces). Also, a string of
13829 consecutive spaces or tabs is now parsed as a single space. If you have
13830 multiple spaces in your URL, use `%20%20`.
13832 * `Text.Pandoc.Parsing`:
13834 + Removed `refsMatch`.
13835 + Hid `Key` constructor.
13836 + Removed custom `Ord` and `Eq` instances for `Key`.
13837 + Added `toKey` and `fromKey` to convert between `Key` and `[Inline]`.
13838 + Generalized type on `readWith`.
13840 * Small change in calculation of relative widths of table columns.
13841 If the size of the header > the specified column width, use
13842 the header size as 100% for purposes of calculating
13843 relative widths of columns.
13845 * Markdown writer now uses some pandoc-specific features when `--strict`
13846 is not specified: `\` newline is used for a hard linebreak instead of
13847 two spaces then a newline. And delimited code blocks are used when
13848 there are attributes.
13850 * HTML writer: improved gladTeX output by setting ENV appropriately
13851 for display or inline math (Jonathan Daugherty).
13853 * LaTeX writer: Use `\paragraph`, `\subparagraph` for level 4,5 headers.
13855 * LaTeX reader:
13857 + `\label{foo}` and `\ref{foo}` now become `{foo}` instead of `(foo)`.
13858 + `\index{}` commands are skipped.
13860 * Added `fontsize` variable to default LaTeX template.
13861 This makes it easy to set the font size using `markdown2pdf`:
13862 `markdown2pdf -V fontsize=12pt input.txt`.
13864 * Fixed problem with strikeout in LaTeX headers when using
13865 hyperref, by adding a command to the default LaTeX template
13866 that disables `\sout` inside pdf strings. Thanks to Joost Kremers
13867 for the fix.
13869 * The `COLUMNS` environment variable no longer has any effect.
13871 [under-the-hood improvements]
13873 * Pandoc now compiles with GHC 7. (This alone leads to a
13874 significant performance improvement, 15-20%.)
13876 * Completely rewrote HTML reader using tagsoup as a lexer. The
13877 new reader is faster and more accurate. Unlike the
13878 old reader, it does not get bogged down on some input
13879 (Issues #277, 255). And it handles namespaces in tags
13880 (Issue #274).
13882 * Replaced `escapeStringAsXML` with a faster version.
13884 * Rewrote `spaceChar` and some other parsers in Text.Pandoc.Parsing
13885 for a significant performance boost.
13887 * Improved performance of all readers by rewriting parsers.
13889 * Simplified Text.Pandoc.CharacterReferences by using
13890 entity lookup functions from TagSoup.
13892 * `Text.Pandoc.UTF8` now uses the unicode-aware IO functions
13893 from `System.IO` if base >= 4.2. This gives support for
13894 windows line endings on windows.
13896 * Remove duplications in documentation by generating the
13897 pandoc man page from README, using `MakeManPage.hs`.
13899 * README now includes a full description of markdown syntax,
13900 including non-pandoc-specific parts. A new `pandoc_markdown`
13901 man page is extracted from this, so you can look up markdown
13902 syntax by doing `man pandoc_markdown`.
13904 * Completely revised test framework (with help from Nathan Gass).
13905 The new test framework is built when the `tests` Cabal flag is set. It
13906 includes the old integration tests, but also some new unit and quickcheck
13907 tests. Test output has been much improved, and you can now specify a glob
13908 pattern after `cabal test` to indicate which tests should be run;
13909 for example `cabal test citations` will run all the citation tests.
13911 * Added a shell script, `stripansi.sh`, for filtering ANSI control
13912 sequences from test output: `cabal test | ./stripansi.sh > test.log`.
13914 * Added `Interact.hs` to make it easier to use ghci while developing.
13915 `Interact.hs` loads `ghci` from the `src` directory, specifying
13916 all the options needed to load pandoc modules (including
13917 specific package dependencies, which it gets by parsing
13918 dist/setup-config).
13920 * Added `Benchmark.hs`, testing all readers + writers using criterion.
13922 * Added `stats.sh`, to make it easier to collect and archive
13923 benchmark and lines-of-code stats.
13925 * Added upper bounds to all cabal dependencies.
13927 * Include man pages in extra-source-files. This allows users to
13928 install pandoc from the tarball without needing to build the man
13929 pages.
13931 [bug fixes]
13933 * Filenames are encoded as UTF8. Resolves Issue #252.
13935 * Handle curly quotes better in `--smart` mode. Previously, curly quotes
13936 were just parsed literally, leading to problems in some output formats.
13937 Now they are parsed as `Quoted` inlines, if `--smart` is specified.
13938 Resolves Issue #270.
13940 * Text.Pandoc.Parsing: Fixed bug in grid table parser.
13941 Spaces at end of line were not being stripped properly,
13942 resulting in unintended LineBreaks.
13944 * Markdown reader:
13946 + Allow HTML comments as inline elements in markdown.
13947 So, `aaa <!-- comment --> bbb` can be a single paragraph.
13948 + Fixed superscripts with links: `^[link](/foo)^` gets
13949 recognized as a superscripted link, not an inline note followed by
13950 garbage.
13951 + Fixed regression, making markdown reference keys case-insensitive again.
13952 Resolves Issue #272.
13953 + Properly handle abbreviations (like `Mr.`) at the end of a line.
13954 + Better handling of intraword underscores, avoiding exponential
13955 slowdowns in some cases. Resolves Issue #182.
13956 + Fixed bug in alignments in tables with blank rows in the header.
13958 * RST reader:
13960 + Field lists now allow spaces in field names, and
13961 block content in field values. (Thanks to Lachlan Musicman
13962 for pointing out the bug.)
13963 + Definition list items are now always `Para` instead of
13964 `Plain`, matching behavior of `rst2xml.py`.
13965 + In image blocks, the description is parsed properly and
13966 used for the alt attribute, not also the title.
13967 + Skip blank lines at beginning of file. Resolves
13968 Debian #611328.
13970 * LaTeX reader:
13972 + Improved parsing of preamble.
13973 Previously you'd get unexpected behavior on a document that
13974 contained `\begin{document}` in, say, a verbatim block.
13975 + Allow spaces between `\begin` or `\end` and `{`.
13976 + Support `\L` and `\l`.
13977 + Skip comments inside paragraphs.
13979 * LaTeX writer:
13981 + Escape strings in `\href{..}`.
13982 + In nonsimple tables, put cells in `\parbox`.
13984 * OpenDocument writer: don't print raw TeX.
13986 * Markdown writer:
13988 + Fixed bug in `Image`. URI was getting unescaped twice!
13989 + Avoid printing extra blank lines at the end if there are
13990 no notes or references.
13992 * LaTeX and ConTeXt: Escape `[` and `]` as `{[}` and `{]}`.
13993 This avoids unwanted interpretation as an optional argument.
13995 * ConTeXt writer: Fixed problem with inline code. Previously
13996 `}` would be rendered `\type{}}`. Now we check the string for '}' and '{'.
13997 If it contains neither, use `\type{}`; otherwise use `\mono{}`
13998 with an escaped version of the string.
14000 * `:` now allowed in HTML tags. Resolves Issue #274.
14002pandoc (1.6)
14004 [ John MacFarlane ]
14006 * New EPUB and HTML Slidy writers. (Issue #122)
14008 - EPUB is a standard ebook format, used in Apple's iBooks for
14009 the iPad and iPhone, Barnes and Noble's nook reader, the Sony
14010 reader, and many other devices.
14011 - Slidy, like S5, is a system for producing HTML+javascript slide
14012 shows.
14014 * All input is assumed to be UTF-8, no matter what the locale and ghc
14015 version, and all output is UTF-8. This reverts to pre-1.5 behavior.
14016 Also, a BOM, if present, is stripped from the input.
14018 * Markdown now supports grid tables, whose cells can contain
14019 arbitrary block elements. (Issue #43)
14021 * Sequentially numbered example lists in markdown with `@` marker.
14023 * Markdown table captions can begin with a bare colon and no longer need
14024 to include the English word "table." Also, a caption can now occur
14025 either before or after the table. (Issue #227)
14027 * New command-line options:
14029 - `--epub-stylesheet` allows you to specify a CSS file that will
14030 be used to style your ebook.
14031 - `--epub-metadata` allows you to specify metadata for the ebook.
14032 - `--offline` causes the generated HTML slideshow to include all
14033 needed scripts and stylesheets.
14034 - `--webtex` causes TeX math to be converted to images using the
14035 Google Charts API (unless a different URL is specified).
14036 - `--section-divs` causes div tags to be added around each section
14037 in an HTML document. (Issue #230, 239)
14039 * Default behavior of S5 writer in standalone mode has changed:
14040 previously, it would include all needed scripts and stylesheets
14041 in the generated HTML; now, only links are included unless
14042 the `--offline` option is used.
14044 * Default behavior of HTML writer has changed. Between 1.2 and 1.5,
14045 pandoc would enclose sections in div tags with identifiers on the
14046 div tags, so that the sections can be manipulated in javascript.
14047 This caused undesirable interactions with raw HTML div tags. So,
14048 starting with 1.6, the default is to put the identifiers directly
14049 on the header tags, and not to include the divs. The `--section-divs`
14050 option selects the 1.2-1.5 behavior.
14052 * API changes:
14054 - `HTMLMathMethod`: Added `WebTeX`, removed `MimeTeX`.
14055 - `WriterOptions`: Added `writerUserDataDir`, `writerSourceDirectory`,
14056 `writerEPUBMetadata` fields. Removed `writerIncludeBefore`,
14057 `writerIncludeAfter`.
14058 - Added `headerShift` to `Text.Pandoc.Shared`.
14059 - Moved parsing code and `ParserState` from `Text.Pandoc.Shared`
14060 to a new module, `Text.Pandoc.Parsing`.
14061 - Added `stateHasChapters` to `ParserState`.
14062 - Added `HTMLSlideVariant`.
14063 - Made `KeyTable` a map instead of an association list.
14064 - Added accessors for `Meta` fields (`docTitle`, `docAuthors`,
14065 `docDate`).
14066 - `Pandoc`, `Meta`, `Inline`, and `Block` have been given `Ord`
14067 instances.
14068 - Reference keys now have a type of their own (`Key`), with its
14069 own `Ord` instance for case-insensitive comparison.
14070 - Added `Text.Pandoc.Writers.EPUB`.
14071 - Added `Text.Pandoc.UUID`.
14072 - Removed `Text.Pandoc.ODT`, added `Text.Pandoc.Writers.ODT`.
14073 Removed `saveOpenDocumentAsODT`, added `writeODT`.
14074 - Added `Text.Pandoc.Writers.Native` and `writeNative`.
14075 Removed `prettyPandoc`.
14076 - Added `Text.Pandoc.UTF8` for portable UTF8 string IO.
14077 - Removed `Text.Pandoc.Writers.S5` and the `writeS5` function.
14078 Moved `s5Includes` to a new module, `Text.Pandoc.S5`.
14079 To write S5, you now use `writeHtml` with `writerSlideVariant`
14080 set to `S5Slides` or `SlidySlides`.
14082 * Template changes. If you use custom templates, please update them,
14083 particularly if you use syntax highlighting with pandoc. The old HTML
14084 templates hardcoded highlighting CSS that will no longer work with
14085 the most recent version of highlighting-kate.
14087 - HTML template: avoid empty meta tag if no date.
14088 - HTML template: Use default highlighting CSS from highlighting-kate
14089 instead of hard-coding the CSS into the template.
14090 - HTML template: insert-before text goes before the title, and
14091 immediately after the <body> tag, as documented. (Issue #241)
14092 - Added slidy and s5 templates.
14093 - Added amssymb to preamble of latex template. (github Issue 1)
14095 * Removed excess newlines at the end of output. Note: because output
14096 will not contain an extra newline, you may need to make adjustments
14097 if you are inserting pandoc's output into a template.
14099 * In S5 and slidy, horizontal rules now cause a new slide, so you
14100 are no longer limited to one slide per section.
14102 * Improved handling of code in man writer. Inline code is now monospace,
14103 not bold, and code blocks now use .nf (no fill) and .IP (indented para).
14105 * HTML reader parses `<tt>` as Code. (Issue #247)
14107 * html+lhs output now contains bird tracks, even when compiled without
14108 highlighting support. (Issue #242)
14110 * Colons are now no longer allowed in autogenerated XML/HTML identifiers,
14111 since they have a special meaning in XML.
14113 * Code improvements in ODT writer. Remote images are now replaced with
14114 their alt text rather than a broken link.
14116 * LaTeX reader improvements:
14118 - Made latex `\section`, `\chapter` parsers more forgiving of
14119 whitespace.
14120 - Parse `\chapter{}` in latex.
14121 - Changed `rawLaTeXInline` to accept `\section`, `\begin`, etc.
14122 - Use new `rawLaTeXInline'` in LaTeX reader, and export `rawLaTeXInline`
14123 for use in markdown reader.
14124 - Fixes bug wherein `\section{foo}` was not recognized as raw TeX
14125 in markdown document.
14127 * LaTeX writer: images are automatically shrunk if they would extend
14128 beyond the page margin.
14130 * Plain, markdown, RST writers now use unicode for smart punctuation.
14132 * Man writer converts math to unicode when possible, as in other writers.
14134 * `markdown2pdf` can now recognize citeproc options.
14136 * Command-line arguments are converted to UTF-8. (Issue #234)
14138 * `Text.Pandoc.TeXMath` has been rewritten to use texmath's parser.
14139 This allows it to handle a wider range of formulas. Also, if a formula
14140 cannot be converted, it is left in raw TeX; formulas are no longer
14141 partially converted.
14143 * Unicode curly quotes are left alone when parsing smart quotes. (Issue
14144 #143)
14146 * Cabal file changes:
14148 - Removed parsec < 3 restriction.
14149 - Added 'threaded' flag for architectures where GHC lacks a threaded
14150 runtime.
14151 - Use 'threaded' only for markdown2pdf; it is not needed for pandoc.
14152 - Require highlighting-kate 0.2.7.
14154 * Use explicit imports from `Data.Generics`. Otherwise we have a
14155 conflict with the 'empty' symbol, introduced in syb >= 0.2. (Issue #237)
14157 * New data files: slidy/slidy.min.js, slidy/slidy.min.css, epub.css.
14159pandoc (1.5.1.1)
14161 [ John MacFarlane ]
14163 * Fixed uniqueIdent in Shared so that header identifiers work as
14164 advertized in the README and are are valid XHTML names.
14166pandoc (1.5.1)
14168 [ John MacFarlane ]
14170 * Fixed treatment of unicode characters in URIs.
14171 + Shared now exports escapeURI and unescapeURI. These handle
14172 UTF8 encoding and decoding as well as URI escaping/unescaping.
14173 + Shared: uri and emailAddress now return a pair of the original
14174 parsed text and the escaped URI (in the latter case, with
14175 the mailto: prefix).
14176 + HTML reader: unsanitaryURI has been modified to allow unicode
14177 high characters in a URI.
14178 + Readers: All link and image URIs are now escaped using
14179 escapeURI.
14180 + Markdown and RST writers: unescapeURI is used so that URIs
14181 in these formats are human-readable.
14183 * Setup.hs: Don't assume that the build directory is "dist".
14184 Instead, get it from localBuildInfo.
14186 * OpenDocument writer: Use a Map for stTextStyleAttr.
14187 This avoids duplicates (and invalid xml). Resolves Issue #222.
14189pandoc (1.5.0.1)
14191 [ John MacFarlane ]
14193 * HTML writer: Fixed error in math writer (with MathML option)
14194 that caused an infinite loop for unparsable MathML.
14196pandoc (1.5)
14198 [ John MacFarlane ]
14200 * Added --mathml option. When this is selected, pandoc will convert
14201 TeX math into MathML.
14202 + Added data/MathMLinHTML.js, which is included when no URL is
14203 provided for --mathml. This allows MathML to be displayed (in
14204 better browsers) as text/html.
14205 + Removed Text.Pandoc.LaTeXMathML. The module was no longer
14206 necessary; it was replaced by two lines in pandoc.hs.
14207 + Replaced LaTeXMathML.js.comment and LaTeXMathML.js.packed with a
14208 single combined file, LaTeXMathML.js.
14210 * Added --data-dir option.
14211 This specifies a user data directory. If not specified, will default
14212 to ~/.pandoc on unix or Application Data\pandoc on Windows.
14213 Files placed in the user data directory will override system default
14214 data files.
14216 * Added Maybe datadir parameter to readDataFile, saveOpenDocumentAsODT,
14217 latexMathMLScript, s5HeaderIncludes, and getDefaultTemplate. If
14218 Nothing, no user directory is searched for an override.
14220 * Added 'plain' output format. This is similar to markdown, but
14221 removes links, pictures, inline formatting, and most anything that
14222 looks even vaguely markupish. The function writePlain is exported by
14223 Text.Pandoc.Writers.Markdown, with which it shares most of its code.
14225 * Allow multi-line titles and authors in meta block.
14226 Titles may span multiple lines, provided continuation lines
14227 begin with a space character. Separate authors may be put on
14228 multiple lines, provided each line after the first begins with
14229 a space character. Each author must fit on one line. Multiple
14230 authors on a single line may still be separated by a semicolon.
14231 Based on a patch by Justin Bogner.
14233 * When given an absolute URI as parameter, pandoc will try to fetch
14234 the content via HTTP. So you can do:
14235 'pandoc -r html -w markdown http://www.fsf.org'
14236 Adds dependency on HTTP.
14238 * Made HTML reader much more forgiving.
14239 + Incorporated idea (from HXT) that an element can be closed
14240 by an open tag for another element.
14241 + Javascript is partially parsed to make sure that a <script>
14242 section is not closed by a </script> in a comment or string.
14243 + More lenient non-quoted attribute values.
14244 Now we accept anything but a space character, quote, or <>.
14245 This helps in parsing e.g. www.google.com!
14246 + Bare & signs are now parsed as a string. This is a common
14247 HTML mistake.
14248 + Skip a bare < in malformed HTML.
14250 * Removed html2markdown and hsmarkdown.
14251 + html2markdown is no longer needed, since you can now pass URI
14252 arguments to pandoc and directly convert web pages. (Note,
14253 however, that pandoc assumes the pages are UTF8. html2markdown
14254 made an attempt to guess the encoding and convert them.)
14255 + hsmarkdown is pointless -- a large executable that could be
14256 replaced by 'pandoc --strict'.
14258 * In most writers, an image in a paragraph by itself is now rendered
14259 as a figure, with the alt text as the caption. (Texinfo, HTML, RST,
14260 MediaWiki, Docbook, LaTeX, ConTeXt, HTML.) Other images are
14261 rendered inline.
14263 * Depend on extensible-exceptions. This allows pandoc to be compiled
14264 on GHC 6.8.
14266 * Added --base-header-level option. For example, --base-header-level=2
14267 will change level 1 headers to level 2, level 2 to level 3, etc.
14268 Closes Debian #563416.
14270 * Incomplete support for RST tables (simple and grid).
14271 Thanks to Eric Kow. Colspans and rowspans not yet supported.
14273 * Added accessors (docTitle, docAuthors, docDate) to Meta type.
14275 * MediaWiki writer: format links with relative URLs as wikilinks.
14276 The new rule: If the link target is an absolute URL, an external
14277 link is created. Otherwise, a wikilink is created.
14279 * Text.Pandoc.Shared: Export uniqueIdent, and don't allow tilde in
14280 identifier. Note: This may break links to sections that involve
14281 tildes.
14283 * Markdown(+lhs) reader: handle "inverse bird tracks."
14284 Inverse bird tracks (<) are used for haskell example code that is not
14285 part of the literate Haskell program. Resolves Issue #211.
14287 * LaTeX reader:
14288 + Recognize '\ ' (interword space).
14289 + Recognize nonbreaking space '~'.
14290 + Ignore \section, \pdfannot, \pdfstringdef. Ignore alt title in
14291 section headers. Don't treat \section as inline LaTeX.
14292 Resolves Issue #202.
14293 + LaTeX reader: allow any special character to be escaped.
14294 Resolves Issue #221.
14295 + LaTeX reader: treat \paragraph and \subparagraph as level 4, 5
14296 headers. Resolves Issue #207.
14298 * Use template variables for include-before/after.
14299 + These options now imply -s; previously they worked also in fragment
14300 mode.
14301 + Users can now adjust position of include-before and include-after
14302 text in the templates.
14303 + Default position of include-before moved back (as it was before 1.4)
14304 before table of contents.
14305 + Resolves Issue #217.
14307 * Don't print an empty table header: (all writers).
14308 Resolves Issue #210.
14310 * HTML, Docbook writer: Use tbody, thead, and cols in tables.
14312 * HTML writer: Don't include TOC div if table of contents is empty.
14314 * Markdown writer: Fixed citations.
14315 Previously the markdown writer printed raw citation codes, e.g.
14316 [geach1970], rather than the expanded citations provided by
14317 citeproc, e.g. (Geach 1970). Now it prints the expanded citations.
14318 This means that the document produced can be processed as a markdown
14319 document without citeproc. Thanks to dsanson for reporting, and
14320 Andrea Rossato for the patch.
14322 * Improved and simplified title block in context template.
14323 Previously it caused an error if there was no title.
14324 This method should also be easier for users to customize.
14326 * Markdown reader:
14327 + Treat p., pp., sec., ch., as abbreviations in smart mode.
14328 + Disallow blank lines in inline code span.
14329 + Allow footnotes to be indented < 4 spaces.
14330 This fixes a regression. A test case has been added.
14331 + Escape spaces in URLs as %20. Previously they were incorrectly
14332 escaped as +, which is appropriate only for the query part of
14333 a URL. Resolves Issue #220.
14334 + Require two spaces after capital letter + period for list item.
14335 Otherwise "E. coli" starts a list. This might change the semantics
14336 of some existing documents, since previously the two-space
14337 requirement was only enforced when the second word started
14338 with a capital letter. But it is consistent with the existing
14339 documentation and follows the principle of least surprise.
14340 Resolves Issue #212.
14342 * LaTeX template: redefine labelwidth when using enumerate package.
14343 Otherwise the list labels (numbers) often extend past the left
14344 margin, which looks bad.
14346 * Mediawiki writer: Don't print a "== Notes ==" header before
14347 references. This is too English-centric. Writers can provide their
14348 own header at the end of the document.
14350 * Promoted mediawiki headers. '= head =' is now level 1, '== head =='
14351 level 2, etc. This seems to be correct; it's only by convention
14352 that wikipedia articles have level 2 headers at most.
14353 Patch due to Eric Kow.
14355 * RunTests.hs: Set LANG to a UTF-8 locale. Use 'pandoc --data-dir=' so
14356 data files don't need to have been installed. This removes the need to
14357 set HOME.
14359 * HTML reader:
14360 + Handle spaces before <html>. Resolves Issue #216.
14361 + Be forgiving in parsing a bare list within a list.
14362 The following is not valid xhtml, but the intent is clear:
14363 <ol>
14364 <li>one</li>
14365 <ol><li>sub</li></ol>
14366 <li>two</li>
14367 </ol>
14368 We'll treat the <ol> as if it's in a <li>. Resolves Issue #215.
14370 * Updated INSTALL instructions. cabal method is now promoted.
14372 * Updated markdown2pdf man page. It no longer says all pandoc options
14373 are accepted.
14375 * README/man pages: Removed advice to pipe through tidy before HTML
14376 reader. This is obsolete, now that we have a forgiving HTML parser.
14378 * LaTeX writer: set numbersections template variable, so
14379 the section numbering options work again.
14381 * Removed obsolete Makefile.
14383 * Website: renamed index.txt.in -> index.txt.
14385 * New batch file to make-windows-installer.
14386 + Removed old Makefile.windows
14387 + Added make-windows-installer.bat
14388 + Modified default installer name in pandoc-setup.iss
14390 * Removed freebsd and macports directories.
14391 They are no longer up to date.
14393 * Setup.hs:
14394 + Made man page building sensitive to build verbosity.
14395 + Improved detection of highlighting support in test hook.
14396 + Install wrapper scripts into cabal bin directory.
14397 + Also simplified installManpages.
14398 + Setup.hs: install manpages to mandir. Code borrowed from darcs.
14400 * Changed default of writerXeTeX to False.
14402 * HTML writer: don't include empty UL if --toc but no sections.
14403 Resolves Issue #199.
14405 * LaTeX writer:
14407 + If book, report, or memoir documentclass, use \chapter{}
14408 for first-level headers. Otherwise use \section{}.
14409 + Removed stLink, link template variable. Reason: we now always
14410 include hyperref in the template.
14412 * LaTeX template:
14414 + Only show \author if there are some.
14415 + Always include hyperref package. It is used not just for links but
14416 for toc, section heading bookmarks, footnotes, etc. Also added
14417 unicode=true on hyperref options.
14419 * markdown2pdf: always do at least two runs. hyperref bookmarks
14420 require this.
14422 * cabal file: Removed unneeded dependency on template-haskell.
14424 * Windows installer - fixed bug in data file locations.
14425 Resolves Issue #197.
14427 * Deprecated --custom-header in documentation.
14428 Removed old "Custom Headers" section in README.
14430pandoc (1.4)
14432 [ John MacFarlane ]
14434 * Pandoc will now compile with either GHC 6.10 or 6.12.
14435 + Don't use System.IO.UTF8 when compiling with 6.12
14436 + Use -fno-warn-unused-do-bind option when compiling with 6.12
14438 * Replaced old headers with templates. Now users have much more
14439 control over the way documents appear in --standalone mode,
14440 and writer code is simplified. Resolves Issues #59, 147.
14441 Every effort has been made to retain backwards compatibility.
14442 So, the --custom-header option should still work as before.
14444 + Added Text.Pandoc.Templates. This provides functions for
14445 retrieving default templates and for rendering templates.
14446 + System templates (in the pandoc data directory) can be
14447 overridden by user templates in $HOME/.pandoc/templates.
14448 + Removed Text.Pandoc.DefaultHeaders.
14449 + Removed data/headers directory.
14450 + Added templates directory.
14451 + Added writerTemplate and writerVariables fields to WriterOptions.
14452 + Removed writerTitlePrefix, writerHeader fields from WriterOptions.
14453 + Changed --print-default-header to --print-default-template.
14454 + Added --template option.
14455 + Added -V/--variable option to set custom template variables.
14457 * Pandoc no longer requires Template Haskell. Resolves Issue #186.
14459 + Removed need for TH in ODT module. Instead get reference.odt from
14460 data file at run time.
14461 + Removed TH dependency from S5 module. S5 module now exports
14462 s5HeaderIncludes, which pandoc.hs includes if writer is s5 and
14463 standalone.
14464 + Refactored LaTeXMathML not to use TH.
14466 * Meta is now Meta [Inline] [[Inline]] [Inline] rather than
14467 Meta [Inline] [String] String. Authors and date in Meta are now lists
14468 of Inline elements rather than raw strings. This means that they can
14469 be formatted and can include footnotes. NOTE: This may be a breaking
14470 change for those using pandoc as a library.
14472 * Added readDataFile to Text.Pandoc.Shared. This retrieves
14473 a data file from the user pandoc data directory (~/.pandoc
14474 on unix), or, if not found there, from the system data
14475 directory ($CABALDIR/shared/pandoc-VERSION/). All data
14476 files, including templates, LaTeXMathML.js, s5 styles,
14477 and reference.odt, can be overridden by the user.
14479 * s5 files moved from data/ui/default to s5/default.
14481 * Use unicode instead of entities in HTML and XML output. Resolves
14482 Issue #163.
14484 * Prettier HTML footnote references: put anchor inside sup,
14485 instead of other way. Resolves Issue #191. Thanks to
14486 infinity0x.
14488 * Added --xetex option to pandoc and markdown2pdf.
14489 If --xetex is specified, pandoc produces latex suitable for
14490 processing by xelatex, and markdown2pdf uses xelatex to create
14491 the PDF. Resolves Issue #185.
14493 * RTF writer: multiple authors now occupy multiple paragraphs rather
14494 than using a line break.
14496 * Man writer: now the "--after-body" will come after the "AUTHORS"
14497 section, whereas before it would come before it. This is a
14498 slight break from backwards compatibility.
14500 * Added --reference-odt option, so users may customize the styles
14501 used in pandoc-generated ODT files. Users may also place a
14502 default reference.odt in the ~\.pandoc directory.
14504 * ODT writer:
14505 + Indented and line-broke styles.xml so it can be modified more easily.
14506 + Omitted some unnecessary style declarations.
14507 + Don't wrap text in OpenDocument writer. The tags are too long, making
14508 wrapping ugly and pointless.
14510 * LaTeX reader: use \\ to separate multiple authors.
14512 * Markdown reader: use ; as separator between authors.
14513 This allows you to use ',' within author names: e.g. "John Jones, Jr."
14515 * S5 writer: use linebreak to separate authors in title page.
14517 * RST reader: Allow :: before lhs code block. The RST spec requires the
14518 :: before verbatim blocks. This :: should not be treated as literal
14519 colons. Resolves Issue #189.
14521 * Documented pandoc 1.3's new definition list syntax in README.
14522 (An oversight in the last release.)
14524 * markdown2pdf.hs:
14525 + interpret ! in a log as an error line.
14526 + --toc now works properly.
14528 * Changes in RunTests.hs:
14529 + Use the Diff library rather than a local copy of Diff.hs.
14530 (This vastly increases performance.) This change means that 'cabal
14531 test' presupposes that the Diff library is installed.
14532 + Removed tests/Diff.hs from cabal file.
14533 + Changed RunTests to use local environment. We need at least HOME, so
14534 pandoc can find its data directory.
14536 * Updated windows installer to install data files in the app directory.
14538 * Windows installer now installs portable wrappers hsmarkdown and
14539 markdown2pdf.
14541pandoc (1.3)
14543 [ John MacFarlane ]
14545 * Added --id-prefix option (Issue #41). This adds a prefix to all
14546 automatically generated HTML identifiers, which helps prevent
14547 duplicate identifiers when you're generating a fragment (say a blog
14548 post).
14550 * Added --indented-code-classes option. This specifies classes
14551 to use for indented code blocks. (Patch due to buttock; Issue #87.)
14553 * --number-sections now affects HTML output as well as ConTeXt and LaTeX
14554 (Issue #150).
14556 * Improved syntax for markdown definition lists (Issue #24).
14557 Definition lists are now more compatible with PHP Markdown Extra.
14558 + You can have multiple definitions for a term (but still not
14559 multiple terms).
14560 + Multi-block definitions no longer need a column before each block
14561 (indeed, this will now cause multiple definitions).
14562 + The marker no longer needs to be flush with the left margin,
14563 but can be indented at or two spaces. Also, ~ as well as :
14564 can be used as the marker (this suggestion due to David
14565 Wheeler.)
14566 + There can now be a blank line between the term and the
14567 definitions.
14569 * Better looking simple tables. Resolves Issue #180.
14570 + Markdown reader: simple tables are now given column widths of 0.
14571 + Column width of 0 is interpreted as meaning: use default column width.
14572 + Writers now include explicit column width information only
14573 for multiline tables. (Exception: RTF writer, which requires
14574 column widths. In this case, columns are given equal widths,
14575 adding up to the text width.)
14576 + Simple tables should now look better in most output formats.
14578 * Allow markdown tables without headers (Issue #50).
14579 The new syntax is described in README. Also allow optional line of
14580 dashes at bottom of simple tables.
14582 * Compensate for width of final table column (Issue #144).
14584 * Treat a backslash followed by a newline as a hard line break
14585 in markdown. Resolves Issue #154. This is a nice alternative
14586 to markdown's "invisible" way of indicating hardline breaks
14587 using lines that end with two spaces.
14589 * Improved performance of markdown reader by ~10% by eliminating the
14590 need for a separate parsing pass for notes. Raw notes are now stored
14591 on the first pass (which parses references), then parsed when the
14592 note is inserted into the AST. The stateNotes field in ParserState
14593 is now a list of [(String, String)] pairs instead of [(String,
14594 [Block])].
14596 * In markdown reader, treat 4 or more * or _ in a row as literal
14597 text. (Trying to parse long strings of * or _ as strong or emph
14598 leads to exponential performance problems.)
14600 * Markdown reader: Use + rather than %20 for spaces in URLs.
14602 * Fixed htmlComment parser, adding a needed 'try'.
14604 * Don't print raw HTML in man output.
14606 * Allow . _ and ~ in header identifiers.
14608 * Specially mark code blocks that were "literate" in the input.
14609 They can then be treated differently in the writers. This allows
14610 authors to distinguish bits of the literate program they are writing
14611 from source code examples, even if the examples are marked as
14612 Haskell for highlighting. (Issue #174.)
14614 * Modified html+lhs output to use "haskell" highlighter instead
14615 of "literateHaskell". The highlighting module now adds bird tracks
14616 after highlighting (for HTML output), if the code block has the
14617 "literate" class. This gives better results, because kate's
14618 haskell highlighter is much better than the literateHaskell
14619 highlighter.
14621 * Fixed handling of footnotes in titles (HTML) and headers (LaTeX).
14622 (Issue #137.)
14624 * Support for "..code-block" directive in RST reader. Not core
14625 RST, but used in Sphinx for code blocks annotated with syntax
14626 information. Thanks to Luke Plant for the patch.
14628 * Added "head" to list of block-level HTML tags. Resolves
14629 Issue #108.
14631 * Added stripTags to Text.Pandoc.XML. This is used in the HTML writer.
14633 * Set utf-8 encoding in texinfo headers.
14635 * Docbook writer: add ids to sections. Use link for internal links.
14636 (Issue #60.)
14638 * Blank lines after lists in MediaWiki writer.
14640 * Properly handle commented-out list items in markdown.
14641 Resolves Issue #142. Example:
14643 - a
14644 <!--
14645 - b
14646 -->
14647 - c
14649 * Changed heuristic in compactify. compactify has to decide whether a
14650 Para that ends a list is a Para intentionally, or just because of
14651 the blank lines at the end of every list. In the latter case the
14652 Para is turned to a Plain. The old heuristic was: change final Para
14653 to Plain iff the other items all end in Plain. This produces bad
14654 results when, for example, an item contains just a Plain and an HTML
14655 comment, as it does in the list above. The new heuristic: change
14656 final Para to Plain iff the other items don't contain a Para.
14658 * Added % as an rst underline character. Resolves Issue #173.
14660 * Fix inline math parser so that \$ is allowed in math.
14661 Resolves Issue #169.
14663 * Translate \int (integral) into unicode when using unicode math
14664 method. Resolves Issue #177.
14666 * markdown2pdf.hs improvements:
14667 + Use System.IO.UTF8.
14668 + Print error messages on last attempt.
14669 + Do not create a backup when overwriting a PDF (Issue #166).
14670 + Accept --longopt=val options.
14671 + Added man/man1/markdown2pdf.1 to extra-tmp-files in cabal, so that
14672 it is properly cleaned.
14674 * Added haddock comments warning that readers assume \n line endings.
14676 * Updated COPYRIGHT file.
14678 * Makefile: Changed EXECSBASE so it doesn't pull in hsmarkdown &
14679 markdown2pdf. Otherwise strip tries to strip shell scripts when you
14680 install using 'make'.
14682 * Changed Makefile so it doesn't build Haskell wrappers.
14684 * Fixed Makefile so it doesn't try to build man pages in build-doc.
14686 * Install pcre3.dll in Windows install script; this allows us to
14687 package a version of pandoc with highlighting support.
14689pandoc (1.2.1)
14691 [ John MacFarlane ]
14693 * Fixed regression with --preserveTabs. Brought back optPreserveTabs.
14694 The trick of setting tabStop to 0 to mean "preserve tabs" had a bad
14695 side effect: strings of 0 spaces were interpreted as indentation.
14696 So, with --preserve-tabs, unindented paragraphs were treated as
14697 code. Resolves Issue #138.
14699 * HTML writer: wrap sections in divs. Resolves Issue #70.
14701 + hierarchicalize has been rationalized; it builds a hierarchical
14702 representation of the document from the headers, and simultaneously
14703 gives each section a unique identifier based on the heading title.
14704 + Identifiers are now attached to the divs rather than
14705 to the headers themselves.
14706 + Table of content backlinks go to the beginning of the table, rather
14707 than to the section reference that was clicked.
14708 + Code for constructing identifiers has been moved to Text.Pandoc.Shared
14709 from the HTML writer, since it is now consumed only by
14710 hierarchicalize.
14711 + In --strict mode, pandoc just prints bare headings, as before
14712 (unless --toc has been specified).
14713 + In s5 output, it does not wrap sections in divs, as that seems to
14714 confuse the s5 javascript.
14716 * Man writer: break lines at end of each sentence. groff expects this
14717 and treats '.' and '?' differently when followed by line ending as
14718 opposed to ordinary space. Also, don't escape periods. Instead, use
14719 zero-width character \& to avoid unwanted interpretation of periods
14720 at start of line. Resolves Issue #148.
14722 * Markdown writer: Added '#' and '>' to list of characters to be
14723 escaped in markdown output. Removed '<', as it is not an officially
14724 escapable character. This partially resolves Issue #96.
14726 * Make --smart the default for man output format. Otherwise we have
14727 trouble dividing lists of endlines into sentences.
14729 * DocBook writer: Use language attribute to indicate source language
14730 in code blocks.
14732 * RST reader:
14734 + Allow # to continue list, even if the list was started with an
14735 explicit marker. For example:
14737 A. my list
14738 #. continued
14740 Resolves Issue #140.
14741 + Allow continuation lines in line blocks. Also added test cases for
14742 line blocks for RST reader. Resolves Issue #149.
14743 + Allow explicit links with spaces in URL: `link <to this>`_
14745 * Improved LaTeX reader's coverage of math modes. Remove displaymath*
14746 (which is not in LaTeX) and recognize all the amsmath environments
14747 that are alternatives to eqnarray, namely equation, equation*,
14748 gather, gather*, gathered, multline, multline*, align, align*,
14749 alignat, alignat*, aligned, alignedat, split. Resolves Issue #103.
14750 Thanks to shreevatsa.public for the patch.
14752 * Markdown reader:
14754 + Allow -, _, :, . in markdown attribute names. These are legal in
14755 XML attribute names.
14756 + Use non-breaking spaces in abbreviations.
14757 + Markdown reader: improved efficiency of abbreviation parsing.
14758 Instead of a separate abbrev parser, we just check for
14759 abbreviations each time we parse a string. This gives a huge
14760 performance boost with -S. Resolves Issue #141.
14762 * Improved efficiency of shared parsers: hexNum, htmlComment,
14763 whitespace, indentSpaces.
14765 * Export HTMLMathMethod in Text.Pandoc.
14767 * Export languagesByExtension in Text.Pandoc.Highlighting.
14769 * Added new Haskell version of markdown2pdf, due to
14770 Paulo Tanimoto. This should be more portable than the old
14771 shell script.
14773 * Made 'pandoc -v' more explicit about compiler options.
14774 Resolves Issue #139.
14776 * pandoc.hs: Made --strict compatible with --standalone, --toc.
14778 * Use Paths_pandoc to get version number, instead of hard-coding it
14779 into Text/Pandoc.hs.
14781pandoc (1.2)
14783 [ John MacFarlane ]
14785 * Added support for literate Haskell. lhs support is triggered by
14786 '+lhs' suffixes in formats. For example, 'latex+lhs' is literate
14787 Haskell LaTeX. '.lhs' files are treated by default as literate
14788 markdown.
14790 + Added stateLiterateHaskell to parser state.
14791 + Added parser for lhsCodeBlock to Markdown, RST, LaTeX readers.
14792 + Added parser for |inline lhs| to LaTeX reader.
14793 + Added writerLiterateHaskell to WriterOptions.
14794 + Added lhs support to Markdown, RST, LaTeX, HTML writers.
14795 + Added definition of code environment to LaTeX header.
14796 + Added tests (run only if highlighting support compiled in).
14797 + Documented lhs features in man page and README.
14799 * In Text.Pandoc.Definition, added processWith, processWithM,
14800 and queryWith, and deprecated processPandoc and queryPandoc
14801 for these more general functions.
14803 * Fixed bug in mediawiki writer: improper closing tags in tables.
14804 Thanks to Benct Philip Jonsson for reporting the bug.
14806 * Added --email-obfuscation option.
14808 + Added writer option for email obfuscation.
14809 + Implemented email obfuscation options in HTML writer.
14810 + Added option to option parser.
14811 + Documented in README and pandoc man page.
14812 + Resolves Issue #97.
14814 * LaTeX writer: fixed bug with empty table cells.
14815 Resolves Issue #107. Thanks to rodja.trappe for the patch.
14817 * Fixed bug with header spacing in Markdown and RST writers.
14818 A null header (Meta [] [] []) should not cause a blank line
14819 at the beginning of output. But a blank line is needed between
14820 a non-null header and the main text.
14822 * Markdown reader: Relax spacing rules for $$ in display math. Now
14823 space and newlines are allowed after the opening $$ and before the
14824 closing $$. However, the display math cannot contain an entirely
14825 blank line. Resolves Issue #105.
14827 * Markdown reader: Gobble space after Plain blocks containing only
14828 raw html inline. Otherwise following header blocks are not parsed
14829 correctly, since the parser sees blank space before them. Resolves
14830 Issue #124.
14832 * Markdown reader: Allow " as well as '' to end a latex double-quote.
14834 * Conditionally depend on syb and base >= 4 if ghc >= 6.10.
14835 Resolves Issue #109.
14837 * Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
14839 + Added hang' function to Text.Pandoc.Shared; this will be used instead
14840 of hang, which doesn't work properly in pretty-1.0.1.0. When pretty
14841 is upgraded, we can go back to hang.
14842 See http://article.gmane.org/gmane.comp.lang.haskell.general/16687
14843 + Use hang' (and some different techniques) in RST and markdown writers.
14844 Some output is now a bit different.
14846 * Brought citeproc support up to date for citeproc-hs-0.2.
14847 (Patch by Andrea Rossato.)
14849 * Moved all haskell source to src subdirectory. Renamed Main.hs to
14850 pandoc.hs.
14852 * Rewrote hsmarkdown in Haskell for portability (src/hsmarkdown.hs).
14853 For now, keeping the old shell script too.
14855 * Added TemplateHaskell to Extensions for executable, removed
14856 -threaded for library. Thanks to duncan.coutts for the bug report.
14857 Resolves Issue #121.
14859 * Moved some Extra-Source-Files to Data-Files.
14861 * Moved tabFilter to Shared.
14863 * In pandoc.hs, removed optPreserveTabs; instead, tabstop of 0 means
14864 preserve tabs.
14866 * Minor code cleanup based on hlint suggestions.
14868pandoc (1.1)
14870 [ John MacFarlane ]
14872 * Main.hs:
14874 + Changed date on copyright message in Main.hs.
14875 + Have the '-v' option print syntax highlighting languages
14876 separated by commas, and wrapped in lines, instead of in five
14877 columns as before.
14879 * Added --jsmath option. Resolves Issue #68.
14881 + Added --jsmath option to Main.hs
14882 + Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
14883 + Handle math appropriately in HTML writer when JsMath selected.
14884 + Documented the option in README and man page.
14886 * Text.Pandoc.Shared: Changed compactify to use a better heuristic
14887 for tight and loose lists. Final Para is changed to Plain if all
14888 other list items *end* with a Plain block. Addresses Issue #99.
14890 * HTML reader:
14892 + Added colons to protocols in unsanitaryURI. Closes Issue #88.
14893 + HTML reader: Don't interpret contents of <pre> blocks as markdown.
14894 Added rawVerbatimBlock parser. Resolves Issue #94.
14896 * Markdown reader:
14898 + Allow URLs with spaces in them in links and references, but escape
14899 them as "%20".
14900 + Allow blank space at the end of horizontal rules.
14902 * RST reader: Modified 'unknownDirective' parser to handle comment
14903 blocks correctly, and added tests for comment blocks. Resolves Issue
14904 #86. Closes Debian Bug #500662.
14906 * HTML writer:
14908 + Include classes on tr elements in HTML output:
14909 "header", "odd", "even". This allows tables to be styled with
14910 lines in alternating colors. Resolves Issue #91.
14911 + Enclose all LaTeXMathML bits in <span class="LaTeX">.
14912 This prevents parts of the document that are not math from being
14913 interpreted as math by LaTeXMathML.js.
14915 * OpenDocument and ODT writers: Added support for HorizontalRule elements,
14916 which were formerly ignored. Resolves Issue #95.
14918 * Text.Pandoc.Shared: Modified wrappedTeX to eliminate the line break
14919 between a footnote and immediately following nonspace characters in
14920 LaTeX and ConTeXt output. (This gets interpreted as a space, which
14921 is not desired in cases like `text^[note]---`.) Resolves Issue #93.
14923 * Windows installer: Don't require admin privileges to run
14924 installer. Modified pandoc-setup.iss, and changed modpath.iss to
14925 modify HKCU path if user lacks admin privileges. Also fixed case
14926 where oldpath is empty (previously this led to the new path
14927 beginning with a semicolon).
14929 * Updated INSTALL instructions for Arch packages and OS X install using
14930 cabal-install.
14932 * Removed the (now unneeded) debian directory.
14933 Removed empty Codec and System directories.
14935 * Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
14937 * Modified Setup.hs so that the "test" target returns an error status
14938 when tests fail, and "build" returns a success status if
14939 the build succeeds. Resolves Issue #100.
14941 * Added BUGS to files in tarball.
14944pandoc (1.0.0.1)
14946 [ John MacFarlane ]
14948 * Removed spurious reference to pdf output format from pandoc(1) man page.
14950pandoc (1.0)
14952 [ Andrea Rossato ]
14954 * Added new OpenDocument writer.
14956 * Added support for SmallCaps inline element.
14958 * Added support for integrating pandoc with citeproc-hs.
14960 + Added Cite element to definition and writers.
14961 + Added Text.Pandoc.Biblio module
14962 + Note: This support is included only if the 'citeproc'
14963 Cabal configuration flag is set.
14965 * Made Pandoc data structure an instance of Typeable.
14966 Added new processPandoc and queryPandoc functions, to query
14967 or transform matching elements in a Pandoc structure.
14969 [ Peter Wang ]
14971 * Added new Texinfo writer.
14973 [ John MacFarlane ]
14975 * Changes to Texinfo writer:
14977 + No space between paragraph and following @verbatim (provides more
14978 pleasing appearance in text formats)
14979 + Blank line consistently after list environments.
14980 + Removed deVerb.
14981 + Use @code instead of @verb for inline code (this solves the character
14982 escaping problem for texi2dvi and texi2pdf).
14983 + Added news of Texinfo writer to README.
14984 + Added Texinfo to list of formats in man page, and removed extra 'groff'.
14985 + Added texi & texinfo extensions to Main.hs, and fixed bug in determining
14986 default output extension.
14987 + Modified disallowedInNode in Texinfo writer to correct list of disallowed characters.
14989 * Added tests for OpenDocument writer.
14991 * Added ODT writer (using zip-archive library to package output of
14992 OpenDocument writer). Added odt-styles directory with default ODT styles.
14994 * Added new mediawiki writer and tests.
14996 * Markdown reader: Added support for delimited code blocks, with optional
14997 syntax highlighting using highlighting-kate (if the 'highlighting'
14998 configuration option is selected).
15000 + Currently highlighting is supported only in the HTML writer.
15001 + Delimited code blocks can have attributes; using the language name as
15002 class triggers highlighting.
15003 + New Attributes parameter in CodeBlock structure.
15004 + --version now indicates whether syntax highlighting support is compiled
15005 in, and prints a list of supported languages
15007 * Removed debian directory. Pandoc is no longer a native debian package.
15009 * Changes to build process: pandoc can now be built from the repository
15010 using Cabal. No unix tools are needed (so, pandoc can be built on Windows
15011 without Cygwin).
15013 + Include shell scripts themselves in repo, rather than generating from wrappers.
15014 Removed wrappers directory and wrappers Makefile target.
15015 + Text/Pandoc/ASCIIMathML.hs, Text/Pandoc/DefaultHeaders.hs,
15016 and Text/Pandoc/Writers/S5.hs are no longer built in Makefile
15017 from templates in the templates/ directory. Instead, they use template
15018 haskell to read data at compile time from the relevant files in data/.
15019 Template haskell functions go in a new module, Text.Pandoc.TH.
15020 + man pages are now generated in Setup.hs hook, not by Makefile
15021 + Makefile 'tarball' target now calls Cabal's 'sdist'
15022 + Added "Extra-Source-Files" to pandoc.cabal, so sdist contains everything needed
15023 + Added "Build-Type" field to pandoc.cabal to avoid warning.
15024 + Added to "Extra-source-files" and "Extra-tmp-files" in pandoc.cabal,
15025 so 'sdist' and 'clean' will work properly.
15026 + Setup.hs now generates man pages in a postbuild hook.
15027 + Added dependency-checking to Setup.hs, so it only rebuilds things
15028 that need rebuilding.
15029 + Added 'library' and 'executable' configuration flags.
15030 Cabal can now be told to build just the library or just the executable.
15031 + CABALOPTS may now be specified with 'make' to pass Cabal configuration flags.
15032 For example: CABALOPTS=-fhighlighting make
15034 * Rewrote test suite so it doesn't depend on perl or unix tools.
15036 + Replaced old runtests.pl with a Haskell script RunTests.hs.
15037 + Added Diff.hs module to be used by RunTests.hs instead of unix 'diff'.
15038 + Added test hook to Setup.hs, so tests may be run from cabal.
15039 + Changed Makefile's 'test' target to run tests via cabal.
15040 + Removed old generate.sh.
15041 + Since we no longer have 'sed' to filter out raw HTML sections
15042 from the docbook writer test, or raw LaTeX sections from the
15043 context writer test, we now just include these sections.
15044 They can be taken out if it is necessary to process the files.
15045 + Updated latex and context writer tests to remove extra spaces
15046 after '\\item'
15047 + Added a markdown table reader test.
15048 + Added markdown-reader-more.txt to test suite, for additional test cases
15049 for raw ConTeXt environments and more.
15051 * Compatibility fixes for CPP, Cabal, and haddock:
15053 + Use CPP in "Extensions" field in pandoc.cabal.
15054 + Removed use of backslash string continuations in source files.
15056 * Removed pandoc.cabal.ghc66. We now require Cabal >= 1.2, GHC >= 6.8,
15057 base >= 3.
15059 * Require parsec < 3.
15060 The compatibility module in parsec 3.0.0 gives far worse performance than
15061 parsec 2.1. Eventually pandoc will be upgraded to use the new bytestring
15062 version of parsec, and then we'll go to parsec 3.0.0.
15064 * Removed Text.Regex dependencies by rewriting using plain Haskell
15065 (Text.Pandoc.Writers.RTF, Text.Pandoc.Writers.HTML, Main.hs)
15067 * Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders.
15069 * Makefile:
15071 + Added 'configure' as dependency of 'uninstall-all'.
15072 (It uses the Cabal build program.)
15073 + Makefile: only use --with-hc-pkg if GHC_PKG is defined.
15074 Note that Cabal will automatically choose the ghc-pkg appropriate
15075 for the compiler selected, so normally specifying GHC by itself
15076 is sufficient.
15078 * Removed Text.Pandoc.UTF8 module; instead, depend on utf8-string and use
15079 its IO and conversion functions.
15081 * Added -Wall to ghc-options in pandoc.cabal. Cleaned up modules so that
15082 everything is -Wall clean.
15084 + Added pragma to HTML writer to avoid deprecation warning for use of "start" attribute.
15085 + Added pragma to Text/Pandoc/Shared.hs to get rid of "orphan instance" warnings.
15086 (These are caused by the Lift instance for ByteString.)
15088 * Changed the comment used to replace unsafe HTML if sanitize-html option
15089 selected.
15091 * Made -c/--css option repeatable on the command line (like -H, -A, -B).
15093 * Moved XML-formatting functions to new unexported module Text.Pandoc.XML.
15095 * Escape '\160' as "&#160;", not "&nbsp;" in XML.
15096 "nbsp" isn't a predefined XML entity.
15098 * Fixed bug in RST reader, which would choke on: "p. one\ntwo\n".
15099 Added some try's in ordered list parsers.
15101 * Man writer: don't escape " as \".
15103 * Allow newline before URL in markdown link references. Resolves Issue #81.
15104 Added tests for this issue in new "markdown-reader-more" tests.
15105 Changed RunTests.hs to run these tests.
15107 * Support for display math. Resolves Issue #47.
15109 + Added a DisplayMath/InlineMath selector to Math inlines.
15110 + Markdown parser yields DisplayMath for $$...$$.
15111 + LaTeX parser yields DisplayMath when appropriate. Removed
15112 mathBlock parsers, since the same effect is achieved by the math
15113 inline parsers, now that they handle display math.
15114 + Writers handle DisplayMath as appropriate for the format.
15115 + Modified tests accordingly; added new tests for display math.
15117 * Use LaTeXMathML instead of ASCIIMathML. LaTeXMathML is closer
15118 to LaTeX in its display of math, and supports many non-math LaTeX environments.
15120 + Changed -m option to use LaTeXMathML rather than ASCIIMathML.
15121 + Modified HTML writer to print raw TeX when LaTeXMathML is
15122 being used instead of suppressing it.
15123 + Removed ASCIIMathML files from data/ and added LaTeXMathML.
15124 + Replaced ASCIIMathML with LaTeXMathML in source files.
15125 + Modified README and pandoc man page source.
15126 + Added --latexmathml option (kept --asciimathml as a synonym
15127 for backwards compatibility)
15129 * Markdown reader: Parse setext headers before atx headers.
15130 Test case:
15131 # hi
15132 ====
15133 parsed by Markdown.pl as an H1 header with contents "# hi".
15135 * Markdown reader: Treat "mixed" lists the same way as Markdown.pl does.
15136 The marker on the first list item determines the type of the whole
15137 list. Thus, a list like
15138 1. one
15139 - two
15140 * three
15141 gets parsed as a single ordered list. (Previous versions of pandoc
15142 treated this as an ordered list with an unordered sublist.)
15144 * Markdown smart typography:
15146 + Em dashes no longer eat surrounding whitespace. Resolves Issue #69.
15147 + Use nonbreaking spaces after known abbreviations in markdown parser.
15148 Thus, for example, "Mr. Brown" comes out as "Mr.~Brown" in LaTeX, and does
15149 not produce a sentence-separating space. Resolves Issue #75.
15151 * Markdown writer: Print unicode \160 literally, rather than as &nbsp;.
15153 * Treat '\ ' in (extended) markdown as nonbreaking space.
15154 Print nonbreaking space appropriately in each writer (e.g. ~ in LaTeX).
15156 * The '--sanitize-html' option now examines URIs in markdown links
15157 and images, and in HTML href and src attributes. If the URI scheme
15158 is not on a whitelist of safe schemes, it is rejected. The main point
15159 is to prevent cross-site scripting attacks using 'javascript:' URIs.
15160 See http://www.mail-archive.com/markdown-discuss@six.pairlist.net/msg01186.html
15161 and http://ha.ckers.org/xss.html. Resolves Issue #62.
15163 * HTML writer:
15165 + Override Text.XHtml's stringToHtml function,
15166 so that characters below 0xff are not converted to numerical entity
15167 references. Also convert '\160' to "&nbsp;". This should aid readability
15168 and editability of the HTML source. It does presuppose that the HTML
15169 will be served as UTF-8.
15170 + In code blocks, change leading newlines to <br /> tags.
15171 (Some browsers ignore them.) Resolves Issue #71.
15172 See http://six.pairlist.net/pipermail/markdown-discuss/2008-May/001297.html
15173 + Use style attributes rather than css classes for strikethrough
15174 and ordered list styles. This works better when fragments, rather than
15175 standalone documents, are generated.
15177 * HTML reader: Count anything that isn't a known block (HTML) tag as an
15178 inline tag (rather than the other way around). Added "html", "head", and
15179 "body" to list of block tags. Resolves Issue #66, allowing
15180 <lj> to count as an inline tag.
15182 * RTF writer: Fixed bug. Extra spaces were being printed after emphasized,
15183 boldface, and other inline elements. Resolves Issue #64.
15185 * LaTeX reader: improvements in raw LaTeX parsing.
15187 + "loose punctuation" (like {}) parsed as Space
15188 + Para elements must contain more than Str "" and Space elements
15189 + Added parser for "\ignore" command used in literate haskell.
15190 + Reworked unknownCommand and rawLaTeXInline: when not in "parse raw"
15191 mode, these parsers simply strip off the command part and allow
15192 the arguments to be parsed normally. So, for example,
15193 \blorg{\emph{hi}} will be parsed as Emph "hi" rather than
15194 Str "{\\emph{hi}}".
15195 + Parse lhs "code" environments as verbatim.
15196 Refactored parsers for verbatim environments.
15197 + Removed specialEnvironment parser.
15198 + parse '{}', if present, after \textless, \textgreater,
15199 \textbar, \textbackslash, \ldots.
15200 + Parse unescaped special characters verbatim rather than
15201 changing them to spaces. This way arguments of unknown
15202 commands will appear in braces.
15204 * Parse raw ConTeXt environments as TeX in markdown reader.
15205 Resolves Issue #73.
15207 * Moved BlockWrapper and wrappedBlocksToDoc from ConTeXt writer to Shared.
15209 * Made some structural changes to parsing of raw LaTeX environments.
15210 Previously there was a special block parser for LaTeX environments.
15211 It returned a Para element containing the raw TeX inline. This has
15212 been removed, and the raw LaTeX environment parser is now used in the
15213 rawLaTeXInline parser. The effect is exactly the same, except that we
15214 can now handle consecutive LaTeX and ConTeXt environments not separated
15215 by spaces. This new flexibility is required by the example in
15216 Issue #73:
15218 \placeformula \startformula
15219 L_{1} = L_{2}
15220 \stopformula
15222 API change: The LaTeX reader now exports rawLaTeXEnvironment' (which
15223 returns a string) rather than rawLaTeXEnvironment (which returns a block
15224 element). This is more likely to be useful in other applications.
15226 * Use \textsubscr instead of \textsubscript for LaTeX subscript macro.
15227 \textsubscript conflicts with a definition in the memoir class.
15228 Resolves Issue #65.
15230 * Removed unneeded space after "\\item" in LaTeX and ConTeXt output.
15232 * Added amsmath package to default LaTeX header. Resolves Issue #48.
15234 * Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned
15235 list introduction lines.
15237 * Changed Float to Double in definition of Table element.
15238 (Double is more efficient in GHC.)
15240 * Fixed bug in Markdown parser: regular $s triggering math mode.
15241 For example: "shoes ($20) and socks ($5)."
15242 The fix consists in two new restrictions:
15244 + the $ that ends a math span may not be directly followed by a digit.
15245 + no blank lines may be included within a math span.
15247 Thanks to Joseph Reagle for noticing the bug.
15249 * Use Data.List's 'intercalate' instead of custom 'joinWithSep'.
15250 Removed 'joinWithSep' from Text.Pandoc.Shared.
15252 * Updated README and man pages. Acknowledge contributors in README.
15253 Added paragraph to README about producing S5 with separate CSS/javascript.
15255 * Updated INSTALL to reflect new build system (including configuration
15256 options) and document new dependencies. Added note to INSTALL that
15257 Cabal >= 1.2 is required for build. Resolves Issue #74.
15259 * Fixed some haddock documentation errors.
15261 * Small fix to markdown2pdf man page: only input needs to be piped through iconv.
15263pandoc (0.46) unstable; urgency=low
15265 [ John MacFarlane ]
15267 * Made -H, -A, and -B options cumulative: if they are specified
15268 multiple times, multiple files will be included.
15270 * Added optional HTML sanitization using a whitelist.
15271 When this option is specified (--sanitize-html on the command line),
15272 unsafe HTML tags will be replaced by HTML comments, and unsafe HTML
15273 attributes will be removed. This option should be especially useful
15274 for those who want to use pandoc libraries in web applications, where
15275 users will provide the input.
15277 + Main.hs: Added --sanitize-html option.
15279 + Text.Pandoc.Shared: Added stateSanitizeHTML to ParserState.
15281 + Text.Pandoc.Readers.HTML:
15282 - Added whitelists of sanitaryTags and sanitaryAttributes.
15283 - Added parsers to check these lists (and state) to see if a given
15284 tag or attribute should be counted unsafe.
15285 - Modified anyHtmlTag and anyHtmlEndTag to replace unsafe tags
15286 with comments.
15287 - Modified htmlAttribute to remove unsafe attributes.
15288 - Modified htmlScript and htmlStyle to remove these elements if
15289 unsafe.
15291 + Modified README and man pages to document new option.
15293 * Improved handling of email addresses in markdown and reStructuredText.
15294 Consolidated uri and email address parsers. (Resolves Issue #37.)
15296 + New emailAddress and uri parsers in Text.Pandoc.Shared.
15297 - uri parser uses parseURI from Network.URI.
15298 - emailAddress parser properly handles email addresses with periods
15299 in them.
15301 + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST
15302 and Text.Pandoc.Readers.Markdown.
15304 * Markdown reader:
15306 + Fixed emph parser so that "*hi **there***" is parsed as a Strong
15307 nested in an Emph. (A '*' is only recognized as the end of the
15308 emphasis if it's not the beginning of a strong emphasis.)
15310 + Moved blockQuote parser before list parsers for performance.
15312 + Modified 'source' parser to allow backslash-escapes in URLs.
15313 So, for example, [my](/url\(1\)) yields a link to /url(1).
15314 Resolves Issue #34.
15316 + Disallowed links within links. (Resolves Issue #35.)
15317 - Replaced inlinesInBalanced with inlinesInBalancedBrackets, which
15318 instead of hard-coding the inline parser takes an inline parser
15319 as a parameter.
15320 - Modified reference and inlineNote to use inlinesInBalancedBrackets.
15321 - Removed unneeded inlineString function.
15322 - Added inlineNonLink parser, which is now used in the definition of
15323 reference.
15324 - Added inlineParsers list and redefined inline and inlineNonLink parsers
15325 in terms of it.
15326 - Added failIfLink parser.
15328 + Better handling of parentheses in URLs and quotation marks in titles.
15329 - 'source' parser first tries to parse URL with balanced parentheses;
15330 if that doesn't work, it tries to parse everything beginning with
15331 '(' and ending with ')'.
15332 - source parser now uses an auxiliary function source'.
15333 - linkTitle parser simplified and improved, under assumption that it
15334 will be called in context of source'.
15336 + Make 'block' conditional on strictness state, instead of using
15337 failIfStrict in block parsers. Use a different ordering of parsers
15338 in strict mode (raw HTML block before paragraph) for performance.
15339 In non-strict mode use rawHtmlBlocks instead of htmlBlock.
15340 Simplified htmlBlock, since we know it's only called in strict
15341 mode.
15343 + Improved handling of raw HTML. (Resolves Issue #36.)
15344 - Tags that can be either block or inline (e.g. <ins>) should
15345 be treated as block when appropriate and as inline when
15346 appropriate. Thus, for example,
15347 <ins>hi</ins>
15348 should be treated as a paragraph with inline <ins> tags, while
15349 <ins>
15351 </ins>
15352 should be treated as a paragraph within <ins> tags.
15353 - Moved htmlBlock after para in list of block parsers. This ensures
15354 that tags that can be either block or inline get parsed as inline
15355 when appropriate.
15356 - Modified rawHtmlInline' so that block elements aren't treated as
15357 inline.
15358 - Modified para parser so that paragraphs containing only HTML tags and
15359 blank space are not allowed. Treat these as raw HTML blocks instead.
15361 + Fixed bug wherein HTML preceding a code block could cause it to
15362 be parsed as a paragraph. The problem is that the HTML parser
15363 used to eat all blank space after an HTML block, including the
15364 indentation of the code block. (Resolves Issue #39.)
15365 - In Text.Pandoc.Readers.HTML, removed parsing of following space
15366 from rawHtmlBlock.
15367 - In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that
15368 indentation is eaten *only* on the first line after the HTML
15369 block. This means that in
15370 <div>
15371 foo
15372 <div>
15373 the foo won't be treated as a code block, but in
15374 <div>
15376 foo
15378 </div>
15379 it will. This seems the right approach for least surprise.
15381 * RST reader:
15383 + Fixed bug in parsing explicit links (resolves Issue #44).
15384 The problem was that we were looking for inlines until a '<' character
15385 signaled the start of the URL; so, if you hit a reference-style link,
15386 it would keep looking til the end of the document. Fix: change
15387 inline => (notFollowedBy (char '`') >> inline). Note that this won't
15388 allow code inlines in links, but these aren't allowed in resT anyway.
15390 + Cleaned up parsing of reference names in key blocks and links.
15391 Allow nonquoted reference links to contain isolated '.', '-', '_', so
15392 so that strings like 'a_b_' count as links.
15394 + Removed unnecessary check for following link in str.
15395 This is unnecessary now that link is above str in the definition of
15396 'inline'.
15398 * HTML reader:
15400 + Modified rawHtmlBlock so it parses </html> and </body> tags.
15401 This allows these tags to be handled correctly in Markdown.
15402 HTML reader now uses rawHtmlBlock', which excludes </html> and </body>,
15403 since these are handled in parseHtml. (Resolves Issue #38.)
15405 + Fixed bug (emph parser was looking for `<IT>` tag, not `<I>`).
15407 + Don't interpret contents of style tags as markdown.
15408 (Resolves Issue #40.)
15409 - Added htmlStyle, analogous to htmlScript.
15410 - Use htmlStyle in htmlBlockElement and rawHtmlInline.
15411 - Moved "script" from the list of tags that can be either block or
15412 inline to the list of block tags.
15414 + Modified rawHtmlBlock to use anyHtmlBlockTag instead of anyHtmlTag
15415 and anyHtmlEndTag. This fixes a bug in markdown parsing, where
15416 inline tags would be included in raw HTML blocks.
15418 + Modified anyHtmlBlockTag to test for (not inline) rather than
15419 directly for block. This allows us to handle e.g. docbook in
15420 the markdown reader.
15422 * LaTeX reader: Properly recognize --parse-raw in rawLaTeXInline.
15423 Updated LaTeX reader test to use --parse-raw.
15425 * HTML writer:
15427 + Modified rules for automatic HTML header identifiers to
15428 ensure that identifiers begin with an alphabetic character.
15429 The new rules are described in README. (Resolves Issue #33.)
15431 + Changed handling of titles in HTML writer so you don't get
15432 "titleprefix - " followed by nothing.
15434 * ConTeXt writer: Use wrappers around Doc elements to ensure proper
15435 spacing. Each block element is wrapped with either Pad or Reg.
15436 Pad'ed elements are guaranteed to have a blank line in between.
15438 * RST writer:
15440 + Refactored RST writer to use a record instead of a tuple for state,
15441 and to include options in state so it doesn't need to be passed as
15442 a parameter.
15444 + Use an interpreted text role to render math in restructuredText.
15445 See http://www.american.edu/econ/itex2mml/mathhack.rst for the
15446 strategy.
15448 [ Recai Oktaş ]
15450 * Debian packaging changes:
15452 + Remove the empty 'include' directory in -dev package, which lintian
15453 complains about.
15454 + Bump Standarts-Version to 3.7.3.
15455 + Use new 'Homepage:' field to specify the upstream URL on suggestion of
15456 lintian.
15458 -- Recai Oktaş <roktas@debian.org> Tue, 08 Jan 2008 05:13:31 +0200
15460pandoc (0.45) unstable; urgency=low
15462 [ John MacFarlane ]
15464 * Simplified parsing of reference keys and notes in markdown and RST
15465 readers: The Reference data structure from Text.Pandoc.Shared is no
15466 longer needed, since referenceKey and noteBlock parses return strings
15467 (as many blank lines as were occupied by the key or note) and update
15468 state themselves. getPosition and setPosition are now used to ensure
15469 that error messages will give the correct line number. This yields
15470 cleaner (and slightly faster) code, with more accurate parsing error
15471 messages.
15473 * Added new Math inline element:
15475 + Markdown and LaTeX readers now convert TeX math into Math elements,
15476 not TeX.
15477 + This allows math to be treated differently from raw TeX in output.
15478 TeX elements are no longer printed in output formats other than
15479 Markdown, LaTeX, and ConTeXt. But Math elements are always printed.
15481 * New default handling of math in writers:
15483 + New module Text.Pandoc.Readers.TeXMath exports readTeXMath, which
15484 parses raw TeX math and outputs a string of Pandoc inlines that
15485 tries to render it as far as possible using unicode characters,
15486 lapsing into literal TeX when needed.
15487 + readTeXMath is now used for default HTML output in HTML, S5, RTF,
15488 and Docbook, if no other method for displaying math in HTML is
15489 specified. Enclosing $'s are no longer printed by default.
15490 + By default, math is put inside `<span class="math">`. This way it can be
15491 distinguished from the surrounding text, e.g. put in a different
15492 font.
15494 * New --gladtex and --mimetex options for display of math in HTML:
15496 + If --gladtex is specified, math is output between `<eq>` tags, so
15497 it can be processed by gladTeX.
15498 + If --mimetex is specified, math is put in `<img>` tags with a link
15499 to the mimetex CGI script (or any other script that takes TeX math
15500 as input and outputs an image). The URL of the script may be
15501 specified, but defaults to /cgi-bin/mimetex.cgi.
15502 + HTMLMathMethod structure in WriterOptions keeps track of how to
15503 display math in HTML output.
15504 + Updated README with a description of the four options for displaying
15505 math in HTML.
15507 * HTML reader:
15509 + Fixed bug: parser for minimized attributes should not swallow
15510 trailing spaces.
15511 + Simplified HTML attribute parsing.
15512 + Changed parsing of code blocks in HTML reader: `<code>` tag is no
15513 longer needed. `<pre>` suffices. All HTML tags in the code block
15514 (e.g. for syntax highlighting) are skipped, because they are not
15515 portable to other output formats. A `<code>...</code>` block not
15516 surrounded by `<pre>` now counts as inline HTML, not a code block.
15517 + Remove just one leading and one trailing newline from contents of
15518 `<pre>...</pre>` in codeBlock parser.
15520 * Markdown reader:
15522 + Removed support for box-style block quotes.
15523 + Require space before title in links and references.
15524 This fixes a bug in parsing URLs like http://silly/url(withparen).
15525 + Improved and simplified setextHeader parser.
15526 + Fixed logic in smart quote parsing, adding some needed 'try'
15527 statements.
15528 + Fixed smart quote parsing so that unicode characters 8216 and 8217
15529 are recognized as single quotes, and 8220 and 8221 as double quotes.
15531 * RST reader:
15533 + Fixed bug in parsing of code blocks. Previously a full tab indent
15534 was required, but RST allows code to be indented any amount.
15535 Resolves Issue #27.
15536 + Allow field lists to be indented.
15537 + Parse the contents of field lists instead of treating as a raw string.
15538 + Represent field lists as definition lists instead of blockquotes.
15539 + Fixed bug in which metadata would be overridden if the document
15540 contained multiple field lists.
15541 + Parse fields associated with '.. image::' blocks, and use 'alt'
15542 field, if given, for image alt and title attributes.
15544 * LaTeX reader:
15546 + Modified specialChar so that '"' characters are parsed.
15547 + Fixed a bug in parsing of \[ \] math blocks (thanks to Mark Kalderon).
15549 * HTML writer:
15551 + Changes in handling of math (see above).
15552 + Don't produce HTML for table of contents if there are
15553 no headers. (This would be an empty list, which is invalid XHTML.)
15555 * Markdown writer:
15557 + Don't print title attribute if title is empty. (This differs from
15558 the behavior of Markdown.pl, and agrees with PHP Markdown. But John
15559 Gruber has indicated that he prefers this behavior.) Adjusted test
15560 suite accordingly.
15561 + Fixed incorrect line wrapping in paragraphs including hard line
15562 breaks. Resolves Issue #25.
15563 + Fixed bug in markdown writer: If an ordered list item began with
15564 a marker greater than 3 characters in width, and the item took more
15565 than one line, it would appear on the line after the list marker,
15566 e.g.:
15568 (12)
15569 My list item.
15570 Multiline.
15572 Now it works as follows:
15574 (12) My list item.
15575 Multiline.
15577 * RST writer
15579 + Fixed bug in RST writer's handling of ordered lists. Previously,
15580 list items with multiple lines would not always line up with
15581 single-line list items. Now, list items are nested the length of
15582 the list marker + 1. This looks better and ensures that list items
15583 all line up. (Note that list markers are padded to the length of
15584 the longest list marker in the series.)
15585 + Use 3-space indent for unordered lists.
15586 + If label for a link reference contains a colon, surround it by `
15587 signs so it won't be interpreted as the end of the link label.
15589 * LaTeX writer:
15591 + Cleaner output for footnotes. Footnotes now always begin on a new
15592 line, and the final } is on a line by itself only when it needs to
15593 be (i.e. only when the note ends with a Verbatim environment).
15594 + Added writer options to state, so state doesn't need to be passed as
15595 a parameter.
15596 + Text wrapping now provided, using wrapTeXIfNeeded.
15598 * ConTeXt writer: many improvements for more idiomatic ConTeXt output
15599 (thanks to Idris Samawi Hamid for suggestions).
15601 + PrettyPrint module now used for output.
15602 + Writer options are now in state, so they don't have to be passed as
15603 a parameter.
15604 + Text wrapping now provided, using wrapTeXIfNeeded.
15605 + Better treatment of footnotes: footnotes are always on lines by
15606 themselves, and the final } is on a line by itself only when
15607 it needs to be (after \stoptyping).
15608 + Use \subject, \subsubject, ... or \section, \subsection, ... for headings,
15609 depending on whether --number-sections option is selected.
15610 + Extra blank line inserted after \stopitemize
15611 + Use new, "official" definition of blockquote environment. Also, use
15612 blank line after \startblockquote to balance blank line at the end.
15613 + Both itemized and enumerated lists are now generated using
15614 \start-stopitemize, with appropriate options. Removed definitions
15615 of ltxenum and ltxitem, which are no longer needed. Provided
15616 defaults for itemized lists in the preamble. State keeps track of
15617 ordered list level, so that when default numbering is specified,
15618 the appropriate scheme can be used.
15619 + Changed \useurl to \useURL.
15620 + Changed link color from red to blue.
15621 + Use \subsubsubsubsection etc., since these are supported
15622 (up to at least sub x 5).
15624 * Text.Pandoc.Shared:
15626 + Save and restore position in parseFromString, so that accurate
15627 error messages can be given.
15628 + Improved efficiency of romanNumeral parser.
15629 + Added wrappedTeX and wrapTeXIfNeeded functions. These ensure
15630 that footnotes occur on lines by themselves (to make them
15631 easier to see and move) and do not screw up line wrapping.
15633 * Text.Pandoc.UTF8: modified fromUTF8 to strip out the BOM
15634 if present. Windows Notepad and other applications insert a
15635 BOM at the beginning of a UTF8 file.
15637 * Main.hs (tabFilter): Treat '\r' at end of line as newline (in
15638 addition to "\r\n" and '\n').
15640 * Added a writer option for wrapped text and a command-line option
15641 '--no-wrap', which disables text wrapping and minimizes whitespace
15642 in HTML. (Resolves Issue #26.)
15644 + Added support for '--no-wrap' to Main.hs.
15645 + Added wrapIfNeeded function to Text.Pandoc.Shared.
15646 + Use wrapIfNeeded instead of wrapped in the RST, Man, Docbook, and
15647 Markdown writers.
15648 + Added render and renderFragment helpers to HTML writer.
15650 * Modified html2markdown to run tidy only if the HTML cannot be
15651 parsed. Previously html2markdown piped all input through tidy
15652 before passing it to pandoc. This caused problems on certain pages
15653 (e.g. http://daringfireball.com/markdown) which have well-formed
15654 XHTML that causes tidy to choke. The solution is to pipe through
15655 tidy only if pandoc cannot parse the input by itself. This means
15656 that a temp file is now always used, even when input comes from a
15657 local file or standard input.
15659 * Removed 'version' constant from Main.hs; added 'pandocVersion' to
15660 Text.Pandoc library.
15662 * pandoc.cabal:
15664 + Modified to work with GHC 6.8 and Cabal configurations. (For GHC
15665 6.8, pretty and containers must be added to Build-Depends, and it
15666 is desirable to use the -O2 compiler option.) Cabal configurations
15667 allows one to select options depending on the compiler version.
15668 For GHC 6.6, the splitBase option can be disabled.
15669 + pandoc.cabal.ghc66 is provided for users with older versions of
15670 Cabal, which do not support configurations.
15671 + Use Ghc-Prof-Options to ensure that '-auto-all' is used when
15672 '--enable-(executable|library)-profiling' is specified. Updated
15673 PROFILING instructions accordingly.
15675 * Makefile:
15677 + Makefile now checks GHC version. If GHC is 6.6, pandoc.cabal.ghc66
15678 is copied to pandoc.cabal, and the old pandoc.cabal is copied
15679 to pandoc.cabal.orig. Otherwise, pandoc.cabal is copied to
15680 pandoc.cabal.orig but otherwise unmodified. This way, the Makefile
15681 will work properly with either GHC 6.6 or 6.8.
15682 + Changed BUILDCONF to point to dist/setup-config, not .setup-config.
15683 This is where current versions of Cabal put it.
15684 + Added $(BUILDCMD) target, so setup doesn't get compiled every time.
15685 + Removed dependency of templates on ./templates, which is circular
15686 now that templates is a subdirectory of the top-level.
15688 * MacPorts Portfile:
15690 + Modified to install the pandoc library in addition to programs.
15691 + Installation must be done manually rather than using Makefile's
15692 install-all.
15693 + Note that the library must be registered in the activate phase,
15694 after the library files have been copied out of the destroot.
15695 Cabal generates a 'register.sh' script that will do this.
15697 * debian/control: Added libghc6-network-dev, libghc6-xhtml-dev, and
15698 libghc6-mtl-dev as dependencies for libghc6-pandoc-dev.
15699 Closes: #445235
15701 * debian/rules: Converted to UTF-8.
15703 * Changed pandoc home page to http://johnmacfarlane.net/pandoc/.
15705 * Updated ASCIIMathML.js to latest version.
15707 * Directory structure:
15709 + Moved everything from src into the top-level directory.
15710 + Changed references to source directory in Makefile and
15711 pandoc.cabal.*.
15712 + Moved ASCIIMathML.js, headers, and ui into templates directory.
15713 + Modified fillTemplates.pl to reflect new paths.
15715 [ Recai Oktaş ]
15717 * Makefile: Fixed the issue of having two copies of the library
15718 documentation under some usage scenarios.
15720 * Replaced 'ghc' with '$(GHC)' in Makefile, and made GHC
15721 and GHC_PKG configurable through the environment, to support
15722 unusual ghc installations. For example:
15723 GHC=/opt/ghc/bin/ghc GHC_PKG=/opt/ghc/bin/ghc-pkg make
15725 -- Recai Oktaş <roktas@debian.org> Sun, 07 Oct 2007 20:51:43 +0300
15727pandoc (0.44) unstable; urgency=low
15729 [ John MacFarlane ]
15731 * Fixed bug in HTML writer: when --toc was used, anchors were put around
15732 headers, which is invalid XHTML (block content within inline element).
15733 Now the anchors are put inside the header tags. Resolves Issue #23.
15735 * Added xmlns attribute to html element in html writer tests.
15736 This attribute is added by more recent versions of the
15737 xhtml library (>= 3000), and is required for valid XHTML.
15739 [ Recai Oktaş ]
15741 * On configure, compile 'Setup.hs' to 'setup' and use 'setup' as the build
15742 command instead of 'runhaskell', which, on some platforms (such as s390,
15743 alpha, m68k), throws the following error:
15745 runhaskell Setup.hs configure --prefix=/usr
15746 ghc-6.6.1: not built for interactive use
15748 This causes a serious FTBFS bug. Closes: #440668.
15750 -- Recai Oktaş <roktas@debian.org> Mon, 03 Sep 2007 18:24:02 +0300
15752pandoc (0.43) unstable; urgency=low
15754 [ John MacFarlane ]
15756 * The focus of this release is performance. The markdown parser
15757 is about five times faster than in 0.42, based on benchmarks
15758 with the TextMate manual.
15760 * Main.hs: Replaced CRFilter and tabFilter with single function
15761 tabFilter, which operates on the whole string rather than breaking
15762 it into lines, and handles dos-style line-endings as well as tabs.
15764 * Added separate LaTeX reader and native reader tests; removed
15765 round-trip tests.
15767 * Text.Pandoc.Shared:
15769 + Removed tabsToSpaces and tabsInLine (they were used only in Main.hs.)
15770 + General code cleanup (to elimante warnings when compiling with -Wall.)
15771 + Added 'wrapped' function, which helps wrap text into paragraphs,
15772 using the prettyprinting library.
15773 + Rewrote charsInBalanced and charsInBalanced'.
15774 - Documented restriction: open and close must be distinct characters.
15775 - Rearranged options for greater efficiency.
15776 - Bug fix: Changed inner call to charsInBalanced inside
15777 charsInBalanced' to charsInBalanced'.
15778 + anyLine now requires that the line end with a newline (not eof).
15779 This is a harmless assumption, since we always add newlines to the
15780 end of a block before parsing with anyLine, and it yields a 10% speed
15781 boost.
15782 + Removed unnecessary 'try' in anyLine.
15783 + Removed unneeded 'try' from romanNumeral parser.
15784 + Use notFollowedBy instead of notFollowedBy' in charsInBalanced.
15785 + Removed unneeded 'try' in parseFromString.
15786 + Removed unneeded 'try' from stringAnyCase. (Now it behaves
15787 like 'string'.)
15788 + Changed definition of 'enclosed' in Text.Pandoc.Shared so that
15789 'try' is not automatically applied to the 'end' parser. Added
15790 'try' in calls to 'enclosed' where needed. Slight speed increase.
15792 * Writers:
15794 + Replaced individual wrapping routines in RST, Man, and Markdown
15795 writers with 'wrapped' from Text.Pandoc.Shared.
15796 + Rewrote LaTeX writer to use the prettyprinting library,
15797 so we get word wrapping, etc.
15798 + Modified latex writer tests for new latex writer using prettyprinter.
15799 + Fixed bug in LaTeX writer: autolinks would not cause
15800 '\usepackage{url}' to be put in the document header. Also, changes
15801 to state in enumerated list items would be overwritten.
15802 + In Markdown writer, escape paragraphs that begin with ordered list
15803 markers, so they don't get interpreted as ordered lists.
15805 * Text.Pandoc.Reades.LaTeX:
15807 + Fixed bug in LaTeX reader, which wrongly assumed that the roman
15808 numeral after "enum" in "setcounter" would consist entirely of
15809 "i"s. 'enumiv' is legitimate.
15810 + LaTeX command and environment names can't contain numbers.
15811 + Rearranged order of parsers in inline for slight speed improvement.
15812 + Added '`' to special characters and 'unescapedChar'.
15814 * Text.Pandoc.Readers.RST:
15816 + Removed unneeded try's in RST reader; also minor code cleanup.
15817 + Removed tabchar.
15818 + Rearranged parsers in inline (doubled speed).
15820 * Text.Pandoc.Readers.Markdown:
15822 + Skip notes parsing if running in strict mode. (This yields a nice
15823 speed improvement in strict mode.)
15824 + Simplify autolink parsing code, using Network.URI to test for
15825 URIs. Added dependency on network library to debian/control and
15826 pandoc.cabal.
15827 + More perspicuous definition of nonindentSpaces.
15828 + Removed unneeded 'try' in 'rawLine'.
15829 + Combined linebreak and whitespace into a new whitespace parser, to
15830 avoid unnecessary reparsing of space characters.
15831 + Removed unnecessary 'try' in 'codeBlock', 'ellipses', 'noteMarker',
15832 'multilineRow', 'dashedLine', 'rawHtmlBlocks'.
15833 + Use lookAhead in parsers for setext headers and definition lists
15834 to see if the next line begins appropriately; if not, don't waste
15835 any more time parsing.
15836 + Don't require blank lines after code block. (It's sufficient to
15837 end code block with a nonindented line.)
15838 + Changed definition of 'emph': italics with '_' must not
15839 be followed by an alphanumeric character. This is to help
15840 prevent interpretation of e.g. `[LC_TYPE]: my_type` as
15841 `[LC<em>TYPE]:my</em>type`.
15842 + Improved Markdown.pl-compatibility in referenceLink: the two parts
15843 of a reference-style link may be separated by one space, but not
15844 more... [a] [link], [not] [a link].
15845 + Fixed markdown inline code parsing so it better accords with
15846 Markdown.pl: the marker for the end of the code section is a clump
15847 of the same number of `'s with which the section began, followed
15848 by a non-` character. So, for example,
15849 ` h ``` i ` -> `<code>h ``` i</code>`.
15850 + Split 'title' into 'linkTitle' and 'referenceTitle', since the
15851 rules are slightly different.
15852 + Rewrote 'para' for greater efficiency.
15853 + Rewrote link parsers for greater efficiency.
15854 + Removed redundant 'referenceLink' in definition of inline (it's
15855 already in 'link').
15856 + Refactored escapeChar so it doesn't need 'try'.
15857 + Refactored hrule for performance in Markdown reader.
15858 + More intelligent rearranging of 'inline' so that most frequently
15859 used parsers are tried first.
15860 + Removed tabchar parser, as whitespace handles tabs anyway.
15862 * Text.Pandoc.CharacterReferences:
15864 + Refactored.
15865 + Removed unnecessary 'try's for a speed improvement.
15866 + Removed unnecessary '&' and ';' from the entity table.
15868 * Build process:
15870 + Makefile: Get VERSION from cabal file, not Main.hs.
15871 + Modified MacPorts Portfile:
15872 - Depend on haddock
15873 - Build and install libraries and library documentation in
15874 addition to pandoc executable
15875 - Added template item for md5 sum in Portfile.in.
15876 - Incorporated changes from MacPorts repository (r28278).
15877 + FreeBSD port: Don't try to generate distinfo in Makefile.
15878 It can be made using 'make makesum' in FreeBSD.
15879 + Make both freebsd and macports targets depend on tarball.
15881 * Website and documentation:
15883 + Updated INSTALL instructions.
15884 + Added pandocwiki demo to website.
15885 + Removed local references to Portfile, since pandoc is now in the
15886 MacPorts repository.
15888 -- Recai Oktaş <roktas@debian.org> Sun, 02 Sep 2007 15:50:11 +0300
15890pandoc (0.42) unstable; urgency=low
15892 [ John MacFarlane ]
15894 * Main.hs: Use utf8 conversion on the extra files loaded with
15895 the -H, -C, -B, and -A options. This fixes problems with unicode
15896 characters in these files.
15898 * Exposed Text.Pandoc.ASCIIMathML, since it is imported in
15899 Text.Pandoc.Readers.HTML and without it we get a linking error when
15900 using the library.
15902 * Markdown reader:
15904 + Added new rule for enhanced markdown ordered lists: if the list
15905 marker is a capital letter followed by a period (including a
15906 single-letter capital roman numeral), then it must be followed by
15907 at least two spaces. The point of this is to avoid accidentally
15908 treating people's initials as list markers: a paragraph might begin,
15909 "B. Russell was an English philosopher," and this shouldn't be
15910 treated as a list. Documented change in README.
15911 + Blocks that start with "p. " and a digit are no longer treated
15912 as ordered lists (it's a page number).
15913 + Added a needed 'try' to listItem.
15914 + Removed check for a following setext header in endline.
15915 A full test is too inefficient (doubles benchmark time), and the
15916 substitute we had before is not 100% accurate.
15917 + Don't use Code elements for autolinks if --strict specified.
15919 * LaTeX writer: When a footnote ends with a Verbatim environment, the
15920 close } of the footnote cannot occur on the same line or an error occurs.
15921 Fixed this by adding a newline before the closing } of every footnote.
15923 * HTML writer:
15924 + Removed incorrect "{}" around style information in HTML tables.
15925 Column widths now work properly in HTML.
15926 + If --strict option is specified (and --toc is not), don't include
15927 identifiers in headers, for better Markdown compatibility.
15929 * Build process:
15931 + Separated $(web_dest) and website targets.
15932 + In website, index.txt is now constructed from template index.txt.in.
15933 + Added freebsd target to Markefile. This creates the freebsd Makefile
15934 from Makefile.in, and creates distinfo. Removed Makefile and distinfo
15935 from the repository.
15936 + Added macport target to Makefile. Portfile is built from template
15937 Portfile.in.
15938 + Removed OSX package targets. (Too many difficulties involving
15939 dependencies on dynamic libraries.)
15940 + More complete INSTALL instructions for all architectures.
15942 * Website:
15943 + Added a programming demo, pandocwiki.
15945 [ Recai Oktaş ]
15947 * Do not forget to close pandoc's ITP. Closes: #391666
15949 -- Recai Oktaş <roktas@debian.org> Sun, 26 Aug 2007 22:51:32 +0300
15951pandoc (0.41) unstable; urgency=low
15953 [ John MacFarlane ]
15955 * Fixed bugs in HTML reader:
15956 + Skip material at end *only if* `</html>` is present (previously,
15957 only part of the document would be parsed if an error was
15958 found; now a proper error message is given).
15959 + Added new constant eitherBlockOrInline with elements that may
15960 count either as block-level or as inline. Modified isInline and
15961 isBlock to take this into account.
15962 + Modified rawHtmlBlock to accept any tag (even an inline tag):
15963 this is innocuous, because rawHtmlBlock is tried only if a regular
15964 inline element can't be parsed.
15965 + Added a necessary 'try' in definition of 'para'.
15967 * Fixed bug in markdown ordered list parsing. The problem was that
15968 anyOrderedListStart did not check for a space following the
15969 ordered list marker. So in 'A.B. 2007' the parser would be
15970 expecting a list item, but would not find one, causing an error.
15971 Fixed a similar bug in the RST reader. Resolves Issue #22.
15973 * Refactored RST and Markdown readers using parseFromString.
15975 * LaTeX reader will now skip anything after \end{document}.
15977 * Fixed blockquote output in markdown writer: previously, block
15978 quotes in indented contexts would be indented only in the first
15979 line.
15981 * Added note to INSTALL about variations in versions of the xhtml
15982 library that can lead to failed tests (thanks to Leif LeBaron).
15984 -- Recai Oktaş <roktas@debian.org> Sun, 19 Aug 2007 23:26:07 +0300
15986pandoc (0.4) unstable; urgency=low
15988 [ John MacFarlane ]
15990 * Added two new output formats: groff man pages and ConTeXt. By
15991 default, output files with extensions ".ctx" and ".context" are
15992 assumed to be ConTeXt, and output files with single-digit extensions
15993 are assumed to be man pages.
15995 * Enhanced ordered lists (documented in README, under Lists):
15996 + The OrderedList block element now stores information about
15997 list number style, list number delimiter, and starting number.
15998 + The readers parse this information when possible.
15999 + The writers use this information to style ordered lists.
16000 + The enhancement can be disabled using the --strict option.
16002 * Added support for tables (with a new Table block element). Two kinds
16003 of tables are supported: a simple table with one-line rows, and a
16004 more complex variety with multiline rows. All output formats are
16005 supported, but only markdown tables are parsed at the moment. The
16006 syntax is documented in README.
16008 * Added support for definition lists (with a new DefinitionList block
16009 element). All output and input formats are supported. The syntax is
16010 documented in README.
16012 * Added support for superscripts and subscripts (with new Superscript
16013 and Subscript inline elements). All input and output
16014 formats. The syntax is documented in README.
16016 * Added support for strikeout (with a new Strikeout inline element).
16017 All input and output formats are supported. Thanks to Bradley Kuhn,
16018 who contributed a patch. The syntax is documented in README. Resolves
16019 Issue #18.
16021 * Added a --toc|--table-of-contents option. This causes an automatically
16022 generated table of contents (or an instruction that creates one) to
16023 be inserted at the beginning of the document. Not supported in S5,
16024 DocBook, or man page writers.
16026 * Modified the -m|--asciimathml option:
16028 + If an optional URL argument is provided, a link is inserted
16029 instead of the contents of the ASCIIMathML.js script.
16030 + Nothing is inserted unless the document actually contains
16031 LaTeX math.
16033 * Removed Blank block element as unnecessary.
16035 * Removed Key and Note blocks from the Pandoc data structure. All
16036 links are now stored as explicit links, and note contents are
16037 stored with the (inline) notes.
16039 + All link Targets are now explicit (URL, title) pairs; there
16040 is no longer a 'Ref' target.
16041 + Markdown and RST parsers now need to extract data from key and
16042 note blocks and insert them into the relevant inline elements.
16043 Other parsers have been simplified, since there is no longer any need
16044 to construct separate key and note blocks.
16045 + Markdown, RST, and HTML writers need to construct lists of
16046 notes; Markdown and RST writers need to construct lists of link
16047 references (when the --reference-links option is specified); and
16048 the RST writer needs to construct a list of image substitution
16049 references. All writers have been rewritten to use the State monad
16050 when state is required.
16051 + Several functions (generateReference, keyTable,
16052 replaceReferenceLinks, replaceRefLinksBlockList, and some auxiliaries
16053 used by them) have been removed from Text.Pandoc.Shared, since
16054 they are no longer needed. New functions and data structures
16055 (Reference, isNoteBlock, isKeyBlock, isLineClump) have been
16056 added. The functions inTags, selfClosingTag, inTagsSimple, and
16057 inTagsIndented have been moved to the DocBook writer, since that
16058 is now the only module that uses them. NoteTable is now exported
16059 in Text.Pandoc.Shared.
16060 + Added stateKeys and stateNotes to ParserState; removed stateKeyBlocks,
16061 stateKeysUsed, stateNoteBlocks, stateNoteIdentifiers, stateInlineLinks.
16062 + Added writerNotes and writerReferenceLinks to WriterOptions.
16064 * Added Text.Pandoc module that exports basic readers, writers,
16065 definitions, and utility functions. This should export everything
16066 needed for most uses of Pandoc libraries. The haddock documentation
16067 includes a short example program.
16069 * Text.Pandoc.ASCIIMathML is no longer an exported module.
16071 * Added Text.Pandoc.Blocks module to help in printing markdown
16072 and RST tables. This module provides functions for working with
16073 fixed-width blocks of text--e.g., placing them side by side, as
16074 in a table row.
16076 * Refactored to avoid reliance on Haskell's Text.Regex library, which
16077 (a) is slow, and (b) does not properly handle unicode. This fixed
16078 some strange bugs, e.g. in parsing S-cedilla, and improved performance.
16080 + Replaced 'gsub' with a general list function 'substitute'
16081 that does not rely on Text.Regex.
16082 + Rewrote extractTagType in HTML reader so that it doesn't use
16083 regexs.
16084 + In Markdown reader, replaced email regex test with a custom email
16085 autolink parser (autoLinkEmail). Also replaced selfClosingTag regex
16086 with a custom function isSelfClosingTag.
16087 + Modified Docbook writer so that it doesn't rely on Text.Regex for
16088 detecting 'mailto' links.
16089 + Removed escapePreservingRegex and reamped entity-handling
16090 functions in Text.Pandoc.Shared and Text.Pandoc.CharacterReferences to
16091 avoid reliance on Text.Regex (see below on character reference
16092 handling changes).
16094 * Renamed Text.Pandoc.Entities as Text.Pandoc.CharacterReferences.
16096 * Changed handling of XML entities. Entities are now parsed (and unicode
16097 characters returned) in the Markdown and HTML readers, rather than being
16098 handled in the writers. In HTML and Docbook writers, UTF-8 is now used
16099 instead of entities for characters above 128. This makes the HTML and
16100 DocBook output much more readable and more easily editable.
16102 + Removed sgmlHexEntity, sgmlDecimalEntity, sgmlNamedEntity, and
16103 sgmlCharacterEntity regexes from Text.Pandoc.Shared.
16104 + Renamed escapeSGMLChar to escapeCharForXML. Added escapeStringForXML.
16105 Moved both functions to Text.Pandoc.Writers.Docbook.
16106 + Added characterReference parser to Text.Pandoc.CharacterReferences.
16107 This parses a string and return a unicode character.
16108 + Rewrote decodeCharacterReferences to use the new parser instead of
16109 Text.Regex.
16110 + Added new charRef parser for Markdown and HTML, which replaces the
16111 old 'entity' parser. Added '&' as a special character in Markdown reader.
16112 + Modified HTML and Markdown readers to call decodeEntities on all raw
16113 strings (e.g. authors, dates, link titles), to ensure that no
16114 unprocessed entities are included in the native representation of
16115 the document. (In the HTML reader, most of this work is done by a
16116 change in extractAttributeName.)
16117 + In XML and Markdown output, escape unicode nonbreaking space as '&nbsp;',
16118 since a unicode non-breaking space is impossible to distinguish visually
16119 from a regular space. (Resolves Issue #3.)
16120 + Removed encodeEntitiesNumerical.
16121 + Use Data.Map for entityTable and (new) reverseEntityTable, for a
16122 slight performance boost over the old association list.
16123 + Removed unneeded decodeEntities from 'str' parser in HTML and
16124 Markdown readers.
16126 * Text.Pandoc.UTF8: Renamed encodeUTF8 to toUTF8, decodeUTF8 to
16127 fromUTF8, for clarity.
16129 * Replaced old haskell98 module names replaced by hierarchical module
16130 names, e.g. List by Data.List. Removed haskell98 from dependencies
16131 in pandoc.cabal, and added mtl (needed for state monad). Substituted
16132 xhtml for html.
16134 * Refactored and cleaned up character escaping in writers, using
16135 backslashEscapes and escapeStringUsing functions.
16137 * Instead of adding "\n\n" to the end of an input string in Main.hs,
16138 this is now done in the readers. This makes the libraries behave
16139 the way you'd expect from the pandoc program. Resolves Issue #10.
16141 * URLs and email addresses in autolinks are now typeset as Code.
16143 * In Main.hs, changed putStr to putStrLn -- mainly because MacOS X
16144 doesn't display the whole output unless there's a line ending.
16146 * Major code cleanup in all modules, for greater consistency, concision,
16147 and readability.
16149 * HTML reader:
16151 + Fixed several bugs (extractTagType, attribute parsing).
16152 + Remove Null blocks in lists of blocks when possible.
16153 + Allow HTML comments as raw HTML inline.
16155 * Markdown reader:
16157 + Ordered list items may no longer begin with uppercase letters, or
16158 letters greater than 'n'. (This prevents first initials and page
16159 reference, e.g. 'p. 400', from being parsed as beginning lists.)
16160 Also, numbers beginning list items may no longer end with ')',
16161 which is now allowed only after letters. Note: These changes
16162 may cause documents to be parsed differently. Users should take
16163 care in upgrading.
16164 + Changed autoLink parsing to conform better to Markdown.pl's
16165 behavior. `<google.com>` is not treated as a link, but
16166 `<http://google.com>`, `<ftp://google.com>`, and
16167 `<mailto:google@google.com>` are.
16168 + Cleaned up handling of embedded quotes in link titles. Now these are
16169 stored as a '"' character, not as '&quot;'.
16170 + Use lookAhead parser for the 'first pass' (looking for reference keys),
16171 instead of parsing normally, then using setInput to reset input. This
16172 yields a slight performance boost.
16173 + Fixed several bugs in smart quote recognition.
16174 + Fixed bug in indentSpaces (which didn't properly handle
16175 cases with mixed spaces and tabs).
16176 + Consolidated 'text', 'special', and 'inline' into 'inline'.
16177 + Fixed bug which allowed URL and title to be separated by multiple blank
16178 lines in links and reference keys. They can be on separate lines but
16179 can't have blank lines between them.
16180 + Correctly handle bracketed text inside inline footnotes and links,using
16181 new function inlinesInBalanced. Resolves Issue #14.
16182 + Fixed bug in footnotes: links in footnotes were not being
16183 processed. Solution: three-stage parse. First, get all the
16184 reference keys and add information to state. Next, get all the
16185 notes and add information to state. (Reference keys may be needed
16186 at this stage.) Finally, parse everything else.
16187 + Replaced named constants like 'emphStart' with literals.
16188 + Removed an extra occurrence of escapedChar in definition of inline.
16190 * RST reader:
16192 + Allow the URI in a RST hyperlink target to start on the line
16193 after the reference key.
16194 + Added 'try' in front of 'string', where needed, or used a different
16195 parser. This fixes a bug where ````` would not be correctly parsed as
16196 a verbatim `.
16197 + Fixed slow performance in parsing inline literals in RST reader. The
16198 problem was that ``#`` was seen by 'inline' as a potential link or image.
16199 Fix: inserted 'notFollowedBy (char '`')' in link parsers.
16200 Resolves Issue #8.
16201 + Use lookAhead instead of getInput/setInput in RST reader. Removed
16202 unneeded getState call, since lookAhead automatically saves and
16203 restores the parser state.
16204 + Allow hyperlink target URIs to be split over multiple lines, and
16205 to start on the line after the reference. Resolves Issue #7.
16206 + Fixed handling of autolinks.
16208 * LaTeX reader:
16210 + Replaced 'choice [(try (string ...), ...]' idiom with 'oneOfStrings',
16211 for clarity.
16212 + Added clauses for tilde and caret. Tilde is \ensuremath{\sim}, and
16213 caret is \^{}, not \^ as before.
16214 + Added parsing for \url.
16215 + Parse \texttt{} as code, provided there's nothing fancy inside.
16217 * HTML writer:
16219 + Modified HTML writer to use the Text.XHtml library. This results
16220 in cleaner, faster code, and it makes it easier to use Pandoc in
16221 other projects, like wikis, which use Text.XHtml. Two functions are
16222 now provided, writeHtml and writeHtmlString: the former outputs an
16223 Html structure, the latter a rendered string. The S5 writer is also
16224 changed, in parallel ways (writeS5, writeS5String).
16225 + The Html header is now written programmatically, so it has been
16226 removed from the 'headers' directory. The S5 header is still
16227 needed, but the doctype and some of the meta declarations have
16228 been removed, since they are written programmatically. This change
16229 introduces a new dependency on the xhtml package.
16230 + Fixed two bugs in email obfuscation involving improper escaping
16231 of '&' in the `<noscript>` section and in `--strict` mode. Resolves
16232 Issue #9.
16233 + Fixed another bug in email obfuscation: If the text to be obfuscated
16234 contains an entity, this needs to be decoded before obfuscation.
16235 Thanks to thsutton for the patch. Resolves Issue #15.
16236 + Changed the way the backlink is displayed in HTML footnotes.
16237 Instead of appearing on a line by itself, it now generally
16238 appears on the last line of the note. (Exception: when the
16239 note does not end with a Plain or Para block.) This saves space
16240 and looks better.
16241 + Added automatic unique identifiers to headers:
16242 - The identifier is derived from the header via a scheme
16243 documented in README.
16244 - WriterState now includes a list of header identifiers and a table
16245 of contents in addition to notes.
16246 - The function uniqueIdentifiers creates a list of unique identifiers
16247 from a list of inline lists (e.g. headers).
16248 - This list is part of WriterState and gets consumed by blockToHtml
16249 each time a header is encountered.
16250 + Include CSS for .strikethrough class in header only if strikethrough
16251 text appears in the document.
16252 + If the 'strict' option is specified, elements that do not appear in
16253 standard markdown (like definition lists) are passed through as
16254 raw HTML.
16255 + Simplified treatment of autolinks, using pattern matching instead of
16256 conditionals.
16258 * Markdown writer:
16260 + Links in markdown output are now printed as inline links by default,
16261 rather than reference links. A --reference-links option has been added
16262 that forces links to be printed as reference links. Resolves Issue #4.
16263 + Use autolinks when possible. Instead of `[site.com](site.com)`,
16264 use `<site.com>`.
16266 * LaTeX writer:
16268 + Rewrote to use the State monad. The preamble now includes only those
16269 packages that are actually required, given the document's content.
16270 Thus, for example, if strikeout is not used, ulem is not required.
16271 Modified LaTeXHeader accordingly.
16272 + Modified LaTeX writer to insert '\,' between consecutive quotes.
16273 + Removed unused function tableRowColumnWidths.
16274 + Simplified code for escaping special characters.
16275 + Leave extra blank line after \maketitle.
16276 + Include empty '\author{}' when no author specified to avoid LaTeX
16277 errors.
16278 + Include fancyvrb code in header only if needed -- that is, only
16279 if there is actually code in a footnote.
16280 + Use \url{} for autolinks.
16281 + Include [mathletters] option in ucs package, so that basic unicode
16282 Greek letters will work correctly.
16284 * RST writer: Force blank line before lists, so that sublists will
16285 be handled correctly.
16287 * Docbook writer: Fixed a bug: email links with text, like
16288 [foo](me@bar.baz), were being incorrectly treated as autolinks.
16290 * Removed Text.ParserCombinators.Pandoc and moved all its functions to
16291 Text.Pandoc.Shared.
16293 * Text.Pandoc.Shared:
16295 + Added defaultWriterOptions.
16296 + Added writerTableOfContents to WriterOptions.
16297 + Added writerIgnoreNotes option to WriterOptions. This is needed
16298 for processing header blocks for a table of contents, since notes on
16299 headers should not appear in the TOC.
16300 + Added prettyprinting for native Table format.
16301 + Removed some unneeded imports.
16302 + Moved escape and nullBlock parsers from
16303 Text.ParserCombinators.Pandoc, since the latter is for
16304 general-purpose parsers that don't depend on Text.Pandoc.Definition.
16305 + Moved isHeaderBlock from Text.Pandoc.Writers.HTML.
16306 + Moved Element, headerAtLeast, and hierarchicalize from Docbook
16307 writer, because HTML writer now uses these in constructing a table
16308 of contents.
16309 + Added clauses for new inline elements (Strikeout, Superscript,
16310 Subscript) to refsMatch.
16311 + Removed backslashEscape; added new functions escapeStringUsing and
16312 backslashEscapes.
16313 + Moved failIfStrict from markdown reader, since it is now used also
16314 by the HTML reader.
16315 + Added a 'try' to the definition of indentSpaces.
16316 + In definition of 'reference', added check to make sure it's not a note
16317 reference.
16318 + Added functions: camelCaseToHyphenated, toRomanNumeral,
16319 anyOrderedListMarker, orderedListmarker, orderedListMarkers,
16320 charsInBalanced', withHorizDisplacement, romanNumeral
16321 + Fixed a bug in the anyLine parser. Previously it would parse an empty
16322 string "", but it should fail on an empty string, or we get an error
16323 when it is used inside "many" combinators.
16324 + Removed followedBy' parser, replacing it with the lookAhead parser from
16325 Parsec.
16326 + Added some needed 'try's before multicharacter parsers, especially in
16327 'option' contexts.
16328 + Removed the 'try' from the 'end' parser in 'enclosed', so that
16329 'enclosed' behaves like 'option', 'manyTill', etc.
16330 + Added lineClump parser, which parses a raw line block up to and
16331 including any following blank lines.
16332 + Renamed parseFromStr to parseFromString.
16333 + Added a 'try' to the 'end' parser in 'enclosed'. This makes errors in
16334 the use of 'enclosed' less likely. Removed some now-unnecessary 'try's
16335 in calling code.
16336 + Removed unneeded 'try' in blanklines.
16337 + Removed endsWith function and rewrote calling functions to use
16338 isSuffixOf instead.
16339 + Added >>~ combinator.
16340 + Fixed bug in normalizeSpaces: Space:Str "":Space should compress to
16341 Space.
16343 * Refactored runtests.pl; added separate tests for tables.
16345 * Shell scripts:
16347 + Added -asxhtml flag to tidy in html2markdown. This will
16348 perhaps help the parser, which expects closing tags.
16349 + Modified markdown2pdf to run pdflatex a second time if --toc or
16350 --table-of-contents was specified; otherwise the table of
16351 contents won't appear.
16352 + Modified markdown2pdf to print a helpful message if the 'ulem'
16353 LaTeX package is required and not found.
16355 * Changes to build process:
16357 + Dropped support for compilation with GHC 6.4. GHC 6.6 or higher
16358 is now required.
16359 + Removed cabalize and Pandoc.cabal.in. The repository now contains
16360 pandoc.cabal itself.
16361 + Pandoc.cabal has been changed to pandoc.cabal, because HackageDB
16362 likes the cabal file to have the same name as the tarball.
16363 + Expanded and revised the package description in pandoc.cabal.
16364 Revised the package synopsis.
16365 + The tarball built by 'make tarball' now contains files built from
16366 templates (including man pages and shell scripts), so pandoc can
16367 be built directly using Cabal tools, without preprocessing.
16368 + Executable binaries are now stripped before installing.
16369 + Man pages are now generated from markdown sources, using pandoc's
16370 man page writer.
16371 + Use HTML version of README (instead of RTF) in Mac OS X installer.
16372 + Instead of testing for the existence of a pandoc symlink in build-exec,
16373 use ln -f.
16375 * Documentation:
16377 + Updated README and man pages with information on new features.
16378 + Updated INSTALL instructions with some useful clarifications and
16379 links.
16380 + Updated web content.
16382 * Added FreeBSD port.
16384 [ Recai Oktaş ]
16386 * debian/control:
16388 + Changed pandoc's Build-Depends to include libghc6-mtl-dev and
16389 libghc6-xhtml-dev. Removed libghc6-html-dev.
16390 + Suggest texlive-latex-recommended | tetex-extra instead of
16391 tetex-bin. This brings in fancyvrb and unicode support.
16393 -- Recai Oktaş <roktas@debian.org> Tue, 16 Jan 2007 00:37:21 +0200
16395pandoc (0.3) unstable; urgency=low
16397 [ John MacFarlane ]
16399 * Changes in pandoc options:
16401 + Allow options to follow or precede arguments.
16402 + Changed '--smartypants' to '--smart' and adjusted symbols accordingly.
16403 + Added '--strict' option.
16404 + Added '-o/--output' option.
16405 + Added '--dump-args' and '--ignore-args' options (for use in wrappers).
16406 + Modified '-v' and '-h' output to go to STDERR, not STDOUT, and return
16407 error conditions. This is helpful for writing wrappers.
16408 + Added copyright message to '-v' output, modeled after FSF messages.
16409 + Reformatted usage message so that it doesn't wrap illegibly.
16410 + Removed extra blanks after '-h' and '-D' output.
16412 * Added docbook writer.
16414 * Added implicit setting of default input and output format based
16415 on input and output filename extensions. These defaults are
16416 overridden if explicit input and output formats are specified using
16417 '-t', '-f', '-r', or '-w' options. Documented in pandoc(1) man page
16418 and README.
16420 * Allow ordered list items to begin with (single) letters, as well
16421 as numbers. The list item marker may now be terminated either by
16422 '.' or by ')'. This extension to standard markdown is documented
16423 in README.
16425 * Revised footnote syntax. (See README for full details.) The
16426 '[^1]' format now standard in markdown extensions is supported,
16427 as are inline footnotes with this syntax: `^[My note.]`.
16428 The earlier footnote syntax `^(1)` is no longer supported.
16430 * Improved HTML representation of footnotes. All footnotes
16431 are now auto-numbered and appear in an ordered list at the
16432 end of the HTML document. Since the default appearance is now
16433 acceptable, the old footnote styles have been removed from the
16434 HTML header.
16436 * Bug fixes:
16438 + Fixed a serious bug in the markdown, LaTeX, and RST readers.
16439 These readers ran 'runParser' on processed chunks of text to handle
16440 embedded block lists in lists and quotation blocks. But then
16441 any changes made to the parser state in these chunks was lost,
16442 as the state is local to the parser. So, for example, footnotes
16443 didn't work in quotes or list items. The fix: instead of calling
16444 runParser on some raw text, use setInput to make it the input, then
16445 parse it, then use setInput to restore the input to what it was
16446 before. This is shorter and more elegant, and it fixes the problem.
16447 + Fixed bug in notFollowedBy' combinator (adding 'try' before
16448 'parser'). Adjusted code that uses this combinator accordingly.
16449 + Fixed bug in RTF writer that caused improper indentation on
16450 footnotes occurring in indented blocks like lists.
16451 + Fixed parsing of metadata in LaTeX reader. Now the title, author,
16452 and date are parsed correctly. Everything else in the preamble
16453 is skipped.
16454 + Modified escapedChar in LaTeX reader to allow a '\' at the end of a
16455 line to count as escaped whitespace.
16456 + Modified LaTeX reader to produce inline links rather than reference
16457 links. Otherwise, links in footnotes aren't handled properly.
16458 + Fixed handling of titles in links in Markdown reader, so that
16459 embedded quotation marks are now handled properly.
16460 + Fixed Markdown reader's handling of embedded brackets in links.
16461 + Fixed Markdown reader so that it only parses bracketed material
16462 as a reference link if there is actually a corresponding key.
16463 + Revised inline code parsing in Markdown reader to conform to
16464 markdown standard. Now any number of `s can begin inline code,
16465 which will end with the same number of `s. For example, to
16466 have two backticks as code, write ``` `` ```. Modified Markdown
16467 writer accordingly.
16468 + Fixed bug in text-wrapping routine in Markdown and RST writers.
16469 Now LineBreaks no longer cause wrapping problems.
16470 + Supported hexadecimal numerical entity references as well as
16471 decimal ones.
16472 + Fixed bug in Markdown reader's handling of underscores and other
16473 inline formatting markers inside reference labels: for example,
16474 in '[A_B]: /url/a_b', the material between underscores was being
16475 parsed as emphasized inlines.
16476 + Changed Markdown reader's handling of backslash escapes so that
16477 only non-alphanumeric characters can be escaped. Strict mode
16478 follows Markdown.pl in only allowing a select group of punctuation
16479 characters to be escaped.
16480 + Modified HTML reader to skip a newline following a `<br>` tag.
16481 Otherwise the newline will be treated as a space at the beginning
16482 of the next line.
16484 * Made handling of code blocks more consistent. Previously, some
16485 readers allowed trailing newlines, while others stripped them.
16486 Now, all readers strip trailing newlines in code blocks. Writers
16487 insert a newline at the end of code blocks as needed.
16489 * Modified readers to make spacing at the end of output more consistent.
16491 * Minor improvements to LaTeX reader:
16493 + '\thanks' now treated like a footnote.
16494 + Simplified parsing of LaTeX command arguments and options.
16495 commandArgs now returns a list of arguments OR options (in
16496 whatever order they appear). The brackets are included, and
16497 a new stripFirstAndLast function is provided to strip them off
16498 when needed. This fixes a problem in dealing with \newcommand
16499 and \newenvironment.
16501 * Revised RTF writer:
16503 + Default font is now Helvetica.
16504 + An '\f0' is added to each '\pard', so that font resizing works
16505 correctly.
16507 * Moved handling of "smart typography" from the writers to the Markdown
16508 and LaTeX readers. This allows great simplification of the writers
16509 and more accurate smart quotes, dashes, and ellipses. DocBook can
16510 now use `<quote>`. The '--smart' option now toggles an option in
16511 the parser state rather than a writer option. Several new kinds
16512 of inline elements have been added: Quoted, Ellipses, Apostrophe,
16513 EmDash, EnDash.
16515 * Changes in HTML writer:
16517 + Include title block in header even when title is null.
16518 + Made javascript obfuscation of emails even more obfuscatory,
16519 by combining it with entity obfuscation.
16521 * Changed default ASCIIMathML text color to black.
16523 * Test suite:
16525 + Added --strip-trailing-cr option to diff in runtests.pl, for
16526 compatibility with Windows.
16527 + Added regression tests with footnotes in quote blocks and lists.
16529 * Makefile changes:
16531 + osx-pkg target creates a Mac OS X package (directory). New osx
16532 directory contains files needed for construction of the package.
16533 + osx-dmg target creates a compressed disk image containing the package.
16534 + win-pkg target creates Windows binary package.
16535 + tarball target creates distribution source tarball.
16536 + website target generates pandoc's website automatically, including
16537 demos. New 'web' directory contains files needed for construction
16538 of the website (which will be created as the 'pandoc' subdirectory
16539 of 'web').
16540 + Makefile checks to see if we're running Windows/Cygwin; if so,
16541 a '.exe' extension is added to each executable in EXECS.
16543 * Removed all wrappers except markdown2pdf and html2markdown.
16545 * Added new wrapper hsmarkdown, to be used as a drop-in replacement
16546 for Markdown.pl. hsmarkdown calls pandoc with the '--strict'
16547 option and disables other options.
16549 * Added code to html2markdown that tries to determine the character
16550 encoding of an HTML file, by parsing the "Content-type" meta tag.
16552 + If the encoding can't be determined, then if the content is local,
16553 the local encoding is used; if it comes from a URL, UTF-8 is used
16554 by default.
16555 + If input is from STDIN, don't try to determine character encoding.
16556 + Encoding can be specified explicitly using '-e' option.
16558 * Improved warning messages in wrappers:
16560 + Print warning if iconv not available
16561 + More user-friendly error messages in markdown2pdf, when
16562 pdflatex fails.
16564 * Code cleanup:
16566 + Renamed 'Text/Pandoc/HtmlEntities' module to
16567 'Text/Pandoc/Entities'. Also changed function names so as
16568 not to be HTML-specific.
16569 + Refactored SGML string escaping functions from HTML and Docbook
16570 writers into Text/Pandoc/Shared. (escapeSGML, stringToSGML)
16571 + Removed 'BlockQuoteContext' from ParserContext, as it isn't
16572 used anywhere.
16573 + Removed splitBySpace and replaced it with a general, polymorphic
16574 splitBy function.
16575 + Refactored LaTeX reader for clarity (added isArg function).
16576 + Converted some CR's to LF's in src/ui/default/print.css.
16577 + Added license text to top of source files.
16578 + Added module data for haddock to source files.
16579 + Reformatted code for consistency.
16581 * Rewrote documentation and man pages. Split README into INSTALL
16582 and README.
16584 * Split LICENSE into COPYING and COPYRIGHT.
16586 * Removed TODO, since we now maintain ToDo on the wiki.
16588 * Made COPYRIGHT in top level a symlink to debian/copyright, to avoid
16589 duplication.
16591 [ Recai Oktaş ]
16593 * Revamped build process to conform to debian standards and created
16594 a proper debian package. Closes: #391666.
16596 * Modified build process to support GHC 6.6.
16598 + The package can still be compiled using GHC 6.4.2, though because
16599 of dependencies the "make deb" target works only with GHC 6.6+.
16600 + The script 'cabalize' is used to create an appropriate
16601 'Pandoc.cabal' from 'Pandoc.cabal.in', depending on the GHC and
16602 Cabal versions.
16604 * Refactored template processing (fillTemplates.pl).
16606 * Modified wrapper scripts to make them more robust and portable.
16607 To avoid code duplication and ensure consistency, wrappers are
16608 generated via a templating system from templates in src/wrappers.
16610 + Wrappers now accept multiple filenames, when appropriate.
16611 + Spaces and tabs allowed in filenames.
16612 + getopts shell builtin is used for portable option parsing.
16613 + Improved html2markdown's web grabber code, making it more robust,
16614 configurable and verbose. Added '-e', '-g' options.
16616 -- Recai Oktaş <roktas@debian.org> Fri, 05 Jan 2007 09:41:19 +0200
16618pandoc (0.2) unstable; urgency=low
16620 * Fixed unicode/utf-8 translation
16622 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400
16624pandoc (0.1) unstable; urgency=low
16626 * Initial creation of debian package
16628 -- John MacFarlane <jgm@berkeley.edu> Mon, 14 Aug 2006 00:00:00 -0400